@rallycry/conveyor-agent 10.4.0 → 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-TZYEU4QE.js → chunk-MSDYMAG3.js} +190 -91
- 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 +25 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-TZYEU4QE.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -46,6 +46,19 @@ interface SpawnReviewData {
|
|
|
46
46
|
prNumber?: number | null;
|
|
47
47
|
checkoutRef?: string | null;
|
|
48
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Server push asking the builder pod to spawn an extra interactive child on
|
|
51
|
+
* this pod: a second Claude TUI (mode "adhoc") or a raw login shell (mode
|
|
52
|
+
* "shell"), each bound to a fresh WorkspaceSession (sessionId + sessionJwt).
|
|
53
|
+
* No taskId on the wire — the child inherits the parent's CONVEYOR_TASK_ID
|
|
54
|
+
* and the server derives it from the JWT (SEC-9).
|
|
55
|
+
*/
|
|
56
|
+
interface SpawnTuiData {
|
|
57
|
+
sessionId: string;
|
|
58
|
+
sessionJwt: string;
|
|
59
|
+
mode: "adhoc" | "shell";
|
|
60
|
+
projectId: string;
|
|
61
|
+
}
|
|
49
62
|
declare class AgentConnection {
|
|
50
63
|
private socket;
|
|
51
64
|
private readonly config;
|
|
@@ -75,6 +88,8 @@ declare class AgentConnection {
|
|
|
75
88
|
private earlyPullBranches;
|
|
76
89
|
private spawnReviewCallback;
|
|
77
90
|
private earlySpawnReviews;
|
|
91
|
+
private spawnTuiCallback;
|
|
92
|
+
private earlySpawnTuis;
|
|
78
93
|
private ptyInputCallback;
|
|
79
94
|
private ptyResizeCallback;
|
|
80
95
|
constructor(config: AgentConnectionConfig);
|
|
@@ -132,6 +147,13 @@ declare class AgentConnection {
|
|
|
132
147
|
* it; the review session is identified separately.
|
|
133
148
|
*/
|
|
134
149
|
reportReviewSpawnFailure(reviewSessionId: string, error?: string): void;
|
|
150
|
+
onSpawnTui(callback: (data: SpawnTuiData) => void): void;
|
|
151
|
+
/**
|
|
152
|
+
* Report that a same-pod TUI/shell child failed to spawn (fire-and-forget).
|
|
153
|
+
* The server Ends the orphaned session — no fallback pod (unlike review).
|
|
154
|
+
* sessionId is OUR (builder) session — the SEC-9 guard runs on it.
|
|
155
|
+
*/
|
|
156
|
+
reportSessionSpawnFailure(spawnedSessionId: string, error?: string): void;
|
|
135
157
|
onFinalizeSnapshot(callback: () => void): void;
|
|
136
158
|
onRunStartCommand(callback: () => void): void;
|
|
137
159
|
/**
|
|
@@ -160,7 +182,7 @@ declare class AgentConnection {
|
|
|
160
182
|
onPtyInput(handler: (data: string) => void): () => void;
|
|
161
183
|
/** Subscribe to relayed (reconciled) terminal resizes. Returns an unsubscribe fn. */
|
|
162
184
|
onPtyResize(handler: (cols: number, rows: number) => void): () => void;
|
|
163
|
-
emitStatus(status: string, reason?: string): Promise<void>;
|
|
185
|
+
emitStatus(status: string, reason?: string, questionText?: string): Promise<void>;
|
|
164
186
|
postChatMessage(content: string): void;
|
|
165
187
|
postChatMessageAwait(content: string): Promise<void>;
|
|
166
188
|
private suppressIfDuplicate;
|
|
@@ -507,8 +529,8 @@ declare class SessionRunner {
|
|
|
507
529
|
* the preStop hook + SIGTERM flush don't get a chance to run. No-ops on a
|
|
508
530
|
* clean tree. Guarded so two ticks can't overlap. Never throws. */
|
|
509
531
|
private periodicGitFlush;
|
|
510
|
-
/** Sample the running Claude subscription key's rate-limit utilization from
|
|
511
|
-
*
|
|
532
|
+
/** Sample the running Claude subscription key's rate-limit utilization from
|
|
533
|
+
* the Claude CLI `/usage` command and report it as `rate_limit_update` events.
|
|
512
534
|
* The API (`persistRateLimitSnapshot`) attributes them to the key this session
|
|
513
535
|
* launched under, keeping User Settings + the PtY-tab usage widget fresh and
|
|
514
536
|
* `selectBestKey` rotation honest. Best-effort — never throws, no-op when the
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rallycry/conveyor-agent",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.5.0",
|
|
4
4
|
"description": "Conveyor Agent Runner v10 - PTY harness for the task chat (SDK harness for audit/project-chat). Agent-as-User architecture with BaseService patterns. Works locally too.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|