agent-relay-orchestrator 0.78.1 → 0.78.2
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/quota-poller.ts +7 -2
package/package.json
CHANGED
package/src/quota-poller.ts
CHANGED
|
@@ -294,9 +294,10 @@ async function codexRateLimitsRead(appServerUrl: string, attempts = 1): Promise<
|
|
|
294
294
|
try {
|
|
295
295
|
await connectWithRetry(client, attempts);
|
|
296
296
|
await client.request("initialize", {
|
|
297
|
-
clientInfo: { name: "agent-relay-orchestrator", title: "Agent Relay Orchestrator" },
|
|
297
|
+
clientInfo: { name: "agent-relay-orchestrator", title: "Agent Relay Orchestrator", version: "0.1.0" },
|
|
298
298
|
capabilities: { experimentalApi: true },
|
|
299
|
-
})
|
|
299
|
+
});
|
|
300
|
+
client.notify("initialized");
|
|
300
301
|
return await client.request("account/rateLimits/read");
|
|
301
302
|
} finally {
|
|
302
303
|
client.close();
|
|
@@ -414,6 +415,10 @@ class JsonRpcWebSocket {
|
|
|
414
415
|
return promise;
|
|
415
416
|
}
|
|
416
417
|
|
|
418
|
+
notify(method: string, params?: unknown): void {
|
|
419
|
+
this.ws.send(JSON.stringify(params === undefined ? { method } : { method, params }));
|
|
420
|
+
}
|
|
421
|
+
|
|
417
422
|
close(): void {
|
|
418
423
|
this.ws?.close();
|
|
419
424
|
}
|