@desplega.ai/agent-swarm 1.165.0 → 1.166.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 (188) hide show
  1. package/dist/{acp-adapter-w6zws6me.js → acp-adapter-yzfxn8vj.js} +4 -4
  2. package/dist/{actions-jna0b3wm.js → actions-qz3m692w.js} +20 -24
  3. package/dist/{amp-adapter-0eve81pz.js → amp-adapter-j1xbmsqz.js} +4 -4
  4. package/dist/{app-75hm5cfa.js → app-43vrdmv8.js} +6 -7
  5. package/dist/{assistant-yzd51j33.js → assistant-ertffmka.js} +21 -25
  6. package/dist/{boot-reembed-z158xq32.js → boot-reembed-998jtpdg.js} +9 -12
  7. package/dist/{boot-reembed-2ex2mcsh.js → boot-reembed-s7k7c6v2.js} +10 -12
  8. package/dist/boot-scrub-sweep-nepsk4t1.js +211 -0
  9. package/dist/{boot-seeds-2bmnh18p.js → boot-seeds-vvzs1zhk.js} +8 -8
  10. package/dist/{claude-adapter-jbj1mycz.js → claude-adapter-2zvmekrp.js} +9 -11
  11. package/dist/{claude-managed-adapter-17ggz09t.js → claude-managed-adapter-s49wbk8t.js} +3 -3
  12. package/dist/{claude-managed-setup-ptm1nzm2.js → claude-managed-setup-cvhqq8qn.js} +4 -4
  13. package/dist/{claude-sdk-session-9re1g7r2.js → claude-sdk-session-kkbxtw5q.js} +2618 -2600
  14. package/dist/{cli-k6xx3pve.js → cli-0nhdwxd5.js} +4 -4
  15. package/dist/{cli-n9ehc28t.js → cli-0qjcsxgz.js} +4 -4
  16. package/dist/{cli-zn2v3t8v.js → cli-3ddybbbx.js} +1 -1
  17. package/dist/{cli-5anb0ev3.js → cli-3qn4r334.js} +71 -14
  18. package/dist/{cli-1kzfvd1z.js → cli-4r1sjfc4.js} +9 -5
  19. package/dist/{cli-ba66wyhy.js → cli-66zh26sp.js} +6 -6
  20. package/dist/{cli-9xb89xca.js → cli-68r1j4sg.js} +6 -6
  21. package/dist/{cli-xnzrzets.js → cli-8kgvmkak.js} +2 -2
  22. package/dist/{cli-28smfvbn.js → cli-8t229cmr.js} +5 -5
  23. package/dist/{cli-9866bd07.js → cli-aqcey741.js} +1 -1
  24. package/dist/{cli-90v942q1.js → cli-cpfmqz3n.js} +8 -8
  25. package/dist/{cli-50eg13rj.js → cli-df56tqdw.js} +459 -282
  26. package/dist/{cli-8gpbwy09.js → cli-dw2q9f7g.js} +5 -5
  27. package/dist/{cli-0n4fasz0.js → cli-ecknp7p1.js} +15 -15
  28. package/dist/{cli-xb3c6aat.js → cli-f2n17zhp.js} +1 -1
  29. package/dist/{cli-ftry7975.js → cli-feh3dkah.js} +1 -1
  30. package/dist/{cli-amwhs8h2.js → cli-fn697bnt.js} +2 -2
  31. package/dist/{cli-prt9emct.js → cli-gt8azyet.js} +3 -3
  32. package/dist/{cli-59jn5twa.js → cli-h3x613ze.js} +2 -2
  33. package/dist/{cli-mmzwwptd.js → cli-hf5s9pgf.js} +1 -1
  34. package/dist/cli-j2jbr8af.js +516 -0
  35. package/dist/{cli-wfajtmf7.js → cli-jhm6hzjn.js} +593 -10
  36. package/dist/{cli-xtgtyafv.js → cli-jvj6a0cv.js} +190 -439
  37. package/dist/{cli-hpryr6em.js → cli-mb75wpxf.js} +1 -1
  38. package/dist/{cli-420bdgw0.js → cli-mv2520nm.js} +1 -1
  39. package/dist/{cli-pjxnr1jn.js → cli-mwegs4af.js} +3 -3
  40. package/dist/{cli-5b2fjjzh.js → cli-p4ztb80h.js} +2 -2
  41. package/dist/{cli-e7t4snpa.js → cli-rggdq8wq.js} +4 -4
  42. package/dist/{cli-bdv39kgj.js → cli-rsy933yz.js} +5 -5
  43. package/dist/{cli-gh5yqzpe.js → cli-v2a8x45d.js} +2 -2
  44. package/dist/{cli-bns5c8k9.js → cli-vzc73wet.js} +43 -47
  45. package/dist/cli-wt7ccy4r.js +2654 -0
  46. package/dist/{cli-j0pdrmwg.js → cli-x7kpr72a.js} +3 -3
  47. package/dist/{cli-x7afk5wm.js → cli-xvc3q9br.js} +1 -1
  48. package/dist/{cli-9s3h836g.js → cli-xvdgasgy.js} +1 -1
  49. package/dist/{cli-zvckv750.js → cli-y59h2pk9.js} +2 -2
  50. package/dist/{cli-qdv8kgz7.js → cli-yshaazs1.js} +13884 -3241
  51. package/dist/{cli-nfygw434.js → cli-ysnyhws9.js} +2 -2
  52. package/dist/{cli-fw6vdcq5.js → cli-zp67qg5x.js} +34 -1
  53. package/dist/{cli-ma3zvh39.js → cli-zy7vwsne.js} +6066 -5829
  54. package/dist/cli.js +24 -20
  55. package/dist/{codex-adapter-3qnxshje.js → codex-adapter-dw1wxqt8.js} +7 -7
  56. package/dist/{codex-login-brkxhhdg.js → codex-login-terbdsqq.js} +2 -2
  57. package/dist/{codex-session-runner-612wnapp.js → codex-session-runner-3cgb8y1g.js} +7 -7
  58. package/dist/{commands-2ybfcxkj.js → commands-mhxam6z2.js} +6 -6
  59. package/dist/{cursor-adapter-p3jgdehv.js → cursor-adapter-2qda3st7.js} +3 -3
  60. package/dist/{db-f4ans0jj.js → db-sjks418k.js} +8 -6
  61. package/dist/{devin-adapter-dhzt01ff.js → devin-adapter-bffjj5n4.js} +2 -2
  62. package/dist/{dispatcher-pk182apd.js → dispatcher-1es759rn.js} +18 -22
  63. package/dist/{dsh-adapter-7twaeps1.js → dsh-adapter-bek4cyw9.js} +3 -3
  64. package/dist/{e2b-y8t3jzyz.js → e2b-nd50eccg.js} +1 -1
  65. package/dist/{event-bus-w7ac4n3c.js → event-bus-vnfthafg.js} +2 -2
  66. package/dist/{grok-adapter-yt9pab3k.js → grok-adapter-ar9cw9jg.js} +5 -5
  67. package/dist/{handlers-g2wnr4t9.js → handlers-1gkbhktr.js} +21 -25
  68. package/dist/{hook-f7jt9vnm.js → hook-ds2zxq9v.js} +14 -16
  69. package/dist/{hook-bbdpnkb4.js → hook-vxa3tcsy.js} +8 -10
  70. package/dist/{http-w40q4w94.js → http-3h21z9md.js} +247 -164
  71. package/dist/{index-056j5kzn.js → index-9b65j1m5.js} +8 -8
  72. package/dist/{index-9bfssf54.js → index-bn6cy8ps.js} +18 -22
  73. package/dist/{index-cj1r9q83.js → index-dkfxpkmm.js} +19 -23
  74. package/dist/{index-7n70jwbb.js → index-f8xnqrye.js} +19 -21
  75. package/dist/{index-fdk1t4d6.js → index-n0rxa4ca.js} +11962 -9900
  76. package/dist/{index-k8xc083e.js → index-n99fycq7.js} +18 -22
  77. package/dist/{keepalive-1tj10tf4.js → keepalive-3xspa9jw.js} +11 -8
  78. package/dist/{lead-st0bg7v4.js → lead-6qphc124.js} +34 -38
  79. package/dist/{maintenance-nz71zats.js → maintenance-0teem1bb.js} +7 -9
  80. package/dist/{node-f0ykebbv.js → node-9sg7ajby.js} +25 -7
  81. package/dist/{oauth-refresh-sweep-aefzwvvq.js → oauth-refresh-sweep-sh9q25xp.js} +10 -7
  82. package/dist/{onboard-kgpr9mbn.js → onboard-54qmnqxe.js} +2 -2
  83. package/dist/{opencode-adapter-0c8e70dk.js → opencode-adapter-wjfa2wvd.js} +2 -2
  84. package/dist/{otel-impl-x8zp4y5a.js → otel-impl-ycqzp2a1.js} +2 -2
  85. package/dist/{pi-mono-adapter-t280ah5c.js → pi-mono-adapter-e77e9zst.js} +4 -4
  86. package/dist/{pricing-refresh-9e0q7cwk.js → pricing-refresh-atnkngqs.js} +7 -7
  87. package/dist/{rbac-roles-kcp6zge2.js → rbac-roles-9pjphh9q.js} +6 -6
  88. package/dist/{rbac-roles-790j3ga8.js → rbac-roles-j78wdksm.js} +6 -6
  89. package/dist/{render-v2-tch4nefj.js → render-v2-pxjs49fx.js} +6 -7
  90. package/dist/{setup-rcm303ns.js → setup-ymej0xtx.js} +2 -2
  91. package/dist/{work-objects-ctg7t70w.js → work-objects-3nh4ymzb.js} +22 -26
  92. package/dist/{worker-5dp0xm55.js → worker-qa9fkz5s.js} +34 -38
  93. package/dist/{x-v3yw66zs.js → x-ma4gnfgy.js} +2 -2
  94. package/openapi.json +5 -2
  95. package/package.json +9 -5
  96. package/src/be/automation-preflight.ts +9 -4
  97. package/src/be/boot-scrub-sweep.ts +302 -0
  98. package/src/be/crypto/key-bootstrap.ts +1 -1
  99. package/src/be/db/approvals.ts +15 -1
  100. package/src/be/db/codex-oauth-device-flows.ts +40 -0
  101. package/src/be/db/config-secrets.ts +31 -0
  102. package/src/be/db/runtime.ts +4 -0
  103. package/src/be/db/script-runs.ts +15 -0
  104. package/src/be/db/tasks/write.ts +1 -1
  105. package/src/be/db-queries/mcp-oauth.ts +5 -0
  106. package/src/be/db-queries/oauth.ts +77 -0
  107. package/src/be/db.ts +162 -59
  108. package/src/be/events.ts +17 -1
  109. package/src/be/memory/index-content.ts +2 -2
  110. package/src/be/memory/providers/sqlite-store.ts +63 -11
  111. package/src/be/memory/types.ts +14 -0
  112. package/src/be/migrations/201_workflow_replay_columns.sql +10 -0
  113. package/src/be/migrations/202_codex_oauth_device_flows.sql +24 -0
  114. package/src/be/scripts/db.ts +28 -4
  115. package/src/be/scripts/source-secrets.ts +37 -0
  116. package/src/be/scrub-json.ts +32 -0
  117. package/src/be/sealed-json.ts +59 -0
  118. package/src/be/secret-registry.ts +131 -0
  119. package/src/be/workflow-replay.ts +77 -0
  120. package/src/http/codex-oauth-device.ts +8 -10
  121. package/src/http/db-query-bounded.ts +3 -0
  122. package/src/http/db-query-shared.ts +107 -15
  123. package/src/http/db-query.ts +10 -2
  124. package/src/http/index.ts +23 -6
  125. package/src/http/script-runs.ts +9 -1
  126. package/src/http/scripts.ts +15 -0
  127. package/src/http/workflows.ts +3 -2
  128. package/src/oauth/mcp-wrapper.ts +1 -1
  129. package/src/providers/acp-adapter.ts +25 -11
  130. package/src/providers/acp-target-catalog.ts +35 -1
  131. package/src/providers/acp-targets.ts +69 -3
  132. package/src/providers/amp-adapter.ts +1 -1
  133. package/src/providers/cursor-adapter.ts +1 -1
  134. package/src/script-workflows/supervisor.ts +11 -2
  135. package/src/scripts-runtime/eval-harness.ts +2 -12
  136. package/src/scripts-runtime/executors/quickjs-bundle.ts +152 -0
  137. package/src/scripts-runtime/executors/quickjs-prelude.ts +285 -0
  138. package/src/scripts-runtime/executors/quickjs-runner.ts +580 -0
  139. package/src/scripts-runtime/executors/quickjs-worker.ts +81 -0
  140. package/src/scripts-runtime/executors/quickjs.ts +196 -0
  141. package/src/scripts-runtime/executors/registry.ts +2 -0
  142. package/src/scripts-runtime/executors/sourcemap.ts +79 -0
  143. package/src/scripts-runtime/script-error-hints.ts +14 -0
  144. package/src/server.ts +3 -1
  145. package/src/tests/acp-adapter.test.ts +127 -2
  146. package/src/tests/boot-scrub-sweep.test.ts +390 -0
  147. package/src/tests/check-text-columns.test.ts +145 -0
  148. package/src/tests/claude-sdk-process.fixture.ts +13 -2
  149. package/src/tests/codex-oauth-device.test.ts +23 -37
  150. package/src/tests/db-query-denylist.test.ts +202 -0
  151. package/src/tests/db-task-read-contract.test.ts +1 -0
  152. package/src/tests/db-task-write-contract.test.ts +1 -0
  153. package/src/tests/entrypoint-acp-target-binary.test.ts +31 -1
  154. package/src/tests/events-scrub.test.ts +88 -0
  155. package/src/tests/fixtures/secret-corpus.ts +320 -0
  156. package/src/tests/script-connections.test.ts +5 -0
  157. package/src/tests/script-executor-conformance.test.ts +3 -0
  158. package/src/tests/script-executor-quickjs.test.ts +442 -0
  159. package/src/tests/script-executor-registry.test.ts +6 -1
  160. package/src/tests/script-runs-http.test.ts +88 -1
  161. package/src/tests/script-runs-scrub.test.ts +275 -0
  162. package/src/tests/scripts-http.test.ts +82 -1
  163. package/src/tests/scrubbed-text-12e.test.ts +289 -0
  164. package/src/tests/sealed-key-guard.test.ts +166 -0
  165. package/src/tests/secret-canary-sweep.test.ts +958 -0
  166. package/src/tests/secret-registry.test.ts +355 -0
  167. package/src/tests/secret-rules.test.ts +230 -0
  168. package/src/tests/secret-scrubber.test.ts +3 -2
  169. package/src/tests/workflow-replay.test.ts +518 -0
  170. package/src/tests/workflow-scrub.test.ts +242 -0
  171. package/src/tools/db-query.ts +1 -1
  172. package/src/tools/inject-learning.ts +1 -1
  173. package/src/tools/workflows/get-workflow-run.ts +3 -2
  174. package/src/types.ts +1 -1
  175. package/src/utils/secret-rules.generated.ts +2055 -0
  176. package/src/utils/secret-scrubber.ts +363 -29
  177. package/src/workflows/engine.ts +39 -4
  178. package/src/workflows/recovery.ts +10 -1
  179. package/src/workflows/resume.ts +62 -3
  180. package/src/workflows/retry-poller.ts +3 -0
  181. package/dist/boot-scrub-logs-246yn076.js +0 -99
  182. package/dist/cli-3a4m1aws.js +0 -572
  183. package/dist/cli-a87b04k8.js +0 -951
  184. package/dist/cli-cvk6yzw5.js +0 -40
  185. package/dist/cli-h1spv8v4.js +0 -427
  186. package/dist/cli-jqt9hrnz.js +0 -168
  187. package/dist/cli-yhmwmv0g.js +0 -9281
  188. package/src/be/boot-scrub-logs.ts +0 -132
@@ -1,14 +1,12 @@
1
1
  import {
2
2
  getEmbeddingProvider,
3
3
  getMemoryStore,
4
+ init_memory,
4
5
  resetEmbeddingProvider
5
- } from "./cli-yhmwmv0g.js";
6
- import"./cli-wfajtmf7.js";
7
- import"./cli-cvk6yzw5.js";
8
- import"./cli-qdv8kgz7.js";
9
- import"./cli-9s3h836g.js";
6
+ } from "./cli-yshaazs1.js";
7
+ import"./cli-xvdgasgy.js";
10
8
  import"./cli-3qhyh31j.js";
11
- import"./cli-3a4m1aws.js";
9
+ import"./cli-jhm6hzjn.js";
12
10
  import"./cli-7mm2r1kp.js";
13
11
  import"./cli-g5erf0zt.js";
14
12
  import"./cli-dmtrxqhg.js";
@@ -23,10 +21,12 @@ import"./cli-ej6gbxfb.js";
23
21
  import"./cli-zsh093hk.js";
24
22
  import"./cli-sd0mxa3c.js";
25
23
  import"./cli-w5e1d1vv.js";
26
- import"./cli-1kzfvd1z.js";
24
+ import"./cli-4r1sjfc4.js";
27
25
  import"./cli-zf8jjwex.js";
28
- import"./cli-h1spv8v4.js";
26
+ import"./cli-wt7ccy4r.js";
29
27
  import"./cli-bc05qbss.js";
28
+ init_memory();
29
+
30
30
  export {
31
31
  getEmbeddingProvider,
32
32
  getMemoryStore,
@@ -4,38 +4,34 @@ import {
4
4
  runScheduleNow,
5
5
  startScheduler,
6
6
  stopScheduler
7
- } from "./cli-50eg13rj.js";
8
- import"./cli-x7afk5wm.js";
9
- import"./cli-420bdgw0.js";
7
+ } from "./cli-df56tqdw.js";
8
+ import"./cli-xvc3q9br.js";
9
+ import"./cli-mv2520nm.js";
10
10
  import"./cli-w0bwte75.js";
11
11
  import"./cli-re8z5p8p.js";
12
- import"./cli-k6xx3pve.js";
13
- import"./cli-e7t4snpa.js";
14
- import"./cli-nfygw434.js";
15
- import"./cli-xtgtyafv.js";
12
+ import"./cli-0nhdwxd5.js";
13
+ import"./cli-rggdq8wq.js";
14
+ import"./cli-ysnyhws9.js";
15
+ import"./cli-jvj6a0cv.js";
16
16
  import"./cli-epan13p1.js";
17
17
  import"./cli-f14fvzag.js";
18
18
  import"./cli-zt3w1cn1.js";
19
- import"./cli-xb3c6aat.js";
20
- import"./cli-ftry7975.js";
19
+ import"./cli-f2n17zhp.js";
20
+ import"./cli-feh3dkah.js";
21
21
  import"./cli-3dpj7atn.js";
22
22
  import"./cli-2x0e561b.js";
23
23
  import"./cli-pkke6geq.js";
24
24
  import"./cli-rb9m6rpe.js";
25
25
  import"./cli-mzfth0bp.js";
26
- import"./cli-jqt9hrnz.js";
27
- import"./cli-yhmwmv0g.js";
28
- import"./cli-wfajtmf7.js";
29
- import"./cli-a87b04k8.js";
26
+ import"./cli-j2jbr8af.js";
30
27
  import"./cli-fad8m16k.js";
31
28
  import"./cli-bsakbbkm.js";
32
29
  import"./cli-zxg80zs9.js";
33
30
  import"./cli-51tf7ac3.js";
34
31
  import"./cli-ydt3zkwv.js";
35
- import"./cli-0n4fasz0.js";
32
+ import"./cli-ecknp7p1.js";
36
33
  import"./cli-q51yprfq.js";
37
34
  import"./cli-3er6gcsn.js";
38
- import"./cli-cvk6yzw5.js";
39
35
  import"./cli-yatxqynm.js";
40
36
  import"./cli-b0f70z24.js";
41
37
  import"./cli-nexwh8zg.js";
@@ -44,12 +40,12 @@ import"./cli-1m2e086m.js";
44
40
  import"./cli-bzr0ftht.js";
45
41
  import"./cli-bd957dgb.js";
46
42
  import"./cli-pzxba7gw.js";
47
- import"./cli-xnzrzets.js";
43
+ import"./cli-8kgvmkak.js";
48
44
  import"./cli-rfphkzh5.js";
49
- import"./cli-qdv8kgz7.js";
50
- import"./cli-9s3h836g.js";
45
+ import"./cli-yshaazs1.js";
46
+ import"./cli-xvdgasgy.js";
51
47
  import"./cli-3qhyh31j.js";
52
- import"./cli-3a4m1aws.js";
48
+ import"./cli-jhm6hzjn.js";
53
49
  import"./cli-7mm2r1kp.js";
54
50
  import"./cli-g5erf0zt.js";
55
51
  import"./cli-dmtrxqhg.js";
@@ -64,10 +60,10 @@ import"./cli-ej6gbxfb.js";
64
60
  import"./cli-zsh093hk.js";
65
61
  import"./cli-sd0mxa3c.js";
66
62
  import"./cli-w5e1d1vv.js";
67
- import"./cli-1kzfvd1z.js";
68
- import"./cli-hpryr6em.js";
63
+ import"./cli-4r1sjfc4.js";
64
+ import"./cli-mb75wpxf.js";
69
65
  import"./cli-zf8jjwex.js";
70
- import"./cli-h1spv8v4.js";
66
+ import"./cli-wt7ccy4r.js";
71
67
  import"./cli-bc05qbss.js";
72
68
  export {
73
69
  calculateNextRun,
@@ -4,39 +4,35 @@ import {
4
4
  runRebootSweep,
5
5
  startHeartbeat,
6
6
  stopHeartbeat
7
- } from "./cli-ba66wyhy.js";
8
- import"./cli-50eg13rj.js";
9
- import"./cli-x7afk5wm.js";
10
- import"./cli-420bdgw0.js";
7
+ } from "./cli-66zh26sp.js";
8
+ import"./cli-df56tqdw.js";
9
+ import"./cli-xvc3q9br.js";
10
+ import"./cli-mv2520nm.js";
11
11
  import"./cli-w0bwte75.js";
12
12
  import"./cli-re8z5p8p.js";
13
- import"./cli-k6xx3pve.js";
14
- import"./cli-e7t4snpa.js";
15
- import"./cli-nfygw434.js";
16
- import"./cli-xtgtyafv.js";
13
+ import"./cli-0nhdwxd5.js";
14
+ import"./cli-rggdq8wq.js";
15
+ import"./cli-ysnyhws9.js";
16
+ import"./cli-jvj6a0cv.js";
17
17
  import"./cli-epan13p1.js";
18
18
  import"./cli-f14fvzag.js";
19
19
  import"./cli-zt3w1cn1.js";
20
- import"./cli-xb3c6aat.js";
21
- import"./cli-ftry7975.js";
20
+ import"./cli-f2n17zhp.js";
21
+ import"./cli-feh3dkah.js";
22
22
  import"./cli-3dpj7atn.js";
23
23
  import"./cli-2x0e561b.js";
24
24
  import"./cli-pkke6geq.js";
25
25
  import"./cli-rb9m6rpe.js";
26
26
  import"./cli-mzfth0bp.js";
27
- import"./cli-jqt9hrnz.js";
28
- import"./cli-yhmwmv0g.js";
29
- import"./cli-wfajtmf7.js";
30
- import"./cli-a87b04k8.js";
27
+ import"./cli-j2jbr8af.js";
31
28
  import"./cli-fad8m16k.js";
32
29
  import"./cli-bsakbbkm.js";
33
30
  import"./cli-zxg80zs9.js";
34
31
  import"./cli-51tf7ac3.js";
35
32
  import"./cli-ydt3zkwv.js";
36
- import"./cli-0n4fasz0.js";
33
+ import"./cli-ecknp7p1.js";
37
34
  import"./cli-q51yprfq.js";
38
35
  import"./cli-3er6gcsn.js";
39
- import"./cli-cvk6yzw5.js";
40
36
  import"./cli-yatxqynm.js";
41
37
  import"./cli-b0f70z24.js";
42
38
  import"./cli-nexwh8zg.js";
@@ -45,12 +41,12 @@ import"./cli-1m2e086m.js";
45
41
  import"./cli-bzr0ftht.js";
46
42
  import"./cli-bd957dgb.js";
47
43
  import"./cli-pzxba7gw.js";
48
- import"./cli-xnzrzets.js";
44
+ import"./cli-8kgvmkak.js";
49
45
  import"./cli-rfphkzh5.js";
50
- import"./cli-qdv8kgz7.js";
51
- import"./cli-9s3h836g.js";
46
+ import"./cli-yshaazs1.js";
47
+ import"./cli-xvdgasgy.js";
52
48
  import"./cli-3qhyh31j.js";
53
- import"./cli-3a4m1aws.js";
49
+ import"./cli-jhm6hzjn.js";
54
50
  import"./cli-7mm2r1kp.js";
55
51
  import"./cli-g5erf0zt.js";
56
52
  import"./cli-dmtrxqhg.js";
@@ -65,10 +61,10 @@ import"./cli-ej6gbxfb.js";
65
61
  import"./cli-zsh093hk.js";
66
62
  import"./cli-sd0mxa3c.js";
67
63
  import"./cli-w5e1d1vv.js";
68
- import"./cli-1kzfvd1z.js";
69
- import"./cli-hpryr6em.js";
64
+ import"./cli-4r1sjfc4.js";
65
+ import"./cli-mb75wpxf.js";
70
66
  import"./cli-zf8jjwex.js";
71
- import"./cli-h1spv8v4.js";
67
+ import"./cli-wt7ccy4r.js";
72
68
  import"./cli-bc05qbss.js";
73
69
  export {
74
70
  getBootEpochMs,
@@ -3,37 +3,31 @@ import {
3
3
  } from "./cli-ep19k3mb.js";
4
4
  import {
5
5
  agentFsProvisionSeeder
6
- } from "./cli-prt9emct.js";
6
+ } from "./cli-gt8azyet.js";
7
7
  import {
8
8
  extractArgsJsonSchema,
9
9
  extractScriptSignature,
10
- getScript,
11
10
  require_dist,
12
11
  typecheckScript,
13
- upsertScriptByName,
14
12
  validateDefinition,
15
13
  validateScriptImports
16
- } from "./cli-xtgtyafv.js";
14
+ } from "./cli-jvj6a0cv.js";
17
15
  import"./cli-epan13p1.js";
18
16
  import"./cli-f14fvzag.js";
19
17
  import"./cli-zt3w1cn1.js";
20
- import"./cli-xb3c6aat.js";
21
- import"./cli-ftry7975.js";
18
+ import"./cli-f2n17zhp.js";
19
+ import"./cli-feh3dkah.js";
22
20
  import"./cli-3dpj7atn.js";
23
21
  import"./cli-2x0e561b.js";
24
22
  import"./cli-pkke6geq.js";
25
23
  import"./cli-rb9m6rpe.js";
26
- import"./cli-jqt9hrnz.js";
27
- import"./cli-yhmwmv0g.js";
28
- import"./cli-wfajtmf7.js";
29
- import"./cli-a87b04k8.js";
24
+ import"./cli-j2jbr8af.js";
30
25
  import"./cli-bsakbbkm.js";
31
26
  import"./cli-zxg80zs9.js";
32
27
  import"./cli-ydt3zkwv.js";
33
- import"./cli-0n4fasz0.js";
28
+ import"./cli-ecknp7p1.js";
34
29
  import"./cli-q51yprfq.js";
35
30
  import"./cli-3er6gcsn.js";
36
- import"./cli-cvk6yzw5.js";
37
31
  import"./cli-yatxqynm.js";
38
32
  import"./cli-b0f70z24.js";
39
33
  import"./cli-nexwh8zg.js";
@@ -50,18 +44,21 @@ import {
50
44
  deleteSkillFile,
51
45
  getDbClient,
52
46
  getScheduledTaskByName,
47
+ getScript,
53
48
  getSkillByName,
54
49
  getSkillFiles,
55
50
  init_db,
51
+ init_db1 as init_db2,
56
52
  listWorkflows,
57
53
  updateScheduledTask,
58
54
  updateSkill,
59
55
  updateWorkflow,
56
+ upsertScriptByName,
60
57
  upsertSkillFiles
61
- } from "./cli-qdv8kgz7.js";
62
- import"./cli-9s3h836g.js";
58
+ } from "./cli-yshaazs1.js";
59
+ import"./cli-xvdgasgy.js";
63
60
  import"./cli-3qhyh31j.js";
64
- import"./cli-3a4m1aws.js";
61
+ import"./cli-jhm6hzjn.js";
65
62
  import"./cli-7mm2r1kp.js";
66
63
  import"./cli-g5erf0zt.js";
67
64
  import"./cli-dmtrxqhg.js";
@@ -76,14 +73,15 @@ import"./cli-ej6gbxfb.js";
76
73
  import"./cli-zsh093hk.js";
77
74
  import"./cli-sd0mxa3c.js";
78
75
  import"./cli-w5e1d1vv.js";
79
- import"./cli-1kzfvd1z.js";
76
+ import"./cli-4r1sjfc4.js";
80
77
  import"./cli-zf8jjwex.js";
81
- import"./cli-h1spv8v4.js";
78
+ import"./cli-wt7ccy4r.js";
82
79
  import {
83
80
  __toESM
84
81
  } from "./cli-bc05qbss.js";
85
82
 
86
83
  // src/be/seed-scripts/index.ts
84
+ init_db2();
87
85
  init_db();
88
86
 
89
87
  // src/be/seed-scripts/catalog/app-sync-run.ts
@@ -12292,7 +12290,7 @@ For complete command documentation with all flags and options, see [COMMANDS.md]
12292
12290
  `;
12293
12291
 
12294
12292
  // src/be/seed-skills/index.ts
12295
- init_db();
12293
+ init_db2();
12296
12294
  // src/be/seed-skills/bundled-files.generated.json
12297
12295
  var bundled_files_generated_default = {
12298
12296
  artifacts: [
@@ -15095,7 +15093,7 @@ var skillsSeeder = {
15095
15093
  };
15096
15094
 
15097
15095
  // src/be/seed/state-db.ts
15098
- init_db();
15096
+ init_db2();
15099
15097
  async function getSeedState(kind, key) {
15100
15098
  return getDbClient().get("SELECT kind, key, seededHash, seededAt FROM seed_state WHERE kind = ? AND key = ?", [kind, key]);
15101
15099
  }
@@ -16490,7 +16488,7 @@ var config_default63 = `{
16490
16488
  var content_default63 = '# Weekly Harness Upgrade Check\n\nThis is a topology-preserving, anonymized port of the live Sunday schedule. It keeps its bundle, deduplication, baseline, partial-fallback, and CI acceptance behavior.\n\n```json\n{"cron":"0 16 * * 0","timezone":"UTC","agentRole":"lead","enabled":true}\n```\n\n**Weekly Harness Upgrade — self-hosted repository Dockerfile.worker**\n\nRepo: `{{REPO_URL}}` (working dir: `/workspace/repo`)\nFile: `Dockerfile.worker`\n\nThe worker image pins these harnesses via `ARG`. Each week, check upstream for new versions and open ONE PR bundling ALL outdated harness bumps together ({{PR_REVIEWER}}\'s preference — bump ALL in one PR per run, do NOT stagger one-per-run).\n\n| ARG | Source | Sync requirement |\n|---|---|---|\n| `CLAUDE_CODE_VERSION` | npm `@anthropic-ai/claude-code` | none |\n| `PI_CODING_AGENT_VERSION` | npm `@earendil-works/pi-coding-agent` | MUST match `@earendil-works/pi-agent-core`, `@earendil-works/pi-ai`, and `@earendil-works/pi-coding-agent` in `package.json` (family-pin, all same version) — bump all together |\n| `CODEX_VERSION` | npm `@openai/codex` | MUST match direct `@openai/codex` in `package.json` (enforced by `scripts/check-codex-default-model.sh`) |\n| `OPENCODE_VERSION` | https://opencode.ai (latest release) | MUST match `OPENCODE_SDK_VERSION` |\n| `OPENCODE_SDK_VERSION` | npm `@opencode-ai/sdk` | MUST match `OPENCODE_VERSION` — bump both together |\n\n## Steps\n\n1. `cd /workspace/repo && git fetch origin && git checkout main && git pull --ff-only`\n2. Read current pinned versions from `Dockerfile.worker` (the `ARG` lines) and from `package.json` (for the pi family + `@openai/codex` + `@opencode-ai/sdk`).\n3. For each harness, fetch the latest version:\n - npm claude-code: `npm view @anthropic-ai/claude-code version`\n - npm pi: `npm view @earendil-works/pi-coding-agent version` (use the SAME version for `@earendil-works/pi-agent-core` and `@earendil-works/pi-ai` — they\'re a family pin)\n - npm codex: `npm view @openai/codex version`\n - npm opencode-sdk: `npm view @opencode-ai/sdk version`\n - opencode: `curl -fsSL https://api.github.com/repos/sst/opencode/releases/latest | jq -r .tag_name`\n4. Check for an existing open bundled PR — `gh pr list --search "harness upgrade in:title" --state open --repo {{REPO_URL}}`. Look at the branch prefix `harness-upgrade/`. If one is already open AND was created within the last 48h (sibling schedule may have just opened it), skip and complete with `"Skipped: sibling harness upgrade PR already open"` + the existing PR URL.\n5. Collect ALL outdated harnesses. If none are outdated, complete with output `"All harnesses up to date as of YYYY-MM-DD"` (no PR).\n6. Branch: `harness-upgrade/weekly-YYYY-MM-DD` (e.g. `harness-upgrade/weekly-2026-06-03`).\n7. Edit `Dockerfile.worker` — bump every outdated ARG. Also update `package.json`:\n - Codex: bump direct `@openai/codex` to match `CODEX_VERSION`.\n - Pi family: bump `@earendil-works/pi-agent-core`, `@earendil-works/pi-ai`, and `@earendil-works/pi-coding-agent` to the same new version as `PI_CODING_AGENT_VERSION`.\n - Opencode: bump `OPENCODE_SDK_VERSION` and `@opencode-ai/sdk` to match `OPENCODE_VERSION`.\n Then re-run `bun install` so `bun.lock` updates.\n8. Local verification (all must pass before pushing):\n ```bash\n bun install --frozen-lockfile\n bun run lint\n bun run tsc:check\n bun test\n bash scripts/check-db-boundary.sh\n ```\n For Codex bumps: also run `bash scripts/check-codex-default-model.sh`.\n Note: do NOT run `docker build -f Dockerfile.worker .` locally — the runner lacks docker. CI\'s `docker-worker-build` job is the acceptance gate.\n9. If any local check fails, apply the **partial-bundle fallback** before giving up — one harness must never block the others:\n **BASELINE FIRST — do this before ANY isolation work.** A red gate does NOT mean the bumps broke anything. Re-run the EXACT failing command on a pristine `origin/main` worktree with zero bumps applied (`git worktree add /tmp/hb-baseline origin/main && cd /tmp/hb-baseline && bun install --frozen-lockfile`) and compare. If the SAME checks fail with the SAME assertions and the same pass/skip/fail totals, the failure is **PRE-EXISTING and unrelated to the bumps** ⇒ it does NOT block this PR, and you must NOT attempt isolation for it. Proceed to step 10, open the PR, and add a `## Pre-existing failures (also fail on origin/main)` section quoting the verbatim error plus both totals (baseline vs branch) so the reviewer can see they match. Only a failure that is RED on your branch and GREEN on baseline was caused by a bump — apply a–d below to that failure ONLY. A gate that is red on origin/main is never a reason to skip the weekly bump.\n a. Isolate which harness\'s bump caused it. The error usually names the package; if not, revert bumps one at a time until the step-8 gate passes.\n b. Revert ONLY that harness — its `Dockerfile.worker` ARG **and** its `package.json` pins (respect the family/sync requirements in the table above) — then re-run `bun install` and the FULL step-8 gate.\n c. Gate green ⇒ open the PR with the remaining harnesses and add a `## Held back` section naming the excluded harness, current → attempted version, and the VERBATIM error. Name it in your `store-progress` output too.\n d. Gate still red with that harness reverted, OR the failure cannot be isolated to one harness ⇒ do NOT open a PR; report via `store-progress` with `failureReason`.\n Migrating an upstream API break (a removed option, a renamed export, a moved type) is still OUT OF SCOPE for this routine — hold that harness back per (c) rather than changing code here.\n10. Push the branch and open a PR:\n - Title: `chore(docker): bump harnesses (weekly YYYY-MM-DD)` — or list the bumps, e.g. `chore(docker): bump claude-code, pi, opencode (weekly YYYY-MM-DD)`.\n - Body: include a table of current → new versions for every harness bumped, link to each upstream changelog (e.g. https://github.com/anthropics/claude-code/releases/tag/v<X.Y.Z>), and the local verification output (or "all green").\n - Add `{{PR_REVIEWER}}` as a reviewer.\n - DO NOT merge — {{PR_REVIEWER}} reviews and merges.\n11. Verify CI on the PR — wait for the merge-gate workflow to start, confirm at least the `docker-worker-build` job is queued/passing. If CI fails, comment on the PR with the failure log and leave the branch for human review.\n\n## Constraints\n\n- **ONE bundled PR per run.** Bump every outdated harness in the same PR — do not stagger one-per-run. The ONLY permitted exclusion is a harness held back by the step-9 partial-bundle fallback, which must be declared in the PR body.\n- **No `--no-verify`, no force pushes.**\n- If a harness has a major-version bump (e.g. 2.x → 3.x), still bundle it but flag clearly in the PR description that this is a major bump and may need extra review.\n- Pi family-pin: all three pi packages MUST be the same version. If they drift in the lockfile, fix the drift in the same PR.\n\n## Sibling-schedule coordination\nThis schedule has a sibling — `weekly-harness-upgrade-check-wed` (Wednesday 05:00 BCN). If a sibling-opened PR is OPEN and `< 48h` old, step 4 skips. This is the dedup gate. Don\'t change branch-naming heuristics in a way that breaks the dedup.\n\n## Output\n\n`store-progress` with `status: "completed"` and `output` containing:\n- The PR URL (if one was opened) + the table of harnesses bumped, OR\n- "No-op: all harnesses up to date as of YYYY-MM-DD" with the version table, OR\n- "Skipped: sibling harness upgrade PR already open" with the existing PR URL.\n';
16491
16489
 
16492
16490
  // src/be/seed/schedules-seeder.ts
16493
- init_db();
16491
+ init_db2();
16494
16492
 
16495
16493
  // src/be/seed/automation-toggle.ts
16496
16494
  var SEED_AUTOMATIONS_ENABLED_ENV = "SEED_AUTOMATIONS_ENABLED";
@@ -16936,7 +16934,7 @@ The \`maxIterations\` parameter is declarative: the reviewer signals PASS when d
16936
16934
  `;
16937
16935
 
16938
16936
  // src/be/seed/workflows-seeder.ts
16939
- init_db();
16937
+ init_db2();
16940
16938
  var asText2 = (value) => value;
16941
16939
  var BUILT_IN_WORKFLOW_SOURCES = [
16942
16940
  { config: asText2(config_default64), content: asText2(content_default64) },