@desplega.ai/agent-swarm 2.8.1 → 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.
Files changed (194) hide show
  1. package/dist/{acp-adapter-pdy3qsvg.js → acp-adapter-fqzkxyra.js} +3 -3
  2. package/dist/{actions-pwjpn0j6.js → actions-kxek041g.js} +17 -17
  3. package/dist/{amp-adapter-cq9jgj6x.js → amp-adapter-ce7jjke4.js} +1 -1
  4. package/dist/{app-cnfffgwg.js → app-v6zz8yh0.js} +3 -3
  5. package/dist/{assistant-kpn317y1.js → assistant-m0sw9xx2.js} +18 -18
  6. package/dist/{boot-args-schema-pbbnhmc3.js → boot-args-schema-66bk37wv.js} +1 -1
  7. package/dist/{boot-reembed-9m0ysxma.js → boot-reembed-edjpwsc1.js} +1 -1
  8. package/dist/{boot-reembed-majbn53m.js → boot-reembed-y27n09tz.js} +1 -1
  9. package/dist/{boot-scrub-sweep-app8g8ym.js → boot-scrub-sweep-1xc35965.js} +3 -3
  10. package/dist/{boot-seeds-pbtmvcjm.js → boot-seeds-7hjj91qj.js} +4 -4
  11. package/dist/{boxd-qbkxy6ap.js → boxd-ent8ch04.js} +1 -1
  12. package/dist/{claude-adapter-wn1g3qp5.js → claude-adapter-stw7jdcf.js} +3 -3
  13. package/dist/{claude-managed-setup-pd47nzch.js → claude-managed-setup-y6z2perp.js} +1 -1
  14. package/dist/{claude-sdk-session-3a2a6589.js → claude-sdk-session-vvya8wqk.js} +3 -3
  15. package/dist/{cli-wk18cm92.js → cli-0cq8y6m7.js} +1 -1
  16. package/dist/{cli-p1w18yhx.js → cli-1pz0330a.js} +1 -1
  17. package/dist/{cli-d3p5vwbk.js → cli-1qkz151v.js} +3 -3
  18. package/dist/{cli-89cqnasv.js → cli-26ctbcdp.js} +18 -6
  19. package/dist/{cli-syybb0p1.js → cli-2kvhc7x8.js} +7 -7
  20. package/dist/{cli-93k32c37.js → cli-3e875j5p.js} +128 -41
  21. package/dist/{cli-k0615eh8.js → cli-3sy2xags.js} +10 -10
  22. package/dist/{cli-dy32zecz.js → cli-3vmb0n58.js} +1 -1
  23. package/dist/{cli-4r05hnqa.js → cli-4vzgeta4.js} +13 -13
  24. package/dist/{cli-b5rs97a6.js → cli-5y340nzn.js} +4 -4
  25. package/dist/{cli-7p1kvkck.js → cli-6rc5frdm.js} +1 -1
  26. package/dist/{cli-jcpr5smb.js → cli-837vfs2x.js} +2 -2
  27. package/dist/{cli-b085njxz.js → cli-959kp5h2.js} +12 -11
  28. package/dist/{cli-k93bq1wq.js → cli-97ae65rz.js} +4 -4
  29. package/dist/{cli-m4dqmnbp.js → cli-9mb2q6pb.js} +1 -1
  30. package/dist/{cli-bb431xey.js → cli-a0z912j7.js} +121 -33
  31. package/dist/{cli-k26bkr9t.js → cli-b98a65ed.js} +3 -3
  32. package/dist/{cli-k0wwfqbg.js → cli-dns0y538.js} +4 -0
  33. package/dist/{cli-tk7cjj8h.js → cli-dzpc6en0.js} +1 -1
  34. package/dist/{cli-6mma83xa.js → cli-e1p3n5gq.js} +4 -4
  35. package/dist/{cli-re4raaj0.js → cli-f4e8r23x.js} +1 -1
  36. package/dist/{cli-qmqk2yc2.js → cli-f4r3g076.js} +1 -1
  37. package/dist/{cli-pcad4cb1.js → cli-f6bahpn5.js} +1 -1
  38. package/dist/{cli-b8e9nb04.js → cli-fpjmegdb.js} +1 -1
  39. package/dist/{cli-0ntbxyaa.js → cli-fwy8kfd6.js} +271 -37
  40. package/dist/{cli-tacge1w0.js → cli-g5mtmf6t.js} +6 -6
  41. package/dist/{cli-sn7rtnj4.js → cli-gyt3zydq.js} +3 -3
  42. package/dist/{cli-vbh10fqa.js → cli-j24zbska.js} +3 -3
  43. package/dist/{cli-vqptjbr7.js → cli-jdknh18m.js} +10 -10
  44. package/dist/{cli-7b8sbmag.js → cli-kjtwrhea.js} +1 -1
  45. package/dist/{cli-9vhebtjz.js → cli-mxn1qvbn.js} +3 -2
  46. package/dist/{cli-zcsw143p.js → cli-n6vtrcht.js} +1 -1
  47. package/dist/{cli-2zp0et3v.js → cli-pchypa1s.js} +55 -19
  48. package/dist/{cli-gax7fk3t.js → cli-pfs8adn4.js} +1 -1
  49. package/dist/{cli-1xh9a7hn.js → cli-q24n86d2.js} +2 -2
  50. package/dist/{cli-7w69ne2f.js → cli-rcecc3yq.js} +167 -43
  51. package/dist/{cli-xae4g51r.js → cli-rh15cakt.js} +1 -1
  52. package/dist/{cli-yn2bbre9.js → cli-rmzsadkf.js} +1 -1
  53. package/dist/{cli-a3b239vq.js → cli-t2tma8gb.js} +1 -1
  54. package/dist/{cli-9wngrawf.js → cli-tekytdq9.js} +2 -2
  55. package/dist/{cli-tqegb8eq.js → cli-vdektqgf.js} +1 -1
  56. package/dist/{cli-cyhbbd1z.js → cli-w401b9tq.js} +1 -1
  57. package/dist/{cli-jywyhqws.js → cli-xf3qw745.js} +3 -3
  58. package/dist/{cli-hxpyc9sn.js → cli-z1w943va.js} +2 -2
  59. package/dist/{cli-yncmerje.js → cli-zh9rsbqf.js} +2 -2
  60. package/dist/cli.js +16 -16
  61. package/dist/{codex-adapter-nha71q3n.js → codex-adapter-zerf5qsp.js} +1 -1
  62. package/dist/{codex-hook-h3vk6xzr.js → codex-hook-30gyhzxe.js} +1 -1
  63. package/dist/{codex-session-runner-ak9x1k1h.js → codex-session-runner-89s304py.js} +1 -1
  64. package/dist/{commands-f587qpq8.js → commands-jeh1b51j.js} +3 -3
  65. package/dist/{controller-hxx8wwy1.js → controller-mctfbrse.js} +3 -3
  66. package/dist/{controllers-connect-k5sg9m9h.js → controllers-connect-nxa1ddwn.js} +18 -18
  67. package/dist/{cursor-adapter-n5nc3mfe.js → cursor-adapter-qj8vehv6.js} +1 -1
  68. package/dist/{db-nzf8zb5z.js → db-2dvay0es.js} +3 -3
  69. package/dist/{db-amm8w15a.js → db-b36qn6k3.js} +2 -2
  70. package/dist/{dispatcher-89zrts8f.js → dispatcher-gndbta01.js} +16 -16
  71. package/dist/{dsh-adapter-nrhbrjz8.js → dsh-adapter-f75sz821.js} +1 -1
  72. package/dist/{e2b-jkwfhbcv.js → e2b-3gpc2n3w.js} +1 -1
  73. package/dist/{e2b-s16txnpx.js → e2b-jbm7mj93.js} +1 -1
  74. package/dist/{embedding-space-ezwenjmj.js → embedding-space-4p05vb2x.js} +6 -6
  75. package/dist/{embeddings-np74ht6g.js → embeddings-m6768mgh.js} +1 -1
  76. package/dist/{external-channel-z46yx9d7.js → external-channel-gjv3jne3.js} +2 -2
  77. package/dist/{fx-adapter-3q12snn6.js → fx-adapter-rpsgb1tw.js} +4 -4
  78. package/dist/{grok-adapter-ahb1w033.js → grok-adapter-n2m3zjg1.js} +4 -4
  79. package/dist/handlers-nv8edn19.js +32 -0
  80. package/dist/{heartbeat-dt9qw9c8.js → heartbeat-a1tv60gt.js} +19 -19
  81. package/dist/{hook-8k6fbz9b.js → hook-8h5dzcgq.js} +2 -2
  82. package/dist/{hook-jgcgygex.js → hook-cyaps9ba.js} +4 -4
  83. package/dist/{http-haw4r8ne.js → http-t15mhbd9.js} +1731 -77
  84. package/dist/{index-s4ewdma4.js → index-ksmyd6kc.js} +16 -16
  85. package/dist/{index-tez78qj3.js → index-qav6455f.js} +13 -11
  86. package/dist/index-rjnrje98.js +32 -0
  87. package/dist/index-tv3413wy.js +33 -0
  88. package/dist/{index-5gk12my8.js → index-w1zqf680.js} +1 -1
  89. package/dist/{keepalive-xn6s7rmg.js → keepalive-91s7hzrb.js} +3 -3
  90. package/dist/{lead-6ygbfhbh.js → lead-3hmddvrm.js} +30 -30
  91. package/dist/{maintenance-vdts800b.js → maintenance-7pjmy5xy.js} +1 -1
  92. package/dist/{oauth-refresh-sweep-094c8wfk.js → oauth-refresh-sweep-rzqfm94j.js} +2 -2
  93. package/dist/{onboard-v99eh56m.js → onboard-74st7pag.js} +3 -3
  94. package/dist/{opencode-adapter-dsagkhtw.js → opencode-adapter-arn7gm8q.js} +2 -2
  95. package/dist/{otel-impl-q7yr9yp0.js → otel-impl-rnzey8cb.js} +1 -1
  96. package/dist/{pi-mono-adapter-546cd1cc.js → pi-mono-adapter-6mkwq64n.js} +3 -2
  97. package/dist/{pricing-refresh-7dh2yase.js → pricing-refresh-ha21jhk7.js} +2 -2
  98. package/dist/{rbac-roles-npbmdh77.js → rbac-roles-59dxachk.js} +2 -2
  99. package/dist/{rbac-roles-mdmc96p4.js → rbac-roles-wqhma4dr.js} +3 -3
  100. package/dist/{render-v2-twhhwmms.js → render-v2-14kpzx12.js} +3 -3
  101. package/dist/{resume-5gsrjd5e.js → resume-gsa5fb5f.js} +6 -6
  102. package/dist/{session-access-m191x30x.js → session-access-skm7bnp6.js} +4 -4
  103. package/dist/{session-source-backfill-nt923ask.js → session-source-backfill-pbqzbncv.js} +2 -2
  104. package/dist/{setup-wv467afy.js → setup-5yermsem.js} +1 -1
  105. package/dist/{work-objects-8zkrpy13.js → work-objects-xj0ck0w4.js} +19 -19
  106. package/dist/{worker-follow-up-cecqszem.js → worker-follow-up-911xc0b8.js} +18 -16
  107. package/dist/{worker-mz5z7kj0.js → worker-qgg0m2gw.js} +30 -30
  108. package/openapi.json +1741 -290
  109. package/package.json +2 -2
  110. package/src/apps/catalog.generated.json +120 -1
  111. package/src/apps/definition.ts +38 -11
  112. package/src/apps/page-validator.ts +88 -0
  113. package/src/be/db/model-profiles.ts +110 -11
  114. package/src/be/db/tasks/read.ts +20 -0
  115. package/src/be/db/workflow-run-definitions.ts +19 -8
  116. package/src/be/db-client.ts +43 -5
  117. package/src/be/db.ts +9 -3
  118. package/src/be/migrations/284_model_profile_fallbacks.sql +9 -0
  119. package/src/be/model-profile-check.ts +43 -18
  120. package/src/be/runtime-pools/routing.ts +1 -0
  121. package/src/be/savings/calibrate.ts +468 -0
  122. package/src/be/savings/compute.ts +182 -0
  123. package/src/be/savings/model.ts +406 -0
  124. package/src/be/scripts/typecheck.ts +5 -0
  125. package/src/be/seed/agent-fs-provision.ts +48 -11
  126. package/src/be/seed/workflows-seeder.ts +67 -23
  127. package/src/be/skill-parser.ts +19 -7
  128. package/src/commands/onboard/agent-fs-version.ts +1 -1
  129. package/src/commands/provider-error-class.ts +97 -0
  130. package/src/commands/runner.ts +99 -17
  131. package/src/extensions/contract-types.generated.ts +1 -1
  132. package/src/http/all-routes.ts +2 -0
  133. package/src/http/fs.ts +8 -2
  134. package/src/http/index.ts +4 -0
  135. package/src/http/model-profiles.ts +43 -10
  136. package/src/http/poll.ts +1 -0
  137. package/src/http/savings-calibration.ts +277 -0
  138. package/src/http/savings.ts +363 -0
  139. package/src/http/tasks.ts +46 -4
  140. package/src/http/trackers/authorize-gate.ts +41 -0
  141. package/src/http/trackers/jira.ts +26 -4
  142. package/src/http/trackers/linear.ts +26 -4
  143. package/src/integrations/chat-sdk/limits.ts +6 -1
  144. package/src/jira/oauth.ts +7 -1
  145. package/src/linear/README.md +2 -1
  146. package/src/linear/oauth.ts +7 -1
  147. package/src/providers/amp-adapter.ts +1 -1
  148. package/src/providers/codex-adapter.ts +3 -0
  149. package/src/providers/pi-mono-adapter.ts +6 -5
  150. package/src/providers/types.ts +7 -0
  151. package/src/scripts-runtime/sdk-allowlist.ts +11 -1
  152. package/src/scripts-runtime/swarm-sdk.ts +6 -0
  153. package/src/scripts-runtime/types/stdlib.d.ts +9 -0
  154. package/src/scripts-runtime/types/swarm-extension.d.ts +34 -0
  155. package/src/scripts-runtime/types/swarm-sdk.d.ts +9 -0
  156. package/src/tasks/worker-follow-up.ts +142 -3
  157. package/src/tests/agent-fs-provision-seeder.test.ts +81 -0
  158. package/src/tests/apps-chart-shell.test.ts +170 -0
  159. package/src/tests/apps-icon.test.ts +156 -2
  160. package/src/tests/chat-sdk-relay.test.ts +12 -0
  161. package/src/tests/codex-adapter.test.ts +11 -0
  162. package/src/tests/comb-default.test.ts +6 -0
  163. package/src/tests/core-auth.test.ts +7 -6
  164. package/src/tests/db-client-busy-retry.test.ts +58 -6
  165. package/src/tests/deploy-guard.test.ts +154 -0
  166. package/src/tests/docs-index-footprint.test.js +3 -3
  167. package/src/tests/fixtures/app-shell-charts-definition.json.txt +180 -0
  168. package/src/tests/model-profile-fallbacks.test.ts +482 -0
  169. package/src/tests/model-profiles-api.test.ts +1 -0
  170. package/src/tests/pi-mono-session-cost-on-abort.test.ts +115 -0
  171. package/src/tests/provider-error-class.test.ts +174 -0
  172. package/src/tests/runner-provider-fallback.test.ts +197 -0
  173. package/src/tests/savings-calibration-api.test.ts +264 -0
  174. package/src/tests/savings-calibration.test.ts +201 -0
  175. package/src/tests/savings-compute.test.ts +406 -0
  176. package/src/tests/savings-model.test.ts +287 -0
  177. package/src/tests/script-connections.test.ts +2 -0
  178. package/src/tests/sdk-allowlist.test.ts +40 -0
  179. package/src/tests/seed-workflows.test.ts +167 -11
  180. package/src/tests/skill-parser.test.ts +45 -0
  181. package/src/tests/tracker-oauth-authorize-auth.test.ts +262 -0
  182. package/src/tests/workflow-definition-pinning.test.ts +128 -3
  183. package/src/tests/workflow-script-principal.test.ts +94 -4
  184. package/src/tools/app-upsert.ts +1 -1
  185. package/src/tools/model-profiles/list-model-profiles.ts +4 -2
  186. package/src/tools/update-profile.ts +1 -1
  187. package/src/types.ts +115 -33
  188. package/src/utils/constants.ts +2 -0
  189. package/templates/skills/apps/SKILL.md +62 -3
  190. package/templates/skills/apps/content.md +62 -3
  191. package/templates/skills/swarm-docs/content.md +2 -0
  192. package/dist/handlers-vbww69re.js +0 -32
  193. package/dist/index-4xwaf5th.js +0 -32
  194. package/dist/index-f0hcrs8e.js +0 -33
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ACPAdapter2
3
- } from "./cli-sn7rtnj4.js";
4
- import"./cli-7p1kvkck.js";
5
- import"./cli-tqegb8eq.js";
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-7w69ne2f.js";
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-b8e9nb04.js";
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-4r05hnqa.js";
30
- import"./cli-vbh10fqa.js";
29
+ } from "./cli-4vzgeta4.js";
30
+ import"./cli-j24zbska.js";
31
31
  import {
32
32
  createTaskWithSiblingAwareness,
33
33
  init_sibling_awareness
34
- } from "./cli-93k32c37.js";
35
- import"./cli-1xh9a7hn.js";
36
- import"./cli-k26bkr9t.js";
37
- import"./cli-a3b239vq.js";
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
39
  import"./cli-x6t50dmw.js";
40
- import"./cli-k93bq1wq.js";
41
- import"./cli-b5rs97a6.js";
40
+ import"./cli-97ae65rz.js";
41
+ import"./cli-5y340nzn.js";
42
42
  import {
43
43
  resolveSlackUserId,
44
44
  init_enrich
45
- } from "./cli-jywyhqws.js";
46
- import"./cli-0ntbxyaa.js";
47
- import"./cli-yn2bbre9.js";
48
- import"./cli-vqptjbr7.js";
49
- import"./cli-dy32zecz.js";
50
- import"./cli-zcsw143p.js";
51
- import"./cli-re4raaj0.js";
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";
@@ -2,7 +2,7 @@ import {
2
2
  checkAmpCredentials2,
3
3
  liveTestAmpCredentials2,
4
4
  AmpAdapter2
5
- } from "./cli-9wngrawf.js";
5
+ } from "./cli-tekytdq9.js";
6
6
  import"./cli-xzm9vcfg.js";
7
7
  import"./cli-jrzkw01m.js";
8
8
  export {
@@ -5,9 +5,9 @@ import {
5
5
  stopSlackApp2,
6
6
  stopSlackAppUnderLifecycleLock2,
7
7
  init_app3
8
- } from "./cli-4r05hnqa.js";
9
- import"./cli-b8e9nb04.js";
10
- import"./cli-7w69ne2f.js";
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-7w69ne2f.js";
9
+ } from "./cli-rcecc3yq.js";
10
10
  import {
11
11
  shouldBlockChannel2,
12
12
  init_external_channel
13
- } from "./cli-b8e9nb04.js";
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-4r05hnqa.js";
29
+ } from "./cli-4vzgeta4.js";
30
30
  import"./cli-7cp6aa1q.js";
31
- import"./cli-vbh10fqa.js";
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-93k32c37.js";
45
- import"./cli-1xh9a7hn.js";
46
- import"./cli-k26bkr9t.js";
47
- import"./cli-a3b239vq.js";
44
+ } from "./cli-3e875j5p.js";
45
+ import"./cli-q24n86d2.js";
46
+ import"./cli-b98a65ed.js";
47
+ import"./cli-t2tma8gb.js";
48
48
  import"./cli-x6t50dmw.js";
49
- import"./cli-k93bq1wq.js";
50
- import"./cli-b5rs97a6.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-tacge1w0.js";
57
+ } from "./cli-g5mtmf6t.js";
58
58
  import {
59
59
  resolveSlackUserId,
60
60
  rewriteSlackMentions,
61
61
  init_enrich
62
- } from "./cli-jywyhqws.js";
63
- import"./cli-0ntbxyaa.js";
64
- import"./cli-yn2bbre9.js";
65
- import"./cli-vqptjbr7.js";
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-dy32zecz.js";
70
- import"./cli-zcsw143p.js";
71
- import"./cli-re4raaj0.js";
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
@@ -3,7 +3,7 @@ import {
3
3
  listScripts,
4
4
  init_db3,
5
5
  init_db4
6
- } from "./cli-7w69ne2f.js";
6
+ } from "./cli-rcecc3yq.js";
7
7
 
8
8
  // src/be/scripts/boot-args-schema.ts
9
9
  init_db4();
@@ -4,7 +4,7 @@ import {
4
4
  embedScript2,
5
5
  init_embeddings,
6
6
  init_db4
7
- } from "./cli-7w69ne2f.js";
7
+ } from "./cli-rcecc3yq.js";
8
8
  import {
9
9
  __esm
10
10
  } from "./cli-242037k3.js";
@@ -6,7 +6,7 @@ import {
6
6
  getMemoryStore2,
7
7
  init_memory,
8
8
  init_db4
9
- } from "./cli-7w69ne2f.js";
9
+ } from "./cli-rcecc3yq.js";
10
10
  import {
11
11
  __esm
12
12
  } from "./cli-242037k3.js";
@@ -8,11 +8,11 @@ import {
8
8
  getMemoryStore2,
9
9
  init_memory,
10
10
  init_db4
11
- } from "./cli-7w69ne2f.js";
11
+ } from "./cli-rcecc3yq.js";
12
12
  import {
13
13
  contentSha256,
14
14
  init_profile_sync
15
- } from "./cli-tk7cjj8h.js";
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-majbn53m.js");
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-k26bkr9t.js";
7
- import"./cli-1xh9a7hn.js";
8
- import"./cli-re4raaj0.js";
9
- import"./cli-7w69ne2f.js";
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 {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  resolveWorkerApiUrl,
3
3
  init_worker_api_url
4
- } from "./cli-xae4g51r.js";
4
+ } from "./cli-rh15cakt.js";
5
5
  import {
6
6
  redactWithEnv,
7
7
  init_env2
@@ -4,9 +4,9 @@ import {
4
4
  buildClaudeSessionEnvironment2,
5
5
  runClaudeSessionSummary2,
6
6
  ClaudeAdapter2
7
- } from "./cli-d3p5vwbk.js";
8
- import"./cli-6mma83xa.js";
9
- import"./cli-qmqk2yc2.js";
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";
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  DEFAULT_MODEL_TIER_MAP,
18
18
  init_types4
19
- } from "./cli-2zp0et3v.js";
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-qmqk2yc2.js";
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-6mma83xa.js";
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-d3p5vwbk.js";
22
+ } from "./cli-1qkz151v.js";
23
23
  import"./cli-4bd1rck6.js";
24
24
  import"./cli-98rwmcyc.js";
25
25
  import"./cli-jrzkw01m.js";
@@ -24,7 +24,7 @@ import {
24
24
  import {
25
25
  DEFAULT_MODEL_TIER_MAP,
26
26
  init_types4
27
- } from "./cli-2zp0et3v.js";
27
+ } from "./cli-pchypa1s.js";
28
28
  import {
29
29
  getOpenRouterBaseUrl,
30
30
  getOpenRouterAttributionHeaders,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_MODEL_TIER_MAP,
3
3
  init_types4
4
- } from "./cli-2zp0et3v.js";
4
+ } from "./cli-pchypa1s.js";
5
5
  import {
6
6
  __esm
7
7
  } from "./cli-242037k3.js";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./cli-xzm9vcfg.js";
6
6
  import {
7
7
  runStopHookSessionSummarySubprocess
8
- } from "./cli-6mma83xa.js";
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-tk7cjj8h.js";
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-3a2a6589.js") : undefined;
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-7w69ne2f.js";
9
+ } from "./cli-rcecc3yq.js";
10
10
  import {
11
11
  getUserGrant2,
12
12
  init_rbac_roles
13
- } from "./cli-1xh9a7hn.js";
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-7w69ne2f.js";
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-b8e9nb04.js";
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-4r05hnqa.js";
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-93k32c37.js";
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-tacge1w0.js";
75
+ } from "./cli-g5mtmf6t.js";
76
76
  import {
77
77
  enrichSlackUserEmail,
78
78
  resolveSlackUserId,
79
79
  rewriteSlackMentions,
80
80
  init_enrich
81
- } from "./cli-jywyhqws.js";
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-dy32zecz.js";
89
+ } from "./cli-3vmb0n58.js";
90
90
  import {
91
91
  resolveTemplate,
92
92
  init_resolver