@mutagent/cli 0.2.132 → 0.2.133

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/bin/cli.js CHANGED
@@ -455,7 +455,7 @@ function sandboxScopedFailure(failure, commandPath) {
455
455
  return failure;
456
456
  const command = commandPath === "" ? "This command" : `\`mutagent ${commandPath}\``;
457
457
  const alternative = SANDBOX_ALTERNATIVES[commandPath.split(" ")[0] ?? ""];
458
- return new MutagentError("SANDBOX_SCOPE", `${command} isn't available inside a cloud session: this session is signed in with its own session token, which covers the Factory, traces, pushing and updating reports, and this session.`, alternative === undefined ? "Inside this session use the Factory and traces commands, or reports push and reports update (mutagent --help lists them)." : `Run: ${alternative}`);
458
+ return new MutagentError("SANDBOX_SCOPE", `${command} isn't available inside a cloud session: this session is signed in with its own session token, which covers the Factory, traces, pushing, updating, listing and showing reports, and this session.`, alternative === undefined ? "Inside this session use the Factory and traces commands, or reports push, reports update, reports list or reports show (mutagent --help lists them)." : `Run: ${alternative}`);
459
459
  }
460
460
  var SANDBOX_TOKEN_VAR2 = "MUTAGENT_SANDBOX_TOKEN", SANDBOX_ALTERNATIVES;
461
461
  var init_sandbox_scope_error = __esm(() => {
@@ -21893,7 +21893,7 @@ skill never inlines flags. The active surface:
21893
21893
  | \`factory\` | Register entries from their agentspec; list, show, archive | [workflows/factory-register.md](./workflows/factory-register.md) |
21894
21894
  | \`factory spec\` | Spec versions: status, push, get, versions | [workflows/factory-spec-sync.md](./workflows/factory-spec-sync.md) |
21895
21895
  | \`factory stage\` | Stage runs: start, finish, record, list, show | [workflows/factory-stages.md](./workflows/factory-stages.md) |
21896
- | \`reports\` | Push a run's report (with its stage run and build), update, review | [workflows/factory-stages.md](./workflows/factory-stages.md) |
21896
+ | \`reports\` | Push a run's report (with its stage run and build), update, list, show, review | [workflows/factory-stages.md](./workflows/factory-stages.md) |
21897
21897
  | \`traces\` | Read sessions, traces, logs and transcripts by session id | [workflows/traces.md](./workflows/traces.md) |
21898
21898
 
21899
21899
  ---
@@ -22067,6 +22067,9 @@ with no run id, and \`mutagent reports push <run-dir> --json\` with no
22067
22067
  \`--stage-run\`: the server attaches the report to the session's open run, with its
22068
22068
  entry, spec version and build (the checkout's HEAD). A report's run id comes from
22069
22069
  \`--run-id\`, else the report's own render input (its \`runId\`).
22070
+ The same token reads this workspace's reports: \`mutagent reports list --json\` and
22071
+ \`mutagent reports show <id> --json\` work in a sandbox with no key. Review and
22072
+ retract need a signed-in key and fail with \`SANDBOX_SCOPE\` in a sandbox.
22070
22073
 
22071
22074
  Locally none of this exists: pass the entry id, the run id and the build
22072
22075
  (\`--build-target\`, \`--build-rev\`) explicitly. A command that needs one and gets
@@ -34066,7 +34069,7 @@ init_sdk_debug();
34066
34069
  var SDK_TRANSPORT_ERRORS3 = new Set(["ConnectionError", "RequestTimeoutError", "RequestAbortedError", "UnexpectedClientError"]);
34067
34070
  var SDK_SCHEMA_ERRORS2 = new Set(["SDKValidationError", "ResponseValidationError"]);
34068
34071
  function notSignedIn(inBox) {
34069
- return inBox ? new MutagentError("SANDBOX_SCOPE", "Only `mutagent reports push` and `reports update` work with this session's token; reading reports isn't available inside a cloud session.", "Inside this session, write reports with mutagent reports push or mutagent reports update.") : new MutagentError("AUTH_REQUIRED", "Not signed in.", "Run: mutagent login");
34072
+ return inBox ? new MutagentError("SANDBOX_SCOPE", "This session's token covers `mutagent reports push`, `update`, `list` and `show` only; this command isn't available inside a cloud session.", "Run: mutagent reports list") : new MutagentError("AUTH_REQUIRED", "Not signed in.", "Run: mutagent login");
34070
34073
  }
34071
34074
  function parseBody3(body) {
34072
34075
  try {
@@ -34261,13 +34264,15 @@ Examples:
34261
34264
  ${chalk53.dim("$")} mutagent reports list --cursor <nextCursor> --json
34262
34265
 
34263
34266
  Filters combine with AND. A page ends with nextCursor; pass it as --cursor for the next.
34267
+ Inside a sandbox with no API key, the sandbox's MUTAGENT_SANDBOX_TOKEN lists its own
34268
+ workspace's reports.
34264
34269
 
34265
34270
  AI Agent Directive:
34266
34271
  --json returns { reports, count, nextCursor }. nextCursor null is the last page.
34267
34272
  Reading is free: run it before any review or retract.
34268
34273
  `).action(async (options, command) => {
34269
34274
  await runReportsAction(command, async (isJson) => {
34270
- const conn = await connectReports({ sandboxBearer: false });
34275
+ const conn = await connectReports({ sandboxBearer: true });
34271
34276
  const page = await conn.call((r) => r.listReports({
34272
34277
  ...options.subject === undefined ? {} : { subject: options.subject },
34273
34278
  ...options.kind === undefined ? {} : { kind: options.kind },
@@ -34296,6 +34301,8 @@ Examples:
34296
34301
  ${chalk53.dim("$")} mutagent reports show rep_123 --html report.html --json
34297
34302
 
34298
34303
  The HTML is never printed; it is served as a file under a sandboxing CSP.
34304
+ Inside a sandbox with no API key, the sandbox's MUTAGENT_SANDBOX_TOKEN reads reports of
34305
+ its own workspace; any other id is REPORT_NOT_FOUND.
34299
34306
 
34300
34307
  AI Agent Directive:
34301
34308
  --json returns { report, sessionRef, harnessSessionId, specVersion, buildRef, renderInput,
@@ -34303,7 +34310,7 @@ AI Agent Directive:
34303
34310
  Helix itself used (null when not known); sessionRef is the hs1_ reference. An unknown id is REPORT_NOT_FOUND, exit 1.
34304
34311
  `).action(async (id, options, command) => {
34305
34312
  await runReportsAction(command, async (isJson) => {
34306
- const conn = await connectReports({ sandboxBearer: false });
34313
+ const conn = await connectReports({ sandboxBearer: true });
34307
34314
  const detail = await conn.call((r) => r.getReport({ id }));
34308
34315
  let htmlFile;
34309
34316
  if (options.html !== undefined) {
@@ -40620,4 +40627,4 @@ if (process.env.CLI_VERSION) {
40620
40627
  }
40621
40628
  runCli(process.argv.slice(2), cliVersion);
40622
40629
 
40623
- //# debugId=8D7F27126F75763C64756E2164756E21
40630
+ //# debugId=CDD020584ED3A16264756E2164756E21
package/dist/index.js CHANGED
@@ -454,7 +454,7 @@ function sandboxScopedFailure(failure, commandPath) {
454
454
  return failure;
455
455
  const command = commandPath === "" ? "This command" : `\`mutagent ${commandPath}\``;
456
456
  const alternative = SANDBOX_ALTERNATIVES[commandPath.split(" ")[0] ?? ""];
457
- return new MutagentError("SANDBOX_SCOPE", `${command} isn't available inside a cloud session: this session is signed in with its own session token, which covers the Factory, traces, pushing and updating reports, and this session.`, alternative === undefined ? "Inside this session use the Factory and traces commands, or reports push and reports update (mutagent --help lists them)." : `Run: ${alternative}`);
457
+ return new MutagentError("SANDBOX_SCOPE", `${command} isn't available inside a cloud session: this session is signed in with its own session token, which covers the Factory, traces, pushing, updating, listing and showing reports, and this session.`, alternative === undefined ? "Inside this session use the Factory and traces commands, or reports push, reports update, reports list or reports show (mutagent --help lists them)." : `Run: ${alternative}`);
458
458
  }
459
459
  var SANDBOX_TOKEN_VAR2 = "MUTAGENT_SANDBOX_TOKEN", SANDBOX_ALTERNATIVES;
460
460
  var init_sandbox_scope_error = __esm(() => {
@@ -2088,4 +2088,4 @@ export {
2088
2088
  version
2089
2089
  };
2090
2090
 
2091
- //# debugId=2497007B7285F9A164756E2164756E21
2091
+ //# debugId=844723769E2CA5CA64756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutagent/cli",
3
- "version": "0.2.132",
3
+ "version": "0.2.133",
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": {