@desplega.ai/agent-swarm 1.105.0 → 1.106.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/README.md +1 -0
- package/dist/{actions-45g8tvc8.js → actions-pk6xqa2y.js} +6 -6
- package/dist/{anthropic-messages-8q7p5vyq.js → anthropic-messages-8nc6r2dw.js} +10 -4
- package/dist/{app-18x5k1cj.js → app-pmfvefkh.js} +3 -3
- package/dist/{assistant-ka281qe8.js → assistant-wcjpqxk6.js} +9 -9
- package/dist/{azure-openai-responses-0dmr2hzc.js → azure-openai-responses-6yfzw3qw.js} +10 -18
- package/dist/{boot-reembed-f38vbxw8.js → boot-reembed-atv4kcrh.js} +3 -3
- package/dist/{boot-reembed-rp2gba79.js → boot-reembed-zanbm36c.js} +4 -4
- package/dist/{boot-scrub-logs-nsnc9f1a.js → boot-scrub-logs-asq051ff.js} +2 -2
- package/dist/{claude-adapter-e3dhkq85.js → claude-adapter-w96mzan4.js} +2 -2
- package/dist/{claude-managed-adapter-z29hjgzz.js → claude-managed-adapter-vj9kzegz.js} +4 -4
- package/dist/{claude-managed-setup-ftbmvmvx.js → claude-managed-setup-t0wkvzgz.js} +1 -1
- package/dist/{cli-92fqyjcv.js → cli-07er7wrs.js} +1 -1
- package/dist/{cli-yzr0qxx1.js → cli-08fnz4jm.js} +3 -3
- package/dist/{cli-ehcjr5vs.js → cli-39jaysbv.js} +6 -6
- package/dist/{cli-dd6tegmp.js → cli-4fwzc50f.js} +2 -2
- package/dist/{cli-p03mawph.js → cli-50nss8e8.js} +928 -335
- package/dist/{cli-0s37sw3k.js → cli-6hqvenfv.js} +1 -1
- package/dist/{cli-wztagmpk.js → cli-6xn2xv4r.js} +24 -8
- package/dist/{cli-yd29d4n4.js → cli-842gfjn1.js} +1 -1
- package/dist/{cli-0e24r2b6.js → cli-84gyjn6h.js} +146 -3
- package/dist/{cli-7b9ctyfq.js → cli-8da61htc.js} +1 -1
- package/dist/{cli-0n4xxmy0.js → cli-8fhhmzbh.js} +1 -1
- package/dist/{cli-khe4x17a.js → cli-anrn8brw.js} +3 -3
- package/dist/{cli-2q1ct4en.js → cli-bsyka9ta.js} +104 -3
- package/dist/{cli-p04j6hjv.js → cli-dqhz8451.js} +1 -1
- package/dist/{cli-87fj1jk4.js → cli-f7ypwjgh.js} +1 -1
- package/dist/{cli-634jy7sa.js → cli-hmqkes02.js} +1 -1
- package/dist/{cli-2hg6bj31.js → cli-j1172z85.js} +26 -18
- package/dist/{cli-yp2krx5r.js → cli-jk4tj5m6.js} +9 -3
- package/dist/{cli-4df7btj0.js → cli-k7gt5r0p.js} +1 -1
- package/dist/{cli-v2fb1fxf.js → cli-n38fcvhe.js} +6 -6
- package/dist/{cli-ba47wf2q.js → cli-p7hff99g.js} +3 -3
- package/dist/cli-pscrc6tw.js +73 -0
- package/dist/{cli-yfyqsqzj.js → cli-pxddwmyc.js} +1 -1
- package/dist/{cli-ncg70f07.js → cli-q44nxhwq.js} +1 -1
- package/dist/{cli-vpwffend.js → cli-qtr61agf.js} +3 -3
- package/dist/{cli-gzmv1371.js → cli-rp5kaak8.js} +5 -5
- package/dist/{cli-0fxvpa2q.js → cli-sdpnhajn.js} +150 -163
- package/dist/{cli-8y7y1vmp.js → cli-sp3c9fwf.js} +2 -2
- package/dist/{cli-c4h8m0m3.js → cli-tfcrm7ds.js} +1 -1
- package/dist/{cli-0k9dc6ks.js → cli-tghre7g6.js} +1 -0
- package/dist/{cli-sdf2qwkt.js → cli-v90vvqt8.js} +394 -125
- package/dist/{cli-gq7gvvrn.js → cli-v9853xza.js} +1 -1
- package/dist/{cli-sm9yseh1.js → cli-wfhe4tgs.js} +1 -1
- package/dist/{cli-7esh9fda.js → cli-xgssgdqn.js} +2 -2
- package/dist/{cli-zmta7t3y.js → cli-xvs40j7w.js} +4 -4
- package/dist/{cli-jntqphs0.js → cli-ygcrdkqt.js} +15 -9
- package/dist/{cli-2957pqpj.js → cli-yv9dttkh.js} +32 -9
- package/dist/cli.js +18 -17
- package/dist/{codex-adapter-w0xharsg.js → codex-adapter-h9rj59tj.js} +5 -5
- package/dist/{codex-session-runner-kzbjcm2k.js → codex-session-runner-2ybavr0w.js} +5 -5
- package/dist/{commands-tn8zj0an.js → commands-075ak6vf.js} +2 -2
- package/dist/{db-gtqymk7r.js → db-60fj8j7t.js} +2 -2
- package/dist/{google-generative-ai-mdn340ga.js → google-generative-ai-rf42vj2h.js} +9 -4
- package/dist/{google-vertex-mkdewpwe.js → google-vertex-m92pj5fb.js} +9 -4
- package/dist/{handlers-5xdqk40d.js → handlers-96j9z4gk.js} +9 -9
- package/dist/{hook-gj6j6zwj.js → hook-f58wyvmy.js} +3 -3
- package/dist/{http-4pceba9h.js → http-naqhj1n0.js} +467 -51
- package/dist/{index-0rfp6wh2.js → index-45bqm6xc.js} +5 -5
- package/dist/{index-as4evz9g.js → index-f5e873a5.js} +10 -10
- package/dist/{index-wf0q4k03.js → index-jscerv2x.js} +10 -6
- package/dist/{index-paaw4xt5.js → index-v3r40ak0.js} +8 -8
- package/dist/{keepalive-akbzjt41.js → keepalive-8gbgeg21.js} +4 -4
- package/dist/{lead-g8v85nf4.js → lead-hj6stakm.js} +26 -26
- package/dist/{maintenance-9yrzmrh8.js → maintenance-1nvd0jva.js} +4 -4
- package/dist/{mistral-conversations-j380wd2q.js → mistral-conversations-26yrnbf1.js} +2 -2
- package/dist/{onboard-v5bx0kpy.js → onboard-8myqe0jh.js} +2 -2
- package/dist/{openai-codex-responses-v80z7kgx.js → openai-codex-responses-8h6kvfv8.js} +16 -25
- package/dist/{openai-completions-39vefwrq.js → openai-completions-x6kjnqjd.js} +11 -5
- package/dist/{openai-responses-dp5bkm3q.js → openai-responses-7jwyz3ds.js} +8 -16
- package/dist/{opencode-adapter-s8vsmzpy.js → opencode-adapter-p2w6efwc.js} +2 -2
- package/dist/{openrouter-images-54cva05t.js → openrouter-images-537nmn1r.js} +5 -1
- package/dist/{otel-impl-530442da.js → otel-impl-tddx9x81.js} +1 -1
- package/dist/{pi-mono-adapter-zf7dt1wg.js → pi-mono-adapter-y037wnp4.js} +596 -297
- package/dist/{pricing-refresh-dt289v11.js → pricing-refresh-f6cgj5br.js} +4 -4
- package/dist/{seed-pricing-183er9b3.js → seed-pricing-3tqmbe0p.js} +3 -3
- package/dist/{setup-tjgsvznx.js → setup-tq3ept9k.js} +2 -2
- package/dist/{worker-nxcxk5pb.js → worker-526psbtb.js} +26 -26
- package/openapi.json +315 -1
- package/package.json +6 -6
- package/src/be/db.ts +6 -2
- package/src/be/memory/access.ts +5 -0
- package/src/be/migrations/102_script_apis.sql +31 -0
- package/src/be/modelsdev-cache.json +22170 -7247
- package/src/be/scripts/db.ts +214 -1
- package/src/be/seed-pricing.ts +1 -1
- package/src/commands/claude-managed-setup.ts +1 -1
- package/src/hooks/tool-loop-detection.test.ts +81 -1
- package/src/hooks/tool-loop-detection.ts +53 -10
- package/src/http/index.ts +11 -1
- package/src/http/mcp.ts +49 -0
- package/src/http/memory.ts +21 -11
- package/src/http/scripts.ts +213 -0
- package/src/http/x.ts +244 -0
- package/src/prompts/session-templates.ts +5 -1
- package/src/providers/claude-managed-models.ts +9 -0
- package/src/server.ts +2 -0
- package/src/tests/agents-list-model-display.test.ts +5 -0
- package/src/tests/bedrock-model-groups.test.ts +3 -0
- package/src/tests/claude-managed-adapter.test.ts +14 -0
- package/src/tests/claude-managed-setup.test.ts +3 -3
- package/src/tests/context-window.test.ts +1 -0
- package/src/tests/harness-provider-resolution.test.ts +39 -0
- package/src/tests/http-api-integration.test.ts +1 -1
- package/src/tests/mcp-user-route.test.ts +70 -5
- package/src/tests/memory-get-tool.test.ts +132 -0
- package/src/tests/memory-http-recall-gating.test.ts +17 -1
- package/src/tests/migration-046-budgets.test.ts +32 -0
- package/src/tests/preload.ts +26 -0
- package/src/tests/register-service-security.test.ts +194 -0
- package/src/tests/script-apis-mcp.test.ts +308 -0
- package/src/tests/scripts-external-api.test.ts +449 -0
- package/src/tests/session-costs-model-key-normalize.test.ts +1 -0
- package/src/tests/update-profile-auth.test.ts +35 -1
- package/src/tools/memory-get.ts +17 -2
- package/src/tools/register-service.ts +68 -4
- package/src/tools/script-apis.ts +158 -0
- package/src/tools/script-common.ts +1 -1
- package/src/tools/tool-config.ts +2 -1
- package/src/tools/update-profile.ts +84 -1
- package/src/types.ts +27 -1
- package/src/utils/context-window.ts +1 -0
- package/src/utils/harness-provider.ts +35 -6
- package/src/utils/short-id.ts +44 -0
- package/templates/community/code-health-reports/run.sh +12 -6
- package/templates/community/dora-metrics/run.sh +10 -2
- package/templates/official/coder/start-up.sh +2 -2
- package/templates/official/content-reviewer/start-up.sh +2 -2
- package/templates/official/content-strategist/start-up.sh +2 -2
- package/templates/official/content-writer/start-up.sh +2 -2
- package/templates/official/discoverability-optimizer/start-up.sh +2 -2
- package/templates/official/ux-principles/start-up.sh +5 -5
- package/templates/skills/swarm-scripts/SKILL.md +4 -0
- package/templates/skills/swarm-scripts/content.md +4 -0
package/README.md
CHANGED
|
@@ -128,6 +128,7 @@ Check [our templates](https://templates.agent-swarm.dev) for a quick start.
|
|
|
128
128
|
- **Workflow engine with Human-in-the-Loop** — DAG-based automation with approval gates, retries, and structured I/O. [Workflows →](https://docs.agent-swarm.dev/docs/concepts/workflows)
|
|
129
129
|
- **Scheduled & recurring tasks** — cron-based automation for standing work. [Scheduling →](https://docs.agent-swarm.dev/docs/concepts/scheduling)
|
|
130
130
|
- **Durable script workflows** — launch background script runs, inspect their journals, and track them from the dashboard when a one-shot `script-run` is too small. [Guide →](https://docs.agent-swarm.dev/docs/guides/script-workflow-runs)
|
|
131
|
+
- **Scripts as external APIs** — expose a saved script as a public `POST /api/x/script/<id>` endpoint with optional bearer auth, typed input validation, and per-endpoint usage tracking. [Guide →](https://docs.agent-swarm.dev/docs/guides/scripts-external-apis)
|
|
131
132
|
- **Typed script API connections** — lead-managed OpenAPI connections let scripts call approved external APIs through generated `ctx.api.*` clients while credential bindings keep raw secrets out of source and args. [Guide →](https://docs.agent-swarm.dev/docs/guides/scripts-credential-broker)
|
|
132
133
|
- **E2B-backed eval harness** — run a scenario × harness-config matrix against real swarm stacks, capture transcripts/artifacts, and grade outcomes with deterministic checks plus LLM or agentic judges. [Guide →](https://docs.agent-swarm.dev/docs/guides/evals-harness)
|
|
133
134
|
- **Harness & LLM agnostic** — run with Claude Code, Claude Bridge, OpenAI Codex, pi-mono (Anthropic, OpenRouter, or Amazon Bedrock), Devin, Claude Managed Agents, raw LLMs, or opencode. Tasks, schedules, and workflow agent-task nodes can use portable `modelTier` intent (`smol`, `regular`, `smart`, `ultra`) and resolve it per worker/provider at run time. [Harness config →](https://docs.agent-swarm.dev/docs/guides/harness-configuration) · [Add a new provider →](https://docs.agent-swarm.dev/docs/guides/harness-providers)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveSlackUserId
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
3
|
+
} from "./cli-p7hff99g.js";
|
|
4
|
+
import"./cli-tfcrm7ds.js";
|
|
5
|
+
import"./cli-pxddwmyc.js";
|
|
6
6
|
import {
|
|
7
7
|
buildCancelledBlocks,
|
|
8
8
|
getTaskLink
|
|
@@ -11,18 +11,18 @@ import"./cli-dh55d5fg.js";
|
|
|
11
11
|
import {
|
|
12
12
|
createTaskWithSiblingAwareness,
|
|
13
13
|
slackContextKey
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-6hqvenfv.js";
|
|
15
15
|
import {
|
|
16
16
|
cancelTask,
|
|
17
17
|
getAgentById,
|
|
18
18
|
getLeadAgent,
|
|
19
19
|
getTaskById,
|
|
20
20
|
init_db
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-6xn2xv4r.js";
|
|
22
22
|
import"./cli-z2zcxes1.js";
|
|
23
23
|
import"./cli-q21d49ac.js";
|
|
24
24
|
import"./cli-anrj584m.js";
|
|
25
|
-
import"./cli-
|
|
25
|
+
import"./cli-39jaysbv.js";
|
|
26
26
|
import"./cli-3pp1362w.js";
|
|
27
27
|
import"./cli-p9swy5t3.js";
|
|
28
28
|
|
|
@@ -15,8 +15,9 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
adjustMaxTokensForThinking,
|
|
17
17
|
buildBaseOptions,
|
|
18
|
+
clampMaxTokensToContext,
|
|
18
19
|
transformMessages
|
|
19
|
-
} from "./cli-
|
|
20
|
+
} from "./cli-bsyka9ta.js";
|
|
20
21
|
import {
|
|
21
22
|
sanitizeSurrogates
|
|
22
23
|
} from "./cli-y2apkfe2.js";
|
|
@@ -5295,6 +5296,10 @@ var stream = (model, context, options) => {
|
|
|
5295
5296
|
if (event.usage.cache_creation_input_tokens != null) {
|
|
5296
5297
|
output.usage.cacheWrite = event.usage.cache_creation_input_tokens;
|
|
5297
5298
|
}
|
|
5299
|
+
const thinkingTokens = event.usage.output_tokens_details?.thinking_tokens;
|
|
5300
|
+
if (thinkingTokens != null) {
|
|
5301
|
+
output.usage.reasoning = thinkingTokens;
|
|
5302
|
+
}
|
|
5298
5303
|
output.usage.totalTokens = output.usage.input + output.usage.output + output.usage.cacheRead + output.usage.cacheWrite;
|
|
5299
5304
|
calculateCost(model, output.usage);
|
|
5300
5305
|
}
|
|
@@ -5338,7 +5343,7 @@ function mapThinkingLevelToEffort(model, level) {
|
|
|
5338
5343
|
}
|
|
5339
5344
|
var streamSimple = (model, context, options) => {
|
|
5340
5345
|
assertRequestAuth(model.provider, options?.apiKey, options?.headers);
|
|
5341
|
-
const base = buildBaseOptions(model, options, options?.apiKey);
|
|
5346
|
+
const base = buildBaseOptions(model, context, options, options?.apiKey);
|
|
5342
5347
|
if (!options?.reasoning) {
|
|
5343
5348
|
return stream(model, context, { ...base, thinkingEnabled: false });
|
|
5344
5349
|
}
|
|
@@ -5351,11 +5356,12 @@ var streamSimple = (model, context, options) => {
|
|
|
5351
5356
|
});
|
|
5352
5357
|
}
|
|
5353
5358
|
const adjusted = adjustMaxTokensForThinking(base.maxTokens, model.maxTokens, options.reasoning, options.thinkingBudgets);
|
|
5359
|
+
const maxTokens = clampMaxTokensToContext(model, context, adjusted.maxTokens);
|
|
5354
5360
|
return stream(model, context, {
|
|
5355
5361
|
...base,
|
|
5356
|
-
maxTokens
|
|
5362
|
+
maxTokens,
|
|
5357
5363
|
thinkingEnabled: true,
|
|
5358
|
-
thinkingBudgetTokens: adjusted.thinkingBudget
|
|
5364
|
+
thinkingBudgetTokens: Math.min(adjusted.thinkingBudget, Math.max(0, maxTokens - 1024))
|
|
5359
5365
|
});
|
|
5360
5366
|
};
|
|
5361
5367
|
function isOAuthToken(apiKey) {
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
initSlackApp,
|
|
4
4
|
startSlackApp,
|
|
5
5
|
stopSlackApp
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-rp5kaak8.js";
|
|
7
7
|
import"./cli-fete3y1e.js";
|
|
8
8
|
import"./cli-b0p7rfnd.js";
|
|
9
9
|
import"./cli-z92pkwzn.js";
|
|
10
10
|
import"./cli-dh55d5fg.js";
|
|
11
|
-
import"./cli-
|
|
11
|
+
import"./cli-6xn2xv4r.js";
|
|
12
12
|
import"./cli-z2zcxes1.js";
|
|
13
13
|
import"./cli-q21d49ac.js";
|
|
14
14
|
import"./cli-anrj584m.js";
|
|
15
|
-
import"./cli-
|
|
15
|
+
import"./cli-39jaysbv.js";
|
|
16
16
|
import"./cli-3pp1362w.js";
|
|
17
17
|
import"./cli-e15jhafb.js";
|
|
18
18
|
import"./cli-p9swy5t3.js";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bufferThreadMessage,
|
|
3
3
|
wasEventSeen
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-xvs40j7w.js";
|
|
5
5
|
import {
|
|
6
6
|
hasOtherUserMention
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-8fhhmzbh.js";
|
|
8
8
|
import {
|
|
9
9
|
require_dist
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-rp5kaak8.js";
|
|
11
11
|
import"./cli-fete3y1e.js";
|
|
12
12
|
import"./cli-b0p7rfnd.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveSlackUserId
|
|
15
|
-
} from "./cli-
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
15
|
+
} from "./cli-p7hff99g.js";
|
|
16
|
+
import"./cli-tfcrm7ds.js";
|
|
17
|
+
import"./cli-pxddwmyc.js";
|
|
18
18
|
import"./cli-z92pkwzn.js";
|
|
19
19
|
import"./cli-dh55d5fg.js";
|
|
20
20
|
import {
|
|
21
21
|
createTaskWithSiblingAwareness,
|
|
22
22
|
slackContextKey
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-6hqvenfv.js";
|
|
24
24
|
import {
|
|
25
25
|
getAgentWorkingOnThread,
|
|
26
26
|
getLeadAgent,
|
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
init_db,
|
|
29
29
|
init_resolver,
|
|
30
30
|
resolveTemplate
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-6xn2xv4r.js";
|
|
32
32
|
import"./cli-z2zcxes1.js";
|
|
33
33
|
import"./cli-q21d49ac.js";
|
|
34
34
|
import"./cli-anrj584m.js";
|
|
35
|
-
import"./cli-
|
|
35
|
+
import"./cli-39jaysbv.js";
|
|
36
36
|
import"./cli-3pp1362w.js";
|
|
37
37
|
import"./cli-e15jhafb.js";
|
|
38
38
|
import {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
convertResponsesMessages,
|
|
3
3
|
convertResponsesTools,
|
|
4
4
|
processResponsesStream
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-sdpnhajn.js";
|
|
6
6
|
import"./cli-5m9j2spm.js";
|
|
7
7
|
import {
|
|
8
8
|
AzureOpenAI
|
|
@@ -10,6 +10,10 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
clampOpenAIPromptCacheKey
|
|
12
12
|
} from "./cli-mrptpp86.js";
|
|
13
|
+
import {
|
|
14
|
+
formatProviderError,
|
|
15
|
+
normalizeProviderError
|
|
16
|
+
} from "./cli-pscrc6tw.js";
|
|
13
17
|
import {
|
|
14
18
|
getProviderEnvValue
|
|
15
19
|
} from "./cli-4wgngmwv.js";
|
|
@@ -19,7 +23,7 @@ import {
|
|
|
19
23
|
import"./cli-zyxs93y9.js";
|
|
20
24
|
import {
|
|
21
25
|
buildBaseOptions
|
|
22
|
-
} from "./cli-
|
|
26
|
+
} from "./cli-bsyka9ta.js";
|
|
23
27
|
import"./cli-y2apkfe2.js";
|
|
24
28
|
import {
|
|
25
29
|
AssistantMessageEventStream,
|
|
@@ -53,19 +57,7 @@ function resolveDeploymentName(model, options) {
|
|
|
53
57
|
return mappedDeployment || model.id;
|
|
54
58
|
}
|
|
55
59
|
function formatAzureOpenAIError(error) {
|
|
56
|
-
|
|
57
|
-
const status = error.status;
|
|
58
|
-
const statusCode = typeof status === "number" ? status : undefined;
|
|
59
|
-
if (statusCode !== undefined) {
|
|
60
|
-
return `Azure OpenAI API error (${statusCode}): ${error.message}`;
|
|
61
|
-
}
|
|
62
|
-
return error.message;
|
|
63
|
-
}
|
|
64
|
-
try {
|
|
65
|
-
return JSON.stringify(error);
|
|
66
|
-
} catch {
|
|
67
|
-
return String(error);
|
|
68
|
-
}
|
|
60
|
+
return formatProviderError(normalizeProviderError(error), "Azure OpenAI API error");
|
|
69
61
|
}
|
|
70
62
|
var stream = (model, context, options) => {
|
|
71
63
|
const stream2 = new AssistantMessageEventStream;
|
|
@@ -134,7 +126,7 @@ var streamSimple = (model, context, options) => {
|
|
|
134
126
|
if (!apiKey) {
|
|
135
127
|
throw new Error(`No API key for provider: ${model.provider}`);
|
|
136
128
|
}
|
|
137
|
-
const base = buildBaseOptions(model, options, apiKey);
|
|
129
|
+
const base = buildBaseOptions(model, context, options, apiKey);
|
|
138
130
|
const clampedReasoning = options?.reasoning ? clampThinkingLevel(model, options.reasoning) : undefined;
|
|
139
131
|
const reasoningEffort = clampedReasoning === "off" ? undefined : clampedReasoning;
|
|
140
132
|
return stream(model, context, {
|
|
@@ -150,9 +142,9 @@ function normalizeAzureBaseUrl(baseUrl) {
|
|
|
150
142
|
} catch {
|
|
151
143
|
throw new Error(`Invalid Azure OpenAI base URL: ${baseUrl}`);
|
|
152
144
|
}
|
|
153
|
-
const isAzureHost = url.hostname.endsWith(".openai.azure.com") || url.hostname.endsWith(".cognitiveservices.azure.com");
|
|
145
|
+
const isAzureHost = url.hostname.endsWith(".openai.azure.com") || url.hostname.endsWith(".cognitiveservices.azure.com") || url.hostname.endsWith(".ai.azure.com");
|
|
154
146
|
const normalizedPath = url.pathname.replace(/\/+$/, "");
|
|
155
|
-
if (isAzureHost && (normalizedPath === "" || normalizedPath === "/" || normalizedPath === "/openai")) {
|
|
147
|
+
if (isAzureHost && (normalizedPath === "" || normalizedPath === "/" || normalizedPath === "/openai" || normalizedPath === "/openai/v1/responses")) {
|
|
156
148
|
url.pathname = "/openai/v1";
|
|
157
149
|
url.search = "";
|
|
158
150
|
}
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
getEmbeddingProvider,
|
|
4
4
|
getMemoryStore,
|
|
5
5
|
init_constants
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-hmqkes02.js";
|
|
7
7
|
import"./cli-3j01d33e.js";
|
|
8
8
|
import {
|
|
9
9
|
getDb,
|
|
10
10
|
init_db
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-6xn2xv4r.js";
|
|
12
12
|
import"./cli-z2zcxes1.js";
|
|
13
13
|
import"./cli-q21d49ac.js";
|
|
14
14
|
import"./cli-anrj584m.js";
|
|
15
|
-
import"./cli-
|
|
15
|
+
import"./cli-39jaysbv.js";
|
|
16
16
|
import"./cli-3pp1362w.js";
|
|
17
17
|
import"./cli-p9swy5t3.js";
|
|
18
18
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
embedScript,
|
|
3
3
|
embeddingProvider
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-4fwzc50f.js";
|
|
5
|
+
import"./cli-hmqkes02.js";
|
|
6
6
|
import"./cli-3j01d33e.js";
|
|
7
7
|
import {
|
|
8
8
|
getDb,
|
|
9
9
|
init_db
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-6xn2xv4r.js";
|
|
11
11
|
import"./cli-z2zcxes1.js";
|
|
12
12
|
import"./cli-q21d49ac.js";
|
|
13
13
|
import"./cli-anrj584m.js";
|
|
14
|
-
import"./cli-
|
|
14
|
+
import"./cli-39jaysbv.js";
|
|
15
15
|
import"./cli-3pp1362w.js";
|
|
16
16
|
import"./cli-p9swy5t3.js";
|
|
17
17
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDb,
|
|
3
3
|
init_db
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-6xn2xv4r.js";
|
|
5
5
|
import"./cli-z2zcxes1.js";
|
|
6
6
|
import"./cli-q21d49ac.js";
|
|
7
7
|
import"./cli-anrj584m.js";
|
|
8
|
-
import"./cli-
|
|
8
|
+
import"./cli-39jaysbv.js";
|
|
9
9
|
import {
|
|
10
10
|
init_secret_scrubber,
|
|
11
11
|
scrubSecrets
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
resolveClaudeBinary,
|
|
13
13
|
resolveClaudeBinaryArgv,
|
|
14
14
|
resolveClaudeBridgeEnabled
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-dqhz8451.js";
|
|
16
16
|
import"./cli-psrqtw2m.js";
|
|
17
17
|
import"./cli-tng3131n.js";
|
|
18
18
|
import"./cli-zm7njwzd.js";
|
|
19
|
-
import"./cli-
|
|
19
|
+
import"./cli-tghre7g6.js";
|
|
20
20
|
import"./cli-z2zcxes1.js";
|
|
21
21
|
import"./cli-3pp1362w.js";
|
|
22
22
|
import"./cli-7zd05xb4.js";
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
checkClaudeManagedCredentials,
|
|
4
4
|
composeManagedUserMessage,
|
|
5
5
|
normalizeRepoUrl
|
|
6
|
-
} from "./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
6
|
+
} from "./cli-jk4tj5m6.js";
|
|
7
|
+
import"./cli-07er7wrs.js";
|
|
8
|
+
import"./cli-yv9dttkh.js";
|
|
9
9
|
import"./cli-d6n0thxw.js";
|
|
10
10
|
import"./cli-gz9sbyk3.js";
|
|
11
|
-
import"./cli-
|
|
11
|
+
import"./cli-tghre7g6.js";
|
|
12
12
|
import"./cli-3pp1362w.js";
|
|
13
13
|
import"./cli-p9swy5t3.js";
|
|
14
14
|
export {
|
|
@@ -83,7 +83,7 @@ async function promptHiddenInput(label, _defaultValue, helpText) {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
// src/commands/claude-managed-setup.ts
|
|
86
|
-
var DEFAULT_AGENT_MODEL = "claude-sonnet-
|
|
86
|
+
var DEFAULT_AGENT_MODEL = "claude-sonnet-5";
|
|
87
87
|
var SKILLS_DIR_RELATIVE = "plugin/commands";
|
|
88
88
|
var SKILLS_BETA_HEADER = "skills-2025-10-02";
|
|
89
89
|
var CONFIG_KEY_AGENT_ID = "managed_agent_id";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleScheduleTrigger
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-v9853xza.js";
|
|
4
4
|
import {
|
|
5
5
|
createTaskWithSiblingAwareness,
|
|
6
6
|
scheduleContextKey
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-6hqvenfv.js";
|
|
8
8
|
import {
|
|
9
9
|
getDb,
|
|
10
10
|
getDueScheduledTasks,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
init_telemetry,
|
|
14
14
|
telemetry,
|
|
15
15
|
updateScheduledTask
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-6xn2xv4r.js";
|
|
17
17
|
import {
|
|
18
18
|
__commonJS,
|
|
19
19
|
__require,
|
|
@@ -7,7 +7,7 @@ var package_default;
|
|
|
7
7
|
var init_package = __esm(() => {
|
|
8
8
|
package_default = {
|
|
9
9
|
name: "@desplega.ai/agent-swarm",
|
|
10
|
-
version: "1.
|
|
10
|
+
version: "1.106.0",
|
|
11
11
|
description: "Multi-agent orchestration for Claude Code, Codex, Gemini CLI, and other AI coding assistants",
|
|
12
12
|
license: "MIT",
|
|
13
13
|
author: "desplega.sh <contact@desplega.sh>",
|
|
@@ -121,14 +121,14 @@ var init_package = __esm(() => {
|
|
|
121
121
|
"@aws-sdk/client-bedrock": "3.1048.0",
|
|
122
122
|
"@desplega.ai/business-use": "^0.4.2",
|
|
123
123
|
"@desplega.ai/localtunnel": "^2.2.0",
|
|
124
|
-
"@earendil-works/pi-agent-core": "^0.80.
|
|
125
|
-
"@earendil-works/pi-ai": "^0.80.
|
|
126
|
-
"@earendil-works/pi-coding-agent": "^0.80.
|
|
124
|
+
"@earendil-works/pi-agent-core": "^0.80.3",
|
|
125
|
+
"@earendil-works/pi-ai": "^0.80.3",
|
|
126
|
+
"@earendil-works/pi-coding-agent": "^0.80.3",
|
|
127
127
|
"@inkjs/ui": "^2.0.0",
|
|
128
128
|
"@linear/sdk": "^77.0.0",
|
|
129
129
|
"@modelcontextprotocol/sdk": "^1.25.1",
|
|
130
|
-
"@openai/codex-sdk": "^0.142.
|
|
131
|
-
"@opencode-ai/sdk": "^1.17.
|
|
130
|
+
"@openai/codex-sdk": "^0.142.5",
|
|
131
|
+
"@opencode-ai/sdk": "^1.17.12",
|
|
132
132
|
"@openfort/openfort-node": "^0.9.1",
|
|
133
133
|
"@opentelemetry/api": "^1.9.1",
|
|
134
134
|
"@opentelemetry/exporter-metrics-otlp-http": "^0.218.0",
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
getEmbeddingProvider,
|
|
5
5
|
init_embedding,
|
|
6
6
|
serializeEmbedding
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-hmqkes02.js";
|
|
8
8
|
import {
|
|
9
9
|
getDb,
|
|
10
10
|
init_db
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-6xn2xv4r.js";
|
|
12
12
|
import {
|
|
13
13
|
init_secret_scrubber,
|
|
14
14
|
scrubSecrets
|