@desplega.ai/agent-swarm 1.102.0 → 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 (107) hide show
  1. package/dist/{actions-j9399ktm.js → actions-7txktrdj.js} +6 -6
  2. package/dist/{app-tnq1pz27.js → app-xm3xsdye.js} +3 -3
  3. package/dist/{assistant-c7y92gkw.js → assistant-qpv63wk6.js} +9 -9
  4. package/dist/{boot-reembed-k7e6fc1p.js → boot-reembed-9cxqka3e.js} +3 -3
  5. package/dist/{boot-reembed-b97r699t.js → boot-reembed-chxhrwv8.js} +4 -4
  6. package/dist/{boot-scrub-logs-14kbc61y.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-tsz1q7gk.js → cli-2307phk1.js} +375 -23
  9. package/dist/{cli-g5px3d7x.js → cli-2957pqpj.js} +24 -1
  10. package/dist/{cli-9qascwj7.js → cli-2qynerth.js} +1 -1
  11. package/dist/{cli-k1ghyj8b.js → cli-4fnp2tc3.js} +1 -1
  12. package/dist/{cli-hc4rd6sv.js → cli-85pf4z38.js} +1 -1
  13. package/dist/{cli-zk4gn40w.js → cli-8hyv6c2v.js} +6 -14
  14. package/dist/{cli-k81y1cjb.js → cli-8w95v19d.js} +1 -1
  15. package/dist/{cli-7xdq3jg3.js → cli-92fqyjcv.js} +1 -1
  16. package/dist/{cli-zctkpdmd.js → cli-dz3d6zjg.js} +1 -1
  17. package/dist/{cli-d0t4854c.js → cli-fedn86nz.js} +213 -476
  18. package/dist/{cli-g861fwjp.js → cli-fwxdt7kt.js} +3 -3
  19. package/dist/{cli-2aaa9mqr.js → cli-fygaw191.js} +2 -2
  20. package/dist/{cli-qbc6mncp.js → cli-gzepjz54.js} +2 -2
  21. package/dist/{cli-r68m8arr.js → cli-jt9d9fjw.js} +1 -1
  22. package/dist/{cli-axtg1zaa.js → cli-khe4x17a.js} +1 -1
  23. package/dist/{cli-sygq3fhn.js → cli-kk51f3tf.js} +5 -5
  24. package/dist/{cli-dgab5x2h.js → cli-krvxq8bc.js} +1 -1
  25. package/dist/{cli-xde8vhhp.js → cli-ksq38x4n.js} +2 -2
  26. package/dist/{cli-stqqf5kh.js → cli-m8f6qzck.js} +1 -1
  27. package/dist/{cli-ap4md0gc.js → cli-ns0r7mkr.js} +30 -5
  28. package/dist/{cli-t2jk33ta.js → cli-rttgde5f.js} +18 -6
  29. package/dist/{cli-mhj07xbq.js → cli-rvae030h.js} +3 -3
  30. package/dist/{cli-q6jzg6wj.js → cli-s14sb64w.js} +4 -4
  31. package/dist/{cli-zmf7refz.js → cli-v9283nma.js} +1 -1
  32. package/dist/{cli-fjx4x7nn.js → cli-xmtsan9k.js} +1 -1
  33. package/dist/{cli-vgck9mqq.js → cli-yeemwevj.js} +155 -37
  34. package/dist/{cli-5bqa41fd.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-2wyn3swb.js → commands-aqn63mcw.js} +2 -2
  40. package/dist/{db-567ntpxv.js → db-azrvwsnj.js} +2 -2
  41. package/dist/{handlers-wvwpk2kj.js → handlers-hf61har3.js} +9 -9
  42. package/dist/{hook-fatkywc0.js → hook-306p3yz4.js} +2 -2
  43. package/dist/{http-eq6wxve6.js → http-zts4haq7.js} +81 -62
  44. package/dist/{index-400x6p3j.js → index-29vg51x6.js} +6 -6
  45. package/dist/{index-9wqh5352.js → index-3c651yfk.js} +10 -10
  46. package/dist/{index-6aj8966p.js → index-bfh9hgek.js} +5 -5
  47. package/dist/{index-d1rm4ea3.js → index-h2yqjyk0.js} +8 -8
  48. package/dist/{keepalive-6x9nx92g.js → keepalive-a0dg5pds.js} +4 -4
  49. package/dist/{lead-5fgqwe13.js → lead-7mcxedkc.js} +21 -21
  50. package/dist/{maintenance-eajx5k1k.js → maintenance-mrzqd53t.js} +4 -4
  51. package/dist/{onboard-jc1w1edg.js → onboard-4dkpv9wa.js} +2 -2
  52. package/dist/{otel-impl-8k375amf.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-zed6916t.js → pricing-refresh-xqnzh8dt.js} +4 -4
  55. package/dist/{seed-pricing-5805qzkz.js → seed-pricing-56tjm1fj.js} +3 -3
  56. package/dist/{setup-wz05vxh0.js → setup-tbwk8j10.js} +2 -2
  57. package/dist/{worker-j359graf.js → worker-e03za92t.js} +21 -21
  58. package/openapi.json +70 -1
  59. package/package.json +1 -1
  60. package/src/be/db.ts +83 -13
  61. package/src/be/migrations/098_repo_hooks_config.sql +3 -0
  62. package/src/be/task-lifecycle-events.ts +42 -0
  63. package/src/commands/runner.ts +174 -25
  64. package/src/github/task-reactions.ts +21 -0
  65. package/src/hooks/tool-loop-detection.test.ts +40 -0
  66. package/src/hooks/tool-loop-detection.ts +37 -1
  67. package/src/http/agents.ts +7 -0
  68. package/src/http/index.ts +16 -2
  69. package/src/http/prompt-templates.ts +1 -1
  70. package/src/http/repos.ts +5 -1
  71. package/src/http/schedules.ts +1 -1
  72. package/src/http/session-data.ts +2 -0
  73. package/src/http/tasks.ts +2 -1
  74. package/src/http/workflows.ts +1 -0
  75. package/src/prompts/resolver.ts +1 -1
  76. package/src/scheduler/scheduler.ts +25 -2
  77. package/src/server-runtime-counters.ts +12 -0
  78. package/src/server-user.ts +1 -2
  79. package/src/server.ts +5 -0
  80. package/src/telemetry.ts +18 -1
  81. package/src/tests/http-api-integration.test.ts +4 -0
  82. package/src/tests/model-control.test.ts +6 -6
  83. package/src/tests/swarm-repos.test.ts +25 -2
  84. package/src/tests/task-lifecycle-events.test.ts +53 -0
  85. package/src/tests/task-lifecycle-telemetry.test.ts +37 -1
  86. package/src/tests/telemetry-init.test.ts +32 -0
  87. package/src/tools/prompt-templates/preview.ts +1 -1
  88. package/src/tools/repos/update-repo.ts +6 -1
  89. package/src/tools/schedules/create-schedule.ts +1 -1
  90. package/src/tools/schedules/update-schedule.ts +1 -1
  91. package/src/tools/send-task.ts +7 -2
  92. package/src/tools/task-action.ts +6 -2
  93. package/src/types.ts +155 -1
  94. package/src/utils/template.ts +127 -0
  95. package/src/workflows/engine.ts +7 -0
  96. package/src/workflows/executors/agent-task.ts +1 -2
  97. package/src/workflows/template.ts +12 -121
  98. package/src/workflows/triggers.ts +6 -2
  99. package/templates/community/code-health-reports/PLAYBOOK.md +355 -0
  100. package/templates/community/code-health-reports/README.md +38 -0
  101. package/templates/community/code-health-reports/lead-prompt.md +52 -0
  102. package/templates/community/code-health-reports/report.mjs +378 -0
  103. package/templates/community/code-health-reports/run.sh +143 -0
  104. package/templates/schedules/weekly-code-health-reports/config.json +13 -0
  105. package/templates/schedules/weekly-code-health-reports/content.md +60 -0
  106. package/src/model-tiers.ts +0 -140
  107. package/templates/community/.gitkeep +0 -0
@@ -5,7 +5,7 @@ import {
5
5
  getScript,
6
6
  getScriptVersion,
7
7
  validateScriptImports
8
- } from "./cli-qbc6mncp.js";
8
+ } from "./cli-gzepjz54.js";
9
9
  import {
10
10
  checkpointStep,
11
11
  checkpointStepFailure,
@@ -15,14 +15,14 @@ import {
15
15
  interpolateNodeConfig,
16
16
  runStepValidation,
17
17
  walkGraph
18
- } from "./cli-t2jk33ta.js";
18
+ } from "./cli-rttgde5f.js";
19
19
  import {
20
20
  getAppUrl
21
21
  } from "./cli-dh55d5fg.js";
22
22
  import {
23
23
  withSiblingAwareness,
24
24
  workflowContextKey
25
- } from "./cli-r68m8arr.js";
25
+ } from "./cli-jt9d9fjw.js";
26
26
  import {
27
27
  FollowUpConfigSchema,
28
28
  ModelTierSchema,
@@ -46,8 +46,6 @@ import {
46
46
  getWorkflowRunStepsByRunId,
47
47
  getWorkflowVersions,
48
48
  init_db,
49
- init_model_tiers,
50
- init_template,
51
49
  init_types,
52
50
  interpolate,
53
51
  resolveApprovalRequest,
@@ -55,7 +53,7 @@ import {
55
53
  splitLegacyModelAlias,
56
54
  updateWorkflowRun,
57
55
  updateWorkflowRunStep
58
- } from "./cli-d0t4854c.js";
56
+ } from "./cli-fedn86nz.js";
59
57
  import {
60
58
  init_zod
61
59
  } from "./cli-q21d49ac.js";
@@ -1014,10 +1012,6 @@ function stopRetryPoller() {
1014
1012
  pollerTimeout = null;
1015
1013
  }
1016
1014
  }
1017
-
1018
- // src/workflows/index.ts
1019
- init_template();
1020
-
1021
1015
  // src/workflows/templates.ts
1022
1016
  function validateTemplateVariables(template, provided) {
1023
1017
  const missing = [];
@@ -1141,7 +1135,6 @@ init_zod();
1141
1135
 
1142
1136
  // src/workflows/executors/agent-task.ts
1143
1137
  init_zod();
1144
- init_model_tiers();
1145
1138
  init_types();
1146
1139
  var AgentTaskConfigSchema = exports_external.object({
1147
1140
  template: exports_external.string(),
@@ -1428,7 +1421,7 @@ class HumanInTheLoopExecutor extends BaseExecutor {
1428
1421
  }
1429
1422
  if (notification.channel === "slack") {
1430
1423
  try {
1431
- const { getSlackApp } = await import("./app-tnq1pz27.js");
1424
+ const { getSlackApp } = await import("./app-xm3xsdye.js");
1432
1425
  const slackApp = getSlackApp();
1433
1426
  if (!slackApp) {
1434
1427
  console.warn("[HITL] Slack not initialized — cannot send notification");
@@ -1542,7 +1535,7 @@ class NotifyExecutor extends BaseExecutor {
1542
1535
  }
1543
1536
  }
1544
1537
  case "slack": {
1545
- const { getSlackApp } = await import("./app-tnq1pz27.js");
1538
+ const { getSlackApp } = await import("./app-xm3xsdye.js");
1546
1539
  const app = getSlackApp();
1547
1540
  if (!app) {
1548
1541
  return {
@@ -2545,7 +2538,6 @@ function createExecutorRegistry(deps) {
2545
2538
  }
2546
2539
 
2547
2540
  // src/workflows/index.ts
2548
- init_template();
2549
2541
  var _registry = null;
2550
2542
  function getExecutorRegistry() {
2551
2543
  if (!_registry) {
@@ -2,7 +2,7 @@ import {
2
2
  getDb,
3
3
  init_db,
4
4
  isSqliteVecAvailable
5
- } from "./cli-d0t4854c.js";
5
+ } from "./cli-fedn86nz.js";
6
6
  import {
7
7
  __esm,
8
8
  __export,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  checkToolLoop
3
- } from "./cli-g5px3d7x.js";
3
+ } from "./cli-2957pqpj.js";
4
4
 
5
5
  // src/providers/swarm-events-shared.ts
6
6
  var CANCELLATION_THROTTLE_MS = 500;
@@ -3,7 +3,7 @@ import {
3
3
  getAgentWorkingOnThread,
4
4
  getAllAgents,
5
5
  init_db
6
- } from "./cli-d0t4854c.js";
6
+ } from "./cli-fedn86nz.js";
7
7
 
8
8
  // src/slack/router.ts
9
9
  init_db();