@mutmutco/cli 4.3.34 → 4.3.35
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/main.cjs +18 -16
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -15617,10 +15617,10 @@ var rollout_plan_default = {
|
|
|
15617
15617
|
note: "The v4.0.0 stamp happens at cut time (D6e #4463); until then the candidate is the origin/development head artifacts (built cli/dist + npm pack), identity proven by dist content hash (D6a)."
|
|
15618
15618
|
},
|
|
15619
15619
|
baseline: {
|
|
15620
|
-
version: "4.3.
|
|
15621
|
-
tag: "v4.3.
|
|
15622
|
-
commit: "
|
|
15623
|
-
npm: "@mutmutco/cli@4.3.
|
|
15620
|
+
version: "4.3.35",
|
|
15621
|
+
tag: "v4.3.35",
|
|
15622
|
+
commit: "837f809456ec",
|
|
15623
|
+
npm: "@mutmutco/cli@4.3.35"
|
|
15624
15624
|
},
|
|
15625
15625
|
exitCriterion: "fleet-n-of-n",
|
|
15626
15626
|
hubOnlyShortcut: "forbidden",
|
|
@@ -15637,14 +15637,14 @@ var rollout_plan_default = {
|
|
|
15637
15637
|
repo: "mutmutco/mmi-hub",
|
|
15638
15638
|
role: "canary",
|
|
15639
15639
|
schedule: "train",
|
|
15640
|
-
v3Target: "v4.3.
|
|
15640
|
+
v3Target: "v4.3.35"
|
|
15641
15641
|
}
|
|
15642
15642
|
],
|
|
15643
15643
|
rollbackTrigger: "Any red inside the post-contract soak window: `devops train gate` FAIL attributable to the v4 doors, Hub endpoint health probe failure, a pre-v4 client admitted instead of receiving actionable HTTP 426, or npm consumer install/doctor failure on the v4-only dist.",
|
|
15644
15644
|
rollback: {
|
|
15645
15645
|
independent: true,
|
|
15646
|
-
mechanism: "npm dist-tag latest -> 4.3.
|
|
15647
|
-
v3Target: "v4.3.
|
|
15646
|
+
mechanism: "npm dist-tag latest -> 4.3.35 and redeploy the Hub Lambda from tag v4.3.35 (837f809456ec); installed clients repair via `mmi-cli doctor`. No other cohort is touched.",
|
|
15647
|
+
v3Target: "v4.3.35 (@mutmutco/cli@4.3.35, tag commit 837f809456ec \u2014 last known-good release carrying the repo-index v4-only contract)"
|
|
15648
15648
|
}
|
|
15649
15649
|
},
|
|
15650
15650
|
{
|
|
@@ -25684,13 +25684,13 @@ function invalidateStatuslineBoardCache() {
|
|
|
25684
25684
|
function refuseRateLimited(e, json) {
|
|
25685
25685
|
if (!isRateLimitedError(e)) return false;
|
|
25686
25686
|
if (json) console.log(JSON.stringify(e.receipt));
|
|
25687
|
-
else console.error(`mmi-cli board claim failed: ${e.receipt.message} \u2014 retry: ${e.receipt.retryCommand}`);
|
|
25687
|
+
else console.error(`mmi-cli oracle board claim failed: ${e.receipt.message} \u2014 retry: ${e.receipt.retryCommand}`);
|
|
25688
25688
|
process.exitCode = 1;
|
|
25689
25689
|
return true;
|
|
25690
25690
|
}
|
|
25691
25691
|
function refuseNotClaimable(e, json) {
|
|
25692
25692
|
if (!isNotClaimable(e)) return false;
|
|
25693
|
-
const message2 = `board claim failed: ${e.message}`;
|
|
25693
|
+
const message2 = `oracle board claim failed: ${e.message}`;
|
|
25694
25694
|
if (json) {
|
|
25695
25695
|
console.log(formatErrorEnvelope(message2, {
|
|
25696
25696
|
code: ERROR_CODES.ERR_STATE_CONFLICT,
|
|
@@ -25765,7 +25765,7 @@ function registerBoardCommands(program3) {
|
|
|
25765
25765
|
board.command("read", { isDefault: true }).alias("list").description("read the board and print user-owned, claimable, and taken items").option("--json", "machine-readable output").option("--repo <owner/repo>", "current repo (defaults to git origin)").option("--direct", "bypass the Hub snapshot and read the live board through direct GitHub GraphQL").option("--bundle-details", "fetch body/comments only for user-owned and claimable issues").option("--bodies", "fetch body/comments for EVERY scoped row, including taken and unowned in-flight ones \u2014 for consumers that scope by Status rather than ownership (#4861); implies --bundle-details and costs one extra read per row").option("--allow-partial", "return partial board results when later page/detail reads fail").option("--out <path>", "write the output to this file as UTF-8 (no BOM) instead of stdout \u2014 the shell-free receipt path (#5802)").addHelpText("after", "\nread is always the authoritative live GitHub Project v2 board (#4926).\n--direct skips the Hub snapshot and uses the existing direct GitHub GraphQL read immediately.\n--allow-partial applies to the paginated path and detail reads.\n\nNever capture the JSON with a shell redirect on Windows: PowerShell 5.1's `> file.json` is Out-File,\nwhich writes UTF-16LE with a BOM, and Node reading it as 'utf8' then fails JSON.parse at position 1\n(#5802). Use --out instead \u2014 the CLI writes the file itself as UTF-8:\n mmi-cli oracle board read --json --out .jerv/tmp/board.json\n").action((o) => runBoardRead(o));
|
|
25766
25766
|
withExamples(mutating(
|
|
25767
25767
|
board.command("claim <issues...>").description("claim issues: assign them and move their Project v2 Status to In Progress \u2014 idempotent, so an item already yours and In Progress succeeds unchanged (one or more refs); the board scan rides the Hub snapshot, same as board read").addHelpText("after", "\nclaim reads the board through the same Hub snapshot leg as `board read` (the App-installation\ncredential, never your personal GraphQL pool); the direct user-auth read is an emergency fallback\nand is named in a Warning line after the verdict (#6162).\n\nevery claim stamps a lane-identity marker comment on the issue (`<!-- mmi-claim: \u2026 -->`,\nsurface/session@host) so other agents can attribute the hold (#3727). The session is the\nhost-exported id when the surface provides one, otherwise a per-process `synth-` fallback \u2014\na claim is never anonymous (#5245). `board show`, doctor and unclaim read the latest marker.\n\nsame-owner resume (#6035): when the prior marker was posted by YOUR login on THIS host and its\nlocal session is verifiably dead (transcript probe), the claim proceeds as a resume without\n--force and names the evidence. A live, foreign-host, or unprobeable prior lane still refuses.\n\nreclaim from In Review (#6339): an In Review item with no holder, or one held by the claiming\nlogin, is claimable \u2014 it moves back to In Progress and the receipt names the status it came from.\nAn In Review item another login holds is refused (ask the holder, or wait for the review to land),\nand Done stays refused. The board status is the authority; no PR state is consulted.\n").option("--json", "machine-readable output").option("--repo <owner/repo>", "current repo for local issue numbers (defaults to git origin)").option("--for <login>", "assign to this login instead of @me \u2014 agent claims on behalf of the master").option("--force", "take an item already claimed by another lane that shows live evidence of active work (#3727)").option("--check", "read-only: run every claim gate and report the verdict, writing nothing \u2014 exits 1 with the same refusal a real claim would raise (#4511)").option("--allow-partial", "return success JSON if assignment succeeds but the status move fails"),
|
|
25768
|
-
(_opts, args) => ({ command: "board claim", issues: args[0] ?? [] })
|
|
25768
|
+
(_opts, args) => ({ command: "oracle board claim", issues: args[0] ?? [] })
|
|
25769
25769
|
).action(async (issueRefs, o) => {
|
|
25770
25770
|
if (issueRefs.length === 1) {
|
|
25771
25771
|
const issueRef = issueRefs[0];
|
|
@@ -25787,7 +25787,7 @@ function registerBoardCommands(program3) {
|
|
|
25787
25787
|
} catch (e) {
|
|
25788
25788
|
if (refuseRateLimited(e, o.json)) return;
|
|
25789
25789
|
if (refuseNotClaimable(e, o.json)) return;
|
|
25790
|
-
return failGraceful(`board claim failed: ${e.message}`);
|
|
25790
|
+
return failGraceful(`oracle board claim failed: ${e.message}`);
|
|
25791
25791
|
}
|
|
25792
25792
|
return;
|
|
25793
25793
|
}
|
|
@@ -25815,7 +25815,7 @@ function registerBoardCommands(program3) {
|
|
|
25815
25815
|
if (bulk.failed > 0) process.exitCode = 1;
|
|
25816
25816
|
} catch (e) {
|
|
25817
25817
|
if (refuseRateLimited(e, o.json)) return;
|
|
25818
|
-
return failGraceful(`board claim failed: ${e.message}`);
|
|
25818
|
+
return failGraceful(`oracle board claim failed: ${e.message}`);
|
|
25819
25819
|
}
|
|
25820
25820
|
}), [
|
|
25821
25821
|
"mmi-cli oracle board claim 2680",
|
|
@@ -25827,7 +25827,9 @@ function registerBoardCommands(program3) {
|
|
|
25827
25827
|
"Multiple refs are handled as a batch and return per-item results.",
|
|
25828
25828
|
"--check is the live gate read (it calls GitHub); --dry-run only echoes the parsed argv plan.",
|
|
25829
25829
|
// #5552: agents guess `oracle issue claim`; that route does not exist — board claim is the only write.
|
|
25830
|
-
"Never run `oracle issue claim` \u2014 claims are board mutations; only `oracle board claim <ref>` is valid."
|
|
25830
|
+
"Never run `oracle issue claim` \u2014 claims are board mutations; only `oracle board claim <ref>` is valid.",
|
|
25831
|
+
// Flat Wave 0 alias: agents still type `mmi-cli board claim` and treat the refusal as a tool fault.
|
|
25832
|
+
"Never run the flat `board claim` \u2014 that Wave 0 alias was removed; only `mmi-cli oracle board claim <ref>` parses."
|
|
25831
25833
|
]);
|
|
25832
25834
|
board.command("show <issue>").description("print one board item (status, assignees, type, url) with its body and comments").option("--json", "machine-readable output").option("--repo <owner/repo>", "current repo for local issue numbers (defaults to git origin)").option("--allow-partial", "return the item even if its body/comments fetch fails").option("--out <path>", "write the output to this file as UTF-8 (no BOM) instead of stdout \u2014 the shell-free receipt path (#5802)").action(async (issueRef, o) => {
|
|
25833
25835
|
try {
|
|
@@ -32468,7 +32470,7 @@ var LOOP_PLAYBOOKS = {
|
|
|
32468
32470
|
{ label: "Read the next board item", command: "mmi-cli oracle board read" },
|
|
32469
32471
|
// #5552: claim is a board mutation only — never guess `oracle issue claim`. Ground unknown write
|
|
32470
32472
|
// routes with `mmi-cli commands` / `mmi-cli explain` before invoking them.
|
|
32471
|
-
{ label: "Claim board work (board mutation only \u2014 never `oracle issue claim`; ground unknown write routes via `commands` / `explain` first)", command: "mmi-cli oracle board claim <ref>" },
|
|
32473
|
+
{ label: "Claim board work (board mutation only \u2014 never `oracle issue claim` or the flat `board claim`; ground unknown write routes via `commands` / `explain` first)", command: "mmi-cli oracle board claim <ref>" },
|
|
32472
32474
|
{ label: "Prepare the local workspace through the host surface" },
|
|
32473
32475
|
{ label: "Before broad docs rewrites, follow docs/Guides/doc-ceremony-cut.md" },
|
|
32474
32476
|
{ label: "Apply the repository test policy, then build the touched package", command: "mmi-cli tests policy --base origin/development && npm run build" },
|
|
@@ -32485,7 +32487,7 @@ var LOOP_PLAYBOOKS = {
|
|
|
32485
32487
|
steps: [
|
|
32486
32488
|
{ label: "Orient in the current repository", command: "mmi-cli onboard" },
|
|
32487
32489
|
{ label: "Read the board item", command: "mmi-cli oracle board show <issue-number>" },
|
|
32488
|
-
{ label: "Claim the item (board mutation only \u2014 never `oracle issue claim`)", command: "mmi-cli oracle board claim <issue-number>" },
|
|
32490
|
+
{ label: "Claim the item (board mutation only \u2014 never `oracle issue claim` or the flat `board claim`)", command: "mmi-cli oracle board claim <issue-number>" },
|
|
32489
32491
|
{ label: "Prepare the local workspace through the host surface" },
|
|
32490
32492
|
{ label: "Start a local stage (deployable repos)", command: "mmi-cli stage run --apply" }
|
|
32491
32493
|
]
|
|
@@ -39707,7 +39709,7 @@ function registerCollaborationCommands(program3) {
|
|
|
39707
39709
|
function surfaceWaived() {
|
|
39708
39710
|
return rawFlag("--no-surface");
|
|
39709
39711
|
}
|
|
39710
|
-
const issue = program3.command("issue").description("issues \u2014 create and view with structured JSON (view; show, get and read alias view for board-verb/gh-shaped callers). Claims are board mutations: use `oracle board claim`, never `oracle issue claim`");
|
|
39712
|
+
const issue = program3.command("issue").description("issues \u2014 create and view with structured JSON (view; show, get and read alias view for board-verb/gh-shaped callers). Claims are board mutations: use `oracle board claim`, never `oracle issue claim` or the flat `board claim`");
|
|
39711
39713
|
withExamples(mutating(
|
|
39712
39714
|
issue.command("create").description("create an issue (type \u2014 label) and print {number,url,label} JSON").addOption(new Option("--type <type>", "bug | feature | task (sets the matching label; required unless --batch)").choices([...ISSUE_TYPES])).option("--title <title>", "issue title").option("--title-file <path|->", "read the issue title from a UTF-8 file, or from stdin with -").option("--body <body>", "issue body (markdown)").option("--body-file <path|->", "read issue body from a UTF-8 file. `-` (stdin) needs a heredoc, which the agent inline-body guard denies (#1473/#2125) \u2014 prefer a real path; a title with backticks needs --title-file for the same reason (#3381)").option("--priority <priority>", "urgent | high | medium | low (defaults to medium; sets the board Priority field only \u2014 never a priority:* label, #416)").option("--repo <owner/repo>", "target repo (defaults to the current repo)").option("--label <label...>", "extra label(s) to attach (repeatable; auto-created if missing)").option("--surface <surface>", "issue surface, with or without the surface: prefix (#3789). Required when the target repo runs the one-surface-label board rule; any value satisfies it, so this is not a closed enum").option("--no-surface", "file without a surface label on a repo that requires one \u2014 for a genuinely exempt filing (e.g. a coop proof issue that spans every surface)").option("--parent <ref>", "file as a native sub-issue of this parent (#123, owner/repo#123, or URL)").option("--no-related", "skip the auto related-issues comment"),
|
|
39713
39715
|
// --dry-run/--validate-only plan: resolve the same title source and validate the same type, priority,
|
package/package.json
CHANGED