@desplega.ai/agent-swarm 2.4.0 → 2.4.2
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/README.md +1 -1
- package/dist/{acp-adapter-kedstxx6.js → acp-adapter-dv7hmx4r.js} +9 -9
- package/dist/{actions-vget6r1k.js → actions-51nc1gny.js} +21 -21
- package/dist/{amp-adapter-xeb5mktv.js → amp-adapter-abp5tdx8.js} +4 -4
- package/dist/{app-mqap8t8m.js → app-9h14qvr6.js} +3 -3
- package/dist/{assistant-h0gv97mv.js → assistant-wv1gz3mt.js} +22 -22
- package/dist/{boot-reembed-qr8a894z.js → boot-reembed-6yn53ms9.js} +1 -1
- package/dist/{boot-reembed-rj85jjhw.js → boot-reembed-7fcka4z5.js} +1 -1
- package/dist/{boot-scrub-sweep-eyfvn6v9.js → boot-scrub-sweep-pm1580ax.js} +4 -4
- package/dist/{boot-seeds-xs9a8dx1.js → boot-seeds-g5hfc1x8.js} +4 -4
- package/dist/{claude-adapter-bm23cye7.js → claude-adapter-gf3kxhf0.js} +9 -9
- package/dist/{claude-managed-adapter-1mwrsm9d.js → claude-managed-adapter-h2y889ge.js} +2 -2
- package/dist/{claude-managed-setup-gkfgks4j.js → claude-managed-setup-h00hsgtz.js} +2 -2
- package/dist/{claude-sdk-session-apb4ypz3.js → claude-sdk-session-s2k1qd8y.js} +13 -13
- package/dist/{cli-tj4j2ts4.js → cli-02qm7src.js} +8 -8
- package/dist/{cli-1cevz46c.js → cli-0qvtffe9.js} +6 -6
- package/dist/{cli-avmqhatn.js → cli-10hhg0km.js} +8 -8
- package/dist/{cli-7gh7020n.js → cli-1dmcq2eh.js} +1 -1
- package/dist/{cli-kz116kvw.js → cli-239yjk27.js} +7 -7
- package/dist/{cli-7ayprxp7.js → cli-2dfbv8qr.js} +8 -0
- package/dist/{cli-a49vpbf3.js → cli-5kqnemen.js} +1 -1
- package/dist/{cli-x719j3vs.js → cli-5rk36sjf.js} +442 -205
- package/dist/{cli-fb6t92v8.js → cli-6x9ma5w5.js} +1 -1
- package/dist/{cli-c8fwpgqb.js → cli-7225gwj7.js} +2 -2
- package/dist/{cli-5s5hx57y.js → cli-7awf1fp8.js} +1 -1
- package/dist/{cli-bn26xbcs.js → cli-8nyhf7za.js} +1 -1
- package/dist/{cli-ywyrffff.js → cli-8sxqsbbq.js} +1 -1
- package/dist/{cli-rsd7ga7v.js → cli-8zwe9mpk.js} +11 -11
- package/dist/{cli-y83zk5sb.js → cli-a0kcty51.js} +4 -4
- package/dist/{cli-8b9wvjps.js → cli-a4gvwttf.js} +4 -4
- package/dist/{cli-jhp7w1fy.js → cli-a5ebc95n.js} +2 -2
- package/dist/{cli-mvg2hf8p.js → cli-ahtpy9kf.js} +14 -7
- package/dist/{cli-x1p5dhq2.js → cli-bcj753sq.js} +3 -3
- package/dist/{cli-p22zdvnt.js → cli-bn0rewsy.js} +3 -3
- package/dist/{cli-p1m2b6gc.js → cli-d2mb5s8a.js} +7 -7
- package/dist/{cli-rg7ntypm.js → cli-d3qqdy4c.js} +456 -94
- package/dist/{cli-c5sbmw1v.js → cli-d82btycs.js} +94 -15
- package/dist/{cli-02vhhssk.js → cli-efaqv1c7.js} +5 -5
- package/dist/{cli-vjfpshn3.js → cli-ejs3m1sx.js} +1 -1
- package/dist/{cli-kk2r80n5.js → cli-faypxz7q.js} +4 -4
- package/dist/{cli-a1esmmee.js → cli-fpmsqq59.js} +7 -2
- package/dist/{cli-wrv09v7q.js → cli-ftyypbg5.js} +1 -1
- package/dist/{cli-zvze9rbm.js → cli-fyzjmseb.js} +3 -3
- package/dist/{cli-8rwvksbc.js → cli-g0hgtz4p.js} +5 -5
- package/dist/{cli-nrrg0fvy.js → cli-h38rjv87.js} +133 -12
- package/dist/{cli-tg9ksbn8.js → cli-h93c9vb3.js} +2 -2
- package/dist/{cli-eqgfs202.js → cli-hqhzg1qq.js} +2 -2
- package/dist/{cli-bhwa8rzc.js → cli-hyfw2j1e.js} +13 -12
- package/dist/{cli-3wjs22x3.js → cli-j4rqdf2n.js} +2 -2
- package/dist/{cli-6ftrrwm1.js → cli-n85dqg6d.js} +5 -5
- package/dist/{cli-8cxkw1f5.js → cli-nmqdc2t3.js} +2 -2
- package/dist/{cli-4fhyq711.js → cli-nn47d7e8.js} +13 -13
- package/dist/{cli-x3en6ct3.js → cli-nwyw3zhg.js} +1 -1
- package/dist/{cli-3avfh5az.js → cli-pemywhfq.js} +2 -2
- package/dist/{cli-xfe63zx3.js → cli-pkht5hap.js} +2 -2
- package/dist/{cli-sppc0cmw.js → cli-pnp2j5zg.js} +2 -2
- package/dist/{cli-wk8ccrz6.js → cli-pw7v69vp.js} +2 -2
- package/dist/{cli-tgvpmnwz.js → cli-r99kc9yq.js} +5 -5
- package/dist/{cli-bfc3k1x5.js → cli-rdyw3mct.js} +9 -9
- package/dist/{cli-b80a1100.js → cli-s6vr7r2d.js} +2 -2
- package/dist/{cli-zv4vy2b0.js → cli-s95dknxh.js} +1 -1
- package/dist/{cli-ttaz6c7m.js → cli-saw9a6f6.js} +6 -5
- package/dist/{cli-mz1ezzzh.js → cli-shvfedvm.js} +3 -3
- package/dist/{cli-rdr166ht.js → cli-smvcw9z5.js} +1 -1
- package/dist/{cli-2rwet3r7.js → cli-sv5gb0yb.js} +1 -1
- package/dist/{cli-5ff2sjyt.js → cli-t30yj95q.js} +2 -2
- package/dist/{cli-ptkpaqfy.js → cli-wt645v7q.js} +1 -1
- package/dist/{cli-f3nx1h8z.js → cli-wxbn3yfx.js} +2 -2
- package/dist/{cli-wyrr38xm.js → cli-x5mq1fyq.js} +1 -1
- package/dist/{cli-ccn0eybf.js → cli-xbzvet96.js} +6 -6
- package/dist/{cli-4mkvwgzr.js → cli-xf234ws8.js} +1 -1
- package/dist/{cli-nme7wery.js → cli-y2x52gs2.js} +46 -13
- package/dist/{cli-ffbrkh1r.js → cli-y8n5k515.js} +46 -38
- package/dist/{cli-ecshf504.js → cli-z4wd2ftv.js} +7 -7
- package/dist/{cli-dsgj3e7a.js → cli-zfg9enh9.js} +2 -2
- package/dist/{cli-yxqag76b.js → cli-zw88zjba.js} +1 -1
- package/dist/cli.js +20 -20
- package/dist/{codex-adapter-pp2gq8gr.js → codex-adapter-ttygw382.js} +6 -6
- package/dist/{codex-hook-qwzccd64.js → codex-hook-x7nejyrr.js} +7 -4
- package/dist/{codex-login-35p4sk85.js → codex-login-m819c41r.js} +1 -1
- package/dist/{codex-session-runner-0vzn09t8.js → codex-session-runner-60b58vv3.js} +7 -7
- package/dist/{commands-psqhkttb.js → commands-edmdwa4x.js} +2 -2
- package/dist/{controller-t20vz2k8.js → controller-m263fg43.js} +4 -4
- package/dist/{controllers-connect-gkxmqw9d.js → controllers-connect-5fym8sw1.js} +23 -23
- package/dist/{cursor-adapter-3v542qe5.js → cursor-adapter-cz6nm6mj.js} +3 -3
- package/dist/{db-nc1rd869.js → db-2y0mgstc.js} +3 -3
- package/dist/{db-2xbyenjr.js → db-nn0hcmx5.js} +6 -2
- package/dist/{devin-adapter-7egzmt0k.js → devin-adapter-zgqadvnm.js} +1 -1
- package/dist/{dispatcher-ewceb8ts.js → dispatcher-0a9wwjcx.js} +20 -20
- package/dist/{docker-njavd3fb.js → docker-fkgtr75t.js} +2 -2
- package/dist/{dsh-adapter-75xwh78t.js → dsh-adapter-3n3net33.js} +3 -3
- package/dist/{e2b-5r6a5jeb.js → e2b-7am6tmq6.js} +2 -2
- package/dist/{e2b-pw1nvtmh.js → e2b-thdcxtjd.js} +2 -2
- package/dist/{easter-egg-3d-xsc47jwf.js → easter-egg-3d-5cgynaja.js} +1 -1
- package/dist/{event-bus-101fenkh.js → event-bus-9vpk8gmq.js} +1 -1
- package/dist/{execute-gzmw1mnw.js → execute-t4e6m3rw.js} +1 -1
- package/dist/{external-channel-a5dsmxn4.js → external-channel-zhvt95n3.js} +2 -2
- package/dist/{grok-adapter-vj88xr23.js → grok-adapter-qnr1hp2y.js} +10 -10
- package/dist/handlers-dkcarkd0.js +39 -0
- package/dist/{heartbeat-t2m9r3wa.js → heartbeat-gz97r7ac.js} +23 -23
- package/dist/{hook-xa677f8r.js → hook-1mmdgjqs.js} +16 -9
- package/dist/{hook-8femx1bg.js → hook-x8rthca4.js} +6 -6
- package/dist/{http-xpmmq028.js → http-r8f85xr9.js} +274 -160
- package/dist/index-5jecgp3n.js +41 -0
- package/dist/index-aex0eba9.js +40 -0
- package/dist/{index-syztqdt6.js → index-g6tbb6ve.js} +1 -1
- package/dist/{index-cdzyfrsp.js → index-smxyk04s.js} +1 -1
- package/dist/{index-dg2tmj99.js → index-vzvfqzfj.js} +20 -20
- package/dist/{index-s7ckdajq.js → index-y7rbcrc1.js} +10 -10
- package/dist/{keepalive-3nr4st3r.js → keepalive-64c0f34c.js} +4 -4
- package/dist/lead-b1da0f97.js +78 -0
- package/dist/{maintenance-verwpe2c.js → maintenance-mnxpar12.js} +1 -1
- package/dist/{oauth-refresh-sweep-9q2t0y3q.js → oauth-refresh-sweep-36hs2v4h.js} +3 -3
- package/dist/{onboard-aytqedmq.js → onboard-xes8de61.js} +3 -3
- package/dist/{opencode-adapter-f4hryjny.js → opencode-adapter-3s7ax02e.js} +7 -7
- package/dist/{otel-impl-hckw4wt1.js → otel-impl-fzc57kcq.js} +2 -2
- package/dist/{pi-mono-adapter-hxby0ce1.js → pi-mono-adapter-ytp7gz8b.js} +22 -11
- package/dist/{pricing-refresh-5nvme3sm.js → pricing-refresh-1nek2w7b.js} +3 -3
- package/dist/{rbac-roles-vbpy21mg.js → rbac-roles-sqefb5hw.js} +2 -2
- package/dist/{rbac-roles-pd8c26m1.js → rbac-roles-ttyfaep2.js} +1 -1
- package/dist/{render-v2-7nqgvk2q.js → render-v2-vb527jwn.js} +3 -3
- package/dist/{resume-b6djcj3c.js → resume-jcdzg1bn.js} +10 -8
- package/dist/{runtime-txrxc9za.js → runtime-xe3aqy4x.js} +1 -1
- package/dist/{session-access-fc3f9y12.js → session-access-zsp4wsp0.js} +4 -4
- package/dist/{setup-n39szm6b.js → setup-1nb2zqd3.js} +1 -1
- package/dist/{virtual-modules-wyp2k6z3.js → virtual-modules-4r3zkc20.js} +2 -2
- package/dist/{work-objects-jem2fre0.js → work-objects-61w08fwr.js} +23 -23
- package/dist/worker-c1e68hpa.js +78 -0
- package/dist/{x-8ewt8gxn.js → x-y45mthwn.js} +2 -2
- package/openapi.json +491 -52
- package/package.json +3 -3
- package/src/apps/action-runner.ts +146 -0
- package/src/apps/catalog.generated.json +3 -2
- package/src/apps/definition.ts +152 -4
- package/src/apps/row-store.ts +23 -9
- package/src/apps/schema-migrate.ts +14 -6
- package/src/apps/script-types.ts +2 -1
- package/src/apps/sync.ts +20 -19
- package/src/be/db/tasks/read.ts +112 -0
- package/src/be/db.ts +16 -4
- package/src/be/fleet-benchmark-stats.ts +10 -5
- package/src/be/models-catalog.ts +4 -0
- package/src/be/onboarding.ts +6 -0
- package/src/be/scripts/typecheck.ts +13 -0
- package/src/be/swarm-config-guard.ts +25 -1
- package/src/be/telemetry-enable.ts +1 -1
- package/src/commands/provider-credentials.ts +12 -2
- package/src/commands/runner.ts +3 -0
- package/src/heartbeat/heartbeat.ts +2 -2
- package/src/hooks/codex-hook.ts +6 -2
- package/src/hooks/hook.ts +7 -0
- package/src/hooks/pr-body-guard.ts +38 -11
- package/src/hooks/pr-room-guard.ts +88 -0
- package/src/http/agents.ts +1 -0
- package/src/http/apps.ts +99 -183
- package/src/http/fleet-benchmark.ts +79 -30
- package/src/http/global-config.ts +7 -0
- package/src/http/ranking.ts +24 -40
- package/src/http/status.ts +49 -43
- package/src/http/tasks.ts +49 -1
- package/src/http/telemetry-ui.ts +1 -1
- package/src/http/used-by.ts +55 -19
- package/src/http/users.ts +2 -2
- package/src/providers/acp-targets.ts +1 -1
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/pi-mono-adapter.ts +15 -0
- package/src/providers/reasoning-effort.ts +2 -1
- package/src/providers/types.ts +2 -0
- package/src/ranking/telemetry-ranking.ts +5 -33
- package/src/scripts-runtime/sdk-allowlist.ts +7 -0
- package/src/scripts-runtime/types/stdlib.d.ts +31 -0
- package/src/scripts-runtime/types/swarm-sdk.d.ts +31 -0
- package/src/server.ts +4 -0
- package/src/telemetry-context.ts +19 -1
- package/src/telemetry-contract/EVENTS.md +42 -8
- package/src/telemetry-contract/SOURCE.json +6 -5
- package/src/telemetry-contract/catalog.json +225 -5
- package/src/telemetry-contract/ranking/fixtures/valid/no-claim.json +10 -0
- package/src/telemetry-contract/ranking/listing.v1.schema.json +2 -2
- package/src/telemetry-contract/types.gen.ts +225 -27
- package/src/telemetry-identity.ts +47 -9
- package/src/telemetry-snapshot.ts +9 -1
- package/src/telemetry-ui-events.ts +9 -2
- package/src/telemetry.ts +29 -6
- package/src/tests/app-action-run-tool.test.ts +178 -0
- package/src/tests/app-row-tools.test.ts +385 -0
- package/src/tests/apps-json-column.test.ts +611 -0
- package/src/tests/apps-script-types.test.ts +2 -0
- package/src/tests/apps-sync-engine.test.ts +42 -0
- package/src/tests/check-pr-body.test.ts +0 -23
- package/src/tests/credential-check.test.ts +38 -0
- package/src/tests/db-task-read-contract.test.ts +4 -0
- package/src/tests/db-task-write-contract.test.ts +2 -0
- package/src/tests/docs-index-footprint.test.js +2 -2
- package/src/tests/fleet-benchmark.test.ts +122 -2
- package/src/tests/http-users.test.ts +62 -1
- package/src/tests/model-catalog-table.test.ts +63 -0
- package/src/tests/model-profiles-api.test.ts +19 -7
- package/src/tests/models-catalog.test.ts +50 -0
- package/src/tests/onboarding.test.ts +21 -0
- package/src/tests/org-website.test.ts +62 -0
- package/src/tests/pi-mono-adapter.test.ts +23 -0
- package/src/tests/pr-body-leaks.test.ts +4 -0
- package/src/tests/pr-room-guard.test.ts +242 -0
- package/src/tests/ranking-listing.test.ts +8 -23
- package/src/tests/ranking-route.test.ts +49 -47
- package/src/tests/reasoning-effort.test.ts +39 -3
- package/src/tests/runner-harness-telemetry-env.test.ts +62 -1
- package/src/tests/status.test.ts +158 -9
- package/src/tests/swarm-tool-result-gate.test.ts +2 -4
- package/src/tests/task-lineage.test.ts +180 -0
- package/src/tests/telemetry-context.test.ts +128 -2
- package/src/tests/telemetry-init.test.ts +62 -5
- package/src/tests/telemetry-ui-route.test.ts +123 -0
- package/src/tests/tool-annotations.test.ts +3 -2
- package/src/tests/used-by-route.test.ts +144 -10
- package/src/tests/user-token-rest-auth.test.ts +38 -0
- package/src/tests/workflow-agent-task-retry.test.ts +130 -4
- package/src/tests/workflow-wait-recovery.test.ts +116 -4
- package/src/tools/app-action-run.ts +63 -0
- package/src/tools/app-rows.ts +239 -0
- package/src/tools/model-catalog/index.ts +1 -1
- package/src/tools/tool-config.ts +8 -0
- package/src/tools/utils.ts +1 -1
- package/src/tools/workflows/retry-workflow-run.ts +1 -1
- package/src/types.ts +17 -0
- package/src/utils/company-profile.ts +24 -0
- package/src/utils/org-website.ts +58 -21
- package/src/workflows/recovery.ts +10 -22
- package/src/workflows/resume.ts +16 -0
- package/src/workflows/task-step-routing.ts +47 -7
- package/templates/skills/apps/SKILL.md +44 -4
- package/templates/skills/apps/content.md +44 -4
- package/dist/handlers-zbs90bny.js +0 -39
- package/dist/index-8pwc1jc8.js +0 -40
- package/dist/index-nxa6me0q.js +0 -41
- package/dist/lead-td8h2sfn.js +0 -78
- package/dist/worker-wr6xgfr2.js +0 -78
- package/src/tests/check-ranking-entry.test.ts +0 -146
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ampBillsCacheWrites,
|
|
3
3
|
resolveAmpModel
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-sv5gb0yb.js";
|
|
5
5
|
import {
|
|
6
6
|
CONTEXT_FORMULA,
|
|
7
7
|
computeContextUsedUnified,
|
|
8
8
|
clampContextPercent
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-a5ebc95n.js";
|
|
10
10
|
import {
|
|
11
11
|
swarmRuntimeInstanceId
|
|
12
12
|
} from "./cli-7a91w22y.js";
|
|
@@ -23,12 +23,12 @@ import {
|
|
|
23
23
|
} from "./cli-jc1g9ndz.js";
|
|
24
24
|
import {
|
|
25
25
|
applyReasoningEffort
|
|
26
|
-
} from "./cli-
|
|
26
|
+
} from "./cli-bn0rewsy.js";
|
|
27
27
|
import {
|
|
28
28
|
scrubSecrets,
|
|
29
29
|
registerVolatileSecret,
|
|
30
30
|
init_secret_scrubber
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-xf234ws8.js";
|
|
32
32
|
|
|
33
33
|
// src/providers/amp-adapter.ts
|
|
34
34
|
import { existsSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
@@ -36,7 +36,7 @@ import { mkdir, mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
|
36
36
|
import { tmpdir } from "node:os";
|
|
37
37
|
import { join } from "node:path";
|
|
38
38
|
init_secret_scrubber();
|
|
39
|
-
var AMP_PACKAGE = "@ampcode/cli@0.0.
|
|
39
|
+
var AMP_PACKAGE = "@ampcode/cli@0.0.1792411243-gb8cffc";
|
|
40
40
|
var AMP_MCP_SERVER_NAME = "agent-swarm";
|
|
41
41
|
var AMP_PLUGIN_MODE_KEY = "agent-swarm";
|
|
42
42
|
var AMP_LIVE_TEST_TIMEOUT_MS = 5000;
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
CONTEXT_FORMULA,
|
|
9
9
|
computeContextUsedUnified,
|
|
10
10
|
clampContextPercent
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-a5ebc95n.js";
|
|
12
12
|
import {
|
|
13
13
|
SessionErrorTracker
|
|
14
14
|
} from "./cli-gx4rm0qx.js";
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
credentialsToAuthJson,
|
|
17
17
|
CodexOAuthRefreshError,
|
|
18
18
|
getValidCodexOAuth
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-ejs3m1sx.js";
|
|
20
20
|
import {
|
|
21
21
|
summarizeSession
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-pnp2j5zg.js";
|
|
23
23
|
import {
|
|
24
24
|
swarmRuntimeInstanceId
|
|
25
25
|
} from "./cli-7a91w22y.js";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
} from "./cli-vbhgkw9h.js";
|
|
43
43
|
import {
|
|
44
44
|
applyReasoningEffort
|
|
45
|
-
} from "./cli-
|
|
45
|
+
} from "./cli-bn0rewsy.js";
|
|
46
46
|
import {
|
|
47
47
|
createSwarmEventHandler
|
|
48
48
|
} from "./cli-4zsenjhy.js";
|
|
@@ -52,15 +52,15 @@ import {
|
|
|
52
52
|
import {
|
|
53
53
|
DEFAULT_MODEL_TIER_MAP,
|
|
54
54
|
init_types
|
|
55
|
-
} from "./cli-
|
|
55
|
+
} from "./cli-fpmsqq59.js";
|
|
56
56
|
import {
|
|
57
57
|
runtimeCatalogModel,
|
|
58
58
|
init_runtime_model_catalog
|
|
59
|
-
} from "./cli-
|
|
59
|
+
} from "./cli-6x9ma5w5.js";
|
|
60
60
|
import {
|
|
61
61
|
init_package,
|
|
62
62
|
package_default
|
|
63
|
-
} from "./cli-
|
|
63
|
+
} from "./cli-shvfedvm.js";
|
|
64
64
|
import {
|
|
65
65
|
isEnvFlagEnabled,
|
|
66
66
|
init_env_flag
|
|
@@ -72,10 +72,10 @@ import {
|
|
|
72
72
|
import {
|
|
73
73
|
scrubSecrets,
|
|
74
74
|
init_secret_scrubber
|
|
75
|
-
} from "./cli-
|
|
75
|
+
} from "./cli-xf234ws8.js";
|
|
76
76
|
import {
|
|
77
77
|
init_src2
|
|
78
|
-
} from "./cli-
|
|
78
|
+
} from "./cli-nwyw3zhg.js";
|
|
79
79
|
|
|
80
80
|
// src/providers/codex-oauth/home.ts
|
|
81
81
|
import os from "node:os";
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
acquireOAuthRefreshLock,
|
|
10
10
|
releaseOAuthRefreshLock,
|
|
11
11
|
init_oauth
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-d3qqdy4c.js";
|
|
13
13
|
import {
|
|
14
14
|
scrubSecrets,
|
|
15
15
|
registerVolatileSecret,
|
|
16
16
|
init_secret_scrubber
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-xf234ws8.js";
|
|
18
18
|
|
|
19
19
|
// node_modules/oauth4webapi/build/index.js
|
|
20
20
|
var USER_AGENT;
|
|
@@ -4,25 +4,25 @@ import {
|
|
|
4
4
|
getActivePricingRow2,
|
|
5
5
|
insertPricingRow2,
|
|
6
6
|
init_db3
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-d3qqdy4c.js";
|
|
8
8
|
import {
|
|
9
9
|
loadModelsDevCache,
|
|
10
10
|
buildModelsDevSeedRows
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-h93c9vb3.js";
|
|
12
12
|
import {
|
|
13
13
|
setRuntimeModelCatalog,
|
|
14
14
|
init_runtime_model_catalog
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-6x9ma5w5.js";
|
|
16
16
|
import {
|
|
17
17
|
scrubSecrets,
|
|
18
18
|
init_secret_scrubber
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-xf234ws8.js";
|
|
20
20
|
import {
|
|
21
21
|
openAICompatibleProviderIds,
|
|
22
22
|
withAgentChatRegistrySections,
|
|
23
23
|
registryCatalogSections,
|
|
24
24
|
init_src2
|
|
25
|
-
} from "./cli-
|
|
25
|
+
} from "./cli-nwyw3zhg.js";
|
|
26
26
|
|
|
27
27
|
// src/be/pricing-refresh.ts
|
|
28
28
|
init_secret_scrubber();
|
|
@@ -41,6 +41,7 @@ var CATALOG_PROVIDER_IDS = [
|
|
|
41
41
|
"openai",
|
|
42
42
|
"amazon-bedrock",
|
|
43
43
|
"opencode",
|
|
44
|
+
"opencode-go",
|
|
44
45
|
...openAICompatibleProviderIds()
|
|
45
46
|
];
|
|
46
47
|
var PINNED_MODELSDEV_ENTRIES = [
|
|
@@ -7,7 +7,7 @@ var package_default;
|
|
|
7
7
|
var init_package = __esm(() => {
|
|
8
8
|
package_default = {
|
|
9
9
|
name: "@desplega.ai/agent-swarm",
|
|
10
|
-
version: "2.4.
|
|
10
|
+
version: "2.4.2",
|
|
11
11
|
description: "agent-swarm.dev — an open-source operating system for AI work: a lead agent breaks goals into tasks, routes them to specialized workers such as Claude Code or Codex, runs each worker in an isolated container, and preserves shared memory, tools, schedules, and review gates so delegated work compounds across sessions.",
|
|
12
12
|
keywords: [
|
|
13
13
|
"agent-swarm.dev",
|
|
@@ -207,7 +207,7 @@ var init_package = __esm(() => {
|
|
|
207
207
|
dependencies: {
|
|
208
208
|
"@agentclientprotocol/sdk": "1.9.0",
|
|
209
209
|
"@ai-sdk/openai": "^3.0.41",
|
|
210
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.
|
|
210
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.303",
|
|
211
211
|
"@anthropic-ai/sdk": "^0.135.0",
|
|
212
212
|
"@asteasolutions/zod-to-openapi": "^8.0.0",
|
|
213
213
|
"@aws-sdk/client-bedrock": "3.1048.0",
|
|
@@ -216,7 +216,7 @@ var init_package = __esm(() => {
|
|
|
216
216
|
"@chat-adapter/teams": "4.41.1",
|
|
217
217
|
"@chat-adapter/telegram": "4.41.1",
|
|
218
218
|
"@cursor/sdk": "1.0.38",
|
|
219
|
-
"@desplega.ai/agent-fs-just-bash": "0.18.
|
|
219
|
+
"@desplega.ai/agent-fs-just-bash": "0.18.5",
|
|
220
220
|
"@desplega.ai/business-use": "^0.4.2",
|
|
221
221
|
"@earendil-works/pi-agent-core": "^1.3.0",
|
|
222
222
|
"@earendil-works/pi-ai": "^1.3.0",
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
getResolvedConfig2,
|
|
7
7
|
getAllUsers2,
|
|
8
8
|
init_db3
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-d3qqdy4c.js";
|
|
10
10
|
import {
|
|
11
11
|
scrubSecrets,
|
|
12
12
|
init_secret_scrubber
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-xf234ws8.js";
|
|
14
14
|
|
|
15
15
|
// src/be/seed/agent-fs-provision.ts
|
|
16
16
|
init_secret_scrubber();
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
resolveConfigValueOrThrow,
|
|
9
9
|
resolveHeadersOrThrow,
|
|
10
10
|
FileAuthStorageBackend
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-d2mb5s8a.js";
|
|
12
12
|
import {
|
|
13
13
|
oauthSuccessHtml,
|
|
14
14
|
oauthErrorHtml
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-8nyhf7za.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
18
|
} from "./cli-242037k3.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
CONTEXT_FORMULA,
|
|
3
3
|
getContextWindowSize,
|
|
4
4
|
clampContextPercent
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-a5ebc95n.js";
|
|
6
6
|
import {
|
|
7
7
|
swarmRuntimeInstanceId
|
|
8
8
|
} from "./cli-7a91w22y.js";
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
autoIndexMemoryFile,
|
|
24
24
|
fetchConcurrentContext,
|
|
25
25
|
summarizeTranscript
|
|
26
|
-
} from "./cli-
|
|
26
|
+
} from "./cli-zfg9enh9.js";
|
|
27
27
|
import {
|
|
28
28
|
applyReasoningEffort
|
|
29
|
-
} from "./cli-
|
|
29
|
+
} from "./cli-bn0rewsy.js";
|
|
30
30
|
import {
|
|
31
31
|
fetchInstalledMcpServers
|
|
32
32
|
} from "./cli-bst1vp7e.js";
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
openAICompatibleKeyLabels,
|
|
36
36
|
validateOpencodeCredentials,
|
|
37
37
|
init_credentials
|
|
38
|
-
} from "./cli-
|
|
38
|
+
} from "./cli-zw88zjba.js";
|
|
39
39
|
import {
|
|
40
40
|
DEFAULT_OPENROUTER_BASE_URL,
|
|
41
41
|
getOpenRouterBaseUrl,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
scrubSecrets,
|
|
51
51
|
registerVolatileSecret,
|
|
52
52
|
init_secret_scrubber
|
|
53
|
-
} from "./cli-
|
|
53
|
+
} from "./cli-xf234ws8.js";
|
|
54
54
|
import {
|
|
55
55
|
openAICompatibleProviders,
|
|
56
56
|
providerKeyVars,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
openAICompatibleProvider,
|
|
62
62
|
providerForKeyVar,
|
|
63
63
|
init_src2
|
|
64
|
-
} from "./cli-
|
|
64
|
+
} from "./cli-nwyw3zhg.js";
|
|
65
65
|
|
|
66
66
|
// src/providers/opencode-adapter.ts
|
|
67
67
|
init_src2();
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
getPendingWaitsByEvent2,
|
|
40
40
|
resolveWaitState2,
|
|
41
41
|
init_db3
|
|
42
|
-
} from "./cli-
|
|
42
|
+
} from "./cli-d3qqdy4c.js";
|
|
43
43
|
import {
|
|
44
44
|
BaseExecutor,
|
|
45
45
|
postApprovalCancellationUpdates,
|
|
@@ -50,15 +50,16 @@ import {
|
|
|
50
50
|
findEntryNodes,
|
|
51
51
|
resolveValidationPort,
|
|
52
52
|
getSuccessors
|
|
53
|
-
} from "./cli-
|
|
53
|
+
} from "./cli-02qm7src.js";
|
|
54
54
|
import {
|
|
55
55
|
workflowEventBus2,
|
|
56
56
|
init_event_bus
|
|
57
|
-
} from "./cli-
|
|
57
|
+
} from "./cli-wt645v7q.js";
|
|
58
58
|
import {
|
|
59
59
|
RetryPolicySchema,
|
|
60
|
+
SUPERSEDED_WORKFLOW_TASK_REASON,
|
|
60
61
|
init_types
|
|
61
|
-
} from "./cli-
|
|
62
|
+
} from "./cli-fpmsqq59.js";
|
|
62
63
|
import {
|
|
63
64
|
getSlackConfiguration,
|
|
64
65
|
isSlackConfigured,
|
|
@@ -94,7 +95,7 @@ import {
|
|
|
94
95
|
isSensitiveKey,
|
|
95
96
|
scrubSecrets,
|
|
96
97
|
init_secret_scrubber
|
|
97
|
-
} from "./cli-
|
|
98
|
+
} from "./cli-xf234ws8.js";
|
|
98
99
|
|
|
99
100
|
// src/automation-preflight-alert.ts
|
|
100
101
|
init_constants2();
|
|
@@ -106,7 +107,7 @@ async function notifyAutomationPreflightFailure(preflight) {
|
|
|
106
107
|
return;
|
|
107
108
|
}
|
|
108
109
|
try {
|
|
109
|
-
const { getSlackApp } = await import("./app-
|
|
110
|
+
const { getSlackApp } = await import("./app-9h14qvr6.js");
|
|
110
111
|
const app = getSlackApp();
|
|
111
112
|
if (!app) {
|
|
112
113
|
console.warn("[Automation Preflight] Slack not available, cannot send notification");
|
|
@@ -1434,7 +1435,7 @@ async function runClaimedStep(def, runId, ctx, node, registry, existingStep, ste
|
|
|
1434
1435
|
if ("async" in result && result.async) {
|
|
1435
1436
|
const waiting = await checkpointStepWaiting(runId, stepId, ctx);
|
|
1436
1437
|
if (waiting && result.waitFor === "workflow.child.finished") {
|
|
1437
|
-
const { resumeFromChildRun } = await import("./resume-
|
|
1438
|
+
const { resumeFromChildRun } = await import("./resume-jcdzg1bn.js");
|
|
1438
1439
|
await resumeFromChildRun(stepId, registry);
|
|
1439
1440
|
}
|
|
1440
1441
|
return { outcome: waiting ? "waiting" : "completed", successors: [] };
|
|
@@ -2058,19 +2059,36 @@ async function checkpointPortStepAndResolveSuccessors(def, runId, stepId, nodeId
|
|
|
2058
2059
|
const current = await getWorkflowRunStep2(stepId);
|
|
2059
2060
|
if (!current || current.status !== "waiting")
|
|
2060
2061
|
return { claimed: false, successors: [] };
|
|
2062
|
+
const run = await getWorkflowRun2(runId);
|
|
2063
|
+
if (!run || run.status !== "waiting" && run.status !== "running") {
|
|
2064
|
+
return { claimed: false, successors: [] };
|
|
2065
|
+
}
|
|
2061
2066
|
await checkpointStep(runId, stepId, nodeId, { output, nextPort }, ctx);
|
|
2062
2067
|
await updateWorkflowRun2(runId, { status: "running" });
|
|
2063
2068
|
return { claimed: true, successors: getSuccessors(def, nodeId, nextPort) };
|
|
2064
2069
|
});
|
|
2065
2070
|
}
|
|
2071
|
+
var SUPERSEDE_RETRY_POLICY = {
|
|
2072
|
+
maxRetries: 1,
|
|
2073
|
+
strategy: "static",
|
|
2074
|
+
baseDelayMs: 30000,
|
|
2075
|
+
maxDelayMs: 30000
|
|
2076
|
+
};
|
|
2066
2077
|
async function scheduleTaskStepRetry(def, runId, step, taskId, reason) {
|
|
2067
2078
|
const node = def.nodes.find((n) => n.id === step.nodeId);
|
|
2068
|
-
if (!node || node.type !== "agent-task"
|
|
2079
|
+
if (!node || node.type !== "agent-task")
|
|
2069
2080
|
return "not-eligible";
|
|
2070
|
-
|
|
2071
|
-
if (
|
|
2072
|
-
|
|
2073
|
-
|
|
2081
|
+
let policy;
|
|
2082
|
+
if (node.retry) {
|
|
2083
|
+
const parsed = RetryPolicySchema.safeParse(node.retry);
|
|
2084
|
+
if (!parsed.success)
|
|
2085
|
+
return "not-eligible";
|
|
2086
|
+
policy = parsed.data;
|
|
2087
|
+
} else {
|
|
2088
|
+
if (!await isSupersedeCut(taskId, reason))
|
|
2089
|
+
return "not-eligible";
|
|
2090
|
+
policy = SUPERSEDE_RETRY_POLICY;
|
|
2091
|
+
}
|
|
2074
2092
|
return await getDbClient2().transaction(async () => {
|
|
2075
2093
|
const current = await getWorkflowRunStep2(step.id);
|
|
2076
2094
|
if (!current || current.status !== "waiting")
|
|
@@ -2084,6 +2102,12 @@ async function scheduleTaskStepRetry(def, runId, step, taskId, reason) {
|
|
|
2084
2102
|
return "scheduled";
|
|
2085
2103
|
});
|
|
2086
2104
|
}
|
|
2105
|
+
async function isSupersedeCut(taskId, reason) {
|
|
2106
|
+
if (reason === SUPERSEDED_WORKFLOW_TASK_REASON)
|
|
2107
|
+
return true;
|
|
2108
|
+
const task = await getTaskById2(taskId);
|
|
2109
|
+
return task?.failureReason === SUPERSEDED_WORKFLOW_TASK_REASON;
|
|
2110
|
+
}
|
|
2087
2111
|
var UNCLAIMED = {
|
|
2088
2112
|
claimed: false,
|
|
2089
2113
|
foreachChild: false,
|
|
@@ -2440,6 +2464,15 @@ async function resumeWaitState2(waitId, status, payload, registry) {
|
|
|
2440
2464
|
const waitRow = result.row;
|
|
2441
2465
|
await failClosedOnUnreadableReplay(waitRow.workflowRunId, waitRow.workflowRunStepId, () => resumeClaimedWait(waitRow, status, cappedPayload, registry));
|
|
2442
2466
|
}
|
|
2467
|
+
async function recoverResolvedWaitState2(waitId, registry) {
|
|
2468
|
+
const waitRow = await getWaitStateById2(waitId);
|
|
2469
|
+
if (!waitRow)
|
|
2470
|
+
return;
|
|
2471
|
+
const status = waitRow.status;
|
|
2472
|
+
if (status !== "fired" && status !== "timeout")
|
|
2473
|
+
return;
|
|
2474
|
+
await failClosedOnUnreadableReplay(waitRow.workflowRunId, waitRow.workflowRunStepId, () => resumeClaimedWait(waitRow, status, waitRow.firedPayload, registry));
|
|
2475
|
+
}
|
|
2443
2476
|
async function resumeClaimedWait(waitRow, status, cappedPayload, registry) {
|
|
2444
2477
|
const run = await getWorkflowRun2(waitRow.workflowRunId);
|
|
2445
2478
|
if (!run || run.status !== "waiting" && run.status !== "running")
|
|
@@ -2618,4 +2651,4 @@ function isPayloadInRun(payload, runId) {
|
|
|
2618
2651
|
const rec = payload;
|
|
2619
2652
|
return rec._runId === runId || rec.workflowRunId === runId;
|
|
2620
2653
|
}
|
|
2621
|
-
export { notifyAutomationPreflightFailure, automationIntegrationFixUrl, isNeedsSetupFailure, preflightAutomation, renderAutomationTokens, getAutomationSetupStates, schedulePreflightInput, listEnabledAutomationPreflightInputs, recordSchedulePreflightFailure, checkpointStep, checkpointStepFailure, checkpointStepWaiting, FOREACH_TERMINAL_STEP_STATUSES, parseSyntheticNodeId, buildForeachAggregate, loadCompletedStepRouting, resolveInputValue, getSecretInputKeys, validateJsonSchema, findJsonSchemaShapeErrors, getMaxWorkflowStepsPerRun, workflowSaveWarnings, withSaveWarnings, runStepValidation, shapeApprovalResolution, FAILED_TASK_OUTPUT_PREFIX, SubWorkflowExecutor, WaitExecutor, failStepAndRunIfWaiting, checkpointPortStepAndResolveSuccessors, scheduleTaskStepRetry, completeTaskStepAndResolveSuccessors, setupWorkflowResumeListener2, finalizeOrWait2, retryFailedRun2, cancelWorkflowRunRows2, cancelWorkflowRun2, resumeWaitState2, resumeFromChildRun2, initWaitBusSubscriptions2, subscribeWaitToBus2, TriggerSchemaError, startWorkflowExecution2, failRunOnUnreadableReplay, isWorkflowRunActive, holdWorkflowRun, walkGraph, rehydrateCompletedStepOutputs, findReadyNodes, buildNodeInterpolationCtx, interpolateNodeConfig, scriptBodyInterpolationError };
|
|
2654
|
+
export { notifyAutomationPreflightFailure, automationIntegrationFixUrl, isNeedsSetupFailure, preflightAutomation, renderAutomationTokens, getAutomationSetupStates, schedulePreflightInput, listEnabledAutomationPreflightInputs, recordSchedulePreflightFailure, checkpointStep, checkpointStepFailure, checkpointStepWaiting, FOREACH_TERMINAL_STEP_STATUSES, parseSyntheticNodeId, buildForeachAggregate, loadCompletedStepRouting, resolveInputValue, getSecretInputKeys, validateJsonSchema, findJsonSchemaShapeErrors, getMaxWorkflowStepsPerRun, workflowSaveWarnings, withSaveWarnings, runStepValidation, shapeApprovalResolution, FAILED_TASK_OUTPUT_PREFIX, SubWorkflowExecutor, WaitExecutor, failStepAndRunIfWaiting, checkpointPortStepAndResolveSuccessors, scheduleTaskStepRetry, completeTaskStepAndResolveSuccessors, setupWorkflowResumeListener2, finalizeOrWait2, retryFailedRun2, cancelWorkflowRunRows2, cancelWorkflowRun2, resumeWaitState2, recoverResolvedWaitState2, resumeFromChildRun2, initWaitBusSubscriptions2, subscribeWaitToBus2, TriggerSchemaError, startWorkflowExecution2, failRunOnUnreadableReplay, isWorkflowRunActive, holdWorkflowRun, walkGraph, rehydrateCompletedStepOutputs, findReadyNodes, buildNodeInterpolationCtx, interpolateNodeConfig, scriptBodyInterpolationError };
|