@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.
- package/dist/{actions-j9399ktm.js → actions-7txktrdj.js} +6 -6
- package/dist/{app-tnq1pz27.js → app-xm3xsdye.js} +3 -3
- package/dist/{assistant-c7y92gkw.js → assistant-qpv63wk6.js} +9 -9
- package/dist/{boot-reembed-k7e6fc1p.js → boot-reembed-9cxqka3e.js} +3 -3
- package/dist/{boot-reembed-b97r699t.js → boot-reembed-chxhrwv8.js} +4 -4
- package/dist/{boot-scrub-logs-14kbc61y.js → boot-scrub-logs-8qtfkcz8.js} +2 -2
- package/dist/{claude-managed-adapter-g07dbz3b.js → claude-managed-adapter-z29hjgzz.js} +3 -3
- package/dist/{cli-tsz1q7gk.js → cli-2307phk1.js} +375 -23
- package/dist/{cli-g5px3d7x.js → cli-2957pqpj.js} +24 -1
- package/dist/{cli-9qascwj7.js → cli-2qynerth.js} +1 -1
- package/dist/{cli-k1ghyj8b.js → cli-4fnp2tc3.js} +1 -1
- package/dist/{cli-hc4rd6sv.js → cli-85pf4z38.js} +1 -1
- package/dist/{cli-zk4gn40w.js → cli-8hyv6c2v.js} +6 -14
- package/dist/{cli-k81y1cjb.js → cli-8w95v19d.js} +1 -1
- package/dist/{cli-7xdq3jg3.js → cli-92fqyjcv.js} +1 -1
- package/dist/{cli-zctkpdmd.js → cli-dz3d6zjg.js} +1 -1
- package/dist/{cli-d0t4854c.js → cli-fedn86nz.js} +213 -476
- package/dist/{cli-g861fwjp.js → cli-fwxdt7kt.js} +3 -3
- package/dist/{cli-2aaa9mqr.js → cli-fygaw191.js} +2 -2
- package/dist/{cli-qbc6mncp.js → cli-gzepjz54.js} +2 -2
- package/dist/{cli-r68m8arr.js → cli-jt9d9fjw.js} +1 -1
- package/dist/{cli-axtg1zaa.js → cli-khe4x17a.js} +1 -1
- package/dist/{cli-sygq3fhn.js → cli-kk51f3tf.js} +5 -5
- package/dist/{cli-dgab5x2h.js → cli-krvxq8bc.js} +1 -1
- package/dist/{cli-xde8vhhp.js → cli-ksq38x4n.js} +2 -2
- package/dist/{cli-stqqf5kh.js → cli-m8f6qzck.js} +1 -1
- package/dist/{cli-ap4md0gc.js → cli-ns0r7mkr.js} +30 -5
- package/dist/{cli-t2jk33ta.js → cli-rttgde5f.js} +18 -6
- package/dist/{cli-mhj07xbq.js → cli-rvae030h.js} +3 -3
- package/dist/{cli-q6jzg6wj.js → cli-s14sb64w.js} +4 -4
- package/dist/{cli-zmf7refz.js → cli-v9283nma.js} +1 -1
- package/dist/{cli-fjx4x7nn.js → cli-xmtsan9k.js} +1 -1
- package/dist/{cli-vgck9mqq.js → cli-yeemwevj.js} +155 -37
- package/dist/{cli-5bqa41fd.js → cli-yfwwjeft.js} +1 -1
- package/dist/{cli-s8jw5bmg.js → cli-yp2krx5r.js} +2 -2
- package/dist/cli.js +9 -9
- package/dist/{codex-adapter-wf119mnw.js → codex-adapter-w0xharsg.js} +3 -3
- package/dist/{codex-session-runner-1gknw7mh.js → codex-session-runner-kzbjcm2k.js} +3 -3
- package/dist/{commands-2wyn3swb.js → commands-aqn63mcw.js} +2 -2
- package/dist/{db-567ntpxv.js → db-azrvwsnj.js} +2 -2
- package/dist/{handlers-wvwpk2kj.js → handlers-hf61har3.js} +9 -9
- package/dist/{hook-fatkywc0.js → hook-306p3yz4.js} +2 -2
- package/dist/{http-eq6wxve6.js → http-zts4haq7.js} +81 -62
- package/dist/{index-400x6p3j.js → index-29vg51x6.js} +6 -6
- package/dist/{index-9wqh5352.js → index-3c651yfk.js} +10 -10
- package/dist/{index-6aj8966p.js → index-bfh9hgek.js} +5 -5
- package/dist/{index-d1rm4ea3.js → index-h2yqjyk0.js} +8 -8
- package/dist/{keepalive-6x9nx92g.js → keepalive-a0dg5pds.js} +4 -4
- package/dist/{lead-5fgqwe13.js → lead-7mcxedkc.js} +21 -21
- package/dist/{maintenance-eajx5k1k.js → maintenance-mrzqd53t.js} +4 -4
- package/dist/{onboard-jc1w1edg.js → onboard-4dkpv9wa.js} +2 -2
- package/dist/{otel-impl-8k375amf.js → otel-impl-jt7gpyp9.js} +1 -1
- package/dist/{pi-mono-adapter-hf8sw7hs.js → pi-mono-adapter-zf7dt1wg.js} +1 -1
- package/dist/{pricing-refresh-zed6916t.js → pricing-refresh-xqnzh8dt.js} +4 -4
- package/dist/{seed-pricing-5805qzkz.js → seed-pricing-56tjm1fj.js} +3 -3
- package/dist/{setup-wz05vxh0.js → setup-tbwk8j10.js} +2 -2
- package/dist/{worker-j359graf.js → worker-e03za92t.js} +21 -21
- package/openapi.json +70 -1
- package/package.json +1 -1
- package/src/be/db.ts +83 -13
- package/src/be/migrations/098_repo_hooks_config.sql +3 -0
- package/src/be/task-lifecycle-events.ts +42 -0
- package/src/commands/runner.ts +174 -25
- package/src/github/task-reactions.ts +21 -0
- package/src/hooks/tool-loop-detection.test.ts +40 -0
- package/src/hooks/tool-loop-detection.ts +37 -1
- package/src/http/agents.ts +7 -0
- package/src/http/index.ts +16 -2
- package/src/http/prompt-templates.ts +1 -1
- package/src/http/repos.ts +5 -1
- package/src/http/schedules.ts +1 -1
- package/src/http/session-data.ts +2 -0
- package/src/http/tasks.ts +2 -1
- package/src/http/workflows.ts +1 -0
- package/src/prompts/resolver.ts +1 -1
- package/src/scheduler/scheduler.ts +25 -2
- package/src/server-runtime-counters.ts +12 -0
- package/src/server-user.ts +1 -2
- package/src/server.ts +5 -0
- package/src/telemetry.ts +18 -1
- package/src/tests/http-api-integration.test.ts +4 -0
- package/src/tests/model-control.test.ts +6 -6
- package/src/tests/swarm-repos.test.ts +25 -2
- package/src/tests/task-lifecycle-events.test.ts +53 -0
- package/src/tests/task-lifecycle-telemetry.test.ts +37 -1
- package/src/tests/telemetry-init.test.ts +32 -0
- package/src/tools/prompt-templates/preview.ts +1 -1
- package/src/tools/repos/update-repo.ts +6 -1
- package/src/tools/schedules/create-schedule.ts +1 -1
- package/src/tools/schedules/update-schedule.ts +1 -1
- package/src/tools/send-task.ts +7 -2
- package/src/tools/task-action.ts +6 -2
- package/src/types.ts +155 -1
- package/src/utils/template.ts +127 -0
- package/src/workflows/engine.ts +7 -0
- package/src/workflows/executors/agent-task.ts +1 -2
- package/src/workflows/template.ts +12 -121
- package/src/workflows/triggers.ts +6 -2
- package/templates/community/code-health-reports/PLAYBOOK.md +355 -0
- package/templates/community/code-health-reports/README.md +38 -0
- package/templates/community/code-health-reports/lead-prompt.md +52 -0
- package/templates/community/code-health-reports/report.mjs +378 -0
- package/templates/community/code-health-reports/run.sh +143 -0
- package/templates/schedules/weekly-code-health-reports/config.json +13 -0
- package/templates/schedules/weekly-code-health-reports/content.md +60 -0
- package/src/model-tiers.ts +0 -140
- package/templates/community/.gitkeep +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getScript,
|
|
6
6
|
getScriptVersion,
|
|
7
7
|
validateScriptImports
|
|
8
|
-
} from "./cli-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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) {
|