@lambdacurry/arbor 0.4.29 → 0.4.30
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 +13 -4
- package/package.json +1 -1
package/dist/arbor.js
CHANGED
|
@@ -16973,12 +16973,16 @@ function matchCommand(positionals) {
|
|
|
16973
16973
|
}
|
|
16974
16974
|
return;
|
|
16975
16975
|
}
|
|
16976
|
+
function toolNameAlias(action) {
|
|
16977
|
+
return action.name.includes("_") ? action.name : "";
|
|
16978
|
+
}
|
|
16976
16979
|
function helpLine(action) {
|
|
16977
16980
|
const flags = flagsForSchema(action.inputSchema).map((f) => {
|
|
16978
16981
|
const token = f.kind === "boolean" ? `--${f.flag}` : `--${f.flag} <>`;
|
|
16979
16982
|
return f.required ? token : `[${token}]`;
|
|
16980
16983
|
}).join(" ");
|
|
16981
|
-
const
|
|
16984
|
+
const alias2 = toolNameAlias(action);
|
|
16985
|
+
const head = ` ${commandWords(action)}${alias2 ? ` (${alias2})` : ""}${flags ? ` ${flags}` : ""}`;
|
|
16982
16986
|
return `${head}
|
|
16983
16987
|
${action.description}`;
|
|
16984
16988
|
}
|
|
@@ -17005,12 +17009,17 @@ function commandHelp(positionals) {
|
|
|
17005
17009
|
const primaryNote = primary ? `
|
|
17006
17010
|
|
|
17007
17011
|
A single bare argument fills --${primary.flag} (e.g. \`arbor ${commandWords(action)} <${primary.field}>\`).` : "";
|
|
17008
|
-
|
|
17012
|
+
const alias2 = toolNameAlias(action);
|
|
17013
|
+
const aliasNote = alias2 ? `
|
|
17014
|
+
|
|
17015
|
+
Alias: \`arbor ${alias2}\` (the tool-name form) resolves to this same command.` : "";
|
|
17016
|
+
const heading = `${commandWords(action)}${alias2 ? ` (alias: ${alias2})` : ""}`;
|
|
17017
|
+
return `${heading} — ${action.description}
|
|
17009
17018
|
|
|
17010
17019
|
${usage}
|
|
17011
17020
|
|
|
17012
17021
|
${lines.join(`
|
|
17013
|
-
`)}${primaryNote}
|
|
17022
|
+
`)}${primaryNote}${aliasNote}
|
|
17014
17023
|
`;
|
|
17015
17024
|
}
|
|
17016
17025
|
function commandCatalog() {
|
|
@@ -17220,7 +17229,7 @@ async function renderMe(ctx, action) {
|
|
|
17220
17229
|
` : "") + spaceLines;
|
|
17221
17230
|
emitDual(me, human, action, ctx);
|
|
17222
17231
|
}
|
|
17223
|
-
var CLI_NOTE = `On this CLI, before your first write: commands are NOUN-VERB (\`thread get\`, \`space get\`, not \`get thread\`). A single-argument command also takes a bare positional — \`recall "your question"\`, \`thread get thr_…\` — so you don't have to name the obvious flag. Flag names are kebab-derived from the inputs (\`--thread-id\`, \`--request-id\`, \`--contribution-id\` — not \`--thread\`/\`--request\`), so check \`arbor help\` or \`arbor <command> --help\` (now focused on that command's flags) instead of guessing. Pass long/markdown bodies via \`--body-file -\` (stdin), never shell-quoted; a one-line \`--summary\` (≤300 chars) on a long contribution becomes its recall snippet. List inputs (e.g. \`--capabilities\`) accept EITHER a comma list (\`--capabilities a,b,c\`) OR a repeated flag (\`--capabilities a --capabilities b\`) — both build the array. \`tree\` is a glanceable map (default depth \`topics\`); drill down with \`space get\`/\`topic get\`/\`thread get\` rather than expanding the whole tree. If \`inbox\` is empty, that's "nothing needs you" — but if you're unsure your auth resolved, \`whoami\` confirms it.`;
|
|
17232
|
+
var CLI_NOTE = `On this CLI, before your first write: commands are NOUN-VERB (\`thread get\`, \`space get\`, not \`get thread\`). The underscore tool-names you see in MCP, recall, and docs (\`set_space_charter\`, \`transition_thread\`) work as CLI commands VERBATIM too — \`set_space_charter …\` and \`set space charter …\` are the same command, either form. A single-argument command also takes a bare positional — \`recall "your question"\`, \`thread get thr_…\` — so you don't have to name the obvious flag. Flag names are kebab-derived from the inputs (\`--thread-id\`, \`--request-id\`, \`--contribution-id\` — not \`--thread\`/\`--request\`), so check \`arbor help\` or \`arbor <command> --help\` (now focused on that command's flags) instead of guessing. Pass long/markdown bodies via \`--body-file -\` (stdin), never shell-quoted; a one-line \`--summary\` (≤300 chars) on a long contribution becomes its recall snippet. List inputs (e.g. \`--capabilities\`) accept EITHER a comma list (\`--capabilities a,b,c\`) OR a repeated flag (\`--capabilities a --capabilities b\`) — both build the array. \`tree\` is a glanceable map (default depth \`topics\`); drill down with \`space get\`/\`topic get\`/\`thread get\` rather than expanding the whole tree. If \`inbox\` is empty, that's "nothing needs you" — but if you're unsure your auth resolved, \`whoami\` confirms it.`;
|
|
17224
17233
|
function renderOrient(ctx) {
|
|
17225
17234
|
emitDual({ orientation: ORIENTATION, cliNote: CLI_NOTE }, `${ORIENTATION}
|
|
17226
17235
|
|
package/package.json
CHANGED