@desplega.ai/agent-swarm 2.4.0 → 2.4.2

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 (239) hide show
  1. package/README.md +1 -1
  2. package/dist/{acp-adapter-kedstxx6.js → acp-adapter-dv7hmx4r.js} +9 -9
  3. package/dist/{actions-vget6r1k.js → actions-51nc1gny.js} +21 -21
  4. package/dist/{amp-adapter-xeb5mktv.js → amp-adapter-abp5tdx8.js} +4 -4
  5. package/dist/{app-mqap8t8m.js → app-9h14qvr6.js} +3 -3
  6. package/dist/{assistant-h0gv97mv.js → assistant-wv1gz3mt.js} +22 -22
  7. package/dist/{boot-reembed-qr8a894z.js → boot-reembed-6yn53ms9.js} +1 -1
  8. package/dist/{boot-reembed-rj85jjhw.js → boot-reembed-7fcka4z5.js} +1 -1
  9. package/dist/{boot-scrub-sweep-eyfvn6v9.js → boot-scrub-sweep-pm1580ax.js} +4 -4
  10. package/dist/{boot-seeds-xs9a8dx1.js → boot-seeds-g5hfc1x8.js} +4 -4
  11. package/dist/{claude-adapter-bm23cye7.js → claude-adapter-gf3kxhf0.js} +9 -9
  12. package/dist/{claude-managed-adapter-1mwrsm9d.js → claude-managed-adapter-h2y889ge.js} +2 -2
  13. package/dist/{claude-managed-setup-gkfgks4j.js → claude-managed-setup-h00hsgtz.js} +2 -2
  14. package/dist/{claude-sdk-session-apb4ypz3.js → claude-sdk-session-s2k1qd8y.js} +13 -13
  15. package/dist/{cli-tj4j2ts4.js → cli-02qm7src.js} +8 -8
  16. package/dist/{cli-1cevz46c.js → cli-0qvtffe9.js} +6 -6
  17. package/dist/{cli-avmqhatn.js → cli-10hhg0km.js} +8 -8
  18. package/dist/{cli-7gh7020n.js → cli-1dmcq2eh.js} +1 -1
  19. package/dist/{cli-kz116kvw.js → cli-239yjk27.js} +7 -7
  20. package/dist/{cli-7ayprxp7.js → cli-2dfbv8qr.js} +8 -0
  21. package/dist/{cli-a49vpbf3.js → cli-5kqnemen.js} +1 -1
  22. package/dist/{cli-x719j3vs.js → cli-5rk36sjf.js} +442 -205
  23. package/dist/{cli-fb6t92v8.js → cli-6x9ma5w5.js} +1 -1
  24. package/dist/{cli-c8fwpgqb.js → cli-7225gwj7.js} +2 -2
  25. package/dist/{cli-5s5hx57y.js → cli-7awf1fp8.js} +1 -1
  26. package/dist/{cli-bn26xbcs.js → cli-8nyhf7za.js} +1 -1
  27. package/dist/{cli-ywyrffff.js → cli-8sxqsbbq.js} +1 -1
  28. package/dist/{cli-rsd7ga7v.js → cli-8zwe9mpk.js} +11 -11
  29. package/dist/{cli-y83zk5sb.js → cli-a0kcty51.js} +4 -4
  30. package/dist/{cli-8b9wvjps.js → cli-a4gvwttf.js} +4 -4
  31. package/dist/{cli-jhp7w1fy.js → cli-a5ebc95n.js} +2 -2
  32. package/dist/{cli-mvg2hf8p.js → cli-ahtpy9kf.js} +14 -7
  33. package/dist/{cli-x1p5dhq2.js → cli-bcj753sq.js} +3 -3
  34. package/dist/{cli-p22zdvnt.js → cli-bn0rewsy.js} +3 -3
  35. package/dist/{cli-p1m2b6gc.js → cli-d2mb5s8a.js} +7 -7
  36. package/dist/{cli-rg7ntypm.js → cli-d3qqdy4c.js} +456 -94
  37. package/dist/{cli-c5sbmw1v.js → cli-d82btycs.js} +94 -15
  38. package/dist/{cli-02vhhssk.js → cli-efaqv1c7.js} +5 -5
  39. package/dist/{cli-vjfpshn3.js → cli-ejs3m1sx.js} +1 -1
  40. package/dist/{cli-kk2r80n5.js → cli-faypxz7q.js} +4 -4
  41. package/dist/{cli-a1esmmee.js → cli-fpmsqq59.js} +7 -2
  42. package/dist/{cli-wrv09v7q.js → cli-ftyypbg5.js} +1 -1
  43. package/dist/{cli-zvze9rbm.js → cli-fyzjmseb.js} +3 -3
  44. package/dist/{cli-8rwvksbc.js → cli-g0hgtz4p.js} +5 -5
  45. package/dist/{cli-nrrg0fvy.js → cli-h38rjv87.js} +133 -12
  46. package/dist/{cli-tg9ksbn8.js → cli-h93c9vb3.js} +2 -2
  47. package/dist/{cli-eqgfs202.js → cli-hqhzg1qq.js} +2 -2
  48. package/dist/{cli-bhwa8rzc.js → cli-hyfw2j1e.js} +13 -12
  49. package/dist/{cli-3wjs22x3.js → cli-j4rqdf2n.js} +2 -2
  50. package/dist/{cli-6ftrrwm1.js → cli-n85dqg6d.js} +5 -5
  51. package/dist/{cli-8cxkw1f5.js → cli-nmqdc2t3.js} +2 -2
  52. package/dist/{cli-4fhyq711.js → cli-nn47d7e8.js} +13 -13
  53. package/dist/{cli-x3en6ct3.js → cli-nwyw3zhg.js} +1 -1
  54. package/dist/{cli-3avfh5az.js → cli-pemywhfq.js} +2 -2
  55. package/dist/{cli-xfe63zx3.js → cli-pkht5hap.js} +2 -2
  56. package/dist/{cli-sppc0cmw.js → cli-pnp2j5zg.js} +2 -2
  57. package/dist/{cli-wk8ccrz6.js → cli-pw7v69vp.js} +2 -2
  58. package/dist/{cli-tgvpmnwz.js → cli-r99kc9yq.js} +5 -5
  59. package/dist/{cli-bfc3k1x5.js → cli-rdyw3mct.js} +9 -9
  60. package/dist/{cli-b80a1100.js → cli-s6vr7r2d.js} +2 -2
  61. package/dist/{cli-zv4vy2b0.js → cli-s95dknxh.js} +1 -1
  62. package/dist/{cli-ttaz6c7m.js → cli-saw9a6f6.js} +6 -5
  63. package/dist/{cli-mz1ezzzh.js → cli-shvfedvm.js} +3 -3
  64. package/dist/{cli-rdr166ht.js → cli-smvcw9z5.js} +1 -1
  65. package/dist/{cli-2rwet3r7.js → cli-sv5gb0yb.js} +1 -1
  66. package/dist/{cli-5ff2sjyt.js → cli-t30yj95q.js} +2 -2
  67. package/dist/{cli-ptkpaqfy.js → cli-wt645v7q.js} +1 -1
  68. package/dist/{cli-f3nx1h8z.js → cli-wxbn3yfx.js} +2 -2
  69. package/dist/{cli-wyrr38xm.js → cli-x5mq1fyq.js} +1 -1
  70. package/dist/{cli-ccn0eybf.js → cli-xbzvet96.js} +6 -6
  71. package/dist/{cli-4mkvwgzr.js → cli-xf234ws8.js} +1 -1
  72. package/dist/{cli-nme7wery.js → cli-y2x52gs2.js} +46 -13
  73. package/dist/{cli-ffbrkh1r.js → cli-y8n5k515.js} +46 -38
  74. package/dist/{cli-ecshf504.js → cli-z4wd2ftv.js} +7 -7
  75. package/dist/{cli-dsgj3e7a.js → cli-zfg9enh9.js} +2 -2
  76. package/dist/{cli-yxqag76b.js → cli-zw88zjba.js} +1 -1
  77. package/dist/cli.js +20 -20
  78. package/dist/{codex-adapter-pp2gq8gr.js → codex-adapter-ttygw382.js} +6 -6
  79. package/dist/{codex-hook-qwzccd64.js → codex-hook-x7nejyrr.js} +7 -4
  80. package/dist/{codex-login-35p4sk85.js → codex-login-m819c41r.js} +1 -1
  81. package/dist/{codex-session-runner-0vzn09t8.js → codex-session-runner-60b58vv3.js} +7 -7
  82. package/dist/{commands-psqhkttb.js → commands-edmdwa4x.js} +2 -2
  83. package/dist/{controller-t20vz2k8.js → controller-m263fg43.js} +4 -4
  84. package/dist/{controllers-connect-gkxmqw9d.js → controllers-connect-5fym8sw1.js} +23 -23
  85. package/dist/{cursor-adapter-3v542qe5.js → cursor-adapter-cz6nm6mj.js} +3 -3
  86. package/dist/{db-nc1rd869.js → db-2y0mgstc.js} +3 -3
  87. package/dist/{db-2xbyenjr.js → db-nn0hcmx5.js} +6 -2
  88. package/dist/{devin-adapter-7egzmt0k.js → devin-adapter-zgqadvnm.js} +1 -1
  89. package/dist/{dispatcher-ewceb8ts.js → dispatcher-0a9wwjcx.js} +20 -20
  90. package/dist/{docker-njavd3fb.js → docker-fkgtr75t.js} +2 -2
  91. package/dist/{dsh-adapter-75xwh78t.js → dsh-adapter-3n3net33.js} +3 -3
  92. package/dist/{e2b-5r6a5jeb.js → e2b-7am6tmq6.js} +2 -2
  93. package/dist/{e2b-pw1nvtmh.js → e2b-thdcxtjd.js} +2 -2
  94. package/dist/{easter-egg-3d-xsc47jwf.js → easter-egg-3d-5cgynaja.js} +1 -1
  95. package/dist/{event-bus-101fenkh.js → event-bus-9vpk8gmq.js} +1 -1
  96. package/dist/{execute-gzmw1mnw.js → execute-t4e6m3rw.js} +1 -1
  97. package/dist/{external-channel-a5dsmxn4.js → external-channel-zhvt95n3.js} +2 -2
  98. package/dist/{grok-adapter-vj88xr23.js → grok-adapter-qnr1hp2y.js} +10 -10
  99. package/dist/handlers-dkcarkd0.js +39 -0
  100. package/dist/{heartbeat-t2m9r3wa.js → heartbeat-gz97r7ac.js} +23 -23
  101. package/dist/{hook-xa677f8r.js → hook-1mmdgjqs.js} +16 -9
  102. package/dist/{hook-8femx1bg.js → hook-x8rthca4.js} +6 -6
  103. package/dist/{http-xpmmq028.js → http-r8f85xr9.js} +274 -160
  104. package/dist/index-5jecgp3n.js +41 -0
  105. package/dist/index-aex0eba9.js +40 -0
  106. package/dist/{index-syztqdt6.js → index-g6tbb6ve.js} +1 -1
  107. package/dist/{index-cdzyfrsp.js → index-smxyk04s.js} +1 -1
  108. package/dist/{index-dg2tmj99.js → index-vzvfqzfj.js} +20 -20
  109. package/dist/{index-s7ckdajq.js → index-y7rbcrc1.js} +10 -10
  110. package/dist/{keepalive-3nr4st3r.js → keepalive-64c0f34c.js} +4 -4
  111. package/dist/lead-b1da0f97.js +78 -0
  112. package/dist/{maintenance-verwpe2c.js → maintenance-mnxpar12.js} +1 -1
  113. package/dist/{oauth-refresh-sweep-9q2t0y3q.js → oauth-refresh-sweep-36hs2v4h.js} +3 -3
  114. package/dist/{onboard-aytqedmq.js → onboard-xes8de61.js} +3 -3
  115. package/dist/{opencode-adapter-f4hryjny.js → opencode-adapter-3s7ax02e.js} +7 -7
  116. package/dist/{otel-impl-hckw4wt1.js → otel-impl-fzc57kcq.js} +2 -2
  117. package/dist/{pi-mono-adapter-hxby0ce1.js → pi-mono-adapter-ytp7gz8b.js} +22 -11
  118. package/dist/{pricing-refresh-5nvme3sm.js → pricing-refresh-1nek2w7b.js} +3 -3
  119. package/dist/{rbac-roles-vbpy21mg.js → rbac-roles-sqefb5hw.js} +2 -2
  120. package/dist/{rbac-roles-pd8c26m1.js → rbac-roles-ttyfaep2.js} +1 -1
  121. package/dist/{render-v2-7nqgvk2q.js → render-v2-vb527jwn.js} +3 -3
  122. package/dist/{resume-b6djcj3c.js → resume-jcdzg1bn.js} +10 -8
  123. package/dist/{runtime-txrxc9za.js → runtime-xe3aqy4x.js} +1 -1
  124. package/dist/{session-access-fc3f9y12.js → session-access-zsp4wsp0.js} +4 -4
  125. package/dist/{setup-n39szm6b.js → setup-1nb2zqd3.js} +1 -1
  126. package/dist/{virtual-modules-wyp2k6z3.js → virtual-modules-4r3zkc20.js} +2 -2
  127. package/dist/{work-objects-jem2fre0.js → work-objects-61w08fwr.js} +23 -23
  128. package/dist/worker-c1e68hpa.js +78 -0
  129. package/dist/{x-8ewt8gxn.js → x-y45mthwn.js} +2 -2
  130. package/openapi.json +491 -52
  131. package/package.json +3 -3
  132. package/src/apps/action-runner.ts +146 -0
  133. package/src/apps/catalog.generated.json +3 -2
  134. package/src/apps/definition.ts +152 -4
  135. package/src/apps/row-store.ts +23 -9
  136. package/src/apps/schema-migrate.ts +14 -6
  137. package/src/apps/script-types.ts +2 -1
  138. package/src/apps/sync.ts +20 -19
  139. package/src/be/db/tasks/read.ts +112 -0
  140. package/src/be/db.ts +16 -4
  141. package/src/be/fleet-benchmark-stats.ts +10 -5
  142. package/src/be/models-catalog.ts +4 -0
  143. package/src/be/onboarding.ts +6 -0
  144. package/src/be/scripts/typecheck.ts +13 -0
  145. package/src/be/swarm-config-guard.ts +25 -1
  146. package/src/be/telemetry-enable.ts +1 -1
  147. package/src/commands/provider-credentials.ts +12 -2
  148. package/src/commands/runner.ts +3 -0
  149. package/src/heartbeat/heartbeat.ts +2 -2
  150. package/src/hooks/codex-hook.ts +6 -2
  151. package/src/hooks/hook.ts +7 -0
  152. package/src/hooks/pr-body-guard.ts +38 -11
  153. package/src/hooks/pr-room-guard.ts +88 -0
  154. package/src/http/agents.ts +1 -0
  155. package/src/http/apps.ts +99 -183
  156. package/src/http/fleet-benchmark.ts +79 -30
  157. package/src/http/global-config.ts +7 -0
  158. package/src/http/ranking.ts +24 -40
  159. package/src/http/status.ts +49 -43
  160. package/src/http/tasks.ts +49 -1
  161. package/src/http/telemetry-ui.ts +1 -1
  162. package/src/http/used-by.ts +55 -19
  163. package/src/http/users.ts +2 -2
  164. package/src/providers/acp-targets.ts +1 -1
  165. package/src/providers/amp-adapter.ts +1 -1
  166. package/src/providers/pi-mono-adapter.ts +15 -0
  167. package/src/providers/reasoning-effort.ts +2 -1
  168. package/src/providers/types.ts +2 -0
  169. package/src/ranking/telemetry-ranking.ts +5 -33
  170. package/src/scripts-runtime/sdk-allowlist.ts +7 -0
  171. package/src/scripts-runtime/types/stdlib.d.ts +31 -0
  172. package/src/scripts-runtime/types/swarm-sdk.d.ts +31 -0
  173. package/src/server.ts +4 -0
  174. package/src/telemetry-context.ts +19 -1
  175. package/src/telemetry-contract/EVENTS.md +42 -8
  176. package/src/telemetry-contract/SOURCE.json +6 -5
  177. package/src/telemetry-contract/catalog.json +225 -5
  178. package/src/telemetry-contract/ranking/fixtures/valid/no-claim.json +10 -0
  179. package/src/telemetry-contract/ranking/listing.v1.schema.json +2 -2
  180. package/src/telemetry-contract/types.gen.ts +225 -27
  181. package/src/telemetry-identity.ts +47 -9
  182. package/src/telemetry-snapshot.ts +9 -1
  183. package/src/telemetry-ui-events.ts +9 -2
  184. package/src/telemetry.ts +29 -6
  185. package/src/tests/app-action-run-tool.test.ts +178 -0
  186. package/src/tests/app-row-tools.test.ts +385 -0
  187. package/src/tests/apps-json-column.test.ts +611 -0
  188. package/src/tests/apps-script-types.test.ts +2 -0
  189. package/src/tests/apps-sync-engine.test.ts +42 -0
  190. package/src/tests/check-pr-body.test.ts +0 -23
  191. package/src/tests/credential-check.test.ts +38 -0
  192. package/src/tests/db-task-read-contract.test.ts +4 -0
  193. package/src/tests/db-task-write-contract.test.ts +2 -0
  194. package/src/tests/docs-index-footprint.test.js +2 -2
  195. package/src/tests/fleet-benchmark.test.ts +122 -2
  196. package/src/tests/http-users.test.ts +62 -1
  197. package/src/tests/model-catalog-table.test.ts +63 -0
  198. package/src/tests/model-profiles-api.test.ts +19 -7
  199. package/src/tests/models-catalog.test.ts +50 -0
  200. package/src/tests/onboarding.test.ts +21 -0
  201. package/src/tests/org-website.test.ts +62 -0
  202. package/src/tests/pi-mono-adapter.test.ts +23 -0
  203. package/src/tests/pr-body-leaks.test.ts +4 -0
  204. package/src/tests/pr-room-guard.test.ts +242 -0
  205. package/src/tests/ranking-listing.test.ts +8 -23
  206. package/src/tests/ranking-route.test.ts +49 -47
  207. package/src/tests/reasoning-effort.test.ts +39 -3
  208. package/src/tests/runner-harness-telemetry-env.test.ts +62 -1
  209. package/src/tests/status.test.ts +158 -9
  210. package/src/tests/swarm-tool-result-gate.test.ts +2 -4
  211. package/src/tests/task-lineage.test.ts +180 -0
  212. package/src/tests/telemetry-context.test.ts +128 -2
  213. package/src/tests/telemetry-init.test.ts +62 -5
  214. package/src/tests/telemetry-ui-route.test.ts +123 -0
  215. package/src/tests/tool-annotations.test.ts +3 -2
  216. package/src/tests/used-by-route.test.ts +144 -10
  217. package/src/tests/user-token-rest-auth.test.ts +38 -0
  218. package/src/tests/workflow-agent-task-retry.test.ts +130 -4
  219. package/src/tests/workflow-wait-recovery.test.ts +116 -4
  220. package/src/tools/app-action-run.ts +63 -0
  221. package/src/tools/app-rows.ts +239 -0
  222. package/src/tools/model-catalog/index.ts +1 -1
  223. package/src/tools/tool-config.ts +8 -0
  224. package/src/tools/utils.ts +1 -1
  225. package/src/tools/workflows/retry-workflow-run.ts +1 -1
  226. package/src/types.ts +17 -0
  227. package/src/utils/company-profile.ts +24 -0
  228. package/src/utils/org-website.ts +58 -21
  229. package/src/workflows/recovery.ts +10 -22
  230. package/src/workflows/resume.ts +16 -0
  231. package/src/workflows/task-step-routing.ts +47 -7
  232. package/templates/skills/apps/SKILL.md +44 -4
  233. package/templates/skills/apps/content.md +44 -4
  234. package/dist/handlers-zbs90bny.js +0 -39
  235. package/dist/index-8pwc1jc8.js +0 -40
  236. package/dist/index-nxa6me0q.js +0 -41
  237. package/dist/lead-td8h2sfn.js +0 -78
  238. package/dist/worker-wr6xgfr2.js +0 -78
  239. package/src/tests/check-ranking-entry.test.ts +0 -146
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  withRegistryCatalogSections,
3
3
  init_src2
4
- } from "./cli-x3en6ct3.js";
4
+ } from "./cli-nwyw3zhg.js";
5
5
  import {
6
6
  __esm
7
7
  } from "./cli-242037k3.js";
@@ -13,11 +13,11 @@ import {
13
13
  claudeMdLineageOf,
14
14
  planClaudeMdSync,
15
15
  init_profile_sync
16
- } from "./cli-wyrr38xm.js";
16
+ } from "./cli-x5mq1fyq.js";
17
17
  import {
18
18
  scrubSecrets,
19
19
  init_secret_scrubber
20
- } from "./cli-4mkvwgzr.js";
20
+ } from "./cli-xf234ws8.js";
21
21
 
22
22
  // src/commands/claude-md-session.ts
23
23
  init_file_lock();
@@ -2,7 +2,7 @@ import {
2
2
  getDb2,
3
3
  getDbClient2,
4
4
  init_db3
5
- } from "./cli-rg7ntypm.js";
5
+ } from "./cli-d3qqdy4c.js";
6
6
  import {
7
7
  PermissionVerbSchema,
8
8
  init_rbac
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  persistCodexOAuth,
12
12
  getValidCodexOAuth
13
- } from "./cli-vjfpshn3.js";
13
+ } from "./cli-ejs3m1sx.js";
14
14
  import {
15
15
  registerSessionResourceCleanup,
16
16
  cleanupSessionResources,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_package,
3
3
  package_default
4
- } from "./cli-mz1ezzzh.js";
4
+ } from "./cli-shvfedvm.js";
5
5
 
6
6
  // src/commands/shared/client-config.ts
7
7
  init_package();
@@ -4,7 +4,7 @@ import {
4
4
  CONTROLLER_COMMAND_TIMEOUT_MS,
5
5
  RuntimeHandleSchema,
6
6
  ControllerStatusResultSchema
7
- } from "./cli-eqgfs202.js";
7
+ } from "./cli-hqhzg1qq.js";
8
8
  import {
9
9
  getDbClient2,
10
10
  isRuntimePoolsEnabled,
@@ -21,7 +21,7 @@ import {
21
21
  upsertSwarmConfig2,
22
22
  getResolvedConfig2,
23
23
  init_db3
24
- } from "./cli-rg7ntypm.js";
24
+ } from "./cli-d3qqdy4c.js";
25
25
  import {
26
26
  runtimeStaleThresholdMinutes,
27
27
  getRuntimeInstanceById,
@@ -31,7 +31,7 @@ import {
31
31
  listRuntimeInstancesForPool,
32
32
  createWorkerTaskFollowUp,
33
33
  canClaim
34
- } from "./cli-x719j3vs.js";
34
+ } from "./cli-5rk36sjf.js";
35
35
  import {
36
36
  getRuntimeController2,
37
37
  getRuntimeControllerTarget2,
@@ -42,11 +42,11 @@ import {
42
42
  getPoolForAgent2,
43
43
  resolvePoolDelivery2,
44
44
  init_db
45
- } from "./cli-6ftrrwm1.js";
45
+ } from "./cli-n85dqg6d.js";
46
46
  import {
47
47
  workflowEventBus2,
48
48
  init_event_bus
49
- } from "./cli-ptkpaqfy.js";
49
+ } from "./cli-wt645v7q.js";
50
50
  import {
51
51
  isMultiRuntimeEnabled
52
52
  } from "./cli-7a91w22y.js";
@@ -57,16 +57,16 @@ import {
57
57
  canProvisionKind,
58
58
  createRuntimeProvider,
59
59
  init_runtime_providers
60
- } from "./cli-wk8ccrz6.js";
60
+ } from "./cli-pw7v69vp.js";
61
61
  import {
62
62
  mintRuntimeToken,
63
63
  init_users
64
- } from "./cli-8cxkw1f5.js";
64
+ } from "./cli-nmqdc2t3.js";
65
65
  import {
66
66
  TERMINAL_TASK_STATUSES,
67
67
  isTerminalTaskStatus,
68
68
  init_types
69
- } from "./cli-a1esmmee.js";
69
+ } from "./cli-fpmsqq59.js";
70
70
  import {
71
71
  init_zod
72
72
  } from "./cli-4chz1hye.js";
@@ -86,7 +86,7 @@ import {
86
86
  import {
87
87
  buildImageTemplate,
88
88
  init_dispatch
89
- } from "./cli-7gh7020n.js";
89
+ } from "./cli-1dmcq2eh.js";
90
90
  import {
91
91
  RUNTIME_LABELS,
92
92
  init_types2
@@ -95,7 +95,7 @@ import {
95
95
  scrubSecrets,
96
96
  registerVolatileSecret,
97
97
  init_secret_scrubber
98
- } from "./cli-4mkvwgzr.js";
98
+ } from "./cli-xf234ws8.js";
99
99
 
100
100
  // src/be/runtime-pools/supervisor.ts
101
101
  init_runtime_providers();
@@ -522,7 +522,7 @@ async function recoverSessions(runtimeId, reason) {
522
522
  }
523
523
  if (!sessions.length)
524
524
  return;
525
- const { remediateTaskForDeadRuntime } = await import("./heartbeat-t2m9r3wa.js");
525
+ const { remediateTaskForDeadRuntime } = await import("./heartbeat-gz97r7ac.js");
526
526
  for (const session of sessions) {
527
527
  try {
528
528
  const task = await getTaskById2(session.taskId);
@@ -9,7 +9,7 @@ import {
9
9
  getContextWindowSize,
10
10
  computeContextUsedUnified,
11
11
  clampContextPercent
12
- } from "./cli-jhp7w1fy.js";
12
+ } from "./cli-a5ebc95n.js";
13
13
  import {
14
14
  readPkgVersion
15
15
  } from "./cli-kr5tjjtz.js";
@@ -19,14 +19,14 @@ import {
19
19
  import {
20
20
  runtimeCatalogModel,
21
21
  init_runtime_model_catalog
22
- } from "./cli-fb6t92v8.js";
22
+ } from "./cli-6x9ma5w5.js";
23
23
  import {
24
24
  scrubSecrets,
25
25
  init_secret_scrubber
26
- } from "./cli-4mkvwgzr.js";
26
+ } from "./cli-xf234ws8.js";
27
27
  import {
28
28
  init_src2
29
- } from "./cli-x3en6ct3.js";
29
+ } from "./cli-nwyw3zhg.js";
30
30
 
31
31
  // src/providers/claude-managed-adapter.ts
32
32
  init_secret_scrubber();
@@ -2,7 +2,7 @@ import {
2
2
  CONTEXT_FORMULA,
3
3
  getContextWindowSize,
4
4
  clampContextPercent
5
- } from "./cli-jhp7w1fy.js";
5
+ } from "./cli-a5ebc95n.js";
6
6
  import {
7
7
  swarmRuntimeInstanceId
8
8
  } from "./cli-7a91w22y.js";
@@ -17,11 +17,11 @@ import {
17
17
  import {
18
18
  reasoningCapability,
19
19
  applyReasoningEffort
20
- } from "./cli-p22zdvnt.js";
20
+ } from "./cli-bn0rewsy.js";
21
21
  import {
22
22
  DEFAULT_MODEL_TIER_MAP,
23
23
  init_types
24
- } from "./cli-a1esmmee.js";
24
+ } from "./cli-fpmsqq59.js";
25
25
  import {
26
26
  getOpenRouterBaseUrl,
27
27
  getOpenRouterAttributionHeaders,
@@ -31,7 +31,7 @@ import {
31
31
  scrubSecrets,
32
32
  registerVolatileSecret,
33
33
  init_secret_scrubber
34
- } from "./cli-4mkvwgzr.js";
34
+ } from "./cli-xf234ws8.js";
35
35
 
36
36
  // src/providers/dsh-adapter.ts
37
37
  init_types();
@@ -2,11 +2,11 @@ import {
2
2
  runtimeCatalogSection,
3
3
  runtimeCatalogModel,
4
4
  init_runtime_model_catalog
5
- } from "./cli-fb6t92v8.js";
5
+ } from "./cli-6x9ma5w5.js";
6
6
  import {
7
7
  buildClaudeShortnameMap,
8
8
  init_src2
9
- } from "./cli-x3en6ct3.js";
9
+ } from "./cli-nwyw3zhg.js";
10
10
 
11
11
  // src/utils/context-window.ts
12
12
  init_src2();
@@ -8,13 +8,14 @@ import {
8
8
  import {
9
9
  materializeClaudeMd,
10
10
  stopClaudeMd
11
- } from "./cli-c8fwpgqb.js";
11
+ } from "./cli-7225gwj7.js";
12
12
  import {
13
13
  summarizeSession
14
- } from "./cli-sppc0cmw.js";
14
+ } from "./cli-pnp2j5zg.js";
15
15
  import {
16
- guardGhPrBody
17
- } from "./cli-c5sbmw1v.js";
16
+ guardGhPrBody,
17
+ guardGhPrRoom
18
+ } from "./cli-d82btycs.js";
18
19
  import {
19
20
  checkToolLoop,
20
21
  clearToolHistory
@@ -26,11 +27,11 @@ import {
26
27
  warnProfileFileTooLarge,
27
28
  buildIndependentIdentityPayloads,
28
29
  init_profile_sync
29
- } from "./cli-wyrr38xm.js";
30
+ } from "./cli-x5mq1fyq.js";
30
31
  import {
31
32
  init_package,
32
33
  package_default
33
- } from "./cli-mz1ezzzh.js";
34
+ } from "./cli-shvfedvm.js";
34
35
  import {
35
36
  MAX_PROFILE_FILE_LENGTH,
36
37
  getMcpBaseUrl,
@@ -43,7 +44,7 @@ import {
43
44
  import {
44
45
  scrubSecrets,
45
46
  init_secret_scrubber
46
- } from "./cli-4mkvwgzr.js";
47
+ } from "./cli-xf234ws8.js";
47
48
 
48
49
  // src/hooks/hook.ts
49
50
  init_package();
@@ -732,6 +733,12 @@ You do not have a pre-defined agent ID, you will receive one when you join the s
732
733
  process.exitCode = 2;
733
734
  return;
734
735
  }
736
+ const prRoomBlock = await guardGhPrRoom(msg.tool_input, msg.cwd ?? process.cwd());
737
+ if (prRoomBlock) {
738
+ console.error(prRoomBlock);
739
+ process.exitCode = 2;
740
+ return;
741
+ }
735
742
  }
736
743
  let loopWarning;
737
744
  if (agentInfo && !agentInfo.isLead && agentInfo.status === "busy") {
@@ -2,17 +2,17 @@ import {
2
2
  getKv2,
3
3
  upsertKv2,
4
4
  init_db3
5
- } from "./cli-rg7ntypm.js";
5
+ } from "./cli-d3qqdy4c.js";
6
6
  import {
7
7
  resolveIdentity,
8
8
  recordUnmappedIdentity
9
- } from "./cli-x719j3vs.js";
9
+ } from "./cli-5rk36sjf.js";
10
10
  import {
11
11
  findUserByExternalId,
12
12
  findOrCreateUserByEmail,
13
13
  linkIdentity,
14
14
  init_users
15
- } from "./cli-8cxkw1f5.js";
15
+ } from "./cli-nmqdc2t3.js";
16
16
 
17
17
  // src/slack/enrich.ts
18
18
  init_db3();
@@ -2,7 +2,7 @@ import {
2
2
  runtimeCatalogSection,
3
3
  runtimeCatalogModel,
4
4
  init_runtime_model_catalog
5
- } from "./cli-fb6t92v8.js";
5
+ } from "./cli-6x9ma5w5.js";
6
6
  import {
7
7
  dshCatalogRef,
8
8
  grokCatalogRef,
@@ -10,7 +10,7 @@ import {
10
10
  reasoningLevelsFor,
11
11
  claudeCatalogModelId,
12
12
  init_src2
13
- } from "./cli-x3en6ct3.js";
13
+ } from "./cli-nwyw3zhg.js";
14
14
 
15
15
  // src/providers/reasoning-effort.ts
16
16
  init_src2();
@@ -80,7 +80,7 @@ var ANTHROPIC_BUDGET_TOKENS_BY_LEVEL = {
80
80
  function buildOpencodeReasoningOptions(providerId, level) {
81
81
  if (providerId === "anthropic") {
82
82
  if (level === "max")
83
- return { reasoningEffort: level };
83
+ return { effort: level };
84
84
  return { thinking: { type: "enabled", budgetTokens: ANTHROPIC_BUDGET_TOKENS_BY_LEVEL[level] } };
85
85
  }
86
86
  if (providerId === "openrouter") {
@@ -34,7 +34,7 @@ import {
34
34
  stream4,
35
35
  streamSimple2,
36
36
  completeSimple
37
- } from "./cli-bn26xbcs.js";
37
+ } from "./cli-8nyhf7za.js";
38
38
  import {
39
39
  parseStreamingJson
40
40
  } from "./cli-kvzgak7c.js";
@@ -54114,7 +54114,7 @@ function loadAllHighlightLanguages() {
54114
54114
  if (!allLanguagesPromise) {
54115
54115
  allLanguagesPromise = new Promise((resolve) => {
54116
54116
  setImmediate(() => {
54117
- import("./index-syztqdt6.js").then((m)=>__toESM(m.default,1)).then(() => resolve(), () => {
54117
+ import("./index-g6tbb6ve.js").then((m)=>__toESM(m.default,1)).then(() => resolve(), () => {
54118
54118
  resolve();
54119
54119
  });
54120
54120
  });
@@ -60228,7 +60228,7 @@ function getCreateJiti() {
60228
60228
  }
60229
60229
  var virtualModulesPromise;
60230
60230
  function getVirtualModules() {
60231
- virtualModulesPromise ??= import("./virtual-modules-wyp2k6z3.js").then((module) => module.VIRTUAL_MODULES);
60231
+ virtualModulesPromise ??= import("./virtual-modules-4r3zkc20.js").then((module) => module.VIRTUAL_MODULES);
60232
60232
  return virtualModulesPromise;
60233
60233
  }
60234
60234
  var _aliases = null;
@@ -79942,7 +79942,7 @@ function parseCodemodeSource(input) {
79942
79942
  }
79943
79943
 
79944
79944
  // node_modules/@earendil-works/pi-coding-agent/dist/extensions/codemode/execute.lazy.js
79945
- var loadCodemodeExecutor = () => import("./execute-gzmw1mnw.js");
79945
+ var loadCodemodeExecutor = () => import("./execute-t4e6m3rw.js");
79946
79946
 
79947
79947
  // node_modules/@earendil-works/pi-coding-agent/dist/extensions/codemode/renderer.js
79948
79948
  var CODE_PREVIEW_LINES = 10;
@@ -81098,7 +81098,7 @@ function createMcpResourceToolDefinitions(options) {
81098
81098
  }
81099
81099
 
81100
81100
  // node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/runtime.lazy.js
81101
- var loadMcpRuntime = () => import("./runtime-txrxc9za.js");
81101
+ var loadMcpRuntime = () => import("./runtime-xe3aqy4x.js");
81102
81102
 
81103
81103
  // node_modules/@earendil-works/pi-coding-agent/dist/utils/clipboard.js
81104
81104
  import { randomUUID as randomUUID3 } from "node:crypto";
@@ -86218,7 +86218,7 @@ var builtInExtensions = [
86218
86218
  ];
86219
86219
 
86220
86220
  // node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/cli.lazy.js
86221
- var loadMcpCommand = () => import("./cli-3wjs22x3.js");
86221
+ var loadMcpCommand = () => import("./cli-j4rqdf2n.js");
86222
86222
 
86223
86223
  // node_modules/@earendil-works/pi-coding-agent/dist/migrations.js
86224
86224
  import { existsSync as existsSync23, mkdirSync as mkdirSync11, readdirSync as readdirSync10, readFileSync as readFileSync17, renameSync as renameSync2, rmSync as rmSync3, writeFileSync as writeFileSync11 } from "fs";
@@ -88745,7 +88745,7 @@ function playEasterEgg3d(tui, egg) {
88745
88745
  if (tui.hasOverlay())
88746
88746
  return true;
88747
88747
  const screen = tui.getScreenLines();
88748
- import("./easter-egg-3d-xsc47jwf.js").then((module) => module.playEasterEgg3d(tui, screen, egg), () => {});
88748
+ import("./easter-egg-3d-5cgynaja.js").then((module) => module.playEasterEgg3d(tui, screen, egg), () => {});
88749
88749
  return true;
88750
88750
  }
88751
88751
  function playPiLogo3d(tui, column, row) {