@lambdacurry/arbor 0.11.0 → 0.11.1

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.
Files changed (2) hide show
  1. package/dist/arbor.js +9 -1
  2. package/package.json +1 -1
package/dist/arbor.js CHANGED
@@ -17604,6 +17604,13 @@ function suggestCommand(positionals) {
17604
17604
  }
17605
17605
  return "run `arbor help` for the command list";
17606
17606
  }
17607
+ function listFileHint(action, unknownFlag) {
17608
+ const target = flagsForSchema(action.inputSchema).find((f) => f.kind === "array" && unknownFlag === `${f.flag}-file`);
17609
+ if (!target)
17610
+ return "";
17611
+ const commaForm = target.literal ? "" : `, or one comma-separated value (--${target.flag} a,b,c)`;
17612
+ return `--${target.flag} is a list: repeat it per item (--${target.flag} "…" --${target.flag} "…")${commaForm}, or pass a whole JSON array`;
17613
+ }
17607
17614
  function matchCommand(positionals) {
17608
17615
  for (let n = Math.min(MAX_WORDS, positionals.length);n >= 1; n--) {
17609
17616
  const key = positionals.slice(0, n).join(" ");
@@ -17703,7 +17710,8 @@ async function runObjectVerb(positionals, flags, ctx) {
17703
17710
  const accepted = acceptedFlags(action.inputSchema);
17704
17711
  const unknown2 = Object.keys(flags).filter((f) => !accepted.has(f) && !RESERVED_FLAGS.has(f));
17705
17712
  if (unknown2.length > 0) {
17706
- throw new UsageError(`unknown flag${unknown2.length > 1 ? "s" : ""}: ${unknown2.map((f) => `--${f}`).join(", ")}`);
17713
+ const hints = unknown2.map((f) => listFileHint(action, f)).filter(Boolean);
17714
+ throw new UsageError(`unknown flag${unknown2.length > 1 ? "s" : ""}: ${unknown2.map((f) => `--${f}`).join(", ")}${hints.length > 0 ? ` — ${hints.join("; ")}` : ""}`);
17707
17715
  }
17708
17716
  const input = buildInput(action.inputSchema, flags, commandWords(action));
17709
17717
  if (action.name === "agent_register") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambdacurry/arbor",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "The Arbor CLI — a shared workspace for people and agents. The human + headless-agent write path over Arbor's guarded operation surface.",
5
5
  "keywords": [
6
6
  "agents",