@lambdacurry/arbor 0.21.26 → 0.21.27
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/arbor.js +32 -8
- package/package.json +1 -1
package/dist/arbor.js
CHANGED
|
@@ -20281,6 +20281,7 @@ var ACTION_DEFINITIONS = [
|
|
|
20281
20281
|
requestId: exports_external.string().describe("the request id, req_…"),
|
|
20282
20282
|
type: exports_external.enum(CONTRIBUTION_TYPES).describe("the contribution type"),
|
|
20283
20283
|
body: exports_external.string().min(1).describe("your response"),
|
|
20284
|
+
summary: exports_external.string().max(500).optional().describe("optional gist, 1-2 short sentences (HARD LIMIT 500 characters)"),
|
|
20284
20285
|
confidence: exports_external.number().int().min(0).max(100).optional(),
|
|
20285
20286
|
computerSessionId: exports_external.string().optional().describe("computer receipt to cite when the response came from computer work, cms_…"),
|
|
20286
20287
|
attachmentIds: exports_external.array(exports_external.string()).max(10).optional().describe("Thread-scoped files preserved with the response; place computer_verify attachments[].markdown in the body for exact inline image placement")
|
|
@@ -22208,11 +22209,29 @@ var COMMAND_WORD_OVERRIDES = {
|
|
|
22208
22209
|
feedback_thread_get: "feedback thread",
|
|
22209
22210
|
feedback_status: "feedback status"
|
|
22210
22211
|
};
|
|
22212
|
+
var MCP_COMMAND_ALIASES = {
|
|
22213
|
+
artifact_get: "get_artifact",
|
|
22214
|
+
artifact_transition: "transition_artifact",
|
|
22215
|
+
goal_delete: "delete_goal",
|
|
22216
|
+
goal_get: "get_goal",
|
|
22217
|
+
goal_list: "list_goals",
|
|
22218
|
+
notification_list: "notifications",
|
|
22219
|
+
space_invitation_list: "my_space_invites",
|
|
22220
|
+
space_leave: "leave_space",
|
|
22221
|
+
space_list_open: "list_open_spaces",
|
|
22222
|
+
watch_list: "watches"
|
|
22223
|
+
};
|
|
22211
22224
|
function commandWords(action) {
|
|
22212
22225
|
return COMMAND_WORD_OVERRIDES[action.name] ?? action.name.replace(/_/g, " ");
|
|
22213
22226
|
}
|
|
22214
22227
|
var CLI_ACTIONS = ACTIONS.filter((a) => a.surfaces.includes("cli") || a.surfaces.includes("computer-cli"));
|
|
22228
|
+
var BY_ACTION_NAME = new Map(CLI_ACTIONS.map((action) => [action.name, action]));
|
|
22215
22229
|
var BY_COMMAND = new Map(CLI_ACTIONS.map((a) => [commandWords(a), a]));
|
|
22230
|
+
for (const [alias2, actionName] of Object.entries(MCP_COMMAND_ALIASES)) {
|
|
22231
|
+
const action = BY_ACTION_NAME.get(actionName);
|
|
22232
|
+
if (action)
|
|
22233
|
+
BY_COMMAND.set(alias2, action);
|
|
22234
|
+
}
|
|
22216
22235
|
var MAX_WORDS = Math.max(1, ...CLI_ACTIONS.map((a) => commandWords(a).split(" ").length));
|
|
22217
22236
|
var POSITIONAL_FIELDS = {
|
|
22218
22237
|
contribute_arbor_feedback: ["body"],
|
|
@@ -22296,8 +22315,11 @@ function matchCommand(positionals) {
|
|
|
22296
22315
|
}
|
|
22297
22316
|
return;
|
|
22298
22317
|
}
|
|
22299
|
-
function
|
|
22300
|
-
return
|
|
22318
|
+
function toolNameAliases(action) {
|
|
22319
|
+
return [
|
|
22320
|
+
...action.name.includes("_") ? [action.name] : [],
|
|
22321
|
+
...Object.entries(MCP_COMMAND_ALIASES).filter(([, actionName]) => actionName === action.name).map(([alias2]) => alias2)
|
|
22322
|
+
];
|
|
22301
22323
|
}
|
|
22302
22324
|
function helpLine(action) {
|
|
22303
22325
|
const positionals = positionalSpecs(action);
|
|
@@ -22307,8 +22329,8 @@ function helpLine(action) {
|
|
|
22307
22329
|
const token = f.kind === "boolean" ? `--${f.flag}` : `--${f.flag} <>`;
|
|
22308
22330
|
return f.required ? token : `[${token}]`;
|
|
22309
22331
|
}).join(" ");
|
|
22310
|
-
const
|
|
22311
|
-
const head = ` ${commandWords(action)}${
|
|
22332
|
+
const aliases = toolNameAliases(action);
|
|
22333
|
+
const head = ` ${commandWords(action)}${aliases.length ? ` (${aliases.join(", ")})` : ""}${args}${flags ? ` ${flags}` : ""}`;
|
|
22312
22334
|
return `${head}
|
|
22313
22335
|
${action.description}`;
|
|
22314
22336
|
}
|
|
@@ -22347,11 +22369,13 @@ A single bare argument fills --${primary.flag} (e.g. \`arbor ${commandWords(acti
|
|
|
22347
22369
|
const explicitNote = explicitPositionals.length > 0 ? `
|
|
22348
22370
|
|
|
22349
22371
|
Bare arguments fill ${explicitPositionals.map((spec) => `--${spec.flag}`).join(" then ")}; the equivalent flags remain accepted.` : "";
|
|
22350
|
-
const
|
|
22351
|
-
const aliasNote =
|
|
22372
|
+
const aliases = toolNameAliases(action);
|
|
22373
|
+
const aliasNote = aliases.length === 1 ? `
|
|
22374
|
+
|
|
22375
|
+
Alias: \`arbor ${aliases[0]}\` (the tool-name form) resolves to this same command.` : aliases.length > 1 ? `
|
|
22352
22376
|
|
|
22353
|
-
|
|
22354
|
-
const heading = `${commandWords(action)}${
|
|
22377
|
+
Aliases: ${aliases.map((alias2) => `\`arbor ${alias2}\``).join(", ")} (tool-name forms) resolve to this same command.` : "";
|
|
22378
|
+
const heading = `${commandWords(action)}${aliases.length === 1 ? ` (alias: ${aliases[0]})` : aliases.length > 1 ? ` (aliases: ${aliases.join(", ")})` : ""}`;
|
|
22355
22379
|
const waitLines = action.name === "computer_exec" ? [
|
|
22356
22380
|
" --no-wait [<boolean>] [optional] — return a running processId immediately instead of polling computer_process_read"
|
|
22357
22381
|
] : [];
|
package/package.json
CHANGED