@desplega.ai/agent-swarm 1.147.0 → 1.149.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 +13 -1
  2. package/dist/{acp-adapter-9n319wqc.js → acp-adapter-4jncb126.js} +12 -5
  3. package/dist/{actions-2vxqvpr9.js → actions-31vp3ae7.js} +10 -9
  4. package/dist/{app-w066xfy0.js → app-1hh67x8w.js} +6 -6
  5. package/dist/{assistant-kt31dj2h.js → assistant-z66dmz6p.js} +13 -11
  6. package/dist/{boot-reembed-az5rassp.js → boot-reembed-fqzxxzjh.js} +7 -7
  7. package/dist/{boot-reembed-j3mm3rfz.js → boot-reembed-wxa8ya0s.js} +8 -8
  8. package/dist/{boot-scrub-logs-b6h54817.js → boot-scrub-logs-jnyndh79.js} +5 -5
  9. package/dist/{claude-adapter-w1z04ann.js → claude-adapter-3qpa9w0j.js} +9 -9
  10. package/dist/{claude-managed-adapter-sactwn31.js → claude-managed-adapter-qvsmh6mv.js} +2 -2
  11. package/dist/{claude-sdk-session-f0cc1kec.js → claude-sdk-session-2yxgjs5d.js} +9 -9
  12. package/dist/{cli-y6b6fb76.js → cli-08b07b4r.js} +1 -1
  13. package/dist/{cli-8fc8de14.js → cli-0z2v4nhw.js} +1 -1
  14. package/dist/{cli-de14znh8.js → cli-19f354qr.js} +2 -2
  15. package/dist/{cli-hbv0kq6w.js → cli-2qts1hys.js} +3 -3
  16. package/dist/{cli-kpv03zhj.js → cli-3apbzgyk.js} +27 -15
  17. package/dist/{cli-1th1728g.js → cli-3q5ejx9p.js} +2 -2
  18. package/dist/{cli-d8brzxjb.js → cli-4wtq5jjv.js} +2 -2
  19. package/dist/{cli-ct0et58h.js → cli-5my3bjsd.js} +1 -1
  20. package/dist/{cli-cn6mmc7f.js → cli-6664w7y4.js} +1 -1
  21. package/dist/{cli-yz3djrm0.js → cli-6pqcb4q0.js} +53 -13
  22. package/dist/{cli-719k9j2c.js → cli-7smrsr25.js} +3 -3
  23. package/dist/{cli-rw51bq3j.js → cli-9fy6nk6g.js} +1 -1
  24. package/dist/{cli-zhjmqxzh.js → cli-9hspd3dp.js} +2 -2
  25. package/dist/{cli-3tgwnf43.js → cli-aae6hz6a.js} +4 -4
  26. package/dist/{cli-89xfd7f9.js → cli-cr12paw2.js} +5 -5
  27. package/dist/{cli-b5bq9crk.js → cli-d8ftsp62.js} +8 -8
  28. package/dist/{cli-4nr988h6.js → cli-e95cx1eb.js} +3 -3
  29. package/dist/{cli-n8508nre.js → cli-gjhjfeeg.js} +1 -1
  30. package/dist/{cli-p1d5b073.js → cli-gv88e1vf.js} +1 -1
  31. package/dist/{cli-rvqz34y5.js → cli-jecc01cb.js} +1 -1
  32. package/dist/{cli-8v0g1yc8.js → cli-k0cr4kat.js} +1 -1
  33. package/dist/{cli-mmemxxdc.js → cli-kgz4np97.js} +4 -4
  34. package/dist/{cli-w9kb3bk1.js → cli-kjwt6hdf.js} +3 -1
  35. package/dist/{cli-f7dsy61y.js → cli-mnmsfd1w.js} +6 -2
  36. package/dist/{cli-54wwve05.js → cli-n3dz2942.js} +37 -26
  37. package/dist/{cli-12fz972k.js → cli-nye12xk5.js} +8 -5
  38. package/dist/{cli-tzvk9haz.js → cli-phsxnkp6.js} +20 -20
  39. package/dist/{cli-53s590z8.js → cli-q50ef8g0.js} +1 -1
  40. package/dist/{cli-f146mn5s.js → cli-qaacms9y.js} +7 -6
  41. package/dist/{cli-xqcq9y5e.js → cli-r2ap2czm.js} +1 -0
  42. package/dist/{cli-m8yrsg97.js → cli-sd5pv3b1.js} +3 -3
  43. package/dist/{cli-0b6y7kxm.js → cli-xm87hzbw.js} +1 -1
  44. package/dist/{cli-ftht3zzj.js → cli-yab68w40.js} +285 -11
  45. package/dist/{cli-atcve9y8.js → cli-yb9qhqam.js} +227 -59
  46. package/dist/{cli-smby5m17.js → cli-ygweqcn4.js} +133 -22
  47. package/dist/{cli-dttph1bw.js → cli-ykxrnd1q.js} +2 -2
  48. package/dist/{cli-m9sxbkhm.js → cli-zvz62chv.js} +3 -3
  49. package/dist/cli.js +16 -14
  50. package/dist/{codex-adapter-zw4dwsx7.js → codex-adapter-8meawydj.js} +4 -4
  51. package/dist/{codex-hook-bw8p5nh4.js → codex-hook-hfrt9shr.js} +2 -2
  52. package/dist/{codex-session-runner-k981s65v.js → codex-session-runner-gjgxyp5j.js} +4 -4
  53. package/dist/{commands-sykrxx7e.js → commands-hz3nb95f.js} +5 -5
  54. package/dist/{db-sfbsc8wt.js → db-ggz97zbm.js} +5 -5
  55. package/dist/{e2b-6hb103d8.js → e2b-p04vmtx0.js} +1 -1
  56. package/dist/{handlers-0aspcejm.js → handlers-nbzdzn9k.js} +14 -11
  57. package/dist/{hook-hxccs7m5.js → hook-bks2q1f6.js} +7 -7
  58. package/dist/{hook-4nvqj2sb.js → hook-kq9wp0ep.js} +8 -8
  59. package/dist/{http-y06z517d.js → http-hrf77v87.js} +96 -45
  60. package/dist/{index-tce1rss4.js → index-6nsbg88z.js} +443 -144
  61. package/dist/{index-x5j894zf.js → index-8hmeg8j1.js} +14 -14
  62. package/dist/{index-k8znfx0z.js → index-cqtebbhb.js} +13 -13
  63. package/dist/{index-hssww7kj.js → index-n28pw1zt.js} +15 -15
  64. package/dist/{keepalive-w733ax66.js → keepalive-dxc12gvg.js} +7 -7
  65. package/dist/{lead-75bjqa9d.js → lead-yckfn18d.js} +32 -32
  66. package/dist/{maintenance-w4f1zjck.js → maintenance-6kfb2m5e.js} +8 -8
  67. package/dist/{oauth-refresh-sweep-wdetky26.js → oauth-refresh-sweep-1x1ac722.js} +6 -6
  68. package/dist/{onboard-bb5net8s.js → onboard-dcyt1609.js} +4 -3
  69. package/dist/{opencode-adapter-fef1mrn2.js → opencode-adapter-dce4wskd.js} +2 -2
  70. package/dist/{otel-impl-0w7c14ap.js → otel-impl-tbk3e5dr.js} +2 -2
  71. package/dist/{pi-mono-adapter-2has4gnp.js → pi-mono-adapter-zvshk5cj.js} +2 -2
  72. package/dist/{pricing-refresh-9nzsrgcq.js → pricing-refresh-kaqg567e.js} +7 -7
  73. package/dist/{rbac-roles-z1jrffbt.js → rbac-roles-ammq6rd2.js} +5 -5
  74. package/dist/{rbac-roles-r3hqjp09.js → rbac-roles-cf97v1vd.js} +6 -6
  75. package/dist/{render-v2-vbr89fnb.js → render-v2-80w603vy.js} +6 -6
  76. package/dist/{seed-pricing-g62hy1pk.js → seed-pricing-zbrn83xv.js} +6 -6
  77. package/dist/{setup-gnfqnptp.js → setup-fe66kczs.js} +2 -2
  78. package/dist/{worker-kznxp4qm.js → worker-qmb2d1e2.js} +32 -32
  79. package/dist/{x-n2phr5vm.js → x-n3e0v3xa.js} +2 -2
  80. package/openapi.json +46 -4
  81. package/package.json +3 -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-scripts/catalog/delegate.ts +5 -1
  93. package/src/be/seed-skills/bundled-files.generated.json +10 -0
  94. package/src/be/seed-skills/index.ts +3 -0
  95. package/src/be/steering.ts +1 -0
  96. package/src/be/swarm-config-guard.ts +11 -0
  97. package/src/commands/onboard/steps/post-task.tsx +1 -0
  98. package/src/github/handlers.ts +9 -0
  99. package/src/gitlab/handlers.ts +4 -0
  100. package/src/heartbeat/heartbeat.ts +8 -0
  101. package/src/http/approval-requests.ts +1 -0
  102. package/src/http/apps.ts +1 -0
  103. package/src/http/config.ts +15 -6
  104. package/src/http/mcp.ts +31 -4
  105. package/src/http/script-runs.ts +6 -0
  106. package/src/http/tasks.ts +52 -30
  107. package/src/integrations/kapso/inbound.ts +1 -0
  108. package/src/jira/sync.ts +2 -0
  109. package/src/linear/sync.ts +2 -0
  110. package/src/prompts/session-templates.ts +29 -15
  111. package/src/scheduler/deferred-task-waits.ts +123 -0
  112. package/src/scheduler/schedule-task.ts +42 -0
  113. package/src/scheduler/scheduler.ts +22 -31
  114. package/src/script-workflows/workflow-ctx.ts +2 -0
  115. package/src/scripts-runtime/types/stdlib.d.ts +38 -24
  116. package/src/scripts-runtime/types/swarm-sdk.d.ts +38 -24
  117. package/src/server.ts +10 -1
  118. package/src/slack/actions.ts +1 -0
  119. package/src/slack/assistant.ts +2 -0
  120. package/src/slack/handlers.ts +3 -0
  121. package/src/slack/thread-buffer.ts +2 -0
  122. package/src/tasks/worker-follow-up.ts +9 -0
  123. package/src/tests/acp-adapter.test.ts +35 -6
  124. package/src/tests/acp-session-token.test.ts +67 -0
  125. package/src/tests/asset-key-api.test.ts +15 -2
  126. package/src/tests/asset-key-mcp.test.ts +2 -0
  127. package/src/tests/automation-preflight-alert.test.ts +91 -0
  128. package/src/tests/claude-worker-parity.test.ts +3 -0
  129. package/src/tests/config-session-auth.test.ts +143 -0
  130. package/src/tests/defer-task.test.ts +117 -6
  131. package/src/tests/deferred-task-wake.test.ts +456 -0
  132. package/src/tests/heartbeat-reroute-decision.test.ts +1 -0
  133. package/src/tests/http-api-integration.test.ts +33 -4
  134. package/src/tests/mcp-input-ergonomics.test.ts +386 -0
  135. package/src/tests/model-control.test.ts +18 -5
  136. package/src/tests/opencode-adapter.test.ts +2 -2
  137. package/src/tests/promote-draft-task-route.test.ts +4 -0
  138. package/src/tests/prompt-template-session.test.ts +13 -4
  139. package/src/tests/rbac-wire-e2e.test.ts +2 -2
  140. package/src/tests/routing-decision-persistence.test.ts +520 -0
  141. package/src/tests/routing-reason-contract.test.ts +89 -0
  142. package/src/tests/routing-reason-inventory.test.ts +55 -0
  143. package/src/tests/schedule-target-type.test.ts +48 -1
  144. package/src/tests/scheduled-task-required-params-migration.test.ts +182 -0
  145. package/src/tests/scheduled-tasks.test.ts +9 -5
  146. package/src/tests/script-connections.test.ts +4 -0
  147. package/src/tests/script-runs-http.test.ts +31 -0
  148. package/src/tests/scripts-typecheck.test.ts +11 -0
  149. package/src/tests/secret-scrubber.test.ts +12 -0
  150. package/src/tests/send-task-output-schema.test.ts +66 -1
  151. package/src/tests/send-task-requested-by.test.ts +1 -0
  152. package/src/tests/send-task-slack-routing-guard.test.ts +2 -0
  153. package/src/tests/store-progress-blocked-waiting-gate.test.ts +151 -0
  154. package/src/tests/swarm-tool-result-gate.test.ts +24 -0
  155. package/src/tests/task-tool-manifest.test.ts +47 -0
  156. package/src/tests/task-tool-preload-mcp.test.ts +125 -0
  157. package/src/tests/task-tools-ctx.test.ts +2 -0
  158. package/src/tests/tool-output-agent-id.test.ts +1 -0
  159. package/src/tests/ui-followup-lead-delegation.test.ts +6 -1
  160. package/src/tests/workflow-agent-task.test.ts +24 -1
  161. package/src/tests/workflow-engine-v2.test.ts +58 -2
  162. package/src/tools/accept-steer.ts +0 -1
  163. package/src/tools/defer-task.ts +73 -21
  164. package/src/tools/memory-get.ts +10 -3
  165. package/src/tools/memory-rate.ts +19 -7
  166. package/src/tools/memory-search.ts +2 -1
  167. package/src/tools/memory-store.ts +25 -5
  168. package/src/tools/send-task.ts +40 -2
  169. package/src/tools/skills/skill-publish.ts +1 -0
  170. package/src/tools/store-progress.ts +78 -4
  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/skills/comms/config.json +18 -0
  181. package/templates/skills/comms/content.md +74 -0
  182. package/templates/skills/comms/files/references/ste-rules.md +73 -0
  183. package/templates/skills/comms/files/references/visual-shapes.md +112 -0
  184. package/templates/skills/swarm-scripts/SKILL.md +3 -2
  185. package/templates/skills/swarm-scripts/content.md +3 -2
@@ -11,14 +11,14 @@ import {
11
11
  getResumeGeneration,
12
12
  repointTrackerSyncBySwarmId,
13
13
  resolveLeadOnlyRecoveryAssignment
14
- } from "./cli-f7dsy61y.js";
14
+ } from "./cli-mnmsfd1w.js";
15
15
  import {
16
16
  isMultiRuntimeEnabled
17
17
  } from "./cli-07jd68a1.js";
18
18
  import {
19
19
  getExecutorRegistry,
20
20
  recoverIncompleteRuns
21
- } from "./cli-yz3djrm0.js";
21
+ } from "./cli-6pqcb4q0.js";
22
22
  import {
23
23
  MAX_EMPTY_POLLS,
24
24
  assignUnassignedTaskPending,
@@ -61,17 +61,17 @@ import {
61
61
  releaseStaleReviewingTasks,
62
62
  supersedeTask,
63
63
  updateAgentStatus
64
- } from "./cli-ftht3zzj.js";
64
+ } from "./cli-yab68w40.js";
65
65
  import {
66
66
  init_registry,
67
67
  init_resolver,
68
68
  registerTemplate,
69
69
  resolveTemplate
70
- } from "./cli-kpv03zhj.js";
70
+ } from "./cli-3apbzgyk.js";
71
71
  import {
72
72
  init_secret_scrubber,
73
73
  scrubSecrets
74
- } from "./cli-xqcq9y5e.js";
74
+ } from "./cli-r2ap2czm.js";
75
75
 
76
76
  // src/heartbeat/heartbeat.ts
77
77
  init_db();
@@ -519,6 +519,7 @@ async function runRebootSweep() {
519
519
  const retryTask = await createTaskExtended(task.task, {
520
520
  parentTaskId: task.id,
521
521
  agentId: preferredAgentId,
522
+ routingReason: preferredAgentId === undefined ? undefined : preferredAgentId === task.agentId ? "continuity" : "reroute_fault",
522
523
  tags,
523
524
  priority: task.priority,
524
525
  source: task.source,
@@ -891,6 +892,7 @@ async function checkHeartbeatChecklist() {
891
892
  return;
892
893
  await createTaskExtended(result.text, {
893
894
  agentId: lead.id,
895
+ routingReason: "skill",
894
896
  taskType: "heartbeat-checklist",
895
897
  tags: ["checklist", "auto-generated"],
896
898
  priority: 60
@@ -1025,6 +1027,7 @@ async function createBootTriageTask() {
1025
1027
  return;
1026
1028
  await createTaskExtended(result.text, {
1027
1029
  agentId: lead.id,
1030
+ routingReason: "skill",
1028
1031
  taskType: "boot-triage",
1029
1032
  tags: ["boot", "triage", "auto-generated"],
1030
1033
  priority: 70
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  renderSteeringDelivery
3
- } from "./cli-0b6y7kxm.js";
3
+ } from "./cli-xm87hzbw.js";
4
4
  import {
5
5
  checkCodexCredentials,
6
6
  codexUserHome
7
- } from "./cli-4nr988h6.js";
7
+ } from "./cli-e95cx1eb.js";
8
8
  import {
9
9
  checkClaudeManagedCredentials
10
- } from "./cli-cn6mmc7f.js";
10
+ } from "./cli-6664w7y4.js";
11
11
  import {
12
12
  checkDevinCredentials
13
13
  } from "./cli-9b13ggd1.js";
14
14
  import {
15
15
  checkOpencodeCredentials
16
- } from "./cli-ct0et58h.js";
16
+ } from "./cli-5my3bjsd.js";
17
17
  import {
18
18
  renderMemoriesPrompt,
19
19
  resolveScriptsOnlyMode,
20
20
  writeSkillsToFilesystem
21
- } from "./cli-atcve9y8.js";
21
+ } from "./cli-yb9qhqam.js";
22
22
  import {
23
23
  checkClaudeCredentials
24
- } from "./cli-719k9j2c.js";
24
+ } from "./cli-7smrsr25.js";
25
25
  import {
26
26
  MAX_RATE_LIMIT_RESET_MS,
27
27
  isCodexCreditsExhaustedMessage,
@@ -34,7 +34,7 @@ import {
34
34
  } from "./cli-s25avqg9.js";
35
35
  import {
36
36
  validateJsonSchema
37
- } from "./cli-yz3djrm0.js";
37
+ } from "./cli-6pqcb4q0.js";
38
38
  import {
39
39
  authJsonToCredentialSelection,
40
40
  credentialsToAuthJson,
@@ -61,7 +61,7 @@ import {
61
61
  syncProfileFilesToServer,
62
62
  writeIdentityBaselines,
63
63
  writeProfileFileFromDb
64
- } from "./cli-m9sxbkhm.js";
64
+ } from "./cli-zvz62chv.js";
65
65
  import {
66
66
  ensure,
67
67
  initOtel,
@@ -71,7 +71,7 @@ import {
71
71
  startSpan,
72
72
  withSpan,
73
73
  withSpanContext
74
- } from "./cli-b5bq9crk.js";
74
+ } from "./cli-d8ftsp62.js";
75
75
  import {
76
76
  init_task_attachment_links,
77
77
  taskAttachmentFetchCommand
@@ -83,7 +83,7 @@ import {
83
83
  init_types,
84
84
  resolveTaskModelSelection,
85
85
  telemetry
86
- } from "./cli-ftht3zzj.js";
86
+ } from "./cli-yab68w40.js";
87
87
  import {
88
88
  generateDefaultClaudeMd,
89
89
  generateDefaultIdentityMd,
@@ -93,7 +93,7 @@ import {
93
93
  init_base_prompt,
94
94
  init_defaults,
95
95
  init_templates
96
- } from "./cli-y6b6fb76.js";
96
+ } from "./cli-08b07b4r.js";
97
97
  import {
98
98
  configureHttpResolver,
99
99
  init_resolver,
@@ -102,7 +102,7 @@ import {
102
102
  interpolate,
103
103
  isSteeringEnabled,
104
104
  resolveTemplateAsync
105
- } from "./cli-kpv03zhj.js";
105
+ } from "./cli-3apbzgyk.js";
106
106
  import {
107
107
  getMcpBaseUrl,
108
108
  init_constants
@@ -114,7 +114,7 @@ import {
114
114
  import {
115
115
  init_secret_scrubber,
116
116
  scrubSecrets
117
- } from "./cli-xqcq9y5e.js";
117
+ } from "./cli-r2ap2czm.js";
118
118
  import {
119
119
  __require
120
120
  } from "./cli-bc05qbss.js";
@@ -151,19 +151,19 @@ async function materializeCodexAuthJson(_slot, creds, deps = {}) {
151
151
  async function createProviderAdapter(provider) {
152
152
  switch (provider) {
153
153
  case "claude": {
154
- const { ClaudeAdapter } = await import("./claude-adapter-w1z04ann.js");
154
+ const { ClaudeAdapter } = await import("./claude-adapter-3qpa9w0j.js");
155
155
  return new ClaudeAdapter;
156
156
  }
157
157
  case "pi": {
158
- const { PiMonoAdapter } = await import("./pi-mono-adapter-2has4gnp.js");
158
+ const { PiMonoAdapter } = await import("./pi-mono-adapter-zvshk5cj.js");
159
159
  return new PiMonoAdapter;
160
160
  }
161
161
  case "codex": {
162
- const { CodexAdapter } = await import("./codex-adapter-zw4dwsx7.js");
162
+ const { CodexAdapter } = await import("./codex-adapter-8meawydj.js");
163
163
  return new CodexAdapter;
164
164
  }
165
165
  case "claude-managed": {
166
- const { ClaudeManagedAdapter } = await import("./claude-managed-adapter-sactwn31.js");
166
+ const { ClaudeManagedAdapter } = await import("./claude-managed-adapter-qvsmh6mv.js");
167
167
  return new ClaudeManagedAdapter;
168
168
  }
169
169
  case "devin": {
@@ -171,11 +171,11 @@ async function createProviderAdapter(provider) {
171
171
  return new DevinAdapter;
172
172
  }
173
173
  case "opencode": {
174
- const { OpencodeAdapter } = await import("./opencode-adapter-fef1mrn2.js");
174
+ const { OpencodeAdapter } = await import("./opencode-adapter-dce4wskd.js");
175
175
  return new OpencodeAdapter;
176
176
  }
177
177
  case "acp": {
178
- const { ACPAdapter } = await import("./acp-adapter-9n319wqc.js");
178
+ const { ACPAdapter } = await import("./acp-adapter-4jncb126.js");
179
179
  return new ACPAdapter;
180
180
  }
181
181
  default:
@@ -588,7 +588,7 @@ var CREDENTIAL_PROVIDER_CHECKERS = {
588
588
  devin: (env) => checkDevinCredentials(env),
589
589
  opencode: (env, opts) => checkOpencodeCredentials(env, opts),
590
590
  pi: async (env, opts) => {
591
- const { checkPiMonoCredentials } = await import("./pi-mono-adapter-2has4gnp.js");
591
+ const { checkPiMonoCredentials } = await import("./pi-mono-adapter-zvshk5cj.js");
592
592
  return checkPiMonoCredentials(env, opts);
593
593
  },
594
594
  acp: () => ({ ready: true, missing: [], satisfiedBy: "sdk-delegated" })
@@ -3,7 +3,7 @@ import {
3
3
  getAgentById,
4
4
  getInProgressTasksByContextKey,
5
5
  init_db
6
- } from "./cli-ftht3zzj.js";
6
+ } from "./cli-yab68w40.js";
7
7
 
8
8
  // src/tasks/sibling-awareness.ts
9
9
  init_db();
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createAdditiveBuffer,
3
3
  extractSlackMessageText
4
- } from "./cli-mmemxxdc.js";
4
+ } from "./cli-kgz4np97.js";
5
5
  import {
6
6
  rewriteSlackMentions
7
- } from "./cli-dttph1bw.js";
7
+ } from "./cli-ykxrnd1q.js";
8
8
  import {
9
9
  createTaskWithSiblingAwareness
10
- } from "./cli-53s590z8.js";
10
+ } from "./cli-q50ef8g0.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-b5bq9crk.js";
19
+ } from "./cli-d8ftsp62.js";
20
20
  import {
21
21
  createLogEntry,
22
22
  getAgentById,
@@ -29,11 +29,11 @@ import {
29
29
  init_steering,
30
30
  requestSteering,
31
31
  slackContextKey
32
- } from "./cli-ftht3zzj.js";
32
+ } from "./cli-yab68w40.js";
33
33
  import {
34
34
  init_steering_enabled,
35
35
  isSteeringEnabled
36
- } from "./cli-kpv03zhj.js";
36
+ } from "./cli-3apbzgyk.js";
37
37
 
38
38
  // src/slack/event-dedup.ts
39
39
  var DEFAULT_TTL_MS = 300000;
@@ -253,6 +253,7 @@ ${description}` : description;
253
253
  const mostRecentTask = await getMostRecentTaskInThread(channelId, threadTs);
254
254
  const task = await createTaskWithSiblingAwareness(fullDescription, {
255
255
  agentId: lead?.id,
256
+ routingReason: lead && mostRecentTask?.agentId === lead.id ? "continuity" : lead ? "skill" : undefined,
256
257
  source: "slack",
257
258
  slackChannelId: channelId,
258
259
  slackThreadTs: threadTs,
@@ -164,6 +164,7 @@ var init_secret_scrubber = __esm(() => {
164
164
  TOKEN_REGEXES = [
165
165
  { name: "github_pat", re: /github_pat_[A-Za-z0-9_]{20,}/g },
166
166
  { name: "github_token", re: new RegExp(String.raw`${TB}gh[pousr]_[A-Za-z0-9]{20,}\b`, "g") },
167
+ { name: "acp_session_token", re: new RegExp(String.raw`${TB}aseph_[A-Za-z0-9]{20,}\b`, "g") },
167
168
  { name: "gitlab_pat", re: new RegExp(String.raw`${TB}glpat-[A-Za-z0-9_-]{20,}\b`, "g") },
168
169
  { name: "anthropic_key", re: new RegExp(String.raw`${TB}sk-ant-[A-Za-z0-9_-]{20,}\b`, "g") },
169
170
  { name: "openai_proj_key", re: new RegExp(String.raw`${TB}sk-proj-[A-Za-z0-9_-]{20,}\b`, "g") },
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  buildModelsDevSeedRows,
3
3
  loadModelsDevCache
4
- } from "./cli-rw51bq3j.js";
4
+ } from "./cli-9fy6nk6g.js";
5
5
  import {
6
6
  createLogEntry,
7
7
  getActivePricingRow,
8
8
  getDbClient,
9
9
  init_db,
10
10
  insertPricingRow
11
- } from "./cli-ftht3zzj.js";
11
+ } from "./cli-yab68w40.js";
12
12
  import {
13
13
  init_secret_scrubber,
14
14
  scrubSecrets
15
- } from "./cli-xqcq9y5e.js";
15
+ } from "./cli-r2ap2czm.js";
16
16
 
17
17
  // src/be/pricing-refresh.ts
18
18
  init_secret_scrubber();
@@ -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();