@agent-relay/sdk 2.4.5 → 2.4.6
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.
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/relay.js
CHANGED
|
@@ -179,7 +179,7 @@ export class AgentRelay {
|
|
|
179
179
|
if (waitForMessage) {
|
|
180
180
|
return this.waitForAgentMessage(name, timeoutMs ?? 60_000);
|
|
181
181
|
}
|
|
182
|
-
return this.waitForAgentReady(name, timeoutMs ??
|
|
182
|
+
return this.waitForAgentReady(name, timeoutMs ?? 60_000);
|
|
183
183
|
}
|
|
184
184
|
// ── Human source ────────────────────────────────────────────────────────
|
|
185
185
|
human(opts) {
|
|
@@ -375,7 +375,7 @@ export class AgentRelay {
|
|
|
375
375
|
* The agent's CLI may not yet be ready to receive messages.
|
|
376
376
|
* Use `waitForAgentMessage()` for full readiness.
|
|
377
377
|
*/
|
|
378
|
-
async waitForAgentReady(name, timeoutMs =
|
|
378
|
+
async waitForAgentReady(name, timeoutMs = 60_000) {
|
|
379
379
|
const client = await this.ensureStarted();
|
|
380
380
|
const existing = this.knownAgents.get(name);
|
|
381
381
|
if (existing && this.readyAgents.has(name)) {
|
|
@@ -755,7 +755,7 @@ export class AgentRelay {
|
|
|
755
755
|
const client = await relay.ensureStarted();
|
|
756
756
|
await client.release(name, reason);
|
|
757
757
|
},
|
|
758
|
-
async waitForReady(timeoutMs =
|
|
758
|
+
async waitForReady(timeoutMs = 60_000) {
|
|
759
759
|
await relay.waitForAgentReady(name, timeoutMs);
|
|
760
760
|
},
|
|
761
761
|
waitForExit(timeoutMs) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-relay/sdk",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"typescript": "^5.7.3"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@agent-relay/config": "2.4.
|
|
84
|
+
"@agent-relay/config": "2.4.6",
|
|
85
85
|
"@relaycast/sdk": "^0.4.0",
|
|
86
86
|
"yaml": "^2.7.0"
|
|
87
87
|
}
|