@desplega.ai/agent-swarm 1.130.0 → 1.131.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 -1
- package/dist/{actions-73ee723n.js → actions-w53mbns9.js} +7 -7
- package/dist/{anthropic-messages-3xgme8my.js → anthropic-messages-rjmd2e7n.js} +5 -5
- package/dist/{app-hz5c2xay.js → app-m9gwqsqv.js} +4 -4
- package/dist/{assistant-08mr16yp.js → assistant-bp65m6f3.js} +9 -9
- package/dist/{azure-openai-responses-xa4sh9f6.js → azure-openai-responses-c0yjmbfd.js} +8 -5
- package/dist/{boot-reembed-5bgan3cd.js → boot-reembed-62p0at2k.js} +4 -4
- package/dist/{boot-reembed-z7ykyeq8.js → boot-reembed-xmfp6wdh.js} +5 -5
- package/dist/{boot-scrub-logs-b2rjk8mv.js → boot-scrub-logs-rr8q2dms.js} +3 -3
- package/dist/{claude-adapter-qr0k17km.js → claude-adapter-2y47mrkd.js} +6 -6
- package/dist/{cli-s21zzx4b.js → cli-0rcyq6d9.js} +447 -183
- package/dist/{cli-brebbsen.js → cli-2q72qz2s.js} +9 -6
- package/dist/{cli-e5p3es48.js → cli-3kf51j15.js} +1 -1
- package/dist/{cli-vgexpfsr.js → cli-57khth04.js} +6 -3
- package/dist/{cli-h3e66g5b.js → cli-5kx36evn.js} +1 -1
- package/dist/{cli-n9yxcnvk.js → cli-5n6e5yfn.js} +29 -7
- package/dist/{cli-tp519bjz.js → cli-5v4rw6yd.js} +2 -2
- package/dist/{cli-dakxgk70.js → cli-5ze9rv97.js} +4 -4
- package/dist/{cli-ch7t5v7n.js → cli-6map995v.js} +9 -4
- package/dist/{cli-mgerp0vs.js → cli-70xqj0z3.js} +2 -2
- package/dist/{cli-7v5dhmc8.js → cli-72q8m8gk.js} +6 -6
- package/dist/{cli-yj7z99vp.js → cli-78xwvkhj.js} +2 -2
- package/dist/{cli-t5tsq67k.js → cli-9dr5qzc0.js} +39 -4
- package/dist/{cli-73bvdyxr.js → cli-a40rnf71.js} +6 -6
- package/dist/{cli-s18zzkfp.js → cli-a4jzdpa3.js} +44 -7
- package/dist/{cli-w10fkrf1.js → cli-akdvwc9v.js} +354 -115
- package/dist/{cli-hntzdchd.js → cli-bqw0mt1n.js} +1 -1
- package/dist/{cli-mhr8tq3v.js → cli-cdeg08wx.js} +1 -1
- package/dist/{cli-qcsjdppx.js → cli-cvgjwnh1.js} +7 -7
- package/dist/{cli-z9q7pb38.js → cli-d2tfkcga.js} +4 -4
- package/dist/{cli-r62me33w.js → cli-d3x3x1c9.js} +2 -2
- package/dist/{cli-6nh2qxvh.js → cli-darcwax3.js} +1 -1
- package/dist/{cli-326083vb.js → cli-e7ckcg4v.js} +12 -12
- package/dist/{cli-fs153s3x.js → cli-efxfnq6q.js} +3 -3
- package/dist/{cli-xg2eezyv.js → cli-f1am9szv.js} +1 -1
- package/dist/{cli-2pa5w9b6.js → cli-fywms69x.js} +1 -1
- package/dist/{cli-1mj7yz1r.js → cli-g6b8x1h8.js} +1 -1
- package/dist/{cli-epsvdckx.js → cli-gm9cbhbq.js} +20 -10
- package/dist/{cli-tfw3c0y1.js → cli-nm5gtp1x.js} +2 -2
- package/dist/{cli-q8zwffx0.js → cli-pm6xbh84.js} +128 -35
- package/dist/{cli-m8fs5ttq.js → cli-psh3c4va.js} +1 -1
- package/dist/{cli-1px8pn1s.js → cli-qv61hp37.js} +2 -2
- package/dist/{cli-mf009e0j.js → cli-rzbpmxdr.js} +1 -1
- package/dist/{cli-vr2f46zj.js → cli-t1xze5qh.js} +1 -1
- package/dist/{cli-qbb2ten8.js → cli-t55yw3a1.js} +2 -2
- package/dist/{cli-haanc4qd.js → cli-t76vw5db.js} +22 -22
- package/dist/{cli-4n4mdv21.js → cli-xpxde7rm.js} +7 -3
- package/dist/{cli-xdrmxvd4.js → cli-yw8vghx2.js} +46 -10
- package/dist/cli.js +22 -22
- package/dist/{codex-adapter-6pc50x9q.js → codex-adapter-d24q75wk.js} +4 -4
- package/dist/{codex-hook-amndawyb.js → codex-hook-hq54t9ft.js} +2 -2
- package/dist/{codex-session-runner-tpg8hyj7.js → codex-session-runner-g50vcsex.js} +4 -4
- package/dist/{commands-yfpwt11g.js → commands-c3nrc5hg.js} +3 -3
- package/dist/{db-jn499nmp.js → db-nt7fg3tw.js} +3 -3
- package/dist/{google-generative-ai-txgg2q58.js → google-generative-ai-hysrd8qx.js} +7 -5
- package/dist/{google-vertex-t663s1c3.js → google-vertex-p5arrga0.js} +7 -5
- package/dist/{handlers-eev4nng0.js → handlers-fkr6swat.js} +9 -9
- package/dist/{hook-sn7pj75w.js → hook-77wpvnjc.js} +4 -4
- package/dist/{hook-9fkwkf3m.js → hook-g019yehy.js} +5 -5
- package/dist/{http-xdbbtmhx.js → http-jewj0syk.js} +202 -79
- package/dist/{index-c0qedjh6.js → index-6gm5he8h.js} +9 -9
- package/dist/{index-5fdsemf0.js → index-7n2xpbd4.js} +155 -37
- package/dist/{index-9vnkprkh.js → index-hfvggd0z.js} +10 -10
- package/dist/{index-fnack5vh.js → index-hp1kdbjj.js} +11 -11
- package/dist/{keepalive-fc7a2hw9.js → keepalive-j0fjvqfd.js} +5 -5
- package/dist/{lead-1fva34y9.js → lead-1n8x30xe.js} +28 -28
- package/dist/{maintenance-0rdb12vf.js → maintenance-gvev11sa.js} +5 -5
- package/dist/{mistral-conversations-4swenhmf.js → mistral-conversations-81fwav0j.js} +2 -2
- package/dist/{oauth-refresh-sweep-f9rptqbt.js → oauth-refresh-sweep-s9ecsvh0.js} +4 -4
- package/dist/{onboard-9zn0fx2m.js → onboard-pvm5b38w.js} +2 -2
- package/dist/{openai-codex-responses-xetseqvt.js → openai-codex-responses-5g27pd6f.js} +43 -23
- package/dist/{openai-completions-5r2g5axa.js → openai-completions-3vkmfz2a.js} +55 -11
- package/dist/{openai-responses-ce67hd23.js → openai-responses-dg4t7j7a.js} +8 -5
- package/dist/{openrouter-images-pzfp22jb.js → openrouter-images-g3gm8931.js} +1 -1
- package/dist/{otel-impl-thnttmbn.js → otel-impl-p6jvgd9c.js} +1 -1
- package/dist/{pi-mono-adapter-bpfrn6d7.js → pi-mono-adapter-t091s27g.js} +17114 -7514
- package/dist/{pricing-refresh-n0ve0kh6.js → pricing-refresh-k49rcyed.js} +5 -5
- package/dist/{rbac-roles-bbwb4wrm.js → rbac-roles-30pspvy7.js} +5 -5
- package/dist/{rbac-roles-w45bhahg.js → rbac-roles-cr80g96t.js} +4 -4
- package/dist/{render-v2-d675cp9r.js → render-v2-xm457ng1.js} +4 -4
- package/dist/{seed-pricing-47q77nw4.js → seed-pricing-yhpv35fr.js} +4 -4
- package/dist/{setup-3vnv2m43.js → setup-nytnmwwr.js} +2 -2
- package/dist/{worker-7shsr8hk.js → worker-msytr2cw.js} +28 -28
- package/openapi.json +342 -10
- package/package.json +6 -6
- package/src/apps/store.ts +13 -4
- package/src/assets/key.ts +8 -1
- package/src/be/asset-key-audit.ts +3 -1
- package/src/be/db-queries/mcp-oauth.ts +26 -0
- package/src/be/db.ts +42 -1
- package/src/be/migrations/129_asset_keys_apps_scripts.sql +161 -0
- package/src/be/scripts/db.ts +5 -2
- package/src/be/seed-skills/index.ts +7 -0
- package/src/http/assets.ts +120 -29
- package/src/http/mcp-oauth.ts +69 -1
- package/src/http/users.ts +45 -0
- package/src/oauth/ensure-mcp-token.ts +7 -1
- package/src/oauth/mcp-wrapper.ts +247 -24
- package/src/providers/pi-mono-adapter.ts +1 -1
- package/src/tests/asset-key-api.test.ts +48 -2
- package/src/tests/asset-key-invariants.test.ts +92 -0
- package/src/tests/asset-key-migration.test.ts +174 -8
- package/src/tests/asset-key-normalization.test.ts +2 -0
- package/src/tests/mcp-oauth-dcr-reuse.test.ts +95 -0
- package/src/tests/mcp-oauth-ensure-token.test.ts +23 -0
- package/src/tests/mcp-oauth-manual-client.test.ts +135 -2
- package/src/tests/mcp-oauth-wrapper.test.ts +380 -0
- package/src/tests/rbac-admission-e2e.test.ts +68 -0
- package/src/tests/script-connections.test.ts +3 -0
- package/src/tests/whoami-route.test.ts +127 -0
- package/src/tests/workflow-engine-v2.test.ts +80 -7
- package/src/tests/workflow-swarm-script.test.ts +104 -0
- package/src/tools/workflows/create-workflow.ts +4 -1
- package/src/types.ts +18 -5
- package/src/utils/template.ts +8 -1
- package/src/workflows/engine.ts +27 -4
- package/src/workflows/executors/swarm-script.ts +28 -0
- package/src/workflows/retry-poller.ts +19 -2
- package/templates/skills/asset-namespaces/content.md +2 -2
- package/templates/skills/scheduled-task-resilience/SKILL.md +102 -0
- package/templates/skills/scheduled-task-resilience/config.json +14 -0
- package/templates/skills/scheduled-task-resilience/content.md +97 -0
|
@@ -6,28 +6,30 @@ import {
|
|
|
6
6
|
mapStopReason,
|
|
7
7
|
resolveGoogleFunctionCallingMode,
|
|
8
8
|
retainThoughtSignature,
|
|
9
|
+
retryGoogleRequest,
|
|
9
10
|
supportsGoogleStrictToolSampling
|
|
10
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-5n6e5yfn.js";
|
|
12
|
+
import"./cli-s8s499xy.js";
|
|
11
13
|
import"./cli-4w4fmq9x.js";
|
|
12
14
|
import"./cli-b0p7rfnd.js";
|
|
13
15
|
import"./cli-e15jhafb.js";
|
|
14
16
|
import {
|
|
15
17
|
formatProviderError,
|
|
16
18
|
normalizeProviderError
|
|
17
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-6map995v.js";
|
|
18
20
|
import {
|
|
19
21
|
providerHeadersToRecord
|
|
20
22
|
} from "./cli-vapyk8sw.js";
|
|
21
23
|
import {
|
|
22
24
|
buildBaseOptions
|
|
23
|
-
} from "./cli-
|
|
25
|
+
} from "./cli-57khth04.js";
|
|
24
26
|
import {
|
|
25
27
|
sanitizeSurrogates
|
|
26
28
|
} from "./cli-y2apkfe2.js";
|
|
27
29
|
import {
|
|
28
30
|
calculateCost,
|
|
29
31
|
clampThinkingLevel
|
|
30
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-akdvwc9v.js";
|
|
31
33
|
import {
|
|
32
34
|
AssistantMessageEventStream
|
|
33
35
|
} from "./cli-8wrympd7.js";
|
|
@@ -69,7 +71,7 @@ var stream = (model, context, options) => {
|
|
|
69
71
|
if (nextParams !== undefined) {
|
|
70
72
|
params = nextParams;
|
|
71
73
|
}
|
|
72
|
-
const googleStream = await client.models.generateContentStream(params);
|
|
74
|
+
const googleStream = await retryGoogleRequest(() => client.models.generateContentStream(params), options);
|
|
73
75
|
stream2.push({ type: "start", partial: output });
|
|
74
76
|
let currentBlock = null;
|
|
75
77
|
const blocks = output.content;
|
|
@@ -8,15 +8,17 @@ import {
|
|
|
8
8
|
mapStopReason,
|
|
9
9
|
resolveGoogleFunctionCallingMode,
|
|
10
10
|
retainThoughtSignature,
|
|
11
|
+
retryGoogleRequest,
|
|
11
12
|
supportsGoogleStrictToolSampling
|
|
12
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-5n6e5yfn.js";
|
|
14
|
+
import"./cli-s8s499xy.js";
|
|
13
15
|
import"./cli-4w4fmq9x.js";
|
|
14
16
|
import"./cli-b0p7rfnd.js";
|
|
15
17
|
import"./cli-e15jhafb.js";
|
|
16
18
|
import {
|
|
17
19
|
formatProviderError,
|
|
18
20
|
normalizeProviderError
|
|
19
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-6map995v.js";
|
|
20
22
|
import {
|
|
21
23
|
getProviderEnvValue
|
|
22
24
|
} from "./cli-4wgngmwv.js";
|
|
@@ -25,14 +27,14 @@ import {
|
|
|
25
27
|
} from "./cli-vapyk8sw.js";
|
|
26
28
|
import {
|
|
27
29
|
buildBaseOptions
|
|
28
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-57khth04.js";
|
|
29
31
|
import {
|
|
30
32
|
sanitizeSurrogates
|
|
31
33
|
} from "./cli-y2apkfe2.js";
|
|
32
34
|
import {
|
|
33
35
|
calculateCost,
|
|
34
36
|
clampThinkingLevel
|
|
35
|
-
} from "./cli-
|
|
37
|
+
} from "./cli-akdvwc9v.js";
|
|
36
38
|
import {
|
|
37
39
|
AssistantMessageEventStream
|
|
38
40
|
} from "./cli-8wrympd7.js";
|
|
@@ -80,7 +82,7 @@ var stream = (model, context, options) => {
|
|
|
80
82
|
if (nextParams !== undefined) {
|
|
81
83
|
params = nextParams;
|
|
82
84
|
}
|
|
83
|
-
const googleStream = await client.models.generateContentStream(params);
|
|
85
|
+
const googleStream = await retryGoogleRequest(() => client.models.generateContentStream(params), options);
|
|
84
86
|
stream2.push({ type: "start", partial: output });
|
|
85
87
|
let currentBlock = null;
|
|
86
88
|
const blocks = output.content;
|
|
@@ -5,29 +5,29 @@ import {
|
|
|
5
5
|
instantFlush,
|
|
6
6
|
requestSlackThreadSteering,
|
|
7
7
|
wasEventSeen
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-a40rnf71.js";
|
|
9
9
|
import {
|
|
10
10
|
extractSlackMessageText,
|
|
11
11
|
extractTaskFromMessage,
|
|
12
12
|
hasOtherUserMention,
|
|
13
13
|
routeMessage
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-d3x3x1c9.js";
|
|
15
15
|
import {
|
|
16
16
|
enrichSlackUserEmail,
|
|
17
17
|
resolveSlackUserId,
|
|
18
18
|
rewriteSlackMentions
|
|
19
|
-
} from "./cli-
|
|
20
|
-
import"./cli-
|
|
19
|
+
} from "./cli-78xwvkhj.js";
|
|
20
|
+
import"./cli-psh3c4va.js";
|
|
21
21
|
import {
|
|
22
22
|
createTaskWithSiblingAwareness
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-cdeg08wx.js";
|
|
24
24
|
import {
|
|
25
25
|
ackSlackMessage,
|
|
26
26
|
buildTreeBlocks,
|
|
27
27
|
ensureSlackThreadTree,
|
|
28
28
|
isSlackRenderV2Enabled,
|
|
29
29
|
registerTreeMessage
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-cvgjwnh1.js";
|
|
31
31
|
import"./cli-k9qkf1hw.js";
|
|
32
32
|
import"./cli-b0p7rfnd.js";
|
|
33
33
|
import"./cli-t930g0xh.js";
|
|
@@ -40,18 +40,18 @@ import {
|
|
|
40
40
|
init_context_key,
|
|
41
41
|
init_db,
|
|
42
42
|
slackContextKey
|
|
43
|
-
} from "./cli-
|
|
43
|
+
} from "./cli-a4jzdpa3.js";
|
|
44
44
|
import {
|
|
45
45
|
init_env_flag,
|
|
46
46
|
init_resolver,
|
|
47
47
|
isEnvFlagEnabled,
|
|
48
48
|
resolveTemplate
|
|
49
|
-
} from "./cli-
|
|
49
|
+
} from "./cli-xpxde7rm.js";
|
|
50
50
|
import"./cli-x23me2mg.js";
|
|
51
51
|
import"./cli-z2zcxes1.js";
|
|
52
52
|
import"./cli-zsspvvm2.js";
|
|
53
53
|
import"./cli-4j2mrzag.js";
|
|
54
|
-
import"./cli-
|
|
54
|
+
import"./cli-72q8m8gk.js";
|
|
55
55
|
import"./cli-5dsbcjjw.js";
|
|
56
56
|
import"./cli-e15jhafb.js";
|
|
57
57
|
import {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import {
|
|
3
3
|
summarizeSession
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-0rcyq6d9.js";
|
|
5
5
|
import {
|
|
6
6
|
checkToolLoop,
|
|
7
7
|
clearToolHistory
|
|
@@ -38,12 +38,12 @@ import {
|
|
|
38
38
|
import {
|
|
39
39
|
init_package,
|
|
40
40
|
package_default
|
|
41
|
-
} from "./cli-
|
|
41
|
+
} from "./cli-72q8m8gk.js";
|
|
42
42
|
import"./cli-5dsbcjjw.js";
|
|
43
|
-
import"./cli-
|
|
43
|
+
import"./cli-darcwax3.js";
|
|
44
44
|
import"./cli-4wgngmwv.js";
|
|
45
45
|
import"./cli-zyxs93y9.js";
|
|
46
|
-
import"./cli-
|
|
46
|
+
import"./cli-akdvwc9v.js";
|
|
47
47
|
import"./cli-8wrympd7.js";
|
|
48
48
|
import"./cli-p9swy5t3.js";
|
|
49
49
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleHook
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
3
|
+
} from "./cli-70xqj0z3.js";
|
|
4
|
+
import"./cli-0rcyq6d9.js";
|
|
5
5
|
import"./cli-yv9dttkh.js";
|
|
6
6
|
import"./cli-v1mwc5v2.js";
|
|
7
7
|
import"./cli-2wadx7p2.js";
|
|
@@ -12,12 +12,12 @@ import"./cli-0258203w.js";
|
|
|
12
12
|
import"./cli-x23me2mg.js";
|
|
13
13
|
import"./cli-zsspvvm2.js";
|
|
14
14
|
import"./cli-4j2mrzag.js";
|
|
15
|
-
import"./cli-
|
|
15
|
+
import"./cli-72q8m8gk.js";
|
|
16
16
|
import"./cli-5dsbcjjw.js";
|
|
17
|
-
import"./cli-
|
|
17
|
+
import"./cli-darcwax3.js";
|
|
18
18
|
import"./cli-4wgngmwv.js";
|
|
19
19
|
import"./cli-zyxs93y9.js";
|
|
20
|
-
import"./cli-
|
|
20
|
+
import"./cli-akdvwc9v.js";
|
|
21
21
|
import"./cli-8wrympd7.js";
|
|
22
22
|
import"./cli-p9swy5t3.js";
|
|
23
23
|
|