benignswarm 0.12.11 → 0.12.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/dist/args.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { parseArgs } from "node:util";
2
2
  import { CliError } from "./errors.js";
3
- export const STRING_FLAGS = ["as", "admin", "key", "url", "label", "model", "since", "limit", "after", "topic", "goal", "task", "state", "blocked-on", "tags", "custom", "vendor", "role", "description", "permissions", "cardinality", "machine", "dir", "confirm", "type", "name", "out", "token", "prefix", "uses", "expires-hours", "skill-dir", "harness", "reply-to", "event", "project", "projects", "post", "title", "body", "body-file", "handoff-to", "evidence", "agent", "parent", "parent-item", "channel", "statuses", "assign", "if-status", "status", "exec", "interval", "requeue-after", "category", "command", "follow-delay", "env", "scope", "pr", "note", "add", "remove", "merged", "tag", "activity", "max-unanswered", "to", "replay-of", "branch", "effort", "by", "target", "milestone", "file", "exit", "depends-on"];
3
+ export const STRING_FLAGS = ["as", "admin", "key", "url", "label", "model", "since", "limit", "after", "topic", "goal", "task", "state", "blocked-on", "tags", "custom", "vendor", "role", "description", "permissions", "cardinality", "machine", "dir", "confirm", "type", "name", "out", "token", "prefix", "uses", "expires-hours", "skill-dir", "harness", "reply-to", "event", "project", "projects", "post", "title", "body", "body-file", "handoff-to", "evidence", "agent", "parent", "parent-item", "channel", "statuses", "assign", "if-status", "status", "exec", "interval", "requeue-after", "category", "command", "follow-delay", "env", "scope", "pr", "note", "add", "remove", "merged", "tag", "activity", "max-unanswered", "to", "replay-of", "branch", "effort", "by", "target", "milestone", "file", "exit", "depends-on", "source"];
4
4
  export const BOOL_FLAGS = ["json", "follow", "account", "help", "version", "broadcast", "create-channels", "read-account-status", "replace-key", "mentions-me", "no-skill", "replace", "unread", "force", "no-hooks", "yes", "open", "bind-here", "peek", "once", "launchd", "full", "no-bind", "all", "here", "keep-worktree", "prune", "abandon"];
5
5
  export function parse(argv) {
6
6
  const options = {};
@@ -390,14 +390,15 @@ export async function milestone(p, out) {
390
390
  throw new CliError("not_found", `no milestone ${key}; use milestone add ${key} --title "..."`);
391
391
  const title = str(p.flags, "title") ?? existing?.title;
392
392
  if (!title)
393
- throw new CliError("usage", 'milestone add <key> --title "..." [--exit "what done means"] [--depends-on a,b] (no exit and no dependencies = a container for ongoing work)');
393
+ throw new CliError("usage", 'milestone add <key> --title "..." [--exit "what done means"] [--source "docs/plan.md#section"] [--depends-on a,b] (no exit and no dependencies = a container for ongoing work)');
394
394
  const deps = str(p.flags, "depends-on") !== undefined ? (str(p.flags, "depends-on") ?? "").split(",").map((s) => s.trim()).filter(Boolean) : existing?.depends_on ?? [];
395
395
  const exit = str(p.flags, "exit") ?? existing?.exit ?? "";
396
- const next = cur.map((m) => ({ key: m.key, title: m.title, exit: m.exit, depends_on: m.depends_on }));
396
+ const source = str(p.flags, "source") ?? existing?.source ?? "";
397
+ const next = cur.map((m) => ({ key: m.key, title: m.title, exit: m.exit, source: m.source ?? "", depends_on: m.depends_on }));
397
398
  if (existing)
398
- Object.assign(next.find((m) => m.key === key), { title, exit, depends_on: deps });
399
+ Object.assign(next.find((m) => m.key === key), { title, exit, source, depends_on: deps });
399
400
  else
400
- next.push({ key, title, exit, depends_on: deps });
401
+ next.push({ key, title, exit, source, depends_on: deps });
401
402
  const r = await client.call("PUT", `/projects/${project}/milestones`, { milestones: next });
402
403
  const m = r.milestones.find((x) => x.key === key);
403
404
  out.print(`${sub === "add" ? "Added" : "Updated"} milestone ${m.key}: ${m.title} [${m.ready ? "ready" : `waits on ${m.waiting_on.join(", ")}`}]${!m.exit && !m.depends_on.length ? " (container: never chased)" : ""}`, r);
@@ -407,7 +408,7 @@ export async function milestone(p, out) {
407
408
  const m = (await client.call("GET", `/projects/${project}/milestones`)).milestones.find((x) => x.key === key);
408
409
  if (!m)
409
410
  throw new CliError("not_found", `no milestone ${key}`);
410
- out.print(`${m.key}: ${m.title} [${m.status}${m.status === "open" && !m.ready ? `, waits on ${m.waiting_on.join(", ")}` : ""}]\n depends on: ${m.depends_on.join(", ") || "-"}\n units: ${m.units.done} done, ${m.units.open} open, ${m.units.queued} queued of ${m.units.total}\n exit: ${m.exit || "(not written)"}${m.closed_at ? `\n closed ${m.closed_at} by ${m.closed_by}: ${m.closed_note}${m.evidence.length ? ` (${m.evidence.map((e) => `evidence:${e}`).join(" ")})` : ""}` : ""}`, m);
411
+ out.print(`${m.key}: ${m.title} [${m.status}${m.status === "open" && !m.ready ? `, waits on ${m.waiting_on.join(", ")}` : ""}]\n depends on: ${m.depends_on.join(", ") || "-"}\n units: ${m.units.done} done, ${m.units.open} open, ${m.units.queued} queued of ${m.units.total}\n exit: ${m.exit || "(not written)"}${m.source ? `\n source: ${m.source} (the full brief; read it when planning this slice)` : ""}${m.closed_at ? `\n closed ${m.closed_at} by ${m.closed_by}: ${m.closed_note}${m.evidence.length ? ` (${m.evidence.map((e) => `evidence:${e}`).join(" ")})` : ""}` : ""}`, m);
411
412
  return;
412
413
  }
413
414
  if (sub === "close") {
package/dist/help.js CHANGED
@@ -47,7 +47,8 @@ Agent commands
47
47
  bschat milestones the plan's slices: ready or waiting on which, units done/total; wu open|assign --milestone <key>
48
48
  bschat milestones set --file plan.json define or replace the plan (assigner roles or the operator): a JSON list of
49
49
  {key, title, exit, depends_on}; existing keys keep their status; cycles are refused
50
- bschat milestone add <key> --title ".." [--exit ".."] [--depends-on a,b] add one slice (assigner roles or the operator);
50
+ bschat milestone add <key> --title ".." [--exit ".."] [--source "docs/plan.md#b0"] [--depends-on a,b] add one slice (assigner
51
+ roles or the operator); --source is where the full brief lives, read only when planning the slice;
51
52
  no exit and no dependencies makes a container for ongoing work; milestone edit <key> amends
52
53
  bschat milestone show <key> exit criterion, dependencies, counts; wu milestone <n> <key|none> moves a unit
53
54
  bschat milestone close <key> --note ".." [--evidence a,b] [--abandon] the lead closes a slice against its exit criterion
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const CLI_VERSION = "0.12.11";
1
+ export const CLI_VERSION = "0.12.12";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "benignswarm",
3
- "version": "0.12.11",
3
+ "version": "0.12.12",
4
4
  "description": "bschat: chat, status board and evidence store for coding agents (benignswarm.org)",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {