@rallycry/conveyor-agent 10.7.3 → 10.7.4
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-UOHROQ6A.js → chunk-WJWMLZKR.js} +163 -74
- package/dist/chunk-WJWMLZKR.js.map +1 -0
- package/dist/cli.js +376 -130
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +11 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-UOHROQ6A.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -400,6 +400,13 @@ interface SessionRunnerCallbacks {
|
|
|
400
400
|
onStatusChange: (status: AgentRunnerStatus) => void | Promise<void>;
|
|
401
401
|
onEvent: (event: Record<string, unknown>) => void | Promise<void>;
|
|
402
402
|
}
|
|
403
|
+
interface SessionRunnerPortDiscovery {
|
|
404
|
+
start(): Promise<void>;
|
|
405
|
+
stop(): void;
|
|
406
|
+
}
|
|
407
|
+
interface SessionRunnerDependencies {
|
|
408
|
+
portDiscovery?: SessionRunnerPortDiscovery;
|
|
409
|
+
}
|
|
403
410
|
declare class SessionRunner {
|
|
404
411
|
readonly connection: AgentConnection;
|
|
405
412
|
readonly mode: ModeController;
|
|
@@ -431,10 +438,10 @@ declare class SessionRunner {
|
|
|
431
438
|
/** Max consecutive gate-deferred ticks (~2 min each) before flushing anyway. */
|
|
432
439
|
private static readonly MAX_GATE_SKIPS;
|
|
433
440
|
/** Runtime preview-port poller (v3 dynamic port discovery). */
|
|
434
|
-
private portDiscovery;
|
|
441
|
+
private readonly portDiscovery;
|
|
435
442
|
/** Main event-loop lag measurement, shared with the heartbeat worker. */
|
|
436
443
|
private readonly loopLag;
|
|
437
|
-
constructor(config: SessionRunnerConfig, callbacks: SessionRunnerCallbacks);
|
|
444
|
+
constructor(config: SessionRunnerConfig, callbacks: SessionRunnerCallbacks, deps?: SessionRunnerDependencies);
|
|
438
445
|
get state(): AgentRunnerStatus;
|
|
439
446
|
get sessionId(): string;
|
|
440
447
|
get isStopped(): boolean;
|
|
@@ -443,7 +450,7 @@ declare class SessionRunner {
|
|
|
443
450
|
* Call this before run() when you need to send events (e.g. setup/start
|
|
444
451
|
* command output) before the main agent lifecycle begins.
|
|
445
452
|
*/
|
|
446
|
-
connect(): Promise<
|
|
453
|
+
connect(): Promise<boolean>;
|
|
447
454
|
/**
|
|
448
455
|
* Run the main agent lifecycle: fetch context, resolve mode, execute, loop.
|
|
449
456
|
* Requires connect() to have been called first.
|
|
@@ -686,7 +693,7 @@ declare function loadForwardPorts(workspaceDir: string): Promise<ForwardPortsRes
|
|
|
686
693
|
/** Load config from env vars (project-level settings injected via bootstrap). */
|
|
687
694
|
declare function loadConveyorConfig(): ConveyorConfig | null;
|
|
688
695
|
|
|
689
|
-
declare function runSetupCommand(cmd: string, cwd: string, onOutput: (stream: "stdout" | "stderr", data: string) => void): Promise<void>;
|
|
696
|
+
declare function runSetupCommand(cmd: string, cwd: string, onOutput: (stream: "stdout" | "stderr", data: string) => void, signal?: AbortSignal): Promise<void>;
|
|
690
697
|
declare function runAuthTokenCommand(cmd: string, userEmail: string, cwd: string): string | null;
|
|
691
698
|
declare function runStartCommand(cmd: string, cwd: string, onOutput: (stream: "stdout" | "stderr", data: string) => void): ChildProcess;
|
|
692
699
|
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rallycry/conveyor-agent",
|
|
3
|
-
"version": "10.7.
|
|
3
|
+
"version": "10.7.4",
|
|
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",
|