@desplega.ai/agent-swarm 1.155.0 → 1.155.1

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 (111) hide show
  1. package/dist/{acp-adapter-wr8k9emt.js → acp-adapter-fqsedz9y.js} +1 -1
  2. package/dist/{actions-fn65prvt.js → actions-by3qdvvk.js} +14 -14
  3. package/dist/{app-xxzqxp84.js → app-99hz4k80.js} +3 -3
  4. package/dist/{assistant-y3mvz5hd.js → assistant-18hve126.js} +15 -15
  5. package/dist/{boot-reembed-a52cz5xy.js → boot-reembed-gv4gkq87.js} +3 -3
  6. package/dist/{boot-reembed-mma39mkx.js → boot-reembed-zm7dmkqt.js} +4 -4
  7. package/dist/{boot-scrub-logs-88xcdng4.js → boot-scrub-logs-f42mskp2.js} +2 -2
  8. package/dist/{claude-adapter-6zp26gwf.js → claude-adapter-thxafssy.js} +6 -6
  9. package/dist/{claude-managed-setup-f5pmsyrp.js → claude-managed-setup-7da6qnmx.js} +2 -1
  10. package/dist/{claude-sdk-session-ze81m2c1.js → claude-sdk-session-ww42x2t2.js} +6 -6
  11. package/dist/{cli-e2fmyxrc.js → cli-03jn5306.js} +3 -3
  12. package/dist/{cli-nmh0gdph.js → cli-1msp3k1h.js} +1 -1
  13. package/dist/{cli-6yegpc3a.js → cli-2gjxfg9n.js} +15 -12
  14. package/dist/{cli-3bh2bbga.js → cli-60cwjbsn.js} +30 -4
  15. package/dist/{cli-y6m789kb.js → cli-66k89bhx.js} +1 -1
  16. package/dist/{cli-798byan3.js → cli-6rgnj7rs.js} +1 -1
  17. package/dist/{cli-hrgw5qfp.js → cli-79vvw6e7.js} +1 -1
  18. package/dist/{cli-fdtv576r.js → cli-82w25rb4.js} +1 -1
  19. package/dist/{cli-1n7d9wac.js → cli-967j85jf.js} +5 -3
  20. package/dist/{cli-jbzfb1np.js → cli-bg3d9v8z.js} +2 -2
  21. package/dist/{cli-mnmh7mj3.js → cli-czbmash2.js} +1 -1
  22. package/dist/{cli-tj253fr8.js → cli-gwha4avb.js} +5 -5
  23. package/dist/{cli-qxmjs2tx.js → cli-gy9ctpmm.js} +1 -1
  24. package/dist/{cli-52r0n5f8.js → cli-h4jrts5n.js} +18 -15
  25. package/dist/{cli-1chr8hz0.js → cli-j1gcxf46.js} +1 -1
  26. package/dist/{cli-s7zv7xdf.js → cli-jmbz691m.js} +4 -4
  27. package/dist/{cli-4mwfhwwc.js → cli-k85m894w.js} +2 -2
  28. package/dist/{cli-085v29fc.js → cli-kz0xtztz.js} +3 -3
  29. package/dist/{cli-e7d20cty.js → cli-ntqdjgtp.js} +13 -5
  30. package/dist/{cli-aa3m1yxe.js → cli-p2hxs01b.js} +2 -2
  31. package/dist/{cli-08rnbjhh.js → cli-pbsk349d.js} +56 -25
  32. package/dist/{cli-4jgxek08.js → cli-rqbvtc1v.js} +2 -2
  33. package/dist/{cli-zf8pjpgb.js → cli-vdd537x3.js} +2 -2
  34. package/dist/{cli-3361cns4.js → cli-vnyd306v.js} +1 -1
  35. package/dist/{cli-chas5sza.js → cli-x3xn5y1p.js} +4 -4
  36. package/dist/cli.js +13 -13
  37. package/dist/{codex-adapter-cfgvs1qf.js → codex-adapter-3b6r5n1c.js} +5 -5
  38. package/dist/{codex-login-vx7ghkzj.js → codex-login-8rwg7vdn.js} +8 -7
  39. package/dist/{codex-session-runner-e7yz0j6n.js → codex-session-runner-1eepz35q.js} +5 -5
  40. package/dist/{commands-b3z94mtk.js → commands-3ryb64pj.js} +2 -2
  41. package/dist/{db-v3bjpzv8.js → db-efjt4fwn.js} +4 -2
  42. package/dist/{dispatcher-vnbkay7r.js → dispatcher-8vmkfxsh.js} +13 -13
  43. package/dist/{handlers-1rh14gcx.js → handlers-n1p7kpt3.js} +16 -16
  44. package/dist/{hook-7e7p62af.js → hook-13hfpvqx.js} +5 -5
  45. package/dist/{hook-75jr7mpw.js → hook-frca1cmv.js} +4 -4
  46. package/dist/{http-v8jp8dm9.js → http-czpm03y6.js} +9658 -8324
  47. package/dist/{index-ma6jdv7m.js → index-2mw4vc58.js} +13 -13
  48. package/dist/{index-gx3qt7sy.js → index-ayydfsax.js} +3 -3
  49. package/dist/{index-garnqc85.js → index-cbrwzzq1.js} +14 -14
  50. package/dist/{index-2kqjb29c.js → index-jxsk850z.js} +7 -7
  51. package/dist/{index-5j3q4qzr.js → index-mfqv15hj.js} +13 -13
  52. package/dist/{keepalive-q593kbap.js → keepalive-qxpq5wqz.js} +4 -4
  53. package/dist/{lead-xm2q0s04.js → lead-ybh9mf8g.js} +19 -19
  54. package/dist/{maintenance-j8kgn90c.js → maintenance-z5xb15gt.js} +4 -4
  55. package/dist/{oauth-refresh-sweep-htexfa1n.js → oauth-refresh-sweep-k89c5081.js} +3 -3
  56. package/dist/{onboard-621a6j39.js → onboard-hw2agvbp.js} +2 -2
  57. package/dist/{otel-impl-vcxd9xr4.js → otel-impl-fwfz8r5y.js} +1 -1
  58. package/dist/{pi-mono-adapter-hpqzw55z.js → pi-mono-adapter-bn004cee.js} +3 -3
  59. package/dist/{pricing-refresh-3ejja3b1.js → pricing-refresh-y978f0jw.js} +4 -4
  60. package/dist/{rbac-roles-9m8q7svw.js → rbac-roles-r4gb80zd.js} +2 -2
  61. package/dist/{rbac-roles-9my9d5mf.js → rbac-roles-sp257r0x.js} +3 -3
  62. package/dist/{render-v2-19qtasfm.js → render-v2-gzx9dkx8.js} +3 -3
  63. package/dist/{seed-pricing-rg67eyqm.js → seed-pricing-59s5cqw7.js} +3 -3
  64. package/dist/{setup-m0jxmp5e.js → setup-hj6wr8rt.js} +2 -2
  65. package/dist/{work-objects-m0w74fxg.js → work-objects-pxkkejb4.js} +16 -16
  66. package/dist/{worker-2jyzjtfr.js → worker-yw7xsr4n.js} +19 -19
  67. package/openapi.json +2590 -615
  68. package/package.json +1 -1
  69. package/src/be/db.ts +17 -2
  70. package/src/be/memory/providers/openai-embedding.ts +4 -0
  71. package/src/be/onboarding.ts +689 -0
  72. package/src/be/swarm-config-guard.ts +11 -0
  73. package/src/commands/codex-login.ts +10 -8
  74. package/src/commands/provider-credentials.ts +10 -1
  75. package/src/http/all-routes.ts +2 -0
  76. package/src/http/codex-oauth-device.ts +383 -0
  77. package/src/http/config.ts +16 -3
  78. package/src/http/index.ts +5 -1
  79. package/src/http/integrations.ts +23 -0
  80. package/src/http/onboarding.ts +319 -0
  81. package/src/http/status.ts +11 -5
  82. package/src/http/trackers/jira.ts +6 -2
  83. package/src/http/trackers/linear.ts +6 -2
  84. package/src/http/utils.ts +18 -2
  85. package/src/jira/oauth.ts +6 -2
  86. package/src/linear/oauth.ts +6 -2
  87. package/src/providers/codex-oauth/device.ts +105 -0
  88. package/src/providers/codex-oauth/flow.ts +6 -3
  89. package/src/providers/codex-oauth/storage.ts +1 -0
  90. package/src/slack/manifest.ts +16 -0
  91. package/src/slack/task-output.ts +32 -13
  92. package/src/telemetry.ts +27 -0
  93. package/src/tests/codex-oauth-device.test.ts +515 -0
  94. package/src/tests/config-internal-keys.test.ts +162 -0
  95. package/src/tests/cors-allowlist.test.ts +20 -0
  96. package/src/tests/db-task-read-contract.test.ts +1 -0
  97. package/src/tests/db-task-write-contract.test.ts +1 -0
  98. package/src/tests/docs-index-footprint.test.js +3 -3
  99. package/src/tests/dsh-adapter.test.ts +3 -2
  100. package/src/tests/onboarding.test.ts +800 -0
  101. package/src/tests/openai-embedding-provider.test.ts +56 -0
  102. package/src/tests/slack-manifest.test.ts +23 -0
  103. package/src/tests/slack-render-v2.test.ts +14 -8
  104. package/src/tests/slack-task-output.test.ts +45 -12
  105. package/src/tests/status.test.ts +62 -0
  106. package/src/tests/telemetry-init.test.ts +34 -0
  107. package/src/tools/defer-task.ts +3 -3
  108. package/src/tools/swarm-config/delete-config.ts +6 -0
  109. package/src/tools/swarm-config/get-config.ts +2 -0
  110. package/src/tools/swarm-config/list-config.ts +8 -5
  111. package/src/tools/swarm-config/set-config.ts +8 -0
@@ -29,7 +29,7 @@ import {
29
29
  import {
30
30
  init_package,
31
31
  package_default
32
- } from "./cli-qxmjs2tx.js";
32
+ } from "./cli-gy9ctpmm.js";
33
33
  import {
34
34
  init_secret_scrubber,
35
35
  scrubSecrets
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  resolveSlackUserId
3
- } from "./cli-aa3m1yxe.js";
3
+ } from "./cli-p2hxs01b.js";
4
4
  import {
5
5
  createTaskWithSiblingAwareness
6
- } from "./cli-08rnbjhh.js";
6
+ } from "./cli-pbsk349d.js";
7
7
  import"./cli-0z2v4nhw.js";
8
- import"./cli-mnmh7mj3.js";
9
- import"./cli-e7d20cty.js";
8
+ import"./cli-czbmash2.js";
9
+ import"./cli-ntqdjgtp.js";
10
10
  import"./cli-re8z5p8p.js";
11
11
  import"./cli-3dpj7atn.js";
12
12
  import"./cli-aw1jwp1r.js";
13
- import"./cli-4jgxek08.js";
14
- import"./cli-1chr8hz0.js";
15
- import"./cli-fdtv576r.js";
13
+ import"./cli-rqbvtc1v.js";
14
+ import"./cli-j1gcxf46.js";
15
+ import"./cli-82w25rb4.js";
16
16
  import"./cli-ytxs7mn1.js";
17
- import"./cli-085v29fc.js";
17
+ import"./cli-kz0xtztz.js";
18
18
  import"./cli-epan13p1.js";
19
19
  import"./cli-y89t4nca.js";
20
20
  import"./cli-f14fvzag.js";
21
- import"./cli-jbzfb1np.js";
22
- import"./cli-y6m789kb.js";
21
+ import"./cli-bg3d9v8z.js";
22
+ import"./cli-66k89bhx.js";
23
23
  import"./cli-jsp14b6c.js";
24
- import"./cli-1n7d9wac.js";
24
+ import"./cli-967j85jf.js";
25
25
  import"./cli-1fypa20m.js";
26
26
  import"./cli-bsakbbkm.js";
27
27
  import"./cli-fad8m16k.js";
@@ -34,7 +34,7 @@ import {
34
34
  getAgentEmoji,
35
35
  getTaskLink,
36
36
  isSlackRenderV2Enabled
37
- } from "./cli-52r0n5f8.js";
37
+ } from "./cli-h4jrts5n.js";
38
38
  import"./cli-q51yprfq.js";
39
39
  import"./cli-3er6gcsn.js";
40
40
  import"./cli-2658f6at.js";
@@ -47,7 +47,7 @@ import {
47
47
  init_context_key,
48
48
  init_db,
49
49
  slackContextKey
50
- } from "./cli-3bh2bbga.js";
50
+ } from "./cli-60cwjbsn.js";
51
51
  import"./cli-fb79s4p1.js";
52
52
  import"./cli-6265kmdz.js";
53
53
  import"./cli-dnpg5yrw.js";
@@ -58,7 +58,7 @@ import"./cli-de1396j2.js";
58
58
  import"./cli-ej6gbxfb.js";
59
59
  import"./cli-sd0mxa3c.js";
60
60
  import"./cli-w5e1d1vv.js";
61
- import"./cli-qxmjs2tx.js";
61
+ import"./cli-gy9ctpmm.js";
62
62
  import"./cli-r2ap2czm.js";
63
63
  import"./cli-5b6b62tz.js";
64
64
  import"./cli-btbzvq95.js";
@@ -3,12 +3,12 @@ import {
3
3
  initSlackApp,
4
4
  startSlackApp,
5
5
  stopSlackApp
6
- } from "./cli-52r0n5f8.js";
6
+ } from "./cli-h4jrts5n.js";
7
7
  import"./cli-q51yprfq.js";
8
8
  import"./cli-3er6gcsn.js";
9
9
  import"./cli-2658f6at.js";
10
10
  import"./cli-yatxqynm.js";
11
- import"./cli-3bh2bbga.js";
11
+ import"./cli-60cwjbsn.js";
12
12
  import"./cli-fb79s4p1.js";
13
13
  import"./cli-6265kmdz.js";
14
14
  import"./cli-dnpg5yrw.js";
@@ -19,7 +19,7 @@ import"./cli-de1396j2.js";
19
19
  import"./cli-ej6gbxfb.js";
20
20
  import"./cli-sd0mxa3c.js";
21
21
  import"./cli-w5e1d1vv.js";
22
- import"./cli-qxmjs2tx.js";
22
+ import"./cli-gy9ctpmm.js";
23
23
  import"./cli-r2ap2czm.js";
24
24
  import"./cli-bd957dgb.js";
25
25
  import"./cli-pzxba7gw.js";
@@ -2,36 +2,36 @@ import {
2
2
  bufferThreadMessage,
3
3
  getBufferMessageCount,
4
4
  wasEventSeen
5
- } from "./cli-s7zv7xdf.js";
5
+ } from "./cli-jmbz691m.js";
6
6
  import {
7
7
  resolveSlackUserId,
8
8
  rewriteSlackMentions
9
- } from "./cli-aa3m1yxe.js";
9
+ } from "./cli-p2hxs01b.js";
10
10
  import {
11
11
  buildEffectiveText,
12
12
  createSlackTaskWithFiles,
13
13
  fetchSlackFiles,
14
14
  hasOtherUserMention,
15
15
  notifySlackFileFailures
16
- } from "./cli-08rnbjhh.js";
16
+ } from "./cli-pbsk349d.js";
17
17
  import"./cli-0z2v4nhw.js";
18
- import"./cli-mnmh7mj3.js";
19
- import"./cli-e7d20cty.js";
18
+ import"./cli-czbmash2.js";
19
+ import"./cli-ntqdjgtp.js";
20
20
  import"./cli-re8z5p8p.js";
21
21
  import"./cli-3dpj7atn.js";
22
22
  import"./cli-aw1jwp1r.js";
23
- import"./cli-4jgxek08.js";
24
- import"./cli-1chr8hz0.js";
25
- import"./cli-fdtv576r.js";
23
+ import"./cli-rqbvtc1v.js";
24
+ import"./cli-j1gcxf46.js";
25
+ import"./cli-82w25rb4.js";
26
26
  import"./cli-ytxs7mn1.js";
27
- import"./cli-085v29fc.js";
27
+ import"./cli-kz0xtztz.js";
28
28
  import"./cli-epan13p1.js";
29
29
  import"./cli-y89t4nca.js";
30
30
  import"./cli-f14fvzag.js";
31
- import"./cli-jbzfb1np.js";
32
- import"./cli-y6m789kb.js";
31
+ import"./cli-bg3d9v8z.js";
32
+ import"./cli-66k89bhx.js";
33
33
  import"./cli-jsp14b6c.js";
34
- import"./cli-1n7d9wac.js";
34
+ import"./cli-967j85jf.js";
35
35
  import"./cli-1fypa20m.js";
36
36
  import"./cli-bsakbbkm.js";
37
37
  import"./cli-fad8m16k.js";
@@ -42,7 +42,7 @@ import {
42
42
  ensureSlackThreadTree,
43
43
  isSlackRenderV2Enabled,
44
44
  require_dist
45
- } from "./cli-52r0n5f8.js";
45
+ } from "./cli-h4jrts5n.js";
46
46
  import"./cli-q51yprfq.js";
47
47
  import"./cli-3er6gcsn.js";
48
48
  import"./cli-2658f6at.js";
@@ -55,7 +55,7 @@ import {
55
55
  init_db,
56
56
  reactionName,
57
57
  slackContextKey
58
- } from "./cli-3bh2bbga.js";
58
+ } from "./cli-60cwjbsn.js";
59
59
  import"./cli-fb79s4p1.js";
60
60
  import"./cli-6265kmdz.js";
61
61
  import {
@@ -72,7 +72,7 @@ import {
72
72
  } from "./cli-ej6gbxfb.js";
73
73
  import"./cli-sd0mxa3c.js";
74
74
  import"./cli-w5e1d1vv.js";
75
- import"./cli-qxmjs2tx.js";
75
+ import"./cli-gy9ctpmm.js";
76
76
  import"./cli-r2ap2czm.js";
77
77
  import"./cli-5b6b62tz.js";
78
78
  import"./cli-btbzvq95.js";
@@ -3,14 +3,14 @@ import {
3
3
  getEmbeddingProvider,
4
4
  getMemoryStore,
5
5
  init_constants
6
- } from "./cli-1n7d9wac.js";
6
+ } from "./cli-967j85jf.js";
7
7
  import"./cli-1fypa20m.js";
8
8
  import"./cli-aehm1rbq.js";
9
9
  import"./cli-2658f6at.js";
10
10
  import {
11
11
  getDbClient,
12
12
  init_db
13
- } from "./cli-3bh2bbga.js";
13
+ } from "./cli-60cwjbsn.js";
14
14
  import"./cli-fb79s4p1.js";
15
15
  import"./cli-6265kmdz.js";
16
16
  import"./cli-dnpg5yrw.js";
@@ -21,7 +21,7 @@ import"./cli-de1396j2.js";
21
21
  import"./cli-ej6gbxfb.js";
22
22
  import"./cli-sd0mxa3c.js";
23
23
  import"./cli-w5e1d1vv.js";
24
- import"./cli-qxmjs2tx.js";
24
+ import"./cli-gy9ctpmm.js";
25
25
  import"./cli-r2ap2czm.js";
26
26
  import"./cli-zf8jjwex.js";
27
27
  import"./cli-bc05qbss.js";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  embedScript,
3
3
  embeddingProvider
4
- } from "./cli-jbzfb1np.js";
5
- import"./cli-1n7d9wac.js";
4
+ } from "./cli-bg3d9v8z.js";
5
+ import"./cli-967j85jf.js";
6
6
  import"./cli-1fypa20m.js";
7
7
  import"./cli-aehm1rbq.js";
8
8
  import"./cli-2658f6at.js";
9
9
  import {
10
10
  getDbClient,
11
11
  init_db
12
- } from "./cli-3bh2bbga.js";
12
+ } from "./cli-60cwjbsn.js";
13
13
  import"./cli-fb79s4p1.js";
14
14
  import"./cli-6265kmdz.js";
15
15
  import"./cli-dnpg5yrw.js";
@@ -20,7 +20,7 @@ import"./cli-de1396j2.js";
20
20
  import"./cli-ej6gbxfb.js";
21
21
  import"./cli-sd0mxa3c.js";
22
22
  import"./cli-w5e1d1vv.js";
23
- import"./cli-qxmjs2tx.js";
23
+ import"./cli-gy9ctpmm.js";
24
24
  import"./cli-r2ap2czm.js";
25
25
  import"./cli-zf8jjwex.js";
26
26
  import"./cli-bc05qbss.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getDbClient,
3
3
  init_db
4
- } from "./cli-3bh2bbga.js";
4
+ } from "./cli-60cwjbsn.js";
5
5
  import"./cli-fb79s4p1.js";
6
6
  import"./cli-6265kmdz.js";
7
7
  import"./cli-dnpg5yrw.js";
@@ -12,7 +12,7 @@ import"./cli-de1396j2.js";
12
12
  import"./cli-ej6gbxfb.js";
13
13
  import"./cli-sd0mxa3c.js";
14
14
  import"./cli-w5e1d1vv.js";
15
- import"./cli-qxmjs2tx.js";
15
+ import"./cli-gy9ctpmm.js";
16
16
  import {
17
17
  init_secret_scrubber,
18
18
  scrubSecrets
@@ -17,20 +17,20 @@ import {
17
17
  resolveClaudeBridgeEnabled,
18
18
  resolveClaudeQueueSteeringOverride,
19
19
  runClaudeSessionSummary
20
- } from "./cli-4mwfhwwc.js";
21
- import"./cli-e2fmyxrc.js";
20
+ } from "./cli-k85m894w.js";
21
+ import"./cli-03jn5306.js";
22
22
  import"./cli-cbm9ftfn.js";
23
23
  import"./cli-tng3131n.js";
24
24
  import"./cli-q2j38vre.js";
25
25
  import"./cli-zm7njwzd.js";
26
26
  import"./cli-e781c6f9.js";
27
- import"./cli-nmh0gdph.js";
27
+ import"./cli-1msp3k1h.js";
28
28
  import"./cli-hp1n6zq3.js";
29
29
  import"./cli-eree7rnv.js";
30
30
  import"./cli-npssxgaz.js";
31
31
  import"./cli-avkd6mqv.js";
32
- import"./cli-mnmh7mj3.js";
33
- import"./cli-e7d20cty.js";
32
+ import"./cli-czbmash2.js";
33
+ import"./cli-ntqdjgtp.js";
34
34
  import"./cli-re8z5p8p.js";
35
35
  import"./cli-3dpj7atn.js";
36
36
  import"./cli-aw1jwp1r.js";
@@ -48,7 +48,7 @@ import"./cli-de1396j2.js";
48
48
  import"./cli-ej6gbxfb.js";
49
49
  import"./cli-sd0mxa3c.js";
50
50
  import"./cli-w5e1d1vv.js";
51
- import"./cli-qxmjs2tx.js";
51
+ import"./cli-gy9ctpmm.js";
52
52
  import"./cli-r2ap2czm.js";
53
53
  import"./cli-5b6b62tz.js";
54
54
  import"./cli-btbzvq95.js";
@@ -7,10 +7,11 @@ import {
7
7
  import {
8
8
  buildSkillContent
9
9
  } from "./cli-ep19k3mb.js";
10
- import"./cli-e7d20cty.js";
10
+ import"./cli-ntqdjgtp.js";
11
11
  import {
12
12
  getApiKey
13
13
  } from "./cli-f14fvzag.js";
14
+ import"./cli-r2ap2czm.js";
14
15
  import {
15
16
  __require
16
17
  } from "./cli-bc05qbss.js";
@@ -3,8 +3,8 @@ import {
3
3
  cleanupTaskFile,
4
4
  normalizeClaudeMessage,
5
5
  runClaudeSessionSummary
6
- } from "./cli-4mwfhwwc.js";
7
- import"./cli-e2fmyxrc.js";
6
+ } from "./cli-k85m894w.js";
7
+ import"./cli-03jn5306.js";
8
8
  import"./cli-cbm9ftfn.js";
9
9
  import"./cli-tng3131n.js";
10
10
  import"./cli-q2j38vre.js";
@@ -12,7 +12,7 @@ import"./cli-zm7njwzd.js";
12
12
  import {
13
13
  getContextWindowSize
14
14
  } from "./cli-e781c6f9.js";
15
- import"./cli-nmh0gdph.js";
15
+ import"./cli-1msp3k1h.js";
16
16
  import"./cli-hp1n6zq3.js";
17
17
  import"./cli-eree7rnv.js";
18
18
  import {
@@ -21,8 +21,8 @@ import {
21
21
  trackErrorFromJson
22
22
  } from "./cli-npssxgaz.js";
23
23
  import"./cli-avkd6mqv.js";
24
- import"./cli-mnmh7mj3.js";
25
- import"./cli-e7d20cty.js";
24
+ import"./cli-czbmash2.js";
25
+ import"./cli-ntqdjgtp.js";
26
26
  import"./cli-re8z5p8p.js";
27
27
  import"./cli-3dpj7atn.js";
28
28
  import"./cli-aw1jwp1r.js";
@@ -45,7 +45,7 @@ import"./cli-de1396j2.js";
45
45
  import"./cli-ej6gbxfb.js";
46
46
  import"./cli-sd0mxa3c.js";
47
47
  import"./cli-w5e1d1vv.js";
48
- import"./cli-qxmjs2tx.js";
48
+ import"./cli-gy9ctpmm.js";
49
49
  import {
50
50
  init_secret_scrubber,
51
51
  scrubSecrets
@@ -4,7 +4,7 @@ import {
4
4
  } from "./cli-cbm9ftfn.js";
5
5
  import {
6
6
  summarizeSession
7
- } from "./cli-nmh0gdph.js";
7
+ } from "./cli-1msp3k1h.js";
8
8
  import {
9
9
  checkToolLoop,
10
10
  clearToolHistory
@@ -15,7 +15,7 @@ import {
15
15
  fetchRetrievalsForTask,
16
16
  isLlmRaterEnabled,
17
17
  postRatings
18
- } from "./cli-mnmh7mj3.js";
18
+ } from "./cli-czbmash2.js";
19
19
  import {
20
20
  getApiKey
21
21
  } from "./cli-f14fvzag.js";
@@ -35,7 +35,7 @@ import {
35
35
  import {
36
36
  init_package,
37
37
  package_default
38
- } from "./cli-qxmjs2tx.js";
38
+ } from "./cli-gy9ctpmm.js";
39
39
  import {
40
40
  init_secret_scrubber,
41
41
  scrubSecrets
@@ -4,7 +4,7 @@ import {
4
4
  buildSummaryWithRatingsPrompt,
5
5
  parseModelStr,
6
6
  resolveCredential
7
- } from "./cli-mnmh7mj3.js";
7
+ } from "./cli-czbmash2.js";
8
8
  import {
9
9
  DEFAULT_OPENROUTER_BASE_URL,
10
10
  getOpenRouterBaseUrl
@@ -16,14 +16,14 @@ import {
16
16
  import {
17
17
  checkCodexCredentials,
18
18
  codexUserHome
19
- } from "./cli-chas5sza.js";
19
+ } from "./cli-x3xn5y1p.js";
20
20
  import {
21
21
  renderMemoriesPrompt,
22
22
  writeSkillsToFilesystem
23
- } from "./cli-798byan3.js";
23
+ } from "./cli-6rgnj7rs.js";
24
24
  import {
25
25
  checkClaudeCredentials
26
- } from "./cli-4mwfhwwc.js";
26
+ } from "./cli-k85m894w.js";
27
27
  import {
28
28
  getContextWindowSize
29
29
  } from "./cli-e781c6f9.js";
@@ -38,12 +38,12 @@ import {
38
38
  import {
39
39
  resolveScriptsOnlyMode,
40
40
  validateJsonSchema
41
- } from "./cli-08rnbjhh.js";
41
+ } from "./cli-pbsk349d.js";
42
42
  import {
43
43
  authJsonToCredentialSelection,
44
44
  credentialsToAuthJson,
45
45
  loadAllCodexOAuthSlots
46
- } from "./cli-e7d20cty.js";
46
+ } from "./cli-ntqdjgtp.js";
47
47
  import {
48
48
  getOpenRouterBaseUrl
49
49
  } from "./cli-3dpj7atn.js";
@@ -75,7 +75,7 @@ import {
75
75
  startSpan,
76
76
  withSpan,
77
77
  withSpanContext
78
- } from "./cli-52r0n5f8.js";
78
+ } from "./cli-h4jrts5n.js";
79
79
  import {
80
80
  init_task_attachment_links,
81
81
  taskAttachmentFetchCommand
@@ -84,7 +84,7 @@ import {
84
84
  initTelemetry,
85
85
  init_telemetry,
86
86
  telemetry
87
- } from "./cli-3bh2bbga.js";
87
+ } from "./cli-60cwjbsn.js";
88
88
  import {
89
89
  ProviderNameSchema,
90
90
  init_types,
@@ -163,15 +163,15 @@ async function materializeCodexAuthJson(_slot, creds, deps = {}) {
163
163
  async function createProviderAdapter(provider) {
164
164
  switch (provider) {
165
165
  case "claude": {
166
- const { ClaudeAdapter } = await import("./claude-adapter-6zp26gwf.js");
166
+ const { ClaudeAdapter } = await import("./claude-adapter-thxafssy.js");
167
167
  return new ClaudeAdapter;
168
168
  }
169
169
  case "pi": {
170
- const { PiMonoAdapter } = await import("./pi-mono-adapter-hpqzw55z.js");
170
+ const { PiMonoAdapter } = await import("./pi-mono-adapter-bn004cee.js");
171
171
  return new PiMonoAdapter;
172
172
  }
173
173
  case "codex": {
174
- const { CodexAdapter } = await import("./codex-adapter-cfgvs1qf.js");
174
+ const { CodexAdapter } = await import("./codex-adapter-3b6r5n1c.js");
175
175
  return new CodexAdapter;
176
176
  }
177
177
  case "claude-managed": {
@@ -191,7 +191,7 @@ async function createProviderAdapter(provider) {
191
191
  return new DshAdapter;
192
192
  }
193
193
  case "acp": {
194
- const { ACPAdapter } = await import("./acp-adapter-wr8k9emt.js");
194
+ const { ACPAdapter } = await import("./acp-adapter-fqsedz9y.js");
195
195
  return new ACPAdapter;
196
196
  }
197
197
  default:
@@ -605,7 +605,7 @@ var CREDENTIAL_PROVIDER_CHECKERS = {
605
605
  devin: (env) => checkDevinCredentials(env),
606
606
  opencode: (env, opts) => checkOpencodeCredentials(env, opts),
607
607
  pi: async (env, opts) => {
608
- const { checkPiMonoCredentials } = await import("./pi-mono-adapter-hpqzw55z.js");
608
+ const { checkPiMonoCredentials } = await import("./pi-mono-adapter-bn004cee.js");
609
609
  return checkPiMonoCredentials(env, opts);
610
610
  },
611
611
  acp: () => ({ ready: true, missing: [], satisfiedBy: "sdk-delegated" })
@@ -731,6 +731,9 @@ async function validateProviderCredentials(provider) {
731
731
  return presenceCheckOk();
732
732
  if (parseCodexOAuthAccess(env.CODEX_OAUTH))
733
733
  return presenceCheckOk();
734
+ if (Object.entries(env).some(([key, value]) => /^codex_oauth_\d+$/.test(key) && parseCodexOAuthAccess(value))) {
735
+ return presenceCheckOk();
736
+ }
734
737
  if (env.OPENAI_API_KEY)
735
738
  return checkOpenAiApiKey(env.OPENAI_API_KEY);
736
739
  return {
@@ -72,7 +72,7 @@ import {
72
72
  import {
73
73
  init_package,
74
74
  package_default
75
- } from "./cli-qxmjs2tx.js";
75
+ } from "./cli-gy9ctpmm.js";
76
76
  import {
77
77
  init_secret_scrubber,
78
78
  registerVolatileSecret,
@@ -618,6 +618,17 @@ var init_telemetry = __esm(() => {
618
618
  agent(event, props) {
619
619
  track({ event: `agent.${event}`, properties: props });
620
620
  },
621
+ onboarding(event, props) {
622
+ const installedAtMs = installedAt ? Date.parse(installedAt) : Number.NaN;
623
+ const secondsSinceInstall = Number.isFinite(installedAtMs) ? Math.max(0, Math.floor((Date.now() - installedAtMs) / 1000)) : undefined;
624
+ track({
625
+ event: `onboarding.${event}`,
626
+ properties: {
627
+ ...props,
628
+ ...secondsSinceInstall !== undefined ? { seconds_since_install: secondsSinceInstall } : {}
629
+ }
630
+ });
631
+ },
621
632
  integration(event, props) {
622
633
  const type = KNOWN_INTEGRATION_TYPES.has(props.type) ? props.type : "other";
623
634
  const provider = props.provider ? integrationProviderEntry(props.provider)?.provider : undefined;
@@ -4328,6 +4339,12 @@ var init_task_tool_manifest = __esm(() => {
4328
4339
  });
4329
4340
 
4330
4341
  // src/be/swarm-config-guard.ts
4342
+ function isInternalConfigKey(key) {
4343
+ return INTERNAL_CONFIG_KEYS.has(key.toLowerCase());
4344
+ }
4345
+ function internalConfigKeyError(key) {
4346
+ return new Error(`Key '${key}' is managed by /api/onboarding`);
4347
+ }
4331
4348
  function isReservedConfigKey(key) {
4332
4349
  return RESERVED_KEYS.has(key.toUpperCase());
4333
4350
  }
@@ -4405,7 +4422,7 @@ function validateConfigValue(key, value) {
4405
4422
  const validator = VALIDATED_KEYS[key.toUpperCase()];
4406
4423
  return validator ? validator(value) : null;
4407
4424
  }
4408
- var RESERVED_KEYS, BOOLEAN_LITERALS, MAX_DB_RETENTION_DAYS = 1e6, DB_RETENTION_TUNING_BOUNDS, VALIDATED_KEYS;
4425
+ var RESERVED_KEYS, INTERNAL_CONFIG_KEYS, BOOLEAN_LITERALS, MAX_DB_RETENTION_DAYS = 1e6, DB_RETENTION_TUNING_BOUNDS, VALIDATED_KEYS;
4409
4426
  var init_swarm_config_guard = __esm(() => {
4410
4427
  init_reaction_shortcode();
4411
4428
  init_types();
@@ -4416,6 +4433,7 @@ var init_swarm_config_guard = __esm(() => {
4416
4433
  "CORS_ALLOW_ANY_ORIGIN",
4417
4434
  "EXTENSION_ALLOW_LEAD_ACTIVATION"
4418
4435
  ]);
4436
+ INTERNAL_CONFIG_KEYS = new Set(["onboarding_state"]);
4419
4437
  BOOLEAN_LITERALS = ["true", "false", "1", "0"];
4420
4438
  DB_RETENTION_TUNING_BOUNDS = {
4421
4439
  DB_RETENTION_TICK_BUDGET_MS: { min: 1000, max: 300000 },
@@ -4810,6 +4828,7 @@ __export(exports_db, {
4810
4828
  getPromptTemplateById: () => getPromptTemplateById,
4811
4829
  getPromptTemplateHistory: () => getPromptTemplateHistory,
4812
4830
  getPromptTemplates: () => getPromptTemplates,
4831
+ getReadyAgentCounts: () => getReadyAgentCounts,
4813
4832
  getRecentBudgetRefusalNotifications: () => getRecentBudgetRefusalNotifications,
4814
4833
  getRecentCompletedCount: () => getRecentCompletedCount,
4815
4834
  getRecentFailedCount: () => getRecentFailedCount,
@@ -8419,7 +8438,7 @@ async function getInjectableGlobalConfigs() {
8419
8438
  WHERE scope = 'global'
8420
8439
  AND UPPER(key) NOT IN ('API_KEY', 'SECRETS_ENCRYPTION_KEY', 'CORS_ALLOW_ANY_ORIGIN', 'EXTENSION_ALLOW_LEAD_ACTIVATION')
8421
8440
  ORDER BY key ASC`);
8422
- return rows.map(rowToSwarmConfig);
8441
+ return rows.filter((row) => !isInternalConfigKey(row.key)).map(rowToSwarmConfig);
8423
8442
  }
8424
8443
  async function getSwarmConfigById(id) {
8425
8444
  const row = await getDbClient().get("SELECT * FROM swarm_config WHERE id = ?", [
@@ -11798,6 +11817,13 @@ async function getLiveAgentCounts(minutes = 5) {
11798
11817
  workers_alive: row?.workers_alive ?? 0
11799
11818
  };
11800
11819
  }
11820
+ async function getReadyAgentCounts() {
11821
+ const row = await getDbClient().get(`SELECT SUM(CASE WHEN isLead = 1 THEN 1 ELSE 0 END) AS leads,
11822
+ SUM(CASE WHEN isLead = 0 THEN 1 ELSE 0 END) AS workers
11823
+ FROM agents
11824
+ WHERE status IN ('idle', 'busy') AND ${NOT_EXTENSION_AGENT_SQL}`);
11825
+ return { leads: row?.leads ?? 0, workers: row?.workers ?? 0 };
11826
+ }
11801
11827
  async function getInstanceActivity() {
11802
11828
  const { leads_alive, workers_alive } = await getLiveAgentCounts(5);
11803
11829
  const tasksRow = await getDbClient().get(`SELECT COUNT(*) AS count FROM agent_tasks
@@ -12422,4 +12448,4 @@ var init_db = __esm(() => {
12422
12448
  };
12423
12449
  });
12424
12450
 
12425
- export { slackContextKey, agentmailContextKey, githubContextKey, gitlabContextKey, linearContextKey, buildJiraContextKey, scheduleContextKey, workflowContextKey, agentContextKey, pageContextKey, init_context_key, checkSlackRoutingCoherence, init_slack_routing, _resolveIntegrationType, _resolveIntegrationProvider, initTelemetry, telemetry, emitIntegrationConnected, init_telemetry, HeartbeatExpiryError, init_heartbeat_expiry, beginRequestAuthScope, setRequestAuth, getRequestAuth, getCurrentRequestAuth, runWithoutRequestAuth, init_request_auth_context, auditAssetKeys, init_asset_key_audit, encryptSecret, decryptSecret, getEncryptionKey, init_crypto, normalizeDate, normalizeDateRequired, init_date_utils, CredentialBindingSchema, placeholderForConfigKey, CredentialBroker, DEFAULT_CREDENTIAL_BINDINGS, init_credential_broker, isInTransaction, init_db_client, getPromptTemplateDefaultDrift, init_default_drift, init_templates2 as init_templates, isSqliteVecAvailable, resolveSqliteVecExtensionPath, __resetSqliteVecExtensionPathCacheForTests, initDb, getDb, closeDb, getDbClient, updateAgentCredentialState, updateAgentCredentialMissing, createAgent, getAgentById, EXTENSION_AGENT_ROLE, NOT_EXTENSION_AGENT_SQL, isExtensionAgent, extensionAgentAssignmentError, ReservedAgentRoleError, reservedRoleViolation, ExtensionAgentAssignmentError, getAllAgents, getLeadAgent, updateAgentStatus, updateAgentMaxTasks, updateAgentProvider, setAgentHarnessProvider, updateAgentCredStatus, listAgentsWithCredStatusByProvider, getAgentHarnessProviders, updateAgentActivity, MAX_EMPTY_POLLS, incrementEmptyPollCount, resetEmptyPollCount, shouldBlockPolling, deleteAgent, getActiveTaskCount, hasCapacity, getRemainingCapacity, updateAgentStatusFromCapacity, isPoolAffinityEnforcementEnabled, buildRoutingAffinityFromAgent, isAgentEligibleForTask, computeContentHash, createContextVersion, getLatestContextVersion, getContextVersion, getContextVersionHistory, getTaskById, getChildTasks, hasNonTerminalResumeChild, hasNonTerminalRerouteDecisionChild, getTasksByAgentId, getAgentCurrentTask, getTasksByStatus, findTaskByVcs, findTaskByGitHub, getAllTasks, getTasksCount, getTaskStats, getCompletedSlackTasks, getPendingSlackRelayTasks, markSlackRelayAttempted, markSlackRelayDelivered, markFinalizedSlackRelaysDelivered, getRecentlyFinishedWorkerTasks, markTasksNotified, resetTasksNotified, getInProgressSlackTasks, getSlackTasksMissingTree, getInProgressTasksByContextKey, findExistingLinearTrackerContextWork, getLatestTaskByContextKey, getLatestScriptRunStepTaskByContextKey, getAgentWorkingOnThread, getLatestActiveTaskInThread, getLatestLeadTaskInThread, getMostRecentTaskInThread, findCompletedTaskInThread, findRecentCancelledTaskInThread, onTaskStarted, init_task_lifecycle_events, createTask, getPendingTaskForAgent, assignUnassignedTaskPending, startTask, updateTaskClaudeSessionId, updateTaskTitle, completeTask, failTask, overwriteTerminalTaskResultText, cancelTask, supersedeTask, backfillSupersedeTaskResumeTaskId, pauseTask, resumeTask, getPausedTasksForAgent, getOrphanedInProgressTasksForAgent, resetOrphanedInProgressTasksForAgent, getRecentlyCancelledTasksForAgent, deleteTask, updateTaskProgress, SteeringRequestError, isSteeringEnabled2 as isSteeringEnabled, getTaskSteeringFields, promotePendingSteeringForTask, markSteeringUndeliverable, requestSteering, init_steering, SLACK_REACTION_DEFAULTS, SLACK_REACTION_CONFIG_KEYS, reactionName, init_reaction_shortcode, parseTaskToolManifest, selectTaskTools, init_task_tool_manifest, isReservedConfigKey, reservedKeyError, MAX_DB_RETENTION_DAYS, DB_RETENTION_TUNING_BOUNDS, validateConfigValue, init_swarm_config_guard, getSlackRenderV2ActivatedAt, ensureSlackRenderV2Activation, getSlackDelegationActivatedAt, ensureSlackDelegationActivation, isPendingSlackMessage, recordSlackMessage, reserveSlackMessage, bindSlackMessageTimestamp, updateSlackMessageRecord, markSlackTreeRendered, deleteSlackMessageRecord, getSlackTreeMessage, getSlackTreeMessageByThread, getSlackOutcomeMessage, getResolvableDeferralOutcomes, markSlackDeferralResolved, getSlackTreeMessages, getSlackMessageByChannelTs, getSlackTasksInThread, markTaskSlackReplySent, setSlackMessageTracking, updateTaskVcs, insertTaskAttachment, recordTaskPullRequestAttachments, getAssetKeyMappingByProvider, upsertAssetKeyMapping, getAssetKeyMapping, listAssetSummaries, moveAssetKey, deleteTaskAttachment, replaceTaskAttachment, getTaskAttachments, createSteeringMessage, getSteeringMessagesForTask, getSteeringMessageById, getPendingSteeringForTask, getPendingSteeringForAgent, markSteeringDelivered, markSteeringHandled, markSteeringPromoted, cancelPendingSteeringForTask, hasPendingSteering, getAgentWithTasks, getAllAgentsWithTasks, createLogEntry, getLogsByAgentId, getLogsByTaskId, getLogsByTaskIdChronological, getLogsByEventType, getAllLogs, findRecentSimilarTasks, createTaskExtended, claimTask, releaseTask, acceptTask, rejectTask, moveTaskToBacklog, moveTaskFromBacklog, promoteDraftTask, refreshDraftTaskLease, promoteAbandonedDraftTasks, releaseStaleReviewingTasks, releaseStaleOfferedTasksForOfflineAgents, getOfferedTasksForAgent, claimOfferedTask, getUnassignedTasksCount, getUnassignedTaskIds, getUnassignedTaskIdsForAgent, checkDependencies, getDependentTasks, cascadeFailDependents, updateAgentProfile, updateAgentName, createChannel, getMessageById, getChannelById, getChannelByName, getAllChannels, deleteChannel, postMessage, getChannelMessages, updateReadState, getLastReadAt, getUnreadMessages, getMentionsForAgent, getInboxSummary, claimMentions, releaseMentionProcessing, releaseStaleMentionProcessing, createService, getServiceById, getServiceByAgentAndName, getServicesByAgentId, getAllServices, updateServiceStatus, deleteService, upsertService, deleteServicesByAgentId, createSessionLogs, getSessionLogsByTaskId, getSessionLogsBySession, createSessionCost, getSessionCostsByTaskId, getSessionCostsByAgentId, getAllSessionCosts, getSessionCostsFiltered, UNATTRIBUTED_USER_ID, getSessionCostSummary, getAttributionByPerson, getDashboardCostSummary, createInboxMessage, getInboxMessageById, getUnreadInboxMessages, claimInboxMessages, markInboxMessageRead, markInboxMessageResponded, markInboxMessageDelegated, releaseStaleProcessingInbox, getConcurrentContext, getScheduledTasks, getScheduledTaskById, getScheduledTaskByName, createScheduledTask, updateScheduledTask, deleteScheduledTask, getDueScheduledTasks, autoEncryptLegacyPlaintextSecrets, maskSecrets, getSwarmConfigs, getInjectableGlobalConfigs, getSwarmConfigById, getSwarmConfigLookupById, upsertSwarmConfig, emitBuiltInIntegrationConnectedOnce, deleteSwarmConfig, deleteSwarmConfigByKey, getResolvedConfig, getSwarmRepos, getSwarmRepoById, getSwarmRepoByName, getSwarmRepoByUrl, createSwarmRepo, updateSwarmRepo, deleteSwarmRepo, getAgentMailInboxMapping, getAgentMailInboxMappingsByAgent, getAllAgentMailInboxMappings, createAgentMailInboxMapping, deleteAgentMailInboxMapping, findTaskByAgentMailThread, insertActiveSession, deleteActiveSession, deleteActiveSessionById, getActiveSessions, heartbeatActiveSession, cleanupStaleSessions, cleanupAgentSessions, updateActiveSessionProviderSessionId, getActiveSessionForTask, reassociateSessionLogs, getStalledInProgressTasks, getStalePinnedResumes, failPendingResumeIfUnclaimed, getIdleWorkersWithCapacity, getUnassignedPoolTasks, getStaleUnassignedAffinityTasks, getRecentFailedTasks, getRecentCompletedCount, getRecentFailedCount, createWorkflow, getWorkflow, listWorkflows, updateWorkflow, deleteWorkflow, getWorkflowsByScheduleId, createWorkflowRun, getWorkflowRun, updateWorkflowRun, listWorkflowRuns, countWorkflowRuns, listWorkflowRunsPage, createWorkflowRunStep, getWorkflowRunStep, updateWorkflowRunStep, getWorkflowRunStepsByRunId, getStuckWorkflowRuns, getLastSuccessfulRun, getLastRunStart, getRetryableSteps, getCompletedStepNodeIds, getTaskByWorkflowRunStepId, detachTaskFromWorkflowRunStep, getStepByIdempotencyKey, getStepCountForNode, getLatestStepForNode, createWorkflowVersion, getWorkflowVersions, getWorkflowVersion, createAppVersion, getAppVersions, getAppVersion, createPage, getPage, getPageBySlug, getLatestPageBySlug, listPagesByAgent, listAllPages, countAllPages, countPagesByAgent, updatePage, deletePage, incrementPageViewCount, createPageVersion, getPageVersions, getPageVersion, createMetric, getMetric, getMetricBySlug, listMetricsByAgent, listAllMetrics, countAllMetrics, countMetricsByAgent, updateMetric, deleteMetric, createMetricVersion, getMetricVersions, getMetricVersion, getPromptTemplates, getPromptTemplateById, upsertPromptTemplate, deletePromptTemplate, resetPromptTemplateToDefault, getPromptTemplateHistory, resolvePromptTemplate, checkoutPromptTemplate, getAllChannelActivityCursors, getChannelActivityCursor, upsertChannelActivityCursor, createApprovalRequest, getApprovalRequestById, resolveApprovalRequest, cancelPendingApprovalRequestsForRun, listCancelledApprovalRequestsForRun, listCancelledApprovalRequestsForStep, claimApprovalCancellationNotification, completeApprovalCancellationNotificationClaim, releaseApprovalCancellationNotificationClaim, updateApprovalRequestNotifications, listApprovalRequests, getStuckApprovalRuns, getApprovalRequestByStepId, getExpiredPendingApprovals, createWaitState, getWaitStateById, getWaitStateByStepId, getDueWaitStates, getPendingEventWaitNames, getPendingWaitsByEvent, resolveWaitState, getStuckWaitRuns, SKILL_FILE_LIMITS, normalizeSkillFilePath, createSkill, updateSkill, listSkillFileManifest, getSkillFiles, getSkillFile, upsertSkillFile, upsertSkillFiles, deleteSkillFile, deleteSkill, getSkillById, getSkillByName, listSkills, searchSkills, installSkill, getSystemDefaultSkills, installSystemDefaultSkillsForAgent, uninstallSkill, getAgentSkills, toggleAgentSkill, createMcpServer, emitMcpServerConnectedTelemetry, updateMcpServer, deleteMcpServer, getMcpServerById, getMcpServerByName, listMcpServers, installMcpServer, uninstallMcpServer, getAgentMcpServers, createContextSnapshot, getContextSnapshotsByTaskId, getContextSnapshotsBySessionId, getContextSummaryByTaskId, getAvailableKeyIndices, recordKeyUsage, markKeyRateLimited, recordKeyRateLimitWindows, setApiKeyName, clearKeyRateLimit, getKeyStatuses, getKeyCostSummary, getUserById, getAllUsers, createUser, updateUser, deleteUser, listInboxState, upsertInboxState, listFavorites, listUserFavorites, getFavoriteItemIdSet, setFavorite, setUserFavorite, withFavoriteFlags, listTaskTemplates, getRootTaskChain, listRecentSessions, countSessions, getBudget, getBudgets, upsertBudget, deleteBudget, getAllPricingRows, getPricingRows, getActivePricingRow, insertPricingRow, deletePricingRow, getDailySpendForAgent, getDailySpendGlobal, getDailySpendForUser, recordBudgetRefusalNotification, getBudgetRefusalNotification, getRecentBudgetRefusalNotifications, hasBudgetRefusalNotificationToday, setBudgetRefusalFollowUpTaskId, getLiveAgentCounts, getInstanceActivity, getSwarmMetrics, hasFirstCompletedTask, getKv, sweepExpiredKv, sweepExpiredKvPrefix, upsertKv, claimKv, deleteKv, KvTypeCollisionError, incrKv, listKv, countKv, createScriptRun, recordInlineScriptRun, getScriptRun, getScriptRunByIdempotencyKey, listScriptRuns, countScriptRuns, countActiveScriptRuns, updateScriptRun, updateScriptRunIfNotTerminal, updateScriptRunIfRunning, getRunningScriptRuns, getScriptRunJournalStep, upsertScriptRunJournalStep, listScriptRunJournalSteps, countScriptRunJournalSteps, countScriptRunJournalAgentTaskSteps, exports_db, init_db };
12451
+ export { slackContextKey, agentmailContextKey, githubContextKey, gitlabContextKey, linearContextKey, buildJiraContextKey, scheduleContextKey, workflowContextKey, agentContextKey, pageContextKey, init_context_key, checkSlackRoutingCoherence, init_slack_routing, _resolveIntegrationType, _resolveIntegrationProvider, initTelemetry, telemetry, emitIntegrationConnected, init_telemetry, HeartbeatExpiryError, init_heartbeat_expiry, beginRequestAuthScope, setRequestAuth, getRequestAuth, getCurrentRequestAuth, runWithoutRequestAuth, init_request_auth_context, auditAssetKeys, init_asset_key_audit, encryptSecret, decryptSecret, getEncryptionKey, init_crypto, normalizeDate, normalizeDateRequired, init_date_utils, CredentialBindingSchema, placeholderForConfigKey, CredentialBroker, DEFAULT_CREDENTIAL_BINDINGS, init_credential_broker, isInTransaction, init_db_client, getPromptTemplateDefaultDrift, init_default_drift, init_templates2 as init_templates, isSqliteVecAvailable, resolveSqliteVecExtensionPath, __resetSqliteVecExtensionPathCacheForTests, initDb, getDb, closeDb, getDbClient, updateAgentCredentialState, updateAgentCredentialMissing, createAgent, getAgentById, EXTENSION_AGENT_ROLE, NOT_EXTENSION_AGENT_SQL, isExtensionAgent, extensionAgentAssignmentError, ReservedAgentRoleError, reservedRoleViolation, ExtensionAgentAssignmentError, getAllAgents, getLeadAgent, updateAgentStatus, updateAgentMaxTasks, updateAgentProvider, setAgentHarnessProvider, updateAgentCredStatus, listAgentsWithCredStatusByProvider, getAgentHarnessProviders, updateAgentActivity, MAX_EMPTY_POLLS, incrementEmptyPollCount, resetEmptyPollCount, shouldBlockPolling, deleteAgent, getActiveTaskCount, hasCapacity, getRemainingCapacity, updateAgentStatusFromCapacity, isPoolAffinityEnforcementEnabled, buildRoutingAffinityFromAgent, isAgentEligibleForTask, computeContentHash, createContextVersion, getLatestContextVersion, getContextVersion, getContextVersionHistory, getTaskById, getChildTasks, hasNonTerminalResumeChild, hasNonTerminalRerouteDecisionChild, getTasksByAgentId, getAgentCurrentTask, getTasksByStatus, findTaskByVcs, findTaskByGitHub, getAllTasks, getTasksCount, getTaskStats, getCompletedSlackTasks, getPendingSlackRelayTasks, markSlackRelayAttempted, markSlackRelayDelivered, markFinalizedSlackRelaysDelivered, getRecentlyFinishedWorkerTasks, markTasksNotified, resetTasksNotified, getInProgressSlackTasks, getSlackTasksMissingTree, getInProgressTasksByContextKey, findExistingLinearTrackerContextWork, getLatestTaskByContextKey, getLatestScriptRunStepTaskByContextKey, getAgentWorkingOnThread, getLatestActiveTaskInThread, getLatestLeadTaskInThread, getMostRecentTaskInThread, findCompletedTaskInThread, findRecentCancelledTaskInThread, onTaskStarted, init_task_lifecycle_events, createTask, getPendingTaskForAgent, assignUnassignedTaskPending, startTask, updateTaskClaudeSessionId, updateTaskTitle, completeTask, failTask, overwriteTerminalTaskResultText, cancelTask, supersedeTask, backfillSupersedeTaskResumeTaskId, pauseTask, resumeTask, getPausedTasksForAgent, getOrphanedInProgressTasksForAgent, resetOrphanedInProgressTasksForAgent, getRecentlyCancelledTasksForAgent, deleteTask, updateTaskProgress, SteeringRequestError, isSteeringEnabled2 as isSteeringEnabled, getTaskSteeringFields, promotePendingSteeringForTask, markSteeringUndeliverable, requestSteering, init_steering, SLACK_REACTION_DEFAULTS, SLACK_REACTION_CONFIG_KEYS, reactionName, init_reaction_shortcode, parseTaskToolManifest, selectTaskTools, init_task_tool_manifest, isInternalConfigKey, internalConfigKeyError, isReservedConfigKey, reservedKeyError, MAX_DB_RETENTION_DAYS, DB_RETENTION_TUNING_BOUNDS, validateConfigValue, init_swarm_config_guard, getSlackRenderV2ActivatedAt, ensureSlackRenderV2Activation, getSlackDelegationActivatedAt, ensureSlackDelegationActivation, isPendingSlackMessage, recordSlackMessage, reserveSlackMessage, bindSlackMessageTimestamp, updateSlackMessageRecord, markSlackTreeRendered, deleteSlackMessageRecord, getSlackTreeMessage, getSlackTreeMessageByThread, getSlackOutcomeMessage, getResolvableDeferralOutcomes, markSlackDeferralResolved, getSlackTreeMessages, getSlackMessageByChannelTs, getSlackTasksInThread, markTaskSlackReplySent, setSlackMessageTracking, updateTaskVcs, insertTaskAttachment, recordTaskPullRequestAttachments, getAssetKeyMappingByProvider, upsertAssetKeyMapping, getAssetKeyMapping, listAssetSummaries, moveAssetKey, deleteTaskAttachment, replaceTaskAttachment, getTaskAttachments, createSteeringMessage, getSteeringMessagesForTask, getSteeringMessageById, getPendingSteeringForTask, getPendingSteeringForAgent, markSteeringDelivered, markSteeringHandled, markSteeringPromoted, cancelPendingSteeringForTask, hasPendingSteering, getAgentWithTasks, getAllAgentsWithTasks, createLogEntry, getLogsByAgentId, getLogsByTaskId, getLogsByTaskIdChronological, getLogsByEventType, getAllLogs, findRecentSimilarTasks, createTaskExtended, claimTask, releaseTask, acceptTask, rejectTask, moveTaskToBacklog, moveTaskFromBacklog, promoteDraftTask, refreshDraftTaskLease, promoteAbandonedDraftTasks, releaseStaleReviewingTasks, releaseStaleOfferedTasksForOfflineAgents, getOfferedTasksForAgent, claimOfferedTask, getUnassignedTasksCount, getUnassignedTaskIds, getUnassignedTaskIdsForAgent, checkDependencies, getDependentTasks, cascadeFailDependents, updateAgentProfile, updateAgentName, createChannel, getMessageById, getChannelById, getChannelByName, getAllChannels, deleteChannel, postMessage, getChannelMessages, updateReadState, getLastReadAt, getUnreadMessages, getMentionsForAgent, getInboxSummary, claimMentions, releaseMentionProcessing, releaseStaleMentionProcessing, createService, getServiceById, getServiceByAgentAndName, getServicesByAgentId, getAllServices, updateServiceStatus, deleteService, upsertService, deleteServicesByAgentId, createSessionLogs, getSessionLogsByTaskId, getSessionLogsBySession, createSessionCost, getSessionCostsByTaskId, getSessionCostsByAgentId, getAllSessionCosts, getSessionCostsFiltered, UNATTRIBUTED_USER_ID, getSessionCostSummary, getAttributionByPerson, getDashboardCostSummary, createInboxMessage, getInboxMessageById, getUnreadInboxMessages, claimInboxMessages, markInboxMessageRead, markInboxMessageResponded, markInboxMessageDelegated, releaseStaleProcessingInbox, getConcurrentContext, getScheduledTasks, getScheduledTaskById, getScheduledTaskByName, createScheduledTask, updateScheduledTask, deleteScheduledTask, getDueScheduledTasks, autoEncryptLegacyPlaintextSecrets, maskSecrets, getSwarmConfigs, getInjectableGlobalConfigs, getSwarmConfigById, getSwarmConfigLookupById, upsertSwarmConfig, emitBuiltInIntegrationConnectedOnce, deleteSwarmConfig, deleteSwarmConfigByKey, getResolvedConfig, getSwarmRepos, getSwarmRepoById, getSwarmRepoByName, getSwarmRepoByUrl, createSwarmRepo, updateSwarmRepo, deleteSwarmRepo, getAgentMailInboxMapping, getAgentMailInboxMappingsByAgent, getAllAgentMailInboxMappings, createAgentMailInboxMapping, deleteAgentMailInboxMapping, findTaskByAgentMailThread, insertActiveSession, deleteActiveSession, deleteActiveSessionById, getActiveSessions, heartbeatActiveSession, cleanupStaleSessions, cleanupAgentSessions, updateActiveSessionProviderSessionId, getActiveSessionForTask, reassociateSessionLogs, getStalledInProgressTasks, getStalePinnedResumes, failPendingResumeIfUnclaimed, getIdleWorkersWithCapacity, getUnassignedPoolTasks, getStaleUnassignedAffinityTasks, getRecentFailedTasks, getRecentCompletedCount, getRecentFailedCount, createWorkflow, getWorkflow, listWorkflows, updateWorkflow, deleteWorkflow, getWorkflowsByScheduleId, createWorkflowRun, getWorkflowRun, updateWorkflowRun, listWorkflowRuns, countWorkflowRuns, listWorkflowRunsPage, createWorkflowRunStep, getWorkflowRunStep, updateWorkflowRunStep, getWorkflowRunStepsByRunId, getStuckWorkflowRuns, getLastSuccessfulRun, getLastRunStart, getRetryableSteps, getCompletedStepNodeIds, getTaskByWorkflowRunStepId, detachTaskFromWorkflowRunStep, getStepByIdempotencyKey, getStepCountForNode, getLatestStepForNode, createWorkflowVersion, getWorkflowVersions, getWorkflowVersion, createAppVersion, getAppVersions, getAppVersion, createPage, getPage, getPageBySlug, getLatestPageBySlug, listPagesByAgent, listAllPages, countAllPages, countPagesByAgent, updatePage, deletePage, incrementPageViewCount, createPageVersion, getPageVersions, getPageVersion, createMetric, getMetric, getMetricBySlug, listMetricsByAgent, listAllMetrics, countAllMetrics, countMetricsByAgent, updateMetric, deleteMetric, createMetricVersion, getMetricVersions, getMetricVersion, getPromptTemplates, getPromptTemplateById, upsertPromptTemplate, deletePromptTemplate, resetPromptTemplateToDefault, getPromptTemplateHistory, resolvePromptTemplate, checkoutPromptTemplate, getAllChannelActivityCursors, getChannelActivityCursor, upsertChannelActivityCursor, createApprovalRequest, getApprovalRequestById, resolveApprovalRequest, cancelPendingApprovalRequestsForRun, listCancelledApprovalRequestsForRun, listCancelledApprovalRequestsForStep, claimApprovalCancellationNotification, completeApprovalCancellationNotificationClaim, releaseApprovalCancellationNotificationClaim, updateApprovalRequestNotifications, listApprovalRequests, getStuckApprovalRuns, getApprovalRequestByStepId, getExpiredPendingApprovals, createWaitState, getWaitStateById, getWaitStateByStepId, getDueWaitStates, getPendingEventWaitNames, getPendingWaitsByEvent, resolveWaitState, getStuckWaitRuns, SKILL_FILE_LIMITS, normalizeSkillFilePath, createSkill, updateSkill, listSkillFileManifest, getSkillFiles, getSkillFile, upsertSkillFile, upsertSkillFiles, deleteSkillFile, deleteSkill, getSkillById, getSkillByName, listSkills, searchSkills, installSkill, getSystemDefaultSkills, installSystemDefaultSkillsForAgent, uninstallSkill, getAgentSkills, toggleAgentSkill, createMcpServer, emitMcpServerConnectedTelemetry, updateMcpServer, deleteMcpServer, getMcpServerById, getMcpServerByName, listMcpServers, installMcpServer, uninstallMcpServer, getAgentMcpServers, createContextSnapshot, getContextSnapshotsByTaskId, getContextSnapshotsBySessionId, getContextSummaryByTaskId, getAvailableKeyIndices, recordKeyUsage, markKeyRateLimited, recordKeyRateLimitWindows, setApiKeyName, clearKeyRateLimit, getKeyStatuses, getKeyCostSummary, getUserById, getAllUsers, createUser, updateUser, deleteUser, listInboxState, upsertInboxState, listFavorites, listUserFavorites, getFavoriteItemIdSet, setFavorite, setUserFavorite, withFavoriteFlags, listTaskTemplates, getRootTaskChain, listRecentSessions, countSessions, getBudget, getBudgets, upsertBudget, deleteBudget, getAllPricingRows, getPricingRows, getActivePricingRow, insertPricingRow, deletePricingRow, getDailySpendForAgent, getDailySpendGlobal, getDailySpendForUser, recordBudgetRefusalNotification, getBudgetRefusalNotification, getRecentBudgetRefusalNotifications, hasBudgetRefusalNotificationToday, setBudgetRefusalFollowUpTaskId, getLiveAgentCounts, getReadyAgentCounts, getInstanceActivity, getSwarmMetrics, hasFirstCompletedTask, getKv, sweepExpiredKv, sweepExpiredKvPrefix, upsertKv, claimKv, deleteKv, KvTypeCollisionError, incrKv, listKv, countKv, createScriptRun, recordInlineScriptRun, getScriptRun, getScriptRunByIdempotencyKey, listScriptRuns, countScriptRuns, countActiveScriptRuns, updateScriptRun, updateScriptRunIfNotTerminal, updateScriptRunIfRunning, getRunningScriptRuns, getScriptRunJournalStep, upsertScriptRunJournalStep, listScriptRunJournalSteps, countScriptRunJournalSteps, countScriptRunJournalAgentTaskSteps, exports_db, init_db };
@@ -7,7 +7,7 @@ import {
7
7
  init_date_utils,
8
8
  init_db,
9
9
  normalizeDateRequired
10
- } from "./cli-3bh2bbga.js";
10
+ } from "./cli-60cwjbsn.js";
11
11
  import {
12
12
  init_secret_scrubber,
13
13
  registerVolatileSecret,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getMemoryRaterNames
3
- } from "./cli-mnmh7mj3.js";
3
+ } from "./cli-czbmash2.js";
4
4
 
5
5
  // src/prompts/memories.ts
6
6
  var SIMILARITY_THRESHOLD = 0.4;
@@ -6,7 +6,7 @@ import {
6
6
  getSwarmConfigs,
7
7
  init_db,
8
8
  upsertSwarmConfig
9
- } from "./cli-3bh2bbga.js";
9
+ } from "./cli-60cwjbsn.js";
10
10
  import {
11
11
  init_secret_scrubber,
12
12
  scrubSecrets
@@ -5,7 +5,7 @@ import {
5
5
  getDb,
6
6
  getDbClient,
7
7
  init_db
8
- } from "./cli-3bh2bbga.js";
8
+ } from "./cli-60cwjbsn.js";
9
9
  import {
10
10
  init_env_flag,
11
11
  isEnvFlagEnabled