@desplega.ai/agent-swarm 2.4.3 → 2.4.4

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 (150) hide show
  1. package/dist/{acp-adapter-1885dpr7.js → acp-adapter-thq04adh.js} +1 -2
  2. package/dist/{actions-pn76n32q.js → actions-j6ywh6x5.js} +17 -17
  3. package/dist/{amp-adapter-af84rx1d.js → amp-adapter-k8b5xmj8.js} +2 -2
  4. package/dist/{app-6sv8mhzm.js → app-rb7vc02s.js} +3 -3
  5. package/dist/{assistant-sc2tf825.js → assistant-ftta1zjf.js} +18 -18
  6. package/dist/{boot-reembed-y3m0ydzj.js → boot-reembed-srp6v6af.js} +1 -1
  7. package/dist/{boot-reembed-gvxjs2py.js → boot-reembed-xns7h5h9.js} +1 -1
  8. package/dist/{boot-scrub-sweep-1j9mk05f.js → boot-scrub-sweep-3qqrh2mz.js} +2 -2
  9. package/dist/{boot-seeds-37sp626b.js → boot-seeds-9ks8hce7.js} +4 -4
  10. package/dist/{claude-adapter-rp0jtnwr.js → claude-adapter-k5ksyres.js} +2 -2
  11. package/dist/{claude-managed-setup-rdt248k7.js → claude-managed-setup-n5a5eqks.js} +1 -1
  12. package/dist/{claude-sdk-session-53rcw5we.js → claude-sdk-session-2j3j4kwn.js} +2 -2
  13. package/dist/{cli-v87dr6e3.js → cli-1d70crsy.js} +1 -1
  14. package/dist/{cli-1ma335fz.js → cli-1ephgwnq.js} +2 -2
  15. package/dist/{cli-4yef8ghv.js → cli-2v045xyf.js} +3 -3
  16. package/dist/{cli-73ezfhha.js → cli-2y91wnbh.js} +10 -5
  17. package/dist/{cli-1eszr343.js → cli-2zqpkvtt.js} +1 -1
  18. package/dist/{cli-e4d78xsv.js → cli-37yb7307.js} +1 -1
  19. package/dist/{cli-8y99kfey.js → cli-3cgngyd8.js} +9 -9
  20. package/dist/{cli-wk28hzqn.js → cli-44159k28.js} +1 -1
  21. package/dist/{cli-qp2m4btv.js → cli-4dg55wsk.js} +2 -2
  22. package/dist/{cli-0dxxwfkt.js → cli-51y09c6p.js} +17 -14
  23. package/dist/{cli-aa3tb29r.js → cli-55qmbp6z.js} +1 -1
  24. package/dist/{cli-mzkwkbdy.js → cli-82d3nkc3.js} +1 -1
  25. package/dist/{cli-sds5zzs8.js → cli-9fhkkpj5.js} +78 -12
  26. package/dist/{cli-vq9gqarq.js → cli-amyhm3gj.js} +1 -1
  27. package/dist/{cli-bxrqvpg5.js → cli-b8k7epj1.js} +5 -5
  28. package/dist/{cli-8vverzf7.js → cli-ba8ne1es.js} +5 -0
  29. package/dist/{cli-58vwn100.js → cli-bnz0r3kc.js} +1 -1
  30. package/dist/{cli-6eyncg0y.js → cli-cynvc9fj.js} +34 -6
  31. package/dist/{cli-f0p0f6ja.js → cli-dqb4n629.js} +7 -7
  32. package/dist/{cli-pygdsgh8.js → cli-esxerzg7.js} +1 -1
  33. package/dist/{cli-dm8p2dpf.js → cli-gqvh8d8a.js} +6 -6
  34. package/dist/{cli-p0qerd2r.js → cli-hj3debgw.js} +1 -1
  35. package/dist/{cli-836ehxmt.js → cli-nc35pxb7.js} +2 -2
  36. package/dist/{cli-vcgscaan.js → cli-p20r8w42.js} +8 -6
  37. package/dist/{cli-1xsraagq.js → cli-pccfmtb5.js} +4 -4
  38. package/dist/{cli-s9rr4gr2.js → cli-q6r7t299.js} +1036 -298
  39. package/dist/{cli-tkf4x6ha.js → cli-qkhc5aqy.js} +11 -11
  40. package/dist/{cli-1n9gdg56.js → cli-t7cyef5g.js} +4 -4
  41. package/dist/{cli-038fga5k.js → cli-te6b5wvg.js} +148 -183
  42. package/dist/{cli-kgnkyabk.js → cli-v3yr2gbg.js} +109 -35
  43. package/dist/{cli-h0mgxann.js → cli-vdm20wej.js} +2 -2
  44. package/dist/{cli-zvbb4n0e.js → cli-vq97g1jq.js} +2 -2
  45. package/dist/{cli-gx0j2khs.js → cli-w6nadkh4.js} +3 -3
  46. package/dist/{cli-99jez72r.js → cli-w9etnnxk.js} +6 -1
  47. package/dist/{cli-npfe9t1s.js → cli-xc27fwzg.js} +2 -2
  48. package/dist/{cli-6aen3ezb.js → cli-xj0re5tm.js} +1 -1
  49. package/dist/{cli-aypbg9r2.js → cli-zrk6jxv8.js} +1 -1
  50. package/dist/{cli-1012xb7j.js → cli-zrwpctp4.js} +20 -20
  51. package/dist/cli.js +41 -16
  52. package/dist/{codex-adapter-2zrmab9b.js → codex-adapter-968xwfy7.js} +1 -1
  53. package/dist/{codex-session-runner-kbkz62vc.js → codex-session-runner-ht4z99fa.js} +1 -1
  54. package/dist/{commands-hd574th6.js → commands-pcymaeg9.js} +2 -2
  55. package/dist/{controller-pz5mcfg4.js → controller-fpjyk46r.js} +2 -2
  56. package/dist/{controllers-connect-5rgq2hfk.js → controllers-connect-mwzx1fh6.js} +18 -18
  57. package/dist/{cursor-adapter-mgaprq0j.js → cursor-adapter-cp4s2e2f.js} +1 -1
  58. package/dist/{db-h06dxp05.js → db-sgd12bt9.js} +3 -3
  59. package/dist/{db-6nf1207q.js → db-xsjg9jqq.js} +1 -1
  60. package/dist/{dispatcher-zthpy4m1.js → dispatcher-x0jfw2c9.js} +16 -16
  61. package/dist/{dsh-adapter-64dhw0j7.js → dsh-adapter-jrq7ma7h.js} +1 -1
  62. package/dist/{external-channel-x01t7ke6.js → external-channel-8njj4h3b.js} +2 -2
  63. package/dist/{grok-adapter-h21jv594.js → grok-adapter-kkr97v2f.js} +2 -3
  64. package/dist/handlers-0pvee9nw.js +39 -0
  65. package/dist/{heartbeat-zzfksckz.js → heartbeat-wd03zhn0.js} +19 -19
  66. package/dist/{hook-z4zhzj1f.js → hook-f0vghj42.js} +1 -1
  67. package/dist/{hook-3xfqhh2s.js → hook-xzj2ts2p.js} +1 -1
  68. package/dist/{http-q813tmya.js → http-4hwxv62p.js} +255 -117
  69. package/dist/{index-va3y63es.js → index-6srwvd5b.js} +1 -2
  70. package/dist/{index-220tk9bw.js → index-97q4xn03.js} +19 -10
  71. package/dist/{index-s98037v0.js → index-cbxkmfc5.js} +1 -2
  72. package/dist/{index-m0a4ydqj.js → index-gdh8jrdm.js} +16 -16
  73. package/dist/{index-wbbs14c5.js → index-hg0x2cdv.js} +16 -16
  74. package/dist/{index-d0g18bax.js → index-thm0y6a8.js} +19 -19
  75. package/dist/{index-x8xbyn1t.js → index-ww2vznkp.js} +1 -1
  76. package/dist/{keepalive-y5t1my7m.js → keepalive-hrh7xnr9.js} +3 -3
  77. package/dist/{lead-2xwtq66b.js → lead-ee8vazz2.js} +26 -27
  78. package/dist/{maintenance-ybfsaedv.js → maintenance-e8wnwnqx.js} +1 -1
  79. package/dist/{oauth-refresh-sweep-909jmn12.js → oauth-refresh-sweep-zm0yj4sj.js} +2 -2
  80. package/dist/{onboard-xn6fkkys.js → onboard-dtwcq603.js} +2 -2
  81. package/dist/{otel-impl-e6mn0z13.js → otel-impl-w3fbhpn0.js} +1 -1
  82. package/dist/{pricing-refresh-ygd362ep.js → pricing-refresh-j38dehfs.js} +3 -3
  83. package/dist/{rbac-roles-c9axvfnz.js → rbac-roles-ae8yttq4.js} +2 -2
  84. package/dist/{rbac-roles-mb470p4e.js → rbac-roles-ejxx9b35.js} +2 -2
  85. package/dist/{render-v2-g0306nh1.js → render-v2-n16n0phe.js} +3 -3
  86. package/dist/{resume-v315hnq6.js → resume-z0fgjc38.js} +5 -5
  87. package/dist/{session-access-2zg285a1.js → session-access-cv3mq6mc.js} +6 -4
  88. package/dist/{setup-a4mtf02k.js → setup-mafhj3yt.js} +1 -1
  89. package/dist/{work-objects-9fr0fgtn.js → work-objects-8b86mgjp.js} +19 -19
  90. package/dist/{worker-qae22jeb.js → worker-16s75hm5.js} +26 -27
  91. package/dist/worker-token-xf11yyds.js +136 -0
  92. package/openapi.json +295 -12
  93. package/package.json +4 -4
  94. package/src/apps/action-runner.ts +4 -0
  95. package/src/apps/catalog.generated.json +3 -0
  96. package/src/apps/page-validator.ts +8 -2
  97. package/src/be/migrations/232_agent_session_tokens.sql +41 -0
  98. package/src/be/seed-scripts/catalog/heartbeat-jev-gate.ts +10 -1
  99. package/src/be/swarm-config-guard.ts +16 -0
  100. package/src/be/users.ts +169 -12
  101. package/src/cli.tsx +24 -0
  102. package/src/commands/worker-token.ts +164 -0
  103. package/src/http/apps.ts +43 -5
  104. package/src/http/codex-oauth-keep-warm.ts +27 -9
  105. package/src/http/config.ts +5 -3
  106. package/src/http/core.ts +2 -0
  107. package/src/http/session-access.ts +51 -2
  108. package/src/http/sessions.ts +249 -10
  109. package/src/http/tasks.ts +4 -32
  110. package/src/providers/acp-adapter.ts +33 -13
  111. package/src/providers/acp-swarm-events.ts +1 -1
  112. package/src/providers/amp-adapter.ts +1 -1
  113. package/src/providers/codex-oauth/storage.ts +1 -1
  114. package/src/rbac/legacy-policy.ts +3 -1
  115. package/src/rbac/permissions.ts +4 -0
  116. package/src/tests/acp-adapter.test.ts +10 -23
  117. package/src/tests/acp-fake-agent.ts +36 -0
  118. package/src/tests/acp-swarm-events.test.ts +1 -1
  119. package/src/tests/agent-session-tokens.test.ts +452 -0
  120. package/src/tests/apps-action-parent-task.test.ts +295 -0
  121. package/src/tests/codex-oauth-keep-warm.test.ts +85 -1
  122. package/src/tests/config-session-auth.test.ts +14 -0
  123. package/src/tests/docs-index-footprint.test.js +2 -2
  124. package/src/tests/grok-adapter.test.ts +3 -3
  125. package/src/tests/heartbeat-jev-gate.test.ts +23 -0
  126. package/src/tests/migration-232-agent-session-tokens.test.ts +67 -0
  127. package/src/tests/rbac-engine.test.ts +1 -0
  128. package/src/tests/runtime-child-token-cleanup.test.ts +3 -3
  129. package/src/tests/script-connections.test.ts +2 -0
  130. package/src/tests/session-route-posture.test.ts +2 -0
  131. package/src/tests/worker-token-cli.test.ts +76 -0
  132. package/src/tests/workflow-executors.test.ts +4 -2
  133. package/src/tests/workflow-system-one-extraction.test.ts +805 -0
  134. package/src/types.ts +2 -1
  135. package/src/utils/request-auth-context.ts +2 -1
  136. package/src/workflows/definition.ts +7 -1
  137. package/src/workflows/engine.ts +18 -12
  138. package/src/workflows/executors/index.ts +1 -0
  139. package/src/workflows/executors/registry.ts +2 -0
  140. package/src/workflows/executors/system-one-decision.ts +56 -255
  141. package/src/workflows/executors/system-one-extract-wire.ts +57 -0
  142. package/src/workflows/executors/system-one-extraction.ts +830 -0
  143. package/src/workflows/executors/system-one-providers.ts +277 -110
  144. package/src/workflows/executors/system-one-transport.ts +264 -0
  145. package/templates/official/lead/HEARTBEAT.md +1 -1
  146. package/templates/skills/apps/SKILL.md +3 -1
  147. package/templates/skills/apps/content.md +3 -1
  148. package/templates/skills/heartbeat-runbook/content.md +3 -3
  149. package/dist/cli-v1sjhn52.js +0 -7
  150. package/dist/handlers-2qjw434w.js +0 -39
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ACPAdapter2
3
- } from "./cli-038fga5k.js";
3
+ } from "./cli-te6b5wvg.js";
4
4
  import"./cli-36ckw0wx.js";
5
5
  import"./cli-vfha21c9.js";
6
6
  import"./cli-4bd1rck6.js";
@@ -10,7 +10,6 @@ import"./cli-pnp2j5zg.js";
10
10
  import"./cli-0726awxw.js";
11
11
  import"./cli-5kqnemen.js";
12
12
  import"./cli-bn0rewsy.js";
13
- import"./cli-v1sjhn52.js";
14
13
  import"./cli-3h26v7yj.js";
15
14
  import"./cli-e8xyjvfc.js";
16
15
  import"./cli-3ggwdtb0.js";
@@ -6,16 +6,16 @@ import {
6
6
  getTaskById2,
7
7
  cancelTask2,
8
8
  init_db3
9
- } from "./cli-vcgscaan.js";
10
- import"./cli-1eszr343.js";
11
- import"./cli-vq9gqarq.js";
12
- import"./cli-npfe9t1s.js";
9
+ } from "./cli-p20r8w42.js";
10
+ import"./cli-2zqpkvtt.js";
11
+ import"./cli-amyhm3gj.js";
12
+ import"./cli-xc27fwzg.js";
13
13
  import {
14
14
  createTaskWithSiblingAwareness
15
- } from "./cli-kgnkyabk.js";
16
- import"./cli-0dxxwfkt.js";
17
- import"./cli-73ezfhha.js";
18
- import"./cli-pygdsgh8.js";
15
+ } from "./cli-v3yr2gbg.js";
16
+ import"./cli-51y09c6p.js";
17
+ import"./cli-2y91wnbh.js";
18
+ import"./cli-esxerzg7.js";
19
19
  import"./cli-3ggwdtb0.js";
20
20
  import {
21
21
  noteSlackInboundSideEffect,
@@ -26,32 +26,32 @@ import {
26
26
  getAgentEmoji,
27
27
  isSlackRenderV2Enabled2,
28
28
  ensureSlackThreadTree2
29
- } from "./cli-tkf4x6ha.js";
29
+ } from "./cli-qkhc5aqy.js";
30
30
  import {
31
31
  EXTERNAL_CHANNEL_BLOCKED_REPLY2,
32
32
  shouldBlockChannel2
33
- } from "./cli-v87dr6e3.js";
34
- import"./cli-s9rr4gr2.js";
33
+ } from "./cli-1d70crsy.js";
34
+ import"./cli-q6r7t299.js";
35
35
  import"./cli-8nyhf7za.js";
36
36
  import"./cli-kvzgak7c.js";
37
37
  import"./cli-445c1vp7.js";
38
38
  import"./cli-ejs3m1sx.js";
39
39
  import"./cli-wt645v7q.js";
40
40
  import"./cli-qz93y3x5.js";
41
- import"./cli-qp2m4btv.js";
42
- import"./cli-1n9gdg56.js";
41
+ import"./cli-4dg55wsk.js";
42
+ import"./cli-t7cyef5g.js";
43
43
  import"./cli-e8xyjvfc.js";
44
44
  import"./cli-qje9k2nh.js";
45
- import"./cli-gx0j2khs.js";
46
- import"./cli-6eyncg0y.js";
45
+ import"./cli-w6nadkh4.js";
46
+ import"./cli-cynvc9fj.js";
47
47
  import"./cli-3h26v7yj.js";
48
48
  import"./cli-smvcw9z5.js";
49
49
  import {
50
50
  resolveSlackUserId
51
- } from "./cli-4yef8ghv.js";
51
+ } from "./cli-2v045xyf.js";
52
52
  import"./cli-13p25grh.js";
53
53
  import"./cli-0adyhvq2.js";
54
- import"./cli-sds5zzs8.js";
54
+ import"./cli-9fhkkpj5.js";
55
55
 
56
56
  // src/slack/actions.ts
57
57
  init_db3();
@@ -2,11 +2,11 @@ import {
2
2
  checkAmpCredentials2,
3
3
  liveTestAmpCredentials2,
4
4
  AmpAdapter2
5
- } from "./cli-1ma335fz.js";
5
+ } from "./cli-1ephgwnq.js";
6
6
  import"./cli-jc1g9ndz.js";
7
7
  import"./cli-a5ebc95n.js";
8
8
  import"./cli-bn0rewsy.js";
9
- import"./cli-1eszr343.js";
9
+ import"./cli-2zqpkvtt.js";
10
10
  import"./cli-e8xyjvfc.js";
11
11
  import"./cli-3ggwdtb0.js";
12
12
  export {
@@ -3,9 +3,9 @@ import {
3
3
  initSlackApp2,
4
4
  startSlackApp2,
5
5
  stopSlackApp2
6
- } from "./cli-tkf4x6ha.js";
7
- import"./cli-v87dr6e3.js";
8
- import"./cli-vcgscaan.js";
6
+ } from "./cli-qkhc5aqy.js";
7
+ import"./cli-1d70crsy.js";
8
+ import"./cli-p20r8w42.js";
9
9
  export {
10
10
  getSlackApp2 as getSlackApp,
11
11
  initSlackApp2 as initSlackApp,
@@ -6,7 +6,7 @@ import {
6
6
  getMostRecentTaskInThread2,
7
7
  reactionName,
8
8
  init_db3
9
- } from "./cli-vcgscaan.js";
9
+ } from "./cli-p20r8w42.js";
10
10
  import {
11
11
  require_dist4,
12
12
  noteSlackInboundSideEffect,
@@ -17,51 +17,51 @@ import {
17
17
  markSlackSessionProcessing,
18
18
  isSlackRenderV2Enabled2,
19
19
  ensureSlackThreadTree2
20
- } from "./cli-tkf4x6ha.js";
20
+ } from "./cli-qkhc5aqy.js";
21
21
  import {
22
22
  shouldBlockChannel2
23
- } from "./cli-v87dr6e3.js";
23
+ } from "./cli-1d70crsy.js";
24
24
  import {
25
25
  buildEffectiveText,
26
26
  fetchSlackFiles,
27
27
  createSlackTaskWithFiles,
28
28
  notifySlackFileFailures,
29
29
  hasOtherUserMention
30
- } from "./cli-kgnkyabk.js";
30
+ } from "./cli-v3yr2gbg.js";
31
31
  import {
32
32
  resolveSlackUserId,
33
33
  rewriteSlackMentions
34
- } from "./cli-4yef8ghv.js";
34
+ } from "./cli-2v045xyf.js";
35
35
  import {
36
36
  wasEventSeen,
37
37
  bufferThreadMessage,
38
38
  getBufferMessageCount
39
- } from "./cli-bxrqvpg5.js";
39
+ } from "./cli-b8k7epj1.js";
40
40
  import"./cli-qje9k2nh.js";
41
- import"./cli-1eszr343.js";
42
- import"./cli-vq9gqarq.js";
43
- import"./cli-npfe9t1s.js";
44
- import"./cli-0dxxwfkt.js";
45
- import"./cli-73ezfhha.js";
46
- import"./cli-pygdsgh8.js";
41
+ import"./cli-2zqpkvtt.js";
42
+ import"./cli-amyhm3gj.js";
43
+ import"./cli-xc27fwzg.js";
44
+ import"./cli-51y09c6p.js";
45
+ import"./cli-2y91wnbh.js";
46
+ import"./cli-esxerzg7.js";
47
47
  import"./cli-3ggwdtb0.js";
48
- import"./cli-s9rr4gr2.js";
48
+ import"./cli-q6r7t299.js";
49
49
  import"./cli-8nyhf7za.js";
50
50
  import"./cli-kvzgak7c.js";
51
51
  import"./cli-445c1vp7.js";
52
52
  import"./cli-ejs3m1sx.js";
53
53
  import"./cli-wt645v7q.js";
54
54
  import"./cli-qz93y3x5.js";
55
- import"./cli-qp2m4btv.js";
56
- import"./cli-1n9gdg56.js";
55
+ import"./cli-4dg55wsk.js";
56
+ import"./cli-t7cyef5g.js";
57
57
  import"./cli-e8xyjvfc.js";
58
- import"./cli-gx0j2khs.js";
59
- import"./cli-6eyncg0y.js";
58
+ import"./cli-w6nadkh4.js";
59
+ import"./cli-cynvc9fj.js";
60
60
  import"./cli-3h26v7yj.js";
61
61
  import"./cli-smvcw9z5.js";
62
62
  import"./cli-13p25grh.js";
63
63
  import"./cli-0adyhvq2.js";
64
- import"./cli-sds5zzs8.js";
64
+ import"./cli-9fhkkpj5.js";
65
65
  import {
66
66
  resolveTemplate,
67
67
  init_resolver
@@ -6,7 +6,7 @@ import {
6
6
  getMemoryStore2,
7
7
  init_memory,
8
8
  init_db3
9
- } from "./cli-vcgscaan.js";
9
+ } from "./cli-p20r8w42.js";
10
10
 
11
11
  // src/be/memory/boot-reembed.ts
12
12
  init_db3();
@@ -4,7 +4,7 @@ import {
4
4
  embedScript,
5
5
  init_embeddings,
6
6
  init_db3
7
- } from "./cli-vcgscaan.js";
7
+ } from "./cli-p20r8w42.js";
8
8
 
9
9
  // src/be/scripts/boot-reembed.ts
10
10
  init_db3();
@@ -7,7 +7,7 @@ import {
7
7
  getMemoryStore2,
8
8
  init_memory,
9
9
  init_db3
10
- } from "./cli-vcgscaan.js";
10
+ } from "./cli-p20r8w42.js";
11
11
  import {
12
12
  contentSha256,
13
13
  init_profile_sync
@@ -79,7 +79,7 @@ async function runBootScrubSweep(opts = {}) {
79
79
  console.log(`[${tag}] complete`);
80
80
  const memoryChanged = stats.find((s) => s.table === "agent_memory")?.changed ?? 0;
81
81
  if (memoryChanged > 0 && opts.reembed !== false) {
82
- const { runBootReembed } = await import("./boot-reembed-y3m0ydzj.js");
82
+ const { runBootReembed } = await import("./boot-reembed-srp6v6af.js");
83
83
  await runBootReembed();
84
84
  }
85
85
  return stats;
@@ -2,10 +2,10 @@ import {
2
2
  ensurePricingSeeded2,
3
3
  ensureRbacSeeded2,
4
4
  ensureModelProfilesSeeded2
5
- } from "./cli-1n9gdg56.js";
6
- import"./cli-vq9gqarq.js";
7
- import"./cli-qp2m4btv.js";
8
- import"./cli-vcgscaan.js";
5
+ } from "./cli-t7cyef5g.js";
6
+ import"./cli-amyhm3gj.js";
7
+ import"./cli-4dg55wsk.js";
8
+ import"./cli-p20r8w42.js";
9
9
  export {
10
10
  ensureModelProfilesSeeded2 as ensureModelProfilesSeeded,
11
11
  ensurePricingSeeded2 as ensurePricingSeeded,
@@ -4,8 +4,8 @@ import {
4
4
  buildClaudeSessionEnvironment2,
5
5
  runClaudeSessionSummary2,
6
6
  ClaudeAdapter2
7
- } from "./cli-h0mgxann.js";
8
- import"./cli-aa3tb29r.js";
7
+ } from "./cli-vdm20wej.js";
8
+ import"./cli-55qmbp6z.js";
9
9
  import"./cli-1m17dc9d.js";
10
10
  import"./cli-d82btycs.js";
11
11
  import"./cli-vbhgkw9h.js";
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  DEFAULT_MODEL_TIER_MAP,
14
14
  init_types
15
- } from "./cli-836ehxmt.js";
15
+ } from "./cli-nc35pxb7.js";
16
16
  import {
17
17
  getApiKey,
18
18
  init_api_key
@@ -22,7 +22,7 @@ import"./cli-ejs3m1sx.js";
22
22
  import"./cli-pnp2j5zg.js";
23
23
  import"./cli-d82btycs.js";
24
24
  import"./cli-0726awxw.js";
25
- import"./cli-aa3tb29r.js";
25
+ import"./cli-55qmbp6z.js";
26
26
  import"./cli-e8xyjvfc.js";
27
27
  import {
28
28
  ClaudeBackgroundKeepalive,
@@ -30,7 +30,7 @@ import {
30
30
  cleanupTaskFile2,
31
31
  buildClaudeSessionEnvironment2,
32
32
  runClaudeSessionSummary2
33
- } from "./cli-h0mgxann.js";
33
+ } from "./cli-vdm20wej.js";
34
34
  import"./cli-jc1g9ndz.js";
35
35
  import"./cli-4bd1rck6.js";
36
36
  import"./cli-vbhgkw9h.js";
@@ -4,7 +4,7 @@ import {
4
4
  claimKv2,
5
5
  deleteKv2,
6
6
  init_db3
7
- } from "./cli-vcgscaan.js";
7
+ } from "./cli-p20r8w42.js";
8
8
  import {
9
9
  isEnvFlagEnabled,
10
10
  init_env_flag
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ampBillsCacheWrites,
3
3
  resolveAmpModel
4
- } from "./cli-1eszr343.js";
4
+ } from "./cli-2zqpkvtt.js";
5
5
  import {
6
6
  CONTEXT_FORMULA,
7
7
  computeContextUsedUnified,
@@ -36,7 +36,7 @@ import { mkdir, mkdtemp, rm, writeFile } from "node:fs/promises";
36
36
  import { tmpdir } from "node:os";
37
37
  import { join } from "node:path";
38
38
  init_secret_scrubber();
39
- var AMP_PACKAGE = "@ampcode/cli@0.0.1792470027-g8c393d";
39
+ var AMP_PACKAGE = "@ampcode/cli@0.0.1792506219-g025e7e";
40
40
  var AMP_MCP_SERVER_NAME = "agent-swarm";
41
41
  var AMP_PLUGIN_MODE_KEY = "agent-swarm";
42
42
  var AMP_LIVE_TEST_TIMEOUT_MS = 5000;
@@ -2,17 +2,17 @@ import {
2
2
  getKv2,
3
3
  upsertKv2,
4
4
  init_db3
5
- } from "./cli-vcgscaan.js";
5
+ } from "./cli-p20r8w42.js";
6
6
  import {
7
7
  resolveIdentity,
8
8
  recordUnmappedIdentity
9
- } from "./cli-kgnkyabk.js";
9
+ } from "./cli-v3yr2gbg.js";
10
10
  import {
11
11
  findUserByExternalId,
12
12
  findOrCreateUserByEmail,
13
13
  linkIdentity,
14
14
  init_users
15
- } from "./cli-sds5zzs8.js";
15
+ } from "./cli-9fhkkpj5.js";
16
16
 
17
17
  // src/slack/enrich.ts
18
18
  init_db3();
@@ -39,14 +39,14 @@ import {
39
39
  getResolvedConfig2,
40
40
  getMcpServerById2,
41
41
  init_db3
42
- } from "./cli-vcgscaan.js";
42
+ } from "./cli-p20r8w42.js";
43
43
  import {
44
44
  generateRandomCodeVerifier,
45
45
  generateRandomState,
46
46
  calculatePKCECodeChallenge,
47
47
  oauthAppRowToProviderConfig,
48
48
  ensureAuthorizationTokenOrThrow
49
- } from "./cli-pygdsgh8.js";
49
+ } from "./cli-esxerzg7.js";
50
50
  import {
51
51
  detachedProcessGroup,
52
52
  registerProcessGroup,
@@ -58,7 +58,7 @@ import {
58
58
  import {
59
59
  defaultAssetKey,
60
60
  init_key
61
- } from "./cli-836ehxmt.js";
61
+ } from "./cli-nc35pxb7.js";
62
62
  import {
63
63
  init_zod
64
64
  } from "./cli-4chz1hye.js";
@@ -181366,6 +181366,9 @@ var catalog_generated_default = {
181366
181366
  type: "string"
181367
181367
  },
181368
181368
  additionalProperties: {}
181369
+ },
181370
+ parentTaskId: {
181371
+ type: "string"
181369
181372
  }
181370
181373
  },
181371
181374
  required: ["name"],
@@ -181504,7 +181507,9 @@ function isActionSentinel(value) {
181504
181507
  return true;
181505
181508
  if (value.$rowIndex === true)
181506
181509
  return true;
181507
- return typeof value.$form === "string";
181510
+ if (typeof value.$form === "string")
181511
+ return true;
181512
+ return typeof value.$chain === "string";
181508
181513
  }
181509
181514
  function appendPath(path, part) {
181510
181515
  return path ? `${path}.${part}` : String(part);
@@ -181559,7 +181564,7 @@ function validateSchema(value, schema, path, allowActionSentinels, skipPath) {
181559
181564
  if (isActionSentinel(value)) {
181560
181565
  return allowActionSentinels ? { issues: [], stateRefs: [] } : {
181561
181566
  issues: [
181562
- issue(path, "$row, $rowIndex, and $form bindings are only allowed in action params")
181567
+ issue(path, "$row, $rowIndex, $form, and $chain bindings are only allowed in action params")
181563
181568
  ],
181564
181569
  stateRefs: []
181565
181570
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_MODEL_TIER_MAP,
3
3
  init_types
4
- } from "./cli-836ehxmt.js";
4
+ } from "./cli-nc35pxb7.js";
5
5
 
6
6
  // src/utils/amp-models.ts
7
7
  init_types();
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_package,
3
3
  package_default
4
- } from "./cli-1xsraagq.js";
4
+ } from "./cli-pccfmtb5.js";
5
5
 
6
6
  // src/commands/shared/client-config.ts
7
7
  init_package();
@@ -66,7 +66,7 @@ import {
66
66
  getStaleApprovalRequests2,
67
67
  upsertKv2,
68
68
  init_db3
69
- } from "./cli-vcgscaan.js";
69
+ } from "./cli-p20r8w42.js";
70
70
  import {
71
71
  poolTaskRunsOnHarness,
72
72
  isRuntimePoolWakeable,
@@ -91,29 +91,29 @@ import {
91
91
  createRerouteDecisionTask,
92
92
  createPoolStarvationDecisionTask,
93
93
  canClaim
94
- } from "./cli-kgnkyabk.js";
94
+ } from "./cli-v3yr2gbg.js";
95
95
  import {
96
96
  listRuntimePools2,
97
97
  init_db
98
- } from "./cli-gx0j2khs.js";
98
+ } from "./cli-w6nadkh4.js";
99
99
  import {
100
100
  createApprovalFollowUpTask
101
- } from "./cli-s9rr4gr2.js";
101
+ } from "./cli-q6r7t299.js";
102
102
  import {
103
103
  remediateStalledRuntime
104
- } from "./cli-f0p0f6ja.js";
104
+ } from "./cli-dqb4n629.js";
105
105
  import {
106
106
  runSavedScriptAsAgent
107
- } from "./cli-73ezfhha.js";
107
+ } from "./cli-2y91wnbh.js";
108
108
  import {
109
109
  mintToken,
110
110
  init_users
111
- } from "./cli-sds5zzs8.js";
111
+ } from "./cli-9fhkkpj5.js";
112
112
  import {
113
113
  TERMINAL_TASK_STATUSES,
114
114
  SUPERSEDED_WORKFLOW_TASK_REASON,
115
115
  init_types
116
- } from "./cli-836ehxmt.js";
116
+ } from "./cli-nc35pxb7.js";
117
117
  import {
118
118
  registerTemplate,
119
119
  init_registry,
@@ -128,7 +128,7 @@ import {
128
128
  import {
129
129
  init_package,
130
130
  package_default
131
- } from "./cli-1xsraagq.js";
131
+ } from "./cli-pccfmtb5.js";
132
132
  import {
133
133
  isEnvFlagEnabled,
134
134
  init_env_flag
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_MODEL_TIER_MAP,
23
23
  init_types
24
- } from "./cli-836ehxmt.js";
24
+ } from "./cli-nc35pxb7.js";
25
25
  import {
26
26
  getOpenRouterBaseUrl,
27
27
  getOpenRouterAttributionHeaders,
@@ -2,11 +2,11 @@ import {
2
2
  getDb2,
3
3
  getDbClient2,
4
4
  init_db3
5
- } from "./cli-vcgscaan.js";
5
+ } from "./cli-p20r8w42.js";
6
6
  import {
7
7
  PermissionVerbSchema,
8
8
  init_rbac
9
- } from "./cli-8vverzf7.js";
9
+ } from "./cli-ba8ne1es.js";
10
10
  import {
11
11
  init_env_flag
12
12
  } from "./cli-cebvbc9t.js";
@@ -39,18 +39,18 @@ import {
39
39
  getPendingWaitsByEvent2,
40
40
  resolveWaitState2,
41
41
  init_db3
42
- } from "./cli-vcgscaan.js";
42
+ } from "./cli-p20r8w42.js";
43
43
  import {
44
44
  BaseExecutor,
45
45
  postApprovalCancellationUpdates,
46
- SYSTEM_ONE_DECISION_NODE_TYPE,
46
+ isSystemOneNodeType,
47
47
  systemOneRetryViolations,
48
48
  systemOneUnresolvedError,
49
49
  getNextTargets,
50
50
  findEntryNodes,
51
51
  resolveValidationPort,
52
52
  getSuccessors
53
- } from "./cli-s9rr4gr2.js";
53
+ } from "./cli-q6r7t299.js";
54
54
  import {
55
55
  workflowEventBus2,
56
56
  init_event_bus
@@ -59,7 +59,7 @@ import {
59
59
  RetryPolicySchema,
60
60
  SUPERSEDED_WORKFLOW_TASK_REASON,
61
61
  init_types
62
- } from "./cli-836ehxmt.js";
62
+ } from "./cli-nc35pxb7.js";
63
63
  import {
64
64
  getSlackConfiguration,
65
65
  isSlackConfigured,
@@ -107,7 +107,7 @@ async function notifyAutomationPreflightFailure(preflight) {
107
107
  return;
108
108
  }
109
109
  try {
110
- const { getSlackApp } = await import("./app-6sv8mhzm.js");
110
+ const { getSlackApp } = await import("./app-rb7vc02s.js");
111
111
  const app = getSlackApp();
112
112
  if (!app) {
113
113
  console.warn("[Automation Preflight] Slack not available, cannot send notification");
@@ -1380,7 +1380,7 @@ async function runClaimedStep(def, runId, ctx, node, registry, existingStep, ste
1380
1380
  return { outcome: "failed", successors: [] };
1381
1381
  }
1382
1382
  if (strictUnresolved && strictUnresolved.length > 0) {
1383
- await checkpointStepFailure(runId, stepId, systemOneUnresolvedError(node.id, strictUnresolved), 0);
1383
+ await checkpointStepFailure(runId, stepId, systemOneUnresolvedError(node.id, strictUnresolved, node.type), 0);
1384
1384
  return { outcome: "failed", successors: [] };
1385
1385
  }
1386
1386
  if (unresolved.length > 0) {
@@ -1435,7 +1435,7 @@ async function runClaimedStep(def, runId, ctx, node, registry, existingStep, ste
1435
1435
  if ("async" in result && result.async) {
1436
1436
  const waiting = await checkpointStepWaiting(runId, stepId, ctx);
1437
1437
  if (waiting && result.waitFor === "workflow.child.finished") {
1438
- const { resumeFromChildRun } = await import("./resume-v315hnq6.js");
1438
+ const { resumeFromChildRun } = await import("./resume-z0fgjc38.js");
1439
1439
  await resumeFromChildRun(stepId, registry);
1440
1440
  }
1441
1441
  return { outcome: waiting ? "waiting" : "completed", successors: [] };
@@ -1549,15 +1549,18 @@ function buildScriptBodyCtx(node, interpolationCtx) {
1549
1549
  }
1550
1550
  return safe;
1551
1551
  }
1552
+ var SYSTEM_ONE_DATA_FIELDS = new Set(["state", "questions", "fields", "images"]);
1552
1553
  function interpolateNodeConfig(node, interpolationCtx) {
1553
- if (node.type === SYSTEM_ONE_DECISION_NODE_TYPE) {
1554
- const { state, questions, ...rest } = node.config;
1555
- const restResult = deepInterpolate(rest, interpolationCtx);
1554
+ if (isSystemOneNodeType(node.type)) {
1555
+ const rest = {};
1556
1556
  const dynamic = {};
1557
- if (Object.hasOwn(node.config, "state"))
1558
- dynamic.state = state;
1559
- if (Object.hasOwn(node.config, "questions"))
1560
- dynamic.questions = questions;
1557
+ for (const [key, value] of Object.entries(node.config)) {
1558
+ if (SYSTEM_ONE_DATA_FIELDS.has(key))
1559
+ dynamic[key] = value;
1560
+ else
1561
+ rest[key] = value;
1562
+ }
1563
+ const restResult = deepInterpolate(rest, interpolationCtx);
1561
1564
  const dynamicResult = deepInterpolate(dynamic, interpolationCtx, { preserveRawTokens: true });
1562
1565
  const unresolved = [...restResult.unresolved, ...dynamicResult.unresolved];
1563
1566
  return {
@@ -31,7 +31,7 @@ import {
31
31
  import {
32
32
  init_package,
33
33
  package_default
34
- } from "./cli-1xsraagq.js";
34
+ } from "./cli-pccfmtb5.js";
35
35
  import {
36
36
  MAX_PROFILE_FILE_LENGTH,
37
37
  getMcpBaseUrl,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  RuntimeProviderKindSchema,
3
3
  init_types
4
- } from "./cli-836ehxmt.js";
4
+ } from "./cli-nc35pxb7.js";
5
5
  import {
6
6
  init_zod
7
7
  } from "./cli-4chz1hye.js";