@swmansion/argent 0.18.1-next.11 → 0.18.1-next.13
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/dist/cli-cmds.mjs +172 -18
- package/dist/cli.js +7 -6
- package/dist/cli.js.map +1 -1
- package/dist/installer-help.d.ts +13 -2
- package/dist/installer-help.js +41 -2
- package/dist/installer-help.js.map +1 -1
- package/dist/installer.mjs +1 -0
- package/dist/mcp-server.mjs +1 -0
- package/dist/tool-server.cjs +1 -0
- package/package.json +1 -1
package/dist/cli-cmds.mjs
CHANGED
|
@@ -6808,6 +6808,7 @@ var FAILURE_CODES = {
|
|
|
6808
6808
|
CLI_RUN_FLAG_PARSE_FAILED: "CLI_RUN_FLAG_PARSE_FAILED",
|
|
6809
6809
|
CLI_RUN_ARGS_NOT_OBJECT: "CLI_RUN_ARGS_NOT_OBJECT",
|
|
6810
6810
|
CLI_RUN_ARGS_JSON_INVALID: "CLI_RUN_ARGS_JSON_INVALID",
|
|
6811
|
+
CLI_RUN_INPUT_VALIDATION_FAILED: "CLI_RUN_INPUT_VALIDATION_FAILED",
|
|
6811
6812
|
CLI_RUN_TOOL_CALL_FAILED: "CLI_RUN_TOOL_CALL_FAILED",
|
|
6812
6813
|
CLI_RUN_SAVE_IMAGE_FAILED: "CLI_RUN_SAVE_IMAGE_FAILED",
|
|
6813
6814
|
TOOL_CAPABILITY_UNSUPPORTED_OPERATION: "TOOL_CAPABILITY_UNSUPPORTED_OPERATION",
|
|
@@ -8458,6 +8459,12 @@ var FlagParseException = class extends Error {
|
|
|
8458
8459
|
function isScalarType(type) {
|
|
8459
8460
|
return type === "string" || type === "number" || type === "integer" || type === "boolean";
|
|
8460
8461
|
}
|
|
8462
|
+
function isJsonField(prop) {
|
|
8463
|
+
return prop?.type === "object" || prop?.type === "array" && !isScalarType(prop.items?.type);
|
|
8464
|
+
}
|
|
8465
|
+
function flagNameFor(name, prop) {
|
|
8466
|
+
return isJsonField(prop) ? `--${name}-json` : `--${name}`;
|
|
8467
|
+
}
|
|
8461
8468
|
function coerceScalar(raw, type, field) {
|
|
8462
8469
|
if (type === "number") {
|
|
8463
8470
|
if (raw.trim() === "")
|
|
@@ -8622,11 +8629,10 @@ function formatSchemaUsage(schema) {
|
|
|
8622
8629
|
return lines.join("\n");
|
|
8623
8630
|
}
|
|
8624
8631
|
function renderFlagName(name, prop) {
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
return `--${name} <value>`;
|
|
8632
|
+
const flag = flagNameFor(name, prop);
|
|
8633
|
+
if (isJsonField(prop)) return `${flag} <json>`;
|
|
8634
|
+
if (prop.type === "boolean") return flag;
|
|
8635
|
+
return `${flag} <value>`;
|
|
8630
8636
|
}
|
|
8631
8637
|
function renderType(prop) {
|
|
8632
8638
|
if (prop.enum && Array.isArray(prop.enum)) {
|
|
@@ -8640,6 +8646,93 @@ function renderType(prop) {
|
|
|
8640
8646
|
return prop.type ?? "any";
|
|
8641
8647
|
}
|
|
8642
8648
|
|
|
8649
|
+
// ../argent-cli/src/run-validation.ts
|
|
8650
|
+
function findMissingRequired(payload, schema) {
|
|
8651
|
+
const required = new Set(schema?.required ?? []);
|
|
8652
|
+
if (required.size === 0) return [];
|
|
8653
|
+
const declared = Object.keys(schema?.properties ?? {});
|
|
8654
|
+
const names = [...declared.filter((n2) => required.has(n2))];
|
|
8655
|
+
for (const name of required) {
|
|
8656
|
+
if (!names.includes(name)) names.push(name);
|
|
8657
|
+
}
|
|
8658
|
+
return names.filter((name) => !Object.hasOwn(payload, name));
|
|
8659
|
+
}
|
|
8660
|
+
function describeServerValidationFailure(err, payload, schema) {
|
|
8661
|
+
const message = err instanceof Error ? err.message : typeof err === "string" ? err : null;
|
|
8662
|
+
if (message === null) return null;
|
|
8663
|
+
let parsed;
|
|
8664
|
+
try {
|
|
8665
|
+
parsed = JSON.parse(message);
|
|
8666
|
+
} catch {
|
|
8667
|
+
return null;
|
|
8668
|
+
}
|
|
8669
|
+
if (!Array.isArray(parsed) || parsed.length === 0) return null;
|
|
8670
|
+
if (!parsed.every(isValidationIssue)) return null;
|
|
8671
|
+
const properties = schema?.properties ?? {};
|
|
8672
|
+
const addressesThisTool = (issue) => issue.path.length === 0 || typeof issue.path[0] === "string" && Object.hasOwn(properties, issue.path[0]);
|
|
8673
|
+
if (!parsed.every(addressesThisTool)) return null;
|
|
8674
|
+
const required = new Set(schema?.required ?? []);
|
|
8675
|
+
const missing = [];
|
|
8676
|
+
const invalid = [];
|
|
8677
|
+
for (const issue of parsed) {
|
|
8678
|
+
const head = issue.path[0];
|
|
8679
|
+
if (issue.path.length === 1 && typeof head === "string" && required.has(head) && !Object.hasOwn(payload, head)) {
|
|
8680
|
+
missing.push(head);
|
|
8681
|
+
} else {
|
|
8682
|
+
invalid.push({ path: issue.path, message: issue.message });
|
|
8683
|
+
}
|
|
8684
|
+
}
|
|
8685
|
+
return { missing: sortBySchemaOrder(missing, schema), invalid, rawIssues: parsed };
|
|
8686
|
+
}
|
|
8687
|
+
function formatValidationError(report, schema) {
|
|
8688
|
+
const properties = schema?.properties ?? {};
|
|
8689
|
+
const lines = [];
|
|
8690
|
+
if (report.missing.length > 0) {
|
|
8691
|
+
const flags2 = sortBySchemaOrder(report.missing, schema).map(
|
|
8692
|
+
(name) => flagNameFor(name, properties[name])
|
|
8693
|
+
);
|
|
8694
|
+
const noun = flags2.length === 1 ? "flag" : "flags";
|
|
8695
|
+
lines.push(`missing required ${noun} ${flags2.join(", ")}`);
|
|
8696
|
+
}
|
|
8697
|
+
for (const field of report.invalid) {
|
|
8698
|
+
lines.push(describeInvalidField(field, properties));
|
|
8699
|
+
}
|
|
8700
|
+
return lines.join("\n ");
|
|
8701
|
+
}
|
|
8702
|
+
function missingFlagNames(report, schema) {
|
|
8703
|
+
const properties = schema?.properties ?? {};
|
|
8704
|
+
return sortBySchemaOrder(report.missing, schema).map(
|
|
8705
|
+
(name) => flagNameFor(name, properties[name])
|
|
8706
|
+
);
|
|
8707
|
+
}
|
|
8708
|
+
function describeInvalidField(field, properties) {
|
|
8709
|
+
if (field.path.length === 0) return field.message;
|
|
8710
|
+
const [head, ...rest] = field.path;
|
|
8711
|
+
if (typeof head !== "string") return field.message;
|
|
8712
|
+
const flag = flagNameFor(head, properties[head]);
|
|
8713
|
+
const nested = rest.length > 0 ? ` ${head}${renderPathTail(rest)}` : "";
|
|
8714
|
+
return `${flag}${nested} ${field.message}`;
|
|
8715
|
+
}
|
|
8716
|
+
function renderPathTail(rest) {
|
|
8717
|
+
return rest.map((part) => typeof part === "number" ? `[${part}]` : `.${part}`).join("");
|
|
8718
|
+
}
|
|
8719
|
+
function sortBySchemaOrder(names, schema) {
|
|
8720
|
+
const order = Object.keys(schema?.properties ?? {});
|
|
8721
|
+
return [...names].sort((a2, b) => {
|
|
8722
|
+
const ia = order.indexOf(a2);
|
|
8723
|
+
const ib = order.indexOf(b);
|
|
8724
|
+
if (ia === -1 && ib === -1) return a2.localeCompare(b);
|
|
8725
|
+
if (ia === -1) return 1;
|
|
8726
|
+
if (ib === -1) return -1;
|
|
8727
|
+
return ia - ib;
|
|
8728
|
+
});
|
|
8729
|
+
}
|
|
8730
|
+
function isValidationIssue(value) {
|
|
8731
|
+
if (value === null || typeof value !== "object") return false;
|
|
8732
|
+
const issue = value;
|
|
8733
|
+
return typeof issue.code === "string" && Array.isArray(issue.path) && typeof issue.message === "string";
|
|
8734
|
+
}
|
|
8735
|
+
|
|
8643
8736
|
// ../argent-cli/src/run.ts
|
|
8644
8737
|
function splitOptions(argv) {
|
|
8645
8738
|
let json = false;
|
|
@@ -8751,7 +8844,25 @@ Examples:
|
|
|
8751
8844
|
`);
|
|
8752
8845
|
return;
|
|
8753
8846
|
}
|
|
8754
|
-
|
|
8847
|
+
let cliOptions;
|
|
8848
|
+
try {
|
|
8849
|
+
cliOptions = splitOptions(rest);
|
|
8850
|
+
} catch (err) {
|
|
8851
|
+
if (err instanceof FlagParseException) {
|
|
8852
|
+
console.error(`Error: ${err.message}
|
|
8853
|
+
`);
|
|
8854
|
+
console.error(`Run \`argent run ${toolName} --help\` to see this tool's flags.`);
|
|
8855
|
+
await trackRunFailure(toolName, startedAt, {
|
|
8856
|
+
error_code: FAILURE_CODES.CLI_RUN_FLAG_PARSE_FAILED,
|
|
8857
|
+
failure_stage: "cli_run_split_options",
|
|
8858
|
+
failure_area: "cli",
|
|
8859
|
+
error_kind: "validation"
|
|
8860
|
+
});
|
|
8861
|
+
process.exit(2);
|
|
8862
|
+
}
|
|
8863
|
+
throw err;
|
|
8864
|
+
}
|
|
8865
|
+
const { json, outPath, argvForFlags } = cliOptions;
|
|
8755
8866
|
const meta = await fetchTool(toolName);
|
|
8756
8867
|
if (!meta) {
|
|
8757
8868
|
console.error(`Tool "${toolName}" not found. Run \`argent tools\` to list available tools.`);
|
|
@@ -8763,9 +8874,37 @@ Examples:
|
|
|
8763
8874
|
});
|
|
8764
8875
|
process.exit(1);
|
|
8765
8876
|
}
|
|
8877
|
+
const schema = meta.inputSchema;
|
|
8878
|
+
const failValidation = async (report, stage) => {
|
|
8879
|
+
const summary = formatValidationError(report, schema);
|
|
8880
|
+
if (json) {
|
|
8881
|
+
console.error(
|
|
8882
|
+
JSON.stringify(
|
|
8883
|
+
{
|
|
8884
|
+
error: summary,
|
|
8885
|
+
missing: missingFlagNames(report, schema),
|
|
8886
|
+
issues: report.rawIssues ?? []
|
|
8887
|
+
},
|
|
8888
|
+
null,
|
|
8889
|
+
2
|
|
8890
|
+
)
|
|
8891
|
+
);
|
|
8892
|
+
} else {
|
|
8893
|
+
console.error(`Error: ${summary}
|
|
8894
|
+
`);
|
|
8895
|
+
printToolHelp(meta);
|
|
8896
|
+
}
|
|
8897
|
+
await trackRunFailure(toolName, startedAt, {
|
|
8898
|
+
error_code: FAILURE_CODES.CLI_RUN_INPUT_VALIDATION_FAILED,
|
|
8899
|
+
failure_stage: stage,
|
|
8900
|
+
failure_area: "cli",
|
|
8901
|
+
error_kind: "validation"
|
|
8902
|
+
});
|
|
8903
|
+
process.exit(2);
|
|
8904
|
+
};
|
|
8766
8905
|
let parsed;
|
|
8767
8906
|
try {
|
|
8768
|
-
parsed = parseFlags(argvForFlags,
|
|
8907
|
+
parsed = parseFlags(argvForFlags, schema);
|
|
8769
8908
|
} catch (err) {
|
|
8770
8909
|
if (err instanceof FlagParseException) {
|
|
8771
8910
|
console.error(`Error: ${err.message}
|
|
@@ -8818,6 +8957,10 @@ Examples:
|
|
|
8818
8957
|
for (const [k, v] of Object.entries(parsed.args)) {
|
|
8819
8958
|
payload[k] = v;
|
|
8820
8959
|
}
|
|
8960
|
+
const missing = findMissingRequired(payload, schema);
|
|
8961
|
+
if (missing.length > 0) {
|
|
8962
|
+
await failValidation({ missing, invalid: [], rawIssues: null }, "cli_run_required_flags");
|
|
8963
|
+
}
|
|
8821
8964
|
let result;
|
|
8822
8965
|
let note;
|
|
8823
8966
|
let images = [];
|
|
@@ -8833,6 +8976,10 @@ Examples:
|
|
|
8833
8976
|
images = materialized.images;
|
|
8834
8977
|
note = resp.note;
|
|
8835
8978
|
} catch (err) {
|
|
8979
|
+
const report = describeServerValidationFailure(err, payload, schema);
|
|
8980
|
+
if (report) {
|
|
8981
|
+
await failValidation(report, "cli_run_server_validation");
|
|
8982
|
+
}
|
|
8836
8983
|
console.error(err instanceof Error ? err.message : String(err));
|
|
8837
8984
|
await trackRunFailure(toolName, startedAt, {
|
|
8838
8985
|
error_code: FAILURE_CODES.CLI_RUN_TOOL_CALL_FAILED,
|
|
@@ -9216,10 +9363,27 @@ ${sorted.length} tools. Run \`argent tools describe <name>\` for details.`);
|
|
|
9216
9363
|
console.log(formatSchemaUsage(meta.inputSchema));
|
|
9217
9364
|
if (meta.outputHint) console.log(`
|
|
9218
9365
|
Output hint: ${meta.outputHint}`);
|
|
9366
|
+
}
|
|
9367
|
+
function printUsage3() {
|
|
9368
|
+
console.log(`Usage:
|
|
9369
|
+
argent tools List available tools
|
|
9370
|
+
argent tools describe <name> Show one tool's flags and description
|
|
9371
|
+
|
|
9372
|
+
Options:
|
|
9373
|
+
--json Print machine-readable JSON
|
|
9374
|
+
--help, -h Show this help
|
|
9375
|
+
|
|
9376
|
+
Listing tools contacts the argent tool-server, starting one if none is running.
|
|
9377
|
+
`);
|
|
9219
9378
|
}
|
|
9220
9379
|
const json = argv.includes("--json");
|
|
9221
|
-
const
|
|
9380
|
+
const isHelpFlag = (a2) => a2 === "--help" || a2 === "-h";
|
|
9381
|
+
const positional = argv.filter((a2) => !a2.startsWith("--") || isHelpFlag(a2));
|
|
9222
9382
|
const sub = positional[0];
|
|
9383
|
+
if (sub !== void 0 && isHelpFlag(sub)) {
|
|
9384
|
+
printUsage3();
|
|
9385
|
+
return;
|
|
9386
|
+
}
|
|
9223
9387
|
if (!sub) {
|
|
9224
9388
|
await listTools(json);
|
|
9225
9389
|
return;
|
|
@@ -9233,16 +9397,6 @@ Output hint: ${meta.outputHint}`);
|
|
|
9233
9397
|
await describeTool(name, json);
|
|
9234
9398
|
return;
|
|
9235
9399
|
}
|
|
9236
|
-
if (sub === "--help" || sub === "-h") {
|
|
9237
|
-
console.log(`Usage:
|
|
9238
|
-
argent tools List available tools
|
|
9239
|
-
argent tools describe <name> Show one tool's flags and description
|
|
9240
|
-
|
|
9241
|
-
Options:
|
|
9242
|
-
--json Print machine-readable JSON
|
|
9243
|
-
`);
|
|
9244
|
-
return;
|
|
9245
|
-
}
|
|
9246
9400
|
console.error(`Unknown subcommand: tools ${sub}`);
|
|
9247
9401
|
process.exit(1);
|
|
9248
9402
|
}
|
package/dist/cli.js
CHANGED
|
@@ -65,7 +65,7 @@ argent v${version}
|
|
|
65
65
|
Usage: argent <command> [options]
|
|
66
66
|
|
|
67
67
|
Commands:
|
|
68
|
-
mcp
|
|
68
|
+
mcp ${installerHelpEntry("mcp")}
|
|
69
69
|
init ${installerHelpEntry("init")}
|
|
70
70
|
install ${installerHelpEntry("install")}
|
|
71
71
|
update ${installerHelpEntry("update")}
|
|
@@ -106,11 +106,12 @@ async function loadCli() {
|
|
|
106
106
|
return (await import("./cli-cmds.mjs"));
|
|
107
107
|
}
|
|
108
108
|
async function main() {
|
|
109
|
-
//
|
|
110
|
-
//
|
|
111
|
-
//
|
|
112
|
-
//
|
|
113
|
-
//
|
|
109
|
+
// Some subcommands never look at their own argv: the installers forward it
|
|
110
|
+
// to side-effecting functions that ignore `--help` (so `argent uninstall
|
|
111
|
+
// --help` would run the real, destructive command), and `mcp` is handed no
|
|
112
|
+
// argv at all, so a help flag there starts the stdio server and blocks
|
|
113
|
+
// reading JSON-RPC from stdin. Intercept help for that set before
|
|
114
|
+
// dispatching. Every other subcommand parses `--help` itself.
|
|
114
115
|
if (installerHelpRequested(command, rest)) {
|
|
115
116
|
// installerHelpRequested only returns true for an InstallerCommand.
|
|
116
117
|
printInstallerHelp(command);
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAIlC,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,GAEnB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,YAAY,GAAG,mBAAmB,CAAC;AAEzC,SAAS,mBAAmB;IAC1B,IAAI,CAAC;QACH,uEAAuE;QACvE,oDAAoD;QACpD,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,C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CAAC,MAAM,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACvC,KAAK,QAAQ;YACX,OAAO,CAAC,MAAM,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACxC,KAAK,WAAW;YACd,OAAO,CAAC,MAAM,OAAO,EAAE,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAC3C,KAAK,WAAW,CAAC;QACjB,KAAK,IAAI;YACP,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,IAAI,SAAS,CAAC,CAAC;YAChD,OAAO;QACT,KAAK,QAAQ,CAAC;QACd,KAAK,IAAI,CAAC;QACV;YACE,SAAS,EAAE,CAAC;YACZ,IAAI,OAAO,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;gBACxD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAClB,CAAC;IACL,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/dist/installer-help.d.ts
CHANGED
|
@@ -18,8 +18,13 @@
|
|
|
18
18
|
* help text: the top-level `argent --help` table in cli.ts reads the summary
|
|
19
19
|
* and detail lines from `INSTALLER_COMMAND_META` so the two can't drift.
|
|
20
20
|
*/
|
|
21
|
-
/**
|
|
22
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Subcommands whose argv never reaches a `--help` handler. The installers
|
|
23
|
+
* forward theirs to side-effecting functions that do not check it; `mcp` is
|
|
24
|
+
* handed no argv at all — `startMcpServer` takes only its paths — so a help
|
|
25
|
+
* flag there starts the stdio server and blocks reading JSON-RPC from stdin.
|
|
26
|
+
*/
|
|
27
|
+
export declare const INSTALLER_COMMANDS: readonly ["init", "install", "update", "uninstall", "remove", "mcp"];
|
|
23
28
|
export type InstallerCommand = (typeof INSTALLER_COMMANDS)[number];
|
|
24
29
|
export declare function isInstallerCommand(command: string | undefined): command is InstallerCommand;
|
|
25
30
|
/**
|
|
@@ -63,6 +68,12 @@ interface InstallerCommandMeta {
|
|
|
63
68
|
* the option descriptions instead.
|
|
64
69
|
*/
|
|
65
70
|
details?: string[];
|
|
71
|
+
/**
|
|
72
|
+
* Prose rendered under the summary in this command's own `--help` only —
|
|
73
|
+
* the mirror of `details`, which appears only in the top-level table. Used
|
|
74
|
+
* where the option list cannot carry what the reader needs to know.
|
|
75
|
+
*/
|
|
76
|
+
notes?: string[];
|
|
66
77
|
/** Usage line, e.g. `argent init [options]`. */
|
|
67
78
|
usage: string;
|
|
68
79
|
/** Real flags this command parses. Empty for aliases (see `aliasOf`). */
|
package/dist/installer-help.js
CHANGED
|
@@ -18,8 +18,20 @@
|
|
|
18
18
|
* help text: the top-level `argent --help` table in cli.ts reads the summary
|
|
19
19
|
* and detail lines from `INSTALLER_COMMAND_META` so the two can't drift.
|
|
20
20
|
*/
|
|
21
|
-
/**
|
|
22
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Subcommands whose argv never reaches a `--help` handler. The installers
|
|
23
|
+
* forward theirs to side-effecting functions that do not check it; `mcp` is
|
|
24
|
+
* handed no argv at all — `startMcpServer` takes only its paths — so a help
|
|
25
|
+
* flag there starts the stdio server and blocks reading JSON-RPC from stdin.
|
|
26
|
+
*/
|
|
27
|
+
export const INSTALLER_COMMANDS = [
|
|
28
|
+
"init",
|
|
29
|
+
"install",
|
|
30
|
+
"update",
|
|
31
|
+
"uninstall",
|
|
32
|
+
"remove",
|
|
33
|
+
"mcp",
|
|
34
|
+
];
|
|
23
35
|
export function isInstallerCommand(command) {
|
|
24
36
|
return INSTALLER_COMMANDS.includes(command);
|
|
25
37
|
}
|
|
@@ -51,6 +63,9 @@ export const VALUE_TAKING_FLAGS = {
|
|
|
51
63
|
update: ["--version", "--project-root"],
|
|
52
64
|
uninstall: [],
|
|
53
65
|
remove: [],
|
|
66
|
+
// `mcp` parses nothing, so no argument can be a flag's value and a bareword
|
|
67
|
+
// `help` anywhere is unambiguously a help request.
|
|
68
|
+
mcp: [],
|
|
54
69
|
};
|
|
55
70
|
/**
|
|
56
71
|
* True when `command` is an installer subcommand and `rest` requests help. Pure
|
|
@@ -166,6 +181,28 @@ export const INSTALLER_COMMAND_META = {
|
|
|
166
181
|
options: [],
|
|
167
182
|
aliasOf: "uninstall",
|
|
168
183
|
},
|
|
184
|
+
mcp: {
|
|
185
|
+
// Byte-identical to the row the top-level table printed by hand, so moving
|
|
186
|
+
// that row onto this meta changes no output.
|
|
187
|
+
summary: "Start the MCP stdio server (used by editors)",
|
|
188
|
+
usage: "argent mcp",
|
|
189
|
+
notes: [
|
|
190
|
+
"Speaks the Model Context Protocol over stdio: JSON-RPC requests on stdin,",
|
|
191
|
+
"responses on stdout. Editors launch it themselves — `argent init` writes the",
|
|
192
|
+
"`argent mcp` entry into the editor's MCP config — and start one server per",
|
|
193
|
+
"session. Run by hand it waits for JSON-RPC on stdin and looks like it has",
|
|
194
|
+
"hung; Ctrl-C to quit.",
|
|
195
|
+
"",
|
|
196
|
+
"It takes no options and owns stdout, so diagnostics go to stderr. Calls are",
|
|
197
|
+
"logged to ~/.argent/mcp-calls.log (override with ARGENT_MCP_LOG). Tools are",
|
|
198
|
+
"served by the argent tool-server, spawned on demand unless ARGENT_TOOLS_URL",
|
|
199
|
+
"or `argent link` points at one already running.",
|
|
200
|
+
"",
|
|
201
|
+
"To drive the same tools from a terminal, use `argent tools` and",
|
|
202
|
+
"`argent run <tool>`.",
|
|
203
|
+
],
|
|
204
|
+
options: [{ flag: "--help, -h", description: "Show this help." }],
|
|
205
|
+
},
|
|
169
206
|
};
|
|
170
207
|
/**
|
|
171
208
|
* Print the usage block for an installer subcommand — usage line, summary, the
|
|
@@ -175,6 +212,8 @@ export const INSTALLER_COMMAND_META = {
|
|
|
175
212
|
export function printInstallerHelp(command) {
|
|
176
213
|
const meta = INSTALLER_COMMAND_META[command];
|
|
177
214
|
const lines = ["", `Usage: ${meta.usage}`, "", `${meta.summary}.`];
|
|
215
|
+
if (meta.notes)
|
|
216
|
+
lines.push("", ...meta.notes);
|
|
178
217
|
if (meta.aliasOf) {
|
|
179
218
|
lines.push("", `Run \`argent ${meta.aliasOf} --help\` to see its options.`);
|
|
180
219
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installer-help.js","sourceRoot":"","sources":["../src/installer-help.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH
|
|
1
|
+
{"version":3,"file":"installer-help.js","sourceRoot":"","sources":["../src/installer-help.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,MAAM;IACN,SAAS;IACT,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,KAAK;CACG,CAAC;AAIX,MAAM,UAAU,kBAAkB,CAAC,OAA2B;IAC5D,OAAO,kBAAkB,CAAC,QAAQ,CAAC,OAA2B,CAAC,CAAC;AAClE,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,UAAU,CAAC,GAAW;IAC7B,4EAA4E;IAC5E,kBAAkB;IAClB,MAAM,KAAK,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACvD,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,OAAO,IAAI,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AAClG,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAgD;IAC7E,IAAI,EAAE,CAAC,QAAQ,CAAC;IAChB,OAAO,EAAE,CAAC,QAAQ,CAAC;IACnB,MAAM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,oDAAoD,EAAE,EAAE,CAAC,CAAC;IACzE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AAChC,CAAC"}
|
package/dist/installer.mjs
CHANGED
|
@@ -16034,6 +16034,7 @@ var FAILURE_CODES = {
|
|
|
16034
16034
|
CLI_RUN_FLAG_PARSE_FAILED: "CLI_RUN_FLAG_PARSE_FAILED",
|
|
16035
16035
|
CLI_RUN_ARGS_NOT_OBJECT: "CLI_RUN_ARGS_NOT_OBJECT",
|
|
16036
16036
|
CLI_RUN_ARGS_JSON_INVALID: "CLI_RUN_ARGS_JSON_INVALID",
|
|
16037
|
+
CLI_RUN_INPUT_VALIDATION_FAILED: "CLI_RUN_INPUT_VALIDATION_FAILED",
|
|
16037
16038
|
CLI_RUN_TOOL_CALL_FAILED: "CLI_RUN_TOOL_CALL_FAILED",
|
|
16038
16039
|
CLI_RUN_SAVE_IMAGE_FAILED: "CLI_RUN_SAVE_IMAGE_FAILED",
|
|
16039
16040
|
TOOL_CAPABILITY_UNSUPPORTED_OPERATION: "TOOL_CAPABILITY_UNSUPPORTED_OPERATION",
|
package/dist/mcp-server.mjs
CHANGED
|
@@ -18064,6 +18064,7 @@ var FAILURE_CODES = {
|
|
|
18064
18064
|
CLI_RUN_FLAG_PARSE_FAILED: "CLI_RUN_FLAG_PARSE_FAILED",
|
|
18065
18065
|
CLI_RUN_ARGS_NOT_OBJECT: "CLI_RUN_ARGS_NOT_OBJECT",
|
|
18066
18066
|
CLI_RUN_ARGS_JSON_INVALID: "CLI_RUN_ARGS_JSON_INVALID",
|
|
18067
|
+
CLI_RUN_INPUT_VALIDATION_FAILED: "CLI_RUN_INPUT_VALIDATION_FAILED",
|
|
18067
18068
|
CLI_RUN_TOOL_CALL_FAILED: "CLI_RUN_TOOL_CALL_FAILED",
|
|
18068
18069
|
CLI_RUN_SAVE_IMAGE_FAILED: "CLI_RUN_SAVE_IMAGE_FAILED",
|
|
18069
18070
|
TOOL_CAPABILITY_UNSUPPORTED_OPERATION: "TOOL_CAPABILITY_UNSUPPORTED_OPERATION",
|
package/dist/tool-server.cjs
CHANGED
|
@@ -210,6 +210,7 @@ var init_failure_codes = __esm({
|
|
|
210
210
|
CLI_RUN_FLAG_PARSE_FAILED: "CLI_RUN_FLAG_PARSE_FAILED",
|
|
211
211
|
CLI_RUN_ARGS_NOT_OBJECT: "CLI_RUN_ARGS_NOT_OBJECT",
|
|
212
212
|
CLI_RUN_ARGS_JSON_INVALID: "CLI_RUN_ARGS_JSON_INVALID",
|
|
213
|
+
CLI_RUN_INPUT_VALIDATION_FAILED: "CLI_RUN_INPUT_VALIDATION_FAILED",
|
|
213
214
|
CLI_RUN_TOOL_CALL_FAILED: "CLI_RUN_TOOL_CALL_FAILED",
|
|
214
215
|
CLI_RUN_SAVE_IMAGE_FAILED: "CLI_RUN_SAVE_IMAGE_FAILED",
|
|
215
216
|
TOOL_CAPABILITY_UNSUPPORTED_OPERATION: "TOOL_CAPABILITY_UNSUPPORTED_OPERATION",
|
package/package.json
CHANGED