agent-relay-server 0.10.12 → 0.10.13
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 +1 -1
- package/src/bus.ts +5 -0
package/package.json
CHANGED
package/src/bus.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { getAgent, getDb, heartbeat, markReady, orphanTasksForAgent, setStatus,
|
|
|
3
3
|
import { getOldestOutboxCursor, getOutboxCursor, replayEvents, type BusEvent } from "./bus-outbox";
|
|
4
4
|
import { emitRelayEvent, subscribeRelayEvents, type RelayEvent } from "./events";
|
|
5
5
|
import { createCommand, getCommand, updateCommand } from "./commands-db";
|
|
6
|
+
import { getLifecycleManager } from "./lifecycle-manager";
|
|
6
7
|
import { applyCommandToRecipe } from "./recipe-runner";
|
|
7
8
|
import {
|
|
8
9
|
BusProtocolError,
|
|
@@ -230,6 +231,10 @@ function handleRegister(ws: BusWebSocket, frame: RegisterFrame): void {
|
|
|
230
231
|
meta: payload.meta,
|
|
231
232
|
});
|
|
232
233
|
epoch = agent.epoch;
|
|
234
|
+
getLifecycleManager().onAgentRegistered(agent.id, {
|
|
235
|
+
policyName: stringMeta(payload.meta, "policyName"),
|
|
236
|
+
spawnRequestId: stringMeta(payload.meta, "spawnRequestId"),
|
|
237
|
+
});
|
|
233
238
|
emitAgentStatusEvent(agent.id);
|
|
234
239
|
}
|
|
235
240
|
|