@desplega.ai/agent-swarm 1.101.1 → 1.103.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 (124) hide show
  1. package/dist/{actions-3bnwa1ep.js → actions-7txktrdj.js} +6 -6
  2. package/dist/{app-5efpcda0.js → app-xm3xsdye.js} +3 -3
  3. package/dist/{assistant-rgfbyp46.js → assistant-qpv63wk6.js} +9 -9
  4. package/dist/{boot-reembed-j3gp6x92.js → boot-reembed-9cxqka3e.js} +3 -3
  5. package/dist/{boot-reembed-8428r5df.js → boot-reembed-chxhrwv8.js} +4 -4
  6. package/dist/{boot-scrub-logs-ax5e0nrw.js → boot-scrub-logs-8qtfkcz8.js} +2 -2
  7. package/dist/{claude-managed-adapter-g07dbz3b.js → claude-managed-adapter-z29hjgzz.js} +3 -3
  8. package/dist/{cli-qsy1aedt.js → cli-2307phk1.js} +435 -35
  9. package/dist/{cli-g5px3d7x.js → cli-2957pqpj.js} +24 -1
  10. package/dist/{cli-b2k39ff6.js → cli-2qynerth.js} +1 -1
  11. package/dist/{cli-42f5hj29.js → cli-4fnp2tc3.js} +1 -1
  12. package/dist/{cli-7fzbt4p5.js → cli-85pf4z38.js} +1 -1
  13. package/dist/{cli-gwp428sg.js → cli-8hyv6c2v.js} +6 -14
  14. package/dist/{cli-qr8ky518.js → cli-8w95v19d.js} +1 -1
  15. package/dist/{cli-7xdq3jg3.js → cli-92fqyjcv.js} +1 -1
  16. package/dist/{cli-dg9tkgx0.js → cli-dz3d6zjg.js} +1 -1
  17. package/dist/{cli-53w8f9q9.js → cli-fedn86nz.js} +238 -484
  18. package/dist/{cli-zwc67pz4.js → cli-fwxdt7kt.js} +3 -3
  19. package/dist/{cli-53jkzjwm.js → cli-fygaw191.js} +2 -2
  20. package/dist/{cli-rdhzpm5x.js → cli-gzepjz54.js} +10 -9
  21. package/dist/{cli-n2xem10h.js → cli-jt9d9fjw.js} +1 -1
  22. package/dist/{cli-axtg1zaa.js → cli-khe4x17a.js} +1 -1
  23. package/dist/{cli-3a5wne6a.js → cli-kk51f3tf.js} +5 -5
  24. package/dist/{cli-12mrw9t3.js → cli-krvxq8bc.js} +1 -1
  25. package/dist/{cli-ft42ja8t.js → cli-ksq38x4n.js} +2 -2
  26. package/dist/{cli-z5gm760z.js → cli-m8f6qzck.js} +1 -1
  27. package/dist/{cli-p3mgqhjg.js → cli-ns0r7mkr.js} +30 -5
  28. package/dist/{cli-0v0nmmx1.js → cli-rttgde5f.js} +18 -6
  29. package/dist/{cli-8ayape3v.js → cli-rvae030h.js} +3 -3
  30. package/dist/{cli-6w7kg2y6.js → cli-s14sb64w.js} +4 -4
  31. package/dist/{cli-yg15ef2d.js → cli-v9283nma.js} +1 -1
  32. package/dist/{cli-kdhqhhrt.js → cli-xmtsan9k.js} +1 -1
  33. package/dist/{cli-5mt46cfa.js → cli-yeemwevj.js} +155 -37
  34. package/dist/{cli-54wmx6d9.js → cli-yfwwjeft.js} +1 -1
  35. package/dist/{cli-s8jw5bmg.js → cli-yp2krx5r.js} +2 -2
  36. package/dist/cli.js +9 -9
  37. package/dist/{codex-adapter-wf119mnw.js → codex-adapter-w0xharsg.js} +3 -3
  38. package/dist/{codex-session-runner-1gknw7mh.js → codex-session-runner-kzbjcm2k.js} +3 -3
  39. package/dist/{commands-ne6wm294.js → commands-aqn63mcw.js} +2 -2
  40. package/dist/{db-4bssa9fd.js → db-azrvwsnj.js} +2 -2
  41. package/dist/{handlers-b1xzrzd8.js → handlers-hf61har3.js} +9 -9
  42. package/dist/{hook-ghkvmqhb.js → hook-306p3yz4.js} +2 -2
  43. package/dist/{http-3d87gpq5.js → http-zts4haq7.js} +106 -69
  44. package/dist/{index-zc2ryfs3.js → index-29vg51x6.js} +163 -26
  45. package/dist/{index-vfxc8p1h.js → index-3c651yfk.js} +10 -10
  46. package/dist/{index-g2dtq2m4.js → index-bfh9hgek.js} +5 -5
  47. package/dist/{index-7eqxb7sq.js → index-h2yqjyk0.js} +8 -8
  48. package/dist/{keepalive-mdrtpw97.js → keepalive-a0dg5pds.js} +4 -4
  49. package/dist/{lead-k05m28c2.js → lead-7mcxedkc.js} +21 -21
  50. package/dist/{maintenance-3qnntmp1.js → maintenance-mrzqd53t.js} +4 -4
  51. package/dist/{onboard-kch4svdx.js → onboard-4dkpv9wa.js} +2 -2
  52. package/dist/{otel-impl-7c00xnhe.js → otel-impl-jt7gpyp9.js} +1 -1
  53. package/dist/{pi-mono-adapter-hf8sw7hs.js → pi-mono-adapter-zf7dt1wg.js} +1 -1
  54. package/dist/{pricing-refresh-6038eg1z.js → pricing-refresh-xqnzh8dt.js} +4 -4
  55. package/dist/{seed-pricing-75b6h84n.js → seed-pricing-56tjm1fj.js} +3 -3
  56. package/dist/{setup-jrqcgbdc.js → setup-tbwk8j10.js} +2 -2
  57. package/dist/{worker-0p9zfby6.js → worker-e03za92t.js} +21 -21
  58. package/openapi.json +70 -1
  59. package/package.json +1 -1
  60. package/src/be/audit-user.ts +49 -0
  61. package/src/be/db.ts +114 -17
  62. package/src/be/migrations/098_repo_hooks_config.sql +3 -0
  63. package/src/be/scripts/db.ts +25 -5
  64. package/src/be/seed-skills/index.ts +7 -0
  65. package/src/be/task-lifecycle-events.ts +42 -0
  66. package/src/commands/runner.ts +174 -25
  67. package/src/github/task-reactions.ts +21 -0
  68. package/src/hooks/tool-loop-detection.test.ts +40 -0
  69. package/src/hooks/tool-loop-detection.ts +37 -1
  70. package/src/http/agents.ts +7 -0
  71. package/src/http/index.ts +16 -2
  72. package/src/http/prompt-templates.ts +1 -1
  73. package/src/http/repos.ts +5 -1
  74. package/src/http/schedules.ts +6 -2
  75. package/src/http/scripts.ts +4 -0
  76. package/src/http/session-data.ts +2 -0
  77. package/src/http/tasks.ts +2 -1
  78. package/src/http/workflows.ts +14 -1
  79. package/src/prompts/resolver.ts +1 -1
  80. package/src/scheduler/scheduler.ts +25 -2
  81. package/src/server-runtime-counters.ts +12 -0
  82. package/src/server-user.ts +1 -2
  83. package/src/server.ts +5 -0
  84. package/src/telemetry.ts +18 -1
  85. package/src/tests/audit-updated-by.test.ts +636 -0
  86. package/src/tests/audit-user.test.ts +156 -0
  87. package/src/tests/http-api-integration.test.ts +4 -0
  88. package/src/tests/model-control.test.ts +6 -6
  89. package/src/tests/swarm-repos.test.ts +25 -2
  90. package/src/tests/system-default-skills.test.ts +14 -1
  91. package/src/tests/task-lifecycle-events.test.ts +53 -0
  92. package/src/tests/task-lifecycle-telemetry.test.ts +37 -1
  93. package/src/tests/telemetry-init.test.ts +32 -0
  94. package/src/tools/prompt-templates/preview.ts +1 -1
  95. package/src/tools/repos/update-repo.ts +6 -1
  96. package/src/tools/schedules/create-schedule.ts +6 -1
  97. package/src/tools/schedules/update-schedule.ts +5 -2
  98. package/src/tools/script-common.ts +9 -5
  99. package/src/tools/send-task.ts +7 -2
  100. package/src/tools/task-action.ts +6 -2
  101. package/src/tools/workflows/create-workflow.ts +5 -0
  102. package/src/tools/workflows/patch-workflow-node.ts +10 -1
  103. package/src/tools/workflows/patch-workflow.ts +6 -0
  104. package/src/tools/workflows/update-workflow.ts +4 -0
  105. package/src/types.ts +159 -1
  106. package/src/utils/template.ts +127 -0
  107. package/src/workflows/engine.ts +7 -0
  108. package/src/workflows/executors/agent-task.ts +1 -2
  109. package/src/workflows/template.ts +12 -121
  110. package/src/workflows/triggers.ts +6 -2
  111. package/templates/community/code-health-reports/PLAYBOOK.md +355 -0
  112. package/templates/community/code-health-reports/README.md +38 -0
  113. package/templates/community/code-health-reports/lead-prompt.md +52 -0
  114. package/templates/community/code-health-reports/report.mjs +378 -0
  115. package/templates/community/code-health-reports/run.sh +143 -0
  116. package/templates/schedules/weekly-code-health-reports/config.json +13 -0
  117. package/templates/schedules/weekly-code-health-reports/content.md +60 -0
  118. package/templates/skills/TASTE-SKILL-LICENSE +21 -0
  119. package/templates/skills/pages/config.json +4 -3
  120. package/templates/skills/pages/content.md +39 -12
  121. package/templates/skills/taste-minimalist-skill/config.json +19 -0
  122. package/templates/skills/taste-minimalist-skill/content.md +83 -0
  123. package/src/model-tiers.ts +0 -140
  124. package/templates/community/.gitkeep +0 -0
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  resolveSlackUserId
3
- } from "./cli-8ayape3v.js";
4
- import"./cli-b2k39ff6.js";
5
- import"./cli-54wmx6d9.js";
3
+ } from "./cli-rvae030h.js";
4
+ import"./cli-2qynerth.js";
5
+ import"./cli-yfwwjeft.js";
6
6
  import {
7
7
  buildCancelledBlocks,
8
8
  getTaskLink
@@ -11,18 +11,18 @@ import"./cli-dh55d5fg.js";
11
11
  import {
12
12
  createTaskWithSiblingAwareness,
13
13
  slackContextKey
14
- } from "./cli-n2xem10h.js";
14
+ } from "./cli-jt9d9fjw.js";
15
15
  import {
16
16
  cancelTask,
17
17
  getAgentById,
18
18
  getLeadAgent,
19
19
  getTaskById,
20
20
  init_db
21
- } from "./cli-53w8f9q9.js";
21
+ } from "./cli-fedn86nz.js";
22
22
  import"./cli-z2zcxes1.js";
23
23
  import"./cli-q21d49ac.js";
24
24
  import"./cli-anrj584m.js";
25
- import"./cli-7fzbt4p5.js";
25
+ import"./cli-85pf4z38.js";
26
26
  import"./cli-3pp1362w.js";
27
27
  import"./cli-p9swy5t3.js";
28
28
 
@@ -3,16 +3,16 @@ import {
3
3
  initSlackApp,
4
4
  startSlackApp,
5
5
  stopSlackApp
6
- } from "./cli-3a5wne6a.js";
6
+ } from "./cli-kk51f3tf.js";
7
7
  import"./cli-fete3y1e.js";
8
8
  import"./cli-b0p7rfnd.js";
9
9
  import"./cli-z92pkwzn.js";
10
10
  import"./cli-dh55d5fg.js";
11
- import"./cli-53w8f9q9.js";
11
+ import"./cli-fedn86nz.js";
12
12
  import"./cli-z2zcxes1.js";
13
13
  import"./cli-q21d49ac.js";
14
14
  import"./cli-anrj584m.js";
15
- import"./cli-7fzbt4p5.js";
15
+ import"./cli-85pf4z38.js";
16
16
  import"./cli-3pp1362w.js";
17
17
  import"./cli-e15jhafb.js";
18
18
  import"./cli-p9swy5t3.js";
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  bufferThreadMessage,
3
3
  wasEventSeen
4
- } from "./cli-6w7kg2y6.js";
4
+ } from "./cli-s14sb64w.js";
5
5
  import {
6
6
  hasOtherUserMention
7
- } from "./cli-dg9tkgx0.js";
7
+ } from "./cli-dz3d6zjg.js";
8
8
  import"./cli-2deg0cen.js";
9
9
  import {
10
10
  require_dist
11
- } from "./cli-3a5wne6a.js";
11
+ } from "./cli-kk51f3tf.js";
12
12
  import"./cli-fete3y1e.js";
13
13
  import"./cli-b0p7rfnd.js";
14
14
  import {
15
15
  resolveSlackUserId
16
- } from "./cli-8ayape3v.js";
17
- import"./cli-b2k39ff6.js";
18
- import"./cli-54wmx6d9.js";
16
+ } from "./cli-rvae030h.js";
17
+ import"./cli-2qynerth.js";
18
+ import"./cli-yfwwjeft.js";
19
19
  import"./cli-z92pkwzn.js";
20
20
  import"./cli-dh55d5fg.js";
21
21
  import {
22
22
  createTaskWithSiblingAwareness,
23
23
  slackContextKey
24
- } from "./cli-n2xem10h.js";
24
+ } from "./cli-jt9d9fjw.js";
25
25
  import {
26
26
  getAgentWorkingOnThread,
27
27
  getLeadAgent,
@@ -29,11 +29,11 @@ import {
29
29
  init_db,
30
30
  init_resolver,
31
31
  resolveTemplate
32
- } from "./cli-53w8f9q9.js";
32
+ } from "./cli-fedn86nz.js";
33
33
  import"./cli-z2zcxes1.js";
34
34
  import"./cli-q21d49ac.js";
35
35
  import"./cli-anrj584m.js";
36
- import"./cli-7fzbt4p5.js";
36
+ import"./cli-85pf4z38.js";
37
37
  import"./cli-3pp1362w.js";
38
38
  import"./cli-e15jhafb.js";
39
39
  import {
@@ -3,15 +3,15 @@ import {
3
3
  getEmbeddingProvider,
4
4
  getMemoryStore,
5
5
  init_constants
6
- } from "./cli-qr8ky518.js";
6
+ } from "./cli-8w95v19d.js";
7
7
  import {
8
8
  getDb,
9
9
  init_db
10
- } from "./cli-53w8f9q9.js";
10
+ } from "./cli-fedn86nz.js";
11
11
  import"./cli-z2zcxes1.js";
12
12
  import"./cli-q21d49ac.js";
13
13
  import"./cli-anrj584m.js";
14
- import"./cli-7fzbt4p5.js";
14
+ import"./cli-85pf4z38.js";
15
15
  import"./cli-3pp1362w.js";
16
16
  import"./cli-p9swy5t3.js";
17
17
 
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  embedScript,
3
3
  embeddingProvider
4
- } from "./cli-53jkzjwm.js";
5
- import"./cli-qr8ky518.js";
4
+ } from "./cli-fygaw191.js";
5
+ import"./cli-8w95v19d.js";
6
6
  import {
7
7
  getDb,
8
8
  init_db
9
- } from "./cli-53w8f9q9.js";
9
+ } from "./cli-fedn86nz.js";
10
10
  import"./cli-z2zcxes1.js";
11
11
  import"./cli-q21d49ac.js";
12
12
  import"./cli-anrj584m.js";
13
- import"./cli-7fzbt4p5.js";
13
+ import"./cli-85pf4z38.js";
14
14
  import"./cli-3pp1362w.js";
15
15
  import"./cli-p9swy5t3.js";
16
16
 
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getDb,
3
3
  init_db
4
- } from "./cli-53w8f9q9.js";
4
+ } from "./cli-fedn86nz.js";
5
5
  import"./cli-z2zcxes1.js";
6
6
  import"./cli-q21d49ac.js";
7
7
  import"./cli-anrj584m.js";
8
- import"./cli-7fzbt4p5.js";
8
+ import"./cli-85pf4z38.js";
9
9
  import {
10
10
  init_secret_scrubber,
11
11
  scrubSecrets
@@ -3,9 +3,9 @@ import {
3
3
  checkClaudeManagedCredentials,
4
4
  composeManagedUserMessage,
5
5
  normalizeRepoUrl
6
- } from "./cli-s8jw5bmg.js";
7
- import"./cli-7xdq3jg3.js";
8
- import"./cli-g5px3d7x.js";
6
+ } from "./cli-yp2krx5r.js";
7
+ import"./cli-92fqyjcv.js";
8
+ import"./cli-2957pqpj.js";
9
9
  import"./cli-d6n0thxw.js";
10
10
  import"./cli-gz9sbyk3.js";
11
11
  import"./cli-0k9dc6ks.js";