@desplega.ai/agent-swarm 1.97.0 → 1.98.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/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Agent Swarm API",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.98.0",
|
|
6
6
|
"description": "Multi-agent orchestration API for Claude Code, Codex, and Gemini CLI. Enables task distribution, agent communication, and service discovery.\n\nMCP tools are documented separately in [MCP.md](./MCP.md)."
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
package/package.json
CHANGED
|
@@ -111,6 +111,11 @@ function defaultOpencodeSkillsDir(): string {
|
|
|
111
111
|
return join(process.env.HOME ?? "/home/worker", ".opencode", "skills");
|
|
112
112
|
}
|
|
113
113
|
const MODEL_CACHE_REFRESH_TIMEOUT_MS = 15_000;
|
|
114
|
+
// opencode cold-start on E2B disk regularly exceeds the SDK's 5s default
|
|
115
|
+
// server-start timeout (@opencode-ai/sdk dist/server.js), failing the spawn with
|
|
116
|
+
// "Timeout waiting for server to start after 5000ms". Override via
|
|
117
|
+
// OPENCODE_SERVER_TIMEOUT_MS.
|
|
118
|
+
const DEFAULT_SERVER_START_TIMEOUT_MS = 30_000;
|
|
114
119
|
|
|
115
120
|
function isOpenRouterModel(model: string | undefined): boolean {
|
|
116
121
|
return Boolean(model?.toLowerCase().startsWith("openrouter/"));
|
|
@@ -720,6 +725,7 @@ export class OpencodeAdapter implements ProviderAdapter {
|
|
|
720
725
|
({ client, server } = await createOpencode({
|
|
721
726
|
hostname: "127.0.0.1",
|
|
722
727
|
port: 0,
|
|
728
|
+
timeout: Number(process.env.OPENCODE_SERVER_TIMEOUT_MS) || DEFAULT_SERVER_START_TIMEOUT_MS,
|
|
723
729
|
config: opencodeConfig,
|
|
724
730
|
}));
|
|
725
731
|
} finally {
|