@desplega.ai/agent-swarm 1.129.0 → 1.130.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.
Files changed (185) hide show
  1. package/README.md +1 -1
  2. package/dist/{actions-kfv2dawe.js → actions-73ee723n.js} +10 -10
  3. package/dist/{app-q8vjk6e8.js → app-hz5c2xay.js} +7 -7
  4. package/dist/{artifact-hg4t1nx7.js → artifact-jysj3wrg.js} +2 -2
  5. package/dist/{assistant-g037r345.js → assistant-08mr16yp.js} +12 -12
  6. package/dist/{boot-reembed-18pzsrxa.js → boot-reembed-5bgan3cd.js} +5 -5
  7. package/dist/{boot-reembed-wpks2cj8.js → boot-reembed-z7ykyeq8.js} +6 -6
  8. package/dist/{boot-scrub-logs-n7szd57r.js → boot-scrub-logs-b2rjk8mv.js} +4 -4
  9. package/dist/{claude-adapter-qz4r0ajt.js → claude-adapter-qr0k17km.js} +7 -7
  10. package/dist/{cli-33jj76y8.js → cli-1mj7yz1r.js} +1 -1
  11. package/dist/{cli-39vgrsep.js → cli-1px8pn1s.js} +2 -2
  12. package/dist/{cli-xy4cwsm9.js → cli-2pa5w9b6.js} +1 -1
  13. package/dist/{cli-gztgc3hz.js → cli-2wadx7p2.js} +2 -2
  14. package/dist/{cli-yjbgmysx.js → cli-326083vb.js} +10 -10
  15. package/dist/cli-3fj60etf.js +153 -0
  16. package/dist/{cli-2mbe7vk0.js → cli-5dsbcjjw.js} +1 -1
  17. package/dist/{cli-17zxdgsq.js → cli-73bvdyxr.js} +5 -5
  18. package/dist/{cli-kk4f9r17.js → cli-7v5dhmc8.js} +3 -1
  19. package/dist/{cli-1qkk5er0.js → cli-bmze986d.js} +1 -1
  20. package/dist/{cli-ttkmehy0.js → cli-brebbsen.js} +267 -21
  21. package/dist/{cli-v37yr6mf.js → cli-dakxgk70.js} +4 -4
  22. package/dist/{cli-7ecgm5v0.js → cli-e5p3es48.js} +1 -1
  23. package/dist/{cli-z9xqqhfk.js → cli-er3a4bb0.js} +1 -1
  24. package/dist/{cli-4n2gcjpd.js → cli-fs153s3x.js} +4 -3
  25. package/dist/{cli-etr62zy6.js → cli-h3e66g5b.js} +2 -2
  26. package/dist/{cli-7bz8dzqa.js → cli-haanc4qd.js} +1182 -1520
  27. package/dist/{cli-ga12dc1d.js → cli-hntzdchd.js} +2 -2
  28. package/dist/{cli-rkndnn90.js → cli-k9qkf1hw.js} +6 -4
  29. package/dist/{cli-zejvt395.js → cli-kh3ba2zf.js} +1 -1
  30. package/dist/{cli-2k0ztbfp.js → cli-m8fs5ttq.js} +1 -1
  31. package/dist/{cli-1y1cm570.js → cli-mf009e0j.js} +1 -1
  32. package/dist/{cli-h0457a67.js → cli-mgerp0vs.js} +3 -3
  33. package/dist/{cli-0sf92efp.js → cli-mhr8tq3v.js} +1 -1
  34. package/dist/{cli-v2tr6amf.js → cli-n9yxcnvk.js} +1 -1
  35. package/dist/{cli-akxnpx17.js → cli-q8zwffx0.js} +1709 -1602
  36. package/dist/{cli-g252a9ky.js → cli-qbb2ten8.js} +2 -2
  37. package/dist/{cli-a8ynhkyj.js → cli-qcsjdppx.js} +16 -14
  38. package/dist/{cli-nhcd7x43.js → cli-r62me33w.js} +1 -1
  39. package/dist/{cli-hv2fndhm.js → cli-r6kqqbj0.js} +6 -4
  40. package/dist/{cli-t53vnnxz.js → cli-s18zzkfp.js} +2475 -1053
  41. package/dist/{cli-mhjnbgb6.js → cli-s21zzx4b.js} +6 -6
  42. package/dist/{cli-dxtxacy7.js → cli-t5tsq67k.js} +6 -4
  43. package/dist/{cli-gb25p1h2.js → cli-tfw3c0y1.js} +1 -1
  44. package/dist/{cli-hx02s9zq.js → cli-tp519bjz.js} +2 -2
  45. package/dist/{cli-mmrk00vp.js → cli-vr2f46zj.js} +1 -1
  46. package/dist/{cli-fpaa5k2q.js → cli-xdrmxvd4.js} +13 -13
  47. package/dist/{cli-7padk69a.js → cli-yj7z99vp.js} +2 -2
  48. package/dist/{cli-9fxg3v5m.js → cli-z9q7pb38.js} +3 -3
  49. package/dist/cli-zsspvvm2.js +490 -0
  50. package/dist/cli.js +17 -15
  51. package/dist/{codex-adapter-7v6t7ff6.js → codex-adapter-6pc50x9q.js} +5 -5
  52. package/dist/{codex-session-runner-e7j4khe2.js → codex-session-runner-tpg8hyj7.js} +5 -5
  53. package/dist/{commands-ex0k5tbf.js → commands-yfpwt11g.js} +4 -4
  54. package/dist/{db-df7jatfc.js → db-jn499nmp.js} +4 -4
  55. package/dist/{google-generative-ai-y42hnw9p.js → google-generative-ai-txgg2q58.js} +1 -1
  56. package/dist/{google-vertex-4sg66gb6.js → google-vertex-t663s1c3.js} +1 -1
  57. package/dist/{handlers-1j2cfqt2.js → handlers-eev4nng0.js} +12 -12
  58. package/dist/{hook-w6yaf6sy.js → hook-9fkwkf3m.js} +6 -6
  59. package/dist/{hook-nx9a0mj3.js → hook-sn7pj75w.js} +5 -5
  60. package/dist/{http-4tz5h8wg.js → http-xdbbtmhx.js} +2837 -683
  61. package/dist/{index-0bpkzb09.js → index-070v4eyb.js} +3 -3
  62. package/dist/{index-35gtv6gj.js → index-5fdsemf0.js} +163 -11
  63. package/dist/{index-kcf3tm9h.js → index-9vnkprkh.js} +11 -11
  64. package/dist/{index-ker3gccb.js → index-9znhar3x.js} +4 -4
  65. package/dist/{index-0s67qv7h.js → index-c0qedjh6.js} +10 -10
  66. package/dist/{index-7c0jqna0.js → index-fnack5vh.js} +12 -12
  67. package/dist/{index-5n2c8yay.js → index-hase6zbe.js} +2 -2
  68. package/dist/{keepalive-3j4a9168.js → keepalive-fc7a2hw9.js} +6 -6
  69. package/dist/{lead-6kpevymb.js → lead-1fva34y9.js} +29 -29
  70. package/dist/{maintenance-m1k82ean.js → maintenance-0rdb12vf.js} +6 -6
  71. package/dist/{mistral-conversations-bjkdfb6z.js → mistral-conversations-4swenhmf.js} +4 -4
  72. package/dist/{oauth-refresh-sweep-881k8e4q.js → oauth-refresh-sweep-f9rptqbt.js} +5 -5
  73. package/dist/{onboard-c0ykffjn.js → onboard-9zn0fx2m.js} +2 -2
  74. package/dist/{otel-impl-sqagjerv.js → otel-impl-thnttmbn.js} +6 -4
  75. package/dist/{otel-3mp81ppd.js → otel-nqa12wf3.js} +2 -2
  76. package/dist/{pi-mono-adapter-k584k16g.js → pi-mono-adapter-bpfrn6d7.js} +4 -4
  77. package/dist/{pricing-refresh-y82whbf9.js → pricing-refresh-n0ve0kh6.js} +6 -6
  78. package/dist/{rbac-roles-nvkqmzyd.js → rbac-roles-bbwb4wrm.js} +6 -6
  79. package/dist/{rbac-roles-4ht8gegc.js → rbac-roles-w45bhahg.js} +5 -5
  80. package/dist/{render-v2-wvqdgvvp.js → render-v2-d675cp9r.js} +7 -7
  81. package/dist/{seed-pricing-fy3rxhde.js → seed-pricing-47q77nw4.js} +5 -5
  82. package/dist/{setup-ak5cnc6f.js → setup-3vnv2m43.js} +2 -2
  83. package/dist/{worker-d8769q8a.js → worker-7shsr8hk.js} +29 -29
  84. package/openapi.json +33702 -11031
  85. package/package.json +3 -1
  86. package/src/apps/definition.ts +368 -26
  87. package/src/apps/row-store.ts +66 -10
  88. package/src/apps/schema-migrate.ts +95 -1
  89. package/src/apps/sync-run-as.ts +18 -0
  90. package/src/apps/sync.ts +934 -0
  91. package/src/apps/version.ts +16 -2
  92. package/src/be/db-queries/mcp-oauth.ts +271 -24
  93. package/src/be/scripts/typecheck.ts +1 -0
  94. package/src/be/seed-scripts/catalog/app-sync-run.ts +32 -0
  95. package/src/be/seed-scripts/catalog/github-issues-pull.ts +102 -0
  96. package/src/be/seed-scripts/index.ts +18 -0
  97. package/src/http/active-sessions.ts +26 -18
  98. package/src/http/agents.ts +94 -27
  99. package/src/http/api-keys.ts +91 -17
  100. package/src/http/approval-requests.ts +87 -10
  101. package/src/http/apps.ts +361 -53
  102. package/src/http/assets.ts +53 -10
  103. package/src/http/budgets.ts +7 -5
  104. package/src/http/codex-oauth-keep-warm.ts +21 -3
  105. package/src/http/config.ts +46 -16
  106. package/src/http/context.ts +33 -6
  107. package/src/http/ecosystem.ts +20 -6
  108. package/src/http/events.ts +24 -9
  109. package/src/http/favorites.ts +20 -6
  110. package/src/http/fs.ts +60 -17
  111. package/src/http/heartbeat.ts +18 -4
  112. package/src/http/inbox-state.ts +12 -6
  113. package/src/http/integrations.ts +25 -5
  114. package/src/http/kv.ts +36 -15
  115. package/src/http/mcp-bridge.ts +5 -1
  116. package/src/http/mcp-oauth.ts +262 -15
  117. package/src/http/mcp-servers.ts +56 -18
  118. package/src/http/memory.ts +282 -29
  119. package/src/http/metrics.ts +80 -17
  120. package/src/http/oauth-callback.ts +10 -4
  121. package/src/http/oauth-generic.ts +5 -1
  122. package/src/http/oauth-locks.ts +6 -3
  123. package/src/http/openapi.ts +57 -9
  124. package/src/http/page-proxy.ts +25 -5
  125. package/src/http/pages-public.ts +37 -20
  126. package/src/http/pages.ts +93 -28
  127. package/src/http/poll.ts +89 -5
  128. package/src/http/pricing.ts +9 -6
  129. package/src/http/prompt-templates.ts +85 -21
  130. package/src/http/route-def.ts +67 -4
  131. package/src/http/schedules.ts +63 -14
  132. package/src/http/script-connection-proxy.ts +30 -4
  133. package/src/http/script-connections.ts +393 -43
  134. package/src/http/script-runs.ts +73 -19
  135. package/src/http/scripts.ts +257 -39
  136. package/src/http/session-data.ts +87 -14
  137. package/src/http/sessions.ts +80 -5
  138. package/src/http/skills.ts +115 -35
  139. package/src/http/stats.ts +94 -13
  140. package/src/http/task-templates.ts +6 -4
  141. package/src/http/tasks.ts +230 -61
  142. package/src/http/trackers/jira.ts +90 -30
  143. package/src/http/trackers/linear.ts +46 -12
  144. package/src/http/users.ts +117 -25
  145. package/src/http/utils.ts +12 -2
  146. package/src/http/webhooks.ts +30 -16
  147. package/src/http/workflow-events.ts +18 -5
  148. package/src/http/workflows.ts +128 -39
  149. package/src/http/x.ts +37 -6
  150. package/src/oauth/ensure-mcp-token.ts +10 -1
  151. package/src/oauth/mcp-wrapper.ts +35 -3
  152. package/src/scripts-runtime/credential-broker/README.md +1 -1
  153. package/src/scripts-runtime/credential-broker/fetch-patch.ts +12 -2
  154. package/src/scripts-runtime/sdk-allowlist.ts +1 -0
  155. package/src/scripts-runtime/stdlib/fetch.ts +6 -0
  156. package/src/scripts-runtime/types/stdlib.d.ts +1 -0
  157. package/src/scripts-runtime/types/swarm-sdk.d.ts +1 -0
  158. package/src/server.ts +2 -0
  159. package/src/tests/apps-rbac.test.ts +110 -0
  160. package/src/tests/apps-spike2.test.ts +4 -1
  161. package/src/tests/apps-sync-engine.test.ts +2540 -0
  162. package/src/tests/apps-sync.test.ts +1627 -0
  163. package/src/tests/credential-broker.test.ts +27 -2
  164. package/src/tests/mcp-oauth-dcr-reuse.test.ts +648 -0
  165. package/src/tests/mcp-oauth-ensure-token.test.ts +22 -0
  166. package/src/tests/mcp-oauth-queries.test.ts +153 -0
  167. package/src/tests/mcp-oauth-wrapper.test.ts +52 -0
  168. package/src/tests/memory-http-recall-gating.test.ts +2 -0
  169. package/src/tests/openapi-response-contract.test.ts +138 -0
  170. package/src/tests/scripts-runtime-fetch.test.ts +121 -0
  171. package/src/tests/scripts-runtime-secret-egress.test.ts +4 -2
  172. package/src/tests/seed-scripts.test.ts +2 -2
  173. package/src/tests/swarm-tool-result-gate.test.ts +32 -0
  174. package/src/tests/task-working-dir.test.ts +8 -4
  175. package/src/tools/app-get.ts +10 -2
  176. package/src/tools/app-rollback.ts +1 -0
  177. package/src/tools/app-sync.ts +112 -0
  178. package/src/tools/script-common.ts +20 -0
  179. package/src/tools/tool-config.ts +2 -1
  180. package/src/tools/utils.ts +11 -0
  181. package/src/types.ts +1380 -1205
  182. package/src/utils/zod-openapi.ts +11 -0
  183. package/templates/skills/apps/content.md +94 -5
  184. package/dist/cli-7wmybrt5.js +0 -115
  185. package/dist/cli-d91pvmq1.js +0 -14
package/README.md CHANGED
@@ -136,7 +136,7 @@ Check [our templates](https://templates.agent-swarm.dev) for a quick start.
136
136
  - **Scripts-only MCP mode (code-mode)** — reduce the external MCP surface to eight script tools while retaining the full swarm SDK through `script-run`, cutting tool-schema context for capable coordinator models. [Guide →](https://docs.agent-swarm.dev/docs/guides/scripts-only-mode)
137
137
  - **Scripts as external APIs** — expose a saved script as a public `POST /api/x/script/<id>` endpoint with optional bearer auth, typed input validation, and per-endpoint usage tracking. [Guide →](https://docs.agent-swarm.dev/docs/guides/scripts-external-apis)
138
138
  - **Typed script API connections** — lead-managed OpenAPI, GraphQL, and MCP connections generate `ctx.api.*` / `ctx.mcp.*` clients for scripts, with credential bindings and OAuth-backed auth kept server-side. [Guide →](https://docs.agent-swarm.dev/docs/guides/script-connections)
139
- - **Swarm Apps** — agents build versioned, schema-backed dashboard apps with reusable UI elements, named queries and actions, per-user settings, RBAC, history, and safe rollback. App definitions also generate typed script APIs. [Apps API →](https://docs.agent-swarm.dev/docs/api-reference/apps)
139
+ - **Swarm Apps** — agents build versioned, schema-backed dashboard apps with reusable UI elements, named queries and actions, per-user settings, RBAC, history, and safe rollback. Models can also sync source-backed rows through owner-scoped script connections. [Apps API →](https://docs.agent-swarm.dev/docs/api-reference/apps)
140
140
  - **E2B-backed eval harness** — run a scenario × harness-config matrix against real swarm stacks, capture transcripts/artifacts, and grade outcomes with deterministic checks plus LLM or agentic judges. [Guide →](https://docs.agent-swarm.dev/docs/guides/evals-harness)
141
141
  - **Harness & LLM agnostic** — run with Claude Code, Claude Bridge, OpenAI Codex, pi-mono (Anthropic, OpenRouter, or Amazon Bedrock), Devin, Claude Managed Agents, raw LLMs, or opencode. The dashboard model picker follows a live models.dev catalog (with a bundled snapshot fallback), so newly released provider models appear without a redeploy. Route every OpenRouter-backed harness, workflow, and summarizer through an OpenAI-compatible gateway with `OPENROUTER_BASE_URL`. Tasks, schedules, and workflow agent-task nodes can use portable `modelTier` intent (`smol`, `regular`, `smart`, `ultra`), and operators can set per-agent reasoning effort (`off` → `max`, where supported) without changing task payloads. [Harness config →](https://docs.agent-swarm.dev/docs/guides/harness-configuration) · [Add a new provider →](https://docs.agent-swarm.dev/docs/guides/harness-providers)
142
142
  - **Published release artifacts** — every release publishes multi-architecture API, full-worker, and slim-worker images alongside versioned E2B templates, the npm CLI package, and the Helm chart. [Artifact inventory →](https://docs.agent-swarm.dev/docs/guides/published-artifacts)
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  resolveSlackUserId
3
- } from "./cli-7padk69a.js";
4
- import"./cli-2k0ztbfp.js";
3
+ } from "./cli-yj7z99vp.js";
4
+ import"./cli-m8fs5ttq.js";
5
5
  import {
6
6
  createTaskWithSiblingAwareness
7
- } from "./cli-0sf92efp.js";
7
+ } from "./cli-mhr8tq3v.js";
8
8
  import {
9
9
  buildCancelledBlocks,
10
10
  ensureSlackThreadTree,
@@ -12,8 +12,8 @@ import {
12
12
  getAgentEmoji,
13
13
  getTaskLink,
14
14
  isSlackRenderV2Enabled
15
- } from "./cli-a8ynhkyj.js";
16
- import"./cli-rkndnn90.js";
15
+ } from "./cli-qcsjdppx.js";
16
+ import"./cli-k9qkf1hw.js";
17
17
  import"./cli-b0p7rfnd.js";
18
18
  import"./cli-t930g0xh.js";
19
19
  import {
@@ -24,16 +24,16 @@ import {
24
24
  init_context_key,
25
25
  init_db,
26
26
  slackContextKey
27
- } from "./cli-t53vnnxz.js";
27
+ } from "./cli-s18zzkfp.js";
28
28
  import"./cli-4n4mdv21.js";
29
29
  import"./cli-x23me2mg.js";
30
30
  import"./cli-z2zcxes1.js";
31
- import"./cli-d91pvmq1.js";
31
+ import"./cli-zsspvvm2.js";
32
32
  import"./cli-4j2mrzag.js";
33
- import"./cli-kk4f9r17.js";
34
- import"./cli-2mbe7vk0.js";
33
+ import"./cli-7v5dhmc8.js";
34
+ import"./cli-5dsbcjjw.js";
35
35
  import"./cli-e15jhafb.js";
36
- import"./cli-7wmybrt5.js";
36
+ import"./cli-3fj60etf.js";
37
37
  import"./cli-p9swy5t3.js";
38
38
 
39
39
  // src/slack/actions.ts
@@ -3,20 +3,20 @@ import {
3
3
  initSlackApp,
4
4
  startSlackApp,
5
5
  stopSlackApp
6
- } from "./cli-a8ynhkyj.js";
7
- import"./cli-rkndnn90.js";
6
+ } from "./cli-qcsjdppx.js";
7
+ import"./cli-k9qkf1hw.js";
8
8
  import"./cli-b0p7rfnd.js";
9
9
  import"./cli-t930g0xh.js";
10
- import"./cli-t53vnnxz.js";
10
+ import"./cli-s18zzkfp.js";
11
11
  import"./cli-4n4mdv21.js";
12
12
  import"./cli-x23me2mg.js";
13
13
  import"./cli-z2zcxes1.js";
14
- import"./cli-d91pvmq1.js";
14
+ import"./cli-zsspvvm2.js";
15
15
  import"./cli-4j2mrzag.js";
16
- import"./cli-kk4f9r17.js";
17
- import"./cli-2mbe7vk0.js";
16
+ import"./cli-7v5dhmc8.js";
17
+ import"./cli-5dsbcjjw.js";
18
18
  import"./cli-e15jhafb.js";
19
- import"./cli-7wmybrt5.js";
19
+ import"./cli-3fj60etf.js";
20
20
  import"./cli-p9swy5t3.js";
21
21
  export {
22
22
  stopSlackApp,
@@ -7,12 +7,12 @@ import {
7
7
  import {
8
8
  require_follow_redirects,
9
9
  require_src
10
- } from "./cli-rkndnn90.js";
10
+ } from "./cli-k9qkf1hw.js";
11
11
  import {
12
12
  getMcpBaseUrl,
13
13
  init_constants
14
14
  } from "./cli-x23me2mg.js";
15
- import"./cli-7wmybrt5.js";
15
+ import"./cli-3fj60etf.js";
16
16
  import {
17
17
  __commonJS,
18
18
  __require,
@@ -2,25 +2,25 @@ import {
2
2
  bufferThreadMessage,
3
3
  getBufferMessageCount,
4
4
  wasEventSeen
5
- } from "./cli-17zxdgsq.js";
5
+ } from "./cli-73bvdyxr.js";
6
6
  import {
7
7
  hasOtherUserMention
8
- } from "./cli-nhcd7x43.js";
8
+ } from "./cli-r62me33w.js";
9
9
  import {
10
10
  resolveSlackUserId,
11
11
  rewriteSlackMentions
12
- } from "./cli-7padk69a.js";
13
- import"./cli-2k0ztbfp.js";
12
+ } from "./cli-yj7z99vp.js";
13
+ import"./cli-m8fs5ttq.js";
14
14
  import {
15
15
  createTaskWithSiblingAwareness
16
- } from "./cli-0sf92efp.js";
16
+ } from "./cli-mhr8tq3v.js";
17
17
  import {
18
18
  ackSlackMessage,
19
19
  ensureSlackThreadTree,
20
20
  isSlackRenderV2Enabled,
21
21
  require_dist
22
- } from "./cli-a8ynhkyj.js";
23
- import"./cli-rkndnn90.js";
22
+ } from "./cli-qcsjdppx.js";
23
+ import"./cli-k9qkf1hw.js";
24
24
  import"./cli-b0p7rfnd.js";
25
25
  import"./cli-t930g0xh.js";
26
26
  import {
@@ -30,7 +30,7 @@ import {
30
30
  init_context_key,
31
31
  init_db,
32
32
  slackContextKey
33
- } from "./cli-t53vnnxz.js";
33
+ } from "./cli-s18zzkfp.js";
34
34
  import {
35
35
  init_env_flag,
36
36
  init_resolver,
@@ -39,12 +39,12 @@ import {
39
39
  } from "./cli-4n4mdv21.js";
40
40
  import"./cli-x23me2mg.js";
41
41
  import"./cli-z2zcxes1.js";
42
- import"./cli-d91pvmq1.js";
42
+ import"./cli-zsspvvm2.js";
43
43
  import"./cli-4j2mrzag.js";
44
- import"./cli-kk4f9r17.js";
45
- import"./cli-2mbe7vk0.js";
44
+ import"./cli-7v5dhmc8.js";
45
+ import"./cli-5dsbcjjw.js";
46
46
  import"./cli-e15jhafb.js";
47
- import"./cli-7wmybrt5.js";
47
+ import"./cli-3fj60etf.js";
48
48
  import {
49
49
  __toESM
50
50
  } from "./cli-p9swy5t3.js";
@@ -3,19 +3,19 @@ import {
3
3
  getEmbeddingProvider,
4
4
  getMemoryStore,
5
5
  init_constants
6
- } from "./cli-1y1cm570.js";
6
+ } from "./cli-mf009e0j.js";
7
7
  import"./cli-0258203w.js";
8
8
  import {
9
9
  getDb,
10
10
  init_db
11
- } from "./cli-t53vnnxz.js";
11
+ } from "./cli-s18zzkfp.js";
12
12
  import"./cli-4n4mdv21.js";
13
13
  import"./cli-x23me2mg.js";
14
14
  import"./cli-z2zcxes1.js";
15
- import"./cli-d91pvmq1.js";
15
+ import"./cli-zsspvvm2.js";
16
16
  import"./cli-4j2mrzag.js";
17
- import"./cli-kk4f9r17.js";
18
- import"./cli-2mbe7vk0.js";
17
+ import"./cli-7v5dhmc8.js";
18
+ import"./cli-5dsbcjjw.js";
19
19
  import"./cli-p9swy5t3.js";
20
20
 
21
21
  // src/be/memory/boot-reembed.ts
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  embedScript,
3
3
  embeddingProvider
4
- } from "./cli-39vgrsep.js";
5
- import"./cli-1y1cm570.js";
4
+ } from "./cli-1px8pn1s.js";
5
+ import"./cli-mf009e0j.js";
6
6
  import"./cli-0258203w.js";
7
7
  import {
8
8
  getDb,
9
9
  init_db
10
- } from "./cli-t53vnnxz.js";
10
+ } from "./cli-s18zzkfp.js";
11
11
  import"./cli-4n4mdv21.js";
12
12
  import"./cli-x23me2mg.js";
13
13
  import"./cli-z2zcxes1.js";
14
- import"./cli-d91pvmq1.js";
14
+ import"./cli-zsspvvm2.js";
15
15
  import"./cli-4j2mrzag.js";
16
- import"./cli-kk4f9r17.js";
17
- import"./cli-2mbe7vk0.js";
16
+ import"./cli-7v5dhmc8.js";
17
+ import"./cli-5dsbcjjw.js";
18
18
  import"./cli-p9swy5t3.js";
19
19
 
20
20
  // src/be/scripts/boot-reembed.ts
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  getDb,
3
3
  init_db
4
- } from "./cli-t53vnnxz.js";
4
+ } from "./cli-s18zzkfp.js";
5
5
  import"./cli-4n4mdv21.js";
6
6
  import"./cli-x23me2mg.js";
7
7
  import"./cli-z2zcxes1.js";
8
- import"./cli-d91pvmq1.js";
8
+ import"./cli-zsspvvm2.js";
9
9
  import {
10
10
  init_secret_scrubber,
11
11
  scrubSecrets
12
12
  } from "./cli-4j2mrzag.js";
13
- import"./cli-kk4f9r17.js";
14
- import"./cli-2mbe7vk0.js";
13
+ import"./cli-7v5dhmc8.js";
14
+ import"./cli-5dsbcjjw.js";
15
15
  import"./cli-p9swy5t3.js";
16
16
 
17
17
  // src/be/boot-scrub-logs.ts
@@ -12,16 +12,16 @@ import {
12
12
  resolveClaudeBinary,
13
13
  resolveClaudeBinaryArgv,
14
14
  resolveClaudeBridgeEnabled
15
- } from "./cli-7ecgm5v0.js";
16
- import"./cli-h0457a67.js";
15
+ } from "./cli-e5p3es48.js";
16
+ import"./cli-mgerp0vs.js";
17
17
  import"./cli-psrqtw2m.js";
18
- import"./cli-mhjnbgb6.js";
18
+ import"./cli-s21zzx4b.js";
19
19
  import"./cli-yv9dttkh.js";
20
20
  import"./cli-tng3131n.js";
21
21
  import"./cli-zm7njwzd.js";
22
22
  import"./cli-cw70hymf.js";
23
23
  import"./cli-v1mwc5v2.js";
24
- import"./cli-gztgc3hz.js";
24
+ import"./cli-2wadx7p2.js";
25
25
  import"./cli-e7d20cty.js";
26
26
  import"./cli-8whqavk2.js";
27
27
  import"./cli-3dpj7atn.js";
@@ -30,10 +30,10 @@ import"./cli-0258203w.js";
30
30
  import"./cli-7zd05xb4.js";
31
31
  import"./cli-x23me2mg.js";
32
32
  import"./cli-z2zcxes1.js";
33
- import"./cli-d91pvmq1.js";
33
+ import"./cli-zsspvvm2.js";
34
34
  import"./cli-4j2mrzag.js";
35
- import"./cli-kk4f9r17.js";
36
- import"./cli-2mbe7vk0.js";
35
+ import"./cli-7v5dhmc8.js";
36
+ import"./cli-5dsbcjjw.js";
37
37
  import"./cli-6nh2qxvh.js";
38
38
  import"./cli-4wgngmwv.js";
39
39
  import"./cli-zyxs93y9.js";
@@ -7,7 +7,7 @@ import {
7
7
  init_date_utils,
8
8
  init_db,
9
9
  normalizeDateRequired
10
- } from "./cli-t53vnnxz.js";
10
+ } from "./cli-s18zzkfp.js";
11
11
  import {
12
12
  init_secret_scrubber,
13
13
  registerVolatileSecret,
@@ -4,11 +4,11 @@ import {
4
4
  getEmbeddingProvider,
5
5
  init_embedding,
6
6
  serializeEmbedding
7
- } from "./cli-1y1cm570.js";
7
+ } from "./cli-mf009e0j.js";
8
8
  import {
9
9
  getDb,
10
10
  init_db
11
- } from "./cli-t53vnnxz.js";
11
+ } from "./cli-s18zzkfp.js";
12
12
  import {
13
13
  init_secret_scrubber,
14
14
  scrubSecrets
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_package,
3
3
  package_default
4
- } from "./cli-kk4f9r17.js";
4
+ } from "./cli-7v5dhmc8.js";
5
5
 
6
6
  // src/commands/shared/client-config.ts
7
7
  init_package();
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  init_zod
3
- } from "./cli-d91pvmq1.js";
3
+ } from "./cli-zsspvvm2.js";
4
4
  import {
5
5
  exports_external
6
- } from "./cli-2mbe7vk0.js";
6
+ } from "./cli-5dsbcjjw.js";
7
7
 
8
8
  // src/be/memory/raters/llm.ts
9
9
  init_zod();
@@ -3,7 +3,7 @@ import {
3
3
  } from "./cli-xg2eezyv.js";
4
4
  import {
5
5
  checkCodexCredentials
6
- } from "./cli-etr62zy6.js";
6
+ } from "./cli-h3e66g5b.js";
7
7
  import {
8
8
  checkClaudeManagedCredentials
9
9
  } from "./cli-qmdnhpej.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./cli-n6h8qt8n.js";
16
16
  import {
17
17
  checkClaudeCredentials
18
- } from "./cli-7ecgm5v0.js";
18
+ } from "./cli-e5p3es48.js";
19
19
  import {
20
20
  MAX_RATE_LIMIT_RESET_MS,
21
21
  isCodexCreditsExhaustedMessage,
@@ -35,7 +35,7 @@ import {
35
35
  withSpan,
36
36
  withSpanContext,
37
37
  writeSkillsToFilesystem
38
- } from "./cli-7bz8dzqa.js";
38
+ } from "./cli-haanc4qd.js";
39
39
  import {
40
40
  authJsonToCredentialSelection,
41
41
  credentialsToAuthJson,
@@ -44,10 +44,10 @@ import {
44
44
  import {
45
45
  ensure,
46
46
  initialize
47
- } from "./cli-v37yr6mf.js";
47
+ } from "./cli-dakxgk70.js";
48
48
  import {
49
49
  validateJsonSchema
50
- } from "./cli-fpaa5k2q.js";
50
+ } from "./cli-xdrmxvd4.js";
51
51
  import {
52
52
  getOpenRouterBaseUrl
53
53
  } from "./cli-3dpj7atn.js";
@@ -78,7 +78,7 @@ import {
78
78
  init_types,
79
79
  resolveTaskModelSelection,
80
80
  telemetry
81
- } from "./cli-t53vnnxz.js";
81
+ } from "./cli-s18zzkfp.js";
82
82
  import {
83
83
  configureHttpResolver,
84
84
  init_resolver,
@@ -495,15 +495,15 @@ async function materializeCodexAuthJson(_slot, creds, deps = {}) {
495
495
  async function createProviderAdapter(provider) {
496
496
  switch (provider) {
497
497
  case "claude": {
498
- const { ClaudeAdapter } = await import("./claude-adapter-qz4r0ajt.js");
498
+ const { ClaudeAdapter } = await import("./claude-adapter-qr0k17km.js");
499
499
  return new ClaudeAdapter;
500
500
  }
501
501
  case "pi": {
502
- const { PiMonoAdapter } = await import("./pi-mono-adapter-k584k16g.js");
502
+ const { PiMonoAdapter } = await import("./pi-mono-adapter-bpfrn6d7.js");
503
503
  return new PiMonoAdapter;
504
504
  }
505
505
  case "codex": {
506
- const { CodexAdapter } = await import("./codex-adapter-7v6t7ff6.js");
506
+ const { CodexAdapter } = await import("./codex-adapter-6pc50x9q.js");
507
507
  return new CodexAdapter;
508
508
  }
509
509
  case "claude-managed": {
@@ -1201,7 +1201,7 @@ async function checkProviderCredentials(provider, env, opts) {
1201
1201
  case "opencode":
1202
1202
  return checkOpencodeCredentials(env, opts);
1203
1203
  case "pi": {
1204
- const { checkPiMonoCredentials } = await import("./pi-mono-adapter-k584k16g.js");
1204
+ const { checkPiMonoCredentials } = await import("./pi-mono-adapter-bpfrn6d7.js");
1205
1205
  return checkPiMonoCredentials(env, opts);
1206
1206
  }
1207
1207
  default:
@@ -0,0 +1,153 @@
1
+ import {
2
+ __esm,
3
+ __export
4
+ } from "./cli-p9swy5t3.js";
5
+
6
+ // node_modules/supports-color/index.js
7
+ var exports_supports_color = {};
8
+ __export(exports_supports_color, {
9
+ default: () => supports_color_default,
10
+ createSupportsColor: () => createSupportsColor
11
+ });
12
+ import process from "node:process";
13
+ import os from "node:os";
14
+ import tty from "node:tty";
15
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process.argv) {
16
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
17
+ const position = argv.indexOf(prefix + flag);
18
+ const terminatorPosition = argv.indexOf("--");
19
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
20
+ }
21
+ function envForceColor() {
22
+ if (!("FORCE_COLOR" in env)) {
23
+ return;
24
+ }
25
+ if (env.FORCE_COLOR === "true") {
26
+ return 1;
27
+ }
28
+ if (env.FORCE_COLOR === "false") {
29
+ return 0;
30
+ }
31
+ if (env.FORCE_COLOR.length === 0) {
32
+ return 1;
33
+ }
34
+ const level = Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
35
+ if (![0, 1, 2, 3].includes(level)) {
36
+ return;
37
+ }
38
+ return level;
39
+ }
40
+ function translateLevel(level) {
41
+ if (level === 0) {
42
+ return false;
43
+ }
44
+ return {
45
+ level,
46
+ hasBasic: true,
47
+ has256: level >= 2,
48
+ has16m: level >= 3
49
+ };
50
+ }
51
+ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
52
+ const noFlagForceColor = envForceColor();
53
+ if (noFlagForceColor !== undefined) {
54
+ flagForceColor = noFlagForceColor;
55
+ }
56
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
57
+ if (forceColor === 0) {
58
+ return 0;
59
+ }
60
+ if (sniffFlags) {
61
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
62
+ return 3;
63
+ }
64
+ if (hasFlag("color=256")) {
65
+ return 2;
66
+ }
67
+ }
68
+ if ("TF_BUILD" in env && "AGENT_NAME" in env) {
69
+ return 1;
70
+ }
71
+ if (haveStream && !streamIsTTY && forceColor === undefined) {
72
+ return 0;
73
+ }
74
+ const min = forceColor || 0;
75
+ if (env.TERM === "dumb") {
76
+ return min;
77
+ }
78
+ if (process.platform === "win32") {
79
+ const osRelease = os.release().split(".");
80
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
81
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
82
+ }
83
+ return 1;
84
+ }
85
+ if ("CI" in env) {
86
+ if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => (key in env))) {
87
+ return 3;
88
+ }
89
+ if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => (sign in env)) || env.CI_NAME === "codeship") {
90
+ return 1;
91
+ }
92
+ return min;
93
+ }
94
+ if ("TEAMCITY_VERSION" in env) {
95
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
96
+ }
97
+ if (env.COLORTERM === "truecolor") {
98
+ return 3;
99
+ }
100
+ if (env.TERM === "xterm-kitty") {
101
+ return 3;
102
+ }
103
+ if (env.TERM === "xterm-ghostty") {
104
+ return 3;
105
+ }
106
+ if (env.TERM === "wezterm") {
107
+ return 3;
108
+ }
109
+ if ("TERM_PROGRAM" in env) {
110
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
111
+ switch (env.TERM_PROGRAM) {
112
+ case "iTerm.app": {
113
+ return version >= 3 ? 3 : 2;
114
+ }
115
+ case "Apple_Terminal": {
116
+ return 2;
117
+ }
118
+ }
119
+ }
120
+ if (/-256(color)?$/i.test(env.TERM)) {
121
+ return 2;
122
+ }
123
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
124
+ return 1;
125
+ }
126
+ if ("COLORTERM" in env) {
127
+ return 1;
128
+ }
129
+ return min;
130
+ }
131
+ function createSupportsColor(stream, options = {}) {
132
+ const level = _supportsColor(stream, {
133
+ streamIsTTY: stream && stream.isTTY,
134
+ ...options
135
+ });
136
+ return translateLevel(level);
137
+ }
138
+ var env, flagForceColor, supportsColor, supports_color_default;
139
+ var init_supports_color = __esm(() => {
140
+ ({ env } = process);
141
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
142
+ flagForceColor = 0;
143
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
144
+ flagForceColor = 1;
145
+ }
146
+ supportsColor = {
147
+ stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
148
+ stderr: createSupportsColor({ isTTY: tty.isatty(2) })
149
+ };
150
+ supports_color_default = supportsColor;
151
+ });
152
+
153
+ export { exports_supports_color, init_supports_color };
@@ -13727,4 +13727,4 @@ var init_external = __esm(() => {
13727
13727
  config(en_default());
13728
13728
  });
13729
13729
 
13730
- export { NEVER, $constructor, clone, exports_util, $ZodError, prettifyError, parse, parseAsync, safeParse, safeParseAsync, $ZodType, $ZodObject, init_locales, toJSONSchema, init_json_schema_processors, init_core2 as init_core, exports_iso, safeParseAsync2 as safeParseAsync1, string2 as string, uuid2 as uuid, number2 as number, int, boolean2 as boolean, _null3 as _null, any, unknown, never, _void2 as _void, date3 as date, array, object, looseObject, union, discriminatedUnion, intersection, record, _enum2 as _enum, literal, ZodOptional, optional, nullable, lazy, custom, preprocess, ZodIssueCode, exports_coerce, exports_external, init_external };
13730
+ export { NEVER, $constructor, $brand, config, clone, exports_util, $ZodError, flattenError, formatError, treeifyError, prettifyError, parse, parseAsync, safeParse, safeParseAsync, exports_regexes, $ZodType, $ZodObject, exports_locales, init_locales, $output, $input, registry, globalRegistry, TimePrecision, _lt, _lte, _gt, _gte, _positive, _negative, _nonpositive, _nonnegative, _multipleOf, _maxSize, _minSize, _size, _maxLength, _minLength, _length, _regex, _lowercase, _uppercase, _includes, _startsWith, _endsWith, _property, _mime, _overwrite, _normalize, _trim, _toLowerCase, _toUpperCase, _slugify, toJSONSchema, init_json_schema_processors, exports_core2 as exports_core, init_core2 as init_core, ZodISODateTime, ZodISODate, ZodISOTime, ZodISODuration, exports_iso, ZodError, ZodRealError, parse3 as parse1, parseAsync2 as parseAsync1, safeParse2 as safeParse1, safeParseAsync2 as safeParseAsync1, encode2 as encode, decode2 as decode, encodeAsync2 as encodeAsync, decodeAsync2 as decodeAsync, safeEncode2 as safeEncode, safeDecode2 as safeDecode, safeEncodeAsync2 as safeEncodeAsync, safeDecodeAsync2 as safeDecodeAsync, ZodType, _ZodString, ZodString, string2 as string, ZodStringFormat, ZodEmail, email2 as email, ZodGUID, guid2 as guid, ZodUUID, uuid2 as uuid, uuidv4, uuidv6, uuidv7, ZodURL, url, httpUrl, ZodEmoji, emoji2 as emoji, ZodNanoID, nanoid2 as nanoid, ZodCUID, cuid3 as cuid, ZodCUID2, cuid22 as cuid2, ZodULID, ulid2 as ulid, ZodXID, xid2 as xid, ZodKSUID, ksuid2 as ksuid, ZodIPv4, ipv42 as ipv4, ZodMAC, mac2 as mac, ZodIPv6, ipv62 as ipv6, ZodCIDRv4, cidrv42 as cidrv4, ZodCIDRv6, cidrv62 as cidrv6, ZodBase64, base642 as base64, ZodBase64URL, base64url2 as base64url, ZodE164, e1642 as e164, ZodJWT, jwt, ZodCustomStringFormat, stringFormat, hostname2 as hostname, hex2 as hex, hash, ZodNumber, number2 as number, ZodNumberFormat, int, float32, float64, int32, uint32, ZodBoolean, boolean2 as boolean, ZodBigInt, bigint2 as bigint, ZodBigIntFormat, int64, uint64, ZodSymbol, symbol, ZodUndefined, _undefined3 as _undefined, ZodNull, _null3 as _null, ZodAny, any, ZodUnknown, unknown, ZodNever, never, ZodVoid, _void2 as _void, ZodDate, date3 as date, ZodArray, array, keyof, ZodObject, object, strictObject, looseObject, ZodUnion, union, ZodXor, xor, ZodDiscriminatedUnion, discriminatedUnion, ZodIntersection, intersection, ZodTuple, tuple, ZodRecord, record, partialRecord, looseRecord, ZodMap, map, ZodSet, set, ZodEnum, _enum2 as _enum, nativeEnum, ZodLiteral, literal, ZodFile, file, ZodTransform, transform, ZodOptional, optional, ZodNullable, nullable, nullish2 as nullish, ZodDefault, _default2 as _default, ZodPrefault, prefault, ZodNonOptional, nonoptional, ZodSuccess, success, ZodCatch, _catch2 as _catch, ZodNaN, nan, ZodPipe, pipe, ZodCodec, codec, ZodReadonly, readonly, ZodTemplateLiteral, templateLiteral, ZodLazy, lazy, ZodPromise, promise, ZodFunction, _function, ZodCustom, check, custom, refine, superRefine, describe2 as describe, meta2 as meta, _instanceof, stringbool, json, preprocess, ZodIssueCode, setErrorMap, getErrorMap, ZodFirstPartyTypeKind, fromJSONSchema, exports_coerce, exports_external, init_external };
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createAdditiveBuffer,
3
3
  extractSlackMessageText
4
- } from "./cli-nhcd7x43.js";
4
+ } from "./cli-r62me33w.js";
5
5
  import {
6
6
  rewriteSlackMentions
7
- } from "./cli-7padk69a.js";
7
+ } from "./cli-yj7z99vp.js";
8
8
  import {
9
9
  createTaskWithSiblingAwareness
10
- } from "./cli-0sf92efp.js";
10
+ } from "./cli-mhr8tq3v.js";
11
11
  import {
12
12
  buildBufferFlushBlocks,
13
13
  ensureSlackThreadTree,
@@ -16,7 +16,7 @@ import {
16
16
  getSlackApp,
17
17
  isSlackRenderV2Enabled,
18
18
  registerTreeMessage
19
- } from "./cli-a8ynhkyj.js";
19
+ } from "./cli-qcsjdppx.js";
20
20
  import {
21
21
  createLogEntry,
22
22
  getAgentById,
@@ -29,7 +29,7 @@ import {
29
29
  init_steering,
30
30
  requestSteering,
31
31
  slackContextKey
32
- } from "./cli-t53vnnxz.js";
32
+ } from "./cli-s18zzkfp.js";
33
33
  import {
34
34
  init_registry,
35
35
  init_steering_enabled,
@@ -7,7 +7,7 @@ var package_default;
7
7
  var init_package = __esm(() => {
8
8
  package_default = {
9
9
  name: "@desplega.ai/agent-swarm",
10
- version: "1.129.0",
10
+ version: "1.130.0",
11
11
  description: "agent-swarm.dev — an open-source operating system for AI work: a lead agent breaks goals into tasks, routes them to specialized workers such as Claude Code or Codex, runs each worker in an isolated container, and preserves shared memory, tools, schedules, and review gates so delegated work compounds across sessions.",
12
12
  keywords: [
13
13
  "agent-swarm.dev",
@@ -99,6 +99,7 @@ var init_package = __esm(() => {
99
99
  "check:api-key-boundary": "bash scripts/check-api-key-boundary.sh",
100
100
  "check:vendored-openapi": "bun scripts/check-vendored-openapi.ts",
101
101
  "check:rbac-coverage": "bun scripts/check-rbac-coverage.ts",
102
+ "check:openapi-response-coverage": "bun scripts/check-openapi-response-coverage.ts",
102
103
  "check:script-types": "bash scripts/check-script-types-freshness.sh",
103
104
  "check:audit-columns": "bash scripts/check-audit-columns.sh",
104
105
  "lint:structure": "konsistent check",
@@ -158,6 +159,7 @@ var init_package = __esm(() => {
158
159
  "@types/bun": "latest",
159
160
  "dependency-cruiser": "^18.0.0",
160
161
  konsistent: "1.0.0-beta.1",
162
+ "openapi-typescript": "^7",
161
163
  "ts-morph": "^28.0.0",
162
164
  turbo: "^2.10.0"
163
165
  },
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_external
3
- } from "./cli-2mbe7vk0.js";
3
+ } from "./cli-5dsbcjjw.js";
4
4
 
5
5
  // node_modules/zod/v4/classic/index.js
6
6
  init_external();