@desplega.ai/agent-swarm 2.13.1 → 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/README.md +1 -1
- package/dist/acp-adapter-t2q6nsqv.js +17 -0
- package/dist/{acp-targets-n7vm5atw.js → acp-targets-k8xs4tj8.js} +7 -7
- package/dist/{actions-hq6wp9xv.js → actions-pg5fxjer.js} +25 -25
- package/dist/{agent-fs-provision-y0qc1rdd.js → agent-fs-provision-vbk3fppw.js} +4 -4
- package/dist/{amp-adapter-1qqs6h91.js → amp-adapter-adbhxsz9.js} +2 -2
- package/dist/{app-7m4z44rv.js → app-b267ggx1.js} +8 -8
- package/dist/{approval-notifications-8sr41gjx.js → approval-notifications-evc1a9z5.js} +9 -9
- package/dist/{assistant-hkczwfv6.js → assistant-wgz2ab84.js} +26 -26
- package/dist/{boot-args-schema-8025snev.js → boot-args-schema-6tpk28j4.js} +1 -1
- package/dist/{boot-reembed-15m87nr1.js → boot-reembed-ankp369c.js} +1 -1
- package/dist/{boot-reembed-4bbpxjh1.js → boot-reembed-r1zyvefv.js} +1 -1
- package/dist/{boot-scrub-sweep-eajr97e9.js → boot-scrub-sweep-cgb6r5bd.js} +2 -2
- package/dist/{boot-seeds-9cwy39jx.js → boot-seeds-bjceqg7b.js} +4 -4
- package/dist/{claude-adapter-g61wa4rt.js → claude-adapter-knztdnff.js} +9 -6
- package/dist/{claude-managed-adapter-znkk0prm.js → claude-managed-adapter-qwejzqkk.js} +3 -3
- package/dist/{claude-managed-setup-f1wndkr2.js → claude-managed-setup-0vgz4d1j.js} +4 -4
- package/dist/{claude-sdk-session-687xzf21.js → claude-sdk-session-c3g6dv0g.js} +11984 -11775
- package/dist/{cli-4mj5g29m.js → cli-0j4qmc80.js} +7 -7
- package/dist/{cli-fn8aj7gb.js → cli-1606qw3n.js} +98 -71
- package/dist/{cli-w41bvvms.js → cli-1gnf5c7x.js} +1 -1
- package/dist/{cli-aebswqmz.js → cli-1wew39p0.js} +15 -15
- package/dist/{cli-0fx95c06.js → cli-268b3dgn.js} +2 -2
- package/dist/cli-2ap1the6.js +11 -0
- package/dist/{cli-w6c6dj91.js → cli-4dyhzhpx.js} +1 -1
- package/dist/{cli-grcc2h2g.js → cli-55fqpd9q.js} +8 -8
- package/dist/{cli-p7g7wd9n.js → cli-61fzwtjk.js} +7 -7
- package/dist/{cli-zaate0rd.js → cli-61p7ty8d.js} +2 -2
- package/dist/{cli-cp0m07wb.js → cli-7fa6yv98.js} +2 -2
- package/dist/{cli-5v6b2am8.js → cli-7kv5d674.js} +7 -7
- package/dist/{cli-6r1dwegd.js → cli-80d5g0fa.js} +2 -2
- package/dist/{cli-0xwb7zpt.js → cli-88np9va3.js} +1 -1
- package/dist/{cli-1b5axkt1.js → cli-8m6gqnf1.js} +2 -2
- package/dist/{cli-0a336ze7.js → cli-8pnawt98.js} +3 -3
- package/dist/{cli-7ewre3dm.js → cli-8sayvj48.js} +2 -2
- package/dist/{cli-yeh3g1q6.js → cli-9gmkw6xn.js} +53 -32
- package/dist/{cli-h03j6je3.js → cli-a21cwm89.js} +2 -2
- package/dist/{cli-s6fhqbz1.js → cli-aytna2fm.js} +1 -1
- package/dist/{cli-84xtgbn6.js → cli-b0m3bg0f.js} +100 -2
- package/dist/{cli-mwxez0pz.js → cli-b768ek79.js} +1 -1
- package/dist/{cli-9xx36trj.js → cli-bh53ppqm.js} +2 -2
- package/dist/{cli-1carhg8g.js → cli-czeh7x13.js} +3 -3
- package/dist/{cli-cd9acnvd.js → cli-djwt4mtn.js} +71 -5
- package/dist/{cli-sfajkbd7.js → cli-dq30fq3q.js} +2 -2
- package/dist/{cli-a8ts6x1n.js → cli-dw43pnzp.js} +5 -5
- package/dist/{cli-h9bejmkf.js → cli-e4gx499y.js} +52 -29
- package/dist/{cli-t90k0phh.js → cli-ea367bdn.js} +32 -23
- package/dist/{cli-cmgdptmx.js → cli-ef590376.js} +29 -5
- package/dist/{cli-8rbkw18r.js → cli-fbmgpt72.js} +2 -2
- package/dist/{cli-tzzas8rb.js → cli-g4dhd3pr.js} +2 -2
- package/dist/{cli-snypfjgj.js → cli-gc715jrc.js} +1 -1
- package/dist/{cli-c0tyzt73.js → cli-gkjw33x5.js} +1 -1
- package/dist/{cli-z6m6xzxt.js → cli-grk77aen.js} +26 -5
- package/dist/{cli-hs3mqswp.js → cli-gxqwm3k3.js} +5 -5
- package/dist/{cli-4h90xaet.js → cli-h3drhntp.js} +1 -1
- package/dist/{cli-qn79645p.js → cli-h9d3sdnc.js} +1 -1
- package/dist/{cli-byxsctca.js → cli-hd2a204w.js} +6 -6
- package/dist/{cli-1dr5at77.js → cli-hhb8kbwd.js} +12 -12
- package/dist/{cli-zvpkrgsc.js → cli-hpxcfvdm.js} +3 -3
- package/dist/{cli-cqxwjb93.js → cli-hxj888w3.js} +1 -1
- package/dist/{cli-82j36f2m.js → cli-jjzxsk47.js} +9 -3
- package/dist/{cli-13t0smbk.js → cli-ka4tqjzd.js} +185 -58
- package/dist/{cli-jhtvt7gn.js → cli-kh973792.js} +3 -3
- package/dist/{cli-x5yb8zc8.js → cli-kwm1bek7.js} +1 -1
- package/dist/{cli-bjmq14k9.js → cli-mgr3gatr.js} +4 -4
- package/dist/{cli-c8kqmzzf.js → cli-nbawx3s0.js} +2 -2
- package/dist/{cli-04103ryh.js → cli-ppf9ap9n.js} +1 -1
- package/dist/{cli-dd57p1gd.js → cli-pzsedyb0.js} +4 -4
- package/dist/{cli-32xndx6b.js → cli-r6xnchva.js} +2 -2
- package/dist/{cli-4tbvndmm.js → cli-r8ddn0hf.js} +1 -1
- package/dist/{cli-y6qqbpwc.js → cli-snwz16eg.js} +1 -1
- package/dist/{cli-w24f3j49.js → cli-sy2ge2ye.js} +7 -6
- package/dist/{cli-3m8vqehw.js → cli-syqcny89.js} +3 -3
- package/dist/{cli-qx1dwrr5.js → cli-tjf1bh1v.js} +2 -2
- package/dist/{cli-xhkek467.js → cli-v1v49t36.js} +28 -2
- package/dist/{cli-cn6fpa1p.js → cli-v8rpjrnx.js} +1 -1
- package/dist/{cli-mmw2sjaf.js → cli-vgh5adn9.js} +5 -5
- package/dist/{cli-3zyme1wt.js → cli-w24741sm.js} +3 -3
- package/dist/{cli-gq6qhmrr.js → cli-wsnradtk.js} +3 -3
- package/dist/{cli-nk8swfpx.js → cli-wtffytm8.js} +3 -3
- package/dist/{cli-0m77n7ej.js → cli-xc8m5cjn.js} +54 -12
- package/dist/{cli-8cmjkbvj.js → cli-y0q92v4r.js} +2 -2
- package/dist/{cli-gedf48yw.js → cli-y754psdt.js} +4 -4
- package/dist/cli.js +19 -18
- package/dist/{codex-adapter-ysfg6ty3.js → codex-adapter-493vb8cv.js} +5 -5
- package/dist/{codex-hook-c0nvm30r.js → codex-hook-ej8hn6z5.js} +9 -2
- package/dist/{codex-session-runner-823scr6g.js → codex-session-runner-ps5m4z1g.js} +5 -5
- package/dist/{commands-5rbm07fz.js → commands-shktk0b8.js} +3 -3
- package/dist/{controllers-connect-34jzhfft.js → controllers-connect-yft057ws.js} +24 -24
- package/dist/core-nheayfgm.js +42 -0
- package/dist/{cursor-adapter-w1681kp1.js → cursor-adapter-8fpm4dng.js} +1 -1
- package/dist/{db-6bkgbfwk.js → db-0ezhdhz5.js} +3 -3
- package/dist/{db-hcj16x7z.js → db-84pz2w5c.js} +2 -2
- package/dist/{dispatcher-jgjqrfzv.js → dispatcher-h2rz69f6.js} +23 -23
- package/dist/{easter-egg-3d-w17nsny6.js → easter-egg-3d-m41ad78v.js} +1 -1
- package/dist/{embedding-space-v06fwy7b.js → embedding-space-yam9zwzj.js} +6 -6
- package/dist/{embeddings-g50dxea4.js → embeddings-g2be0y8q.js} +1 -1
- package/dist/{execute-1n36haw1.js → execute-hhdejgzf.js} +1 -1
- package/dist/{external-channel-43tv8pg6.js → external-channel-kjt2yzfj.js} +2 -2
- package/dist/fx-adapter-8g7xsp8q.js +20 -0
- package/dist/{grok-adapter-my5j8mdf.js → grok-adapter-ztk2zkz1.js} +9 -9
- package/dist/handlers-9ywssz71.js +41 -0
- package/dist/{heartbeat-sf3nk937.js → heartbeat-2e5jdexj.js} +25 -25
- package/dist/{hook-dqph1e05.js → hook-34s8cmgn.js} +9 -6
- package/dist/{hook-m1m9dm6w.js → hook-acg9saz7.js} +8 -5
- package/dist/{http-w0th1cz9.js → http-ra2zr2f8.js} +304 -111
- package/dist/{index-pb03vans.js → index-2z1z7qx6.js} +26 -26
- package/dist/{index-p2f5xg64.js → index-3j803vnb.js} +36259 -34299
- package/dist/index-6mgbdtv1.js +44 -0
- package/dist/{index-e8pz8qdg.js → index-7dgxveck.js} +2 -2
- package/dist/{index-gkpfgpg7.js → index-93bw5wds.js} +1 -1
- package/dist/{index-c0e8en64.js → index-9q42cr54.js} +1 -1
- package/dist/{index-ffba0z8q.js → index-9r4j0a60.js} +28 -18
- package/dist/index-hqdsn2t2.js +39 -0
- package/dist/{index-k8ajc0g0.js → index-maddg9ys.js} +1 -1
- package/dist/{index-y4vd4mhn.js → index-mbpxhc4w.js} +1 -1
- package/dist/index-rz8ve510.js +569 -0
- package/dist/index-st231bqv.js +40 -0
- package/dist/{index-ez823q84.js → index-ym9fgxad.js} +1 -1
- package/dist/{keepalive-2v06q2e8.js → keepalive-vjnnqbkm.js} +4 -4
- package/dist/lead-mk0xkth2.js +82 -0
- package/dist/{maintenance-vx7vjhhy.js → maintenance-px2g599e.js} +1 -1
- package/dist/{oauth-refresh-sweep-g06k4bza.js → oauth-refresh-sweep-nkykf09m.js} +3 -3
- package/dist/{object-webhooks-3dzdq4fm.js → object-webhooks-gt9xnq21.js} +7 -7
- package/dist/{onboard-232pazny.js → onboard-1f134p65.js} +3 -3
- package/dist/{opencode-adapter-t0paqbh8.js → opencode-adapter-94976yab.js} +6 -6
- package/dist/{otel-impl-kmpkyp4y.js → otel-impl-5d4p2fqs.js} +1 -1
- package/dist/{pending-x0z3vx1x.js → pending-vkk0vx6n.js} +24 -24
- package/dist/{pi-mono-adapter-7pmypn6d.js → pi-mono-adapter-cyzdv5er.js} +11 -11
- package/dist/{pricing-refresh-ytjmtyd7.js → pricing-refresh-jtmjwss9.js} +2 -2
- package/dist/{rbac-roles-xyaxekh3.js → rbac-roles-1fvmdyeb.js} +2 -2
- package/dist/{rbac-roles-fgm5mxr2.js → rbac-roles-yd1fgpsn.js} +3 -3
- package/dist/{render-v2-ws972g4r.js → render-v2-kb5s3vx4.js} +8 -8
- package/dist/{resume-m6mjzhkp.js → resume-z1vs44n5.js} +11 -11
- package/dist/{runtime-zzpc0c8a.js → runtime-gk6ct7r7.js} +1 -1
- package/dist/{session-access-vp35xs91.js → session-access-nz6nre4d.js} +5 -5
- package/dist/{session-source-backfill-p73e8zbe.js → session-source-backfill-wb60zjkd.js} +1 -1
- package/dist/{setup-r4kd7rxg.js → setup-2x8g8j4s.js} +1 -1
- package/dist/thread-buffer-d50rqpev.js +42 -0
- package/dist/{tree-visibility-07h2tbs2.js → tree-visibility-ts3z30kw.js} +2 -2
- package/dist/{user-merge-jobs-96vg9rpe.js → user-merge-jobs-zetg26e0.js} +3 -3
- package/dist/{virtual-modules-vgn3f2x4.js → virtual-modules-674fka8x.js} +3 -3
- package/dist/{work-objects-74hbcx3e.js → work-objects-w52yyjxm.js} +26 -26
- package/dist/worker-662x1vse.js +82 -0
- package/dist/{worker-follow-up-ezavwn5d.js → worker-follow-up-dyfxyjbj.js} +23 -23
- package/openapi.json +6 -2
- package/package.json +7 -6
- package/src/be/migrations/341_user_token_expiry.sql +4 -0
- package/src/be/scripts/run-credential.ts +55 -1
- package/src/be/scripts/typecheck.ts +4 -4
- package/src/be/scripts/user-code-mode.ts +160 -0
- package/src/be/users.ts +48 -7
- 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/script-connection-proxy.ts +18 -6
- package/src/http/scripts.ts +2 -11
- package/src/http/session-cost-recompute.ts +3 -1
- package/src/http/session-data.ts +3 -0
- package/src/http/users.ts +1 -0
- package/src/integrations/chat-sdk/adapters.ts +29 -0
- package/src/integrations/chat-sdk/limits.ts +3 -0
- package/src/integrations/chat-sdk/rocketchat/README.md +8 -0
- package/src/integrations/chat-sdk/rocketchat/index.ts +790 -0
- package/src/integrations/chat-sdk/rocketchat/markdown.ts +210 -0
- package/src/integrations/chat-sdk/rocketchat/types.ts +249 -0
- package/src/integrations/chat-sdk/runtime.ts +11 -5
- package/src/integrations/chat-sdk/schema.ts +37 -3
- package/src/integrations/chat-sdk/status.ts +9 -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/rbac/legacy-policy.ts +1 -0
- package/src/rbac/permissions.ts +4 -0
- package/src/scripts-runtime/executors/native.ts +225 -67
- package/src/scripts-runtime/mcp-client.ts +2 -1
- package/src/scripts-runtime/swarm-sdk.ts +2 -1
- package/src/scripts-runtime/types/stdlib.d.ts +4 -4
- package/src/scripts-runtime/types/swarm-sdk.d.ts +4 -4
- package/src/server-user.ts +98 -0
- package/src/slack/render-v2.ts +27 -7
- package/src/tests/base-prompt.test.ts +6 -2
- package/src/tests/chat-sdk-rocketchat-vendored.test.ts +67 -0
- package/src/tests/chat-sdk-status-route.test.ts +13 -1
- package/src/tests/claude-adapter.test.ts +115 -0
- package/src/tests/codex-app-server.test.ts +4 -6
- 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/mcp-user-route.test.ts +10 -1
- package/src/tests/runner-slot-reconcile.test.ts +102 -0
- package/src/tests/script-connections-mcp.test.ts +14 -10
- package/src/tests/script-connections-sql.test.ts +6 -2
- package/src/tests/script-connections.test.ts +2 -0
- package/src/tests/slack-render-v2.test.ts +85 -0
- package/src/tools/script-common.ts +37 -22
- package/src/tools/script-query-types.ts +1 -1
- package/src/tools/script-run.ts +1 -1
- package/src/tools/script-search.ts +12 -10
- package/src/tools/utils.ts +7 -1
- 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/chat-sdk/content.md +2 -2
- package/templates/skills/swarm-docs/content.md +10 -0
- package/dist/acp-adapter-xtj40wd8.js +0 -17
- package/dist/core-kdehq26g.js +0 -42
- package/dist/fx-adapter-bvh05t4a.js +0 -20
- package/dist/handlers-wyymeeqh.js +0 -41
- package/dist/index-22khdtby.js +0 -44
- package/dist/index-np0582ac.js +0 -40
- package/dist/index-vgkrj1jt.js +0 -39
- package/dist/lead-55z813ng.js +0 -79
- package/dist/thread-buffer-cm2nzq6t.js +0 -42
- package/dist/worker-5pn2vzx6.js +0 -79
- /package/dist/{cli-m4ejz4nj.js → cli-cah298e5.js} +0 -0
|
@@ -70,11 +70,11 @@ import {
|
|
|
70
70
|
getStaleApprovalRequests2,
|
|
71
71
|
upsertKv2,
|
|
72
72
|
init_db4
|
|
73
|
-
} from "./cli-
|
|
73
|
+
} from "./cli-e4gx499y.js";
|
|
74
74
|
import {
|
|
75
75
|
listRuntimePools2,
|
|
76
76
|
init_db2
|
|
77
|
-
} from "./cli-
|
|
77
|
+
} from "./cli-268b3dgn.js";
|
|
78
78
|
import {
|
|
79
79
|
runtimeStaleThresholdMinutes,
|
|
80
80
|
countActiveRuntimeInstancesForAgent,
|
|
@@ -84,15 +84,15 @@ import {
|
|
|
84
84
|
init_multi_runtime,
|
|
85
85
|
createApprovalFollowUpTask2,
|
|
86
86
|
init_approval_notifications
|
|
87
|
-
} from "./cli-
|
|
87
|
+
} from "./cli-gxqwm3k3.js";
|
|
88
88
|
import {
|
|
89
89
|
userHoldsOperatorGrantedRole2,
|
|
90
90
|
assertMayActOnOperatorGrantedTarget2,
|
|
91
91
|
init_rbac_roles
|
|
92
|
-
} from "./cli-
|
|
92
|
+
} from "./cli-tjf1bh1v.js";
|
|
93
93
|
import {
|
|
94
94
|
remediateStalledRuntime
|
|
95
|
-
} from "./cli-
|
|
95
|
+
} from "./cli-hd2a204w.js";
|
|
96
96
|
import {
|
|
97
97
|
recoverIncompleteRuns,
|
|
98
98
|
init_recovery,
|
|
@@ -120,13 +120,13 @@ import {
|
|
|
120
120
|
init_approval_cancel,
|
|
121
121
|
canClaim,
|
|
122
122
|
init_budget_admission
|
|
123
|
-
} from "./cli-
|
|
123
|
+
} from "./cli-1606qw3n.js";
|
|
124
124
|
import {
|
|
125
125
|
runScriptWithRunCredential,
|
|
126
126
|
init_run_credential,
|
|
127
127
|
runSavedScriptAsAgent,
|
|
128
128
|
init_run_saved
|
|
129
|
-
} from "./cli-
|
|
129
|
+
} from "./cli-ka4tqjzd.js";
|
|
130
130
|
import {
|
|
131
131
|
isMultiRuntimeEnabled,
|
|
132
132
|
init_multi_runtime2
|
|
@@ -135,18 +135,18 @@ import {
|
|
|
135
135
|
recordIdentityEvent,
|
|
136
136
|
mintToken,
|
|
137
137
|
init_users
|
|
138
|
-
} from "./cli-
|
|
139
|
-
import {
|
|
140
|
-
DEFAULT_OPENROUTER_BASE_URL,
|
|
141
|
-
getOpenRouterBaseUrl,
|
|
142
|
-
init_openrouter_base_url
|
|
143
|
-
} from "./cli-dfyv0jdy.js";
|
|
138
|
+
} from "./cli-grk77aen.js";
|
|
144
139
|
import {
|
|
145
140
|
registerTemplate,
|
|
146
141
|
init_registry3,
|
|
147
142
|
resolveTemplate,
|
|
148
143
|
init_resolver
|
|
149
|
-
} from "./cli-
|
|
144
|
+
} from "./cli-b768ek79.js";
|
|
145
|
+
import {
|
|
146
|
+
DEFAULT_OPENROUTER_BASE_URL,
|
|
147
|
+
getOpenRouterBaseUrl,
|
|
148
|
+
init_openrouter_base_url
|
|
149
|
+
} from "./cli-dfyv0jdy.js";
|
|
150
150
|
import {
|
|
151
151
|
TERMINAL_TASK_STATUSES,
|
|
152
152
|
OPEN_TASK_STATUSES,
|
|
@@ -160,7 +160,7 @@ import {
|
|
|
160
160
|
import {
|
|
161
161
|
init_package,
|
|
162
162
|
package_default
|
|
163
|
-
} from "./cli-
|
|
163
|
+
} from "./cli-sy2ge2ye.js";
|
|
164
164
|
import {
|
|
165
165
|
scrubSecrets,
|
|
166
166
|
init_secret_scrubber
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
getSwarmConfigs2,
|
|
17
17
|
upsertSwarmConfig2,
|
|
18
18
|
init_db4
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-e4gx499y.js";
|
|
20
20
|
import {
|
|
21
21
|
createRuntimeProvider,
|
|
22
22
|
init_runtime_providers
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
init_session_token_connections,
|
|
31
31
|
insertSessionToken,
|
|
32
32
|
init_users
|
|
33
|
-
} from "./cli-
|
|
33
|
+
} from "./cli-grk77aen.js";
|
|
34
34
|
import {
|
|
35
35
|
RuntimeControllerCreateSchema,
|
|
36
36
|
RuntimeControllerUpdateSchema,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
bedrockProviderModule
|
|
3
|
+
} from "./cli-6p8p2e6r.js";
|
|
4
|
+
import {
|
|
5
|
+
setBedrockProviderModule,
|
|
6
|
+
init_bedrock_converse_stream_lazy
|
|
7
|
+
} from "./cli-k3facve0.js";
|
|
8
|
+
|
|
9
|
+
// src/utils/internal-ai/register-bedrock.ts
|
|
10
|
+
init_bedrock_converse_stream_lazy();
|
|
11
|
+
setBedrockProviderModule(bedrockProviderModule);
|
|
@@ -148,7 +148,7 @@ import {
|
|
|
148
148
|
Instantiate,
|
|
149
149
|
Evaluate2,
|
|
150
150
|
Priority
|
|
151
|
-
} from "./cli-
|
|
151
|
+
} from "./cli-ef590376.js";
|
|
152
152
|
import {
|
|
153
153
|
require_index_min
|
|
154
154
|
} from "./cli-t9wbrgm4.js";
|
|
@@ -198,7 +198,7 @@ import {
|
|
|
198
198
|
streamSimple2,
|
|
199
199
|
completeSimple,
|
|
200
200
|
init_compat
|
|
201
|
-
} from "./cli-
|
|
201
|
+
} from "./cli-v1v49t36.js";
|
|
202
202
|
import {
|
|
203
203
|
uuidv7
|
|
204
204
|
} from "./cli-4se3x6qm.js";
|
|
@@ -59482,7 +59482,7 @@ function loadAllHighlightLanguages() {
|
|
|
59482
59482
|
if (!allLanguagesPromise) {
|
|
59483
59483
|
allLanguagesPromise = new Promise((resolve) => {
|
|
59484
59484
|
setImmediate(() => {
|
|
59485
|
-
import("./index-
|
|
59485
|
+
import("./index-93bw5wds.js").then((m)=>__toESM(m.default,1)).then(() => resolve(), () => {
|
|
59486
59486
|
resolve();
|
|
59487
59487
|
});
|
|
59488
59488
|
});
|
|
@@ -65897,7 +65897,7 @@ function getCreateJiti() {
|
|
|
65897
65897
|
}
|
|
65898
65898
|
var virtualModulesPromise;
|
|
65899
65899
|
function getVirtualModules() {
|
|
65900
|
-
virtualModulesPromise ??= import("./virtual-modules-
|
|
65900
|
+
virtualModulesPromise ??= import("./virtual-modules-674fka8x.js").then((module) => module.VIRTUAL_MODULES);
|
|
65901
65901
|
return virtualModulesPromise;
|
|
65902
65902
|
}
|
|
65903
65903
|
var _aliases = null;
|
|
@@ -90060,7 +90060,7 @@ function parseCodemodeSource(input) {
|
|
|
90060
90060
|
}
|
|
90061
90061
|
|
|
90062
90062
|
// node_modules/@earendil-works/pi-coding-agent/dist/extensions/codemode/execute.lazy.js
|
|
90063
|
-
var loadCodemodeExecutor = () => import("./execute-
|
|
90063
|
+
var loadCodemodeExecutor = () => import("./execute-hhdejgzf.js");
|
|
90064
90064
|
|
|
90065
90065
|
// node_modules/@earendil-works/pi-coding-agent/dist/extensions/codemode/renderer.js
|
|
90066
90066
|
var CODE_PREVIEW_LINES = 10;
|
|
@@ -91205,7 +91205,7 @@ function createMcpResourceToolDefinitions(options) {
|
|
|
91205
91205
|
}
|
|
91206
91206
|
|
|
91207
91207
|
// node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/runtime.lazy.js
|
|
91208
|
-
var loadMcpRuntime = () => import("./runtime-
|
|
91208
|
+
var loadMcpRuntime = () => import("./runtime-gk6ct7r7.js");
|
|
91209
91209
|
|
|
91210
91210
|
// node_modules/@earendil-works/pi-coding-agent/dist/utils/clipboard.js
|
|
91211
91211
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
@@ -96824,7 +96824,7 @@ var builtInExtensions = [
|
|
|
96824
96824
|
];
|
|
96825
96825
|
|
|
96826
96826
|
// node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/cli.lazy.js
|
|
96827
|
-
var loadMcpCommand = () => import("./cli-
|
|
96827
|
+
var loadMcpCommand = () => import("./cli-dq30fq3q.js");
|
|
96828
96828
|
|
|
96829
96829
|
// node_modules/@earendil-works/pi-coding-agent/dist/migrations.js
|
|
96830
96830
|
import { existsSync as existsSync22, mkdirSync as mkdirSync11, readdirSync as readdirSync10, readFileSync as readFileSync17, renameSync as renameSync2, rmSync as rmSync4, writeFileSync as writeFileSync11 } from "fs";
|
|
@@ -99414,7 +99414,7 @@ function playEasterEgg3d(tui, egg) {
|
|
|
99414
99414
|
if (tui.hasOverlay())
|
|
99415
99415
|
return true;
|
|
99416
99416
|
const screen = tui.getScreenLines();
|
|
99417
|
-
import("./easter-egg-3d-
|
|
99417
|
+
import("./easter-egg-3d-m41ad78v.js").then((module) => module.playEasterEgg3d(tui, screen, egg), () => {});
|
|
99418
99418
|
return true;
|
|
99419
99419
|
}
|
|
99420
99420
|
function playPiLogo3d(tui, column, row) {
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
SteeringBlockedError,
|
|
15
15
|
init_steering2,
|
|
16
16
|
init_db4
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-e4gx499y.js";
|
|
18
18
|
import {
|
|
19
19
|
isBlockExternalEnabled2,
|
|
20
20
|
invalidateChannelExternality2,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
shouldBlockChannel2,
|
|
23
23
|
leaveExternalChannel2,
|
|
24
24
|
init_external_channel
|
|
25
|
-
} from "./cli-
|
|
25
|
+
} from "./cli-hxj888w3.js";
|
|
26
26
|
import {
|
|
27
27
|
workflowEventBus2,
|
|
28
28
|
init_event_bus
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
init_render_v2,
|
|
43
43
|
registerTreeMessage,
|
|
44
44
|
init_watcher
|
|
45
|
-
} from "./cli-
|
|
45
|
+
} from "./cli-ea367bdn.js";
|
|
46
46
|
import {
|
|
47
47
|
dispatchPre2,
|
|
48
48
|
init_dispatcher,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
slackInboundMessageText,
|
|
61
61
|
collectSlackMessageFiles,
|
|
62
62
|
init_message_text
|
|
63
|
-
} from "./cli-
|
|
63
|
+
} from "./cli-1606qw3n.js";
|
|
64
64
|
import {
|
|
65
65
|
requestSlackThreadSteering,
|
|
66
66
|
formatSlackSteeringAck,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
getBufferMessageCount2,
|
|
72
72
|
instantFlush2,
|
|
73
73
|
init_thread_buffer
|
|
74
|
-
} from "./cli-
|
|
74
|
+
} from "./cli-0j4qmc80.js";
|
|
75
75
|
import {
|
|
76
76
|
wasEventSeen,
|
|
77
77
|
init_event_dedup
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
getSlackUserTeam,
|
|
83
83
|
isOurSlackTeam,
|
|
84
84
|
init_enrich
|
|
85
|
-
} from "./cli-
|
|
85
|
+
} from "./cli-wtffytm8.js";
|
|
86
86
|
import {
|
|
87
87
|
isSlackLeaveThreadDisabled,
|
|
88
88
|
SLACK_LEFT_THREAD_CONFIRMATION,
|
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
leaveSlackThread,
|
|
91
91
|
shouldSkipLeftSlackThread,
|
|
92
92
|
init_left_threads
|
|
93
|
-
} from "./cli-
|
|
93
|
+
} from "./cli-v8rpjrnx.js";
|
|
94
94
|
import {
|
|
95
95
|
init_zod
|
|
96
96
|
} from "./cli-96234j5w.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ACPAdapter2
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-xc8m5cjn.js";
|
|
4
4
|
import {
|
|
5
5
|
isGrokOpenRouterModel2,
|
|
6
6
|
grokTargetProfile2
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-7fa6yv98.js";
|
|
8
8
|
import {
|
|
9
9
|
getOpenRouterBaseUrl,
|
|
10
10
|
getOpenRouterAttributionHeaders,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
applyOpenRouterBaseUrlOverride2,
|
|
11
11
|
buildOpenAICompatibleProviderBlock2
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-syqcny89.js";
|
|
13
13
|
import {
|
|
14
14
|
getContextWindowSize,
|
|
15
15
|
clampContextPercent,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
resolveTemplateAsync,
|
|
21
21
|
init_resolver,
|
|
22
22
|
init_session_templates
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-b768ek79.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_MODEL_TIER_MAP,
|
|
26
26
|
init_types5
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./cli-0726awxw.js";
|
|
12
12
|
import {
|
|
13
13
|
summarizeSession
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-wsnradtk.js";
|
|
15
15
|
import {
|
|
16
16
|
getMemoryRaterNames,
|
|
17
17
|
init_memory_raters,
|
|
@@ -26,17 +26,17 @@ import {
|
|
|
26
26
|
readIdentityBaselines,
|
|
27
27
|
advanceIdentityBaselines,
|
|
28
28
|
init_profile_sync
|
|
29
|
-
} from "./cli-
|
|
30
|
-
import {
|
|
31
|
-
getOpenRouterAttributionHeaders,
|
|
32
|
-
init_openrouter_base_url
|
|
33
|
-
} from "./cli-dfyv0jdy.js";
|
|
29
|
+
} from "./cli-aytna2fm.js";
|
|
34
30
|
import {
|
|
35
31
|
resolveTemplateFromCode,
|
|
36
32
|
resolveTemplateAsync,
|
|
37
33
|
init_resolver,
|
|
38
34
|
init_session_templates
|
|
39
|
-
} from "./cli-
|
|
35
|
+
} from "./cli-b768ek79.js";
|
|
36
|
+
import {
|
|
37
|
+
getOpenRouterAttributionHeaders,
|
|
38
|
+
init_openrouter_base_url
|
|
39
|
+
} from "./cli-dfyv0jdy.js";
|
|
40
40
|
import {
|
|
41
41
|
isSessionSummarySkipped,
|
|
42
42
|
init_env_flag
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
WORKFLOW_CONTEXT_REQUESTER_SQL,
|
|
14
14
|
init_user_references,
|
|
15
15
|
init_db4
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-e4gx499y.js";
|
|
17
17
|
import {
|
|
18
18
|
nextRestRatio2
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-czeh7x13.js";
|
|
20
20
|
import {
|
|
21
21
|
scrubSecrets,
|
|
22
22
|
init_secret_scrubber
|
|
@@ -51,7 +51,7 @@ async function validateProviderDependencies(provider, config, dependencies = pro
|
|
|
51
51
|
};
|
|
52
52
|
switch (provider) {
|
|
53
53
|
case "claude": {
|
|
54
|
-
const { resolveClaudeBinaryArgv, withClaudeRouteEnv } = await import("./claude-adapter-
|
|
54
|
+
const { resolveClaudeBinaryArgv, withClaudeRouteEnv } = await import("./claude-adapter-knztdnff.js");
|
|
55
55
|
const sourceEnv = withClaudeRouteEnv(env);
|
|
56
56
|
const { argv, useClaudeBridge } = resolveClaudeBinaryArgv(sourceEnv);
|
|
57
57
|
requireExecutable(argv[0], useClaudeBridge ? "Use worker-full or install @desplega.ai/claude-bridge during image provisioning." : "Install Claude Code or set CLAUDE_BINARY to a trusted executable on the worker.", sourceEnv);
|
|
@@ -69,7 +69,7 @@ async function validateProviderDependencies(provider, config, dependencies = pro
|
|
|
69
69
|
case "grok":
|
|
70
70
|
case "fx":
|
|
71
71
|
case "acp": {
|
|
72
|
-
const { resolveAcpTarget, grokTargetProfile, fxTargetProfile } = await import("./acp-targets-
|
|
72
|
+
const { resolveAcpTarget, grokTargetProfile, fxTargetProfile } = await import("./acp-targets-k8xs4tj8.js");
|
|
73
73
|
const target = provider === "grok" ? grokTargetProfile : provider === "fx" ? fxTargetProfile : resolveAcpTarget(config);
|
|
74
74
|
const hint = provider === "grok" ? "Use worker-full, install @xai-official/grok@1.0.77, or set GROK_BINARY to a trusted executable." : provider === "fx" ? "Use worker-full, install the pinned fx release (Dockerfile.worker FX_VERSION), or set FX_BINARY." : `ACP_TARGET='${target.target}'. ${acpInstallHints[target.target]}`;
|
|
75
75
|
requireExecutable(target.command(config)[0], hint, target.env(config));
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
init_key_bootstrap,
|
|
7
7
|
getDbClient2,
|
|
8
8
|
init_db4
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-e4gx499y.js";
|
|
10
10
|
import {
|
|
11
11
|
AgentFsRequestError2,
|
|
12
12
|
agentFsRequest2,
|
|
13
13
|
resolveAgentFsServiceCredentials2,
|
|
14
14
|
init_agent_fs_provision
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-a21cwm89.js";
|
|
16
16
|
import {
|
|
17
17
|
applyFileChange,
|
|
18
18
|
init_objects
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-w24741sm.js";
|
|
20
20
|
import {
|
|
21
21
|
FilesError,
|
|
22
22
|
init_provider,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
acquireOAuthRefreshLock,
|
|
12
12
|
releaseOAuthRefreshLock,
|
|
13
13
|
init_oauth
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-e4gx499y.js";
|
|
15
15
|
import {
|
|
16
16
|
generateRandomCodeVerifier,
|
|
17
17
|
generateRandomState,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
init_build,
|
|
20
20
|
publicEndpointSsrfOptions,
|
|
21
21
|
init_mcp_wrapper
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-gkjw33x5.js";
|
|
23
23
|
import {
|
|
24
24
|
scrubSecrets,
|
|
25
25
|
registerVolatileSecret,
|
|
@@ -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
|
}
|