agent-relay-runner 0.127.11 → 0.128.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-relay-runner",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.128.0",
|
|
4
4
|
"description": "Unified provider lifecycle runner for Agent Relay",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"agent-relay-providers": "0.104.4",
|
|
26
|
-
"agent-relay-sdk": "0.2.
|
|
26
|
+
"agent-relay-sdk": "0.2.125",
|
|
27
27
|
"callmux": "0.23.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
package/src/runner-core.ts
CHANGED
|
@@ -192,6 +192,7 @@ export class AgentRunner {
|
|
|
192
192
|
private currentTokenProfileId?: string;
|
|
193
193
|
private currentTokenExpiresAt?: number;
|
|
194
194
|
private control?: ControlServer;
|
|
195
|
+
private registeredAt?: number;
|
|
195
196
|
// Stage 2 (#215): the local MCP endpoint the agent connects to, fronting the relay so the
|
|
196
197
|
// Runner owns reconnect/backoff + a durable buffer. Disabled via AGENT_RELAY_MCP_PROXY=0
|
|
197
198
|
// (then the agent connects to the relay directly, Stage-1 behaviour). The proxy secret is the
|
|
@@ -470,7 +471,10 @@ export class AgentRunner {
|
|
|
470
471
|
void this.handleCommand(type, params, commandId, command);
|
|
471
472
|
});
|
|
472
473
|
this.bus.on("error", (code, message) => this.handleBusError(String(code), String(message)));
|
|
473
|
-
await registerWithinDeadline(this.bus, registrationTimeoutMsFromEnv(), this.options.relayUrl, (reason) => logger.fatal("register", reason));
|
|
474
|
+
await registerWithinDeadline(this.bus, registrationTimeoutMsFromEnv(), this.options.relayUrl, (reason) => logger.fatal("register", reason));
|
|
475
|
+
this.registeredAt = Date.now();
|
|
476
|
+
this.writeRunnerInfoFile();
|
|
477
|
+
await initializeRunnerTemplates(this.http);
|
|
474
478
|
this.obligationCache.start();
|
|
475
479
|
this.outbox.start();
|
|
476
480
|
this.sessionOutbox.start();
|
|
@@ -649,6 +653,7 @@ export class AgentRunner {
|
|
|
649
653
|
...(providerTerminalSession(this.process) ? { tmuxSession: providerTerminalSession(this.process) } : {}),
|
|
650
654
|
...(providerTerminalSocket(this.process) ? { tmuxSocket: providerTerminalSocket(this.process) } : {}),
|
|
651
655
|
startedAt: this.options.startedAt,
|
|
656
|
+
...(this.registeredAt ? { registeredAt: this.registeredAt } : {}),
|
|
652
657
|
}, null, 2) + "\n", { mode: 0o600 });
|
|
653
658
|
} catch (error) {
|
|
654
659
|
logger.error("runner", `failed to write runner info file: ${error}`);
|