@rallycry/conveyor-agent 10.4.4 → 10.5.0
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/{chunk-VCXKVINO.js → chunk-MSDYMAG3.js} +36 -1
- package/dist/chunk-MSDYMAG3.js.map +1 -0
- package/dist/cli.js +381 -47
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +22 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-VCXKVINO.js.map +0 -1
|
@@ -197,6 +197,8 @@ var AgentConnection = class _AgentConnection {
|
|
|
197
197
|
earlyPullBranches = [];
|
|
198
198
|
spawnReviewCallback = null;
|
|
199
199
|
earlySpawnReviews = [];
|
|
200
|
+
spawnTuiCallback = null;
|
|
201
|
+
earlySpawnTuis = [];
|
|
200
202
|
// PTY relay (S5 terminal). Single-slot callbacks, set per PtySession run.
|
|
201
203
|
ptyInputCallback = null;
|
|
202
204
|
ptyResizeCallback = null;
|
|
@@ -404,6 +406,10 @@ var AgentConnection = class _AgentConnection {
|
|
|
404
406
|
if (this.spawnReviewCallback) this.spawnReviewCallback(data);
|
|
405
407
|
else this.earlySpawnReviews.push(data);
|
|
406
408
|
});
|
|
409
|
+
this.socket.on("session:spawnTui", (data) => {
|
|
410
|
+
if (this.spawnTuiCallback) this.spawnTuiCallback(data);
|
|
411
|
+
else this.earlySpawnTuis.push(data);
|
|
412
|
+
});
|
|
407
413
|
this.socket.on("session:finalizeSnapshot", () => {
|
|
408
414
|
this.finalizeSnapshotCallback?.();
|
|
409
415
|
});
|
|
@@ -659,6 +665,25 @@ var AgentConnection = class _AgentConnection {
|
|
|
659
665
|
}).catch(() => {
|
|
660
666
|
});
|
|
661
667
|
}
|
|
668
|
+
onSpawnTui(callback) {
|
|
669
|
+
this.spawnTuiCallback = callback;
|
|
670
|
+
for (const data of this.earlySpawnTuis) callback(data);
|
|
671
|
+
this.earlySpawnTuis = [];
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* Report that a same-pod TUI/shell child failed to spawn (fire-and-forget).
|
|
675
|
+
* The server Ends the orphaned session — no fallback pod (unlike review).
|
|
676
|
+
* sessionId is OUR (builder) session — the SEC-9 guard runs on it.
|
|
677
|
+
*/
|
|
678
|
+
reportSessionSpawnFailure(spawnedSessionId, error) {
|
|
679
|
+
if (!this.socket) return;
|
|
680
|
+
void this.call("reportSessionSpawnFailure", {
|
|
681
|
+
sessionId: this.config.sessionId,
|
|
682
|
+
spawnedSessionId,
|
|
683
|
+
...error ? { error: error.slice(0, 2e3) } : {}
|
|
684
|
+
}).catch(() => {
|
|
685
|
+
});
|
|
686
|
+
}
|
|
662
687
|
onFinalizeSnapshot(callback) {
|
|
663
688
|
this.finalizeSnapshotCallback = callback;
|
|
664
689
|
}
|
|
@@ -2279,6 +2304,15 @@ var ReportReviewSpawnFailureRequestSchema = z.object({
|
|
|
2279
2304
|
reviewSessionId: z.string(),
|
|
2280
2305
|
error: z.string().max(2e3).optional()
|
|
2281
2306
|
});
|
|
2307
|
+
var SpawnTaskSessionRequestSchema = z.object({
|
|
2308
|
+
taskId: z.string(),
|
|
2309
|
+
kind: z.enum(["tui", "shell"])
|
|
2310
|
+
});
|
|
2311
|
+
var ReportSessionSpawnFailureRequestSchema = z.object({
|
|
2312
|
+
sessionId: z.string(),
|
|
2313
|
+
spawnedSessionId: z.string(),
|
|
2314
|
+
error: z.string().max(2e3).optional()
|
|
2315
|
+
});
|
|
2282
2316
|
var RefreshGithubTokenResponseSchema = z.object({
|
|
2283
2317
|
token: z.string()
|
|
2284
2318
|
});
|
|
@@ -11077,6 +11111,7 @@ export {
|
|
|
11077
11111
|
DEFAULT_LIFECYCLE_CONFIG,
|
|
11078
11112
|
Lifecycle,
|
|
11079
11113
|
cleanTerminalOutput,
|
|
11114
|
+
loadPtySpawn,
|
|
11080
11115
|
inheritedEnv,
|
|
11081
11116
|
buildPromptBytes,
|
|
11082
11117
|
ClaudeTuiAdapter,
|
|
@@ -11110,4 +11145,4 @@ export {
|
|
|
11110
11145
|
runStartCommand,
|
|
11111
11146
|
unshallowRepo
|
|
11112
11147
|
};
|
|
11113
|
-
//# sourceMappingURL=chunk-
|
|
11148
|
+
//# sourceMappingURL=chunk-MSDYMAG3.js.map
|