@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
@@ -3,7 +3,7 @@ import {
3
3
  getAgentById,
4
4
  getInProgressTasksByContextKey,
5
5
  init_db
6
- } from "./cli-3z4q09tn.js";
6
+ } from "./cli-yr11vvst.js";
7
7
 
8
8
  // src/tasks/sibling-awareness.ts
9
9
  init_db();
@@ -14,13 +14,15 @@ import {
14
14
  hasNonTerminalRerouteDecisionChild,
15
15
  init_date_utils,
16
16
  init_db,
17
+ init_templates1 as init_templates,
18
+ normalizeDateRequired
19
+ } from "./cli-yr11vvst.js";
20
+ import {
17
21
  init_env_flag,
18
22
  init_resolver,
19
- init_templates1 as init_templates,
20
23
  isEnvFlagEnabled,
21
- normalizeDateRequired,
22
24
  resolveTemplate
23
- } from "./cli-3z4q09tn.js";
25
+ } from "./cli-k1py8264.js";
24
26
 
25
27
  // src/be/db-queries/tracker.ts
26
28
  init_date_utils();
@@ -7,11 +7,11 @@ import {
7
7
  getPinCandidateAgent,
8
8
  getResumeGeneration,
9
9
  repointTrackerSyncBySwarmId
10
- } from "./cli-gkvf8d83.js";
10
+ } from "./cli-n02497b2.js";
11
11
  import {
12
12
  getExecutorRegistry,
13
13
  recoverIncompleteRuns
14
- } from "./cli-kk58tg33.js";
14
+ } from "./cli-5a4nmfrn.js";
15
15
  import {
16
16
  MAX_EMPTY_POLLS,
17
17
  assignUnassignedTaskPending,
@@ -42,20 +42,22 @@ import {
42
42
  hasNonTerminalResumeChild,
43
43
  hasPendingSteering,
44
44
  init_db,
45
- init_registry,
46
- init_resolver,
47
45
  init_steering,
48
46
  isAgentEligibleForTask,
49
47
  isPoolAffinityEnforcementEnabled,
50
48
  promotePendingSteeringForTask,
51
- registerTemplate,
52
49
  releaseStaleMentionProcessing,
53
50
  releaseStaleProcessingInbox,
54
51
  releaseStaleReviewingTasks,
55
- resolveTemplate,
56
52
  supersedeTask,
57
53
  updateAgentStatus
58
- } from "./cli-3z4q09tn.js";
54
+ } from "./cli-yr11vvst.js";
55
+ import {
56
+ init_registry,
57
+ init_resolver,
58
+ registerTemplate,
59
+ resolveTemplate
60
+ } from "./cli-k1py8264.js";
59
61
  import {
60
62
  init_secret_scrubber,
61
63
  scrubSecrets
@@ -4,12 +4,12 @@ import {
4
4
  linkIdentity,
5
5
  recordUnmappedIdentity,
6
6
  resolveIdentity
7
- } from "./cli-0925phzv.js";
7
+ } from "./cli-0w3mk6r2.js";
8
8
  import {
9
9
  getKv,
10
10
  init_db,
11
11
  upsertKv
12
- } from "./cli-3z4q09tn.js";
12
+ } from "./cli-yr11vvst.js";
13
13
 
14
14
  // src/slack/enrich.ts
15
15
  init_db();
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getDb,
3
3
  init_db
4
- } from "./cli-3z4q09tn.js";
4
+ } from "./cli-yr11vvst.js";
5
5
 
6
6
  // src/be/seed-pricing.ts
7
7
  init_db();
@@ -4,11 +4,11 @@ import {
4
4
  getEmbeddingProvider,
5
5
  init_embedding,
6
6
  serializeEmbedding
7
- } from "./cli-p0ec4vv6.js";
7
+ } from "./cli-ff8b5cbe.js";
8
8
  import {
9
9
  getDb,
10
10
  init_db
11
- } from "./cli-3z4q09tn.js";
11
+ } from "./cli-yr11vvst.js";
12
12
  import {
13
13
  init_secret_scrubber,
14
14
  scrubSecrets
@@ -30,7 +30,7 @@ import {
30
30
  init_db,
31
31
  markTaskSlackReplySent,
32
32
  setSlackMessageTracking
33
- } from "./cli-3z4q09tn.js";
33
+ } from "./cli-yr11vvst.js";
34
34
  import {
35
35
  require_receiver,
36
36
  require_sender,
@@ -55070,13 +55070,13 @@ async function initSlackApp() {
55070
55070
  socketMode: true,
55071
55071
  logLevel: import_bolt.LogLevel.DEBUG
55072
55072
  });
55073
- const { registerMessageHandler } = await import("./handlers-xfja18ac.js");
55074
- const { registerCommandHandler } = await import("./commands-sda76yn8.js");
55075
- const { registerActionHandlers } = await import("./actions-z3d0fk7z.js");
55073
+ const { registerMessageHandler } = await import("./handlers-8kj038es.js");
55074
+ const { registerCommandHandler } = await import("./commands-7dbx98fp.js");
55075
+ const { registerActionHandlers } = await import("./actions-3aky6er5.js");
55076
55076
  registerMessageHandler(app);
55077
55077
  registerCommandHandler(app);
55078
55078
  registerActionHandlers(app);
55079
- const { createAssistant } = await import("./assistant-3stjq7fz.js");
55079
+ const { createAssistant } = await import("./assistant-ncftbs9t.js");
55080
55080
  app.assistant(createAssistant());
55081
55081
  return app;
55082
55082
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_package,
3
3
  package_default
4
- } from "./cli-p0zgv8pj.js";
4
+ } from "./cli-8vzddbs7.js";
5
5
 
6
6
  // src/commands/shared/client-config.ts
7
7
  init_package();
@@ -11,7 +11,7 @@ import {
11
11
  markAuthorizationRefreshFailed,
12
12
  releaseOAuthRefreshLock,
13
13
  updateAuthorizationTokens
14
- } from "./cli-mcez7z4p.js";
14
+ } from "./cli-vvbwy286.js";
15
15
  import {
16
16
  init_secret_scrubber,
17
17
  registerVolatileSecret,
@@ -7,7 +7,7 @@ import {
7
7
  init_date_utils,
8
8
  init_db,
9
9
  normalizeDateRequired
10
- } from "./cli-3z4q09tn.js";
10
+ } from "./cli-yr11vvst.js";
11
11
 
12
12
  // src/be/db-queries/oauth.ts
13
13
  init_crypto();