@desplega.ai/agent-swarm 2.4.2 → 2.4.4
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/{acp-adapter-dv7hmx4r.js → acp-adapter-thq04adh.js} +4 -5
- package/dist/{actions-51nc1gny.js → actions-j6ywh6x5.js} +18 -18
- package/dist/{amp-adapter-abp5tdx8.js → amp-adapter-k8b5xmj8.js} +3 -3
- package/dist/{app-9h14qvr6.js → app-rb7vc02s.js} +3 -3
- package/dist/{assistant-wv1gz3mt.js → assistant-ftta1zjf.js} +20 -20
- package/dist/{boot-reembed-6yn53ms9.js → boot-reembed-srp6v6af.js} +1 -1
- package/dist/{boot-reembed-7fcka4z5.js → boot-reembed-xns7h5h9.js} +1 -1
- package/dist/{boot-scrub-sweep-pm1580ax.js → boot-scrub-sweep-3qqrh2mz.js} +3 -3
- package/dist/{boot-seeds-g5hfc1x8.js → boot-seeds-9ks8hce7.js} +4 -4
- package/dist/{claude-adapter-gf3kxhf0.js → claude-adapter-k5ksyres.js} +4 -4
- package/dist/{claude-managed-setup-h00hsgtz.js → claude-managed-setup-n5a5eqks.js} +1 -1
- package/dist/{claude-sdk-session-s2k1qd8y.js → claude-sdk-session-2j3j4kwn.js} +9822 -9749
- package/dist/{cli-pkht5hap.js → cli-1d70crsy.js} +2 -2
- package/dist/{cli-r99kc9yq.js → cli-1ephgwnq.js} +3 -3
- package/dist/{cli-7225gwj7.js → cli-1m17dc9d.js} +1 -1
- package/dist/{cli-bcj753sq.js → cli-2v045xyf.js} +3 -3
- package/dist/{cli-h38rjv87.js → cli-2y91wnbh.js} +12 -7
- package/dist/{cli-sv5gb0yb.js → cli-2zqpkvtt.js} +1 -1
- package/dist/{cli-xbzvet96.js → cli-36ckw0wx.js} +5 -4
- package/dist/{cli-8sxqsbbq.js → cli-37yb7307.js} +1 -1
- package/dist/{cli-hyfw2j1e.js → cli-3cgngyd8.js} +11 -11
- package/dist/{cli-a4gvwttf.js → cli-44159k28.js} +2 -2
- package/dist/{cli-7awf1fp8.js → cli-4dg55wsk.js} +3 -3
- package/dist/{cli-mhywgrrz.js → cli-4sydckyj.js} +1 -1
- package/dist/{cli-y2x52gs2.js → cli-51y09c6p.js} +20 -17
- package/dist/{cli-ahtpy9kf.js → cli-55qmbp6z.js} +10 -5
- package/dist/{cli-pw7v69vp.js → cli-625tb7aq.js} +1 -1
- package/dist/{cli-x5mq1fyq.js → cli-74c1wpm0.js} +3 -3
- package/dist/{cli-b1dfr1m4.js → cli-7a6p4e65.js} +1 -1
- package/dist/{cli-hqhzg1qq.js → cli-82d3nkc3.js} +1 -1
- package/dist/{cli-nmqdc2t3.js → cli-9fhkkpj5.js} +78 -12
- package/dist/{cli-h93c9vb3.js → cli-amyhm3gj.js} +1 -1
- package/dist/{cli-0qvtffe9.js → cli-b8k7epj1.js} +6 -6
- package/dist/{cli-1pa3rz69.js → cli-ba8ne1es.js} +6 -1
- package/dist/{cli-g0hgtz4p.js → cli-bnz0r3kc.js} +3 -3
- package/dist/{cli-0hyhdkdk.js → cli-cebvbc9t.js} +4 -1
- package/dist/{cli-efaqv1c7.js → cli-cynvc9fj.js} +35 -7
- package/dist/{cli-8zwe9mpk.js → cli-dqb4n629.js} +10 -10
- package/dist/{cli-7a91w22y.js → cli-e8xyjvfc.js} +1 -1
- package/dist/{cli-s6vr7r2d.js → cli-esxerzg7.js} +1 -1
- package/dist/{cli-w9g4sz81.js → cli-gf2850q7.js} +1 -1
- package/dist/{cli-10hhg0km.js → cli-gqvh8d8a.js} +7 -7
- package/dist/{cli-t30yj95q.js → cli-hj3debgw.js} +1 -1
- package/dist/{cli-fpmsqq59.js → cli-nc35pxb7.js} +3 -3
- package/dist/{cli-d3qqdy4c.js → cli-p20r8w42.js} +16 -14
- package/dist/{cli-shvfedvm.js → cli-pccfmtb5.js} +5 -5
- package/dist/{cli-02qm7src.js → cli-q6r7t299.js} +1037 -299
- package/dist/{cli-2wag8973.js → cli-qeaq3j6t.js} +1 -1
- package/dist/{cli-nn47d7e8.js → cli-qkhc5aqy.js} +15 -15
- package/dist/{cli-faypxz7q.js → cli-t7cyef5g.js} +4 -4
- package/dist/{cli-z4wd2ftv.js → cli-te6b5wvg.js} +149 -184
- package/dist/{cli-5rk36sjf.js → cli-v3yr2gbg.js} +119 -44
- package/dist/{cli-239yjk27.js → cli-vdm20wej.js} +5 -5
- package/dist/{cli-zfg9enh9.js → cli-vfha21c9.js} +6 -1
- package/dist/{cli-rdyw3mct.js → cli-vq97g1jq.js} +6 -5
- package/dist/{cli-n85dqg6d.js → cli-w6nadkh4.js} +4 -4
- package/dist/{cli-99jez72r.js → cli-w9etnnxk.js} +6 -1
- package/dist/{cli-saw9a6f6.js → cli-xc27fwzg.js} +2 -2
- package/dist/{cli-ftyypbg5.js → cli-xj0re5tm.js} +1 -1
- package/dist/{cli-fyzjmseb.js → cli-zrk6jxv8.js} +1 -1
- package/dist/{cli-y8n5k515.js → cli-zrwpctp4.js} +28 -28
- package/dist/cli.js +44 -19
- package/dist/{codex-adapter-ttygw382.js → codex-adapter-968xwfy7.js} +2 -2
- package/dist/{codex-hook-x7nejyrr.js → codex-hook-e2he7aca.js} +2 -2
- package/dist/{codex-session-runner-60b58vv3.js → codex-session-runner-ht4z99fa.js} +2 -2
- package/dist/{commands-edmdwa4x.js → commands-pcymaeg9.js} +3 -3
- package/dist/{controller-m263fg43.js → controller-fpjyk46r.js} +3 -3
- package/dist/{controllers-connect-5fym8sw1.js → controllers-connect-mwzx1fh6.js} +19 -19
- package/dist/{cursor-adapter-cz6nm6mj.js → cursor-adapter-cp4s2e2f.js} +2 -2
- package/dist/{db-2y0mgstc.js → db-sgd12bt9.js} +3 -3
- package/dist/{db-nn0hcmx5.js → db-xsjg9jqq.js} +2 -2
- package/dist/{dispatcher-0a9wwjcx.js → dispatcher-x0jfw2c9.js} +17 -17
- package/dist/{dsh-adapter-3n3net33.js → dsh-adapter-jrq7ma7h.js} +2 -2
- package/dist/{e2b-thdcxtjd.js → e2b-16d6ch39.js} +1 -1
- package/dist/{e2b-7am6tmq6.js → e2b-zn0b4w5w.js} +1 -1
- package/dist/{external-channel-zhvt95n3.js → external-channel-8njj4h3b.js} +2 -2
- package/dist/{grok-adapter-qnr1hp2y.js → grok-adapter-kkr97v2f.js} +5 -6
- package/dist/handlers-0pvee9nw.js +39 -0
- package/dist/{heartbeat-gz97r7ac.js → heartbeat-wd03zhn0.js} +20 -20
- package/dist/{hook-1mmdgjqs.js → hook-f0vghj42.js} +10 -5
- package/dist/{hook-x8rthca4.js → hook-xzj2ts2p.js} +2 -2
- package/dist/{http-r8f85xr9.js → http-4hwxv62p.js} +261 -123
- package/dist/{index-va3y63es.js → index-6srwvd5b.js} +1 -2
- package/dist/{index-y7rbcrc1.js → index-97q4xn03.js} +20 -11
- package/dist/{index-s98037v0.js → index-cbxkmfc5.js} +1 -2
- package/dist/{index-vzvfqzfj.js → index-gdh8jrdm.js} +17 -17
- package/dist/{index-aex0eba9.js → index-hg0x2cdv.js} +17 -17
- package/dist/index-thm0y6a8.js +41 -0
- package/dist/{index-smxyk04s.js → index-ww2vznkp.js} +1 -1
- package/dist/{keepalive-64c0f34c.js → keepalive-hrh7xnr9.js} +3 -3
- package/dist/{lead-b1da0f97.js → lead-ee8vazz2.js} +30 -31
- package/dist/{maintenance-mnxpar12.js → maintenance-e8wnwnqx.js} +1 -1
- package/dist/{oauth-refresh-sweep-36hs2v4h.js → oauth-refresh-sweep-zm0yj4sj.js} +2 -2
- package/dist/{onboard-xes8de61.js → onboard-dtwcq603.js} +3 -3
- package/dist/{opencode-adapter-3s7ax02e.js → opencode-adapter-x4tqzhkh.js} +3 -3
- package/dist/{otel-impl-fzc57kcq.js → otel-impl-w3fbhpn0.js} +1 -1
- package/dist/{pi-mono-adapter-ytp7gz8b.js → pi-mono-adapter-mcfkn9vf.js} +3 -3
- package/dist/{pricing-refresh-1nek2w7b.js → pricing-refresh-j38dehfs.js} +3 -3
- package/dist/{rbac-roles-ttyfaep2.js → rbac-roles-ae8yttq4.js} +3 -3
- package/dist/{rbac-roles-sqefb5hw.js → rbac-roles-ejxx9b35.js} +2 -2
- package/dist/{render-v2-vb527jwn.js → render-v2-n16n0phe.js} +3 -3
- package/dist/{resume-jcdzg1bn.js → resume-z0fgjc38.js} +5 -5
- package/dist/{session-access-zsp4wsp0.js → session-access-cv3mq6mc.js} +6 -4
- package/dist/{setup-1nb2zqd3.js → setup-mafhj3yt.js} +1 -1
- package/dist/{work-objects-61w08fwr.js → work-objects-8b86mgjp.js} +21 -21
- package/dist/{worker-c1e68hpa.js → worker-16s75hm5.js} +30 -31
- package/dist/worker-token-xf11yyds.js +136 -0
- package/openapi.json +295 -12
- package/package.json +5 -5
- package/src/apps/action-runner.ts +4 -0
- package/src/apps/catalog.generated.json +3 -0
- package/src/apps/page-validator.ts +8 -2
- package/src/be/db.ts +7 -4
- package/src/be/migrations/231_slack_tasks_last_updated_index.sql +5 -0
- package/src/be/migrations/232_agent_session_tokens.sql +41 -0
- package/src/be/seed-scripts/catalog/heartbeat-jev-gate.ts +10 -1
- package/src/be/swarm-config-guard.ts +16 -0
- package/src/be/users.ts +169 -12
- package/src/cli.tsx +24 -0
- package/src/commands/worker-token.ts +164 -0
- package/src/github/handlers.ts +6 -5
- package/src/hooks/hook.ts +2 -1
- package/src/http/apps.ts +43 -5
- package/src/http/codex-oauth-keep-warm.ts +27 -9
- package/src/http/config.ts +5 -3
- package/src/http/core.ts +2 -0
- package/src/http/session-access.ts +51 -2
- package/src/http/sessions.ts +249 -10
- package/src/http/tasks.ts +4 -32
- package/src/providers/acp-adapter.ts +33 -13
- package/src/providers/acp-swarm-events.ts +1 -1
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/codex-adapter.ts +4 -4
- package/src/providers/codex-oauth/storage.ts +1 -1
- package/src/providers/opencode-adapter.ts +2 -2
- package/src/providers/pi-mono-extension.ts +2 -1
- package/src/rbac/legacy-policy.ts +3 -1
- package/src/rbac/permissions.ts +4 -0
- package/src/tests/acp-adapter.test.ts +10 -23
- package/src/tests/acp-fake-agent.ts +36 -0
- package/src/tests/acp-swarm-events.test.ts +1 -1
- package/src/tests/agent-session-tokens.test.ts +452 -0
- package/src/tests/apps-action-parent-task.test.ts +295 -0
- package/src/tests/claude-stop-hook.test.ts +47 -0
- package/src/tests/codex-adapter.test.ts +42 -0
- package/src/tests/codex-oauth-keep-warm.test.ts +85 -1
- package/src/tests/config-session-auth.test.ts +14 -0
- package/src/tests/docs-index-footprint.test.js +2 -2
- package/src/tests/env-flag.test.ts +15 -1
- package/src/tests/github-handlers-cancel-config.test.ts +29 -8
- package/src/tests/github-handlers-inline-comments.test.ts +9 -2
- package/src/tests/grok-adapter.test.ts +3 -3
- package/src/tests/heartbeat-jev-gate.test.ts +23 -0
- package/src/tests/migration-232-agent-session-tokens.test.ts +67 -0
- package/src/tests/rbac-engine.test.ts +1 -0
- package/src/tests/runtime-child-token-cleanup.test.ts +3 -3
- package/src/tests/script-connections.test.ts +4 -0
- package/src/tests/session-route-posture.test.ts +2 -0
- package/src/tests/skill-script-refs.test.ts +63 -0
- package/src/tests/slack-render-v2-query-plans.test.ts +147 -0
- package/src/tests/worker-token-cli.test.ts +76 -0
- package/src/tests/workflow-executors.test.ts +4 -2
- package/src/tests/workflow-system-one-extraction.test.ts +805 -0
- package/src/types.ts +2 -1
- package/src/utils/env-flag.ts +9 -0
- package/src/utils/request-auth-context.ts +2 -1
- package/src/workflows/definition.ts +7 -1
- package/src/workflows/engine.ts +18 -12
- package/src/workflows/executors/index.ts +1 -0
- package/src/workflows/executors/registry.ts +2 -0
- package/src/workflows/executors/system-one-decision.ts +56 -255
- package/src/workflows/executors/system-one-extract-wire.ts +57 -0
- package/src/workflows/executors/system-one-extraction.ts +830 -0
- package/src/workflows/executors/system-one-providers.ts +277 -110
- package/src/workflows/executors/system-one-transport.ts +264 -0
- package/templates/official/lead/HEARTBEAT.md +1 -1
- package/templates/skills/apps/SKILL.md +4 -1
- package/templates/skills/apps/content.md +4 -1
- package/templates/skills/code-quality/content.md +9 -14
- package/templates/skills/heartbeat-runbook/content.md +3 -3
- package/dist/cli-v1sjhn52.js +0 -7
- package/dist/handlers-dkcarkd0.js +0 -39
- package/dist/index-5jecgp3n.js +0 -41
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
claimKv2,
|
|
5
5
|
deleteKv2,
|
|
6
6
|
init_db3
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-p20r8w42.js";
|
|
8
8
|
import {
|
|
9
9
|
isEnvFlagEnabled,
|
|
10
10
|
init_env_flag
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-cebvbc9t.js";
|
|
12
12
|
import {
|
|
13
13
|
scrubSecrets,
|
|
14
14
|
init_secret_scrubber
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ampBillsCacheWrites,
|
|
3
3
|
resolveAmpModel
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-2zqpkvtt.js";
|
|
5
5
|
import {
|
|
6
6
|
CONTEXT_FORMULA,
|
|
7
7
|
computeContextUsedUnified,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./cli-a5ebc95n.js";
|
|
10
10
|
import {
|
|
11
11
|
swarmRuntimeInstanceId
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-e8xyjvfc.js";
|
|
13
13
|
import {
|
|
14
14
|
detachedProcessGroup,
|
|
15
15
|
registerProcessGroup,
|
|
@@ -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.1792506219-g025e7e";
|
|
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;
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
getKv2,
|
|
3
3
|
upsertKv2,
|
|
4
4
|
init_db3
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-p20r8w42.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveIdentity,
|
|
8
8
|
recordUnmappedIdentity
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-v3yr2gbg.js";
|
|
10
10
|
import {
|
|
11
11
|
findUserByExternalId,
|
|
12
12
|
findOrCreateUserByEmail,
|
|
13
13
|
linkIdentity,
|
|
14
14
|
init_users
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-9fhkkpj5.js";
|
|
16
16
|
|
|
17
17
|
// src/slack/enrich.ts
|
|
18
18
|
init_db3();
|
|
@@ -39,14 +39,14 @@ import {
|
|
|
39
39
|
getResolvedConfig2,
|
|
40
40
|
getMcpServerById2,
|
|
41
41
|
init_db3
|
|
42
|
-
} from "./cli-
|
|
42
|
+
} from "./cli-p20r8w42.js";
|
|
43
43
|
import {
|
|
44
44
|
generateRandomCodeVerifier,
|
|
45
45
|
generateRandomState,
|
|
46
46
|
calculatePKCECodeChallenge,
|
|
47
47
|
oauthAppRowToProviderConfig,
|
|
48
48
|
ensureAuthorizationTokenOrThrow
|
|
49
|
-
} from "./cli-
|
|
49
|
+
} from "./cli-esxerzg7.js";
|
|
50
50
|
import {
|
|
51
51
|
detachedProcessGroup,
|
|
52
52
|
registerProcessGroup,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
import {
|
|
59
59
|
defaultAssetKey,
|
|
60
60
|
init_key
|
|
61
|
-
} from "./cli-
|
|
61
|
+
} from "./cli-nc35pxb7.js";
|
|
62
62
|
import {
|
|
63
63
|
init_zod
|
|
64
64
|
} from "./cli-4chz1hye.js";
|
|
@@ -83,11 +83,11 @@ import {
|
|
|
83
83
|
import {
|
|
84
84
|
getMcpBaseUrl,
|
|
85
85
|
init_constants2
|
|
86
|
-
} from "./cli-
|
|
86
|
+
} from "./cli-gf2850q7.js";
|
|
87
87
|
import {
|
|
88
88
|
isEnvFlagEnabled,
|
|
89
89
|
init_env_flag
|
|
90
|
-
} from "./cli-
|
|
90
|
+
} from "./cli-cebvbc9t.js";
|
|
91
91
|
import {
|
|
92
92
|
getApiKey,
|
|
93
93
|
init_api_key
|
|
@@ -181366,6 +181366,9 @@ var catalog_generated_default = {
|
|
|
181366
181366
|
type: "string"
|
|
181367
181367
|
},
|
|
181368
181368
|
additionalProperties: {}
|
|
181369
|
+
},
|
|
181370
|
+
parentTaskId: {
|
|
181371
|
+
type: "string"
|
|
181369
181372
|
}
|
|
181370
181373
|
},
|
|
181371
181374
|
required: ["name"],
|
|
@@ -181504,7 +181507,9 @@ function isActionSentinel(value) {
|
|
|
181504
181507
|
return true;
|
|
181505
181508
|
if (value.$rowIndex === true)
|
|
181506
181509
|
return true;
|
|
181507
|
-
|
|
181510
|
+
if (typeof value.$form === "string")
|
|
181511
|
+
return true;
|
|
181512
|
+
return typeof value.$chain === "string";
|
|
181508
181513
|
}
|
|
181509
181514
|
function appendPath(path, part) {
|
|
181510
181515
|
return path ? `${path}.${part}` : String(part);
|
|
@@ -181559,7 +181564,7 @@ function validateSchema(value, schema, path, allowActionSentinels, skipPath) {
|
|
|
181559
181564
|
if (isActionSentinel(value)) {
|
|
181560
181565
|
return allowActionSentinels ? { issues: [], stateRefs: [] } : {
|
|
181561
181566
|
issues: [
|
|
181562
|
-
issue(path, "$row, $rowIndex, and $
|
|
181567
|
+
issue(path, "$row, $rowIndex, $form, and $chain bindings are only allowed in action params")
|
|
181563
181568
|
],
|
|
181564
181569
|
stateRefs: []
|
|
181565
181570
|
};
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./cli-a5ebc95n.js";
|
|
6
6
|
import {
|
|
7
7
|
swarmRuntimeInstanceId
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-e8xyjvfc.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveSlashSkillPrompt
|
|
11
11
|
} from "./cli-jc1g9ndz.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
autoIndexMemoryFile,
|
|
24
24
|
fetchConcurrentContext,
|
|
25
25
|
summarizeTranscript
|
|
26
|
-
} from "./cli-
|
|
26
|
+
} from "./cli-vfha21c9.js";
|
|
27
27
|
import {
|
|
28
28
|
applyReasoningEffort
|
|
29
29
|
} from "./cli-bn0rewsy.js";
|
|
@@ -44,8 +44,9 @@ import {
|
|
|
44
44
|
} from "./cli-dfyv0jdy.js";
|
|
45
45
|
import {
|
|
46
46
|
isEnvFlagEnabled,
|
|
47
|
+
isSessionSummarySkipped,
|
|
47
48
|
init_env_flag
|
|
48
|
-
} from "./cli-
|
|
49
|
+
} from "./cli-cebvbc9t.js";
|
|
49
50
|
import {
|
|
50
51
|
scrubSecrets,
|
|
51
52
|
registerVolatileSecret,
|
|
@@ -706,7 +707,7 @@ class OpencodeSession {
|
|
|
706
707
|
}
|
|
707
708
|
async runSessionEnd(signal) {
|
|
708
709
|
await sessionHooks.syncIdentity(this.swarm, "session_sync", signal);
|
|
709
|
-
if (
|
|
710
|
+
if (isSessionSummarySkipped()) {
|
|
710
711
|
console.debug("session_summary skipped (opencode): SKIP_SESSION_SUMMARY is set");
|
|
711
712
|
} else {
|
|
712
713
|
const transcript = this.transcript.join(`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isMultiRuntimeEnabled
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-e8xyjvfc.js";
|
|
4
4
|
import {
|
|
5
5
|
workflowEventBus2,
|
|
6
6
|
init_event_bus
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
getStaleApprovalRequests2,
|
|
67
67
|
upsertKv2,
|
|
68
68
|
init_db3
|
|
69
|
-
} from "./cli-
|
|
69
|
+
} from "./cli-p20r8w42.js";
|
|
70
70
|
import {
|
|
71
71
|
poolTaskRunsOnHarness,
|
|
72
72
|
isRuntimePoolWakeable,
|
|
@@ -91,29 +91,29 @@ import {
|
|
|
91
91
|
createRerouteDecisionTask,
|
|
92
92
|
createPoolStarvationDecisionTask,
|
|
93
93
|
canClaim
|
|
94
|
-
} from "./cli-
|
|
94
|
+
} from "./cli-v3yr2gbg.js";
|
|
95
95
|
import {
|
|
96
96
|
listRuntimePools2,
|
|
97
97
|
init_db
|
|
98
|
-
} from "./cli-
|
|
98
|
+
} from "./cli-w6nadkh4.js";
|
|
99
99
|
import {
|
|
100
100
|
createApprovalFollowUpTask
|
|
101
|
-
} from "./cli-
|
|
101
|
+
} from "./cli-q6r7t299.js";
|
|
102
102
|
import {
|
|
103
103
|
remediateStalledRuntime
|
|
104
|
-
} from "./cli-
|
|
104
|
+
} from "./cli-dqb4n629.js";
|
|
105
105
|
import {
|
|
106
106
|
runSavedScriptAsAgent
|
|
107
|
-
} from "./cli-
|
|
107
|
+
} from "./cli-2y91wnbh.js";
|
|
108
108
|
import {
|
|
109
109
|
mintToken,
|
|
110
110
|
init_users
|
|
111
|
-
} from "./cli-
|
|
111
|
+
} from "./cli-9fhkkpj5.js";
|
|
112
112
|
import {
|
|
113
113
|
TERMINAL_TASK_STATUSES,
|
|
114
114
|
SUPERSEDED_WORKFLOW_TASK_REASON,
|
|
115
115
|
init_types
|
|
116
|
-
} from "./cli-
|
|
116
|
+
} from "./cli-nc35pxb7.js";
|
|
117
117
|
import {
|
|
118
118
|
registerTemplate,
|
|
119
119
|
init_registry,
|
|
@@ -128,11 +128,11 @@ import {
|
|
|
128
128
|
import {
|
|
129
129
|
init_package,
|
|
130
130
|
package_default
|
|
131
|
-
} from "./cli-
|
|
131
|
+
} from "./cli-pccfmtb5.js";
|
|
132
132
|
import {
|
|
133
133
|
isEnvFlagEnabled,
|
|
134
134
|
init_env_flag
|
|
135
|
-
} from "./cli-
|
|
135
|
+
} from "./cli-cebvbc9t.js";
|
|
136
136
|
import {
|
|
137
137
|
scrubSecrets,
|
|
138
138
|
init_secret_scrubber
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./cli-a5ebc95n.js";
|
|
6
6
|
import {
|
|
7
7
|
swarmRuntimeInstanceId
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-e8xyjvfc.js";
|
|
9
9
|
import {
|
|
10
10
|
detachedProcessGroup,
|
|
11
11
|
registerProcessGroup,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_MODEL_TIER_MAP,
|
|
23
23
|
init_types
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-nc35pxb7.js";
|
|
25
25
|
import {
|
|
26
26
|
getOpenRouterBaseUrl,
|
|
27
27
|
getOpenRouterAttributionHeaders,
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
getDb2,
|
|
3
3
|
getDbClient2,
|
|
4
4
|
init_db3
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-p20r8w42.js";
|
|
6
6
|
import {
|
|
7
7
|
PermissionVerbSchema,
|
|
8
8
|
init_rbac
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-ba8ne1es.js";
|
|
10
10
|
import {
|
|
11
11
|
init_env_flag
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-cebvbc9t.js";
|
|
13
13
|
import {
|
|
14
14
|
__esm
|
|
15
15
|
} from "./cli-242037k3.js";
|
|
@@ -39,18 +39,18 @@ import {
|
|
|
39
39
|
getPendingWaitsByEvent2,
|
|
40
40
|
resolveWaitState2,
|
|
41
41
|
init_db3
|
|
42
|
-
} from "./cli-
|
|
42
|
+
} from "./cli-p20r8w42.js";
|
|
43
43
|
import {
|
|
44
44
|
BaseExecutor,
|
|
45
45
|
postApprovalCancellationUpdates,
|
|
46
|
-
|
|
46
|
+
isSystemOneNodeType,
|
|
47
47
|
systemOneRetryViolations,
|
|
48
48
|
systemOneUnresolvedError,
|
|
49
49
|
getNextTargets,
|
|
50
50
|
findEntryNodes,
|
|
51
51
|
resolveValidationPort,
|
|
52
52
|
getSuccessors
|
|
53
|
-
} from "./cli-
|
|
53
|
+
} from "./cli-q6r7t299.js";
|
|
54
54
|
import {
|
|
55
55
|
workflowEventBus2,
|
|
56
56
|
init_event_bus
|
|
@@ -59,12 +59,12 @@ import {
|
|
|
59
59
|
RetryPolicySchema,
|
|
60
60
|
SUPERSEDED_WORKFLOW_TASK_REASON,
|
|
61
61
|
init_types
|
|
62
|
-
} from "./cli-
|
|
62
|
+
} from "./cli-nc35pxb7.js";
|
|
63
63
|
import {
|
|
64
64
|
getSlackConfiguration,
|
|
65
65
|
isSlackConfigured,
|
|
66
66
|
init_config
|
|
67
|
-
} from "./cli-
|
|
67
|
+
} from "./cli-qeaq3j6t.js";
|
|
68
68
|
import {
|
|
69
69
|
deepInterpolate,
|
|
70
70
|
init_template
|
|
@@ -86,11 +86,11 @@ import {
|
|
|
86
86
|
import {
|
|
87
87
|
getAppUrl,
|
|
88
88
|
init_constants2
|
|
89
|
-
} from "./cli-
|
|
89
|
+
} from "./cli-gf2850q7.js";
|
|
90
90
|
import {
|
|
91
91
|
isEnvFlagEnabled,
|
|
92
92
|
init_env_flag
|
|
93
|
-
} from "./cli-
|
|
93
|
+
} from "./cli-cebvbc9t.js";
|
|
94
94
|
import {
|
|
95
95
|
isSensitiveKey,
|
|
96
96
|
scrubSecrets,
|
|
@@ -107,7 +107,7 @@ async function notifyAutomationPreflightFailure(preflight) {
|
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
109
|
try {
|
|
110
|
-
const { getSlackApp } = await import("./app-
|
|
110
|
+
const { getSlackApp } = await import("./app-rb7vc02s.js");
|
|
111
111
|
const app = getSlackApp();
|
|
112
112
|
if (!app) {
|
|
113
113
|
console.warn("[Automation Preflight] Slack not available, cannot send notification");
|
|
@@ -1380,7 +1380,7 @@ async function runClaimedStep(def, runId, ctx, node, registry, existingStep, ste
|
|
|
1380
1380
|
return { outcome: "failed", successors: [] };
|
|
1381
1381
|
}
|
|
1382
1382
|
if (strictUnresolved && strictUnresolved.length > 0) {
|
|
1383
|
-
await checkpointStepFailure(runId, stepId, systemOneUnresolvedError(node.id, strictUnresolved), 0);
|
|
1383
|
+
await checkpointStepFailure(runId, stepId, systemOneUnresolvedError(node.id, strictUnresolved, node.type), 0);
|
|
1384
1384
|
return { outcome: "failed", successors: [] };
|
|
1385
1385
|
}
|
|
1386
1386
|
if (unresolved.length > 0) {
|
|
@@ -1435,7 +1435,7 @@ async function runClaimedStep(def, runId, ctx, node, registry, existingStep, ste
|
|
|
1435
1435
|
if ("async" in result && result.async) {
|
|
1436
1436
|
const waiting = await checkpointStepWaiting(runId, stepId, ctx);
|
|
1437
1437
|
if (waiting && result.waitFor === "workflow.child.finished") {
|
|
1438
|
-
const { resumeFromChildRun } = await import("./resume-
|
|
1438
|
+
const { resumeFromChildRun } = await import("./resume-z0fgjc38.js");
|
|
1439
1439
|
await resumeFromChildRun(stepId, registry);
|
|
1440
1440
|
}
|
|
1441
1441
|
return { outcome: waiting ? "waiting" : "completed", successors: [] };
|
|
@@ -1549,15 +1549,18 @@ function buildScriptBodyCtx(node, interpolationCtx) {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
return safe;
|
|
1551
1551
|
}
|
|
1552
|
+
var SYSTEM_ONE_DATA_FIELDS = new Set(["state", "questions", "fields", "images"]);
|
|
1552
1553
|
function interpolateNodeConfig(node, interpolationCtx) {
|
|
1553
|
-
if (node.type
|
|
1554
|
-
const
|
|
1555
|
-
const restResult = deepInterpolate(rest, interpolationCtx);
|
|
1554
|
+
if (isSystemOneNodeType(node.type)) {
|
|
1555
|
+
const rest = {};
|
|
1556
1556
|
const dynamic = {};
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1557
|
+
for (const [key, value] of Object.entries(node.config)) {
|
|
1558
|
+
if (SYSTEM_ONE_DATA_FIELDS.has(key))
|
|
1559
|
+
dynamic[key] = value;
|
|
1560
|
+
else
|
|
1561
|
+
rest[key] = value;
|
|
1562
|
+
}
|
|
1563
|
+
const restResult = deepInterpolate(rest, interpolationCtx);
|
|
1561
1564
|
const dynamicResult = deepInterpolate(dynamic, interpolationCtx, { preserveRawTokens: true });
|
|
1562
1565
|
const unresolved = [...restResult.unresolved, ...dynamicResult.unresolved];
|
|
1563
1566
|
return {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
materializeClaudeMd,
|
|
10
10
|
stopClaudeMd
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-1m17dc9d.js";
|
|
12
12
|
import {
|
|
13
13
|
summarizeSession
|
|
14
14
|
} from "./cli-pnp2j5zg.js";
|
|
@@ -27,16 +27,20 @@ import {
|
|
|
27
27
|
warnProfileFileTooLarge,
|
|
28
28
|
buildIndependentIdentityPayloads,
|
|
29
29
|
init_profile_sync
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-74c1wpm0.js";
|
|
31
31
|
import {
|
|
32
32
|
init_package,
|
|
33
33
|
package_default
|
|
34
|
-
} from "./cli-
|
|
34
|
+
} from "./cli-pccfmtb5.js";
|
|
35
35
|
import {
|
|
36
36
|
MAX_PROFILE_FILE_LENGTH,
|
|
37
37
|
getMcpBaseUrl,
|
|
38
38
|
init_constants2
|
|
39
|
-
} from "./cli-
|
|
39
|
+
} from "./cli-gf2850q7.js";
|
|
40
|
+
import {
|
|
41
|
+
isSessionSummarySkipped,
|
|
42
|
+
init_env_flag
|
|
43
|
+
} from "./cli-cebvbc9t.js";
|
|
40
44
|
import {
|
|
41
45
|
getApiKey,
|
|
42
46
|
init_api_key
|
|
@@ -51,6 +55,7 @@ init_package();
|
|
|
51
55
|
init_profile_sync();
|
|
52
56
|
init_api_key();
|
|
53
57
|
init_constants2();
|
|
58
|
+
init_env_flag();
|
|
54
59
|
init_secret_scrubber();
|
|
55
60
|
var SERVER_NAME = package_default.config?.name ?? "agent-swarm";
|
|
56
61
|
var SOUL_MD_PATH = "/workspace/SOUL.md";
|
|
@@ -154,7 +159,7 @@ async function resolveStopHookTaskContext(env = process.env) {
|
|
|
154
159
|
}
|
|
155
160
|
async function runStopHookSessionSummary(opts, deps = {}) {
|
|
156
161
|
const env = opts.env ?? process.env;
|
|
157
|
-
if (env
|
|
162
|
+
if (isSessionSummarySkipped(env)) {
|
|
158
163
|
console.debug("session_summary skipped (claude): SKIP_SESSION_SUMMARY is set");
|
|
159
164
|
return;
|
|
160
165
|
}
|
|
@@ -17,7 +17,7 @@ async function createRuntimeProvider(kind, target = {}) {
|
|
|
17
17
|
return new DockerRuntimeProvider;
|
|
18
18
|
}
|
|
19
19
|
case "e2b": {
|
|
20
|
-
const { E2BRuntimeProvider } = await import("./e2b-
|
|
20
|
+
const { E2BRuntimeProvider } = await import("./e2b-zn0b4w5w.js");
|
|
21
21
|
return new E2BRuntimeProvider(target);
|
|
22
22
|
}
|
|
23
23
|
case "k8s":
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getSlackConfiguration,
|
|
3
3
|
init_config
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-qeaq3j6t.js";
|
|
5
5
|
import {
|
|
6
6
|
isSteeringEnabled2,
|
|
7
7
|
init_steering_enabled
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-4sydckyj.js";
|
|
9
9
|
import {
|
|
10
10
|
init_templates3
|
|
11
11
|
} from "./cli-0ebey9hg.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
buildAgentFsLiveUrl,
|
|
21
21
|
buildCombFileUrl,
|
|
22
22
|
init_constants2
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-gf2850q7.js";
|
|
24
24
|
import {
|
|
25
25
|
scrubSecrets,
|
|
26
26
|
init_secret_scrubber
|