@desplega.ai/agent-swarm 1.124.0 → 1.125.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 (101) hide show
  1. package/dist/{actions-z3d0fk7z.js → actions-3aky6er5.js} +6 -5
  2. package/dist/{app-q2rc9tdr.js → app-xbt4n4mt.js} +4 -3
  3. package/dist/{assistant-3stjq7fz.js → assistant-ncftbs9t.js} +12 -10
  4. package/dist/{boot-reembed-v6r1df32.js → boot-reembed-00cxm1mj.js} +5 -4
  5. package/dist/{boot-reembed-5867whnb.js → boot-reembed-5xxzva12.js} +4 -3
  6. package/dist/{boot-scrub-logs-8b8jegk3.js → boot-scrub-logs-9cmcq6ez.js} +3 -2
  7. package/dist/{cli-0925phzv.js → cli-0w3mk6r2.js} +1 -1
  8. package/dist/{cli-zxb72ctk.js → cli-3x5aphbt.js} +2 -2
  9. package/dist/{cli-exfs8aym.js → cli-3y8xyp0b.js} +7 -1
  10. package/dist/{cli-2yr6edr7.js → cli-4xft7caa.js} +4 -4
  11. package/dist/{cli-kk58tg33.js → cli-5a4nmfrn.js} +12 -10
  12. package/dist/{cli-5jn6wnd9.js → cli-88r31vx9.js} +2 -2
  13. package/dist/{cli-sqv6c9b8.js → cli-8bkwn1wv.js} +11 -9
  14. package/dist/{cli-p0zgv8pj.js → cli-8vzddbs7.js} +2 -1
  15. package/dist/{cli-qf7acvyr.js → cli-94796kxr.js} +2 -2
  16. package/dist/{cli-wn3m6q54.js → cli-dbmh9yqn.js} +7 -5
  17. package/dist/{cli-p0ec4vv6.js → cli-ff8b5cbe.js} +1 -1
  18. package/dist/{cli-y43n987v.js → cli-gbx122ge.js} +1 -1
  19. package/dist/{cli-ykthjw29.js → cli-jcavqvh7.js} +20 -24
  20. package/dist/cli-k1py8264.js +1129 -0
  21. package/dist/{cli-qwsagsmg.js → cli-k5c6jfzn.js} +1 -1
  22. package/dist/{cli-gkvf8d83.js → cli-n02497b2.js} +5 -3
  23. package/dist/{cli-vm20sh8d.js → cli-nqq9tthd.js} +9 -7
  24. package/dist/{cli-jp4mdj9d.js → cli-pqtrhrss.js} +2 -2
  25. package/dist/{cli-gzjsamwc.js → cli-q92pr3rt.js} +1 -1
  26. package/dist/{cli-mmk5vagg.js → cli-qzy21svh.js} +2 -2
  27. package/dist/{cli-dq2ssyf0.js → cli-refygp3c.js} +5 -5
  28. package/dist/{cli-perb20ma.js → cli-tar44ekp.js} +1 -1
  29. package/dist/{cli-h89g0qrd.js → cli-v292k2fv.js} +1 -1
  30. package/dist/{cli-mcez7z4p.js → cli-vvbwy286.js} +1 -1
  31. package/dist/{cli-x268say8.js → cli-wbcsjpyv.js} +366 -68
  32. package/dist/cli-wdrrgv4m.js +22 -0
  33. package/dist/{cli-3z4q09tn.js → cli-yr11vvst.js} +32 -1127
  34. package/dist/{cli-92bqgbgy.js → cli-zhp3t49e.js} +4 -2
  35. package/dist/cli.js +23 -10
  36. package/dist/{codex-adapter-vcseqpwf.js → codex-adapter-mqczt8xv.js} +1 -1
  37. package/dist/codex-hook-emq42pfq.js +106 -0
  38. package/dist/{codex-session-runner-jec9e9t1.js → codex-session-runner-mrwz1h50.js} +1 -1
  39. package/dist/{commands-sda76yn8.js → commands-7dbx98fp.js} +5 -3
  40. package/dist/{db-vn9e4rqj.js → db-r5705rk8.js} +7 -2
  41. package/dist/{handlers-xfja18ac.js → handlers-8kj038es.js} +12 -10
  42. package/dist/{hook-2medrp47.js → hook-2590fnyk.js} +1 -1
  43. package/dist/{http-937pyjfc.js → http-8yej35d0.js} +77 -55
  44. package/dist/{index-vah60vxp.js → index-hy73j39b.js} +8 -7
  45. package/dist/{index-knqczmnm.js → index-kgay2v5w.js} +11 -10
  46. package/dist/{index-gw4en7jg.js → index-v3n4hb3w.js} +10 -9
  47. package/dist/{index-2bqd2q9v.js → index-x1n3tybc.js} +12 -11
  48. package/dist/{keepalive-20rd6hxh.js → keepalive-q8yg6d6r.js} +6 -5
  49. package/dist/{lead-7w2k3a49.js → lead-yxtt169p.js} +23 -21
  50. package/dist/{maintenance-p3x918yw.js → maintenance-70cskw5t.js} +5 -4
  51. package/dist/{oauth-refresh-sweep-shm0nzm4.js → oauth-refresh-sweep-90h9rzx8.js} +5 -4
  52. package/dist/{onboard-py9dnf54.js → onboard-20reqz6j.js} +2 -2
  53. package/dist/{otel-impl-7yjkfg68.js → otel-impl-vja8f9mm.js} +1 -1
  54. package/dist/{pricing-refresh-3snb6370.js → pricing-refresh-34mbexgm.js} +5 -4
  55. package/dist/{rbac-roles-gqxdp8st.js → rbac-roles-s1qnewkt.js} +5 -4
  56. package/dist/{rbac-roles-5e72bbpk.js → rbac-roles-sa59eyp4.js} +4 -3
  57. package/dist/{seed-pricing-bg42d7h2.js → seed-pricing-p5fnj0qd.js} +4 -3
  58. package/dist/{setup-nzk3kbbq.js → setup-p9yq3mb2.js} +2 -2
  59. package/dist/{worker-0p1jdzkm.js → worker-21zrq8cd.js} +23 -21
  60. package/openapi.json +1 -1
  61. package/package.json +2 -1
  62. package/src/be/db.ts +30 -0
  63. package/src/cli.tsx +12 -0
  64. package/src/commands/runner.ts +11 -23
  65. package/src/hooks/codex-hook.ts +157 -0
  66. package/src/http/kv.ts +37 -8
  67. package/src/http/mcp-bridge.ts +3 -2
  68. package/src/kv-overflow.ts +20 -0
  69. package/src/prompts/steering-delivery.ts +32 -0
  70. package/src/providers/codex-adapter.ts +20 -4
  71. package/src/providers/types.ts +8 -0
  72. package/src/script-workflows/harness.ts +5 -1
  73. package/src/script-workflows/workflow-ctx.ts +6 -7
  74. package/src/scripts-runtime/eval-harness.ts +11 -2
  75. package/src/scripts-runtime/extract-args-schema.ts +5 -1
  76. package/src/scripts-runtime/response-limit.ts +50 -0
  77. package/src/scripts-runtime/swarm-sdk.ts +3 -4
  78. package/src/tests/claude-adapter-binary.test.ts +64 -32
  79. package/src/tests/codex-steering-hook.test.ts +224 -0
  80. package/src/tests/kv-http.test.ts +35 -1
  81. package/src/tests/kv-storage.test.ts +45 -0
  82. package/src/tests/kv-tool.test.ts +51 -0
  83. package/src/tests/run-bun-tests.test.ts +171 -0
  84. package/src/tests/scripts-mcp-e2e.test.ts +105 -1
  85. package/src/tests/scripts-runtime.test.ts +33 -0
  86. package/src/tests/sdk-allowlist.test.ts +27 -1
  87. package/src/tests/slack-read-boundaries.test.ts +229 -0
  88. package/src/tests/steering-core.test.ts +19 -19
  89. package/src/tests/steering-transport.test.ts +21 -3
  90. package/src/tests/store-progress-attachments-handler.test.ts +45 -10
  91. package/src/tests/swarm-tool-result-gate.test.ts +300 -21
  92. package/src/tests/tool-output-agent-id.test.ts +9 -3
  93. package/src/tests/tool-registrar-no-input.test.ts +6 -0
  94. package/src/tools/kv/kv-get.ts +10 -0
  95. package/src/tools/kv/kv-list.ts +7 -0
  96. package/src/tools/kv/kv-read-auth.ts +13 -0
  97. package/src/tools/kv/kv-write-auth.ts +4 -0
  98. package/src/tools/steer-task.ts +1 -1
  99. package/src/tools/store-progress.ts +24 -7
  100. package/src/tools/utils.ts +403 -43
  101. package/src/types.ts +7 -1
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  resolveSlackUserId
3
- } from "./cli-jp4mdj9d.js";
4
- import"./cli-0925phzv.js";
3
+ } from "./cli-pqtrhrss.js";
4
+ import"./cli-0w3mk6r2.js";
5
5
  import {
6
6
  createTaskWithSiblingAwareness
7
- } from "./cli-qwsagsmg.js";
7
+ } from "./cli-k5c6jfzn.js";
8
8
  import {
9
9
  buildCancelledBlocks,
10
10
  getTaskLink
@@ -19,9 +19,10 @@ import {
19
19
  init_context_key,
20
20
  init_db,
21
21
  slackContextKey
22
- } from "./cli-3z4q09tn.js";
22
+ } from "./cli-yr11vvst.js";
23
+ import"./cli-k1py8264.js";
23
24
  import"./cli-z2zcxes1.js";
24
- import"./cli-p0zgv8pj.js";
25
+ import"./cli-8vzddbs7.js";
25
26
  import"./cli-4j2mrzag.js";
26
27
  import"./cli-bw80ck94.js";
27
28
  import"./cli-xz9aq0rf.js";
@@ -3,15 +3,16 @@ import {
3
3
  initSlackApp,
4
4
  startSlackApp,
5
5
  stopSlackApp
6
- } from "./cli-dq2ssyf0.js";
6
+ } from "./cli-refygp3c.js";
7
7
  import"./cli-rkndnn90.js";
8
8
  import"./cli-b0p7rfnd.js";
9
9
  import"./cli-5ncdb7ff.js";
10
10
  import"./cli-wspgs9bt.js";
11
11
  import"./cli-dh55d5fg.js";
12
- import"./cli-3z4q09tn.js";
12
+ import"./cli-yr11vvst.js";
13
+ import"./cli-k1py8264.js";
13
14
  import"./cli-z2zcxes1.js";
14
- import"./cli-p0zgv8pj.js";
15
+ import"./cli-8vzddbs7.js";
15
16
  import"./cli-4j2mrzag.js";
16
17
  import"./cli-bw80ck94.js";
17
18
  import"./cli-xz9aq0rf.js";
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  bufferThreadMessage,
3
3
  wasEventSeen
4
- } from "./cli-sqv6c9b8.js";
4
+ } from "./cli-8bkwn1wv.js";
5
5
  import {
6
6
  hasOtherUserMention
7
- } from "./cli-92bqgbgy.js";
7
+ } from "./cli-zhp3t49e.js";
8
8
  import {
9
9
  resolveSlackUserId,
10
10
  rewriteSlackMentions
11
- } from "./cli-jp4mdj9d.js";
12
- import"./cli-0925phzv.js";
11
+ } from "./cli-pqtrhrss.js";
12
+ import"./cli-0w3mk6r2.js";
13
13
  import {
14
14
  createTaskWithSiblingAwareness
15
- } from "./cli-qwsagsmg.js";
15
+ } from "./cli-k5c6jfzn.js";
16
16
  import {
17
17
  require_dist
18
- } from "./cli-dq2ssyf0.js";
18
+ } from "./cli-refygp3c.js";
19
19
  import"./cli-rkndnn90.js";
20
20
  import"./cli-b0p7rfnd.js";
21
21
  import"./cli-5ncdb7ff.js";
@@ -27,14 +27,16 @@ import {
27
27
  getMostRecentTaskInThread,
28
28
  init_context_key,
29
29
  init_db,
30
+ slackContextKey
31
+ } from "./cli-yr11vvst.js";
32
+ import {
30
33
  init_env_flag,
31
34
  init_resolver,
32
35
  isEnvFlagEnabled,
33
- resolveTemplate,
34
- slackContextKey
35
- } from "./cli-3z4q09tn.js";
36
+ resolveTemplate
37
+ } from "./cli-k1py8264.js";
36
38
  import"./cli-z2zcxes1.js";
37
- import"./cli-p0zgv8pj.js";
39
+ import"./cli-8vzddbs7.js";
38
40
  import"./cli-4j2mrzag.js";
39
41
  import"./cli-bw80ck94.js";
40
42
  import"./cli-xz9aq0rf.js";
@@ -1,15 +1,16 @@
1
1
  import {
2
2
  embedScript,
3
3
  embeddingProvider
4
- } from "./cli-mmk5vagg.js";
5
- import"./cli-p0ec4vv6.js";
4
+ } from "./cli-qzy21svh.js";
5
+ import"./cli-ff8b5cbe.js";
6
6
  import"./cli-q25ejbyn.js";
7
7
  import {
8
8
  getDb,
9
9
  init_db
10
- } from "./cli-3z4q09tn.js";
10
+ } from "./cli-yr11vvst.js";
11
+ import"./cli-k1py8264.js";
11
12
  import"./cli-z2zcxes1.js";
12
- import"./cli-p0zgv8pj.js";
13
+ import"./cli-8vzddbs7.js";
13
14
  import"./cli-4j2mrzag.js";
14
15
  import"./cli-bw80ck94.js";
15
16
  import"./cli-xz9aq0rf.js";
@@ -3,14 +3,15 @@ import {
3
3
  getEmbeddingProvider,
4
4
  getMemoryStore,
5
5
  init_constants
6
- } from "./cli-p0ec4vv6.js";
6
+ } from "./cli-ff8b5cbe.js";
7
7
  import"./cli-q25ejbyn.js";
8
8
  import {
9
9
  getDb,
10
10
  init_db
11
- } from "./cli-3z4q09tn.js";
11
+ } from "./cli-yr11vvst.js";
12
+ import"./cli-k1py8264.js";
12
13
  import"./cli-z2zcxes1.js";
13
- import"./cli-p0zgv8pj.js";
14
+ import"./cli-8vzddbs7.js";
14
15
  import"./cli-4j2mrzag.js";
15
16
  import"./cli-bw80ck94.js";
16
17
  import"./cli-xz9aq0rf.js";
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  getDb,
3
3
  init_db
4
- } from "./cli-3z4q09tn.js";
4
+ } from "./cli-yr11vvst.js";
5
+ import"./cli-k1py8264.js";
5
6
  import"./cli-z2zcxes1.js";
6
- import"./cli-p0zgv8pj.js";
7
+ import"./cli-8vzddbs7.js";
7
8
  import {
8
9
  init_secret_scrubber,
9
10
  scrubSecrets
@@ -4,7 +4,7 @@ import {
4
4
  incrKv,
5
5
  init_db,
6
6
  upsertKv
7
- } from "./cli-3z4q09tn.js";
7
+ } from "./cli-yr11vvst.js";
8
8
 
9
9
  // src/be/users.ts
10
10
  init_db();
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  PermissionVerbSchema
3
- } from "./cli-y43n987v.js";
3
+ } from "./cli-gbx122ge.js";
4
4
  import {
5
5
  getDb,
6
6
  init_db
7
- } from "./cli-3z4q09tn.js";
7
+ } from "./cli-yr11vvst.js";
8
8
 
9
9
  // src/be/rbac-roles.ts
10
10
  init_db();
@@ -186433,6 +186433,7 @@ async function buildCodexConfig(config, model, emit) {
186433
186433
  }
186434
186434
 
186435
186435
  class CodexSession {
186436
+ steeringDeliveredExternally = true;
186436
186437
  thread;
186437
186438
  config;
186438
186439
  agentsMdHandle;
@@ -187044,6 +187045,7 @@ function resolveCodexRunnerArgv() {
187044
187045
  }
187045
187046
 
187046
187047
  class CodexSubprocessSession {
187048
+ steeringDeliveredExternally = true;
187047
187049
  proc;
187048
187050
  listeners = [];
187049
187051
  eventQueue = [];
@@ -187196,7 +187198,11 @@ class CodexSubprocessSession {
187196
187198
 
187197
187199
  class CodexAdapter {
187198
187200
  name = "codex";
187199
- traits = { hasMcp: true, hasLocalEnvironment: true, steerModes: [] };
187201
+ traits = {
187202
+ hasMcp: true,
187203
+ hasLocalEnvironment: true,
187204
+ steerModes: ["queue"]
187205
+ };
187200
187206
  skillsDir;
187201
187207
  summarizeDeps;
187202
187208
  bypassSubprocess;
@@ -4,15 +4,15 @@ import {
4
4
  handleScheduleTrigger,
5
5
  runScript,
6
6
  startWorkflowExecution
7
- } from "./cli-kk58tg33.js";
7
+ } from "./cli-5a4nmfrn.js";
8
8
  import {
9
9
  getScript,
10
10
  getScriptApiConnectionDescriptors,
11
11
  getScriptMcpConnectionDescriptors
12
- } from "./cli-wn3m6q54.js";
12
+ } from "./cli-dbmh9yqn.js";
13
13
  import {
14
14
  createTaskWithSiblingAwareness
15
- } from "./cli-qwsagsmg.js";
15
+ } from "./cli-k5c6jfzn.js";
16
16
  import {
17
17
  getDb,
18
18
  getDueScheduledTasks,
@@ -24,7 +24,7 @@ import {
24
24
  scheduleContextKey,
25
25
  telemetry,
26
26
  updateScheduledTask
27
- } from "./cli-3z4q09tn.js";
27
+ } from "./cli-yr11vvst.js";
28
28
  import {
29
29
  __commonJS,
30
30
  __require,
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  ensureAuthorizationTokenOrThrow,
9
9
  oauthAppRowToProviderConfig
10
- } from "./cli-h89g0qrd.js";
10
+ } from "./cli-v292k2fv.js";
11
11
  import {
12
12
  getScript,
13
13
  getScriptApiConnectionDescriptors,
@@ -15,15 +15,15 @@ import {
15
15
  getScriptVersion,
16
16
  listRelationalCredentialBindings,
17
17
  validateScriptImports
18
- } from "./cli-wn3m6q54.js";
18
+ } from "./cli-dbmh9yqn.js";
19
19
  import {
20
20
  getAuthorizationById,
21
21
  getOAuthApp,
22
22
  getOAuthAppById
23
- } from "./cli-mcez7z4p.js";
23
+ } from "./cli-vvbwy286.js";
24
24
  import {
25
25
  withSiblingAwareness
26
- } from "./cli-qwsagsmg.js";
26
+ } from "./cli-k5c6jfzn.js";
27
27
  import {
28
28
  getAppUrl
29
29
  } from "./cli-dh55d5fg.js";
@@ -37,7 +37,6 @@ import {
37
37
  createWorkflowRun,
38
38
  createWorkflowRunStep,
39
39
  createWorkflowVersion,
40
- deepInterpolate,
41
40
  exports_db,
42
41
  getCompletedStepNodeIds,
43
42
  getDb,
@@ -67,9 +66,7 @@ import {
67
66
  init_credential_broker,
68
67
  init_db,
69
68
  init_telemetry,
70
- init_template,
71
69
  init_types,
72
- interpolate,
73
70
  resolveApprovalRequest,
74
71
  resolveWaitState,
75
72
  splitLegacyModelAlias,
@@ -77,7 +74,12 @@ import {
77
74
  updateWorkflowRun,
78
75
  updateWorkflowRunStep,
79
76
  workflowContextKey
80
- } from "./cli-3z4q09tn.js";
77
+ } from "./cli-yr11vvst.js";
78
+ import {
79
+ deepInterpolate,
80
+ init_template,
81
+ interpolate
82
+ } from "./cli-k1py8264.js";
81
83
  import {
82
84
  init_secret_scrubber,
83
85
  isSensitiveKey,
@@ -2627,7 +2629,7 @@ class HumanInTheLoopExecutor extends BaseExecutor {
2627
2629
  }
2628
2630
  if (notification.channel === "slack") {
2629
2631
  try {
2630
- const { getSlackApp } = await import("./app-q2rc9tdr.js");
2632
+ const { getSlackApp } = await import("./app-xbt4n4mt.js");
2631
2633
  const slackApp = getSlackApp();
2632
2634
  if (!slackApp) {
2633
2635
  console.warn("[HITL] Slack not initialized — cannot send notification");
@@ -2741,7 +2743,7 @@ class NotifyExecutor extends BaseExecutor {
2741
2743
  }
2742
2744
  }
2743
2745
  case "slack": {
2744
- const { getSlackApp } = await import("./app-q2rc9tdr.js");
2746
+ const { getSlackApp } = await import("./app-xbt4n4mt.js");
2745
2747
  const app = getSlackApp();
2746
2748
  if (!app) {
2747
2749
  return {
@@ -2,7 +2,7 @@ import {
2
2
  getScriptApiTypes,
3
3
  getScriptMcpTypes,
4
4
  require_typescript
5
- } from "./cli-wn3m6q54.js";
5
+ } from "./cli-dbmh9yqn.js";
6
6
  import {
7
7
  deleteSwarmConfigByKey,
8
8
  getAgentById,
@@ -11,7 +11,7 @@ import {
11
11
  getSwarmConfigs,
12
12
  init_db,
13
13
  upsertSwarmConfig
14
- } from "./cli-3z4q09tn.js";
14
+ } from "./cli-yr11vvst.js";
15
15
  import {
16
16
  init_secret_scrubber,
17
17
  scrubSecrets
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  createAdditiveBuffer,
3
3
  extractSlackMessageText
4
- } from "./cli-92bqgbgy.js";
4
+ } from "./cli-zhp3t49e.js";
5
5
  import {
6
6
  rewriteSlackMentions
7
- } from "./cli-jp4mdj9d.js";
7
+ } from "./cli-pqtrhrss.js";
8
8
  import {
9
9
  createTaskWithSiblingAwareness
10
- } from "./cli-qwsagsmg.js";
10
+ } from "./cli-k5c6jfzn.js";
11
11
  import {
12
12
  getSlackApp,
13
13
  registerTreeMessage
14
- } from "./cli-dq2ssyf0.js";
14
+ } from "./cli-refygp3c.js";
15
15
  import {
16
16
  buildBufferFlushBlocks
17
17
  } from "./cli-5ncdb7ff.js";
@@ -22,14 +22,16 @@ import {
22
22
  getMostRecentTaskInThread,
23
23
  init_context_key,
24
24
  init_db,
25
- init_registry,
26
25
  init_steering,
27
- init_steering_enabled,
28
- isSteeringEnabled,
29
- registerTemplate,
30
26
  requestSteering,
31
27
  slackContextKey
32
- } from "./cli-3z4q09tn.js";
28
+ } from "./cli-yr11vvst.js";
29
+ import {
30
+ init_registry,
31
+ init_steering_enabled,
32
+ isSteeringEnabled,
33
+ registerTemplate
34
+ } from "./cli-k1py8264.js";
33
35
 
34
36
  // src/slack/event-dedup.ts
35
37
  var DEFAULT_TTL_MS = 300000;
@@ -7,7 +7,7 @@ var package_default;
7
7
  var init_package = __esm(() => {
8
8
  package_default = {
9
9
  name: "@desplega.ai/agent-swarm",
10
- version: "1.124.0",
10
+ version: "1.125.0",
11
11
  description: "Multi-agent orchestration for Claude Code, Codex, Gemini CLI, and other AI coding assistants",
12
12
  license: "MIT",
13
13
  author: "desplega.sh <contact@desplega.sh>",
@@ -72,6 +72,7 @@ var init_package = __esm(() => {
72
72
  "mono:test": "turbo run test",
73
73
  "mono:lint": "turbo run lint",
74
74
  "mono:dev": "turbo run dev",
75
+ "test:root": "bash scripts/run-bun-tests.sh",
75
76
  prepack: "bun run build:cli",
76
77
  "tsc:check": "bun tsc --noEmit",
77
78
  "check:db-boundary": "bash scripts/check-db-boundary.sh",
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  buildModelsDevSeedRows,
3
3
  loadModelsDevCache
4
- } from "./cli-gzjsamwc.js";
4
+ } from "./cli-q92pr3rt.js";
5
5
  import {
6
6
  createLogEntry,
7
7
  getActivePricingRow,
8
8
  getDb,
9
9
  init_db,
10
10
  insertPricingRow
11
- } from "./cli-3z4q09tn.js";
11
+ } from "./cli-yr11vvst.js";
12
12
  import {
13
13
  init_secret_scrubber,
14
14
  scrubSecrets
@@ -3,7 +3,7 @@ import {
3
3
  } from "./cli-jkhwmmgg.js";
4
4
  import {
5
5
  embedScript
6
- } from "./cli-mmk5vagg.js";
6
+ } from "./cli-qzy21svh.js";
7
7
  import {
8
8
  calculatePKCECodeChallenge,
9
9
  generateRandomCodeVerifier,
@@ -12,7 +12,7 @@ import {
12
12
  getOAuthAppById,
13
13
  updateAuthorizationTokens,
14
14
  upsertAuthorization
15
- } from "./cli-mcez7z4p.js";
15
+ } from "./cli-vvbwy286.js";
16
16
  import {
17
17
  computeContentHash,
18
18
  decryptSecret,
@@ -25,12 +25,14 @@ import {
25
25
  init_crypto,
26
26
  init_date_utils,
27
27
  init_db,
28
- init_env_flag,
29
- isEnvFlagEnabled,
30
28
  normalizeDateRequired,
31
29
  placeholderForConfigKey,
32
30
  upsertSwarmConfig
33
- } from "./cli-3z4q09tn.js";
31
+ } from "./cli-yr11vvst.js";
32
+ import {
33
+ init_env_flag,
34
+ isEnvFlagEnabled
35
+ } from "./cli-k1py8264.js";
34
36
  import {
35
37
  init_secret_scrubber,
36
38
  refreshSecretScrubberCache,
@@ -6,7 +6,7 @@ import {
6
6
  getDb,
7
7
  init_db,
8
8
  isSqliteVecAvailable
9
- } from "./cli-3z4q09tn.js";
9
+ } from "./cli-yr11vvst.js";
10
10
  import {
11
11
  __esm,
12
12
  __export,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_env_flag,
3
3
  isEnvFlagEnabled
4
- } from "./cli-3z4q09tn.js";
4
+ } from "./cli-k1py8264.js";
5
5
  import {
6
6
  init_zod
7
7
  } from "./cli-bw80ck94.js";
@@ -1,6 +1,9 @@
1
+ import {
2
+ renderSteeringDelivery
3
+ } from "./cli-wdrrgv4m.js";
1
4
  import {
2
5
  checkCodexCredentials
3
- } from "./cli-exfs8aym.js";
6
+ } from "./cli-3y8xyp0b.js";
4
7
  import {
5
8
  checkClaudeManagedCredentials
6
9
  } from "./cli-jj1arm18.js";
@@ -19,7 +22,7 @@ import {
19
22
  withSpan,
20
23
  withSpanContext,
21
24
  writeSkillsToFilesystem
22
- } from "./cli-x268say8.js";
25
+ } from "./cli-wbcsjpyv.js";
23
26
  import {
24
27
  authJsonToCredentialSelection,
25
28
  credentialsToAuthJson,
@@ -41,10 +44,10 @@ import {
41
44
  import {
42
45
  ensure,
43
46
  initialize
44
- } from "./cli-2yr6edr7.js";
47
+ } from "./cli-4xft7caa.js";
45
48
  import {
46
49
  validateJsonSchema
47
- } from "./cli-kk58tg33.js";
50
+ } from "./cli-5a4nmfrn.js";
48
51
  import {
49
52
  getApiKey
50
53
  } from "./cli-f14fvzag.js";
@@ -66,26 +69,28 @@ import {
66
69
  } from "./cli-dh55d5fg.js";
67
70
  import {
68
71
  ProviderNameSchema,
69
- configureHttpResolver,
70
72
  generateDefaultClaudeMd,
71
73
  generateDefaultIdentityMd,
72
74
  generateDefaultSoulMd,
73
75
  generateDefaultToolsMd,
74
76
  initTelemetry,
75
77
  init_defaults,
78
+ init_telemetry,
79
+ init_templates,
80
+ init_types,
81
+ resolveTaskModelSelection,
82
+ telemetry
83
+ } from "./cli-yr11vvst.js";
84
+ import {
85
+ configureHttpResolver,
76
86
  init_resolver,
77
87
  init_session_templates,
78
88
  init_steering_enabled,
79
- init_telemetry,
80
89
  init_template,
81
- init_templates,
82
- init_types,
83
90
  interpolate,
84
91
  isSteeringEnabled,
85
- resolveTaskModelSelection,
86
- resolveTemplateAsync,
87
- telemetry
88
- } from "./cli-3z4q09tn.js";
92
+ resolveTemplateAsync
93
+ } from "./cli-k1py8264.js";
89
94
  import {
90
95
  init_credentials,
91
96
  resolveCredentialPools
@@ -473,7 +478,7 @@ async function createProviderAdapter(provider) {
473
478
  return new PiMonoAdapter;
474
479
  }
475
480
  case "codex": {
476
- const { CodexAdapter } = await import("./codex-adapter-vcseqpwf.js");
481
+ const { CodexAdapter } = await import("./codex-adapter-mqczt8xv.js");
477
482
  return new CodexAdapter;
478
483
  }
479
484
  case "claude-managed": {
@@ -1760,20 +1765,11 @@ function createSteeringDispatchState() {
1760
1765
  outcomes: new Map
1761
1766
  };
1762
1767
  }
1763
- async function renderSteeringDelivery(steeringMessageId, body) {
1764
- try {
1765
- const result = await resolveTemplateAsync("system.agent.steering.delivery", {
1766
- steeringMessageId,
1767
- body
1768
- });
1769
- return result.skipped || !result.text.trim() ? body : result.text;
1770
- } catch {
1771
- return body;
1772
- }
1773
- }
1774
1768
  async function pollAndDispatchSteering(config, taskId, session, state, fetchImpl = fetch) {
1775
1769
  if (!isSteeringEnabled())
1776
1770
  return;
1771
+ if (session.steeringDeliveredExternally)
1772
+ return;
1777
1773
  const headers = {
1778
1774
  Authorization: `Bearer ${config.apiKey}`,
1779
1775
  "X-Agent-ID": config.agentId