@mutagent/cli 0.2.176 → 0.2.177
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 +13 -5
- 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.
|
|
43829
|
+
helixVersion: "0.4.16",
|
|
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=
|
|
44343
|
+
//# debugId=01BD92C810DC6E9264756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mutagent/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.177",
|
|
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.
|
|
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": "
|
|
97
|
+
"gitHead": "2be36e5ef686eeb1876a8f80a5bdb46262683626"
|
|
98
98
|
}
|