@desplega.ai/agent-swarm 2.8.0 → 2.8.2
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-t949vbbp.js → acp-adapter-fqzkxyra.js} +3 -3
- package/dist/{actions-7e9czc7s.js → actions-kxek041g.js} +18 -18
- package/dist/{amp-adapter-gv6cbb7d.js → amp-adapter-ce7jjke4.js} +1 -1
- package/dist/{app-b9fbkp9v.js → app-v6zz8yh0.js} +3 -3
- package/dist/{assistant-wjb7v4c7.js → assistant-m0sw9xx2.js} +19 -19
- package/dist/{boot-args-schema-2t37e0fe.js → boot-args-schema-66bk37wv.js} +1 -1
- package/dist/{boot-reembed-gka3zas7.js → boot-reembed-edjpwsc1.js} +1 -1
- package/dist/{boot-reembed-a35nkyr1.js → boot-reembed-y27n09tz.js} +1 -1
- package/dist/{boot-scrub-sweep-65sdnp6c.js → boot-scrub-sweep-1xc35965.js} +3 -3
- package/dist/{boot-seeds-x42tzytw.js → boot-seeds-7hjj91qj.js} +4 -4
- package/dist/{boxd-qbkxy6ap.js → boxd-ent8ch04.js} +1 -1
- package/dist/{claude-adapter-v221b2fd.js → claude-adapter-stw7jdcf.js} +3 -3
- package/dist/{claude-managed-adapter-29eq09wd.js → claude-managed-adapter-jh6c523j.js} +2 -2
- package/dist/{claude-managed-setup-9m6450zk.js → claude-managed-setup-y6z2perp.js} +5 -5
- package/dist/{claude-sdk-session-0q0ptaba.js → claude-sdk-session-vvya8wqk.js} +3 -3
- package/dist/{cli-wk18cm92.js → cli-0cq8y6m7.js} +1 -1
- package/dist/{cli-p1w18yhx.js → cli-1pz0330a.js} +1 -1
- package/dist/{cli-y97qxcfx.js → cli-1qkz151v.js} +3 -3
- package/dist/{cli-qwca7s44.js → cli-26ctbcdp.js} +18 -6
- package/dist/{cli-8fknbnhw.js → cli-2kvhc7x8.js} +7 -7
- package/dist/{cli-rfywm85n.js → cli-3e875j5p.js} +136 -49
- package/dist/{cli-6wxjceza.js → cli-3sy2xags.js} +10 -10
- package/dist/{cli-a7wvp2km.js → cli-3vmb0n58.js} +1 -1
- package/dist/{cli-p1bq50aa.js → cli-4vzgeta4.js} +13 -13
- package/dist/{cli-m28atx8q.js → cli-5y340nzn.js} +4 -4
- package/dist/{cli-7p1kvkck.js → cli-6rc5frdm.js} +1 -1
- package/dist/{cli-tph5wt3y.js → cli-6wj7p986.js} +1 -1
- package/dist/{cli-t73cas91.js → cli-7349va39.js} +8100 -7620
- package/dist/{cli-ee0b971j.js → cli-837vfs2x.js} +2 -2
- package/dist/{cli-abejgen1.js → cli-959kp5h2.js} +12 -11
- package/dist/{cli-8kzasymh.js → cli-97ae65rz.js} +4 -4
- package/dist/{cli-m4dqmnbp.js → cli-9mb2q6pb.js} +1 -1
- package/dist/{cli-p2gfst4m.js → cli-a0z912j7.js} +123 -35
- package/dist/{cli-4txa0ter.js → cli-b98a65ed.js} +3 -3
- package/dist/{cli-k0wwfqbg.js → cli-dns0y538.js} +4 -0
- package/dist/{cli-tk7cjj8h.js → cli-dzpc6en0.js} +1 -1
- package/dist/{cli-qa4wdgsy.js → cli-e1p3n5gq.js} +4 -4
- package/dist/{cli-gxkx0zzp.js → cli-f4e8r23x.js} +1 -1
- package/dist/{cli-qmqk2yc2.js → cli-f4r3g076.js} +1 -1
- package/dist/{cli-wcg8x116.js → cli-f6bahpn5.js} +1 -1
- package/dist/{cli-qsnnd04k.js → cli-fpjmegdb.js} +1 -1
- package/dist/{cli-j790gp2w.js → cli-fwy8kfd6.js} +271 -37
- package/dist/{cli-rmmpt0wm.js → cli-g5mtmf6t.js} +6 -6
- package/dist/{cli-rzsy6nc6.js → cli-gyt3zydq.js} +3 -3
- package/dist/{cli-pasjcnmj.js → cli-j24zbska.js} +3 -3
- package/dist/{cli-qfedvmcr.js → cli-jdknh18m.js} +10 -10
- package/dist/{cli-7b8sbmag.js → cli-kjtwrhea.js} +1 -1
- package/dist/{cli-gpwhbgx0.js → cli-m9s2qff2.js} +57 -25
- package/dist/{cli-2wnq8jkz.js → cli-mxn1qvbn.js} +3 -2
- package/dist/{cli-s7t6p9my.js → cli-n6vtrcht.js} +1 -1
- package/dist/{cli-2zp0et3v.js → cli-pchypa1s.js} +55 -19
- package/dist/{cli-yq3zak69.js → cli-pfs8adn4.js} +1 -1
- package/dist/{cli-c55z5chy.js → cli-q24n86d2.js} +2 -2
- package/dist/{cli-h38x262p.js → cli-rcecc3yq.js} +167 -43
- package/dist/{cli-xae4g51r.js → cli-rh15cakt.js} +1 -1
- package/dist/{cli-sdtt3men.js → cli-rmzsadkf.js} +1 -1
- package/dist/{cli-f3vq58d2.js → cli-t2tma8gb.js} +1 -1
- package/dist/{cli-m23zjcy2.js → cli-tekytdq9.js} +2 -2
- package/dist/{cli-tqegb8eq.js → cli-vdektqgf.js} +1 -1
- package/dist/{cli-ffhtssbp.js → cli-vj75tyaw.js} +1 -1
- package/dist/{cli-deefvewm.js → cli-w401b9tq.js} +1 -1
- package/dist/{cli-n9ftpys4.js → cli-x6t50dmw.js} +7 -7
- package/dist/{cli-6t09sdhy.js → cli-xf3qw745.js} +3 -3
- package/dist/{cli-hxpyc9sn.js → cli-z1w943va.js} +2 -2
- package/dist/{cli-334z18y3.js → cli-zh9rsbqf.js} +3 -3
- package/dist/cli.js +17 -17
- package/dist/{codex-adapter-30j9bpzd.js → codex-adapter-zerf5qsp.js} +1 -1
- package/dist/{codex-hook-h3vk6xzr.js → codex-hook-30gyhzxe.js} +1 -1
- package/dist/{codex-session-runner-8vp57v8w.js → codex-session-runner-89s304py.js} +1 -1
- package/dist/{commands-bngnz9g7.js → commands-jeh1b51j.js} +3 -3
- package/dist/{controller-hxx8wwy1.js → controller-mctfbrse.js} +3 -3
- package/dist/{controllers-connect-e2b4gyxc.js → controllers-connect-nxa1ddwn.js} +19 -19
- package/dist/{cursor-adapter-n5nc3mfe.js → cursor-adapter-qj8vehv6.js} +1 -1
- package/dist/{db-bgm7vkc0.js → db-2dvay0es.js} +3 -3
- package/dist/{db-c6np41ca.js → db-b36qn6k3.js} +2 -2
- package/dist/{dispatcher-jnybck15.js → dispatcher-gndbta01.js} +17 -17
- package/dist/{dsh-adapter-nrhbrjz8.js → dsh-adapter-f75sz821.js} +1 -1
- package/dist/{e2b-jkwfhbcv.js → e2b-3gpc2n3w.js} +1 -1
- package/dist/{e2b-s16txnpx.js → e2b-jbm7mj93.js} +1 -1
- package/dist/{embedding-space-crsm2zp0.js → embedding-space-4p05vb2x.js} +6 -6
- package/dist/{embeddings-e7z3f27f.js → embeddings-m6768mgh.js} +1 -1
- package/dist/{external-channel-m77wf5z3.js → external-channel-gjv3jne3.js} +2 -2
- package/dist/{fx-adapter-b6w0kf56.js → fx-adapter-rpsgb1tw.js} +4 -4
- package/dist/{grok-adapter-4sqtebdk.js → grok-adapter-n2m3zjg1.js} +4 -4
- package/dist/handlers-nv8edn19.js +32 -0
- package/dist/{heartbeat-xgb036sx.js → heartbeat-a1tv60gt.js} +20 -20
- package/dist/{hook-xsk1jbha.js → hook-8h5dzcgq.js} +2 -2
- package/dist/{hook-5h02c9ga.js → hook-cyaps9ba.js} +4 -4
- package/dist/{http-txe7qhvn.js → http-t15mhbd9.js} +1733 -79
- package/dist/{index-0eny15vj.js → index-2skqtd76.js} +2 -2
- package/dist/{index-w7em4ktq.js → index-d6wkh8ar.js} +2 -2
- package/dist/{index-rvccek1w.js → index-gjwaqaq8.js} +5 -5
- package/dist/{index-e5pfbsys.js → index-hjhfk3ra.js} +3 -3
- package/dist/{index-1qw6f2dc.js → index-khe3gp0k.js} +4 -4
- package/dist/index-ksmyd6kc.js +37 -0
- package/dist/{index-vk63emp7.js → index-qav6455f.js} +14 -12
- package/dist/index-rjnrje98.js +32 -0
- package/dist/index-tv3413wy.js +33 -0
- package/dist/{index-ysvbhg5m.js → index-w1zqf680.js} +1 -1
- package/dist/{keepalive-4zsrce78.js → keepalive-91s7hzrb.js} +3 -3
- package/dist/lead-3hmddvrm.js +70 -0
- package/dist/{maintenance-86jvartk.js → maintenance-7pjmy5xy.js} +1 -1
- package/dist/{node-je82wjet.js → node-4c5jqxr3.js} +1 -1
- package/dist/{oauth-refresh-sweep-j52kg9pr.js → oauth-refresh-sweep-rzqfm94j.js} +2 -2
- package/dist/{onboard-c2aj5p8q.js → onboard-74st7pag.js} +3 -3
- package/dist/{opencode-adapter-dsagkhtw.js → opencode-adapter-arn7gm8q.js} +2 -2
- package/dist/{otel-impl-yyy203z8.js → otel-impl-rnzey8cb.js} +1 -1
- package/dist/{pi-mono-adapter-546cd1cc.js → pi-mono-adapter-6mkwq64n.js} +3 -2
- package/dist/{pricing-refresh-1rgzqyzz.js → pricing-refresh-ha21jhk7.js} +2 -2
- package/dist/{rbac-roles-e70xfeyj.js → rbac-roles-59dxachk.js} +2 -2
- package/dist/{rbac-roles-q89qe8er.js → rbac-roles-wqhma4dr.js} +3 -3
- package/dist/{render-v2-k6tt107q.js → render-v2-14kpzx12.js} +3 -3
- package/dist/{resume-cnnrjfxa.js → resume-gsa5fb5f.js} +6 -6
- package/dist/{session-access-xkxkjw3n.js → session-access-skm7bnp6.js} +4 -4
- package/dist/{session-source-backfill-1d5pdwww.js → session-source-backfill-pbqzbncv.js} +2 -2
- package/dist/{setup-se8q7gkc.js → setup-5yermsem.js} +1 -1
- package/dist/{work-objects-1kxnbzy5.js → work-objects-xj0ck0w4.js} +20 -20
- package/dist/{worker-follow-up-zqm8apt4.js → worker-follow-up-911xc0b8.js} +19 -17
- package/dist/worker-qgg0m2gw.js +70 -0
- package/openapi.json +1741 -290
- package/package.json +3 -3
- package/src/apps/catalog.generated.json +120 -1
- package/src/apps/definition.ts +38 -11
- package/src/apps/page-validator.ts +88 -0
- package/src/be/db/model-profiles.ts +110 -11
- package/src/be/db/tasks/read.ts +20 -0
- package/src/be/db/workflow-run-definitions.ts +19 -8
- package/src/be/db-client.ts +43 -5
- package/src/be/db.ts +9 -3
- package/src/be/migrations/284_model_profile_fallbacks.sql +9 -0
- package/src/be/model-profile-check.ts +43 -18
- package/src/be/runtime-pools/routing.ts +1 -0
- package/src/be/savings/calibrate.ts +468 -0
- package/src/be/savings/compute.ts +182 -0
- package/src/be/savings/model.ts +406 -0
- package/src/be/scripts/typecheck.ts +5 -0
- package/src/be/seed/agent-fs-provision.ts +48 -11
- package/src/be/seed/workflows-seeder.ts +67 -23
- package/src/be/skill-parser.ts +19 -7
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/commands/provider-error-class.ts +97 -0
- package/src/commands/runner.ts +99 -17
- package/src/extensions/contract-types.generated.ts +1 -1
- package/src/http/all-routes.ts +2 -0
- package/src/http/fs.ts +8 -2
- package/src/http/index.ts +4 -0
- package/src/http/model-profiles.ts +43 -10
- package/src/http/poll.ts +1 -0
- package/src/http/savings-calibration.ts +277 -0
- package/src/http/savings.ts +363 -0
- package/src/http/tasks.ts +46 -4
- package/src/http/trackers/authorize-gate.ts +41 -0
- package/src/http/trackers/jira.ts +26 -4
- package/src/http/trackers/linear.ts +26 -4
- package/src/integrations/chat-sdk/limits.ts +6 -1
- package/src/jira/oauth.ts +7 -1
- package/src/linear/README.md +2 -1
- package/src/linear/oauth.ts +7 -1
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/codex-adapter.ts +3 -0
- package/src/providers/pi-mono-adapter.ts +6 -5
- package/src/providers/types.ts +7 -0
- package/src/scripts-runtime/eval-harness.ts +14 -1
- package/src/scripts-runtime/executors/types.ts +3 -0
- package/src/scripts-runtime/sdk-allowlist.ts +11 -1
- package/src/scripts-runtime/swarm-sdk.ts +6 -0
- package/src/scripts-runtime/types/stdlib.d.ts +9 -0
- package/src/scripts-runtime/types/swarm-extension.d.ts +34 -0
- package/src/scripts-runtime/types/swarm-sdk.d.ts +9 -0
- package/src/tasks/worker-follow-up.ts +142 -3
- package/src/tests/agent-fs-provision-seeder.test.ts +81 -0
- package/src/tests/apps-chart-shell.test.ts +170 -0
- package/src/tests/apps-icon.test.ts +156 -2
- package/src/tests/chat-sdk-relay.test.ts +12 -0
- package/src/tests/codex-adapter.test.ts +11 -0
- package/src/tests/comb-default.test.ts +6 -0
- package/src/tests/core-auth.test.ts +7 -6
- package/src/tests/db-client-busy-retry.test.ts +58 -6
- package/src/tests/deploy-guard.test.ts +154 -0
- package/src/tests/docs-index-footprint.test.js +3 -3
- package/src/tests/fixtures/app-shell-charts-definition.json.txt +180 -0
- package/src/tests/mcp-tools.test.ts +1 -1
- package/src/tests/model-profile-fallbacks.test.ts +482 -0
- package/src/tests/model-profiles-api.test.ts +1 -0
- package/src/tests/pi-mono-session-cost-on-abort.test.ts +115 -0
- package/src/tests/provider-error-class.test.ts +174 -0
- package/src/tests/runner-provider-fallback.test.ts +197 -0
- package/src/tests/savings-calibration-api.test.ts +264 -0
- package/src/tests/savings-calibration.test.ts +201 -0
- package/src/tests/savings-compute.test.ts +406 -0
- package/src/tests/savings-model.test.ts +287 -0
- package/src/tests/script-connections.test.ts +2 -0
- package/src/tests/script-native-unawaited-drain.test.ts +167 -0
- package/src/tests/sdk-allowlist.test.ts +40 -0
- package/src/tests/seed-workflows.test.ts +167 -11
- package/src/tests/skill-parser.test.ts +45 -0
- package/src/tests/tracker-oauth-authorize-auth.test.ts +262 -0
- package/src/tests/workflow-definition-pinning.test.ts +128 -3
- package/src/tests/workflow-script-principal.test.ts +94 -4
- package/src/tools/app-upsert.ts +1 -1
- package/src/tools/model-profiles/list-model-profiles.ts +4 -2
- package/src/tools/script-run.ts +1 -1
- package/src/tools/update-profile.ts +1 -1
- package/src/types.ts +115 -33
- package/src/utils/constants.ts +2 -0
- package/templates/skills/apps/SKILL.md +62 -3
- package/templates/skills/apps/content.md +62 -3
- package/templates/skills/swarm-docs/content.md +2 -0
- package/templates/skills/swarm-scripts/SKILL.md +1 -1
- package/templates/skills/swarm-scripts/content.md +1 -1
- package/dist/handlers-kdjcyzdj.js +0 -32
- package/dist/index-835xdgnm.js +0 -33
- package/dist/index-d469300x.js +0 -37
- package/dist/index-rzqwp11g.js +0 -32
- package/dist/lead-yqt47dkr.js +0 -70
- package/dist/worker-j6xxtq7p.js +0 -70
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ACPAdapter2
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
3
|
+
} from "./cli-gyt3zydq.js";
|
|
4
|
+
import"./cli-6rc5frdm.js";
|
|
5
|
+
import"./cli-vdektqgf.js";
|
|
6
6
|
import"./cli-d6521kb5.js";
|
|
7
7
|
import"./cli-4bd1rck6.js";
|
|
8
8
|
import"./cli-g70vxtjh.js";
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
getTaskById2,
|
|
7
7
|
cancelTask2,
|
|
8
8
|
init_db4
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-rcecc3yq.js";
|
|
10
10
|
import"./cli-eddnyg3t.js";
|
|
11
11
|
import {
|
|
12
12
|
EXTERNAL_CHANNEL_BLOCKED_REPLY2,
|
|
13
13
|
shouldBlockChannel2,
|
|
14
14
|
init_external_channel
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-fpjmegdb.js";
|
|
16
16
|
import {
|
|
17
17
|
noteSlackInboundSideEffect,
|
|
18
18
|
ignoreSlackInbound,
|
|
@@ -26,29 +26,29 @@ import {
|
|
|
26
26
|
isSlackRenderV2Enabled2,
|
|
27
27
|
ensureSlackThreadTree2,
|
|
28
28
|
init_render_v2
|
|
29
|
-
} from "./cli-
|
|
30
|
-
import"./cli-
|
|
29
|
+
} from "./cli-4vzgeta4.js";
|
|
30
|
+
import"./cli-j24zbska.js";
|
|
31
31
|
import {
|
|
32
32
|
createTaskWithSiblingAwareness,
|
|
33
33
|
init_sibling_awareness
|
|
34
|
-
} from "./cli-
|
|
35
|
-
import"./cli-
|
|
36
|
-
import"./cli-
|
|
37
|
-
import"./cli-
|
|
34
|
+
} from "./cli-3e875j5p.js";
|
|
35
|
+
import"./cli-q24n86d2.js";
|
|
36
|
+
import"./cli-b98a65ed.js";
|
|
37
|
+
import"./cli-t2tma8gb.js";
|
|
38
38
|
import"./cli-7cp6aa1q.js";
|
|
39
|
-
import"./cli-
|
|
40
|
-
import"./cli-
|
|
41
|
-
import"./cli-
|
|
39
|
+
import"./cli-x6t50dmw.js";
|
|
40
|
+
import"./cli-97ae65rz.js";
|
|
41
|
+
import"./cli-5y340nzn.js";
|
|
42
42
|
import {
|
|
43
43
|
resolveSlackUserId,
|
|
44
44
|
init_enrich
|
|
45
|
-
} from "./cli-
|
|
46
|
-
import"./cli-
|
|
47
|
-
import"./cli-
|
|
48
|
-
import"./cli-
|
|
49
|
-
import"./cli-
|
|
50
|
-
import"./cli-
|
|
51
|
-
import"./cli-
|
|
45
|
+
} from "./cli-xf3qw745.js";
|
|
46
|
+
import"./cli-fwy8kfd6.js";
|
|
47
|
+
import"./cli-rmzsadkf.js";
|
|
48
|
+
import"./cli-jdknh18m.js";
|
|
49
|
+
import"./cli-3vmb0n58.js";
|
|
50
|
+
import"./cli-n6vtrcht.js";
|
|
51
|
+
import"./cli-f4e8r23x.js";
|
|
52
52
|
import {
|
|
53
53
|
__esm
|
|
54
54
|
} from "./cli-242037k3.js";
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
stopSlackApp2,
|
|
6
6
|
stopSlackAppUnderLifecycleLock2,
|
|
7
7
|
init_app3
|
|
8
|
-
} from "./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
8
|
+
} from "./cli-4vzgeta4.js";
|
|
9
|
+
import"./cli-fpjmegdb.js";
|
|
10
|
+
import"./cli-rcecc3yq.js";
|
|
11
11
|
import"./cli-eddnyg3t.js";
|
|
12
12
|
init_app3();
|
|
13
13
|
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
getAgentWorkingOnThread2,
|
|
7
7
|
getMostRecentTaskInThread2,
|
|
8
8
|
init_db4
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-rcecc3yq.js";
|
|
10
10
|
import {
|
|
11
11
|
shouldBlockChannel2,
|
|
12
12
|
init_external_channel
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-fpjmegdb.js";
|
|
14
14
|
import"./cli-eddnyg3t.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist5,
|
|
@@ -26,9 +26,9 @@ import {
|
|
|
26
26
|
isSlackRenderV2Enabled2,
|
|
27
27
|
ensureSlackThreadTree2,
|
|
28
28
|
init_render_v2
|
|
29
|
-
} from "./cli-
|
|
29
|
+
} from "./cli-4vzgeta4.js";
|
|
30
30
|
import"./cli-7cp6aa1q.js";
|
|
31
|
-
import"./cli-
|
|
31
|
+
import"./cli-j24zbska.js";
|
|
32
32
|
import {
|
|
33
33
|
init_templates,
|
|
34
34
|
buildEffectiveText,
|
|
@@ -41,34 +41,34 @@ import {
|
|
|
41
41
|
slackInboundMessageText,
|
|
42
42
|
collectSlackMessageFiles,
|
|
43
43
|
init_message_text
|
|
44
|
-
} from "./cli-
|
|
45
|
-
import"./cli-
|
|
46
|
-
import"./cli-
|
|
47
|
-
import"./cli-
|
|
48
|
-
import"./cli-
|
|
49
|
-
import"./cli-
|
|
50
|
-
import"./cli-
|
|
44
|
+
} from "./cli-3e875j5p.js";
|
|
45
|
+
import"./cli-q24n86d2.js";
|
|
46
|
+
import"./cli-b98a65ed.js";
|
|
47
|
+
import"./cli-t2tma8gb.js";
|
|
48
|
+
import"./cli-x6t50dmw.js";
|
|
49
|
+
import"./cli-97ae65rz.js";
|
|
50
|
+
import"./cli-5y340nzn.js";
|
|
51
51
|
import {
|
|
52
52
|
wasEventSeen,
|
|
53
53
|
init_event_dedup,
|
|
54
54
|
bufferThreadMessage,
|
|
55
55
|
getBufferMessageCount,
|
|
56
56
|
init_thread_buffer
|
|
57
|
-
} from "./cli-
|
|
57
|
+
} from "./cli-g5mtmf6t.js";
|
|
58
58
|
import {
|
|
59
59
|
resolveSlackUserId,
|
|
60
60
|
rewriteSlackMentions,
|
|
61
61
|
init_enrich
|
|
62
|
-
} from "./cli-
|
|
63
|
-
import"./cli-
|
|
64
|
-
import"./cli-
|
|
65
|
-
import"./cli-
|
|
62
|
+
} from "./cli-xf3qw745.js";
|
|
63
|
+
import"./cli-fwy8kfd6.js";
|
|
64
|
+
import"./cli-rmzsadkf.js";
|
|
65
|
+
import"./cli-jdknh18m.js";
|
|
66
66
|
import {
|
|
67
67
|
shouldSkipLeftSlackThread,
|
|
68
68
|
init_left_threads
|
|
69
|
-
} from "./cli-
|
|
70
|
-
import"./cli-
|
|
71
|
-
import"./cli-
|
|
69
|
+
} from "./cli-3vmb0n58.js";
|
|
70
|
+
import"./cli-n6vtrcht.js";
|
|
71
|
+
import"./cli-f4e8r23x.js";
|
|
72
72
|
import {
|
|
73
73
|
resolveTemplate,
|
|
74
74
|
init_resolver
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
getMemoryStore2,
|
|
9
9
|
init_memory,
|
|
10
10
|
init_db4
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-rcecc3yq.js";
|
|
12
12
|
import {
|
|
13
13
|
contentSha256,
|
|
14
14
|
init_profile_sync
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-dzpc6en0.js";
|
|
16
16
|
import {
|
|
17
17
|
SCRUBBER_RULES_VERSION,
|
|
18
18
|
scrubSecrets,
|
|
@@ -87,7 +87,7 @@ async function runBootScrubSweep(opts = {}) {
|
|
|
87
87
|
console.log(`[${tag}] complete`);
|
|
88
88
|
const memoryChanged = stats.find((s) => s.table === "agent_memory")?.changed ?? 0;
|
|
89
89
|
if (memoryChanged > 0 && opts.reembed !== false) {
|
|
90
|
-
const { runBootReembed } = await import("./boot-reembed-
|
|
90
|
+
const { runBootReembed } = await import("./boot-reembed-y27n09tz.js");
|
|
91
91
|
await runBootReembed();
|
|
92
92
|
}
|
|
93
93
|
return stats;
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
ensureRbacSeeded2,
|
|
4
4
|
ensureModelProfilesSeeded2,
|
|
5
5
|
init_boot_seeds
|
|
6
|
-
} from "./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
6
|
+
} from "./cli-b98a65ed.js";
|
|
7
|
+
import"./cli-q24n86d2.js";
|
|
8
|
+
import"./cli-f4e8r23x.js";
|
|
9
|
+
import"./cli-rcecc3yq.js";
|
|
10
10
|
init_boot_seeds();
|
|
11
11
|
|
|
12
12
|
export {
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
buildClaudeSessionEnvironment2,
|
|
5
5
|
runClaudeSessionSummary2,
|
|
6
6
|
ClaudeAdapter2
|
|
7
|
-
} from "./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
7
|
+
} from "./cli-1qkz151v.js";
|
|
8
|
+
import"./cli-e1p3n5gq.js";
|
|
9
|
+
import"./cli-f4r3g076.js";
|
|
10
10
|
import"./cli-d82btycs.js";
|
|
11
11
|
import"./cli-98rwmcyc.js";
|
|
12
12
|
import"./cli-4bd1rck6.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
checkClaudeManagedCredentials2,
|
|
3
3
|
ClaudeManagedAdapter2
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-vj75tyaw.js";
|
|
5
5
|
import"./cli-m5akxq8q.js";
|
|
6
6
|
import"./cli-kr5tjjtz.js";
|
|
7
|
-
import"./cli-
|
|
7
|
+
import"./cli-7349va39.js";
|
|
8
8
|
import"./cli-0726awxw.js";
|
|
9
9
|
import"./cli-xzm9vcfg.js";
|
|
10
10
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toFile,
|
|
3
3
|
Anthropic
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import {
|
|
6
|
-
ConflictError
|
|
7
|
-
} from "./cli-gpwhbgx0.js";
|
|
4
|
+
} from "./cli-7349va39.js";
|
|
8
5
|
import {
|
|
9
6
|
buildSkillContent
|
|
10
7
|
} from "./cli-691vz9mk.js";
|
|
8
|
+
import {
|
|
9
|
+
ConflictError
|
|
10
|
+
} from "./cli-m9s2qff2.js";
|
|
11
11
|
import {
|
|
12
12
|
init_flow,
|
|
13
13
|
init_auth_json,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_MODEL_TIER_MAP,
|
|
18
18
|
init_types4
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-pchypa1s.js";
|
|
20
20
|
import {
|
|
21
21
|
selectCredential,
|
|
22
22
|
init_credentials2
|
|
@@ -7,19 +7,19 @@ import {
|
|
|
7
7
|
trackErrorFromJson,
|
|
8
8
|
parseStderrForErrors
|
|
9
9
|
} from "./cli-kc7v1nfv.js";
|
|
10
|
-
import"./cli-
|
|
10
|
+
import"./cli-f4r3g076.js";
|
|
11
11
|
import"./cli-8aes17e4.js";
|
|
12
12
|
import"./cli-g70vxtjh.js";
|
|
13
13
|
import"./cli-d82btycs.js";
|
|
14
14
|
import"./cli-0726awxw.js";
|
|
15
|
-
import"./cli-
|
|
15
|
+
import"./cli-e1p3n5gq.js";
|
|
16
16
|
import {
|
|
17
17
|
ClaudeBackgroundKeepalive,
|
|
18
18
|
normalizeClaudeMessage,
|
|
19
19
|
cleanupTaskFile2,
|
|
20
20
|
buildClaudeSessionEnvironment2,
|
|
21
21
|
runClaudeSessionSummary2
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-1qkz151v.js";
|
|
23
23
|
import"./cli-4bd1rck6.js";
|
|
24
24
|
import"./cli-98rwmcyc.js";
|
|
25
25
|
import"./cli-jrzkw01m.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./cli-xzm9vcfg.js";
|
|
6
6
|
import {
|
|
7
7
|
runStopHookSessionSummarySubprocess
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-e1p3n5gq.js";
|
|
9
9
|
import {
|
|
10
10
|
redactRateLimitEventLine,
|
|
11
11
|
SessionErrorTracker,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
import {
|
|
56
56
|
withFileLock,
|
|
57
57
|
init_file_lock
|
|
58
|
-
} from "./cli-
|
|
58
|
+
} from "./cli-dzpc6en0.js";
|
|
59
59
|
import {
|
|
60
60
|
getOpenRouterAttributionHeaders,
|
|
61
61
|
init_openrouter_base_url
|
|
@@ -1263,7 +1263,7 @@ class ClaudeAdapter2 {
|
|
|
1263
1263
|
if (transport === "sdk" && isClaudeBridgeEffective(sourceEnv)) {
|
|
1264
1264
|
throw new Error("CLAUDE_TRANSPORT=sdk cannot run with an effective Claude Bridge configuration. Select CLI transport or disable the bridge.");
|
|
1265
1265
|
}
|
|
1266
|
-
const claudeSdk = transport === "sdk" ? await import("./claude-sdk-session-
|
|
1266
|
+
const claudeSdk = transport === "sdk" ? await import("./claude-sdk-session-vvya8wqk.js") : undefined;
|
|
1267
1267
|
claudeSdk?.validateClaudeSdkAdditionalArgs([
|
|
1268
1268
|
...claudeBinaryArgv.slice(1),
|
|
1269
1269
|
...config.additionalArgs ?? []
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
getResolvedConfig2,
|
|
7
7
|
getAllUsers2,
|
|
8
8
|
init_db4
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-rcecc3yq.js";
|
|
10
10
|
import {
|
|
11
11
|
getUserGrant2,
|
|
12
12
|
init_rbac_roles
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-q24n86d2.js";
|
|
14
14
|
import {
|
|
15
15
|
scrubSecrets,
|
|
16
16
|
init_secret_scrubber
|
|
@@ -166,7 +166,8 @@ async function inviteEmailToSharedOrg(email, role) {
|
|
|
166
166
|
status: "pending",
|
|
167
167
|
...typeof response.inviteId === "string" ? { inviteId: response.inviteId } : {},
|
|
168
168
|
...typeof response.expiresAt === "string" ? { expiresAt: response.expiresAt } : {},
|
|
169
|
-
...typeof response.acceptUrl === "string" ? { acceptUrl: response.acceptUrl } : {}
|
|
169
|
+
...typeof response.acceptUrl === "string" ? { acceptUrl: response.acceptUrl } : {},
|
|
170
|
+
...typeof response.token === "string" ? { token: response.token } : {}
|
|
170
171
|
};
|
|
171
172
|
}
|
|
172
173
|
async function ensureAgentFsCredentialsForAgent(agentId) {
|
|
@@ -217,7 +218,7 @@ async function ensureAgentFsCredentialsForAgent(agentId) {
|
|
|
217
218
|
const currentRoles = await getCurrentOrgMemberRoles(apiUrl, shared.authHeaders, shared.orgId);
|
|
218
219
|
const currentRole = currentRoles.get(email.toLowerCase());
|
|
219
220
|
if (!currentRole || roleRank(currentRole) < roleRank("editor")) {
|
|
220
|
-
await inviteToSharedOrg(apiUrl, shared.authHeaders, shared.orgId, { email, role: "editor" });
|
|
221
|
+
await inviteToSharedOrg(apiUrl, shared.authHeaders, shared.orgId, { email, role: "editor" }, { acceptWithApiKey: apiKey });
|
|
221
222
|
}
|
|
222
223
|
await upsertSwarmConfig2({
|
|
223
224
|
scope: "agent",
|
|
@@ -284,14 +285,25 @@ async function ensureSharedDrive(apiUrl, headers, orgId) {
|
|
|
284
285
|
throw new Error("agent-fs drive creation did not return an id");
|
|
285
286
|
return driveId;
|
|
286
287
|
}
|
|
287
|
-
async function inviteToSharedOrg(apiUrl, headers, orgId, invite) {
|
|
288
|
+
async function inviteToSharedOrg(apiUrl, headers, orgId, invite, options = {}) {
|
|
288
289
|
try {
|
|
289
|
-
await agentFsRequest(apiUrl, `/orgs/${encodeURIComponent(orgId)}/members/invite`, {
|
|
290
|
+
const response = await agentFsRequest(apiUrl, `/orgs/${encodeURIComponent(orgId)}/members/invite`, {
|
|
290
291
|
method: "POST",
|
|
291
292
|
headers,
|
|
292
293
|
body: invite,
|
|
293
294
|
allowConflict: true
|
|
294
295
|
});
|
|
296
|
+
if (options.acceptWithApiKey && response?.status === "pending" && typeof response.token === "string") {
|
|
297
|
+
try {
|
|
298
|
+
await agentFsRequest(apiUrl, `/invites/${encodeURIComponent(response.token)}/accept`, {
|
|
299
|
+
method: "POST",
|
|
300
|
+
headers: { authorization: `Bearer ${options.acceptWithApiKey}` },
|
|
301
|
+
allowConflict: true
|
|
302
|
+
});
|
|
303
|
+
} catch (error) {
|
|
304
|
+
throw new Error(`agent-fs invite accept failed${error instanceof AgentFsRequestError ? `: HTTP ${error.status}` : ""}`);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
295
307
|
return "invited";
|
|
296
308
|
} catch (error) {
|
|
297
309
|
console.warn(scrubSecrets(`[seed:${KIND}] invite skipped for ${invite.email}: ${error instanceof Error ? error.message : String(error)}`));
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
SteeringBlockedError,
|
|
13
13
|
init_steering2,
|
|
14
14
|
init_db4
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-rcecc3yq.js";
|
|
16
16
|
import {
|
|
17
17
|
isBlockExternalEnabled2,
|
|
18
18
|
invalidateChannelExternality2,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
shouldBlockChannel2,
|
|
21
21
|
leaveExternalChannel2,
|
|
22
22
|
init_external_channel
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-fpjmegdb.js";
|
|
24
24
|
import {
|
|
25
25
|
workflowEventBus2,
|
|
26
26
|
init_event_bus
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
init_render_v2,
|
|
41
41
|
registerTreeMessage,
|
|
42
42
|
init_watcher
|
|
43
|
-
} from "./cli-
|
|
43
|
+
} from "./cli-4vzgeta4.js";
|
|
44
44
|
import {
|
|
45
45
|
TaskCreationBlockedError,
|
|
46
46
|
init_errors2,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
init_message_text,
|
|
62
62
|
dispatchPre2,
|
|
63
63
|
init_dispatcher
|
|
64
|
-
} from "./cli-
|
|
64
|
+
} from "./cli-3e875j5p.js";
|
|
65
65
|
import {
|
|
66
66
|
wasEventSeen,
|
|
67
67
|
init_event_dedup,
|
|
@@ -72,13 +72,13 @@ import {
|
|
|
72
72
|
getBufferMessageCount,
|
|
73
73
|
instantFlush,
|
|
74
74
|
init_thread_buffer
|
|
75
|
-
} from "./cli-
|
|
75
|
+
} from "./cli-g5mtmf6t.js";
|
|
76
76
|
import {
|
|
77
77
|
enrichSlackUserEmail,
|
|
78
78
|
resolveSlackUserId,
|
|
79
79
|
rewriteSlackMentions,
|
|
80
80
|
init_enrich
|
|
81
|
-
} from "./cli-
|
|
81
|
+
} from "./cli-xf3qw745.js";
|
|
82
82
|
import {
|
|
83
83
|
isSlackLeaveThreadDisabled,
|
|
84
84
|
SLACK_LEFT_THREAD_CONFIRMATION,
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
leaveSlackThread,
|
|
87
87
|
shouldSkipLeftSlackThread,
|
|
88
88
|
init_left_threads
|
|
89
|
-
} from "./cli-
|
|
89
|
+
} from "./cli-3vmb0n58.js";
|
|
90
90
|
import {
|
|
91
91
|
resolveTemplate,
|
|
92
92
|
init_resolver
|