// Package toolrunner says whether a manifest is the node's tool runner, for the parts of mesh-delivery that judge or // compose one (the indexer's judge, mesh-grants). package toolrunner import "git.novox.be/novox/mesh-sdk/go/catalogue" // Is says whether a manifest is the node's tool runner: it says so (`tool-runner`, catalogue.IsToolRunner), or its module // is mesh-sdk's deprecated catalogue.RuntimeModule. // // The second clause is kept only while node-tools' manifest on mesh-tools' trunk does not say `tool-runner`: the running // indexer refuses that word, so node-tools' trunk manifest leaves it out until the indexer that knows it is delivered // (issue 774, issue 1585 note 42). It goes, with this helper's use of catalogue.RuntimeModule, once `tool-runner` is // back on node-tools' trunk manifest; then every caller asks catalogue.IsToolRunner alone. func Is(m catalogue.Manifest) bool { return catalogue.IsToolRunner(m) || m.Module == catalogue.RuntimeModule }