@desplega.ai/agent-swarm 1.121.1 → 1.122.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.
Files changed (205) hide show
  1. package/README.md +3 -3
  2. package/dist/{actions-99h2dh5e.js → actions-rd8p2zqb.js} +6 -6
  3. package/dist/{app-9gfdk9me.js → app-v839gywt.js} +4 -4
  4. package/dist/{assistant-mabq9kz7.js → assistant-qjp128zg.js} +9 -9
  5. package/dist/{boot-reembed-3vr2amzp.js → boot-reembed-3fjfyz1h.js} +4 -4
  6. package/dist/{boot-reembed-ya33nge3.js → boot-reembed-e4b9xsa1.js} +3 -3
  7. package/dist/{boot-scrub-logs-2nmz7fzw.js → boot-scrub-logs-x3vrw472.js} +2 -2
  8. package/dist/{claude-adapter-vxvcym3r.js → claude-adapter-zvzp4x76.js} +1 -1
  9. package/dist/{claude-managed-adapter-g807894s.js → claude-managed-adapter-g92bcm1a.js} +1 -1
  10. package/dist/{cli-dwqakg2b.js → cli-2rcegy4e.js} +11 -6
  11. package/dist/{cli-gahmct71.js → cli-2y473tja.js} +2 -2
  12. package/dist/{cli-2846g99z.js → cli-31163xvp.js} +398 -26
  13. package/dist/{cli-x4apc9t3.js → cli-36dctyg8.js} +139 -23
  14. package/dist/{cli-qfh6pmvm.js → cli-3m3ysn1f.js} +1 -1
  15. package/dist/{cli-wwsaj97q.js → cli-4pcxkk69.js} +10 -0
  16. package/dist/{cli-ma04faw5.js → cli-5arfywtm.js} +2 -0
  17. package/dist/{cli-02m8v96c.js → cli-9pv05nba.js} +3 -2
  18. package/dist/{cli-p8qcm631.js → cli-ctzr9apr.js} +1 -1
  19. package/dist/{cli-e0zbndab.js → cli-ea6b2m9a.js} +3 -3
  20. package/dist/{cli-zweca3q3.js → cli-exfs8aym.js} +1 -1
  21. package/dist/{cli-zm78xp1y.js → cli-fdbt8m8y.js} +26 -4
  22. package/dist/{cli-kx7vsvg0.js → cli-g279mtbs.js} +1 -1
  23. package/dist/{cli-7bk7s2sx.js → cli-h4kjb2qy.js} +1 -1
  24. package/dist/{cli-5jd04m23.js → cli-h7209ted.js} +1 -1
  25. package/dist/{cli-ng0gr9rz.js → cli-jc23g2g2.js} +2 -2
  26. package/dist/{cli-5c4327dx.js → cli-jj1arm18.js} +15 -1
  27. package/dist/{cli-rjn06qph.js → cli-jjcd495f.js} +1 -1
  28. package/dist/{cli-avxs2rp9.js → cli-mwp9asnz.js} +8 -8
  29. package/dist/{cli-yyqpn0gc.js → cli-ndv6ftj4.js} +2 -2
  30. package/dist/{cli-3t4nvx1x.js → cli-nqxvcvnv.js} +4 -4
  31. package/dist/{cli-16dv125e.js → cli-peaqed7c.js} +20 -3
  32. package/dist/{cli-yhwn2vjm.js → cli-pw04m0wb.js} +362 -140
  33. package/dist/{cli-msyrqt1f.js → cli-spsg6mqp.js} +148 -20
  34. package/dist/{cli-yy9sm7c1.js → cli-th8jh1rm.js} +85 -7
  35. package/dist/{cli-kwjx3f1v.js → cli-v2e8jdb6.js} +2 -2
  36. package/dist/{cli-tyfxrrdd.js → cli-w5r4wfm5.js} +11 -1
  37. package/dist/{cli-dn5ycmtw.js → cli-xdv1vntm.js} +1 -1
  38. package/dist/{cli-w4crd8gx.js → cli-xpveay6y.js} +1 -1
  39. package/dist/{cli-fxdhzkqx.js → cli-ydcfdmcz.js} +1 -1
  40. package/dist/{cli-9hewdgzb.js → cli-zrc5k1rd.js} +1 -1
  41. package/dist/cli.js +10 -10
  42. package/dist/{codex-adapter-0kv2meed.js → codex-adapter-vcseqpwf.js} +1 -1
  43. package/dist/{codex-session-runner-m1e1v4r0.js → codex-session-runner-jec9e9t1.js} +1 -1
  44. package/dist/{commands-hty4156r.js → commands-jfmtpvvy.js} +2 -2
  45. package/dist/{db-kyeq3t7h.js → db-vn5met8v.js} +24 -2
  46. package/dist/{devin-adapter-pe1cgpd4.js → devin-adapter-8nmsgff3.js} +1 -1
  47. package/dist/{handlers-fxvqnp6s.js → handlers-0s7dn9ma.js} +36 -10
  48. package/dist/{hook-j4ksm2fy.js → hook-b2293dx1.js} +1 -1
  49. package/dist/{http-m7fq6kbc.js → http-4hmtrrpx.js} +418 -47
  50. package/dist/{index-rqxt0515.js → index-4bcr1r09.js} +11 -11
  51. package/dist/{index-62g7ym5y.js → index-cmee5q4s.js} +7 -7
  52. package/dist/{index-mbaa4yn7.js → index-gxj7sbzx.js} +10 -10
  53. package/dist/{index-r2tmg4ts.js → index-zy9smn2h.js} +9 -9
  54. package/dist/{keepalive-acgfgbk8.js → keepalive-2htbn1j9.js} +5 -5
  55. package/dist/{lead-r3pnbky3.js → lead-p9s142mj.js} +26 -26
  56. package/dist/{maintenance-4tqr6va0.js → maintenance-x8jgt9fd.js} +4 -4
  57. package/dist/{oauth-refresh-sweep-5714hq77.js → oauth-refresh-sweep-9m7qmm1m.js} +4 -4
  58. package/dist/{onboard-s5x8zjqd.js → onboard-jsy93b12.js} +2 -2
  59. package/dist/{opencode-adapter-s3nhtp9m.js → opencode-adapter-44z93505.js} +1 -1
  60. package/dist/{otel-impl-8g0741yr.js → otel-impl-z2w4phcp.js} +1 -1
  61. package/dist/{pi-mono-adapter-k3z6e5fn.js → pi-mono-adapter-2syx1x4d.js} +21 -1
  62. package/dist/{pricing-refresh-09ty42xr.js → pricing-refresh-cjjd6ayt.js} +4 -4
  63. package/dist/{rbac-roles-q38w8rne.js → rbac-roles-166rf7ba.js} +3 -3
  64. package/dist/{rbac-roles-2hjvj3q0.js → rbac-roles-v3xrhv48.js} +4 -4
  65. package/dist/{seed-pricing-wzx03625.js → seed-pricing-f4xrjref.js} +3 -3
  66. package/dist/{setup-4hmnc9fz.js → setup-58jmv2vm.js} +2 -2
  67. package/dist/{worker-efef96pc.js → worker-95x5vnx4.js} +26 -26
  68. package/openapi.json +311 -16
  69. package/package.json +1 -1
  70. package/src/be/db.ts +286 -1
  71. package/src/be/migrations/121_task_steering_messages.sql +24 -0
  72. package/src/be/migrations/122_steering_handled_note.sql +4 -0
  73. package/src/be/scripts/typecheck.ts +1 -0
  74. package/src/be/steering.ts +251 -0
  75. package/src/commands/context-preamble.ts +68 -8
  76. package/src/commands/provider-credentials.ts +2 -2
  77. package/src/commands/runner.ts +134 -1
  78. package/src/heartbeat/heartbeat.ts +36 -2
  79. package/src/http/active-sessions.ts +1 -1
  80. package/src/http/core.ts +3 -0
  81. package/src/http/memory.ts +2 -2
  82. package/src/http/schedules.ts +2 -2
  83. package/src/http/script-runs.ts +1 -1
  84. package/src/http/sessions.ts +5 -1
  85. package/src/http/stats.ts +5 -1
  86. package/src/http/tasks.ts +407 -13
  87. package/src/prompts/base-prompt.ts +15 -0
  88. package/src/prompts/session-templates.ts +31 -0
  89. package/src/providers/claude-adapter.ts +208 -26
  90. package/src/providers/claude-managed-adapter.ts +20 -1
  91. package/src/providers/codex-adapter.ts +2 -1
  92. package/src/providers/devin-adapter.ts +18 -1
  93. package/src/providers/opencode-adapter.ts +32 -0
  94. package/src/providers/pi-mono-adapter.ts +33 -1
  95. package/src/providers/types.ts +11 -1
  96. package/src/rbac/legacy-policy.ts +2 -0
  97. package/src/rbac/permissions.ts +8 -0
  98. package/src/scripts-runtime/sdk-allowlist.ts +1 -0
  99. package/src/scripts-runtime/types/stdlib.d.ts +6 -0
  100. package/src/scripts-runtime/types/swarm-sdk.d.ts +6 -0
  101. package/src/server-user.ts +22 -0
  102. package/src/server.ts +11 -0
  103. package/src/slack/HEURISTICS.md +7 -0
  104. package/src/slack/blocks.ts +2 -0
  105. package/src/slack/handlers.ts +33 -1
  106. package/src/slack/steering.ts +67 -0
  107. package/src/slack/thread-buffer.ts +39 -0
  108. package/src/slack/watcher.ts +5 -0
  109. package/src/tests/claude-adapter-binary.test.ts +5 -0
  110. package/src/tests/claude-managed-adapter.test.ts +61 -0
  111. package/src/tests/devin-adapter.test.ts +41 -0
  112. package/src/tests/mcp-user-route.test.ts +14 -2
  113. package/src/tests/opencode-adapter.test.ts +176 -1
  114. package/src/tests/pi-mono-adapter.test.ts +80 -0
  115. package/src/tests/prompt-template-session.test.ts +5 -4
  116. package/src/tests/provider-steering-capabilities.test.ts +44 -0
  117. package/src/tests/rbac-engine.test.ts +2 -1
  118. package/src/tests/sdk-allowlist.test.ts +7 -0
  119. package/src/tests/slack-steering.test.ts +227 -0
  120. package/src/tests/status.test.ts +20 -0
  121. package/src/tests/steer-task-tool.test.ts +200 -0
  122. package/src/tests/steering-core.test.ts +601 -0
  123. package/src/tests/steering-enabled.test.ts +343 -0
  124. package/src/tests/steering-promotion.test.ts +205 -0
  125. package/src/tests/steering-transport.test.ts +338 -0
  126. package/src/tests/tool-output-agent-id.test.ts +182 -0
  127. package/src/tests/user-token-rest-auth.test.ts +31 -30
  128. package/src/tools/accept-steer.ts +148 -0
  129. package/src/tools/cancel-task.ts +1 -1
  130. package/src/tools/context-diff.ts +1 -1
  131. package/src/tools/context-history.ts +2 -3
  132. package/src/tools/create-channel.ts +2 -2
  133. package/src/tools/credential-bindings/tool.ts +1 -1
  134. package/src/tools/delete-channel.ts +1 -1
  135. package/src/tools/get-swarm.ts +1 -1
  136. package/src/tools/get-task-details.ts +4 -1
  137. package/src/tools/get-tasks.ts +4 -1
  138. package/src/tools/inject-learning.ts +1 -1
  139. package/src/tools/join-swarm.ts +1 -1
  140. package/src/tools/kv/kv-delete.ts +1 -1
  141. package/src/tools/kv/kv-get.ts +1 -1
  142. package/src/tools/kv/kv-incr.ts +1 -1
  143. package/src/tools/kv/kv-list.ts +1 -1
  144. package/src/tools/kv/kv-set.ts +1 -1
  145. package/src/tools/list-channels.ts +1 -1
  146. package/src/tools/list-services.ts +2 -2
  147. package/src/tools/mcp-servers/mcp-server-create.ts +1 -1
  148. package/src/tools/mcp-servers/mcp-server-delete.ts +1 -1
  149. package/src/tools/mcp-servers/mcp-server-get.ts +1 -1
  150. package/src/tools/mcp-servers/mcp-server-install.ts +1 -1
  151. package/src/tools/mcp-servers/mcp-server-list.ts +1 -1
  152. package/src/tools/mcp-servers/mcp-server-uninstall.ts +1 -1
  153. package/src/tools/mcp-servers/mcp-server-update.ts +1 -1
  154. package/src/tools/memory-delete.ts +1 -1
  155. package/src/tools/memory-edit.ts +1 -1
  156. package/src/tools/memory-get.ts +1 -1
  157. package/src/tools/memory-search.ts +27 -22
  158. package/src/tools/my-agent-info.ts +1 -1
  159. package/src/tools/poll-task.ts +1 -1
  160. package/src/tools/post-message.ts +2 -2
  161. package/src/tools/prompt-templates/delete.ts +1 -1
  162. package/src/tools/prompt-templates/get.ts +1 -1
  163. package/src/tools/prompt-templates/list.ts +1 -1
  164. package/src/tools/prompt-templates/preview.ts +1 -1
  165. package/src/tools/prompt-templates/set.ts +1 -1
  166. package/src/tools/read-messages.ts +1 -1
  167. package/src/tools/register-agentmail-inbox.ts +1 -1
  168. package/src/tools/register-kapso-number.ts +2 -3
  169. package/src/tools/register-service.ts +1 -1
  170. package/src/tools/request-human-input.ts +1 -1
  171. package/src/tools/schedules/create-schedule.ts +2 -6
  172. package/src/tools/schedules/delete-schedule.ts +1 -1
  173. package/src/tools/schedules/list-schedules.ts +1 -1
  174. package/src/tools/schedules/patch-schedule.ts +2 -2
  175. package/src/tools/schedules/run-schedule-now.ts +1 -1
  176. package/src/tools/schedules/update-schedule.ts +2 -2
  177. package/src/tools/script-connections/tool.ts +1 -1
  178. package/src/tools/send-task.ts +4 -2
  179. package/src/tools/skills/skill-create.ts +1 -1
  180. package/src/tools/skills/skill-delete.ts +1 -1
  181. package/src/tools/skills/skill-get-file.ts +1 -1
  182. package/src/tools/skills/skill-get.ts +1 -1
  183. package/src/tools/skills/skill-install-remote.ts +1 -1
  184. package/src/tools/skills/skill-install.ts +1 -1
  185. package/src/tools/skills/skill-list.ts +1 -1
  186. package/src/tools/skills/skill-publish.ts +1 -1
  187. package/src/tools/skills/skill-search.ts +1 -1
  188. package/src/tools/skills/skill-sync-remote.ts +1 -1
  189. package/src/tools/skills/skill-uninstall.ts +1 -1
  190. package/src/tools/skills/skill-update.ts +1 -1
  191. package/src/tools/steer-task.ts +149 -0
  192. package/src/tools/store-progress.ts +17 -12
  193. package/src/tools/swarm-config/delete-config.ts +1 -1
  194. package/src/tools/swarm-config/get-config.ts +1 -2
  195. package/src/tools/swarm-config/list-config.ts +2 -2
  196. package/src/tools/swarm-config/set-config.ts +1 -2
  197. package/src/tools/task-action.ts +1 -1
  198. package/src/tools/tool-config.ts +3 -1
  199. package/src/tools/unregister-service.ts +1 -1
  200. package/src/tools/update-profile.ts +1 -2
  201. package/src/tools/update-service-status.ts +1 -1
  202. package/src/tools/whatsapp-message.ts +1 -1
  203. package/src/types.ts +106 -22
  204. package/src/utils/steering-enabled.ts +11 -0
  205. package/src/workflows/executors/agent-task.ts +3 -1
package/README.md CHANGED
@@ -134,7 +134,7 @@ Check [our templates](https://templates.agent-swarm.dev) for a quick start.
134
134
  - **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)
135
135
  - **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)
136
136
  - **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)
137
- - **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. 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)
137
+ - **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. 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)
138
138
  - **OpenTelemetry traces plus OTLP cost/token metrics** — export API + worker traces and finalized session cost/token counters through the same OTLP pipeline for dashboarding in SigNoz, Datadog, Tempo, or another compatible backend. [Observability →](https://docs.agent-swarm.dev/docs/guides/observability-opentelemetry)
139
139
  - **Follow-up continuity across all harnesses** — child tasks inherit a bounded prior-task context preamble built from the task chain, so continuity survives restarts and works the same across every provider. [Task lifecycle →](https://docs.agent-swarm.dev/docs/concepts/task-lifecycle)
140
140
  - **Skills & MCP servers** — reusable procedural knowledge, bundled skill reference files, and per-agent MCP servers with scope cascade. [MCP tools →](https://docs.agent-swarm.dev/docs/reference/mcp-tools)
@@ -142,7 +142,7 @@ Check [our templates](https://templates.agent-swarm.dev) for a quick start.
142
142
  - **Config-driven metrics dashboards** — define read-only SQL widgets, version them, and render them in the dashboard without shipping custom frontend code. [Metrics API →](https://docs.agent-swarm.dev/docs/api-reference/stats)
143
143
  - **DB-backed pages** — agents publish HTML or JSON pages (reports, dashboards, action specs) via `create_page`, remove stale pages with `delete-page`, and share them with public / authed / password modes, version history, view counters, diff helpers, and PDF export. [MCP tools → Pages](https://docs.agent-swarm.dev/docs/reference/mcp-tools#pages-tools)
144
144
  - **KV store** — Redis-like namespaced key/value store with auto-scoped context (Slack thread / PR / Linear issue / page). [MCP tools → KV](https://docs.agent-swarm.dev/docs/reference/mcp-tools#kv-tools)
145
- - **Real-time dashboard + task attachments** — monitor agents, tasks, and inter-agent chat; rename sessions inline; customize each agent's icon and color; filter Pages, Approval Requests, and workflow definitions with URL-backed search/facets; create tasks with uploaded files from the sessions composer; and preview task attachments inline above session prompts. [app.agent-swarm.dev →](https://app.agent-swarm.dev)
145
+ - **Real-time dashboard + task attachments** — monitor agents, tasks, and inter-agent chat; rename sessions inline; search a broad Lucide catalog to customize each agent's icon and color; filter Pages, Approval Requests, and workflow definitions with URL-backed search/facets; create tasks with uploaded files from the sessions composer; and preview task attachments inline above session prompts. [app.agent-swarm.dev →](https://app.agent-swarm.dev)
146
146
 
147
147
  ## Quick Start
148
148
 
@@ -217,7 +217,7 @@ Missing one? Ask the swarm to build it.
217
217
 
218
218
  ## Dashboard
219
219
 
220
- Real-time monitoring of agents, tasks, and inter-agent chat. Session titles can be renamed inline, and agent profiles can use a custom Lucide icon and color while retaining deterministic defaults. Use the hosted version at [app.agent-swarm.dev](https://app.agent-swarm.dev), or run locally:
220
+ Real-time monitoring of agents, tasks, and inter-agent chat. Session titles can be renamed inline, and agent profiles can search hundreds of Lucide icons, pick a color, and retain deterministic defaults when no customization is set. Use the hosted version at [app.agent-swarm.dev](https://app.agent-swarm.dev), or run locally:
221
221
 
222
222
  ```bash
223
223
  cd apps/ui && bun install && bun run dev
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  resolveSlackUserId
3
- } from "./cli-gahmct71.js";
4
- import"./cli-7bk7s2sx.js";
3
+ } from "./cli-2y473tja.js";
4
+ import"./cli-h4kjb2qy.js";
5
5
  import {
6
6
  createTaskWithSiblingAwareness
7
- } from "./cli-p8qcm631.js";
7
+ } from "./cli-ctzr9apr.js";
8
8
  import {
9
9
  buildCancelledBlocks,
10
10
  getTaskLink
11
- } from "./cli-ma04faw5.js";
11
+ } from "./cli-5arfywtm.js";
12
12
  import"./cli-wspgs9bt.js";
13
13
  import"./cli-dh55d5fg.js";
14
14
  import {
@@ -19,9 +19,9 @@ import {
19
19
  init_context_key,
20
20
  init_db,
21
21
  slackContextKey
22
- } from "./cli-2846g99z.js";
22
+ } from "./cli-31163xvp.js";
23
23
  import"./cli-z2zcxes1.js";
24
- import"./cli-dn5ycmtw.js";
24
+ import"./cli-xdv1vntm.js";
25
25
  import"./cli-4j2mrzag.js";
26
26
  import"./cli-bw80ck94.js";
27
27
  import"./cli-xz9aq0rf.js";
@@ -3,15 +3,15 @@ import {
3
3
  initSlackApp,
4
4
  startSlackApp,
5
5
  stopSlackApp
6
- } from "./cli-dwqakg2b.js";
6
+ } from "./cli-2rcegy4e.js";
7
7
  import"./cli-rkndnn90.js";
8
8
  import"./cli-b0p7rfnd.js";
9
- import"./cli-ma04faw5.js";
9
+ import"./cli-5arfywtm.js";
10
10
  import"./cli-wspgs9bt.js";
11
11
  import"./cli-dh55d5fg.js";
12
- import"./cli-2846g99z.js";
12
+ import"./cli-31163xvp.js";
13
13
  import"./cli-z2zcxes1.js";
14
- import"./cli-dn5ycmtw.js";
14
+ import"./cli-xdv1vntm.js";
15
15
  import"./cli-4j2mrzag.js";
16
16
  import"./cli-bw80ck94.js";
17
17
  import"./cli-xz9aq0rf.js";
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  bufferThreadMessage,
3
3
  wasEventSeen
4
- } from "./cli-yy9sm7c1.js";
4
+ } from "./cli-th8jh1rm.js";
5
5
  import {
6
6
  hasOtherUserMention
7
- } from "./cli-kx7vsvg0.js";
7
+ } from "./cli-g279mtbs.js";
8
8
  import {
9
9
  resolveSlackUserId,
10
10
  rewriteSlackMentions
11
- } from "./cli-gahmct71.js";
12
- import"./cli-7bk7s2sx.js";
11
+ } from "./cli-2y473tja.js";
12
+ import"./cli-h4kjb2qy.js";
13
13
  import {
14
14
  createTaskWithSiblingAwareness
15
- } from "./cli-p8qcm631.js";
15
+ } from "./cli-ctzr9apr.js";
16
16
  import {
17
17
  require_dist
18
- } from "./cli-dwqakg2b.js";
18
+ } from "./cli-2rcegy4e.js";
19
19
  import"./cli-rkndnn90.js";
20
20
  import"./cli-b0p7rfnd.js";
21
- import"./cli-ma04faw5.js";
21
+ import"./cli-5arfywtm.js";
22
22
  import"./cli-wspgs9bt.js";
23
23
  import"./cli-dh55d5fg.js";
24
24
  import {
@@ -30,9 +30,9 @@ import {
30
30
  init_resolver,
31
31
  resolveTemplate,
32
32
  slackContextKey
33
- } from "./cli-2846g99z.js";
33
+ } from "./cli-31163xvp.js";
34
34
  import"./cli-z2zcxes1.js";
35
- import"./cli-dn5ycmtw.js";
35
+ import"./cli-xdv1vntm.js";
36
36
  import"./cli-4j2mrzag.js";
37
37
  import"./cli-bw80ck94.js";
38
38
  import"./cli-xz9aq0rf.js";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  embedScript,
3
3
  embeddingProvider
4
- } from "./cli-yyqpn0gc.js";
5
- import"./cli-9hewdgzb.js";
4
+ } from "./cli-ndv6ftj4.js";
5
+ import"./cli-zrc5k1rd.js";
6
6
  import"./cli-q25ejbyn.js";
7
7
  import {
8
8
  getDb,
9
9
  init_db
10
- } from "./cli-2846g99z.js";
10
+ } from "./cli-31163xvp.js";
11
11
  import"./cli-z2zcxes1.js";
12
- import"./cli-dn5ycmtw.js";
12
+ import"./cli-xdv1vntm.js";
13
13
  import"./cli-4j2mrzag.js";
14
14
  import"./cli-bw80ck94.js";
15
15
  import"./cli-xz9aq0rf.js";
@@ -3,14 +3,14 @@ import {
3
3
  getEmbeddingProvider,
4
4
  getMemoryStore,
5
5
  init_constants
6
- } from "./cli-9hewdgzb.js";
6
+ } from "./cli-zrc5k1rd.js";
7
7
  import"./cli-q25ejbyn.js";
8
8
  import {
9
9
  getDb,
10
10
  init_db
11
- } from "./cli-2846g99z.js";
11
+ } from "./cli-31163xvp.js";
12
12
  import"./cli-z2zcxes1.js";
13
- import"./cli-dn5ycmtw.js";
13
+ import"./cli-xdv1vntm.js";
14
14
  import"./cli-4j2mrzag.js";
15
15
  import"./cli-bw80ck94.js";
16
16
  import"./cli-xz9aq0rf.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getDb,
3
3
  init_db
4
- } from "./cli-2846g99z.js";
4
+ } from "./cli-31163xvp.js";
5
5
  import"./cli-z2zcxes1.js";
6
- import"./cli-dn5ycmtw.js";
6
+ import"./cli-xdv1vntm.js";
7
7
  import {
8
8
  init_secret_scrubber,
9
9
  scrubSecrets
@@ -12,7 +12,7 @@ import {
12
12
  resolveClaudeBinary,
13
13
  resolveClaudeBinaryArgv,
14
14
  resolveClaudeBridgeEnabled
15
- } from "./cli-x4apc9t3.js";
15
+ } from "./cli-36dctyg8.js";
16
16
  import"./cli-psrqtw2m.js";
17
17
  import"./cli-tng3131n.js";
18
18
  import"./cli-zm7njwzd.js";
@@ -3,7 +3,7 @@ import {
3
3
  checkClaudeManagedCredentials,
4
4
  composeManagedUserMessage,
5
5
  normalizeRepoUrl
6
- } from "./cli-5c4327dx.js";
6
+ } from "./cli-jj1arm18.js";
7
7
  import"./cli-07er7wrs.js";
8
8
  import"./cli-yv9dttkh.js";
9
9
  import"./cli-d6n0thxw.js";
@@ -17,17 +17,18 @@ import {
17
17
  getTaskLink,
18
18
  markdownToSlack,
19
19
  splitSlackSectionText
20
- } from "./cli-ma04faw5.js";
20
+ } from "./cli-5arfywtm.js";
21
21
  import {
22
22
  getAgentById,
23
23
  getChildTasks,
24
24
  getCompletedSlackTasks,
25
25
  getInProgressSlackTasks,
26
+ getSteeringMessagesForTask,
26
27
  getTaskAttachments,
27
28
  getTaskById,
28
29
  init_db,
29
30
  setSlackMessageTracking
30
- } from "./cli-2846g99z.js";
31
+ } from "./cli-31163xvp.js";
31
32
  import {
32
33
  require_receiver,
33
34
  require_sender,
@@ -54589,6 +54590,7 @@ function buildTreeNodes(tree) {
54589
54590
  childDuration = formatDuration(new Date(child.createdAt), new Date(child.finishedAt));
54590
54591
  }
54591
54592
  const childAttachments = child.status === "completed" ? getTaskAttachments(child.id) : undefined;
54593
+ const childSteered = getSteeringMessagesForTask(child.id).length > 0;
54592
54594
  childNodes.push({
54593
54595
  taskId: child.id,
54594
54596
  agentName: childAgentName,
@@ -54599,12 +54601,14 @@ function buildTreeNodes(tree) {
54599
54601
  output: child.output ?? undefined,
54600
54602
  failureReason: child.failureReason ?? undefined,
54601
54603
  attachments: childAttachments,
54604
+ steered: childSteered,
54602
54605
  children: []
54603
54606
  });
54604
54607
  taskQueue.push(child.id);
54605
54608
  }
54606
54609
  }
54607
54610
  const rootAttachments = task.status === "completed" ? getTaskAttachments(task.id) : undefined;
54611
+ const rootSteered = getSteeringMessagesForTask(task.id).length > 0;
54608
54612
  nodes.push({
54609
54613
  taskId: task.id,
54610
54614
  agentName,
@@ -54615,6 +54619,7 @@ function buildTreeNodes(tree) {
54615
54619
  output: task.output ?? undefined,
54616
54620
  failureReason: task.failureReason ?? undefined,
54617
54621
  attachments: rootAttachments,
54622
+ steered: rootSteered,
54618
54623
  children: childNodes
54619
54624
  });
54620
54625
  }
@@ -55073,13 +55078,13 @@ async function initSlackApp() {
55073
55078
  socketMode: true,
55074
55079
  logLevel: import_bolt.LogLevel.DEBUG
55075
55080
  });
55076
- const { registerMessageHandler } = await import("./handlers-fxvqnp6s.js");
55077
- const { registerCommandHandler } = await import("./commands-hty4156r.js");
55078
- const { registerActionHandlers } = await import("./actions-99h2dh5e.js");
55081
+ const { registerMessageHandler } = await import("./handlers-0s7dn9ma.js");
55082
+ const { registerCommandHandler } = await import("./commands-jfmtpvvy.js");
55083
+ const { registerActionHandlers } = await import("./actions-rd8p2zqb.js");
55079
55084
  registerMessageHandler(app);
55080
55085
  registerCommandHandler(app);
55081
55086
  registerActionHandlers(app);
55082
- const { createAssistant } = await import("./assistant-mabq9kz7.js");
55087
+ const { createAssistant } = await import("./assistant-qjp128zg.js");
55083
55088
  app.assistant(createAssistant());
55084
55089
  return app;
55085
55090
  }
@@ -4,12 +4,12 @@ import {
4
4
  linkIdentity,
5
5
  recordUnmappedIdentity,
6
6
  resolveIdentity
7
- } from "./cli-7bk7s2sx.js";
7
+ } from "./cli-h4kjb2qy.js";
8
8
  import {
9
9
  getKv,
10
10
  init_db,
11
11
  upsertKv
12
- } from "./cli-2846g99z.js";
12
+ } from "./cli-31163xvp.js";
13
13
 
14
14
  // src/slack/enrich.ts
15
15
  init_db();