@mutagent/cli 0.2.139 → 0.2.140

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/bin/cli.js +18 -9
  2. package/package.json +3 -3
package/dist/bin/cli.js CHANGED
@@ -22071,8 +22071,9 @@ The same token reads this workspace's reports: \`mutagent reports list --json\`
22071
22071
  \`mutagent reports show <id> --json\` work in a sandbox with no key. Review and
22072
22072
  retract need a signed-in key and fail with \`SANDBOX_SCOPE\` in a sandbox.
22073
22073
 
22074
- Locally none of this exists: pass the entry id, the run id and the build
22075
- (\`--build-target\`, \`--build-rev\`) explicitly. A command that needs one and gets
22074
+ Locally none of this exists: pass the entry id and the run id explicitly, and the
22075
+ build (\`--build-target\`, \`--build-rev\`) only when a build ran. With no build, leave
22076
+ both out rather than sending the checkout's HEAD. A command that needs an id and gets
22076
22077
  none fails with \`MISSING_ARGUMENTS\`; it never guesses.
22077
22078
 
22078
22079
  ## Binding
@@ -22144,9 +22145,12 @@ before the first use.
22144
22145
  a refusal there (its \`code\`) leaves the entry registered: tell the user the code.
22145
22146
  4. **Show the result.** Render \`_directive.renderedCard\` verbatim, then
22146
22147
  \`mutagent factory show <id> --json\` to show the targets and the spec version.
22147
- 5. **Record the spec stage**: \`mutagent factory stage record --stage spec --state succeeded --spec-version <n> --json\`
22148
+ 5. **Record the spec stage (required)**:
22149
+ \`mutagent factory stage record --stage spec --state succeeded --spec-version <n> --json\`
22148
22150
  (\`<n>\` the version just recorded; pass \`<id>\` first only when this checkout links several entries).
22149
- Do the same after a \`spec push\` of a new version.
22151
+ The spec stage has no report and no build, so pass neither \`--report\` nor the build flags. It
22152
+ still gets this record: skipping the report push never skips it. Do the same after a
22153
+ \`spec push\` of a new version. Check it with \`mutagent factory stage list <id> --json\`.
22150
22154
 
22151
22155
  | Refusal | What to do |
22152
22156
  |---|---|
@@ -22362,10 +22366,14 @@ Never run a stage in a local child process: no one could see it.
22362
22366
 
22363
22367
  ## P4: record a stage that ran locally
22364
22368
 
22365
- Locally nothing defaults: pass the entry, the spec version and the build.
22369
+ Locally nothing defaults: pass the entry and the spec version. Pass the build
22370
+ (\`--build-target\`, \`--build-rev\`) only when a build ran: a build stage or a build
22371
+ artifact exists for this work. Otherwise leave both out; the checkout's HEAD is not a
22372
+ build.
22366
22373
 
22367
22374
  1. **Open a run before the work** when it takes a while:
22368
- \`mutagent factory stage start <entry-id> --stage evaluate --spec-version <n> --build-target <target-id> --build-rev <rev> --json\`.
22375
+ \`mutagent factory stage start <entry-id> --stage evaluate --spec-version <n> --json\`, or
22376
+ \`mutagent factory stage start <entry-id> --stage evaluate --spec-version <n> --build-target <target-id> --build-rev <rev> --json\` (after a build).
22369
22377
  Keep the printed run id (\`sr_…\`).
22370
22378
  2. **Push the report**, attached to the run:
22371
22379
  \`mutagent reports push <run-dir> --stage-run <run-id> --json\`. The report
@@ -22373,7 +22381,8 @@ Locally nothing defaults: pass the entry, the spec version and the build.
22373
22381
  3. **Finish it:** \`mutagent factory stage finish <run-id> --state succeeded --verdict PASS --json\`.
22374
22382
 
22375
22383
  For work that already finished, one call records it, closed:
22376
- \`mutagent factory stage record <entry-id> --stage evaluate --state succeeded --verdict PASS --spec-version <n> --build-target <target-id> --build-rev <rev> --report <report-id> --json\`.
22384
+ \`mutagent factory stage record <entry-id> --stage evaluate --state succeeded --verdict PASS --spec-version <n> --report <report-id> --json\`, or
22385
+ \`mutagent factory stage record <entry-id> --stage evaluate --state succeeded --verdict PASS --spec-version <n> --build-target <target-id> --build-rev <rev> --report <report-id> --json\` (after a build).
22377
22386
  Push the report first (step 2 without \`--stage-run\`) to get its id.
22378
22387
 
22379
22388
  Confirm each write with the user first.
@@ -39187,7 +39196,7 @@ function registerRecord(stage) {
39187
39196
  ["VALIDATION_ERROR", "record takes a finished state; use stage start for a running one. --ended-at must not be before --started-at"],
39188
39197
  SCOPE3
39189
39198
  ],
39190
- directive: ["A write: confirm with the user first. Locally pass the build explicitly (--build-target, --build-rev)."]
39199
+ directive: ["A write: confirm with the user first. Locally pass the build (--build-target, --build-rev) only when a build ran; otherwise omit both, never the checkout HEAD."]
39191
39200
  })).action(async (id, options, command) => {
39192
39201
  await runAction(command, async (isJson, output) => {
39193
39202
  if (options.stage === undefined || options.state === undefined) {
@@ -40632,4 +40641,4 @@ if (process.env.CLI_VERSION) {
40632
40641
  }
40633
40642
  runCli(process.argv.slice(2), cliVersion);
40634
40643
 
40635
- //# debugId=13A1645D4E9B5AE164756E2164756E21
40644
+ //# debugId=B184832158B4433E64756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutagent/cli",
3
- "version": "0.2.139",
3
+ "version": "0.2.140",
4
4
  "description": "Bun-native CLI for the MutagenT AI platform - auth, provider config, and lifecycle-tool installer for AI-native workflows",
5
5
  "type": "module",
6
6
  "bin": {
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@inquirer/prompts": "^8.7.2",
48
- "@mutagent/sdk": "0.8.73",
48
+ "@mutagent/sdk": "0.8.74",
49
49
  "@sinclair/typebox": "^0.34.0",
50
50
  "chalk": "^5.3.0",
51
51
  "commander": "^12.1.0",
@@ -94,5 +94,5 @@
94
94
  "bugs": {
95
95
  "url": "https://docs.mutagent.io/support"
96
96
  },
97
- "gitHead": "dcb4a4909ee768037802ee4855d4ef1b5f98eb0e"
97
+ "gitHead": "e5f8c75b341d78f265b621a397c4f7efd67edfde"
98
98
  }