@desplega.ai/agent-swarm 2.7.0 → 2.7.1
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/dist/{acp-adapter-ma1js5n7.js → acp-adapter-8dn5tq56.js} +6 -6
- package/dist/{actions-1vhmtvg9.js → actions-3r6gw7dy.js} +18 -18
- package/dist/{amp-adapter-sxqqvmdk.js → amp-adapter-wjtq413p.js} +3 -3
- package/dist/{anthropic-messages-txs190dd.js → anthropic-messages-n4cby1rz.js} +4 -4
- package/dist/{app-mwx1d5a9.js → app-d53yhykk.js} +3 -3
- package/dist/{assistant-yx1p6g82.js → assistant-ksrawj3k.js} +20 -20
- package/dist/{boot-reembed-7h78vmvv.js → boot-reembed-fxfw17m2.js} +10 -3
- package/dist/{boot-reembed-5h37a2c2.js → boot-reembed-k5y5xbj0.js} +15 -8
- package/dist/{boot-scrub-sweep-8mawd4gw.js → boot-scrub-sweep-se41j9fd.js} +3 -3
- package/dist/{boot-seeds-ca84dhnn.js → boot-seeds-r3kwwv8b.js} +4 -4
- package/dist/{claude-adapter-wqt4hfkq.js → claude-adapter-ahmyf231.js} +7 -7
- package/dist/{claude-managed-adapter-6fjqtr2z.js → claude-managed-adapter-5knamegc.js} +3 -3
- package/dist/{claude-managed-setup-rqv98sea.js → claude-managed-setup-mdc7dy6b.js} +2 -2
- package/dist/{claude-sdk-session-f29f3b2x.js → claude-sdk-session-n5wen9zk.js} +8728 -8599
- package/dist/{cli-m5e802r7.js → cli-0dqtv2jg.js} +2 -2
- package/dist/{cli-e1595bgx.js → cli-0tww7dnz.js} +2 -2
- package/dist/{cli-2y7v133v.js → cli-0w4e4v58.js} +7 -7
- package/dist/{cli-d20qvpr2.js → cli-2sjm3t4r.js} +1 -1
- package/dist/{cli-gf2850q7.js → cli-3cywb44q.js} +18 -1
- package/dist/{cli-8wkb09q5.js → cli-3k9jej0c.js} +2 -2
- package/dist/{cli-twctnkng.js → cli-3v2cyqb8.js} +3 -3
- package/dist/{cli-he9gbdx0.js → cli-5qt9vzmq.js} +39 -20
- package/dist/{cli-a6ds2epe.js → cli-5rp1w4cr.js} +1 -1
- package/dist/{cli-6srv653c.js → cli-6vwjsetx.js} +4 -4
- package/dist/{cli-1hhbzkbb.js → cli-6w2yrrc0.js} +8 -8
- package/dist/{cli-f12mr20z.js → cli-75tdydgv.js} +1 -1
- package/dist/{cli-j3y0x2n4.js → cli-8feswf2v.js} +43 -33
- package/dist/{cli-07q03xm2.js → cli-8wd3mbyj.js} +1 -1
- package/dist/{cli-ymjpkxgn.js → cli-9csfthbw.js} +8 -6
- package/dist/{cli-f1e0ptjj.js → cli-b41p764a.js} +21 -2
- package/dist/{cli-kv7sbc2c.js → cli-c1t533hh.js} +3 -3
- package/dist/{cli-54sj64fc.js → cli-c28jxpcv.js} +1 -1
- package/dist/{cli-8mbc9za9.js → cli-cb50g9cd.js} +1 -1
- package/dist/{cli-c668vvcf.js → cli-d8gaphtr.js} +1 -1
- package/dist/{cli-86ehn4s5.js → cli-dgtfysne.js} +2 -2
- package/dist/{cli-sjctjr48.js → cli-dscnhn18.js} +1 -1
- package/dist/{cli-j0ppywdr.js → cli-dv11pgpv.js} +12 -12
- package/dist/{cli-1m9x8dr5.js → cli-ekptgk2m.js} +5 -5
- package/dist/{cli-9gsm2rzp.js → cli-f3mzy662.js} +17 -17
- package/dist/{cli-s0mgx214.js → cli-fk7k8s9x.js} +2 -2
- package/dist/{cli-vbhgkw9h.js → cli-h3e7bhvn.js} +3 -3
- package/dist/{cli-yd2nreqw.js → cli-hkxqdmnb.js} +2 -2
- package/dist/{cli-8wmj18cz.js → cli-hpkvgdad.js} +7 -4
- package/dist/{cli-wqr7cea4.js → cli-hq2v4rr5.js} +37 -9
- package/dist/{cli-sgqm2582.js → cli-k1zb7raw.js} +5 -5
- package/dist/{cli-4rvr7zfx.js → cli-k4awgvzm.js} +5 -0
- package/dist/{cli-ay40dnj3.js → cli-k7d3hvya.js} +2 -2
- package/dist/{cli-j9bpmykh.js → cli-kbtdftbw.js} +5 -5
- package/dist/{cli-x37r7qwf.js → cli-kj69b9tw.js} +25 -5
- package/dist/{cli-gsfk58nw.js → cli-kk9jy4nm.js} +1 -1
- package/dist/{cli-39aet655.js → cli-m52t4cta.js} +1 -1
- package/dist/{cli-h5jeg46p.js → cli-mdadewqp.js} +5 -5
- package/dist/{cli-a89zdqz9.js → cli-nf6k60sn.js} +1 -1
- package/dist/{cli-v6shg7na.js → cli-nzdf09js.js} +1 -1
- package/dist/{cli-rr7zx19j.js → cli-prcyzecg.js} +12 -12
- package/dist/{cli-6a9qfa8b.js → cli-pzafyqtk.js} +118 -48
- package/dist/{cli-48gxjmcz.js → cli-qvaa1gjp.js} +87 -24
- package/dist/{cli-qj442fws.js → cli-rg4b2g6j.js} +1 -1
- package/dist/{cli-aypd09nf.js → cli-rm66vqdz.js} +1 -1
- package/dist/{cli-9pshx6rd.js → cli-s504c3w7.js} +1 -1
- package/dist/{cli-ptfq202x.js → cli-swkx9jm2.js} +3 -3
- package/dist/{cli-m30k9777.js → cli-thsaq4pd.js} +16 -16
- package/dist/{cli-60sty27p.js → cli-twjnyvs8.js} +2 -2
- package/dist/{cli-rd5m70gj.js → cli-typdpe8g.js} +4 -4
- package/dist/{cli-yxbsmx56.js → cli-vg8pwmsd.js} +6 -6
- package/dist/{cli-s09j9vp5.js → cli-vhpckzvp.js} +1 -1
- package/dist/{cli-dv97kdzv.js → cli-wdxgsdz5.js} +2 -2
- package/dist/{cli-7a6p4e65.js → cli-wtjg6je3.js} +1 -1
- package/dist/{cli-b3yzyc57.js → cli-x3cngb1h.js} +44 -12
- package/dist/{cli-6mgdba42.js → cli-xbz6mcg4.js} +2 -2
- package/dist/{cli-2pvzmas1.js → cli-y4tdxsqb.js} +3 -3
- package/dist/{cli-f4dbh7a5.js → cli-yqrsp3ny.js} +7 -7
- package/dist/cli.js +27 -19
- package/dist/{codex-adapter-zk59x2zh.js → codex-adapter-7wepzq15.js} +5 -5
- package/dist/{codex-hook-xyjhvxwd.js → codex-hook-pbdh4xhx.js} +2 -2
- package/dist/{codex-session-runner-kh6s4j3n.js → codex-session-runner-02sb49e4.js} +5 -5
- package/dist/{commands-68et1qv2.js → commands-3rcspxct.js} +2 -2
- package/dist/{controller-fyrbnzg4.js → controller-8ar4avd6.js} +3 -3
- package/dist/{controllers-connect-nep9h2xv.js → controllers-connect-ajvh9h0v.js} +19 -19
- package/dist/{cursor-adapter-yss3pg7t.js → cursor-adapter-gd0sa7bh.js} +1 -1
- package/dist/{db-28gjyvxj.js → db-dv9j7ts5.js} +2 -2
- package/dist/{db-8ftwvzba.js → db-z26vgdvj.js} +3 -3
- package/dist/{dispatcher-hayexmkr.js → dispatcher-8m0htjq8.js} +17 -17
- package/dist/{dsh-adapter-46wawff9.js → dsh-adapter-y8gyk130.js} +1 -1
- package/dist/{e2b-fn3zacvt.js → e2b-74vg9b7e.js} +1 -1
- package/dist/{e2b-222hsajc.js → e2b-jyay8wzn.js} +1 -1
- package/dist/{easter-egg-3d-8d1e0h4m.js → easter-egg-3d-28f880xx.js} +1 -1
- package/dist/{execute-cjrfxfnm.js → execute-9seb79vh.js} +1 -1
- package/dist/{external-channel-xbmxcg09.js → external-channel-smz7jyth.js} +2 -2
- package/dist/{getMachineId-bsd-brn0xym3.js → getMachineId-bsd-whfre6gr.js} +3 -3
- package/dist/{getMachineId-darwin-t339sfxm.js → getMachineId-darwin-5zjynb19.js} +3 -3
- package/dist/{getMachineId-linux-5eq95d8b.js → getMachineId-linux-8mksrrsq.js} +3 -3
- package/dist/{getMachineId-unsupported-qavrtc7j.js → getMachineId-unsupported-fxtqsdt2.js} +3 -3
- package/dist/{getMachineId-win-q7fe1wx7.js → getMachineId-win-nzfmz857.js} +3 -3
- package/dist/{grok-adapter-ag4wks2a.js → grok-adapter-z0nnvtbn.js} +7 -7
- package/dist/handlers-pspryh6g.js +41 -0
- package/dist/{heartbeat-psfvcgwp.js → heartbeat-f928aqyp.js} +20 -20
- package/dist/{hook-cyq4mryn.js → hook-d7c605r4.js} +7 -7
- package/dist/{hook-8pz04697.js → hook-q9hv5xf9.js} +5 -5
- package/dist/{http-haj1nd6k.js → http-q6j4k989.js} +934 -180
- package/dist/{index-z5h22pes.js → index-5nb266jr.js} +17 -17
- package/dist/{index-ysd45kgc.js → index-8fxt5eah.js} +10 -10
- package/dist/{index-zgvqzjsw.js → index-cekzwhez.js} +5 -5
- package/dist/{index-zyq8ct52.js → index-ch0c1xff.js} +17 -17
- package/dist/{index-syvhnvtw.js → index-ebnjhxh1.js} +1 -1
- package/dist/{index-y1ajx04a.js → index-ed8dy8rn.js} +20 -20
- package/dist/{index-jwt2bj6f.js → index-ejqdkkqx.js} +11 -10
- package/dist/{index-dr94zbnh.js → index-farm1zsn.js} +32661 -29443
- package/dist/{index-q52f47pe.js → index-yn1yxg85.js} +1 -1
- package/dist/{keepalive-xdvsamvj.js → keepalive-zzc3hks1.js} +3 -3
- package/dist/{lead-hqg57kdp.js → lead-c0pjcaw4.js} +36 -36
- package/dist/{maintenance-4y2xzh3a.js → maintenance-kqsxzpzx.js} +1 -1
- package/dist/{oauth-refresh-sweep-jd4r7zbs.js → oauth-refresh-sweep-7qt0g55z.js} +2 -2
- package/dist/{onboard-18447q9q.js → onboard-k7x13fqg.js} +118 -5
- package/dist/{opencode-adapter-26b2frdf.js → opencode-adapter-tqvrtter.js} +5 -5
- package/dist/{otel-impl-f9tgr8yw.js → otel-impl-sqkf6k3b.js} +97 -97
- package/dist/{pi-mono-adapter-qn6qbga1.js → pi-mono-adapter-m2qnafxm.js} +63 -9
- package/dist/{pricing-refresh-dw2tgb53.js → pricing-refresh-wkpwhgvs.js} +3 -3
- package/dist/{rbac-roles-s4nwj2m3.js → rbac-roles-dpn0c0wj.js} +7 -4
- package/dist/{rbac-roles-aygm2760.js → rbac-roles-wk7xd6a6.js} +2 -2
- package/dist/{render-v2-yfvdfr0x.js → render-v2-ex2m4g2k.js} +3 -3
- package/dist/{resume-1bmvjbf3.js → resume-725g9b0b.js} +7 -7
- package/dist/{runtime-f7tpzedy.js → runtime-kajas15g.js} +1 -1
- package/dist/{session-access-r5garej6.js → session-access-0j2ezjje.js} +8 -4
- package/dist/{session-source-backfill-424wzv0r.js → session-source-backfill-62202awe.js} +2 -2
- package/dist/{setup-8tygvxkq.js → setup-9sj11ax6.js} +1 -1
- package/dist/{virtual-modules-xsw323b3.js → virtual-modules-c6fcq6zr.js} +2 -2
- package/dist/{work-objects-ggnghpgf.js → work-objects-0y07495y.js} +20 -20
- package/dist/{worker-sqjd1nqf.js → worker-d4q9sqbc.js} +36 -36
- package/openapi.json +1070 -9
- package/package.json +3 -3
- package/src/be/connector-codes.ts +65 -22
- package/src/be/memory/boot-reembed.ts +4 -1
- package/src/be/memory/constants.ts +6 -0
- package/src/be/memory/embedding-recovery.ts +48 -0
- package/src/be/memory/index-content.ts +5 -2
- package/src/be/memory/providers/openai-embedding.ts +65 -14
- package/src/be/memory/task-learning.ts +110 -8
- package/src/be/memory/types.ts +13 -2
- package/src/be/migrations/246_connector_code_kind.sql +11 -0
- package/src/be/onboarding.ts +125 -15
- package/src/be/rbac-roles.ts +4 -1
- package/src/be/scripts/embeddings.ts +2 -2
- package/src/be/seed/agent-fs-provision.ts +75 -14
- package/src/be/swarm-config-guard.ts +3 -0
- package/src/cli.tsx +9 -0
- package/src/comb/config.ts +6 -1
- package/src/commands/onboard/agent-fs-version.ts +5 -0
- package/src/commands/onboard/compose-generator.ts +112 -1
- package/src/commands/onboard/env-generator.ts +9 -0
- package/src/commands/onboard/tei-image.ts +12 -0
- package/src/commands/onboard/types.ts +7 -0
- package/src/commands/onboard.tsx +11 -1
- package/src/commands/runner.ts +14 -1
- package/src/http/agentfs-proxy.ts +369 -0
- package/src/http/all-routes.ts +1 -0
- package/src/http/codex-oauth-device.ts +8 -1
- package/src/http/fs.ts +64 -10
- package/src/http/inbox-state.ts +27 -1
- package/src/http/index.ts +4 -1
- package/src/http/memory.ts +7 -4
- package/src/http/onboarding.ts +139 -11
- package/src/http/session-access.ts +24 -0
- package/src/http/sessions.ts +10 -6
- package/src/http/tasks.ts +85 -11
- package/src/http/telemetry-ui.ts +1 -1
- package/src/http/user-roles.ts +4 -1
- package/src/http/users.ts +272 -3
- package/src/http/utils.ts +22 -3
- package/src/prompts/base-prompt.ts +24 -9
- package/src/prompts/session-templates.ts +26 -2
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/codex-adapter.ts +6 -1
- package/src/providers/cursor-adapter.ts +1 -1
- package/src/providers/pi-mono-adapter.ts +58 -3
- package/src/rbac/legacy-policy.ts +1 -0
- package/src/rbac/permissions.ts +4 -0
- package/src/tests/agent-fs-provision-seeder.test.ts +261 -92
- package/src/tests/agentfs-proxy.test.ts +1106 -0
- package/src/tests/base-prompt.test.ts +69 -2
- package/src/tests/codex-adapter.test.ts +46 -8
- package/src/tests/codex-oauth-device.test.ts +12 -1
- package/src/tests/comb-config-guard.test.ts +20 -0
- package/src/tests/comb-links.test.ts +79 -1
- package/src/tests/comb-status.test.ts +44 -0
- package/src/tests/docs-index-footprint.test.js +3 -3
- package/src/tests/fixtures/onboard/baseline-states.ts +68 -0
- package/src/tests/fixtures/onboard/content.compose.yml.txt +190 -0
- package/src/tests/fixtures/onboard/content.env.txt +29 -0
- package/src/tests/fixtures/onboard/dev.compose.yml.txt +155 -0
- package/src/tests/fixtures/onboard/dev.env.txt +28 -0
- package/src/tests/fixtures/onboard/full-all.compose.yml.txt +582 -0
- package/src/tests/fixtures/onboard/full-all.env.txt +59 -0
- package/src/tests/fixtures/onboard/full.compose.yml.txt +435 -0
- package/src/tests/fixtures/onboard/full.env.txt +36 -0
- package/src/tests/fixtures/onboard/research.compose.yml.txt +155 -0
- package/src/tests/fixtures/onboard/research.env.txt +28 -0
- package/src/tests/fixtures/onboard/solo.compose.yml.txt +85 -0
- package/src/tests/fixtures/onboard/solo.env.txt +26 -0
- package/src/tests/http-log-scrubbing.test.ts +34 -1
- package/src/tests/http-task-write-ownership.test.ts +5 -1
- package/src/tests/invites-http.test.ts +464 -0
- package/src/tests/memory-embedding-input-cap.test.ts +122 -1
- package/src/tests/memory-embedding-recovery.test.ts +137 -0
- package/src/tests/onboard-compose.test.ts +142 -0
- package/src/tests/onboard-env.test.ts +24 -0
- package/src/tests/onboard-non-interactive.test.ts +29 -0
- package/src/tests/onboard-tei-image.test.ts +36 -0
- package/src/tests/onboarding.test.ts +451 -4
- package/src/tests/openai-embedding-provider.test.ts +105 -2
- package/src/tests/pi-mono-session-cost-on-abort.test.ts +270 -0
- package/src/tests/preload-env.test.ts +4 -0
- package/src/tests/preload.ts +4 -0
- package/src/tests/prompt-template-session.test.ts +19 -3
- package/src/tests/rbac-admission-e2e.test.ts +22 -6
- package/src/tests/rbac-admission.test.ts +342 -4
- package/src/tests/rbac-engine.test.ts +1 -0
- package/src/tests/rbac-roles.test.ts +9 -1
- package/src/tests/send-task-requester-gate.test.ts +64 -3
- package/src/tests/sessions-move.test.ts +39 -1
- package/src/tests/store-progress-learning.test.ts +95 -2
- package/src/tests/whoami-route.test.ts +41 -0
- package/src/tools/inject-learning.ts +1 -1
- package/src/tools/memory-edit.ts +1 -1
- package/src/tools/memory-search.ts +1 -1
- package/src/tools/store-progress.ts +5 -1
- package/src/tools/utils.ts +12 -1
- package/src/utils/constants.ts +39 -0
- package/src/utils/task-attachment-links.ts +15 -3
- package/templates/skills/swarm-docs/content.md +1 -1
- package/dist/handlers-tzmevqb5.js +0 -41
- package/dist/{azure-openai-responses-9kfwhmn7.js → azure-openai-responses-43asa23s.js} +0 -0
- package/dist/{node-vxx896fa.js → node-t28cc56b.js} +0 -0
- package/dist/{openai-codex-responses-79s8xnbh.js → openai-codex-responses-jhr3sjtm.js} +3 -3
- package/dist/{openai-completions-tdbyts0x.js → openai-completions-gs6yn37k.js} +3 -3
- /package/dist/{openai-responses-dm3t5vqp.js → openai-responses-jqm9vwwk.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listKeepAliveAuthorizations,
|
|
3
3
|
init_oauth
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-qvaa1gjp.js";
|
|
5
5
|
import {
|
|
6
6
|
ensureAuthorizationTokenOrThrow
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-rm66vqdz.js";
|
|
8
8
|
import {
|
|
9
9
|
scrubSecrets,
|
|
10
10
|
init_secret_scrubber
|
|
@@ -57,7 +57,7 @@ async function notifySlack(text) {
|
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
59
|
try {
|
|
60
|
-
const { getSlackApp } = await import("./app-
|
|
60
|
+
const { getSlackApp } = await import("./app-d53yhykk.js");
|
|
61
61
|
const app = getSlackApp();
|
|
62
62
|
if (!app) {
|
|
63
63
|
console.warn("[OAuth Keepalive] Slack not available, cannot send notification");
|
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
import"./cli-qz93y3x5.js";
|
|
2
2
|
import {
|
|
3
3
|
getEnabledCapabilities
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
4
|
+
} from "./cli-pzafyqtk.js";
|
|
5
|
+
import"./cli-qvaa1gjp.js";
|
|
6
|
+
import"./cli-hpkvgdad.js";
|
|
7
|
+
import"./cli-typdpe8g.js";
|
|
8
|
+
import"./cli-2sjm3t4r.js";
|
|
9
|
+
import"./cli-twjnyvs8.js";
|
|
10
|
+
import"./cli-cb50g9cd.js";
|
|
11
11
|
import"./cli-kt907da6.js";
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
12
|
+
import"./cli-dv11pgpv.js";
|
|
13
|
+
import"./cli-kbtdftbw.js";
|
|
14
|
+
import"./cli-rm66vqdz.js";
|
|
15
15
|
import"./cli-3ggwdtb0.js";
|
|
16
16
|
import"./cli-e8xyjvfc.js";
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
17
|
+
import"./cli-thsaq4pd.js";
|
|
18
|
+
import"./cli-vhpckzvp.js";
|
|
19
|
+
import"./cli-ekptgk2m.js";
|
|
20
20
|
import"./cli-2nf3b08t.js";
|
|
21
21
|
import"./cli-kvzgak7c.js";
|
|
22
22
|
import"./cli-445c1vp7.js";
|
|
23
23
|
import"./cli-0z1xjzwa.js";
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
24
|
+
import"./cli-3v2cyqb8.js";
|
|
25
|
+
import"./cli-hq2v4rr5.js";
|
|
26
26
|
import"./cli-g9ypd5en.js";
|
|
27
|
-
import"./cli-
|
|
27
|
+
import"./cli-6vwjsetx.js";
|
|
28
28
|
import"./cli-3h26v7yj.js";
|
|
29
29
|
import"./cli-737pyqxr.js";
|
|
30
|
-
import"./cli-
|
|
30
|
+
import"./cli-8wd3mbyj.js";
|
|
31
31
|
import"./cli-c081bj3b.js";
|
|
32
32
|
import"./cli-77cd6gy8.js";
|
|
33
|
-
import"./cli-
|
|
33
|
+
import"./cli-xbz6mcg4.js";
|
|
34
34
|
import {
|
|
35
35
|
runAgent
|
|
36
|
-
} from "./cli-
|
|
36
|
+
} from "./cli-8feswf2v.js";
|
|
37
37
|
import"./cli-vz78s5wm.js";
|
|
38
38
|
import"./cli-yvy48785.js";
|
|
39
|
-
import"./cli-
|
|
39
|
+
import"./cli-dscnhn18.js";
|
|
40
40
|
import"./cli-jc1g9ndz.js";
|
|
41
|
-
import"./cli-
|
|
42
|
-
import"./cli-
|
|
43
|
-
import"./cli-
|
|
41
|
+
import"./cli-c1t533hh.js";
|
|
42
|
+
import"./cli-c28jxpcv.js";
|
|
43
|
+
import"./cli-d8gaphtr.js";
|
|
44
44
|
import"./cli-d82btycs.js";
|
|
45
45
|
import"./cli-0726awxw.js";
|
|
46
|
-
import"./cli-
|
|
47
|
-
import"./cli-
|
|
46
|
+
import"./cli-vg8pwmsd.js";
|
|
47
|
+
import"./cli-6w2yrrc0.js";
|
|
48
48
|
import"./cli-4bd1rck6.js";
|
|
49
|
-
import"./cli-
|
|
50
|
-
import"./cli-
|
|
51
|
-
import"./cli-
|
|
49
|
+
import"./cli-h3e7bhvn.js";
|
|
50
|
+
import"./cli-prcyzecg.js";
|
|
51
|
+
import"./cli-hkxqdmnb.js";
|
|
52
52
|
import"./cli-kr5tjjtz.js";
|
|
53
|
-
import"./cli-
|
|
54
|
-
import"./cli-
|
|
53
|
+
import"./cli-9csfthbw.js";
|
|
54
|
+
import"./cli-mdadewqp.js";
|
|
55
55
|
import"./cli-39rrw8yp.js";
|
|
56
|
-
import"./cli-
|
|
57
|
-
import"./cli-
|
|
58
|
-
import"./cli-
|
|
59
|
-
import"./cli-
|
|
60
|
-
import"./cli-
|
|
56
|
+
import"./cli-kk9jy4nm.js";
|
|
57
|
+
import"./cli-fk7k8s9x.js";
|
|
58
|
+
import"./cli-0tww7dnz.js";
|
|
59
|
+
import"./cli-dgtfysne.js";
|
|
60
|
+
import"./cli-75tdydgv.js";
|
|
61
61
|
import"./cli-4zsenjhy.js";
|
|
62
62
|
import"./cli-13p25grh.js";
|
|
63
63
|
import"./cli-0adyhvq2.js";
|
|
64
|
-
import"./cli-
|
|
64
|
+
import"./cli-nf6k60sn.js";
|
|
65
65
|
import"./cli-rycdaj0a.js";
|
|
66
66
|
|
|
67
67
|
// src/commands/lead.ts
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthorizationById,
|
|
3
3
|
listAuthorizationSweepRows,
|
|
4
4
|
init_oauth
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-qvaa1gjp.js";
|
|
6
6
|
import {
|
|
7
7
|
forceRefreshAuthorizationOrThrow
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-rm66vqdz.js";
|
|
9
9
|
import {
|
|
10
10
|
isEnvFlagEnabled,
|
|
11
11
|
init_env_flag
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
createDefaultSettingsLocal,
|
|
17
17
|
createDefaultMcpJson,
|
|
18
18
|
createHooksConfig
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-5rp1w4cr.js";
|
|
20
20
|
import {
|
|
21
21
|
getSlackConfiguration,
|
|
22
22
|
isSlackConfigured,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
init_package,
|
|
27
27
|
package_default
|
|
28
|
-
} from "./cli-
|
|
28
|
+
} from "./cli-swkx9jm2.js";
|
|
29
29
|
import {
|
|
30
30
|
getApiKey,
|
|
31
31
|
init_api_key
|
|
@@ -41,6 +41,7 @@ import {
|
|
|
41
41
|
|
|
42
42
|
// src/commands/onboard.tsx
|
|
43
43
|
import crypto2 from "node:crypto";
|
|
44
|
+
import os from "node:os";
|
|
44
45
|
init_package();
|
|
45
46
|
init_config();
|
|
46
47
|
init_api_key();
|
|
@@ -292,6 +293,8 @@ var INITIAL_STATE = {
|
|
|
292
293
|
containerEngine: "auto",
|
|
293
294
|
outputDir: process.cwd(),
|
|
294
295
|
nonInteractive: false,
|
|
296
|
+
bundleAgentFs: false,
|
|
297
|
+
teiImage: null,
|
|
295
298
|
error: null,
|
|
296
299
|
logs: []
|
|
297
300
|
};
|
|
@@ -987,6 +990,9 @@ function CustomTemplatesStep({
|
|
|
987
990
|
// src/commands/onboard/steps/generate.tsx
|
|
988
991
|
var import_react3 = __toESM(require_react(), 1);
|
|
989
992
|
|
|
993
|
+
// src/commands/onboard/agent-fs-version.ts
|
|
994
|
+
var AGENT_FS_VERSION = "0.18.9";
|
|
995
|
+
|
|
990
996
|
// src/commands/onboard/service-names.ts
|
|
991
997
|
function expandServices(services, agentIds) {
|
|
992
998
|
const result = [];
|
|
@@ -1043,6 +1049,73 @@ var ENV_GITLAB_TOKEN = " - GITLAB_TOKEN=${GITLAB_TOKEN}";
|
|
|
1043
1049
|
var ENV_GITLAB_EMAIL = " - GITLAB_EMAIL=${GITLAB_EMAIL}";
|
|
1044
1050
|
var ENV_SENTRY_AUTH_TOKEN = " - SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN}";
|
|
1045
1051
|
var ENV_SENTRY_ORG = " - SENTRY_ORG=${SENTRY_ORG}";
|
|
1052
|
+
var APP_URL = "https://app.agent-swarm.dev";
|
|
1053
|
+
var AGENT_FS_INTERNAL_URL = "http://agent-fs:7433";
|
|
1054
|
+
var TEI_MODEL = "nomic-ai/nomic-embed-text-v1.5";
|
|
1055
|
+
var ENV_AGENT_FS_PUBLIC_URL_PREFIX = " - AGENT_FS_PUBLIC_URL=${PUBLIC_MCP_BASE_URL:-http://localhost:";
|
|
1056
|
+
var TEI_IMAGE_EXPRESSION = "${TEI_IMAGE:-ghcr.io/huggingface/text-embeddings-inference:cpu-1.9.4}";
|
|
1057
|
+
function appendBundleApiEnvironment(lines) {
|
|
1058
|
+
lines.push(` - AGENT_FS_API_URL=${AGENT_FS_INTERNAL_URL}`);
|
|
1059
|
+
lines.push(" - AGENT_FS_PROXY=true");
|
|
1060
|
+
lines.push(" - COMB_ENABLED=true");
|
|
1061
|
+
lines.push(" - AGENT_FS_LINK_TARGET=dashboard");
|
|
1062
|
+
lines.push(" - EMBEDDING_API_BASE_URL=http://tei:80/v1");
|
|
1063
|
+
lines.push(` - EMBEDDING_MODEL=${TEI_MODEL}`);
|
|
1064
|
+
lines.push(" - EMBEDDING_API_KEY=local-tei");
|
|
1065
|
+
lines.push(' - "EMBEDDING_QUERY_PREFIX=search_query: "');
|
|
1066
|
+
lines.push(' - "EMBEDDING_DOCUMENT_PREFIX=search_document: "');
|
|
1067
|
+
}
|
|
1068
|
+
function appendBundleServices(lines, state, apiPort) {
|
|
1069
|
+
lines.push("");
|
|
1070
|
+
lines.push(" agent-fs:");
|
|
1071
|
+
lines.push(` image: "ghcr.io/desplega-ai/agent-fs:${AGENT_FS_VERSION}"`);
|
|
1072
|
+
lines.push(" container_name: swarm-agent-fs");
|
|
1073
|
+
lines.push(` pull_policy: ${state.pullPolicy}`);
|
|
1074
|
+
lines.push("");
|
|
1075
|
+
lines.push(" environment:");
|
|
1076
|
+
lines.push(" - AGENT_FS_HOME=/data");
|
|
1077
|
+
lines.push(" - AGENT_FS_STORAGE_PROVIDER=local");
|
|
1078
|
+
lines.push(" - AGENT_FS_LOCAL_ROOT=/data/storage");
|
|
1079
|
+
lines.push(" - HOST=0.0.0.0");
|
|
1080
|
+
lines.push(" - SERVER_HOST=0.0.0.0");
|
|
1081
|
+
lines.push(" - PORT=7433");
|
|
1082
|
+
lines.push(" - SERVER_PORT=7433");
|
|
1083
|
+
lines.push(" - EMBEDDING_PROVIDER=local");
|
|
1084
|
+
lines.push(`${ENV_AGENT_FS_PUBLIC_URL_PREFIX}${apiPort}}/agentfs`);
|
|
1085
|
+
lines.push(` - AGENT_FS_APP_URL=${APP_URL}`);
|
|
1086
|
+
lines.push("");
|
|
1087
|
+
lines.push(" volumes:");
|
|
1088
|
+
lines.push(" - agent_fs_data:/data");
|
|
1089
|
+
lines.push("");
|
|
1090
|
+
lines.push(" healthcheck:");
|
|
1091
|
+
lines.push(" # The agent-fs image has no curl or wget.");
|
|
1092
|
+
lines.push(` test: ["CMD-SHELL", "node -e \\"fetch('http://127.0.0.1:7433/health').then((r) => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))\\""]`);
|
|
1093
|
+
lines.push(" interval: 10s");
|
|
1094
|
+
lines.push(" timeout: 5s");
|
|
1095
|
+
lines.push(" retries: 30");
|
|
1096
|
+
lines.push(" start_period: 10s");
|
|
1097
|
+
lines.push("");
|
|
1098
|
+
lines.push(" restart: unless-stopped");
|
|
1099
|
+
lines.push("");
|
|
1100
|
+
lines.push(" tei:");
|
|
1101
|
+
lines.push(` image: "${TEI_IMAGE_EXPRESSION}"`);
|
|
1102
|
+
lines.push(" container_name: swarm-tei");
|
|
1103
|
+
lines.push(` pull_policy: ${state.pullPolicy}`);
|
|
1104
|
+
lines.push(` command: ["--model-id", "${TEI_MODEL}", "--max-batch-tokens", "2048", "--max-client-batch-size", "256"]`);
|
|
1105
|
+
lines.push(" mem_limit: 2g");
|
|
1106
|
+
lines.push("");
|
|
1107
|
+
lines.push(" volumes:");
|
|
1108
|
+
lines.push(" - tei_data:/data");
|
|
1109
|
+
lines.push("");
|
|
1110
|
+
lines.push(" healthcheck:");
|
|
1111
|
+
lines.push(' test: ["CMD-SHELL", "curl -sf http://127.0.0.1:80/health || exit 1"]');
|
|
1112
|
+
lines.push(" interval: 10s");
|
|
1113
|
+
lines.push(" timeout: 5s");
|
|
1114
|
+
lines.push(" retries: 30");
|
|
1115
|
+
lines.push(" start_period: 180s");
|
|
1116
|
+
lines.push("");
|
|
1117
|
+
lines.push(" restart: unless-stopped");
|
|
1118
|
+
}
|
|
1046
1119
|
function appendProviderEnvironment(lines, state, includeHarness) {
|
|
1047
1120
|
if (includeHarness)
|
|
1048
1121
|
lines.push(ENV_HARNESS_PROVIDER);
|
|
@@ -1110,7 +1183,7 @@ function generateCompose(state) {
|
|
|
1110
1183
|
lines.push(" - MEMORY_DEMOTION_FLOOR=${MEMORY_DEMOTION_FLOOR-1.0}");
|
|
1111
1184
|
appendProviderEnvironment(lines, state, false);
|
|
1112
1185
|
lines.push(` - MCP_BASE_URL=http://localhost:${port}`);
|
|
1113
|
-
lines.push(
|
|
1186
|
+
lines.push(` - APP_URL=${APP_URL}`);
|
|
1114
1187
|
if (state.integrations.slack) {
|
|
1115
1188
|
lines.push(" - SLACK_DISABLE=false");
|
|
1116
1189
|
lines.push(ENV_SLACK_MODE);
|
|
@@ -1120,6 +1193,15 @@ function generateCompose(state) {
|
|
|
1120
1193
|
if (state.integrations.github) {
|
|
1121
1194
|
lines.push(" - GITHUB_DISABLE=false");
|
|
1122
1195
|
}
|
|
1196
|
+
if (state.bundleAgentFs) {
|
|
1197
|
+
appendBundleApiEnvironment(lines);
|
|
1198
|
+
lines.push("");
|
|
1199
|
+
lines.push(" depends_on:");
|
|
1200
|
+
lines.push(" agent-fs:");
|
|
1201
|
+
lines.push(" condition: service_healthy");
|
|
1202
|
+
lines.push(" tei:");
|
|
1203
|
+
lines.push(" condition: service_started");
|
|
1204
|
+
}
|
|
1123
1205
|
lines.push("");
|
|
1124
1206
|
lines.push(" ports:");
|
|
1125
1207
|
lines.push(` - "${port}:3013"`);
|
|
@@ -1177,6 +1259,11 @@ function generateCompose(state) {
|
|
|
1177
1259
|
lines.push(ENV_SENTRY_AUTH_TOKEN);
|
|
1178
1260
|
lines.push(ENV_SENTRY_ORG);
|
|
1179
1261
|
}
|
|
1262
|
+
if (state.bundleAgentFs) {
|
|
1263
|
+
lines.push(` - AGENT_FS_API_URL=${AGENT_FS_INTERNAL_URL}`);
|
|
1264
|
+
lines.push(` - APP_URL=${APP_URL}`);
|
|
1265
|
+
lines.push(" - AGENT_FS_LINK_TARGET=dashboard");
|
|
1266
|
+
}
|
|
1180
1267
|
lines.push("");
|
|
1181
1268
|
lines.push(" ports:");
|
|
1182
1269
|
lines.push(` - "${port}:3000"`);
|
|
@@ -1191,6 +1278,8 @@ function generateCompose(state) {
|
|
|
1191
1278
|
lines.push("");
|
|
1192
1279
|
lines.push(" restart: unless-stopped");
|
|
1193
1280
|
}
|
|
1281
|
+
if (state.bundleAgentFs)
|
|
1282
|
+
appendBundleServices(lines, state, port);
|
|
1194
1283
|
lines.push("");
|
|
1195
1284
|
lines.push("volumes:");
|
|
1196
1285
|
lines.push(" swarm_data:");
|
|
@@ -1199,6 +1288,10 @@ function generateCompose(state) {
|
|
|
1199
1288
|
for (const svc of expanded) {
|
|
1200
1289
|
lines.push(` swarm_${svc.sanitizedName}:`);
|
|
1201
1290
|
}
|
|
1291
|
+
if (state.bundleAgentFs) {
|
|
1292
|
+
lines.push(" agent_fs_data:");
|
|
1293
|
+
lines.push(" tei_data:");
|
|
1294
|
+
}
|
|
1202
1295
|
return `${lines.join(`
|
|
1203
1296
|
`)}
|
|
1204
1297
|
`;
|
|
@@ -1226,6 +1319,13 @@ function generateEnv(state) {
|
|
|
1226
1319
|
lines.push("MEMORY_GRAPH_EXPANSION=1");
|
|
1227
1320
|
lines.push("MEMORY_RATERS=implicit-citation,explicit-self");
|
|
1228
1321
|
lines.push("MEMORY_DEMOTION_FLOOR=1.0");
|
|
1322
|
+
if (state.bundleAgentFs) {
|
|
1323
|
+
lines.push("");
|
|
1324
|
+
lines.push("# Bundled agent-fs (local disk) and TEI (memory embeddings); settings are in");
|
|
1325
|
+
lines.push("# docker-compose.yml. Generate without them: agent-swarm onboard --yes --no-agent-fs");
|
|
1326
|
+
if (state.teiImage)
|
|
1327
|
+
lines.push(`TEI_IMAGE=${state.teiImage}`);
|
|
1328
|
+
}
|
|
1229
1329
|
lines.push("");
|
|
1230
1330
|
lines.push("# === Authentication ===");
|
|
1231
1331
|
lines.push(`HARNESS_PROVIDER=${state.harness}`);
|
|
@@ -3574,6 +3674,12 @@ function StartStep({ state, addLog, goToNext }) {
|
|
|
3574
3674
|
}, undefined, true, undefined, this);
|
|
3575
3675
|
}
|
|
3576
3676
|
|
|
3677
|
+
// src/commands/onboard/tei-image.ts
|
|
3678
|
+
var TEI_ARM64_IMAGE = "ghcr.io/huggingface/text-embeddings-inference:cpu-arm64-1.9.4";
|
|
3679
|
+
function teiImageForArch(arch) {
|
|
3680
|
+
return arch === "arm64" || arch === "aarch64" ? TEI_ARM64_IMAGE : null;
|
|
3681
|
+
}
|
|
3682
|
+
|
|
3577
3683
|
// src/commands/onboard.tsx
|
|
3578
3684
|
var jsx_dev_runtime18 = __toESM(require_jsx_dev_runtime(), 1);
|
|
3579
3685
|
var BANNER = ` _ _ ____
|
|
@@ -3588,7 +3694,8 @@ function Onboard({
|
|
|
3588
3694
|
preset,
|
|
3589
3695
|
maxConcurrentTasks,
|
|
3590
3696
|
pullPolicy,
|
|
3591
|
-
containerEngine
|
|
3697
|
+
containerEngine,
|
|
3698
|
+
noAgentFs = false
|
|
3592
3699
|
}) {
|
|
3593
3700
|
const { exit } = use_app_default();
|
|
3594
3701
|
const [state, setState] = import_react15.useState(() => {
|
|
@@ -3721,8 +3828,14 @@ function Onboard({
|
|
|
3721
3828
|
const enabled = Object.entries(integrations).filter(([, v]) => v).map(([k]) => k);
|
|
3722
3829
|
addLog(`Integrations: ${enabled.join(", ")}`);
|
|
3723
3830
|
}
|
|
3831
|
+
const bundleAgentFs = !noAgentFs;
|
|
3832
|
+
if (bundleAgentFs) {
|
|
3833
|
+
addLog("Bundling agent-fs and TEI (local files and memory; --no-agent-fs to skip)");
|
|
3834
|
+
}
|
|
3724
3835
|
goToStep("generate", {
|
|
3725
3836
|
nonInteractive: true,
|
|
3837
|
+
bundleAgentFs,
|
|
3838
|
+
teiImage: bundleAgentFs ? teiImageForArch(os.arch()) : null,
|
|
3726
3839
|
deployType: "local",
|
|
3727
3840
|
presetId: selectedPreset.id,
|
|
3728
3841
|
services: selectedPreset.services,
|
|
@@ -3742,7 +3855,7 @@ function Onboard({
|
|
|
3742
3855
|
sentryToken: process.env.SENTRY_AUTH_TOKEN || "",
|
|
3743
3856
|
sentryOrg: process.env.SENTRY_ORG || ""
|
|
3744
3857
|
});
|
|
3745
|
-
}, [yes, preset, state.step, addLog, goToStep, goToError]);
|
|
3858
|
+
}, [yes, preset, noAgentFs, state.step, addLog, goToStep, goToError]);
|
|
3746
3859
|
import_react15.useEffect(() => {
|
|
3747
3860
|
if (yes)
|
|
3748
3861
|
return;
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
applyOpenRouterBaseUrlOverride2,
|
|
4
4
|
buildOpenAICompatibleProviderBlock2,
|
|
5
5
|
OpencodeAdapter2
|
|
6
|
-
} from "./cli-
|
|
7
|
-
import"./cli-
|
|
6
|
+
} from "./cli-dgtfysne.js";
|
|
7
|
+
import"./cli-0tww7dnz.js";
|
|
8
8
|
import"./cli-4bd1rck6.js";
|
|
9
9
|
import"./cli-jc1g9ndz.js";
|
|
10
|
-
import"./cli-
|
|
10
|
+
import"./cli-d8gaphtr.js";
|
|
11
11
|
import"./cli-0726awxw.js";
|
|
12
|
-
import"./cli-
|
|
12
|
+
import"./cli-dscnhn18.js";
|
|
13
13
|
import"./cli-c081bj3b.js";
|
|
14
14
|
import"./cli-3h26v7yj.js";
|
|
15
|
-
import"./cli-
|
|
15
|
+
import"./cli-ekptgk2m.js";
|
|
16
16
|
import"./cli-0z1xjzwa.js";
|
|
17
17
|
import"./cli-e8xyjvfc.js";
|
|
18
18
|
import"./cli-13p25grh.js";
|