@desplega.ai/agent-swarm 2.13.2 → 2.13.3
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-t2q6nsqv.js +17 -0
- package/dist/{acp-targets-mz8c5dnt.js → acp-targets-k8xs4tj8.js} +7 -7
- package/dist/{actions-5ft3qp5a.js → actions-pg5fxjer.js} +23 -23
- package/dist/{agent-fs-provision-6fgz7wvz.js → agent-fs-provision-vbk3fppw.js} +4 -4
- package/dist/{amp-adapter-nthn8ezm.js → amp-adapter-adbhxsz9.js} +2 -2
- package/dist/{app-535m78qw.js → app-b267ggx1.js} +6 -6
- package/dist/{approval-notifications-dewbk403.js → approval-notifications-evc1a9z5.js} +7 -7
- package/dist/{assistant-39zyabv2.js → assistant-wgz2ab84.js} +24 -24
- package/dist/{boot-args-schema-bqv5bf77.js → boot-args-schema-6tpk28j4.js} +1 -1
- package/dist/{boot-reembed-fas7z3zn.js → boot-reembed-ankp369c.js} +1 -1
- package/dist/{boot-reembed-157c0gcz.js → boot-reembed-r1zyvefv.js} +1 -1
- package/dist/{boot-scrub-sweep-tmec0be2.js → boot-scrub-sweep-cgb6r5bd.js} +2 -2
- package/dist/{boot-seeds-32zm50x2.js → boot-seeds-bjceqg7b.js} +4 -4
- package/dist/{claude-adapter-gwq7x2nj.js → claude-adapter-knztdnff.js} +9 -6
- package/dist/{claude-managed-adapter-rkvw6fvq.js → claude-managed-adapter-qwejzqkk.js} +2 -2
- package/dist/{claude-sdk-session-5wbwxy8c.js → claude-sdk-session-c3g6dv0g.js} +22 -8
- package/dist/{cli-cs26ed89.js → cli-0j4qmc80.js} +7 -7
- package/dist/{cli-dnvmwsvc.js → cli-1606qw3n.js} +32 -32
- package/dist/{cli-b0kqw55g.js → cli-1gnf5c7x.js} +1 -1
- package/dist/{cli-31vt7baf.js → cli-1wew39p0.js} +10 -10
- package/dist/{cli-tceqvv6h.js → cli-268b3dgn.js} +2 -2
- package/dist/cli-2ap1the6.js +11 -0
- package/dist/{cli-e87fg3en.js → cli-4dyhzhpx.js} +1 -1
- package/dist/{cli-t9nxq30h.js → cli-55fqpd9q.js} +8 -8
- package/dist/{cli-nvqq3232.js → cli-61fzwtjk.js} +7 -7
- package/dist/{cli-c9bwawf9.js → cli-61p7ty8d.js} +2 -2
- package/dist/{cli-d528acsw.js → cli-7fa6yv98.js} +2 -2
- package/dist/{cli-bp2rt28p.js → cli-7kv5d674.js} +3 -3
- package/dist/{cli-tbdw3f92.js → cli-80d5g0fa.js} +2 -2
- package/dist/{cli-0xwb7zpt.js → cli-88np9va3.js} +1 -1
- package/dist/{cli-zm6bkx3e.js → cli-8m6gqnf1.js} +2 -2
- package/dist/{cli-r4fphq38.js → cli-8pnawt98.js} +3 -3
- package/dist/{cli-xerdrnqs.js → cli-8sayvj48.js} +2 -2
- package/dist/{cli-d0jb2qnt.js → cli-9gmkw6xn.js} +53 -32
- package/dist/{cli-a6rzw649.js → cli-a21cwm89.js} +2 -2
- package/dist/{cli-s6fhqbz1.js → cli-aytna2fm.js} +1 -1
- package/dist/{cli-mwxez0pz.js → cli-b768ek79.js} +1 -1
- package/dist/{cli-ewb028rs.js → cli-bh53ppqm.js} +2 -2
- package/dist/{cli-zqy28rwx.js → cli-czeh7x13.js} +3 -3
- package/dist/{cli-s08zsqva.js → cli-djwt4mtn.js} +71 -5
- package/dist/{cli-fgm2mad9.js → cli-dq30fq3q.js} +2 -2
- package/dist/{cli-2wde56gv.js → cli-dw43pnzp.js} +5 -5
- package/dist/{cli-erh1rgh4.js → cli-e4gx499y.js} +12 -12
- package/dist/{cli-69eq6gdk.js → cli-ea367bdn.js} +31 -22
- package/dist/{cli-cmgdptmx.js → cli-ef590376.js} +29 -5
- package/dist/{cli-8qvte9hn.js → cli-fbmgpt72.js} +2 -2
- package/dist/{cli-tgmate57.js → cli-g4dhd3pr.js} +2 -2
- package/dist/{cli-0f7n3td3.js → cli-gc715jrc.js} +1 -1
- package/dist/{cli-xysy1g8x.js → cli-gkjw33x5.js} +1 -1
- package/dist/{cli-getrvmtx.js → cli-grk77aen.js} +1 -1
- package/dist/{cli-f1sdh8ca.js → cli-gxqwm3k3.js} +5 -5
- package/dist/{cli-m1wddksc.js → cli-h3drhntp.js} +1 -1
- package/dist/{cli-qn79645p.js → cli-h9d3sdnc.js} +1 -1
- package/dist/{cli-7m6bbtab.js → cli-hd2a204w.js} +6 -6
- package/dist/{cli-jkkcm72j.js → cli-hhb8kbwd.js} +9 -9
- package/dist/{cli-fcwrd7bh.js → cli-hpxcfvdm.js} +3 -3
- package/dist/{cli-ka13xx6b.js → cli-hxj888w3.js} +1 -1
- package/dist/{cli-82j36f2m.js → cli-jjzxsk47.js} +9 -3
- package/dist/{cli-nkfv398a.js → cli-ka4tqjzd.js} +6 -6
- package/dist/{cli-n46d87mj.js → cli-kh973792.js} +3 -3
- package/dist/{cli-x5yb8zc8.js → cli-kwm1bek7.js} +1 -1
- package/dist/{cli-5k1hvycs.js → cli-mgr3gatr.js} +4 -4
- package/dist/{cli-8a4qg44m.js → cli-nbawx3s0.js} +2 -2
- package/dist/{cli-1gevjrc1.js → cli-ppf9ap9n.js} +1 -1
- package/dist/{cli-6rmryz03.js → cli-pzsedyb0.js} +4 -4
- package/dist/{cli-g0b3ma7r.js → cli-r6xnchva.js} +1 -1
- package/dist/{cli-j2ybkdk2.js → cli-snwz16eg.js} +1 -1
- package/dist/{cli-sjk85d7v.js → cli-sy2ge2ye.js} +3 -3
- package/dist/{cli-rvhaahfv.js → cli-syqcny89.js} +3 -3
- package/dist/{cli-n14r8h4n.js → cli-tjf1bh1v.js} +2 -2
- package/dist/{cli-xhkek467.js → cli-v1v49t36.js} +28 -2
- package/dist/{cli-4djg31jh.js → cli-v8rpjrnx.js} +1 -1
- package/dist/{cli-62fjschk.js → cli-vgh5adn9.js} +5 -5
- package/dist/{cli-wdtqkqnq.js → cli-w24741sm.js} +3 -3
- package/dist/{cli-gq6qhmrr.js → cli-wsnradtk.js} +3 -3
- package/dist/{cli-gc7jkf4a.js → cli-wtffytm8.js} +3 -3
- package/dist/{cli-1f48qdnb.js → cli-xc8m5cjn.js} +2 -2
- package/dist/{cli-x7aqhxj5.js → cli-y0q92v4r.js} +2 -2
- package/dist/{cli-gedf48yw.js → cli-y754psdt.js} +4 -4
- package/dist/cli.js +14 -14
- package/dist/{codex-adapter-x25xfbnh.js → codex-adapter-493vb8cv.js} +5 -5
- package/dist/{codex-hook-c0nvm30r.js → codex-hook-ej8hn6z5.js} +9 -2
- package/dist/{codex-session-runner-kn5xnrvp.js → codex-session-runner-ps5m4z1g.js} +5 -5
- package/dist/{commands-8n59gxmy.js → commands-shktk0b8.js} +3 -3
- package/dist/{controllers-connect-09gvkrhc.js → controllers-connect-yft057ws.js} +22 -22
- package/dist/{core-2b8bv6ny.js → core-nheayfgm.js} +21 -21
- package/dist/{cursor-adapter-w1681kp1.js → cursor-adapter-8fpm4dng.js} +1 -1
- package/dist/{db-e71keqxk.js → db-0ezhdhz5.js} +3 -3
- package/dist/{db-spg81qtr.js → db-84pz2w5c.js} +2 -2
- package/dist/{dispatcher-fr4vawwb.js → dispatcher-h2rz69f6.js} +21 -21
- package/dist/{easter-egg-3d-ac9tv9a6.js → easter-egg-3d-m41ad78v.js} +1 -1
- package/dist/{embedding-space-an77f45k.js → embedding-space-yam9zwzj.js} +6 -6
- package/dist/{embeddings-jkrehejr.js → embeddings-g2be0y8q.js} +1 -1
- package/dist/{execute-3mys4nta.js → execute-hhdejgzf.js} +1 -1
- package/dist/{external-channel-s6zxpts9.js → external-channel-kjt2yzfj.js} +2 -2
- package/dist/fx-adapter-8g7xsp8q.js +20 -0
- package/dist/{grok-adapter-8ge6tw7m.js → grok-adapter-ztk2zkz1.js} +9 -9
- package/dist/handlers-9ywssz71.js +41 -0
- package/dist/{heartbeat-jjpb44e5.js → heartbeat-2e5jdexj.js} +23 -23
- package/dist/{hook-y6n23zzj.js → hook-34s8cmgn.js} +9 -6
- package/dist/{hook-68gbs87k.js → hook-acg9saz7.js} +8 -5
- package/dist/{http-8c6y008s.js → http-ra2zr2f8.js} +58 -65
- package/dist/{index-xcw7hjt5.js → index-2z1z7qx6.js} +24 -24
- package/dist/{index-p2f5xg64.js → index-3j803vnb.js} +36259 -34299
- package/dist/index-6mgbdtv1.js +44 -0
- package/dist/{index-6h3r0vpe.js → index-93bw5wds.js} +1 -1
- package/dist/{index-we3nd2t0.js → index-9q42cr54.js} +1 -1
- package/dist/{index-0vthtbc2.js → index-9r4j0a60.js} +23 -15
- package/dist/index-hqdsn2t2.js +39 -0
- package/dist/index-st231bqv.js +40 -0
- package/dist/{keepalive-7e9r5dvp.js → keepalive-vjnnqbkm.js} +4 -4
- package/dist/lead-mk0xkth2.js +82 -0
- package/dist/{maintenance-d3erjvcg.js → maintenance-px2g599e.js} +1 -1
- package/dist/{oauth-refresh-sweep-0qh70988.js → oauth-refresh-sweep-nkykf09m.js} +3 -3
- package/dist/{object-webhooks-ac7v2q5p.js → object-webhooks-gt9xnq21.js} +7 -7
- package/dist/{onboard-5yphtken.js → onboard-1f134p65.js} +3 -3
- package/dist/{opencode-adapter-0xvyba4m.js → opencode-adapter-94976yab.js} +6 -6
- package/dist/{otel-impl-svqp691q.js → otel-impl-5d4p2fqs.js} +1 -1
- package/dist/{pending-bn4xe5br.js → pending-vkk0vx6n.js} +22 -22
- package/dist/{pi-mono-adapter-763s8a3w.js → pi-mono-adapter-cyzdv5er.js} +8 -8
- package/dist/{pricing-refresh-kfc215mf.js → pricing-refresh-jtmjwss9.js} +2 -2
- package/dist/{rbac-roles-6r4h2ghj.js → rbac-roles-1fvmdyeb.js} +2 -2
- package/dist/{rbac-roles-3bznvkpt.js → rbac-roles-yd1fgpsn.js} +3 -3
- package/dist/{render-v2-f3qedbpy.js → render-v2-kb5s3vx4.js} +6 -6
- package/dist/{resume-vcag4ann.js → resume-z1vs44n5.js} +9 -9
- package/dist/{runtime-x0s55z2t.js → runtime-gk6ct7r7.js} +1 -1
- package/dist/{session-access-nwzve8q2.js → session-access-nz6nre4d.js} +5 -5
- package/dist/{session-source-backfill-jpqfzmgz.js → session-source-backfill-wb60zjkd.js} +1 -1
- package/dist/{setup-d2smwaem.js → setup-2x8g8j4s.js} +1 -1
- package/dist/thread-buffer-d50rqpev.js +42 -0
- package/dist/{tree-visibility-dwzc8en0.js → tree-visibility-ts3z30kw.js} +2 -2
- package/dist/{user-merge-jobs-4ce7kma2.js → user-merge-jobs-zetg26e0.js} +3 -3
- package/dist/{virtual-modules-78a6yw71.js → virtual-modules-674fka8x.js} +3 -3
- package/dist/{work-objects-m0w1e7q8.js → work-objects-w52yyjxm.js} +24 -24
- package/dist/worker-662x1vse.js +82 -0
- package/dist/{worker-follow-up-e3t6f895.js → worker-follow-up-dyfxyjbj.js} +21 -21
- package/openapi.json +4 -1
- package/package.json +3 -3
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/commands/runner.ts +62 -6
- package/src/hooks/codex-hook.ts +15 -4
- package/src/hooks/hook.ts +7 -0
- package/src/http/session-cost-recompute.ts +3 -1
- package/src/http/session-data.ts +3 -0
- package/src/prompts/base-prompt.ts +1 -1
- package/src/prompts/session-templates.ts +1 -1
- package/src/providers/acp-targets.ts +2 -2
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/claude-adapter.ts +21 -1
- package/src/providers/claude-sdk-session.ts +22 -3
- package/src/providers/claude-session-events.ts +76 -1
- package/src/providers/cursor-adapter.ts +1 -1
- package/src/providers/fx-adapter.ts +2 -2
- package/src/providers/pricing-sources.md +3 -0
- package/src/providers/types.ts +13 -0
- package/src/slack/render-v2.ts +27 -7
- package/src/tests/base-prompt.test.ts +6 -2
- package/src/tests/claude-adapter.test.ts +115 -0
- package/src/tests/fixtures/fx/acp-updates-recorded.jsonl +1 -1
- package/src/tests/internal-ai/complete-structured.test.ts +105 -0
- package/src/tests/internal-ai/credentials.test.ts +149 -0
- package/src/tests/internal-ai/task-title.test.ts +78 -0
- package/src/tests/mcp-input-caps.test.ts +16 -11
- package/src/tests/runner-slot-reconcile.test.ts +102 -0
- package/src/tests/slack-render-v2.test.ts +85 -0
- package/src/types.ts +2 -1
- package/src/utils/internal-ai/complete-structured.ts +36 -5
- package/src/utils/internal-ai/credentials.ts +78 -2
- package/src/utils/internal-ai/models.ts +37 -1
- package/src/utils/internal-ai/task-title.ts +31 -1
- package/templates/skills/swarm-docs/content.md +8 -0
- package/dist/acp-adapter-x1qqgzwx.js +0 -17
- package/dist/fx-adapter-4yet1c4f.js +0 -20
- package/dist/handlers-0r9evrdj.js +0 -41
- package/dist/index-1v23363p.js +0 -39
- package/dist/index-30qw6vyw.js +0 -44
- package/dist/index-6bm3w6cn.js +0 -40
- package/dist/lead-3jpc7kcr.js +0 -79
- package/dist/thread-buffer-8fc703jc.js +0 -42
- package/dist/worker-3p2vq107.js +0 -79
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
checkDeepSeekApiKey,
|
|
12
12
|
checkOpenAICompatibleProvider,
|
|
13
13
|
writeSkillsToFilesystem
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-g4dhd3pr.js";
|
|
15
15
|
import {
|
|
16
16
|
renderSteeringDelivery
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-h9d3sdnc.js";
|
|
18
18
|
import {
|
|
19
19
|
effectiveReasoningEffort
|
|
20
20
|
} from "./cli-vdfngx2g.js";
|
|
21
21
|
import {
|
|
22
22
|
validateProviderDependencies
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-8m6gqnf1.js";
|
|
24
24
|
import {
|
|
25
25
|
isSkillLoaderCall,
|
|
26
26
|
skillFromToolArgs,
|
|
@@ -42,20 +42,20 @@ import {
|
|
|
42
42
|
import {
|
|
43
43
|
checkAmpCredentials2,
|
|
44
44
|
liveTestAmpCredentials2
|
|
45
|
-
} from "./cli-
|
|
45
|
+
} from "./cli-nbawx3s0.js";
|
|
46
46
|
import {
|
|
47
47
|
checkClaudeCredentials2
|
|
48
|
-
} from "./cli-
|
|
48
|
+
} from "./cli-djwt4mtn.js";
|
|
49
49
|
import {
|
|
50
50
|
checkClaudeManagedCredentials2
|
|
51
|
-
} from "./cli-
|
|
51
|
+
} from "./cli-r6xnchva.js";
|
|
52
52
|
import {
|
|
53
53
|
codexUserHome,
|
|
54
54
|
checkCodexCredentials2
|
|
55
|
-
} from "./cli-
|
|
55
|
+
} from "./cli-pzsedyb0.js";
|
|
56
56
|
import {
|
|
57
57
|
checkCursorCredentials2
|
|
58
|
-
} from "./cli-
|
|
58
|
+
} from "./cli-y754psdt.js";
|
|
59
59
|
import {
|
|
60
60
|
checkDevinCredentials2
|
|
61
61
|
} from "./cli-je587f74.js";
|
|
@@ -64,13 +64,13 @@ import {
|
|
|
64
64
|
} from "./cli-t25rq8mg.js";
|
|
65
65
|
import {
|
|
66
66
|
checkOpencodeCredentials2
|
|
67
|
-
} from "./cli-
|
|
67
|
+
} from "./cli-syqcny89.js";
|
|
68
68
|
import {
|
|
69
69
|
checkFxCredentials2
|
|
70
|
-
} from "./cli-
|
|
70
|
+
} from "./cli-bh53ppqm.js";
|
|
71
71
|
import {
|
|
72
72
|
checkGrokCredentials2
|
|
73
|
-
} from "./cli-
|
|
73
|
+
} from "./cli-61p7ty8d.js";
|
|
74
74
|
import {
|
|
75
75
|
CODEX_OAUTH_POOL_SLOTS_ENV,
|
|
76
76
|
isCodexOAuthConfigKey,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
init_azure_devops,
|
|
89
89
|
resolveScriptsOnlyMode,
|
|
90
90
|
init_scripts_only_mode
|
|
91
|
-
} from "./cli-
|
|
91
|
+
} from "./cli-1606qw3n.js";
|
|
92
92
|
import {
|
|
93
93
|
terminateRegisteredProcessGroups,
|
|
94
94
|
init_process_group
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
import {
|
|
97
97
|
validateJsonSchema,
|
|
98
98
|
init_json_schema_validator
|
|
99
|
-
} from "./cli-
|
|
99
|
+
} from "./cli-hhb8kbwd.js";
|
|
100
100
|
import {
|
|
101
101
|
authJsonToCredentialSelection,
|
|
102
102
|
credentialsToAuthJson,
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
initialize,
|
|
120
120
|
ensure,
|
|
121
121
|
init_business_use
|
|
122
|
-
} from "./cli-
|
|
122
|
+
} from "./cli-ea367bdn.js";
|
|
123
123
|
import {
|
|
124
124
|
sourceOfKey,
|
|
125
125
|
init_source_key,
|
|
@@ -141,7 +141,7 @@ import {
|
|
|
141
141
|
init_vcs_repo_match,
|
|
142
142
|
resumedTaskModelSelection,
|
|
143
143
|
init_model_pin
|
|
144
|
-
} from "./cli-
|
|
144
|
+
} from "./cli-e4gx499y.js";
|
|
145
145
|
import {
|
|
146
146
|
isCodexAuthFailureReason,
|
|
147
147
|
init_codex_auth_failure
|
|
@@ -178,7 +178,7 @@ import {
|
|
|
178
178
|
resolveClaudeMdPath,
|
|
179
179
|
syncProfileFilesToServer,
|
|
180
180
|
init_profile_sync
|
|
181
|
-
} from "./cli-
|
|
181
|
+
} from "./cli-aytna2fm.js";
|
|
182
182
|
import {
|
|
183
183
|
isSteeringEnabled2,
|
|
184
184
|
init_steering_enabled
|
|
@@ -208,7 +208,7 @@ import {
|
|
|
208
208
|
configureHttpResolver,
|
|
209
209
|
resolveTemplateAsync,
|
|
210
210
|
init_resolver
|
|
211
|
-
} from "./cli-
|
|
211
|
+
} from "./cli-b768ek79.js";
|
|
212
212
|
import {
|
|
213
213
|
isGroupKey,
|
|
214
214
|
init_key,
|
|
@@ -290,19 +290,19 @@ init_storage();
|
|
|
290
290
|
async function createProviderAdapter(provider) {
|
|
291
291
|
switch (provider) {
|
|
292
292
|
case "claude": {
|
|
293
|
-
const { ClaudeAdapter } = await import("./claude-adapter-
|
|
293
|
+
const { ClaudeAdapter } = await import("./claude-adapter-knztdnff.js");
|
|
294
294
|
return new ClaudeAdapter;
|
|
295
295
|
}
|
|
296
296
|
case "pi": {
|
|
297
|
-
const { PiMonoAdapter } = await import("./pi-mono-adapter-
|
|
297
|
+
const { PiMonoAdapter } = await import("./pi-mono-adapter-cyzdv5er.js");
|
|
298
298
|
return new PiMonoAdapter;
|
|
299
299
|
}
|
|
300
300
|
case "codex": {
|
|
301
|
-
const { CodexAdapter } = await import("./codex-adapter-
|
|
301
|
+
const { CodexAdapter } = await import("./codex-adapter-493vb8cv.js");
|
|
302
302
|
return new CodexAdapter;
|
|
303
303
|
}
|
|
304
304
|
case "claude-managed": {
|
|
305
|
-
const { ClaudeManagedAdapter } = await import("./claude-managed-adapter-
|
|
305
|
+
const { ClaudeManagedAdapter } = await import("./claude-managed-adapter-qwejzqkk.js");
|
|
306
306
|
return new ClaudeManagedAdapter;
|
|
307
307
|
}
|
|
308
308
|
case "devin": {
|
|
@@ -310,7 +310,7 @@ async function createProviderAdapter(provider) {
|
|
|
310
310
|
return new DevinAdapter;
|
|
311
311
|
}
|
|
312
312
|
case "opencode": {
|
|
313
|
-
const { OpencodeAdapter } = await import("./opencode-adapter-
|
|
313
|
+
const { OpencodeAdapter } = await import("./opencode-adapter-94976yab.js");
|
|
314
314
|
return new OpencodeAdapter;
|
|
315
315
|
}
|
|
316
316
|
case "dsh": {
|
|
@@ -318,23 +318,23 @@ async function createProviderAdapter(provider) {
|
|
|
318
318
|
return new DshAdapter;
|
|
319
319
|
}
|
|
320
320
|
case "amp": {
|
|
321
|
-
const { AmpAdapter } = await import("./amp-adapter-
|
|
321
|
+
const { AmpAdapter } = await import("./amp-adapter-adbhxsz9.js");
|
|
322
322
|
return new AmpAdapter;
|
|
323
323
|
}
|
|
324
324
|
case "cursor": {
|
|
325
|
-
const { CursorAdapter } = await import("./cursor-adapter-
|
|
325
|
+
const { CursorAdapter } = await import("./cursor-adapter-8fpm4dng.js");
|
|
326
326
|
return new CursorAdapter;
|
|
327
327
|
}
|
|
328
328
|
case "grok": {
|
|
329
|
-
const { GrokAdapter } = await import("./grok-adapter-
|
|
329
|
+
const { GrokAdapter } = await import("./grok-adapter-ztk2zkz1.js");
|
|
330
330
|
return new GrokAdapter;
|
|
331
331
|
}
|
|
332
332
|
case "fx": {
|
|
333
|
-
const { FxAdapter } = await import("./fx-adapter-
|
|
333
|
+
const { FxAdapter } = await import("./fx-adapter-8g7xsp8q.js");
|
|
334
334
|
return new FxAdapter;
|
|
335
335
|
}
|
|
336
336
|
case "acp": {
|
|
337
|
-
const { ACPAdapter } = await import("./acp-adapter-
|
|
337
|
+
const { ACPAdapter } = await import("./acp-adapter-t2q6nsqv.js");
|
|
338
338
|
return new ACPAdapter;
|
|
339
339
|
}
|
|
340
340
|
default:
|
|
@@ -1383,7 +1383,7 @@ var CREDENTIAL_PROVIDER_CHECKERS = {
|
|
|
1383
1383
|
devin: (env) => checkDevinCredentials2(env),
|
|
1384
1384
|
opencode: (env, opts) => checkOpencodeCredentials2(env, opts),
|
|
1385
1385
|
pi: async (env, opts) => {
|
|
1386
|
-
const { checkPiMonoCredentials, listPiOpencodeGoModelIds } = await import("./pi-mono-adapter-
|
|
1386
|
+
const { checkPiMonoCredentials, listPiOpencodeGoModelIds } = await import("./pi-mono-adapter-cyzdv5er.js");
|
|
1387
1387
|
return {
|
|
1388
1388
|
...await checkPiMonoCredentials(env, opts),
|
|
1389
1389
|
opencodeGoModels: listPiOpencodeGoModelIds()
|
|
@@ -1662,7 +1662,7 @@ async function validateProviderCredentials(provider, env = process.env, presence
|
|
|
1662
1662
|
latency_ms: Date.now() - startedAt
|
|
1663
1663
|
};
|
|
1664
1664
|
}
|
|
1665
|
-
const { liveTestCursorKey } = await import("./cursor-adapter-
|
|
1665
|
+
const { liveTestCursorKey } = await import("./cursor-adapter-8fpm4dng.js");
|
|
1666
1666
|
return checkEachKey("CURSOR_API_KEY", apiKey, async (member) => {
|
|
1667
1667
|
const start = Date.now();
|
|
1668
1668
|
const result = await liveTestCursorKey(member);
|
|
@@ -5861,6 +5861,12 @@ async function spawnProviderProcess(adapter, opts, logDir) {
|
|
|
5861
5861
|
}
|
|
5862
5862
|
var DEFAULT_TASK_RECONCILE_INTERVAL_MS = 30000;
|
|
5863
5863
|
var ABORT_SETTLE_GRACE_MS = 1e4;
|
|
5864
|
+
var DEFAULT_TERMINAL_TASK_GRACE_MS = 45000;
|
|
5865
|
+
function resolveTerminalTaskGraceMs(env = process.env) {
|
|
5866
|
+
const raw = env.RUNNER_TERMINAL_TASK_GRACE_MS;
|
|
5867
|
+
const value = raw === undefined || raw.trim() === "" ? Number.NaN : Number(raw);
|
|
5868
|
+
return Number.isFinite(value) && value >= 0 ? value : DEFAULT_TERMINAL_TASK_GRACE_MS;
|
|
5869
|
+
}
|
|
5864
5870
|
function resolveTaskReconcileIntervalMs(env = process.env) {
|
|
5865
5871
|
const raw = Number(env.RUNNER_TASK_RECONCILE_INTERVAL_MS);
|
|
5866
5872
|
return Number.isFinite(raw) && raw > 0 ? raw : DEFAULT_TASK_RECONCILE_INTERVAL_MS;
|
|
@@ -5904,6 +5910,7 @@ async function handOffTasksForApiDrain(state, role, apiConfig) {
|
|
|
5904
5910
|
async function reconcileActiveTasks(state, role, opts) {
|
|
5905
5911
|
const now = opts.now ?? Date.now;
|
|
5906
5912
|
const graceMs = opts.abortGraceMs ?? ABORT_SETTLE_GRACE_MS;
|
|
5913
|
+
const terminalGraceMs = opts.terminalGraceMs ?? DEFAULT_TERMINAL_TASK_GRACE_MS;
|
|
5907
5914
|
const reconcileOne = async (taskId, task) => {
|
|
5908
5915
|
if (task.result !== null)
|
|
5909
5916
|
return;
|
|
@@ -5916,18 +5923,30 @@ async function reconcileActiveTasks(state, role, opts) {
|
|
|
5916
5923
|
}
|
|
5917
5924
|
} catch {}
|
|
5918
5925
|
}
|
|
5919
|
-
if (task.abortRequestedAt === undefined && opts.checkStatus !== false) {
|
|
5926
|
+
if (task.abortRequestedAt === undefined && task.terminalGraceStartedAt === undefined && opts.checkStatus !== false) {
|
|
5920
5927
|
const lastCheck = task.lastReconcileAt ?? task.startTime.getTime();
|
|
5921
5928
|
if (now() - lastCheck >= opts.intervalMs) {
|
|
5922
5929
|
task.lastReconcileAt = now();
|
|
5923
5930
|
const status = await opts.fetchStatus(taskId).catch(() => null);
|
|
5924
5931
|
if (status && isTerminalTaskStatus(status)) {
|
|
5925
|
-
console.warn(`[${role}] Task ${taskId.slice(0, 8)} is ${status} server-side but its session is still running — aborting it`);
|
|
5926
5932
|
task.serverTerminalStatus = status;
|
|
5927
|
-
|
|
5933
|
+
if (task.session.finishInput && terminalGraceMs > 0 && status !== "cancelled") {
|
|
5934
|
+
console.warn(`[${role}] Task ${taskId.slice(0, 8)} is ${status} server-side but its session is still running — closing its input, abort in ${terminalGraceMs}ms`);
|
|
5935
|
+
task.terminalGraceStartedAt = now();
|
|
5936
|
+
try {
|
|
5937
|
+
task.session.finishInput();
|
|
5938
|
+
} catch {}
|
|
5939
|
+
} else {
|
|
5940
|
+
console.warn(`[${role}] Task ${taskId.slice(0, 8)} is ${status} server-side but its session is still running — aborting it`);
|
|
5941
|
+
requestSessionAbort(task, `server task ${status}`, now());
|
|
5942
|
+
}
|
|
5928
5943
|
}
|
|
5929
5944
|
}
|
|
5930
5945
|
}
|
|
5946
|
+
if (task.terminalGraceStartedAt !== undefined && task.abortRequestedAt === undefined && task.result === null && now() - task.terminalGraceStartedAt >= terminalGraceMs) {
|
|
5947
|
+
console.warn(`[${role}] Task ${taskId.slice(0, 8)} session did not end ${terminalGraceMs}ms after its input closed — aborting it`);
|
|
5948
|
+
requestSessionAbort(task, `server task ${task.serverTerminalStatus}`, now());
|
|
5949
|
+
}
|
|
5931
5950
|
if (task.abortRequestedAt !== undefined && task.result === null && now() - task.abortRequestedAt >= graceMs) {
|
|
5932
5951
|
console.warn(`[${role}] Task ${taskId.slice(0, 8)} session did not settle ${graceMs}ms after abort — releasing its slot`);
|
|
5933
5952
|
task.result = {
|
|
@@ -7064,6 +7083,7 @@ ${additionalSystemPrompt}` : basePrompt;
|
|
|
7064
7083
|
let lastOrphanRecoveryAt = 0;
|
|
7065
7084
|
const ORPHAN_RECOVERY_INTERVAL_MS = 60000;
|
|
7066
7085
|
const taskReconcileIntervalMs = resolveTaskReconcileIntervalMs();
|
|
7086
|
+
const terminalTaskGraceMs = resolveTerminalTaskGraceMs();
|
|
7067
7087
|
while (shouldRunDeliveryLoop(state.deliveryMode, shuttingDown)) {
|
|
7068
7088
|
const deliveryChecks = pushDelivery.checks(state.deliveryMode ?? "poll");
|
|
7069
7089
|
if (state.deliveryMode !== "push") {
|
|
@@ -7127,6 +7147,7 @@ ${additionalSystemPrompt}` : basePrompt;
|
|
|
7127
7147
|
isCancelled: (taskId) => fetchTaskCancelled(apiUrl, apiKey, agentId, taskId),
|
|
7128
7148
|
fetchStatus: (taskId) => fetchTaskStatus(apiUrl, apiKey, taskId),
|
|
7129
7149
|
intervalMs: taskReconcileIntervalMs,
|
|
7150
|
+
terminalGraceMs: terminalTaskGraceMs,
|
|
7130
7151
|
...taskReconciliation(deliveryChecks)
|
|
7131
7152
|
});
|
|
7132
7153
|
}
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
getResolvedConfig2,
|
|
7
7
|
getAllUsers2,
|
|
8
8
|
init_db4
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-e4gx499y.js";
|
|
10
10
|
import {
|
|
11
11
|
getUserGrant2,
|
|
12
12
|
init_rbac_roles
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-tjf1bh1v.js";
|
|
14
14
|
import {
|
|
15
15
|
scrubSecrets,
|
|
16
16
|
init_secret_scrubber
|
|
@@ -624,7 +624,7 @@ Task: {{task}}{{progressLine}}
|
|
|
624
624
|
registerTemplate({
|
|
625
625
|
eventType: "system.agent.tool_discovery.fx",
|
|
626
626
|
header: "",
|
|
627
|
-
defaultBody: "Most swarm tools are deferred behind `
|
|
627
|
+
defaultBody: "Most swarm tools are deferred behind `toolbox`. Each one is named `mcp_swarm_<tool>`, so `store-progress` is `mcp_swarm_store-progress`. Call a tool in your tool list directly. A deferred tool fails when called directly: find it with `toolbox` `search`, then call `toolbox` with `run` set to its name and `arguments` set to its arguments.",
|
|
628
628
|
variables: [],
|
|
629
629
|
category: "system"
|
|
630
630
|
});
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
requireFxRoute,
|
|
4
4
|
fxSessionExists2,
|
|
5
5
|
fxTargetProfile2
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-7fa6yv98.js";
|
|
7
7
|
import {
|
|
8
8
|
ACPAdapter2
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-xc8m5cjn.js";
|
|
10
10
|
import {
|
|
11
11
|
getKnownContextWindowSize,
|
|
12
12
|
init_context_window
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
getMemoryStore2,
|
|
9
9
|
init_memory,
|
|
10
10
|
init_db4
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-e4gx499y.js";
|
|
12
12
|
import {
|
|
13
13
|
contentSha256,
|
|
14
14
|
init_profile_sync
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-aytna2fm.js";
|
|
16
16
|
import {
|
|
17
17
|
SCRUBBER_RULES_VERSION,
|
|
18
18
|
createSweepScrubber,
|
|
@@ -142,7 +142,7 @@ async function runBootScrubSweep2(opts = {}) {
|
|
|
142
142
|
console.log(`[${tag}] complete`);
|
|
143
143
|
const memoryChanged = stats.find((s) => s.table === "agent_memory")?.changed ?? 0;
|
|
144
144
|
if (memoryChanged > 0 && opts.reembed !== false) {
|
|
145
|
-
const { runBootReembed } = await import("./boot-reembed-
|
|
145
|
+
const { runBootReembed } = await import("./boot-reembed-r1zyvefv.js");
|
|
146
146
|
await runBootReembed();
|
|
147
147
|
}
|
|
148
148
|
return stats;
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
contextStatePath,
|
|
3
3
|
contextBoundNoteMarkerPath,
|
|
4
4
|
recordContextState
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-88np9va3.js";
|
|
6
6
|
import {
|
|
7
7
|
runStopHookSessionSummarySubprocess
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-vgh5adn9.js";
|
|
9
9
|
import {
|
|
10
10
|
redactRateLimitEventLine,
|
|
11
11
|
SessionErrorTracker,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
import {
|
|
50
50
|
withFileLock,
|
|
51
51
|
init_file_lock
|
|
52
|
-
} from "./cli-
|
|
52
|
+
} from "./cli-aytna2fm.js";
|
|
53
53
|
import {
|
|
54
54
|
routeCredentialStatus,
|
|
55
55
|
deriveDefaultRoute,
|
|
@@ -363,6 +363,64 @@ function costFromResult(json, state) {
|
|
|
363
363
|
provider: "claude"
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
|
+
|
|
367
|
+
class ClaudeUsageAccumulator {
|
|
368
|
+
byMessage = new Map;
|
|
369
|
+
unnamed = 0;
|
|
370
|
+
observe(json, fallbackModel) {
|
|
371
|
+
if (json.type !== "assistant" || !json.message?.usage)
|
|
372
|
+
return;
|
|
373
|
+
const id = json.message.id || `unnamed-${this.unnamed++}`;
|
|
374
|
+
const model = json.message.model || fallbackModel;
|
|
375
|
+
this.byMessage.set(id, { model, usage: json.message.usage });
|
|
376
|
+
}
|
|
377
|
+
toCost(state, opts) {
|
|
378
|
+
const perModel = new Map;
|
|
379
|
+
let cacheWrite5mTokens = 0;
|
|
380
|
+
let cacheWrite1hTokens = 0;
|
|
381
|
+
let thinkingTokens = 0;
|
|
382
|
+
for (const { model, usage } of this.byMessage.values()) {
|
|
383
|
+
const entry = perModel.get(model) ?? {
|
|
384
|
+
model,
|
|
385
|
+
inputTokens: 0,
|
|
386
|
+
outputTokens: 0,
|
|
387
|
+
cacheReadTokens: 0,
|
|
388
|
+
cacheWriteTokens: 0
|
|
389
|
+
};
|
|
390
|
+
entry.inputTokens += tokenCount(usage.input_tokens) ?? 0;
|
|
391
|
+
entry.outputTokens += tokenCount(usage.output_tokens) ?? 0;
|
|
392
|
+
entry.cacheReadTokens += tokenCount(usage.cache_read_input_tokens) ?? 0;
|
|
393
|
+
entry.cacheWriteTokens += tokenCount(usage.cache_creation_input_tokens) ?? 0;
|
|
394
|
+
perModel.set(model, entry);
|
|
395
|
+
cacheWrite5mTokens += tokenCount(usage.cache_creation?.ephemeral_5m_input_tokens) ?? 0;
|
|
396
|
+
cacheWrite1hTokens += tokenCount(usage.cache_creation?.ephemeral_1h_input_tokens) ?? 0;
|
|
397
|
+
thinkingTokens += tokenCount(usage.output_tokens_details?.thinking_tokens) ?? 0;
|
|
398
|
+
}
|
|
399
|
+
const models = [...perModel.values()].filter((m) => m.inputTokens + m.outputTokens + m.cacheReadTokens + m.cacheWriteTokens > 0);
|
|
400
|
+
if (models.length === 0)
|
|
401
|
+
return;
|
|
402
|
+
const sum = (key) => models.reduce((total, m) => total + m[key], 0);
|
|
403
|
+
return {
|
|
404
|
+
sessionId: "",
|
|
405
|
+
taskId: state.taskId,
|
|
406
|
+
agentId: state.agentId,
|
|
407
|
+
totalCostUsd: 0,
|
|
408
|
+
estimated: true,
|
|
409
|
+
inputTokens: sum("inputTokens"),
|
|
410
|
+
outputTokens: sum("outputTokens"),
|
|
411
|
+
cacheReadTokens: sum("cacheReadTokens"),
|
|
412
|
+
cacheWriteTokens: sum("cacheWriteTokens"),
|
|
413
|
+
...cacheWrite5mTokens + cacheWrite1hTokens > 0 ? { cacheWrite5mTokens, cacheWrite1hTokens } : {},
|
|
414
|
+
thinkingTokens,
|
|
415
|
+
models,
|
|
416
|
+
durationMs: opts.durationMs,
|
|
417
|
+
numTurns: null,
|
|
418
|
+
model: state.model,
|
|
419
|
+
isError: opts.isError,
|
|
420
|
+
provider: "claude"
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
}
|
|
366
424
|
function normalizeClaudeMessage(json, state) {
|
|
367
425
|
const events = [];
|
|
368
426
|
const transcriptEntries = [];
|
|
@@ -947,6 +1005,8 @@ class ClaudeSession {
|
|
|
947
1005
|
lastContextTokens;
|
|
948
1006
|
transcript;
|
|
949
1007
|
backgroundKeepalive;
|
|
1008
|
+
usage = new ClaudeUsageAccumulator;
|
|
1009
|
+
startedAt = Date.now();
|
|
950
1010
|
deliverSteering;
|
|
951
1011
|
constructor(config, model, taskFilePath, taskFileKey, sessionMcpConfig = null, claudeBinaryArgv = ["claude"], systemPromptFile = null, harnessVariant, harnessVariantMeta, queueSteeringSupported = false, runSessionSummary = runStopHookSessionSummarySubprocess, flagSettings = claudeFlagSettings()) {
|
|
952
1012
|
this.config = config;
|
|
@@ -1164,6 +1224,7 @@ ${scrubSecrets(stderrOutput)}`);
|
|
|
1164
1224
|
if (stdoutChunks === 0 && stderrChunks === 0) {
|
|
1165
1225
|
console.warn(`\x1B[33m[${this.config.role}] WARNING: No output from Claude for task ${this.config.taskId.slice(0, 8)} - check auth/startup\x1B[0m`);
|
|
1166
1226
|
}
|
|
1227
|
+
lastCost ??= this.usage.toCost({ taskId: this.config.taskId, agentId: this.config.agentId, model: this.model }, { durationMs: Date.now() - this.startedAt, isError: (exitCode ?? 1) !== 0 });
|
|
1167
1228
|
let failureReason;
|
|
1168
1229
|
if (exitCode !== 0 && this.errorTracker.hasErrors()) {
|
|
1169
1230
|
failureReason = this.errorTracker.buildFailureReason(exitCode ?? 1);
|
|
@@ -1186,6 +1247,7 @@ ${scrubSecrets(stderrOutput)}`);
|
|
|
1186
1247
|
try {
|
|
1187
1248
|
const json = JSON.parse(trimmed);
|
|
1188
1249
|
this.backgroundKeepalive.observe(json);
|
|
1250
|
+
this.usage.observe(json, this.model);
|
|
1189
1251
|
if (json.type === "result" && !this.backgroundKeepalive.holdInputForBackgroundWork(() => this.closeStdin())) {
|
|
1190
1252
|
this.closeStdin();
|
|
1191
1253
|
}
|
|
@@ -1231,6 +1293,10 @@ ${scrubSecrets(stderrOutput)}`);
|
|
|
1231
1293
|
async waitForCompletion() {
|
|
1232
1294
|
return this.completionPromise;
|
|
1233
1295
|
}
|
|
1296
|
+
finishInput() {
|
|
1297
|
+
this.backgroundKeepalive.stop();
|
|
1298
|
+
this.closeStdin();
|
|
1299
|
+
}
|
|
1234
1300
|
async abort() {
|
|
1235
1301
|
this.closeStdin();
|
|
1236
1302
|
try {
|
|
@@ -1274,7 +1340,7 @@ class ClaudeAdapter2 {
|
|
|
1274
1340
|
if (transport === "sdk" && isClaudeBridgeEffective(sourceEnv)) {
|
|
1275
1341
|
throw new Error("CLAUDE_TRANSPORT=sdk cannot run with an effective Claude Bridge configuration. Select CLI transport or disable the bridge.");
|
|
1276
1342
|
}
|
|
1277
|
-
const claudeSdk = transport === "sdk" ? await import("./claude-sdk-session-
|
|
1343
|
+
const claudeSdk = transport === "sdk" ? await import("./claude-sdk-session-c3g6dv0g.js") : undefined;
|
|
1278
1344
|
claudeSdk?.validateClaudeSdkAdditionalArgs([
|
|
1279
1345
|
...claudeBinaryArgv.slice(1),
|
|
1280
1346
|
...config.additionalArgs ?? []
|
|
@@ -1395,4 +1461,4 @@ ${stderr}`.trim();
|
|
|
1395
1461
|
}
|
|
1396
1462
|
}
|
|
1397
1463
|
|
|
1398
|
-
export { ClaudeBackgroundKeepalive, normalizeClaudeMessage, checkClaudeCredentials2, withClaudeRouteEnv2, cleanupTaskFile2, resolveClaudeBinaryArgv2, buildClaudeSessionEnvironment2, runClaudeSessionSummary2, ClaudeAdapter2 };
|
|
1464
|
+
export { ClaudeBackgroundKeepalive, ClaudeUsageAccumulator, normalizeClaudeMessage, checkClaudeCredentials2, withClaudeRouteEnv2, cleanupTaskFile2, resolveClaudeBinaryArgv2, buildClaudeSessionEnvironment2, runClaudeSessionSummary2, ClaudeAdapter2 };
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
addMcpServerConfig,
|
|
12
12
|
removeMcpServerConfig,
|
|
13
13
|
questionTerminal
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-55fqpd9q.js";
|
|
15
15
|
import {
|
|
16
16
|
McpSignInCancelledError2,
|
|
17
17
|
McpOAuthCredentialStore2,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
McpServerLog2,
|
|
20
20
|
createDefaultTransport2,
|
|
21
21
|
McpServerConnection2
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-y0q92v4r.js";
|
|
23
23
|
|
|
24
24
|
// node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/cli.js
|
|
25
25
|
import { existsSync } from "node:fs";
|
|
@@ -15,24 +15,24 @@ import {
|
|
|
15
15
|
init_active_sessions,
|
|
16
16
|
getSteeringMessageById2,
|
|
17
17
|
init_db4
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-e4gx499y.js";
|
|
19
19
|
import {
|
|
20
20
|
userHoldsExplicitVerb2,
|
|
21
21
|
getUserGrant2,
|
|
22
22
|
init_rbac_roles
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-tjf1bh1v.js";
|
|
24
24
|
import {
|
|
25
25
|
hasSessionAccess,
|
|
26
26
|
getSessionRoot,
|
|
27
27
|
sessionAccessForRoot,
|
|
28
28
|
sessionAccess,
|
|
29
29
|
init_session_shares
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-1gnf5c7x.js";
|
|
31
31
|
import {
|
|
32
32
|
findUserById,
|
|
33
33
|
findUserByExternalId,
|
|
34
34
|
init_users
|
|
35
|
-
} from "./cli-
|
|
35
|
+
} from "./cli-grk77aen.js";
|
|
36
36
|
import {
|
|
37
37
|
isGroupKey,
|
|
38
38
|
init_key
|
|
@@ -514,7 +514,7 @@ function route(def) {
|
|
|
514
514
|
try {
|
|
515
515
|
const rawBody = def.body ? await parseBody(req, def.maxBodyBytes) : undefined;
|
|
516
516
|
if (def.session && "bodyTaskIds" in def.session) {
|
|
517
|
-
const { bodySessionDenial } = await import("./session-access-
|
|
517
|
+
const { bodySessionDenial } = await import("./session-access-nz6nre4d.js");
|
|
518
518
|
const denial = await bodySessionDenial(req, def.session.bodyTaskIds(rawBody));
|
|
519
519
|
if (denial) {
|
|
520
520
|
jsonError(res, denial, 403);
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
init_identity_field_budget,
|
|
43
43
|
contentSha256,
|
|
44
44
|
init_profile_sync
|
|
45
|
-
} from "./cli-
|
|
45
|
+
} from "./cli-aytna2fm.js";
|
|
46
46
|
import {
|
|
47
47
|
isSlackConfigured,
|
|
48
48
|
init_config4
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
import {
|
|
55
55
|
kindForModelString,
|
|
56
56
|
init_models2
|
|
57
|
-
} from "./cli-
|
|
57
|
+
} from "./cli-jjzxsk47.js";
|
|
58
58
|
import {
|
|
59
59
|
SUBSCRIPTION_KEY_TYPES,
|
|
60
60
|
planAllowsModelFamily,
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
configureDbResolver,
|
|
79
79
|
init_resolver,
|
|
80
80
|
init_session_templates
|
|
81
|
-
} from "./cli-
|
|
81
|
+
} from "./cli-b768ek79.js";
|
|
82
82
|
import {
|
|
83
83
|
getOpenRouterAttributionHeaders,
|
|
84
84
|
init_openrouter_base_url
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
import {
|
|
154
154
|
init_package,
|
|
155
155
|
package_default
|
|
156
|
-
} from "./cli-
|
|
156
|
+
} from "./cli-sy2ge2ye.js";
|
|
157
157
|
import {
|
|
158
158
|
getNodeEnv,
|
|
159
159
|
init_node_env
|
|
@@ -5702,7 +5702,7 @@ var init_telemetry = __esm(() => {
|
|
|
5702
5702
|
// src/telemetry-identity.ts
|
|
5703
5703
|
async function loadUserRole(userId) {
|
|
5704
5704
|
try {
|
|
5705
|
-
const { getUserGrant } = await import("./rbac-roles-
|
|
5705
|
+
const { getUserGrant } = await import("./rbac-roles-yd1fgpsn.js");
|
|
5706
5706
|
const grant = await getUserGrant(userId);
|
|
5707
5707
|
const role = grant.grantsAll ? "admin" : "member";
|
|
5708
5708
|
const user = await getDbClient2().get("SELECT json_extract(metadata, '$.jobFunction') AS jobFunction FROM users WHERE id = ? AND json_valid(metadata)", [userId]);
|
|
@@ -6590,7 +6590,7 @@ function scheduleApprovalCardUpdates(approvals) {
|
|
|
6590
6590
|
const posted = approvals.filter((approval) => approval.notificationChannels?.some((n) => n.channel === "slack" && n.messageTs));
|
|
6591
6591
|
if (posted.length === 0)
|
|
6592
6592
|
return;
|
|
6593
|
-
getDbClient2().afterCommit(() => import("./approval-notifications-
|
|
6593
|
+
getDbClient2().afterCommit(() => import("./approval-notifications-evc1a9z5.js").then(({ updateResolvedApprovalCards }) => updateResolvedApprovalCards(posted)).catch((err) => console.error("[HITL] Slack card update not run:", scrubSecrets(err instanceof Error ? err.message : String(err)))));
|
|
6594
6594
|
}
|
|
6595
6595
|
var init_approvals = __esm(() => {
|
|
6596
6596
|
init_secret_scrubber();
|
|
@@ -12598,7 +12598,7 @@ async function cancelTask2(id, reason, options = {}) {
|
|
|
12598
12598
|
if (row.source === "schedule" && row.taskType === "deferred" && row.parentTaskId) {
|
|
12599
12599
|
getDbClient2().afterCommit(async () => {
|
|
12600
12600
|
try {
|
|
12601
|
-
const { createWorkerTaskFollowUp } = await import("./worker-follow-up-
|
|
12601
|
+
const { createWorkerTaskFollowUp } = await import("./worker-follow-up-dyfxyjbj.js");
|
|
12602
12602
|
await createWorkerTaskFollowUp({
|
|
12603
12603
|
task: rowToAgentTask(row),
|
|
12604
12604
|
status: "failed",
|
|
@@ -23158,7 +23158,7 @@ function noteEmbeddingSuccess() {
|
|
|
23158
23158
|
const report = (what) => (err) => {
|
|
23159
23159
|
console.error(`[memory] ${what} backfill after embeddings recovered failed:`, err.message);
|
|
23160
23160
|
};
|
|
23161
|
-
backfill2 = import("./embedding-space-
|
|
23161
|
+
backfill2 = import("./embedding-space-yam9zwzj.js").then(({ runEmbeddingMaintenance }) => runEmbeddingMaintenance({ backfill: true })).catch(report("Embedding")).finally(() => {
|
|
23162
23162
|
backfill2 = null;
|
|
23163
23163
|
});
|
|
23164
23164
|
}
|
|
@@ -25727,7 +25727,7 @@ async function loadSecretRegistry() {
|
|
|
25727
25727
|
result.failed += 1;
|
|
25728
25728
|
}
|
|
25729
25729
|
try {
|
|
25730
|
-
const { loadRuntimeControllerSecrets } = await import("./db-
|
|
25730
|
+
const { loadRuntimeControllerSecrets } = await import("./db-0ezhdhz5.js");
|
|
25731
25731
|
const loaded = await loadRuntimeControllerSecrets();
|
|
25732
25732
|
result.runtimeController = loaded.count;
|
|
25733
25733
|
result.failed += loaded.failed;
|
|
@@ -25888,7 +25888,7 @@ async function requestSteering(args) {
|
|
|
25888
25888
|
}
|
|
25889
25889
|
const requestedMode = args.mode ?? "queue";
|
|
25890
25890
|
const onUnsupported = args.onUnsupported ?? "degrade";
|
|
25891
|
-
const { dispatchPre, extensionIdForAgent } = await import("./dispatcher-
|
|
25891
|
+
const { dispatchPre, extensionIdForAgent } = await import("./dispatcher-h2rz69f6.js");
|
|
25892
25892
|
const preSteer = await dispatchPre("pre.task.steer", {
|
|
25893
25893
|
task,
|
|
25894
25894
|
message: args.message,
|
|
@@ -29948,7 +29948,7 @@ async function deleteScheduledTask2(id) {
|
|
|
29948
29948
|
const parent = await getTaskById2(deferred.parentTaskId);
|
|
29949
29949
|
if (!parent?.deferredAt)
|
|
29950
29950
|
return;
|
|
29951
|
-
const { createWorkerTaskFollowUp } = await import("./worker-follow-up-
|
|
29951
|
+
const { createWorkerTaskFollowUp } = await import("./worker-follow-up-dyfxyjbj.js");
|
|
29952
29952
|
await createWorkerTaskFollowUp({
|
|
29953
29953
|
task: parent,
|
|
29954
29954
|
status: "failed",
|
|
@@ -34347,7 +34347,7 @@ var init_db4 = __esm(() => {
|
|
|
34347
34347
|
configureAgentDependencies({
|
|
34348
34348
|
createLogEntry: (entry) => createLogEntry2(entry),
|
|
34349
34349
|
installSystemDefaultSkillsForAgent: (agentId) => installSystemDefaultSkillsForAgent2(agentId),
|
|
34350
|
-
resolvePendingImportAssignments: async (agent) => (await import("./pending-
|
|
34350
|
+
resolvePendingImportAssignments: async (agent) => (await import("./pending-vkk0vx6n.js")).resolvePendingImportAssignments(agent)
|
|
34351
34351
|
});
|
|
34352
34352
|
configureTaskWriteDependencies({
|
|
34353
34353
|
createLogEntry: (...args) => createLogEntry2(...args),
|