@turingcode/cli 0.2.11 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/dist/cli/create-cli.js +15 -4
- package/dist/cli/index.js +3 -2
- package/dist/core/files.js +3 -0
- package/dist/features/contract/command.js +12 -5
- package/dist/features/contract/diagnostics.js +5 -2
- package/dist/features/contract/load.js +1 -1
- package/dist/features/table/check.js +9 -0
- package/dist/features/table/command.js +11 -7
- package/dist/features/tool/command.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,8 @@ line), and a fix hint per code. `--json` prints the full result. Exit codes: `0`
|
|
|
22
22
|
`1` FAIL/INVALID_CONTRACT, `2` bad input or missing file.
|
|
23
23
|
|
|
24
24
|
`tool` commands need `TURINGCODE_TOKEN` (gateway token); `TURINGCODE_URL` overrides the gateway.
|
|
25
|
-
They exit `0` on success
|
|
25
|
+
They exit `0` on success, `1` on a tool error (printed to stderr) or a failed request, and `2` on bad
|
|
26
|
+
arguments (e.g. `--args` that is not a JSON object), before any request is sent.
|
|
26
27
|
|
|
27
28
|
## Contract format
|
|
28
29
|
|
|
@@ -63,10 +64,10 @@ plus the operators below for references, exact numbers and checks across rows).
|
|
|
63
64
|
| Field | Default | Meaning |
|
|
64
65
|
| --- | --- | --- |
|
|
65
66
|
| `name`, `version`, `description` | | Shown in output and in `describe`. |
|
|
66
|
-
| `format` | `markdown` | `markdown`: each table under a `## <name>` heading. `csv`: `<name>.csv` files (pass the folder, or one file). |
|
|
67
|
+
| `format` | `markdown` | `markdown`: each table under a `## <name>` heading. `csv`: `<name>.csv` files (pass the folder, or one file). The files given with `--tables` and `--dep` must be in their own contract's format; a CSV file for a Markdown contract is reported as `INVALID_INPUT`. |
|
|
67
68
|
| `missing_values` | `[""]` | Cell texts that count as empty (`null` in queries). Leave out a marker like `-` when it is a real value: "`-` allowed, empty forbidden" is `"required": true` with `"match": {"$or": [{"$eq": "-"}, ...]}`. |
|
|
68
69
|
| `allow_extra_tables` | `false` | Allow tables the contract does not declare. |
|
|
69
|
-
| `depends_on` | | `alias -> contract file` (absolute, or relative to this contract); its tables are passed with `--dep alias=<file
|
|
70
|
+
| `depends_on` | | `alias -> contract file` (absolute, or relative to this contract); its tables are passed with `--dep alias=<file>` and referenced as `alias:Table.Column`, e.g. `{"$ref": "customers:Customers.ID"}`. |
|
|
70
71
|
|
|
71
72
|
**Table**: `name` and `columns` are required.
|
|
72
73
|
|
package/dist/cli/create-cli.js
CHANGED
|
@@ -4,17 +4,22 @@ import table from "../features/table/command.js";
|
|
|
4
4
|
import tool from "../features/tool/command.js";
|
|
5
5
|
// The clock commands (../features/clock/command.js) are kept but not registered for now.
|
|
6
6
|
const commands = [contract, table, tool];
|
|
7
|
+
const names = commands.map(c => String(c.command).split(" ")[0]);
|
|
8
|
+
/** Exit code of every argument error, as each command's help documents. */
|
|
9
|
+
const BAD_ARGUMENTS = 2;
|
|
7
10
|
/**
|
|
8
11
|
* Builds the yargs parser with every feature command registered.
|
|
9
12
|
*
|
|
10
13
|
* @param {string[]} args - Arguments after `turingcode`.
|
|
11
14
|
* @returns The parser; call `parseAsync()` to run it.
|
|
12
15
|
* @throws {Error} When the first word is not a command (yargs alone would print help and exit 0 for `<unknown> --help`).
|
|
16
|
+
* It and the argument errors yargs finds (missing option, unknown subcommand, bad flag value) carry
|
|
17
|
+
* `exitCode` 2, so they differ from a failed check or request (1).
|
|
13
18
|
*/
|
|
14
19
|
export function createCli(args) {
|
|
15
20
|
const first = args.find(a => !a.startsWith("-"));
|
|
16
|
-
if (first !== undefined && !
|
|
17
|
-
throw new Error(`Unknown command: ${first}`);
|
|
21
|
+
if (first !== undefined && !names.includes(first)) {
|
|
22
|
+
throw Object.assign(new Error(`Unknown command: ${first}`), { exitCode: BAD_ARGUMENTS });
|
|
18
23
|
}
|
|
19
24
|
const cli = yargs(args)
|
|
20
25
|
.scriptName("turingcode")
|
|
@@ -28,14 +33,20 @@ export function createCli(args) {
|
|
|
28
33
|
" Contract format: $0 contract --help.",
|
|
29
34
|
].join("\n"))
|
|
30
35
|
.command(commands)
|
|
31
|
-
.demandCommand(1)
|
|
36
|
+
.demandCommand(1, `Name a command: ${names.slice(0, -1).join(", ")} or ${names.at(-1)}`)
|
|
32
37
|
.strict()
|
|
33
38
|
.help()
|
|
34
39
|
.hide("help")
|
|
35
40
|
.hide("version")
|
|
36
41
|
.wrap(null)
|
|
37
42
|
.exitProcess(false)
|
|
38
|
-
|
|
43
|
+
// yargs passes a message for argument errors (validation, coerce, check) and none when a
|
|
44
|
+
// command's handler threw; a handler error keeps its own exit code.
|
|
45
|
+
.fail((message, error) => {
|
|
46
|
+
if (!message && error)
|
|
47
|
+
throw error;
|
|
48
|
+
throw Object.assign(error ?? new Error(message), { exitCode: BAD_ARGUMENTS });
|
|
49
|
+
});
|
|
39
50
|
// Type tags such as [string] add tokens without information; the typings lack this yargs 17.7 method.
|
|
40
51
|
return cli.usageConfiguration({ "hide-types": true });
|
|
41
52
|
}
|
package/dist/cli/index.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { hideBin } from "yargs/helpers";
|
|
3
3
|
import { createCli } from "./create-cli.js";
|
|
4
4
|
/**
|
|
5
|
-
* Runs the CLI. Errors propagate here, are printed, and exit with code 1
|
|
5
|
+
* Runs the CLI. Errors propagate here, are printed, and exit with code 1, or with the error's
|
|
6
|
+
* own `exitCode` when it has one (e.g. 2 for bad input to a check command).
|
|
6
7
|
*
|
|
7
8
|
* @param {string[]} [args] - Arguments after `turingcode`.
|
|
8
9
|
* @returns {Promise<void>} Resolves when the command finished.
|
|
@@ -13,7 +14,7 @@ export async function main(args = hideBin(process.argv)) {
|
|
|
13
14
|
}
|
|
14
15
|
catch (error) {
|
|
15
16
|
process.stderr.write(`turingcode: ${error.message}\nRun "turingcode <command> --help" for usage.\n`);
|
|
16
|
-
process.exitCode = 1;
|
|
17
|
+
process.exitCode = error.exitCode ?? 1;
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
void main();
|
package/dist/core/files.js
CHANGED
|
@@ -40,6 +40,9 @@ export function readJsonArg(value) {
|
|
|
40
40
|
catch (e) {
|
|
41
41
|
if (e.code !== "ENOENT")
|
|
42
42
|
throw e;
|
|
43
|
+
// A value shaped like a path is most likely a mistyped path, so say that instead of talking about JSON.
|
|
44
|
+
if (/\.json$|[/\\]/i.test(value))
|
|
45
|
+
throw new Error(`no such file: '${value}'`);
|
|
43
46
|
throw new Error(`'${value}' is neither inline JSON (starting with {) nor an existing .json file`);
|
|
44
47
|
}
|
|
45
48
|
}
|
|
@@ -8,14 +8,15 @@ const FORMAT = `Contract JSON. Only "tables" and each table's and column's "name
|
|
|
8
8
|
field is optional. "(default)" marks the value used when a field is left out; other values are examples.
|
|
9
9
|
{
|
|
10
10
|
"name": "shop.orders", "version": "1.0.0", "description": "...", // shown in output
|
|
11
|
-
"format": "markdown", // (default) or "csv": one <table>.csv per table
|
|
11
|
+
"format": "markdown", // (default), or "format": "csv": one <table>.csv per table. The tables
|
|
12
|
+
// given with --tables / --dep must be in their own contract's format
|
|
12
13
|
"missing_values": [""], // (default) cell texts that count as empty (null in queries), e.g. ["", "-"].
|
|
13
14
|
// Keep a marker like "-" out of it when "-" is a real value: "-" allowed
|
|
14
15
|
// but an empty cell forbidden is "required": true plus
|
|
15
16
|
// "match": {"$or": [{"$eq": "-"}, {"$every": {"$ref": "Tests.ID"}}]}
|
|
16
17
|
"allow_extra_tables": false, // (default) true: tables not declared here are allowed
|
|
17
18
|
"depends_on": { "customers": "customers.contract.json" }, // path absolute or relative to this contract;
|
|
18
|
-
// its tables passed with --dep customers=<file>, referenced as "customers:Table"
|
|
19
|
+
// its tables passed with --dep customers=<file>, referenced as "customers:Table.Column"
|
|
19
20
|
"tables": [{
|
|
20
21
|
"name": "Orders",
|
|
21
22
|
"required": true, // (default) the table must be in the document
|
|
@@ -53,11 +54,17 @@ and {"$ne": "x"} means "no item is x"). Operators:
|
|
|
53
54
|
$mentioned "Table.Column" | [...] | "*" value appears there as a word; "*": anywhere in the
|
|
54
55
|
document outside the value's own table (prose and other tables both count)
|
|
55
56
|
$calc "Qty * Price == Total" | {"expr": ..., "tolerance": 0.01} row query only; exact arithmetic
|
|
57
|
+
Codes: each failing operator reports its own: $eq $in → BAD_VALUE, $regex → PATTERN, $gt.. → OUT_OF_RANGE,
|
|
58
|
+
$length → BAD_LENGTH, $ref → UNKNOWN_REF, $unique → DUPLICATE_KEY, $mentioned → NOT_MENTIONED,
|
|
59
|
+
{"$ne": null} in a rule → REQUIRED_IF, a wrong type → BAD_TYPE, a rule's other queries → MATCH.
|
|
60
|
+
A value failing every branch of an $or reports the branches' code when they agree, else NONE_OF
|
|
61
|
+
(each branch's code in the message, and in --json "alternatives").
|
|
56
62
|
Examples:
|
|
57
63
|
"match": { "$regex": "^O-[0-9]+$" }
|
|
58
64
|
"match": { "$in": ["open", "paid", "shipped"] }
|
|
59
65
|
"match": { "$length": { "$gte": 1 }, "$every": { "$ref": "Lines.Line_ID" } }
|
|
60
66
|
"match": { "$or": [{ "$eq": "always" }, { "$ref": "Scenarios.ID" }] }
|
|
67
|
+
"match": { "$ref": "customers:Customers.ID" } // a column of the dependency "customers"
|
|
61
68
|
{ "when": { "Kind": { "$in": ["resistor", "capacitor"] } }, "require": { "Value": { "$ne": null } } }
|
|
62
69
|
{ "require": { "$calc": { "expr": "Qty * Price == Total", "tolerance": "0.005" } } }
|
|
63
70
|
{ "on": "bom:Parts", "require": { "Ref": { "$ref": "Stock.Ref" } } }
|
|
@@ -67,7 +74,7 @@ const check = {
|
|
|
67
74
|
describe: "Validate a contract and the contracts it depends on",
|
|
68
75
|
builder: cli => cli.options({ contract: CONTRACT, json: JSON_FLAG })
|
|
69
76
|
.example("$0 contract check --contract orders.contract.json", "")
|
|
70
|
-
.epilogue("Contract format: turingcode contract --help.\nExit: 0 VALID, 1 INVALID_CONTRACT, 2 missing file."),
|
|
77
|
+
.epilogue("Contract format: turingcode contract --help.\nExit: 0 VALID, 1 INVALID_CONTRACT, 2 bad input or missing file."),
|
|
71
78
|
handler: args => {
|
|
72
79
|
const result = contractCheck(args.contract);
|
|
73
80
|
report(result, formatContractCheck(result), args.json);
|
|
@@ -78,7 +85,7 @@ const describe = {
|
|
|
78
85
|
describe: "Print the tables a contract expects, their columns and rules, as Markdown",
|
|
79
86
|
builder: cli => cli.options({ contract: CONTRACT, json: JSON_FLAG })
|
|
80
87
|
.example("$0 contract describe --contract orders.contract.json", "")
|
|
81
|
-
.epilogue("Contract format: turingcode contract --help."),
|
|
88
|
+
.epilogue("Contract format: turingcode contract --help.\nExit: 0 described, 1 INVALID_CONTRACT, 2 bad input or missing file."),
|
|
82
89
|
handler: args => {
|
|
83
90
|
const result = describeContract(args.contract);
|
|
84
91
|
report(result, result.markdown ?? formatContractCheck(result), args.json);
|
|
@@ -87,7 +94,7 @@ const describe = {
|
|
|
87
94
|
const contract = {
|
|
88
95
|
command: "contract",
|
|
89
96
|
describe: "Validate a table contract, or print the tables it expects",
|
|
90
|
-
builder: cli => cli.command(check).command(describe).demandCommand(1).epilogue(FORMAT),
|
|
97
|
+
builder: cli => cli.command(check).command(describe).demandCommand(1, "contract needs a subcommand: check or describe").epilogue(FORMAT),
|
|
91
98
|
handler: () => { },
|
|
92
99
|
};
|
|
93
100
|
export default contract;
|
|
@@ -76,6 +76,8 @@ export function sortDiagnostics(list) {
|
|
|
76
76
|
const MAX_ROWS_PER_LINE = 20;
|
|
77
77
|
/** " table row column" without unset parts ("-"), with a leading space when not empty. */
|
|
78
78
|
const place = (...parts) => parts.filter(p => p !== "-").map(p => ` ${p}`).join("");
|
|
79
|
+
/** A NONE_OF diagnostic's branch codes, e.g. "PATTERN, BAD_VALUE"; "" for other diagnostics. */
|
|
80
|
+
const branchCodes = (d) => (d.alternatives ?? []).map(a => a.code).join(", ");
|
|
79
81
|
/**
|
|
80
82
|
* Renders diagnostics as compact text: one line per finding, findings that
|
|
81
83
|
* differ only by row grouped onto one line, then each fix hint once per code.
|
|
@@ -91,7 +93,7 @@ export function formatDiagnostics(diags) {
|
|
|
91
93
|
const lines = [];
|
|
92
94
|
const groups = new Map();
|
|
93
95
|
for (const d of diags) {
|
|
94
|
-
const key = [d.severity, d.code, d.table, d.column, d.expected, d.rule].join("\u0000");
|
|
96
|
+
const key = [d.severity, d.code, d.table, d.column, d.expected, d.rule, branchCodes(d)].join("\u0000");
|
|
95
97
|
groups.set(key, [...(groups.get(key) ?? []), d]);
|
|
96
98
|
}
|
|
97
99
|
for (const [d, ...more] of groups.values()) {
|
|
@@ -103,7 +105,8 @@ export function formatDiagnostics(diags) {
|
|
|
103
105
|
const all = [d, ...more];
|
|
104
106
|
const rows = all.slice(0, MAX_ROWS_PER_LINE).map(x => `${x.row}=${x.found}`).join(", ");
|
|
105
107
|
const extra = all.length > MAX_ROWS_PER_LINE ? ` +${all.length - MAX_ROWS_PER_LINE} more` : "";
|
|
106
|
-
|
|
108
|
+
const branches = d.alternatives ? `; branches failed with ${branchCodes(d)}` : "";
|
|
109
|
+
lines.push(`${d.severity} ${d.code}${place(d.table, d.column)} ×${all.length}: ${rows}${extra}; expected ${d.expected}${branches}${rule}`);
|
|
107
110
|
}
|
|
108
111
|
for (const [code, fix] of new Map(diags.map(d => [d.code, d.fix])))
|
|
109
112
|
lines.push(`fix ${code}: ${fix}`);
|
|
@@ -94,7 +94,7 @@ export function validateContract(data, deps) {
|
|
|
94
94
|
return table;
|
|
95
95
|
const owner = alias ? undefined : [...deps].find(([, dep]) => dep.contract?.tables.some(t => t.name === name))?.[0];
|
|
96
96
|
if (owner) {
|
|
97
|
-
report("CONTRACT.UNKNOWN_TABLE", `'${name}' is a table of dependency '${owner}': write ${owner}:${
|
|
97
|
+
report("CONTRACT.UNKNOWN_TABLE", `'${name}' is a table of dependency '${owner}': write ${owner}:${text}`, text, `${owner}:${text}`);
|
|
98
98
|
}
|
|
99
99
|
else {
|
|
100
100
|
report("CONTRACT.UNKNOWN_TABLE", `table '${name}' does not exist`, text, target.tables.map(t => t.name).join(", "));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { existsSync, statSync } from "node:fs";
|
|
1
2
|
import { BoundError } from "../../core/bound-error.js";
|
|
2
3
|
import { isDate } from "../../core/date.js";
|
|
3
4
|
import { Fraction } from "../../core/exact/fraction.js";
|
|
@@ -99,6 +100,14 @@ export function tableCheck(input) {
|
|
|
99
100
|
}
|
|
100
101
|
/** Reads one tables file; failures become a status. */
|
|
101
102
|
const read = (path, c) => {
|
|
103
|
+
// Markdown parsing of CSV text finds no tables, which would silently look like empty tables.
|
|
104
|
+
if ((c.format ?? "markdown") === "markdown" && (/\.csv$/i.test(path) || (existsSync(path) && statSync(path).isDirectory()))) {
|
|
105
|
+
return stop("INVALID_INPUT", "INVALID_INPUT", `${path} is CSV, but its contract reads Markdown: set "format": "csv" in that contract, or pass a Markdown file`, path, "a Markdown file");
|
|
106
|
+
}
|
|
107
|
+
if (c.format === "csv" && !/\.csv$/i.test(path) && existsSync(path) && !statSync(path).isDirectory()) {
|
|
108
|
+
return stop("INVALID_INPUT", "INVALID_INPUT", `${path} is not CSV, but its contract reads CSV ("format": "csv"): pass a .csv file or a folder of them, `
|
|
109
|
+
+ `or remove "format" from that contract`, path, "a .csv file or a folder of them");
|
|
110
|
+
}
|
|
102
111
|
try {
|
|
103
112
|
return readTables(path, c.format ?? "markdown");
|
|
104
113
|
}
|
|
@@ -6,13 +6,13 @@ import { formatTableCheck, tableCheck } from "./check.js";
|
|
|
6
6
|
*
|
|
7
7
|
* @param {string[]} values - Raw flag values.
|
|
8
8
|
* @returns {Record<string, string>} alias -> tables file.
|
|
9
|
-
* @throws {Error} When a value has no
|
|
9
|
+
* @throws {Error} When a value has no `=`; its `exitCode` is 2 (bad input), as `table check` documents.
|
|
10
10
|
*/
|
|
11
11
|
function parseDeps(values) {
|
|
12
12
|
return Object.fromEntries(values.map(v => {
|
|
13
13
|
const at = v.indexOf("=");
|
|
14
14
|
if (at < 1)
|
|
15
|
-
throw new Error(`--dep expects <alias>=<tables file>, got '${v}'`);
|
|
15
|
+
throw Object.assign(new Error(`--dep expects <alias>=<tables file>, got '${v}'`), { exitCode: 2 });
|
|
16
16
|
return [v.slice(0, at), v.slice(at + 1)];
|
|
17
17
|
}));
|
|
18
18
|
}
|
|
@@ -21,10 +21,13 @@ const check = {
|
|
|
21
21
|
describe: "Verify tables against an existing contract, e.g. many tables in one run",
|
|
22
22
|
builder: cli => cli.options({
|
|
23
23
|
contract: CONTRACT,
|
|
24
|
-
tables: {
|
|
24
|
+
tables: {
|
|
25
|
+
type: "string", demandOption: true,
|
|
26
|
+
describe: "Markdown file, or .csv file / folder of <Table>.csv when the contract has \"format\": \"csv\" (required)",
|
|
27
|
+
},
|
|
25
28
|
dep: {
|
|
26
|
-
type: "string", array: true,
|
|
27
|
-
describe: "<alias>=<tables file> for each alias in the contract's depends_on",
|
|
29
|
+
type: "string", array: true,
|
|
30
|
+
describe: "<alias>=<tables file> for each alias in the contract's depends_on, in that dependency contract's format",
|
|
28
31
|
},
|
|
29
32
|
json: JSON_FLAG,
|
|
30
33
|
})
|
|
@@ -40,14 +43,15 @@ const check = {
|
|
|
40
43
|
"Exit: 0 PASS, 1 FAIL or invalid contract, 2 bad input or missing file.",
|
|
41
44
|
].join("\n")),
|
|
42
45
|
handler: args => {
|
|
43
|
-
|
|
46
|
+
// Parsed here, not with yargs' coerce, which rewraps the error and loses its exit code.
|
|
47
|
+
const result = tableCheck({ contract: args.contract, tables: args.tables, deps: args.dep && parseDeps(args.dep) });
|
|
44
48
|
report(result, formatTableCheck(result), args.json);
|
|
45
49
|
},
|
|
46
50
|
};
|
|
47
51
|
const table = {
|
|
48
52
|
command: "table",
|
|
49
53
|
describe: "Check Markdown/CSV tables against a contract",
|
|
50
|
-
builder: cli => cli.command(check).demandCommand(1),
|
|
54
|
+
builder: cli => cli.command(check).demandCommand(1, "table needs a subcommand: check"),
|
|
51
55
|
handler: () => { },
|
|
52
56
|
};
|
|
53
57
|
export default table;
|
|
@@ -81,7 +81,7 @@ const list = {
|
|
|
81
81
|
"Prints the tools of the Turing Code server that your token may call, one line each: the name",
|
|
82
82
|
"and the first line of its description. The list comes from the server, so it is always current.",
|
|
83
83
|
"`tool describe <name>` shows a tool's full description and arguments, before `tool call`.",
|
|
84
|
-
"Exit: 0 ok, 1 failed request.",
|
|
84
|
+
"Exit: 0 ok, 1 failed request, 2 bad arguments.",
|
|
85
85
|
TOKEN_HELP,
|
|
86
86
|
].join("\n")),
|
|
87
87
|
handler: async () => {
|
|
@@ -100,7 +100,7 @@ const describe = {
|
|
|
100
100
|
.epilogue([
|
|
101
101
|
"Prints each named tool as a `## <name>` section: its full description and its arguments",
|
|
102
102
|
"(type, required, default, description), which go in `tool call <name> --args`.",
|
|
103
|
-
"Exit: 0 ok, 1 unknown tool name or failed request.",
|
|
103
|
+
"Exit: 0 ok, 1 unknown tool name or failed request, 2 bad arguments.",
|
|
104
104
|
TOKEN_HELP,
|
|
105
105
|
].join("\n")),
|
|
106
106
|
handler: async (args) => {
|
|
@@ -131,7 +131,7 @@ const call = {
|
|
|
131
131
|
"leave it out for a tool without arguments.",
|
|
132
132
|
"The tool's text result goes to stdout: redirect it (`> file`) to save a large result without",
|
|
133
133
|
"reading it. A tool error is printed to stderr.",
|
|
134
|
-
"Exit: 0 ok, 1 tool error or failed request.",
|
|
134
|
+
"Exit: 0 ok, 1 tool error or failed request, 2 bad arguments (e.g. --args not a JSON object).",
|
|
135
135
|
TOKEN_HELP,
|
|
136
136
|
].join("\n")),
|
|
137
137
|
handler: args => runServerTool(args.name, (args.args ?? {})),
|
|
@@ -139,7 +139,7 @@ const call = {
|
|
|
139
139
|
const command = {
|
|
140
140
|
command: "tool",
|
|
141
141
|
describe: "List, describe or call tools on the Turing Code server",
|
|
142
|
-
builder: cli => cli.command(list).command(describe).command(call).demandCommand(1)
|
|
142
|
+
builder: cli => cli.command(list).command(describe).command(call).demandCommand(1, "tool needs a subcommand: list, describe or call")
|
|
143
143
|
.epilogue([
|
|
144
144
|
"Typical use: `tool list` to find a tool, `tool describe <name>` for its arguments, then",
|
|
145
145
|
"`tool call <name> --args ... > file` to save its result.",
|
package/package.json
CHANGED