@desplega.ai/agent-swarm 1.171.0 → 1.172.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 (183) hide show
  1. package/dist/{acp-adapter-1z9p3fvx.js → acp-adapter-fpecx1g1.js} +23 -5
  2. package/dist/{actions-rc2yjk8a.js → actions-pw87a1a8.js} +24 -25
  3. package/dist/{amp-adapter-ypyf5s1x.js → amp-adapter-8jem2bc0.js} +1 -1
  4. package/dist/{anthropic-messages-etkbxhhy.js → anthropic-messages-8ee2f22q.js} +55 -22
  5. package/dist/{app-04ab2s0z.js → app-wmf0m843.js} +7 -8
  6. package/dist/{assistant-vhmjd8wf.js → assistant-emp1e108.js} +26 -27
  7. package/dist/{azure-openai-responses-xap57x4b.js → azure-openai-responses-ap1gwxgr.js} +3 -3
  8. package/dist/{boot-reembed-3p0m259x.js → boot-reembed-1de4f4aj.js} +6 -7
  9. package/dist/{boot-reembed-wew3gwk8.js → boot-reembed-4ymn9atn.js} +6 -7
  10. package/dist/{boot-scrub-sweep-5ytwtq24.js → boot-scrub-sweep-adhk1s8c.js} +7 -8
  11. package/dist/{boot-seeds-s8p2xry8.js → boot-seeds-8q637aew.js} +9 -10
  12. package/dist/{claude-adapter-akrzg6jh.js → claude-adapter-t26cv8a4.js} +16 -17
  13. package/dist/{claude-managed-adapter-kqqqhp2q.js → claude-managed-adapter-xgxhqrt2.js} +2 -2
  14. package/dist/{claude-sdk-session-exq1jadx.js → claude-sdk-session-gsfsh662.js} +16 -17
  15. package/dist/{cli-n8ybnv1k.js → cli-04emfe2q.js} +1 -1
  16. package/dist/{cli-w0bwte75.js → cli-104zsxba.js} +2 -1
  17. package/dist/{cli-x6z90nq9.js → cli-19njxg5g.js} +2 -4
  18. package/dist/{cli-8mr695sb.js → cli-1hgat6pa.js} +5 -5
  19. package/dist/{cli-1qtgd1h1.js → cli-1m2xxxe2.js} +2 -2
  20. package/dist/{cli-231av4y6.js → cli-1x7da0de.js} +2 -4
  21. package/dist/{cli-x3fy2tgp.js → cli-388egyf6.js} +1 -1
  22. package/dist/{cli-j0w59p15.js → cli-4fnb6884.js} +4 -4
  23. package/dist/{cli-y1j1ggbf.js → cli-4nz8p1p5.js} +1372 -588
  24. package/dist/{cli-s88my3br.js → cli-5rv1j9ga.js} +6 -6
  25. package/dist/{cli-mn8qkd8v.js → cli-61625k3x.js} +1 -1
  26. package/dist/{cli-mzj3aqac.js → cli-6jb2rf77.js} +3 -3
  27. package/dist/{cli-ec7hrgqp.js → cli-8hzfb6xz.js} +8 -8
  28. package/dist/{cli-n805bb98.js → cli-8vs9trd4.js} +1 -1
  29. package/dist/{cli-xf713zz0.js → cli-9fxpr83v.js} +1 -1
  30. package/dist/{cli-q1vnz8wv.js → cli-9s17naqf.js} +1 -1
  31. package/dist/{cli-nkjwe4z7.js → cli-9xsmdpdt.js} +59 -54
  32. package/dist/{cli-6xxxb8qt.js → cli-aspcaef3.js} +5 -5
  33. package/dist/cli-bf7485pm.js +514 -0
  34. package/dist/{cli-s9y81s7j.js → cli-bt8k5h3s.js} +625 -150
  35. package/dist/{cli-jxsgrnmq.js → cli-c2pq2rjb.js} +2 -2
  36. package/dist/{cli-13xwcqvj.js → cli-c5km5znr.js} +2 -2
  37. package/dist/{cli-5y67yrt6.js → cli-cceskcvt.js} +112 -176
  38. package/dist/{cli-ph3145b7.js → cli-cf69s3ew.js} +4 -4
  39. package/dist/{cli-k2v5x13t.js → cli-d603qf86.js} +1 -1
  40. package/dist/{cli-r455yd58.js → cli-e0a9sk00.js} +1 -1
  41. package/dist/{cli-cgj4hc12.js → cli-eh1ytktb.js} +1872 -190
  42. package/dist/{cli-erbp6b4g.js → cli-esnpehf5.js} +7 -8
  43. package/dist/cli-ev91t6xp.js +148 -0
  44. package/dist/{cli-e2prcx5m.js → cli-fdvbjtbw.js} +235 -5
  45. package/dist/{cli-62bwwc2q.js → cli-g4f5pj26.js} +3 -3
  46. package/dist/{cli-tg8q0b5y.js → cli-g6t9texm.js} +5 -5
  47. package/dist/{cli-p2pjfq1r.js → cli-gj81e47t.js} +1 -1
  48. package/dist/{cli-srmej5tp.js → cli-gp1rtyvk.js} +2 -2
  49. package/dist/{cli-rb9m6rpe.js → cli-h6vtvt5c.js} +139 -1
  50. package/dist/cli-hd27d2md.js +1057 -0
  51. package/dist/{cli-hsk5gd15.js → cli-hwwvy36w.js} +3 -3
  52. package/dist/{cli-2rbt7at8.js → cli-hz99wfxp.js} +1 -1
  53. package/dist/cli-j1pmc07z.js +706 -0
  54. package/dist/{cli-01qndrvw.js → cli-j6kpj9az.js} +14 -8
  55. package/dist/{cli-2qbs2tvf.js → cli-k46r9hmk.js} +6 -6
  56. package/dist/{cli-wfvedq5w.js → cli-kb4ehzx5.js} +5 -5
  57. package/dist/{cli-agamgm0p.js → cli-mvzyxwg3.js} +1 -1
  58. package/dist/{cli-280gnz4v.js → cli-nv4zd0b9.js} +1 -1
  59. package/dist/{cli-rrbctenq.js → cli-nyhb1r6x.js} +3 -5
  60. package/dist/{cli-g7k7zbcz.js → cli-p7z6q2m6.js} +2 -1
  61. package/dist/{cli-yn0a417a.js → cli-phre6gz0.js} +22 -4
  62. package/dist/{cli-m4csbs67.js → cli-pj6x9qce.js} +1 -1
  63. package/dist/{cli-w0zx9ya1.js → cli-prrt9fa0.js} +4 -4
  64. package/dist/{cli-ctret352.js → cli-pstq9888.js} +33 -33
  65. package/dist/{cli-y195hv1a.js → cli-pxeeyc53.js} +1 -1
  66. package/dist/{cli-4bm25xtw.js → cli-qsztpfry.js} +1 -1
  67. package/dist/{cli-5t5my0h8.js → cli-qybkr9n3.js} +278 -1267
  68. package/dist/{cli-xezn9nkh.js → cli-r44t9wqc.js} +29 -472
  69. package/dist/{cli-x207g4w1.js → cli-r8smj8b8.js} +1 -1
  70. package/dist/{cli-bxqez1p0.js → cli-rcp5aqdw.js} +9 -39
  71. package/dist/{cli-vr5avem2.js → cli-smcrrmhy.js} +14 -18
  72. package/dist/{cli-0d2rqhvq.js → cli-tgpfnm6r.js} +15 -17
  73. package/dist/cli-vb8g5x02.js +549 -0
  74. package/dist/{cli-gt4hxb8p.js → cli-vv0qtfpx.js} +1 -2
  75. package/dist/{cli-95zs84qw.js → cli-wd0hz6ah.js} +671 -388
  76. package/dist/{cli-nkqjj42q.js → cli-x4m6feqt.js} +1 -1
  77. package/dist/{cli-x61srfpp.js → cli-xczpdp9e.js} +2 -2
  78. package/dist/cli-z1kd834t.js +36 -0
  79. package/dist/{cli-p8f7dqgt.js → cli-ztrv9y21.js} +48 -33
  80. package/dist/cli.js +24 -25
  81. package/dist/{cloudflare-workers-ai-system-one-sta45jf9.js → cloudflare-workers-ai-system-one-vnpyfr7e.js} +3 -3
  82. package/dist/{codex-adapter-9ag75whm.js → codex-adapter-m4tgdysy.js} +12 -12
  83. package/dist/{codex-hook-7ba15hjd.js → codex-hook-xch6z5wt.js} +2 -3
  84. package/dist/{codex-session-runner-9fp7y4cf.js → codex-session-runner-ymwzm6ea.js} +12 -12
  85. package/dist/{commands-d7eah0y9.js → commands-n0hshcvs.js} +6 -7
  86. package/dist/{controllers-connect-8t0k65x2.js → controllers-connect-y07cqcvy.js} +24 -25
  87. package/dist/{cursor-adapter-t4pr1m3c.js → cursor-adapter-q8pgv5qa.js} +2 -3
  88. package/dist/{db-sp39qv72.js → db-4w7tmt1g.js} +6 -7
  89. package/dist/{db-2rmd23wq.js → db-hkqvrdcb.js} +7 -8
  90. package/dist/{dispatcher-g7fsybsd.js → dispatcher-5sd69y14.js} +23 -24
  91. package/dist/{easter-egg-3d-66zxervv.js → easter-egg-3d-m8rvz40s.js} +4 -3
  92. package/dist/execute-107xtsp1.js +3745 -0
  93. package/dist/{google-generative-ai-pvhm0dq1.js → google-generative-ai-7pavrbv7.js} +3 -3
  94. package/dist/{google-vertex-tek9sqe2.js → google-vertex-3f1jk41f.js} +3 -3
  95. package/dist/{grok-adapter-1err1me7.js → grok-adapter-8m9yqzbq.js} +24 -6
  96. package/dist/{handlers-c7yggm37.js → handlers-s20xr10r.js} +26 -27
  97. package/dist/{heartbeat-dkm924fk.js → heartbeat-3k31q4g2.js} +25 -26
  98. package/dist/{hook-wgx4exw6.js → hook-gdn6a2fn.js} +13 -14
  99. package/dist/{hook-g8e7sfnf.js → hook-ygwerrdh.js} +14 -15
  100. package/dist/{http-1d23k928.js → http-jdteeg81.js} +53 -55
  101. package/dist/{index-y5vvczrs.js → index-6ksewd5y.js} +20 -18
  102. package/dist/{index-kkeftv5h.js → index-82rk11v7.js} +4 -4
  103. package/dist/{index-gm10tmye.js → index-e0snym4t.js} +23 -24
  104. package/dist/{index-vertaxs1.js → index-ffqzqgwb.js} +6 -7
  105. package/dist/{index-q7cj9bn2.js → index-tsszt7g9.js} +25 -26
  106. package/dist/{index-w097eg0x.js → index-vccv018g.js} +1 -1
  107. package/dist/{index-va4zbvzp.js → index-vm3bm9t7.js} +24 -25
  108. package/dist/{keepalive-1jc5e7ct.js → keepalive-jekc896t.js} +8 -9
  109. package/dist/{lead-yxw2f1sg.js → lead-4k9s9szx.js} +40 -41
  110. package/dist/{maintenance-h7w2m10y.js → maintenance-shazch4n.js} +6 -7
  111. package/dist/{mistral-conversations-rjxa9s1j.js → mistral-conversations-vjc1ggpd.js} +29 -15
  112. package/dist/{oauth-refresh-sweep-wh9ypd1b.js → oauth-refresh-sweep-5gb36kn8.js} +7 -8
  113. package/dist/{onboard-dfr9j762.js → onboard-ydrbnvww.js} +2 -2
  114. package/dist/{openai-codex-responses-pgvtddvv.js → openai-codex-responses-33qhkkdy.js} +7 -39
  115. package/dist/{openai-completions-44gb0zsk.js → openai-completions-s88xm3ns.js} +2 -2
  116. package/dist/{openai-decisions-vj9nkpf8.js → openai-decisions-fctnj8xd.js} +2 -2
  117. package/dist/{openai-responses-9dyzwzkr.js → openai-responses-7xd2f2e2.js} +3 -3
  118. package/dist/opencode-adapter-5zh0he20.js +55 -0
  119. package/dist/{otel-impl-and31m5s.js → otel-impl-6pf5cv86.js} +1 -1
  120. package/dist/{pi-mono-adapter-fx6k5wwh.js → pi-mono-adapter-ef9wwx9m.js} +25 -500
  121. package/dist/{pricing-refresh-23zr6j3w.js → pricing-refresh-s52nsa5q.js} +8 -9
  122. package/dist/{rbac-roles-wnx35x4x.js → rbac-roles-aq3msh4e.js} +6 -7
  123. package/dist/{rbac-roles-nc7k9d0t.js → rbac-roles-q5gb5e8v.js} +7 -8
  124. package/dist/{render-v2-81cg1y52.js → render-v2-pd1rg54q.js} +7 -8
  125. package/dist/{resume-d4b6j2n2.js → resume-gw4a2c6v.js} +14 -15
  126. package/dist/{runtime-h9ha1mq6.js → runtime-qfry88v2.js} +4 -7
  127. package/dist/{setup-g68r1w28.js → setup-jda1ksdh.js} +2 -2
  128. package/dist/{typesafe-system-one-e988vty7.js → typesafe-system-one-zzzcx4s3.js} +3 -3
  129. package/dist/{virtual-modules-rdjmcg7q.js → virtual-modules-b3ga2m65.js} +13 -12
  130. package/dist/{work-objects-0zzdnbt9.js → work-objects-tb7ycye8.js} +26 -27
  131. package/dist/{worker-p1g8qm6h.js → worker-njjccz5d.js} +40 -41
  132. package/openapi.json +1 -1
  133. package/package.json +7 -8
  134. package/src/be/scripts/extract-schema.ts +4 -0
  135. package/src/github/handlers.ts +61 -18
  136. package/src/github/types.ts +2 -1
  137. package/src/prompts/goal-reminder.ts +30 -0
  138. package/src/prompts/session-templates.ts +22 -0
  139. package/src/providers/acp-targets.ts +3 -4
  140. package/src/providers/amp-adapter.ts +1 -1
  141. package/src/providers/harness-version.ts +0 -1
  142. package/src/providers/opencode-adapter.ts +442 -723
  143. package/src/providers/opencode-swarm-plugin.ts +88 -0
  144. package/src/providers/pi-mono-extension.ts +58 -37
  145. package/src/scripts-runtime/executors/native.ts +6 -5
  146. package/src/scripts-runtime/executors/quickjs-bundle.ts +18 -11
  147. package/src/scripts-runtime/extract-args-schema.ts +22 -4
  148. package/src/scripts-runtime/import-allowlist.ts +1 -1
  149. package/src/scripts-runtime/zod-mini-bundle.ts +5 -0
  150. package/src/slack/render-v2.ts +2 -2
  151. package/src/tests/entrypoint-acp-target-binary.test.ts +19 -1
  152. package/src/tests/github-handlers-inline-comments.test.ts +131 -2
  153. package/src/tests/github-handlers-reactions.test.ts +9 -0
  154. package/src/tests/harness-version.test.ts +0 -20
  155. package/src/tests/opencode-adapter.test.ts +536 -1389
  156. package/src/tests/opencode-mcp-admission-sdk.test.ts +106 -0
  157. package/src/tests/opencode-swarm-plugin.test.ts +130 -0
  158. package/src/tests/pi-mono-extension.test.ts +59 -0
  159. package/src/tests/prompt-template-session.test.ts +4 -3
  160. package/src/tests/provider-registration.test.ts +3 -0
  161. package/src/tests/script-executor-quickjs.test.ts +17 -12
  162. package/src/tests/scripts-http.test.ts +24 -16
  163. package/src/tests/scripts-import-allowlist.test.ts +1 -1
  164. package/src/tests/scripts-runtime.test.ts +78 -40
  165. package/src/tests/seed-scripts.test.ts +13 -0
  166. package/src/tests/slack-render-v2.test.ts +4 -2
  167. package/src/tests/ui-logs-parser.test.ts +28 -0
  168. package/src/tools/script-upsert.ts +1 -1
  169. package/src/utils/memory-raters.ts +7 -3
  170. package/src/utils/openrouter-base-url.ts +0 -2
  171. package/templates/schedules/weekly-harness-upgrade-check/content.md +4 -6
  172. package/templates/skills/heartbeat-runbook/content.md +2 -0
  173. package/templates/skills/swarm-scripts/SKILL.md +1 -0
  174. package/templates/skills/swarm-scripts/content.md +1 -0
  175. package/dist/cli-5bfdm1ah.js +0 -462
  176. package/dist/cli-5c2j5yvx.js +0 -222
  177. package/dist/cli-rhy7z1rp.js +0 -532
  178. package/dist/cli-ywh2a87k.js +0 -2359
  179. package/dist/execute-h4jgevyw.js +0 -1387
  180. package/dist/opencode-adapter-f1zby94p.js +0 -34
  181. package/plugin/opencode-plugins/lib/memory-raters.ts +0 -7
  182. package/src/tests/opencode-plugin.test.ts +0 -580
  183. package/src/tests/providers/opencode-cost.test.ts +0 -74
@@ -5,12 +5,12 @@ import {
5
5
  instantFlush,
6
6
  requestSlackThreadSteering,
7
7
  wasEventSeen
8
- } from "./cli-8mr695sb.js";
8
+ } from "./cli-1hgat6pa.js";
9
9
  import {
10
10
  enrichSlackUserEmail,
11
11
  resolveSlackUserId,
12
12
  rewriteSlackMentions
13
- } from "./cli-hsk5gd15.js";
13
+ } from "./cli-hwwvy36w.js";
14
14
  import {
15
15
  TaskCreationBlockedError,
16
16
  broadcastMatches,
@@ -23,7 +23,7 @@ import {
23
23
  hasOtherUserMention,
24
24
  notifySlackFileFailures,
25
25
  routeMessage
26
- } from "./cli-p8f7dqgt.js";
26
+ } from "./cli-ztrv9y21.js";
27
27
  import {
28
28
  ackSlackMessage,
29
29
  buildTreeBlocks,
@@ -34,7 +34,7 @@ import {
34
34
  noteSlackInboundSideEffect,
35
35
  registerTreeMessage,
36
36
  reportSlackInboundFailure
37
- } from "./cli-nkjwe4z7.js";
37
+ } from "./cli-9xsmdpdt.js";
38
38
  import {
39
39
  getAgentById,
40
40
  getAgentWorkingOnThread,
@@ -47,11 +47,11 @@ import {
47
47
  isExtensionAgent,
48
48
  reactionName,
49
49
  slackContextKey
50
- } from "./cli-0d2rqhvq.js";
50
+ } from "./cli-tgpfnm6r.js";
51
51
  import {
52
52
  init_resolver,
53
53
  resolveTemplate
54
- } from "./cli-5c2j5yvx.js";
54
+ } from "./cli-fdvbjtbw.js";
55
55
  import {
56
56
  init_zod
57
57
  } from "./cli-sd0mxa3c.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  lazyApi
3
- } from "./cli-g7k7zbcz.js";
3
+ } from "./cli-p7z6q2m6.js";
4
4
 
5
5
  // node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.lazy.js
6
6
  var __rewriteRelativeImportExtension = function(path, preserveJsx) {
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  seedPricingFromModelsDev
3
- } from "./cli-x207g4w1.js";
3
+ } from "./cli-r8smj8b8.js";
4
4
  import {
5
5
  ensureRbacSeedsSynced,
6
6
  init_rbac_roles
7
- } from "./cli-4bm25xtw.js";
7
+ } from "./cli-qsztpfry.js";
8
8
  import {
9
9
  getDb,
10
10
  init_db1 as init_db
11
- } from "./cli-0d2rqhvq.js";
11
+ } from "./cli-tgpfnm6r.js";
12
12
 
13
13
  // src/be/boot-seeds.ts
14
14
  init_db();
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  remediateStalledRuntime
3
- } from "./cli-w0zx9ya1.js";
3
+ } from "./cli-prrt9fa0.js";
4
4
  import {
5
5
  REBOOT_RETRY_PIN_TAG,
6
6
  agentsWithLiveRuntime,
@@ -25,22 +25,22 @@ import {
25
25
  repointTrackerSyncBySwarmId,
26
26
  resolveLeadOnlyRecoveryAssignment,
27
27
  runtimeStaleThresholdMinutes
28
- } from "./cli-p8f7dqgt.js";
28
+ } from "./cli-ztrv9y21.js";
29
29
  import {
30
30
  isMultiRuntimeEnabled
31
31
  } from "./cli-re8z5p8p.js";
32
32
  import {
33
33
  runSavedScriptAsAgent
34
- } from "./cli-01qndrvw.js";
34
+ } from "./cli-j6kpj9az.js";
35
35
  import {
36
36
  createApprovalFollowUpTask
37
- } from "./cli-6xxxb8qt.js";
37
+ } from "./cli-aspcaef3.js";
38
38
  import {
39
39
  init_db as init_db2,
40
40
  init_users,
41
41
  listRuntimePools,
42
42
  mintToken
43
- } from "./cli-r455yd58.js";
43
+ } from "./cli-e0a9sk00.js";
44
44
  import {
45
45
  MAX_EMPTY_POLLS,
46
46
  assignUnassignedTaskPending,
@@ -98,7 +98,7 @@ import {
98
98
  settleSupersededTaskDependents,
99
99
  supersedeTask,
100
100
  updateAgentStatus
101
- } from "./cli-0d2rqhvq.js";
101
+ } from "./cli-tgpfnm6r.js";
102
102
  import {
103
103
  TERMINAL_TASK_STATUSES,
104
104
  init_types
@@ -108,11 +108,11 @@ import {
108
108
  init_resolver,
109
109
  registerTemplate,
110
110
  resolveTemplate
111
- } from "./cli-5c2j5yvx.js";
111
+ } from "./cli-fdvbjtbw.js";
112
112
  import {
113
113
  init_package,
114
114
  package_default
115
- } from "./cli-erbp6b4g.js";
115
+ } from "./cli-esnpehf5.js";
116
116
  import {
117
117
  init_event_bus,
118
118
  workflowEventBus
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_package,
3
3
  package_default
4
- } from "./cli-erbp6b4g.js";
4
+ } from "./cli-esnpehf5.js";
5
5
 
6
6
  // src/commands/shared/client-config.ts
7
7
  init_package();
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clampThinkingLevel,
3
3
  getSystemMessageText
4
- } from "./cli-g7k7zbcz.js";
4
+ } from "./cli-p7z6q2m6.js";
5
5
 
6
6
  // node_modules/@earendil-works/pi-ai/dist/api/constrained-sampling.js
7
7
  class UnsupportedStrictJsonSchemaError extends Error {
@@ -7,7 +7,7 @@ import {
7
7
  } from "./cli-7kyk9jr3.js";
8
8
  import {
9
9
  calculateCost
10
- } from "./cli-g7k7zbcz.js";
10
+ } from "./cli-p7z6q2m6.js";
11
11
 
12
12
  // node_modules/@earendil-works/pi-ai/dist/api/classifier-shared.js
13
13
  function httpError(label, response, body) {
@@ -70,7 +70,7 @@ import {
70
70
  setSlackMessageTracking,
71
71
  slackContextKey,
72
72
  updateSlackMessageRecord
73
- } from "./cli-0d2rqhvq.js";
73
+ } from "./cli-tgpfnm6r.js";
74
74
  import {
75
75
  init_types,
76
76
  isTerminalTaskStatus
@@ -78,7 +78,7 @@ import {
78
78
  import {
79
79
  init_task_attachment_links,
80
80
  taskAttachmentDisplayUrl
81
- } from "./cli-rrbctenq.js";
81
+ } from "./cli-nyhb1r6x.js";
82
82
  import {
83
83
  getSlackConfiguration,
84
84
  init_config
@@ -24747,7 +24747,7 @@ var require_utf32 = __commonJS(function(exports) {
24747
24747
  }
24748
24748
  Utf32Encoder.prototype.write = function(str) {
24749
24749
  var src = Buffer2.from(str, "ucs2");
24750
- var dst = Buffer2.alloc(src.length * 2);
24750
+ var dst = Buffer2.alloc(src.length * 2 + 4);
24751
24751
  var write32 = this.isLE ? dst.writeUInt32LE : dst.writeUInt32BE;
24752
24752
  var offset = 0;
24753
24753
  for (var i = 0;i < src.length; i += 2) {
@@ -24814,9 +24814,9 @@ var require_utf32 = __commonJS(function(exports) {
24814
24814
  }
24815
24815
  if (overflow.length === 4) {
24816
24816
  if (isLE) {
24817
- codepoint = overflow[i] | overflow[i + 1] << 8 | overflow[i + 2] << 16 | overflow[i + 3] << 24;
24817
+ codepoint = overflow[0] | overflow[1] << 8 | overflow[2] << 16 | overflow[3] << 24;
24818
24818
  } else {
24819
- codepoint = overflow[i + 3] | overflow[i + 2] << 8 | overflow[i + 1] << 16 | overflow[i] << 24;
24819
+ codepoint = overflow[3] | overflow[2] << 8 | overflow[1] << 16 | overflow[0] << 24;
24820
24820
  }
24821
24821
  overflow.length = 0;
24822
24822
  offset = _writeCodepoint(dst, offset, codepoint, badChar);
@@ -24851,7 +24851,11 @@ var require_utf32 = __commonJS(function(exports) {
24851
24851
  return offset;
24852
24852
  }
24853
24853
  Utf32Decoder.prototype.end = function() {
24854
+ if (this.overflow.length === 0) {
24855
+ return;
24856
+ }
24854
24857
  this.overflow.length = 0;
24858
+ return String.fromCharCode(this.badChar);
24855
24859
  };
24856
24860
  exports.utf32 = Utf32AutoCodec;
24857
24861
  exports.ucs4 = "utf32";
@@ -25468,6 +25472,8 @@ var require_sbcs_data = __commonJS(function(exports, module) {
25468
25472
  elot928: "iso88597",
25469
25473
  hebrew: "iso88598",
25470
25474
  hebrew8: "iso88598",
25475
+ iso88598i: "iso88598",
25476
+ iso88598e: "iso88598",
25471
25477
  turkish: "iso88599",
25472
25478
  turkish8: "iso88599",
25473
25479
  thai: "iso885911",
@@ -27965,55 +27971,54 @@ var require_lib = __commonJS(function(exports, module) {
27965
27971
  var Buffer2 = require_safer().Buffer;
27966
27972
  var bomHandling = require_bom_handling();
27967
27973
  var mergeModules = require_merge_exports();
27968
- var iconv = exports;
27969
- iconv.encodings = null;
27970
- iconv.defaultCharUnicode = "�";
27971
- iconv.defaultCharSingleByte = "?";
27972
- iconv.encode = function encode(str, encoding, options) {
27974
+ exports.encodings = null;
27975
+ exports.defaultCharUnicode = "�";
27976
+ exports.defaultCharSingleByte = "?";
27977
+ exports.encode = function encode(str, encoding, options) {
27973
27978
  str = "" + (str || "");
27974
- var encoder = iconv.getEncoder(encoding, options);
27979
+ var encoder = exports.getEncoder(encoding, options);
27975
27980
  var res = encoder.write(str);
27976
27981
  var trail = encoder.end();
27977
27982
  return trail && trail.length > 0 ? Buffer2.concat([res, trail]) : res;
27978
27983
  };
27979
- iconv.decode = function decode(buf, encoding, options) {
27984
+ exports.decode = function decode(buf, encoding, options) {
27980
27985
  if (typeof buf === "string") {
27981
- if (!iconv.skipDecodeWarning) {
27986
+ if (!exports.skipDecodeWarning) {
27982
27987
  console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding");
27983
- iconv.skipDecodeWarning = true;
27988
+ exports.skipDecodeWarning = true;
27984
27989
  }
27985
27990
  buf = Buffer2.from("" + (buf || ""), "binary");
27986
27991
  }
27987
- var decoder = iconv.getDecoder(encoding, options);
27992
+ var decoder = exports.getDecoder(encoding, options);
27988
27993
  var res = decoder.write(buf);
27989
27994
  var trail = decoder.end();
27990
27995
  return trail ? res + trail : res;
27991
27996
  };
27992
- iconv.encodingExists = function encodingExists(enc) {
27997
+ exports.encodingExists = function encodingExists(enc) {
27993
27998
  try {
27994
- iconv.getCodec(enc);
27999
+ exports.getCodec(enc);
27995
28000
  return true;
27996
28001
  } catch (e) {
27997
28002
  return false;
27998
28003
  }
27999
28004
  };
28000
- iconv.toEncoding = iconv.encode;
28001
- iconv.fromEncoding = iconv.decode;
28002
- iconv._codecDataCache = { __proto__: null };
28003
- iconv.getCodec = function getCodec(encoding) {
28004
- if (!iconv.encodings) {
28005
+ exports.toEncoding = exports.encode;
28006
+ exports.fromEncoding = exports.decode;
28007
+ exports._codecDataCache = { __proto__: null };
28008
+ exports.getCodec = function getCodec(encoding) {
28009
+ if (!exports.encodings) {
28005
28010
  var raw = require_encodings();
28006
- iconv.encodings = { __proto__: null };
28007
- mergeModules(iconv.encodings, raw);
28011
+ exports.encodings = { __proto__: null };
28012
+ mergeModules(exports.encodings, raw);
28008
28013
  }
28009
- var enc = iconv._canonicalizeEncoding(encoding);
28014
+ var enc = exports._canonicalizeEncoding(encoding);
28010
28015
  var codecOptions = {};
28011
28016
  while (true) {
28012
- var codec = iconv._codecDataCache[enc];
28017
+ var codec = exports._codecDataCache[enc];
28013
28018
  if (codec) {
28014
28019
  return codec;
28015
28020
  }
28016
- var codecDef = iconv.encodings[enc];
28021
+ var codecDef = exports.encodings[enc];
28017
28022
  switch (typeof codecDef) {
28018
28023
  case "string":
28019
28024
  enc = codecDef;
@@ -28031,56 +28036,56 @@ var require_lib = __commonJS(function(exports, module) {
28031
28036
  if (!codecOptions.encodingName) {
28032
28037
  codecOptions.encodingName = enc;
28033
28038
  }
28034
- codec = new codecDef(codecOptions, iconv);
28035
- iconv._codecDataCache[codecOptions.encodingName] = codec;
28039
+ codec = new codecDef(codecOptions, exports);
28040
+ exports._codecDataCache[codecOptions.encodingName] = codec;
28036
28041
  return codec;
28037
28042
  default:
28038
28043
  throw new Error("Encoding not recognized: '" + encoding + "' (searched as: '" + enc + "')");
28039
28044
  }
28040
28045
  }
28041
28046
  };
28042
- iconv._canonicalizeEncoding = function(encoding) {
28047
+ exports._canonicalizeEncoding = function(encoding) {
28043
28048
  return ("" + encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "");
28044
28049
  };
28045
- iconv.getEncoder = function getEncoder(encoding, options) {
28046
- var codec = iconv.getCodec(encoding);
28050
+ exports.getEncoder = function getEncoder(encoding, options) {
28051
+ var codec = exports.getCodec(encoding);
28047
28052
  var encoder = new codec.encoder(options, codec);
28048
28053
  if (codec.bomAware && options && options.addBOM) {
28049
28054
  encoder = new bomHandling.PrependBOM(encoder, options);
28050
28055
  }
28051
28056
  return encoder;
28052
28057
  };
28053
- iconv.getDecoder = function getDecoder(encoding, options) {
28054
- var codec = iconv.getCodec(encoding);
28058
+ exports.getDecoder = function getDecoder(encoding, options) {
28059
+ var codec = exports.getCodec(encoding);
28055
28060
  var decoder = new codec.decoder(options, codec);
28056
28061
  if (codec.bomAware && !(options && options.stripBOM === false)) {
28057
28062
  decoder = new bomHandling.StripBOM(decoder, options);
28058
28063
  }
28059
28064
  return decoder;
28060
28065
  };
28061
- iconv.enableStreamingAPI = function enableStreamingAPI(streamModule2) {
28062
- if (iconv.supportsStreams) {
28066
+ exports.enableStreamingAPI = function enableStreamingAPI(streamModule2) {
28067
+ if (exports.supportsStreams) {
28063
28068
  return;
28064
28069
  }
28065
28070
  var streams = require_streams()(streamModule2);
28066
- iconv.IconvLiteEncoderStream = streams.IconvLiteEncoderStream;
28067
- iconv.IconvLiteDecoderStream = streams.IconvLiteDecoderStream;
28068
- iconv.encodeStream = function encodeStream(encoding, options) {
28069
- return new iconv.IconvLiteEncoderStream(iconv.getEncoder(encoding, options), options);
28071
+ exports.IconvLiteEncoderStream = streams.IconvLiteEncoderStream;
28072
+ exports.IconvLiteDecoderStream = streams.IconvLiteDecoderStream;
28073
+ exports.encodeStream = function encodeStream(encoding, options) {
28074
+ return new exports.IconvLiteEncoderStream(exports.getEncoder(encoding, options), options);
28070
28075
  };
28071
- iconv.decodeStream = function decodeStream(encoding, options) {
28072
- return new iconv.IconvLiteDecoderStream(iconv.getDecoder(encoding, options), options);
28076
+ exports.decodeStream = function decodeStream(encoding, options) {
28077
+ return new exports.IconvLiteDecoderStream(exports.getDecoder(encoding, options), options);
28073
28078
  };
28074
- iconv.supportsStreams = true;
28079
+ exports.supportsStreams = true;
28075
28080
  };
28076
28081
  var streamModule;
28077
28082
  try {
28078
28083
  streamModule = __require("stream");
28079
28084
  } catch (e) {}
28080
28085
  if (streamModule && streamModule.Transform) {
28081
- iconv.enableStreamingAPI(streamModule);
28086
+ exports.enableStreamingAPI(streamModule);
28082
28087
  } else {
28083
- iconv.encodeStream = iconv.decodeStream = function() {
28088
+ exports.encodeStream = exports.decodeStream = function() {
28084
28089
  throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.");
28085
28090
  };
28086
28091
  }
@@ -52916,7 +52921,7 @@ async function initOtel(serviceRole = process.env.AGENT_ROLE || "api") {
52916
52921
  return;
52917
52922
  initialized = true;
52918
52923
  try {
52919
- const impl = await import("./otel-impl-and31m5s.js");
52924
+ const impl = await import("./otel-impl-6pf5cv86.js");
52920
52925
  await impl.boot(serviceRole, {
52921
52926
  exportConsoleLogs: serviceRole === "api" && isApiLogExportEnabled()
52922
52927
  });
@@ -54588,15 +54593,15 @@ async function initSlackApp() {
54588
54593
  });
54589
54594
  initialized2 = true;
54590
54595
  app.use(slackInboundOutcomeMiddleware());
54591
- const { registerMessageHandler } = await import("./handlers-c7yggm37.js");
54592
- const { registerCommandHandler } = await import("./commands-d7eah0y9.js");
54593
- const { registerActionHandlers } = await import("./actions-rc2yjk8a.js");
54594
- const { registerWorkObjectHandlers } = await import("./work-objects-0zzdnbt9.js");
54596
+ const { registerMessageHandler } = await import("./handlers-s20xr10r.js");
54597
+ const { registerCommandHandler } = await import("./commands-n0hshcvs.js");
54598
+ const { registerActionHandlers } = await import("./actions-pw87a1a8.js");
54599
+ const { registerWorkObjectHandlers } = await import("./work-objects-tb7ycye8.js");
54595
54600
  registerMessageHandler(app);
54596
54601
  registerCommandHandler(app);
54597
54602
  registerActionHandlers(app);
54598
54603
  registerWorkObjectHandlers(app);
54599
- const { createAssistant } = await import("./assistant-vhmjd8wf.js");
54604
+ const { createAssistant } = await import("./assistant-emp1e108.js");
54600
54605
  app.assistant(createAssistant());
54601
54606
  return app;
54602
54607
  }
@@ -54605,7 +54610,7 @@ async function startSlackApp() {
54605
54610
  await initSlackApp();
54606
54611
  }
54607
54612
  if (app) {
54608
- const { isSlackRenderV2Enabled: isSlackRenderV2Enabled2 } = await import("./render-v2-81cg1y52.js");
54613
+ const { isSlackRenderV2Enabled: isSlackRenderV2Enabled2 } = await import("./render-v2-pd1rg54q.js");
54609
54614
  if (isSlackRenderV2Enabled2())
54610
54615
  await ensureSlackRenderV2Activation();
54611
54616
  await app.start();
@@ -55753,7 +55758,7 @@ async function conclusionResultsLines(closure) {
55753
55758
  const agentName = await agentDisplayNameFor(member);
55754
55759
  const card = await getSlackOutcomeMessage(member.id);
55755
55760
  if (card?.permalink) {
55756
- lines.push(`↳ ${glyph} ${agentName} — ${card.permalink}`);
55761
+ lines.push(`↳ ${glyph} ${agentName} — [result](${card.permalink})`);
55757
55762
  continue;
55758
55763
  }
55759
55764
  const raw = outcomeText(member.status === "failed" ? member.failureReason : slackTaskOutput(member), "");
@@ -56046,7 +56051,7 @@ async function resolvedDeferralContent(wake) {
56046
56051
  return { text: presentation, blocks: [{ type: "markdown", text: presentation }, ...captions] };
56047
56052
  }
56048
56053
  const card = await getSlackOutcomeMessage(wake.id);
56049
- const pointer = card?.permalink ? ` — ${card.permalink}` : ".";
56054
+ const pointer = card?.permalink ? ` — <${card.permalink}|next update>` : ".";
56050
56055
  return { text: `↪️ Resumed by ${await agentDisplayNameFor(wake)} and deferred again${pointer}` };
56051
56056
  }
56052
56057
  async function isAnsweredByDeferralCard(task, threadTasks) {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DEFAULT_MODEL,
3
3
  resolveCredential
4
- } from "./cli-x61srfpp.js";
4
+ } from "./cli-xczpdp9e.js";
5
5
  import {
6
6
  getSlackApp
7
- } from "./cli-nkjwe4z7.js";
7
+ } from "./cli-9xsmdpdt.js";
8
8
  import {
9
9
  claimApprovalCancellationNotification,
10
10
  completeApprovalCancellationNotificationClaim,
@@ -12,7 +12,7 @@ import {
12
12
  getTaskById,
13
13
  init_db1 as init_db,
14
14
  releaseApprovalCancellationNotificationClaim
15
- } from "./cli-0d2rqhvq.js";
15
+ } from "./cli-tgpfnm6r.js";
16
16
  import {
17
17
  TERMINAL_TASK_STATUSES,
18
18
  init_types
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  init_resolver,
22
22
  resolveTemplate
23
- } from "./cli-5c2j5yvx.js";
23
+ } from "./cli-fdvbjtbw.js";
24
24
  import {
25
25
  DEFAULT_OPENROUTER_BASE_URL,
26
26
  getOpenRouterAttributionHeaders,
@@ -433,7 +433,7 @@ class HumanInTheLoopExecutor extends BaseExecutor {
433
433
  }
434
434
  if (notification.channel === "slack") {
435
435
  try {
436
- const { getSlackApp: getSlackApp2 } = await import("./app-04ab2s0z.js");
436
+ const { getSlackApp: getSlackApp2 } = await import("./app-wmf0m843.js");
437
437
  const slackApp = getSlackApp2();
438
438
  if (!slackApp) {
439
439
  console.warn("[HITL] Slack not initialized — cannot send notification");