pub fn check_source(label: &str, source: &str) -> Result<ScriptToolMeta>Expand description
Answer “would this text become a tool” for source that has no file yet.
ScriptToolSet::discover asks the same two questions of files already on
disk: are the annotations parseable, and does Rhai accept the script. An
editor has to be able to ask before saving, and the only alternative was
writing the candidate into a directory every agent executes from and reading
the answer back out of the skipped list.
label is what the error message names the source as, since there is no
path to name. A sibling tool.toml cannot apply here for the same reason:
nothing is on disk to sit beside.