@desplega.ai/agent-swarm 1.148.0 → 1.149.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 (191) hide show
  1. package/README.md +2 -1
  2. package/dist/{acp-adapter-grez7xhd.js → acp-adapter-vhkzfpjg.js} +12 -5
  3. package/dist/{actions-kweznh5a.js → actions-9d2694yk.js} +10 -9
  4. package/dist/{app-5fvvjv9m.js → app-fq2ggynt.js} +6 -6
  5. package/dist/{assistant-40m4w50s.js → assistant-edb6n9nn.js} +13 -11
  6. package/dist/{boot-reembed-9rxmb26n.js → boot-reembed-msweabbp.js} +8 -8
  7. package/dist/{boot-reembed-cn357y5n.js → boot-reembed-q5wd3tha.js} +7 -7
  8. package/dist/{boot-scrub-logs-5tpp0x3y.js → boot-scrub-logs-3g1az933.js} +5 -5
  9. package/dist/{claude-adapter-9pz5q2pb.js → claude-adapter-v3rnzsdc.js} +9 -9
  10. package/dist/{claude-managed-adapter-sactwn31.js → claude-managed-adapter-qvsmh6mv.js} +2 -2
  11. package/dist/{claude-sdk-session-v8w0s7qm.js → claude-sdk-session-qxrpsna1.js} +9 -9
  12. package/dist/{cli-cdjezzc7.js → cli-01g3x1ca.js} +8 -5
  13. package/dist/{cli-y6b6fb76.js → cli-08b07b4r.js} +1 -1
  14. package/dist/{cli-8fc8de14.js → cli-0z2v4nhw.js} +1 -1
  15. package/dist/{cli-qy6h009w.js → cli-1c94wvcw.js} +7 -6
  16. package/dist/{cli-kpv03zhj.js → cli-3apbzgyk.js} +27 -15
  17. package/dist/{cli-dk3me3qs.js → cli-3sysyjve.js} +8 -8
  18. package/dist/{cli-kzvhgvk3.js → cli-3z634pqe.js} +3 -3
  19. package/dist/{cli-n9grk3yd.js → cli-4260r1tg.js} +37 -26
  20. package/dist/{cli-d8brzxjb.js → cli-4wtq5jjv.js} +2 -2
  21. package/dist/{cli-0amc6myn.js → cli-5m0qmvdp.js} +1 -1
  22. package/dist/{cli-ct0et58h.js → cli-5my3bjsd.js} +1 -1
  23. package/dist/{cli-cn6mmc7f.js → cli-6664w7y4.js} +1 -1
  24. package/dist/{cli-hzhhrt7b.js → cli-6skz3rk8.js} +1 -1
  25. package/dist/{cli-v3e51x7w.js → cli-73gq0zxn.js} +3 -3
  26. package/dist/{cli-9216xm24.js → cli-7evafqvy.js} +20 -20
  27. package/dist/{cli-56y3hch2.js → cli-7fehefdf.js} +133 -22
  28. package/dist/{cli-hp2est46.js → cli-7xx10h0a.js} +3 -3
  29. package/dist/{cli-n2cwscdd.js → cli-9br8ypfv.js} +2 -2
  30. package/dist/{cli-7gn7c2af.js → cli-ayvy5kde.js} +1 -1
  31. package/dist/{cli-dcem3pr1.js → cli-cd60fv6j.js} +2 -2
  32. package/dist/{cli-p73drk6p.js → cli-cv7s5zdq.js} +167 -40
  33. package/dist/{cli-f8j56xv2.js → cli-ddfw1mc4.js} +53 -13
  34. package/dist/{cli-anedxf1w.js → cli-e06a8a7y.js} +1 -1
  35. package/dist/{cli-tebsjpk7.js → cli-hzqmgcm2.js} +2 -2
  36. package/dist/{cli-xqcpg1st.js → cli-j4d4f6hv.js} +1 -1
  37. package/dist/{cli-rvqz34y5.js → cli-jecc01cb.js} +1 -1
  38. package/dist/{cli-5khqvvnq.js → cli-jezx9b9c.js} +2 -2
  39. package/dist/{cli-m1p5cysp.js → cli-k351hv5k.js} +3 -3
  40. package/dist/{cli-6s2y152y.js → cli-qgd4sqz5.js} +286 -11
  41. package/dist/{cli-xqcq9y5e.js → cli-r2ap2czm.js} +1 -0
  42. package/dist/{cli-hz8xhefy.js → cli-sdzq01t9.js} +4 -4
  43. package/dist/{cli-0er5m69z.js → cli-svbrpf5q.js} +4 -4
  44. package/dist/{cli-brxyat7h.js → cli-tg8qj8ee.js} +5 -5
  45. package/dist/{cli-ztn0ga15.js → cli-wby1xnnb.js} +1 -1
  46. package/dist/{cli-0b6y7kxm.js → cli-xm87hzbw.js} +1 -1
  47. package/dist/{cli-3n7cbfjn.js → cli-y3pq4v9g.js} +6 -2
  48. package/dist/{cli-m9sxbkhm.js → cli-zvz62chv.js} +3 -3
  49. package/dist/cli.js +14 -14
  50. package/dist/{codex-adapter-ehhj2qwc.js → codex-adapter-jyw7a91z.js} +4 -4
  51. package/dist/{codex-hook-bw8p5nh4.js → codex-hook-hfrt9shr.js} +2 -2
  52. package/dist/{codex-session-runner-5hne566k.js → codex-session-runner-bmngj0s5.js} +4 -4
  53. package/dist/{commands-xnvh951h.js → commands-n755g391.js} +5 -5
  54. package/dist/{db-ycr5zfr4.js → db-s1cgh5gv.js} +5 -5
  55. package/dist/{e2b-6hb103d8.js → e2b-p04vmtx0.js} +1 -1
  56. package/dist/{handlers-1vt77kgq.js → handlers-nsg0bcye.js} +14 -11
  57. package/dist/{hook-91ntpmff.js → hook-h9cqrm8q.js} +7 -7
  58. package/dist/{hook-qfwjydvn.js → hook-jf0xe8zh.js} +8 -8
  59. package/dist/{http-h6g7bv5b.js → http-nc6pydw5.js} +96 -45
  60. package/dist/{index-d2mytx95.js → index-0wdy6gwc.js} +13 -13
  61. package/dist/{index-antf9t4p.js → index-769nc012.js} +14 -14
  62. package/dist/{index-47ghesbn.js → index-ezxkds2n.js} +575 -152
  63. package/dist/{index-0ez2aack.js → index-x1zcj09z.js} +15 -15
  64. package/dist/{keepalive-c4sp7yvd.js → keepalive-nesm3xb6.js} +7 -7
  65. package/dist/{lead-4r7z9e8v.js → lead-bwy6t2za.js} +32 -32
  66. package/dist/{maintenance-yqjfdjas.js → maintenance-8w393zf0.js} +8 -8
  67. package/dist/{oauth-refresh-sweep-wtqgnh3c.js → oauth-refresh-sweep-sh8xjy08.js} +6 -6
  68. package/dist/{onboard-a4krmh46.js → onboard-25ps29h1.js} +4 -3
  69. package/dist/{opencode-adapter-fef1mrn2.js → opencode-adapter-dce4wskd.js} +2 -2
  70. package/dist/{otel-impl-725kq0vp.js → otel-impl-b93gxnz5.js} +2 -2
  71. package/dist/{pi-mono-adapter-2has4gnp.js → pi-mono-adapter-zvshk5cj.js} +2 -2
  72. package/dist/{pricing-refresh-kqxd7w9h.js → pricing-refresh-5v56x7gb.js} +7 -7
  73. package/dist/{rbac-roles-t3wygpth.js → rbac-roles-0p0s6pbj.js} +6 -6
  74. package/dist/{rbac-roles-gws5xej6.js → rbac-roles-x55cnezn.js} +5 -5
  75. package/dist/{render-v2-x1wxvn51.js → render-v2-hyd45w8b.js} +6 -6
  76. package/dist/{seed-pricing-t6y8d0vf.js → seed-pricing-49gbgn96.js} +6 -6
  77. package/dist/{setup-x50py6xg.js → setup-qvq64vzq.js} +2 -2
  78. package/dist/{worker-zsz0qfxk.js → worker-scj60cxg.js} +32 -32
  79. package/dist/{x-n2phr5vm.js → x-n3e0v3xa.js} +2 -2
  80. package/openapi.json +46 -4
  81. package/package.json +1 -1
  82. package/src/agentmail/handlers.ts +5 -0
  83. package/src/automation-preflight-alert.ts +41 -0
  84. package/src/be/automation-preflight.ts +3 -3
  85. package/src/be/budget-refusal-notify.ts +1 -0
  86. package/src/be/db/tasks/read.ts +5 -0
  87. package/src/be/db.ts +132 -2
  88. package/src/be/migrations/150_deferred_task_waits.sql +18 -0
  89. package/src/be/migrations/151_repair_scheduled_task_required_params.sql +39 -0
  90. package/src/be/migrations/152_routing_decisions.sql +44 -0
  91. package/src/be/scripts/typecheck.ts +33 -22
  92. package/src/be/seed/automation-toggle.ts +69 -0
  93. package/src/be/seed/schedules-seeder.ts +28 -6
  94. package/src/be/seed/workflows-seeder.ts +18 -6
  95. package/src/be/seed-scripts/catalog/delegate.ts +5 -1
  96. package/src/be/seed-skills/bundled-files.generated.json +10 -0
  97. package/src/be/seed-skills/index.ts +3 -0
  98. package/src/be/steering.ts +1 -0
  99. package/src/be/swarm-config-guard.ts +12 -0
  100. package/src/commands/onboard/steps/post-task.tsx +1 -0
  101. package/src/github/handlers.ts +9 -0
  102. package/src/gitlab/handlers.ts +4 -0
  103. package/src/heartbeat/heartbeat.ts +8 -0
  104. package/src/http/approval-requests.ts +1 -0
  105. package/src/http/apps.ts +1 -0
  106. package/src/http/config.ts +15 -6
  107. package/src/http/mcp.ts +31 -4
  108. package/src/http/script-runs.ts +6 -0
  109. package/src/http/tasks.ts +52 -30
  110. package/src/integrations/kapso/inbound.ts +1 -0
  111. package/src/jira/sync.ts +2 -0
  112. package/src/linear/sync.ts +2 -0
  113. package/src/prompts/session-templates.ts +29 -15
  114. package/src/scheduler/deferred-task-waits.ts +123 -0
  115. package/src/scheduler/schedule-task.ts +42 -0
  116. package/src/scheduler/scheduler.ts +22 -31
  117. package/src/script-workflows/workflow-ctx.ts +2 -0
  118. package/src/scripts-runtime/types/stdlib.d.ts +38 -24
  119. package/src/scripts-runtime/types/swarm-sdk.d.ts +38 -24
  120. package/src/server.ts +10 -1
  121. package/src/slack/actions.ts +1 -0
  122. package/src/slack/assistant.ts +2 -0
  123. package/src/slack/handlers.ts +3 -0
  124. package/src/slack/thread-buffer.ts +2 -0
  125. package/src/tasks/worker-follow-up.ts +9 -0
  126. package/src/tests/acp-adapter.test.ts +35 -6
  127. package/src/tests/acp-session-token.test.ts +67 -0
  128. package/src/tests/asset-key-api.test.ts +15 -2
  129. package/src/tests/asset-key-mcp.test.ts +2 -0
  130. package/src/tests/automation-preflight-alert.test.ts +91 -0
  131. package/src/tests/claude-worker-parity.test.ts +3 -0
  132. package/src/tests/config-session-auth.test.ts +143 -0
  133. package/src/tests/defer-task.test.ts +117 -6
  134. package/src/tests/deferred-task-wake.test.ts +456 -0
  135. package/src/tests/heartbeat-reroute-decision.test.ts +1 -0
  136. package/src/tests/http-api-integration.test.ts +33 -4
  137. package/src/tests/model-control.test.ts +18 -5
  138. package/src/tests/opencode-adapter.test.ts +2 -2
  139. package/src/tests/promote-draft-task-route.test.ts +4 -0
  140. package/src/tests/prompt-template-session.test.ts +13 -4
  141. package/src/tests/rbac-wire-e2e.test.ts +2 -2
  142. package/src/tests/routing-decision-persistence.test.ts +520 -0
  143. package/src/tests/routing-reason-contract.test.ts +89 -0
  144. package/src/tests/routing-reason-inventory.test.ts +55 -0
  145. package/src/tests/schedule-target-type.test.ts +48 -1
  146. package/src/tests/scheduled-task-required-params-migration.test.ts +182 -0
  147. package/src/tests/scheduled-tasks.test.ts +9 -5
  148. package/src/tests/script-connections.test.ts +4 -0
  149. package/src/tests/script-runs-http.test.ts +31 -0
  150. package/src/tests/scripts-typecheck.test.ts +11 -0
  151. package/src/tests/secret-scrubber.test.ts +12 -0
  152. package/src/tests/seed-registry.test.ts +2 -2
  153. package/src/tests/seed-schedules.test.ts +99 -3
  154. package/src/tests/seed-workflows.test.ts +74 -0
  155. package/src/tests/send-task-output-schema.test.ts +66 -1
  156. package/src/tests/send-task-requested-by.test.ts +1 -0
  157. package/src/tests/send-task-slack-routing-guard.test.ts +2 -0
  158. package/src/tests/store-progress-blocked-waiting-gate.test.ts +151 -0
  159. package/src/tests/swarm-tool-result-gate.test.ts +24 -0
  160. package/src/tests/task-tool-manifest.test.ts +47 -0
  161. package/src/tests/task-tool-preload-mcp.test.ts +125 -0
  162. package/src/tests/task-tools-ctx.test.ts +2 -0
  163. package/src/tests/tool-output-agent-id.test.ts +1 -0
  164. package/src/tests/ui-followup-lead-delegation.test.ts +6 -1
  165. package/src/tests/workflow-agent-task.test.ts +24 -1
  166. package/src/tests/workflow-engine-v2.test.ts +58 -2
  167. package/src/tools/defer-task.ts +73 -21
  168. package/src/tools/send-task.ts +31 -0
  169. package/src/tools/skills/skill-publish.ts +1 -0
  170. package/src/tools/store-progress.ts +43 -0
  171. package/src/tools/templates.ts +2 -1
  172. package/src/tools/utils.ts +33 -2
  173. package/src/types.ts +14 -1
  174. package/src/utils/acp-session-token.ts +14 -4
  175. package/src/utils/secret-scrubber.ts +2 -0
  176. package/src/utils/task-tool-manifest.ts +33 -0
  177. package/src/workflows/engine.ts +4 -1
  178. package/src/workflows/executors/agent-task.ts +7 -1
  179. package/templates/ai-toolbox.manifest.json +6 -1
  180. package/templates/schedules/daily-blocker-digest/config.json +6 -1
  181. package/templates/schedules/daily-compounding-reflection/config.json +1 -0
  182. package/templates/schedules/daily-status-report/config.json +6 -1
  183. package/templates/schedules/daily-swarm-update-check/config.json +19 -0
  184. package/templates/schedules/daily-swarm-update-check/content.md +49 -0
  185. package/templates/schedules/daily-workflow-health-audit/config.json +6 -1
  186. package/templates/skills/comms/config.json +18 -0
  187. package/templates/skills/comms/content.md +74 -0
  188. package/templates/skills/comms/files/references/ste-rules.md +73 -0
  189. package/templates/skills/comms/files/references/visual-shapes.md +112 -0
  190. package/templates/skills/swarm-scripts/SKILL.md +3 -2
  191. package/templates/skills/swarm-scripts/content.md +3 -2
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_package,
3
3
  package_default
4
- } from "./cli-anedxf1w.js";
4
+ } from "./cli-e06a8a7y.js";
5
5
 
6
6
  // src/commands/shared/client-config.ts
7
7
  init_package();
@@ -2,7 +2,7 @@ import {
2
2
  init_resolver,
3
3
  init_session_templates,
4
4
  resolveTemplateAsync
5
- } from "./cli-kpv03zhj.js";
5
+ } from "./cli-3apbzgyk.js";
6
6
 
7
7
  // src/prompts/steering-delivery.ts
8
8
  init_session_templates();
@@ -26,11 +26,11 @@ import {
26
26
  updateAgentMaxTasks,
27
27
  updateAgentStatus,
28
28
  upsertSwarmConfig
29
- } from "./cli-6s2y152y.js";
29
+ } from "./cli-qgd4sqz5.js";
30
30
  import {
31
31
  init_resolver,
32
32
  resolveTemplate
33
- } from "./cli-kpv03zhj.js";
33
+ } from "./cli-3apbzgyk.js";
34
34
  import {
35
35
  init_env_flag,
36
36
  isEnvFlagEnabled
@@ -478,6 +478,7 @@ ${depLines.join(`
478
478
  }
479
479
  return await createTaskExtended(followUpDescription, {
480
480
  agentId: leadAgent.id,
481
+ routingReason: "skill",
481
482
  source: "system",
482
483
  taskType: "follow-up",
483
484
  parentTaskId: task.id,
@@ -555,6 +556,7 @@ async function createResumeFollowUp(args) {
555
556
  } : sourceAffinity;
556
557
  const created = await createTaskExtended(followUpDescription, {
557
558
  agentId: preferredAgentId,
559
+ routingReason: preferredAgentId === undefined ? undefined : preferredAgentId === parent.agentId ? "continuity" : "reroute_fault",
558
560
  creatorAgentId: parent.creatorAgentId,
559
561
  source: "system",
560
562
  taskType: "resume",
@@ -608,6 +610,7 @@ async function createRerouteDecisionTask(args) {
608
610
  });
609
611
  const created = await createTaskExtended(decision.text, {
610
612
  agentId: leadAgent.id,
613
+ routingReason: "reroute_fault",
611
614
  creatorAgentId: original.creatorAgentId,
612
615
  source: "system",
613
616
  taskType: "reroute-decision",
@@ -644,6 +647,7 @@ async function createPoolStarvationDecisionTask(args) {
644
647
  });
645
648
  const created = await createTaskExtended(decision.text, {
646
649
  agentId: leadAgent.id,
650
+ routingReason: "overflow",
647
651
  creatorAgentId: original.creatorAgentId,
648
652
  source: "system",
649
653
  taskType: "reroute-decision",
@@ -6,13 +6,13 @@ import {
6
6
  IDENTITY_FIELD_BUDGETS,
7
7
  init_identity_field_budget,
8
8
  init_templates
9
- } from "./cli-y6b6fb76.js";
9
+ } from "./cli-08b07b4r.js";
10
10
  import {
11
11
  init_resolver,
12
12
  init_steering_enabled,
13
13
  isSteeringEnabled,
14
14
  resolveTemplateAsync
15
- } from "./cli-kpv03zhj.js";
15
+ } from "./cli-3apbzgyk.js";
16
16
  import {
17
17
  MAX_PROFILE_FILE_LENGTH,
18
18
  init_constants
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  init_secret_scrubber,
22
22
  scrubSecrets
23
- } from "./cli-xqcq9y5e.js";
23
+ } from "./cli-r2ap2czm.js";
24
24
  import {
25
25
  __esm
26
26
  } from "./cli-bc05qbss.js";
package/dist/cli.js CHANGED
@@ -65,7 +65,7 @@ var import_react = __toESM(require_react(), 1);
65
65
  // package.json
66
66
  var package_default = {
67
67
  name: "@desplega.ai/agent-swarm",
68
- version: "1.148.0",
68
+ version: "1.149.1",
69
69
  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.",
70
70
  keywords: [
71
71
  "agent-swarm.dev",
@@ -741,7 +741,7 @@ function McpServer({ port, apiKey, dbPath }) {
741
741
  if (dbPath) {
742
742
  process.env.DATABASE_PATH = dbPath;
743
743
  }
744
- import("./http-h6g7bv5b.js").then(() => {
744
+ import("./http-nc6pydw5.js").then(() => {
745
745
  setStatus("running");
746
746
  }).catch((err) => {
747
747
  setStatus("error");
@@ -827,7 +827,7 @@ function WorkerRunner({
827
827
  }) {
828
828
  const { exit } = use_app_default();
829
829
  import_react.useEffect(() => {
830
- import("./worker-zsz0qfxk.js").then(({ runWorker }) => runWorker({
830
+ import("./worker-scj60cxg.js").then(({ runWorker }) => runWorker({
831
831
  prompt: prompt || undefined,
832
832
  yolo,
833
833
  systemPrompt: systemPrompt || undefined,
@@ -844,7 +844,7 @@ function WorkerRunner({
844
844
  function LeadRunner({ prompt, yolo, systemPrompt, systemPromptFile, additionalArgs }) {
845
845
  const { exit } = use_app_default();
846
846
  import_react.useEffect(() => {
847
- import("./lead-4r7z9e8v.js").then(({ runLead }) => runLead({
847
+ import("./lead-bwy6t2za.js").then(({ runLead }) => runLead({
848
848
  prompt: prompt || undefined,
849
849
  yolo,
850
850
  systemPrompt: systemPrompt || undefined,
@@ -884,8 +884,8 @@ function LazyComponent({
884
884
  }
885
885
  return import_react.createElement(Component, props);
886
886
  }
887
- var loadOnboard = () => import("./onboard-a4krmh46.js").then(({ Onboard }) => Onboard);
888
- var loadConnect = () => import("./setup-x50py6xg.js").then(({ Setup }) => Setup);
887
+ var loadOnboard = () => import("./onboard-25ps29h1.js").then(({ Onboard }) => Onboard);
888
+ var loadConnect = () => import("./setup-qvq64vzq.js").then(({ Setup }) => Setup);
889
889
  function UnknownCommand({ command }) {
890
890
  const { exit } = use_app_default();
891
891
  import_react.useEffect(() => {
@@ -1006,14 +1006,14 @@ ${binName} docs \u2014 v${package_default.version}
1006
1006
  }
1007
1007
  process.exit(0);
1008
1008
  } else if (args.command === "hook") {
1009
- const { runHook } = await import("./hook-qfwjydvn.js");
1009
+ const { runHook } = await import("./hook-jf0xe8zh.js");
1010
1010
  await runHook();
1011
1011
  } else if (args.command === "codex-hook") {
1012
- const { handleCodexHook } = await import("./codex-hook-bw8p5nh4.js");
1012
+ const { handleCodexHook } = await import("./codex-hook-hfrt9shr.js");
1013
1013
  await handleCodexHook();
1014
1014
  process.exit(0);
1015
1015
  } else if (args.command === "session-summary-stdin") {
1016
- const { runSessionSummaryFromStdin } = await import("./hook-91ntpmff.js");
1016
+ const { runSessionSummaryFromStdin } = await import("./hook-h9cqrm8q.js");
1017
1017
  await runSessionSummaryFromStdin();
1018
1018
  process.exit(process.exitCode ?? 0);
1019
1019
  } else if (args.command === "artifact") {
@@ -1026,7 +1026,7 @@ ${binName} docs \u2014 v${package_default.version}
1026
1026
  });
1027
1027
  } else if (args.command === "x") {
1028
1028
  const xArgs = process.argv.slice(process.argv.indexOf("x") + 1);
1029
- const { runXCommand } = await import("./x-n2phr5vm.js");
1029
+ const { runXCommand } = await import("./x-n3e0v3xa.js");
1030
1030
  await runXCommand(xArgs);
1031
1031
  } else if (args.command === "scripts") {
1032
1032
  const scriptsArgs = process.argv.slice(process.argv.indexOf("scripts") + 1);
@@ -1034,7 +1034,7 @@ ${binName} docs \u2014 v${package_default.version}
1034
1034
  printHelp("scripts");
1035
1035
  process.exit(scriptsArgs[0] === "reembed" || args.showHelp ? 0 : 1);
1036
1036
  }
1037
- const { runScriptsMaintenanceCommand } = await import("./maintenance-yqjfdjas.js");
1037
+ const { runScriptsMaintenanceCommand } = await import("./maintenance-8w393zf0.js");
1038
1038
  await runScriptsMaintenanceCommand(scriptsArgs);
1039
1039
  console.log("Scripts re-embedded.");
1040
1040
  } else if (args.command === "rbac") {
@@ -1044,21 +1044,21 @@ ${binName} docs \u2014 v${package_default.version}
1044
1044
  printHelp("rbac");
1045
1045
  process.exit(args.showHelp ? 0 : 1);
1046
1046
  }
1047
- const { runRbacCliCommand } = await import("./rbac-roles-gws5xej6.js");
1047
+ const { runRbacCliCommand } = await import("./rbac-roles-x55cnezn.js");
1048
1048
  await runRbacCliCommand(rbacArgs);
1049
1049
  } else if (args.command === "codex-login") {
1050
1050
  const { runCodexLogin } = await import("./codex-login-vx7ghkzj.js");
1051
1051
  const codexLoginArgs = process.argv.slice(process.argv.indexOf("codex-login") + 1);
1052
1052
  await runCodexLogin(codexLoginArgs);
1053
1053
  } else if (args.command === "codex-session-runner") {
1054
- const { runCodexSessionRunner } = await import("./codex-session-runner-5hne566k.js");
1054
+ const { runCodexSessionRunner } = await import("./codex-session-runner-bmngj0s5.js");
1055
1055
  await runCodexSessionRunner();
1056
1056
  } else if (args.command === "claude-managed-setup") {
1057
1057
  const { runClaudeManagedSetup } = await import("./claude-managed-setup-f5pmsyrp.js");
1058
1058
  const setupArgs = process.argv.slice(process.argv.indexOf("claude-managed-setup") + 1);
1059
1059
  await runClaudeManagedSetup(setupArgs);
1060
1060
  } else if (args.command === "e2b") {
1061
- const { runE2BCommand } = await import("./e2b-6hb103d8.js");
1061
+ const { runE2BCommand } = await import("./e2b-p04vmtx0.js");
1062
1062
  const e2bArgs = process.argv.slice(process.argv.indexOf("e2b") + 1);
1063
1063
  await runE2BCommand(e2bArgs);
1064
1064
  } else {
@@ -6,12 +6,12 @@ import {
6
6
  createInProcessCodexSession,
7
7
  resolveCodexAuthMode,
8
8
  resolveCodexRunnerArgv
9
- } from "./cli-v3e51x7w.js";
9
+ } from "./cli-73gq0zxn.js";
10
10
  import"./cli-hsxj0yar.js";
11
11
  import"./cli-r94z9p1z.js";
12
12
  import"./cli-2djtr51b.js";
13
13
  import"./cli-b5b30yzk.js";
14
- import"./cli-rvqz34y5.js";
14
+ import"./cli-jecc01cb.js";
15
15
  import"./cli-hp1n6zq3.js";
16
16
  import"./cli-zm7njwzd.js";
17
17
  import"./cli-s25avqg9.js";
@@ -27,8 +27,8 @@ import"./cli-bsakbbkm.js";
27
27
  import"./cli-ej6gbxfb.js";
28
28
  import"./cli-sd0mxa3c.js";
29
29
  import"./cli-w5e1d1vv.js";
30
- import"./cli-anedxf1w.js";
31
- import"./cli-xqcq9y5e.js";
30
+ import"./cli-e06a8a7y.js";
31
+ import"./cli-r2ap2czm.js";
32
32
  import"./cli-knd276ed.js";
33
33
  import"./cli-c4eeb5q2.js";
34
34
  import"./cli-btbzvq95.js";
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env bun
2
2
  import {
3
3
  renderSteeringDelivery
4
- } from "./cli-0b6y7kxm.js";
4
+ } from "./cli-xm87hzbw.js";
5
5
  import {
6
6
  getApiKey
7
7
  } from "./cli-f14fvzag.js";
8
8
  import {
9
9
  init_steering_enabled,
10
10
  isSteeringEnabled
11
- } from "./cli-kpv03zhj.js";
11
+ } from "./cli-3apbzgyk.js";
12
12
  import {
13
13
  getMcpBaseUrl,
14
14
  init_constants
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  createInProcessCodexSession
3
- } from "./cli-v3e51x7w.js";
3
+ } from "./cli-73gq0zxn.js";
4
4
  import"./cli-hsxj0yar.js";
5
5
  import"./cli-r94z9p1z.js";
6
6
  import"./cli-2djtr51b.js";
7
7
  import"./cli-b5b30yzk.js";
8
- import"./cli-rvqz34y5.js";
8
+ import"./cli-jecc01cb.js";
9
9
  import"./cli-hp1n6zq3.js";
10
10
  import"./cli-zm7njwzd.js";
11
11
  import"./cli-s25avqg9.js";
@@ -21,11 +21,11 @@ import"./cli-bsakbbkm.js";
21
21
  import"./cli-ej6gbxfb.js";
22
22
  import"./cli-sd0mxa3c.js";
23
23
  import"./cli-w5e1d1vv.js";
24
- import"./cli-anedxf1w.js";
24
+ import"./cli-e06a8a7y.js";
25
25
  import {
26
26
  init_secret_scrubber,
27
27
  scrubSecrets
28
- } from "./cli-xqcq9y5e.js";
28
+ } from "./cli-r2ap2czm.js";
29
29
  import"./cli-knd276ed.js";
30
30
  import"./cli-c4eeb5q2.js";
31
31
  import"./cli-btbzvq95.js";
@@ -2,9 +2,9 @@ import {
2
2
  getAllAgents,
3
3
  getAllTasks,
4
4
  init_db
5
- } from "./cli-6s2y152y.js";
6
- import"./cli-y6b6fb76.js";
7
- import"./cli-kpv03zhj.js";
5
+ } from "./cli-qgd4sqz5.js";
6
+ import"./cli-08b07b4r.js";
7
+ import"./cli-3apbzgyk.js";
8
8
  import"./cli-e29gmdmw.js";
9
9
  import"./cli-c2mk1kgf.js";
10
10
  import {
@@ -13,8 +13,8 @@ import {
13
13
  } from "./cli-ej6gbxfb.js";
14
14
  import"./cli-sd0mxa3c.js";
15
15
  import"./cli-w5e1d1vv.js";
16
- import"./cli-anedxf1w.js";
17
- import"./cli-xqcq9y5e.js";
16
+ import"./cli-e06a8a7y.js";
17
+ import"./cli-r2ap2czm.js";
18
18
  import"./cli-zf8jjwex.js";
19
19
  import"./cli-bc05qbss.js";
20
20
 
@@ -455,21 +455,21 @@ import {
455
455
  upsertSkillFiles,
456
456
  upsertSwarmConfig,
457
457
  withFavoriteFlags
458
- } from "./cli-6s2y152y.js";
458
+ } from "./cli-qgd4sqz5.js";
459
459
  import {
460
460
  generateDefaultClaudeMd,
461
461
  generateDefaultIdentityMd,
462
462
  generateDefaultSoulMd,
463
463
  generateDefaultToolsMd
464
- } from "./cli-y6b6fb76.js";
465
- import"./cli-kpv03zhj.js";
464
+ } from "./cli-08b07b4r.js";
465
+ import"./cli-3apbzgyk.js";
466
466
  import"./cli-e29gmdmw.js";
467
467
  import"./cli-c2mk1kgf.js";
468
468
  import"./cli-ej6gbxfb.js";
469
469
  import"./cli-sd0mxa3c.js";
470
470
  import"./cli-w5e1d1vv.js";
471
- import"./cli-anedxf1w.js";
472
- import"./cli-xqcq9y5e.js";
471
+ import"./cli-e06a8a7y.js";
472
+ import"./cli-r2ap2czm.js";
473
473
  import"./cli-zf8jjwex.js";
474
474
  import"./cli-bc05qbss.js";
475
475
  init_db();
@@ -12,7 +12,7 @@ import {
12
12
  init_secret_scrubber,
13
13
  isSensitiveKey,
14
14
  scrubSecrets
15
- } from "./cli-xqcq9y5e.js";
15
+ } from "./cli-r2ap2czm.js";
16
16
  import {
17
17
  Box_default,
18
18
  Select,
@@ -5,7 +5,7 @@ import {
5
5
  instantFlush,
6
6
  requestSlackThreadSteering,
7
7
  wasEventSeen
8
- } from "./cli-qy6h009w.js";
8
+ } from "./cli-1c94wvcw.js";
9
9
  import {
10
10
  bufferedFileFailures,
11
11
  buildEffectiveText,
@@ -16,22 +16,22 @@ import {
16
16
  hasOtherUserMention,
17
17
  notifySlackFileFailures,
18
18
  routeMessage
19
- } from "./cli-hz8xhefy.js";
19
+ } from "./cli-sdzq01t9.js";
20
20
  import"./cli-jsp14b6c.js";
21
21
  import {
22
22
  enrichSlackUserEmail,
23
23
  resolveSlackUserId,
24
24
  rewriteSlackMentions
25
- } from "./cli-n2cwscdd.js";
26
- import"./cli-xqcpg1st.js";
27
- import"./cli-7gn7c2af.js";
25
+ } from "./cli-9br8ypfv.js";
26
+ import"./cli-j4d4f6hv.js";
27
+ import"./cli-ayvy5kde.js";
28
28
  import {
29
29
  ackSlackMessage,
30
30
  buildTreeBlocks,
31
31
  ensureSlackThreadTree,
32
32
  isSlackRenderV2Enabled,
33
33
  registerTreeMessage
34
- } from "./cli-dk3me3qs.js";
34
+ } from "./cli-3sysyjve.js";
35
35
  import"./cli-q51yprfq.js";
36
36
  import"./cli-9d8ntetj.js";
37
37
  import"./cli-yatxqynm.js";
@@ -45,12 +45,12 @@ import {
45
45
  init_db,
46
46
  reactionName,
47
47
  slackContextKey
48
- } from "./cli-6s2y152y.js";
49
- import"./cli-y6b6fb76.js";
48
+ } from "./cli-qgd4sqz5.js";
49
+ import"./cli-08b07b4r.js";
50
50
  import {
51
51
  init_resolver,
52
52
  resolveTemplate
53
- } from "./cli-kpv03zhj.js";
53
+ } from "./cli-3apbzgyk.js";
54
54
  import"./cli-e29gmdmw.js";
55
55
  import"./cli-c2mk1kgf.js";
56
56
  import {
@@ -59,8 +59,8 @@ import {
59
59
  } from "./cli-ej6gbxfb.js";
60
60
  import"./cli-sd0mxa3c.js";
61
61
  import"./cli-w5e1d1vv.js";
62
- import"./cli-anedxf1w.js";
63
- import"./cli-xqcq9y5e.js";
62
+ import"./cli-e06a8a7y.js";
63
+ import"./cli-r2ap2czm.js";
64
64
  import"./cli-pzxba7gw.js";
65
65
  import {
66
66
  init_event_bus,
@@ -387,6 +387,7 @@ ${taskDescription2}`;
387
387
  const lead = await getLeadAgent();
388
388
  const { task, unattached: unattached2 } = await createSlackTaskWithFiles(fullTaskDescription2, {
389
389
  agentId: lead?.id,
390
+ routingReason: lead ? "skill" : undefined,
390
391
  source: "slack",
391
392
  slackChannelId: msg.channel,
392
393
  slackThreadTs: threadTs2,
@@ -474,6 +475,7 @@ ${taskDescription}`;
474
475
  }
475
476
  const created2 = await createSlackTaskWithFiles(fullTaskDescription, {
476
477
  agentId: agent.id,
478
+ routingReason: "human_pinned",
477
479
  source: "slack",
478
480
  slackChannelId: msg.channel,
479
481
  slackThreadTs: threadTs,
@@ -491,6 +493,7 @@ ${taskDescription}`;
491
493
  }
492
494
  const created = await createSlackTaskWithFiles(fullTaskDescription, {
493
495
  agentId: agent.id,
496
+ routingReason: "human_pinned",
494
497
  source: "slack",
495
498
  slackChannelId: msg.channel,
496
499
  slackThreadTs: threadTs,
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  materializeClaudeMd,
4
4
  stopClaudeMd
5
- } from "./cli-d8brzxjb.js";
5
+ } from "./cli-4wtq5jjv.js";
6
6
  import {
7
7
  summarizeSession
8
- } from "./cli-rvqz34y5.js";
8
+ } from "./cli-jecc01cb.js";
9
9
  import {
10
10
  checkToolLoop,
11
11
  clearToolHistory
@@ -30,11 +30,11 @@ import {
30
30
  init_profile_sync,
31
31
  readIdentityBaselines,
32
32
  warnProfileFileTooLarge
33
- } from "./cli-m9sxbkhm.js";
33
+ } from "./cli-zvz62chv.js";
34
34
  import"./cli-bsakbbkm.js";
35
35
  import"./cli-9d8ntetj.js";
36
- import"./cli-y6b6fb76.js";
37
- import"./cli-kpv03zhj.js";
36
+ import"./cli-08b07b4r.js";
37
+ import"./cli-3apbzgyk.js";
38
38
  import {
39
39
  MAX_PROFILE_FILE_LENGTH,
40
40
  getMcpBaseUrl,
@@ -46,11 +46,11 @@ import"./cli-w5e1d1vv.js";
46
46
  import {
47
47
  init_package,
48
48
  package_default
49
- } from "./cli-anedxf1w.js";
49
+ } from "./cli-e06a8a7y.js";
50
50
  import {
51
51
  init_secret_scrubber,
52
52
  scrubSecrets
53
- } from "./cli-xqcq9y5e.js";
53
+ } from "./cli-r2ap2czm.js";
54
54
  import"./cli-c4eeb5q2.js";
55
55
  import"./cli-btbzvq95.js";
56
56
  import"./cli-1m2e086m.js";
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  handleHook
3
- } from "./cli-brxyat7h.js";
4
- import"./cli-d8brzxjb.js";
5
- import"./cli-rvqz34y5.js";
3
+ } from "./cli-tg8qj8ee.js";
4
+ import"./cli-4wtq5jjv.js";
5
+ import"./cli-jecc01cb.js";
6
6
  import"./cli-hp1n6zq3.js";
7
7
  import"./cli-xvkmedgn.js";
8
8
  import"./cli-1ebpar1q.js";
9
9
  import"./cli-e7d20cty.js";
10
10
  import"./cli-3dpj7atn.js";
11
11
  import"./cli-f14fvzag.js";
12
- import"./cli-m9sxbkhm.js";
12
+ import"./cli-zvz62chv.js";
13
13
  import"./cli-bsakbbkm.js";
14
14
  import"./cli-9d8ntetj.js";
15
- import"./cli-y6b6fb76.js";
16
- import"./cli-kpv03zhj.js";
15
+ import"./cli-08b07b4r.js";
16
+ import"./cli-3apbzgyk.js";
17
17
  import"./cli-e29gmdmw.js";
18
18
  import"./cli-ej6gbxfb.js";
19
19
  import"./cli-sd0mxa3c.js";
20
20
  import"./cli-w5e1d1vv.js";
21
- import"./cli-anedxf1w.js";
22
- import"./cli-xqcq9y5e.js";
21
+ import"./cli-e06a8a7y.js";
22
+ import"./cli-r2ap2czm.js";
23
23
  import"./cli-c4eeb5q2.js";
24
24
  import"./cli-btbzvq95.js";
25
25
  import"./cli-1m2e086m.js";