@mutagent/cli 0.2.176 → 0.2.178

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 +13 -5
  2. package/package.json +3 -3
package/dist/bin/cli.js CHANGED
@@ -28088,7 +28088,7 @@ function parseSessionPayload(data) {
28088
28088
  const record = parseRecord(data);
28089
28089
  if (!record)
28090
28090
  return null;
28091
- const { seq, ts, sessionId, status, exitCode, lastSeq, generation, mode } = record;
28091
+ const { seq, ts, sessionId, status, exitCode, lastSeq, generation, mode, reference } = record;
28092
28092
  if (typeof seq !== "number" || typeof sessionId !== "string" || typeof status !== "string") {
28093
28093
  return null;
28094
28094
  }
@@ -28100,7 +28100,8 @@ function parseSessionPayload(data) {
28100
28100
  exitCode: typeof exitCode === "number" ? exitCode : null,
28101
28101
  lastSeq: typeof lastSeq === "number" ? lastSeq : -1,
28102
28102
  generation: typeof generation === "number" ? generation : 0,
28103
- ...typeof mode === "string" ? { mode } : {}
28103
+ ...typeof mode === "string" ? { mode } : {},
28104
+ ...typeof reference === "string" ? { reference } : {}
28104
28105
  };
28105
28106
  }
28106
28107
  function parseLivePayload(data) {
@@ -28785,6 +28786,11 @@ async function runNativeSession(options) {
28785
28786
  signal: controller.signal
28786
28787
  });
28787
28788
  finished = true;
28789
+ const woke = result.session;
28790
+ if (woke?.reference !== undefined && (woke.status === "woken" || woke.status === "exited")) {
28791
+ stderr("[mutagent] " + JSON.stringify({ event: "woken", reference: woke.reference }) + `
28792
+ `);
28793
+ }
28788
28794
  if (interruptFailure !== undefined && result.end !== "exited")
28789
28795
  throw interruptFailure;
28790
28796
  if (inputFailure !== undefined)
@@ -30726,7 +30732,9 @@ function registerSessionAttach(session) {
30726
30732
  "AI Agent Directive:",
30727
30733
  " Output is Helix's own text or JSON lines on stdout; CLI messages go to stderr. --json does not change it.",
30728
30734
  " Ctrl-C stops watching without signalling the session.",
30729
- " A reference names one session; after a restore, take the new reference from session list."
30735
+ " A reference names one session; after a restore, take the new reference from session list.",
30736
+ ' When a send wakes the session, stderr carries [mutagent] {"event":"woken","reference":"hs1_..."}:',
30737
+ " this stream ends there; attach to that reference with --since 0."
30730
30738
  ].join(`
30731
30739
  `)).action(async (reference, options) => {
30732
30740
  try {
@@ -43818,7 +43826,7 @@ function rescopeProviderApiKeyFlag(rawArgs) {
43818
43826
  }
43819
43827
  // src/commands/helix/helix-surface.json
43820
43828
  var helix_surface_default = {
43821
- helixVersion: "0.4.15",
43829
+ helixVersion: "0.4.17",
43822
43830
  harnessVersion: "1.0.0",
43823
43831
  launcher: {
43824
43832
  commands: [
@@ -44332,4 +44340,4 @@ if (process.env.CLI_VERSION) {
44332
44340
  }
44333
44341
  runCli(process.argv.slice(2), cliVersion);
44334
44342
 
44335
- //# debugId=E008FED6BDA129C564756E2164756E21
44343
+ //# debugId=7CFB3C7B5797DB2564756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutagent/cli",
3
- "version": "0.2.176",
3
+ "version": "0.2.178",
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.11.1",
48
+ "@mutagent/sdk": "0.11.2",
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": "f3e8ae72788222d40a594f89d5a0a3a2c160f916"
97
+ "gitHead": "dcebd5cddacc6169a4688c05fec9c78a92a3f9b6"
98
98
  }