@desplega.ai/agent-swarm 2.8.0 → 2.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{acp-adapter-t949vbbp.js → acp-adapter-fqzkxyra.js} +3 -3
- package/dist/{actions-7e9czc7s.js → actions-kxek041g.js} +18 -18
- package/dist/{amp-adapter-gv6cbb7d.js → amp-adapter-ce7jjke4.js} +1 -1
- package/dist/{app-b9fbkp9v.js → app-v6zz8yh0.js} +3 -3
- package/dist/{assistant-wjb7v4c7.js → assistant-m0sw9xx2.js} +19 -19
- package/dist/{boot-args-schema-2t37e0fe.js → boot-args-schema-66bk37wv.js} +1 -1
- package/dist/{boot-reembed-gka3zas7.js → boot-reembed-edjpwsc1.js} +1 -1
- package/dist/{boot-reembed-a35nkyr1.js → boot-reembed-y27n09tz.js} +1 -1
- package/dist/{boot-scrub-sweep-65sdnp6c.js → boot-scrub-sweep-1xc35965.js} +3 -3
- package/dist/{boot-seeds-x42tzytw.js → boot-seeds-7hjj91qj.js} +4 -4
- package/dist/{boxd-qbkxy6ap.js → boxd-ent8ch04.js} +1 -1
- package/dist/{claude-adapter-v221b2fd.js → claude-adapter-stw7jdcf.js} +3 -3
- package/dist/{claude-managed-adapter-29eq09wd.js → claude-managed-adapter-jh6c523j.js} +2 -2
- package/dist/{claude-managed-setup-9m6450zk.js → claude-managed-setup-y6z2perp.js} +5 -5
- package/dist/{claude-sdk-session-0q0ptaba.js → claude-sdk-session-vvya8wqk.js} +3 -3
- package/dist/{cli-wk18cm92.js → cli-0cq8y6m7.js} +1 -1
- package/dist/{cli-p1w18yhx.js → cli-1pz0330a.js} +1 -1
- package/dist/{cli-y97qxcfx.js → cli-1qkz151v.js} +3 -3
- package/dist/{cli-qwca7s44.js → cli-26ctbcdp.js} +18 -6
- package/dist/{cli-8fknbnhw.js → cli-2kvhc7x8.js} +7 -7
- package/dist/{cli-rfywm85n.js → cli-3e875j5p.js} +136 -49
- package/dist/{cli-6wxjceza.js → cli-3sy2xags.js} +10 -10
- package/dist/{cli-a7wvp2km.js → cli-3vmb0n58.js} +1 -1
- package/dist/{cli-p1bq50aa.js → cli-4vzgeta4.js} +13 -13
- package/dist/{cli-m28atx8q.js → cli-5y340nzn.js} +4 -4
- package/dist/{cli-7p1kvkck.js → cli-6rc5frdm.js} +1 -1
- package/dist/{cli-tph5wt3y.js → cli-6wj7p986.js} +1 -1
- package/dist/{cli-t73cas91.js → cli-7349va39.js} +8100 -7620
- package/dist/{cli-ee0b971j.js → cli-837vfs2x.js} +2 -2
- package/dist/{cli-abejgen1.js → cli-959kp5h2.js} +12 -11
- package/dist/{cli-8kzasymh.js → cli-97ae65rz.js} +4 -4
- package/dist/{cli-m4dqmnbp.js → cli-9mb2q6pb.js} +1 -1
- package/dist/{cli-p2gfst4m.js → cli-a0z912j7.js} +123 -35
- package/dist/{cli-4txa0ter.js → cli-b98a65ed.js} +3 -3
- package/dist/{cli-k0wwfqbg.js → cli-dns0y538.js} +4 -0
- package/dist/{cli-tk7cjj8h.js → cli-dzpc6en0.js} +1 -1
- package/dist/{cli-qa4wdgsy.js → cli-e1p3n5gq.js} +4 -4
- package/dist/{cli-gxkx0zzp.js → cli-f4e8r23x.js} +1 -1
- package/dist/{cli-qmqk2yc2.js → cli-f4r3g076.js} +1 -1
- package/dist/{cli-wcg8x116.js → cli-f6bahpn5.js} +1 -1
- package/dist/{cli-qsnnd04k.js → cli-fpjmegdb.js} +1 -1
- package/dist/{cli-j790gp2w.js → cli-fwy8kfd6.js} +271 -37
- package/dist/{cli-rmmpt0wm.js → cli-g5mtmf6t.js} +6 -6
- package/dist/{cli-rzsy6nc6.js → cli-gyt3zydq.js} +3 -3
- package/dist/{cli-pasjcnmj.js → cli-j24zbska.js} +3 -3
- package/dist/{cli-qfedvmcr.js → cli-jdknh18m.js} +10 -10
- package/dist/{cli-7b8sbmag.js → cli-kjtwrhea.js} +1 -1
- package/dist/{cli-gpwhbgx0.js → cli-m9s2qff2.js} +57 -25
- package/dist/{cli-2wnq8jkz.js → cli-mxn1qvbn.js} +3 -2
- package/dist/{cli-s7t6p9my.js → cli-n6vtrcht.js} +1 -1
- package/dist/{cli-2zp0et3v.js → cli-pchypa1s.js} +55 -19
- package/dist/{cli-yq3zak69.js → cli-pfs8adn4.js} +1 -1
- package/dist/{cli-c55z5chy.js → cli-q24n86d2.js} +2 -2
- package/dist/{cli-h38x262p.js → cli-rcecc3yq.js} +167 -43
- package/dist/{cli-xae4g51r.js → cli-rh15cakt.js} +1 -1
- package/dist/{cli-sdtt3men.js → cli-rmzsadkf.js} +1 -1
- package/dist/{cli-f3vq58d2.js → cli-t2tma8gb.js} +1 -1
- package/dist/{cli-m23zjcy2.js → cli-tekytdq9.js} +2 -2
- package/dist/{cli-tqegb8eq.js → cli-vdektqgf.js} +1 -1
- package/dist/{cli-ffhtssbp.js → cli-vj75tyaw.js} +1 -1
- package/dist/{cli-deefvewm.js → cli-w401b9tq.js} +1 -1
- package/dist/{cli-n9ftpys4.js → cli-x6t50dmw.js} +7 -7
- package/dist/{cli-6t09sdhy.js → cli-xf3qw745.js} +3 -3
- package/dist/{cli-hxpyc9sn.js → cli-z1w943va.js} +2 -2
- package/dist/{cli-334z18y3.js → cli-zh9rsbqf.js} +3 -3
- package/dist/cli.js +17 -17
- package/dist/{codex-adapter-30j9bpzd.js → codex-adapter-zerf5qsp.js} +1 -1
- package/dist/{codex-hook-h3vk6xzr.js → codex-hook-30gyhzxe.js} +1 -1
- package/dist/{codex-session-runner-8vp57v8w.js → codex-session-runner-89s304py.js} +1 -1
- package/dist/{commands-bngnz9g7.js → commands-jeh1b51j.js} +3 -3
- package/dist/{controller-hxx8wwy1.js → controller-mctfbrse.js} +3 -3
- package/dist/{controllers-connect-e2b4gyxc.js → controllers-connect-nxa1ddwn.js} +19 -19
- package/dist/{cursor-adapter-n5nc3mfe.js → cursor-adapter-qj8vehv6.js} +1 -1
- package/dist/{db-bgm7vkc0.js → db-2dvay0es.js} +3 -3
- package/dist/{db-c6np41ca.js → db-b36qn6k3.js} +2 -2
- package/dist/{dispatcher-jnybck15.js → dispatcher-gndbta01.js} +17 -17
- package/dist/{dsh-adapter-nrhbrjz8.js → dsh-adapter-f75sz821.js} +1 -1
- package/dist/{e2b-jkwfhbcv.js → e2b-3gpc2n3w.js} +1 -1
- package/dist/{e2b-s16txnpx.js → e2b-jbm7mj93.js} +1 -1
- package/dist/{embedding-space-crsm2zp0.js → embedding-space-4p05vb2x.js} +6 -6
- package/dist/{embeddings-e7z3f27f.js → embeddings-m6768mgh.js} +1 -1
- package/dist/{external-channel-m77wf5z3.js → external-channel-gjv3jne3.js} +2 -2
- package/dist/{fx-adapter-b6w0kf56.js → fx-adapter-rpsgb1tw.js} +4 -4
- package/dist/{grok-adapter-4sqtebdk.js → grok-adapter-n2m3zjg1.js} +4 -4
- package/dist/handlers-nv8edn19.js +32 -0
- package/dist/{heartbeat-xgb036sx.js → heartbeat-a1tv60gt.js} +20 -20
- package/dist/{hook-xsk1jbha.js → hook-8h5dzcgq.js} +2 -2
- package/dist/{hook-5h02c9ga.js → hook-cyaps9ba.js} +4 -4
- package/dist/{http-txe7qhvn.js → http-t15mhbd9.js} +1733 -79
- package/dist/{index-0eny15vj.js → index-2skqtd76.js} +2 -2
- package/dist/{index-w7em4ktq.js → index-d6wkh8ar.js} +2 -2
- package/dist/{index-rvccek1w.js → index-gjwaqaq8.js} +5 -5
- package/dist/{index-e5pfbsys.js → index-hjhfk3ra.js} +3 -3
- package/dist/{index-1qw6f2dc.js → index-khe3gp0k.js} +4 -4
- package/dist/index-ksmyd6kc.js +37 -0
- package/dist/{index-vk63emp7.js → index-qav6455f.js} +14 -12
- package/dist/index-rjnrje98.js +32 -0
- package/dist/index-tv3413wy.js +33 -0
- package/dist/{index-ysvbhg5m.js → index-w1zqf680.js} +1 -1
- package/dist/{keepalive-4zsrce78.js → keepalive-91s7hzrb.js} +3 -3
- package/dist/lead-3hmddvrm.js +70 -0
- package/dist/{maintenance-86jvartk.js → maintenance-7pjmy5xy.js} +1 -1
- package/dist/{node-je82wjet.js → node-4c5jqxr3.js} +1 -1
- package/dist/{oauth-refresh-sweep-j52kg9pr.js → oauth-refresh-sweep-rzqfm94j.js} +2 -2
- package/dist/{onboard-c2aj5p8q.js → onboard-74st7pag.js} +3 -3
- package/dist/{opencode-adapter-dsagkhtw.js → opencode-adapter-arn7gm8q.js} +2 -2
- package/dist/{otel-impl-yyy203z8.js → otel-impl-rnzey8cb.js} +1 -1
- package/dist/{pi-mono-adapter-546cd1cc.js → pi-mono-adapter-6mkwq64n.js} +3 -2
- package/dist/{pricing-refresh-1rgzqyzz.js → pricing-refresh-ha21jhk7.js} +2 -2
- package/dist/{rbac-roles-e70xfeyj.js → rbac-roles-59dxachk.js} +2 -2
- package/dist/{rbac-roles-q89qe8er.js → rbac-roles-wqhma4dr.js} +3 -3
- package/dist/{render-v2-k6tt107q.js → render-v2-14kpzx12.js} +3 -3
- package/dist/{resume-cnnrjfxa.js → resume-gsa5fb5f.js} +6 -6
- package/dist/{session-access-xkxkjw3n.js → session-access-skm7bnp6.js} +4 -4
- package/dist/{session-source-backfill-1d5pdwww.js → session-source-backfill-pbqzbncv.js} +2 -2
- package/dist/{setup-se8q7gkc.js → setup-5yermsem.js} +1 -1
- package/dist/{work-objects-1kxnbzy5.js → work-objects-xj0ck0w4.js} +20 -20
- package/dist/{worker-follow-up-zqm8apt4.js → worker-follow-up-911xc0b8.js} +19 -17
- package/dist/worker-qgg0m2gw.js +70 -0
- package/openapi.json +1741 -290
- package/package.json +3 -3
- package/src/apps/catalog.generated.json +120 -1
- package/src/apps/definition.ts +38 -11
- package/src/apps/page-validator.ts +88 -0
- package/src/be/db/model-profiles.ts +110 -11
- package/src/be/db/tasks/read.ts +20 -0
- package/src/be/db/workflow-run-definitions.ts +19 -8
- package/src/be/db-client.ts +43 -5
- package/src/be/db.ts +9 -3
- package/src/be/migrations/284_model_profile_fallbacks.sql +9 -0
- package/src/be/model-profile-check.ts +43 -18
- package/src/be/runtime-pools/routing.ts +1 -0
- package/src/be/savings/calibrate.ts +468 -0
- package/src/be/savings/compute.ts +182 -0
- package/src/be/savings/model.ts +406 -0
- package/src/be/scripts/typecheck.ts +5 -0
- package/src/be/seed/agent-fs-provision.ts +48 -11
- package/src/be/seed/workflows-seeder.ts +67 -23
- package/src/be/skill-parser.ts +19 -7
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/commands/provider-error-class.ts +97 -0
- package/src/commands/runner.ts +99 -17
- package/src/extensions/contract-types.generated.ts +1 -1
- package/src/http/all-routes.ts +2 -0
- package/src/http/fs.ts +8 -2
- package/src/http/index.ts +4 -0
- package/src/http/model-profiles.ts +43 -10
- package/src/http/poll.ts +1 -0
- package/src/http/savings-calibration.ts +277 -0
- package/src/http/savings.ts +363 -0
- package/src/http/tasks.ts +46 -4
- package/src/http/trackers/authorize-gate.ts +41 -0
- package/src/http/trackers/jira.ts +26 -4
- package/src/http/trackers/linear.ts +26 -4
- package/src/integrations/chat-sdk/limits.ts +6 -1
- package/src/jira/oauth.ts +7 -1
- package/src/linear/README.md +2 -1
- package/src/linear/oauth.ts +7 -1
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/codex-adapter.ts +3 -0
- package/src/providers/pi-mono-adapter.ts +6 -5
- package/src/providers/types.ts +7 -0
- package/src/scripts-runtime/eval-harness.ts +14 -1
- package/src/scripts-runtime/executors/types.ts +3 -0
- package/src/scripts-runtime/sdk-allowlist.ts +11 -1
- package/src/scripts-runtime/swarm-sdk.ts +6 -0
- package/src/scripts-runtime/types/stdlib.d.ts +9 -0
- package/src/scripts-runtime/types/swarm-extension.d.ts +34 -0
- package/src/scripts-runtime/types/swarm-sdk.d.ts +9 -0
- package/src/tasks/worker-follow-up.ts +142 -3
- package/src/tests/agent-fs-provision-seeder.test.ts +81 -0
- package/src/tests/apps-chart-shell.test.ts +170 -0
- package/src/tests/apps-icon.test.ts +156 -2
- package/src/tests/chat-sdk-relay.test.ts +12 -0
- package/src/tests/codex-adapter.test.ts +11 -0
- package/src/tests/comb-default.test.ts +6 -0
- package/src/tests/core-auth.test.ts +7 -6
- package/src/tests/db-client-busy-retry.test.ts +58 -6
- package/src/tests/deploy-guard.test.ts +154 -0
- package/src/tests/docs-index-footprint.test.js +3 -3
- package/src/tests/fixtures/app-shell-charts-definition.json.txt +180 -0
- package/src/tests/mcp-tools.test.ts +1 -1
- package/src/tests/model-profile-fallbacks.test.ts +482 -0
- package/src/tests/model-profiles-api.test.ts +1 -0
- package/src/tests/pi-mono-session-cost-on-abort.test.ts +115 -0
- package/src/tests/provider-error-class.test.ts +174 -0
- package/src/tests/runner-provider-fallback.test.ts +197 -0
- package/src/tests/savings-calibration-api.test.ts +264 -0
- package/src/tests/savings-calibration.test.ts +201 -0
- package/src/tests/savings-compute.test.ts +406 -0
- package/src/tests/savings-model.test.ts +287 -0
- package/src/tests/script-connections.test.ts +2 -0
- package/src/tests/script-native-unawaited-drain.test.ts +167 -0
- package/src/tests/sdk-allowlist.test.ts +40 -0
- package/src/tests/seed-workflows.test.ts +167 -11
- package/src/tests/skill-parser.test.ts +45 -0
- package/src/tests/tracker-oauth-authorize-auth.test.ts +262 -0
- package/src/tests/workflow-definition-pinning.test.ts +128 -3
- package/src/tests/workflow-script-principal.test.ts +94 -4
- package/src/tools/app-upsert.ts +1 -1
- package/src/tools/model-profiles/list-model-profiles.ts +4 -2
- package/src/tools/script-run.ts +1 -1
- package/src/tools/update-profile.ts +1 -1
- package/src/types.ts +115 -33
- package/src/utils/constants.ts +2 -0
- package/templates/skills/apps/SKILL.md +62 -3
- package/templates/skills/apps/content.md +62 -3
- package/templates/skills/swarm-docs/content.md +2 -0
- package/templates/skills/swarm-scripts/SKILL.md +1 -1
- package/templates/skills/swarm-scripts/content.md +1 -1
- package/dist/handlers-kdjcyzdj.js +0 -32
- package/dist/index-835xdgnm.js +0 -33
- package/dist/index-d469300x.js +0 -37
- package/dist/index-rzqwp11g.js +0 -32
- package/dist/lead-yqt47dkr.js +0 -70
- package/dist/worker-j6xxtq7p.js +0 -70
|
@@ -138,6 +138,7 @@ import {
|
|
|
138
138
|
findRecentCancelledTaskInThread2,
|
|
139
139
|
init_read,
|
|
140
140
|
listModelProfiles,
|
|
141
|
+
getModelProfileByName,
|
|
141
142
|
modelProfileRefError,
|
|
142
143
|
taskProfileError,
|
|
143
144
|
scheduleProfileUpdate,
|
|
@@ -375,23 +376,23 @@ import {
|
|
|
375
376
|
recordInlineScriptRun2,
|
|
376
377
|
exports_db,
|
|
377
378
|
init_db4
|
|
378
|
-
} from "./cli-
|
|
379
|
+
} from "./cli-rcecc3yq.js";
|
|
379
380
|
import {
|
|
380
381
|
assertMayActOnOperatorGrantedTarget2,
|
|
381
382
|
getUserGrant2,
|
|
382
383
|
init_rbac_roles
|
|
383
|
-
} from "./cli-
|
|
384
|
+
} from "./cli-q24n86d2.js";
|
|
384
385
|
import {
|
|
385
386
|
ensurePricingSeeded2,
|
|
386
387
|
ensureRbacSeeded2,
|
|
387
388
|
ensureModelProfilesSeeded2,
|
|
388
389
|
init_boot_seeds
|
|
389
|
-
} from "./cli-
|
|
390
|
+
} from "./cli-b98a65ed.js";
|
|
390
391
|
import {
|
|
391
392
|
requestModelCatalogRefresh2,
|
|
392
393
|
startPricingRefreshLoop2,
|
|
393
394
|
init_pricing_refresh
|
|
394
|
-
} from "./cli-
|
|
395
|
+
} from "./cli-t2tma8gb.js";
|
|
395
396
|
import {
|
|
396
397
|
workflowEventBus2,
|
|
397
398
|
init_event_bus
|
|
@@ -404,7 +405,7 @@ import {
|
|
|
404
405
|
externalChannelToolError2,
|
|
405
406
|
getChannelBlockReason2,
|
|
406
407
|
init_external_channel
|
|
407
|
-
} from "./cli-
|
|
408
|
+
} from "./cli-fpjmegdb.js";
|
|
408
409
|
import {
|
|
409
410
|
noteSlackInboundSideEffect,
|
|
410
411
|
init_inbound_dispatch,
|
|
@@ -443,7 +444,7 @@ import {
|
|
|
443
444
|
startSlackApp2,
|
|
444
445
|
stopSlackAppUnderLifecycleLock2,
|
|
445
446
|
init_app3
|
|
446
|
-
} from "./cli-
|
|
447
|
+
} from "./cli-4vzgeta4.js";
|
|
447
448
|
import {
|
|
448
449
|
shapeApprovalResolution,
|
|
449
450
|
init_approval_resolution,
|
|
@@ -467,7 +468,7 @@ import {
|
|
|
467
468
|
resumeFromChildRun2,
|
|
468
469
|
initWaitBusSubscriptions2,
|
|
469
470
|
init_resume
|
|
470
|
-
} from "./cli-
|
|
471
|
+
} from "./cli-j24zbska.js";
|
|
471
472
|
import {
|
|
472
473
|
FilesError,
|
|
473
474
|
providerPath,
|
|
@@ -481,11 +482,11 @@ import {
|
|
|
481
482
|
import {
|
|
482
483
|
tableToAscii2,
|
|
483
484
|
init_dist4
|
|
484
|
-
} from "./cli-
|
|
485
|
+
} from "./cli-x6t50dmw.js";
|
|
485
486
|
import {
|
|
486
487
|
getRuntimePool2,
|
|
487
488
|
init_db2
|
|
488
|
-
} from "./cli-
|
|
489
|
+
} from "./cli-97ae65rz.js";
|
|
489
490
|
import {
|
|
490
491
|
duplicateGuardedQueryKey,
|
|
491
492
|
parseQueryParams,
|
|
@@ -518,7 +519,7 @@ import {
|
|
|
518
519
|
findRoute,
|
|
519
520
|
route,
|
|
520
521
|
init_route_def
|
|
521
|
-
} from "./cli-
|
|
522
|
+
} from "./cli-5y340nzn.js";
|
|
522
523
|
import {
|
|
523
524
|
COMPOSIO_HTTP_METHODS,
|
|
524
525
|
executeComposioRequest,
|
|
@@ -620,7 +621,7 @@ import {
|
|
|
620
621
|
init_typecheck,
|
|
621
622
|
parseSkillContent,
|
|
622
623
|
init_skill_parser
|
|
623
|
-
} from "./cli-
|
|
624
|
+
} from "./cli-fwy8kfd6.js";
|
|
624
625
|
import {
|
|
625
626
|
detachedProcessGroup,
|
|
626
627
|
registerProcessGroup,
|
|
@@ -635,7 +636,7 @@ import {
|
|
|
635
636
|
ensureToken,
|
|
636
637
|
ensureTokenOrThrow,
|
|
637
638
|
init_ensure_token
|
|
638
|
-
} from "./cli-
|
|
639
|
+
} from "./cli-rmzsadkf.js";
|
|
639
640
|
import {
|
|
640
641
|
require_fast_deep_equal
|
|
641
642
|
} from "./cli-bhp11egn.js";
|
|
@@ -730,7 +731,7 @@ import {
|
|
|
730
731
|
validateDefinition,
|
|
731
732
|
applyDefinitionPatch,
|
|
732
733
|
init_definition2
|
|
733
|
-
} from "./cli-
|
|
734
|
+
} from "./cli-jdknh18m.js";
|
|
734
735
|
import {
|
|
735
736
|
isMultiRuntimeEnabled,
|
|
736
737
|
init_multi_runtime2
|
|
@@ -751,15 +752,15 @@ import {
|
|
|
751
752
|
isSlackLeaveThreadDisabled,
|
|
752
753
|
leaveSlackThread,
|
|
753
754
|
init_left_threads
|
|
754
|
-
} from "./cli-
|
|
755
|
+
} from "./cli-3vmb0n58.js";
|
|
755
756
|
import {
|
|
756
757
|
publicEndpointSsrfOptions,
|
|
757
758
|
init_mcp_wrapper
|
|
758
|
-
} from "./cli-
|
|
759
|
+
} from "./cli-n6vtrcht.js";
|
|
759
760
|
import {
|
|
760
761
|
canProvisionKind,
|
|
761
762
|
init_runtime_providers
|
|
762
|
-
} from "./cli-
|
|
763
|
+
} from "./cli-z1w943va.js";
|
|
763
764
|
import {
|
|
764
765
|
findUserById,
|
|
765
766
|
findUserByExternalId,
|
|
@@ -774,7 +775,7 @@ import {
|
|
|
774
775
|
resolveSessionToken,
|
|
775
776
|
fingerprintApiKey,
|
|
776
777
|
init_users
|
|
777
|
-
} from "./cli-
|
|
778
|
+
} from "./cli-f4e8r23x.js";
|
|
778
779
|
import {
|
|
779
780
|
normalizeAssetKey,
|
|
780
781
|
SESSION_RESOURCE_KINDS,
|
|
@@ -843,7 +844,7 @@ import {
|
|
|
843
844
|
KvNamespaceSchema,
|
|
844
845
|
KvKeySchema,
|
|
845
846
|
init_types4
|
|
846
|
-
} from "./cli-
|
|
847
|
+
} from "./cli-pchypa1s.js";
|
|
847
848
|
import {
|
|
848
849
|
generateDefaultClaudeMd2,
|
|
849
850
|
generateDefaultSoulMd2,
|
|
@@ -854,7 +855,7 @@ import {
|
|
|
854
855
|
init_task_attachment_links,
|
|
855
856
|
contentSha256,
|
|
856
857
|
init_profile_sync
|
|
857
|
-
} from "./cli-
|
|
858
|
+
} from "./cli-dzpc6en0.js";
|
|
858
859
|
import {
|
|
859
860
|
getSlackConfiguration,
|
|
860
861
|
isSlackConfigured,
|
|
@@ -912,7 +913,7 @@ import {
|
|
|
912
913
|
import {
|
|
913
914
|
init_package,
|
|
914
915
|
package_default
|
|
915
|
-
} from "./cli-
|
|
916
|
+
} from "./cli-zh9rsbqf.js";
|
|
916
917
|
import {
|
|
917
918
|
realtimeBus,
|
|
918
919
|
init_bus
|
|
@@ -929,7 +930,7 @@ import {
|
|
|
929
930
|
getCombState,
|
|
930
931
|
isAgentFsProxyEnabled,
|
|
931
932
|
init_constants3
|
|
932
|
-
} from "./cli-
|
|
933
|
+
} from "./cli-dns0y538.js";
|
|
933
934
|
import {
|
|
934
935
|
parseEnvFlag,
|
|
935
936
|
isEnvFlagEnabled,
|
|
@@ -20302,7 +20303,7 @@ function startRetryPoller(registry, intervalMs = 5000) {
|
|
|
20302
20303
|
if (!waiting)
|
|
20303
20304
|
continue;
|
|
20304
20305
|
if (result.waitFor === "workflow.child.finished") {
|
|
20305
|
-
const { resumeFromChildRun } = await import("./resume-
|
|
20306
|
+
const { resumeFromChildRun } = await import("./resume-gsa5fb5f.js");
|
|
20306
20307
|
await resumeFromChildRun(step.id, registry);
|
|
20307
20308
|
}
|
|
20308
20309
|
} else {
|
|
@@ -21048,7 +21049,7 @@ var init_notify = __esm(() => {
|
|
|
21048
21049
|
}
|
|
21049
21050
|
}
|
|
21050
21051
|
case "slack": {
|
|
21051
|
-
const { getSlackApp } = await import("./app-
|
|
21052
|
+
const { getSlackApp } = await import("./app-v6zz8yh0.js");
|
|
21052
21053
|
let app = getSlackApp();
|
|
21053
21054
|
if (!app) {
|
|
21054
21055
|
if (!isSlackConfigured()) {
|
|
@@ -23658,7 +23659,7 @@ var init_db = __esm(() => {
|
|
|
23658
23659
|
|
|
23659
23660
|
// src/scripts-runtime/sdk-allowlist.ts
|
|
23660
23661
|
function isSdkToolAllowed(name) {
|
|
23661
|
-
return SDK_ALLOWLIST.includes(name);
|
|
23662
|
+
return SDK_ALLOWLIST.includes(name) || REST_ONLY_SDK_METHODS.includes(name);
|
|
23662
23663
|
}
|
|
23663
23664
|
function isMcpToolAllowedForScripts(mcpToolName) {
|
|
23664
23665
|
return MCP_TOOL_NAMES.has(mcpToolName);
|
|
@@ -23666,7 +23667,7 @@ function isMcpToolAllowedForScripts(mcpToolName) {
|
|
|
23666
23667
|
function mcpToolNameForSdkMethod(name) {
|
|
23667
23668
|
return SDK_TOOL_NAME_MAP[name] ?? name;
|
|
23668
23669
|
}
|
|
23669
|
-
var SDK_TOOL_NAME_MAP, SDK_ALLOWLIST, MCP_TOOL_NAMES;
|
|
23670
|
+
var SDK_TOOL_NAME_MAP, SDK_ALLOWLIST, MCP_TOOL_NAMES, REST_ONLY_SDK_METHODS;
|
|
23670
23671
|
var init_sdk_allowlist = __esm(() => {
|
|
23671
23672
|
SDK_TOOL_NAME_MAP = {
|
|
23672
23673
|
memory_search: "memory-search",
|
|
@@ -23828,6 +23829,7 @@ var init_sdk_allowlist = __esm(() => {
|
|
|
23828
23829
|
};
|
|
23829
23830
|
SDK_ALLOWLIST = Object.keys(SDK_TOOL_NAME_MAP);
|
|
23830
23831
|
MCP_TOOL_NAMES = new Set(Object.values(SDK_TOOL_NAME_MAP));
|
|
23832
|
+
REST_ONLY_SDK_METHODS = ["savings_calibrationGet", "savings_calibrationRun"];
|
|
23831
23833
|
});
|
|
23832
23834
|
|
|
23833
23835
|
// src/kv-overflow.ts
|
|
@@ -24470,7 +24472,7 @@ function setPreloadedTools(server, names) {
|
|
|
24470
24472
|
async function applyPreToolCall(name, args, requestInfo, inputSchema) {
|
|
24471
24473
|
if (requestInfo.callOrigin !== "mcp")
|
|
24472
24474
|
return { args };
|
|
24473
|
-
const dispatcher = await import("./dispatcher-
|
|
24475
|
+
const dispatcher = await import("./dispatcher-gndbta01.js");
|
|
24474
24476
|
const result = await dispatcher.dispatchPre("pre.tool.call", { tool: name, args, requestInfo }, inputSchema ? {
|
|
24475
24477
|
validateModify: async (data) => {
|
|
24476
24478
|
const schema = normalizeObjectSchema(inputSchema) ?? inputSchema;
|
|
@@ -25264,6 +25266,10 @@ function bridgeRequestFor(name, args) {
|
|
|
25264
25266
|
return { method: "POST", path: "/api/scripts/search", body };
|
|
25265
25267
|
case "script_run":
|
|
25266
25268
|
return { method: "POST", path: "/api/scripts/run", body };
|
|
25269
|
+
case "savings_calibrationGet":
|
|
25270
|
+
return { method: "GET", path: "/api/savings/calibration" };
|
|
25271
|
+
case "savings_calibrationRun":
|
|
25272
|
+
return { method: "POST", path: "/api/savings/calibration", body };
|
|
25267
25273
|
case "db_query":
|
|
25268
25274
|
return { method: "POST", path: "/api/db-query", body };
|
|
25269
25275
|
case "swarm_get":
|
|
@@ -31984,7 +31990,7 @@ async function loadAdapter(name, config, logger) {
|
|
|
31984
31990
|
const base = { ...config, apiUrl, logger };
|
|
31985
31991
|
switch (name) {
|
|
31986
31992
|
case "telegram": {
|
|
31987
|
-
const { TelegramAdapter } = await import("./index-
|
|
31993
|
+
const { TelegramAdapter } = await import("./index-gjwaqaq8.js");
|
|
31988
31994
|
|
|
31989
31995
|
class SwarmTelegramAdapter extends TelegramAdapter {
|
|
31990
31996
|
isBotMentioned(message, text) {
|
|
@@ -31998,7 +32004,7 @@ async function loadAdapter(name, config, logger) {
|
|
|
31998
32004
|
});
|
|
31999
32005
|
}
|
|
32000
32006
|
case "slack": {
|
|
32001
|
-
const { createSlackAdapter } = await import("./index-
|
|
32007
|
+
const { createSlackAdapter } = await import("./index-2skqtd76.js");
|
|
32002
32008
|
return createSlackAdapter({
|
|
32003
32009
|
...base,
|
|
32004
32010
|
signingSecret: config.signingSecret ?? "",
|
|
@@ -32008,7 +32014,7 @@ async function loadAdapter(name, config, logger) {
|
|
|
32008
32014
|
});
|
|
32009
32015
|
}
|
|
32010
32016
|
case "discord": {
|
|
32011
|
-
const { createDiscordAdapter } = await import("./index-
|
|
32017
|
+
const { createDiscordAdapter } = await import("./index-d6wkh8ar.js");
|
|
32012
32018
|
return createDiscordAdapter({
|
|
32013
32019
|
...base,
|
|
32014
32020
|
logger: withInfoFilter(logger, keepDiscordInfoLine),
|
|
@@ -32017,7 +32023,7 @@ async function loadAdapter(name, config, logger) {
|
|
|
32017
32023
|
});
|
|
32018
32024
|
}
|
|
32019
32025
|
case "teams": {
|
|
32020
|
-
const { createTeamsAdapter } = await import("./index-
|
|
32026
|
+
const { createTeamsAdapter } = await import("./index-khe3gp0k.js");
|
|
32021
32027
|
const { teamsWebhookVerifier, teamsToken } = getChatSdkTestHooks();
|
|
32022
32028
|
return createTeamsAdapter({
|
|
32023
32029
|
...base,
|
|
@@ -32226,7 +32232,7 @@ async function readPersistedThreadHistory(threadId) {
|
|
|
32226
32232
|
const rows = await new SqliteChatState().getList(`${SDK_THREAD_HISTORY_PREFIX}${threadId}`);
|
|
32227
32233
|
if (rows.length === 0)
|
|
32228
32234
|
return [];
|
|
32229
|
-
const { Message: MessageClass } = await import("./index-
|
|
32235
|
+
const { Message: MessageClass } = await import("./index-hjhfk3ra.js");
|
|
32230
32236
|
return rows.map((row) => MessageClass.fromJSON(row));
|
|
32231
32237
|
}
|
|
32232
32238
|
var SDK_THREAD_HISTORY_PREFIX = "msg-history:";
|
|
@@ -33329,8 +33335,9 @@ function splitChatMessage(text, limit) {
|
|
|
33329
33335
|
if (cut < minBreak) {
|
|
33330
33336
|
cut = limit;
|
|
33331
33337
|
const code = rest.charCodeAt(cut - 1);
|
|
33332
|
-
if (code >= 55296 && code <= 56319)
|
|
33333
|
-
cut
|
|
33338
|
+
if (code >= 55296 && code <= 56319) {
|
|
33339
|
+
cut = cut > 1 ? cut - 1 : cut + 1;
|
|
33340
|
+
}
|
|
33334
33341
|
}
|
|
33335
33342
|
chunks.push(rest.slice(0, cut).trimEnd());
|
|
33336
33343
|
rest = rest.slice(cut).replace(/^[\n ]+/, "");
|
|
@@ -34770,7 +34777,7 @@ async function startChatSdk() {
|
|
|
34770
34777
|
for (const [name, reason] of Object.entries(config.incomplete ?? {})) {
|
|
34771
34778
|
console.warn(`[chat-sdk] ${name} not started, incomplete: ${scrubSecrets(reason)}`);
|
|
34772
34779
|
}
|
|
34773
|
-
const { Chat: ChatClass } = await import("./index-
|
|
34780
|
+
const { Chat: ChatClass } = await import("./index-hjhfk3ra.js");
|
|
34774
34781
|
const state = new SqliteChatState;
|
|
34775
34782
|
startChatRelayWatcher();
|
|
34776
34783
|
await Promise.all(CHAT_SDK_ADAPTER_NAMES.map(async (name) => {
|
|
@@ -35677,7 +35684,7 @@ async function notifySlack(text) {
|
|
|
35677
35684
|
return;
|
|
35678
35685
|
}
|
|
35679
35686
|
try {
|
|
35680
|
-
const { getSlackApp } = await import("./app-
|
|
35687
|
+
const { getSlackApp } = await import("./app-v6zz8yh0.js");
|
|
35681
35688
|
const app = getSlackApp();
|
|
35682
35689
|
if (!app) {
|
|
35683
35690
|
console.warn("[Jira webhook keepalive] Slack not available, cannot send notification");
|
|
@@ -35748,7 +35755,7 @@ async function deleteJiraWebhook(webhookId) {
|
|
|
35748
35755
|
console.log(`[Jira webhook keepalive] Deleted webhook id=${webhookId}`);
|
|
35749
35756
|
}
|
|
35750
35757
|
async function overwriteWebhookIds(next) {
|
|
35751
|
-
const { getDbClient } = await import("./db-
|
|
35758
|
+
const { getDbClient } = await import("./db-b36qn6k3.js");
|
|
35752
35759
|
await getDbClient().transaction(async (tx) => {
|
|
35753
35760
|
const row = await tx.get("SELECT metadata FROM oauth_apps WHERE provider = 'jira'");
|
|
35754
35761
|
if (!row) {
|
|
@@ -109243,7 +109250,7 @@ async function reloadGlobalConfigsAndIntegrations() {
|
|
|
109243
109250
|
return runWithoutRequestAuth(() => runSlackLifecycleExclusive(() => reloadGlobalConfigsAndIntegrationsInner()));
|
|
109244
109251
|
}
|
|
109245
109252
|
async function reloadGlobalConfigsAndIntegrationsInner() {
|
|
109246
|
-
const { getEmbeddingProvider, resetEmbeddingProvider } = await import("./index-
|
|
109253
|
+
const { getEmbeddingProvider, resetEmbeddingProvider } = await import("./index-w1zqf680.js");
|
|
109247
109254
|
const wasEmbeddingsConfigured = getEmbeddingProvider().isConfigured();
|
|
109248
109255
|
const updated = await loadGlobalConfigsIntoEnv(true);
|
|
109249
109256
|
await syncTelemetryEnabled("settings").catch((err) => {
|
|
@@ -109259,7 +109266,7 @@ async function reloadGlobalConfigsAndIntegrationsInner() {
|
|
|
109259
109266
|
integrations.push("embeddings");
|
|
109260
109267
|
}
|
|
109261
109268
|
if (isEmbeddingsConfigured) {
|
|
109262
|
-
import("./embedding-space-
|
|
109269
|
+
import("./embedding-space-4p05vb2x.js").then(({ runEmbeddingMaintenance }) => runEmbeddingMaintenance({ backfill: !wasEmbeddingsConfigured })).catch((err) => {
|
|
109263
109270
|
console.error("[config-reload] embedding maintenance failed (non-fatal):", err);
|
|
109264
109271
|
});
|
|
109265
109272
|
}
|
|
@@ -114268,7 +114275,7 @@ var init_app_sync = __esm(() => {
|
|
|
114268
114275
|
var registerAppUpsertTool = (server) => {
|
|
114269
114276
|
createToolRegistrar(server)("app-upsert", {
|
|
114270
114277
|
title: "Create or update an app",
|
|
114271
|
-
description: `Stores a schema-backed app definition with models, queries/actions, pages, reusable elements, optional userConfig fields, an optional top-level theme (a dashboard preset slug for the app's canvas: hive (stock; omit to inherit the viewer's theme), meadow, iris, rose, cobalt, ember, carbon, paper (the warm editorial paper look), plus the classic presets github, vscode, material, solarized, tokyo, monokai, gruvbox, catppuccin; viewers can override it per-user; unknown slugs degrade to the viewer's dashboard theme), and an optional top-level icon
|
|
114278
|
+
description: `Stores a schema-backed app definition with models, queries/actions, pages, reusable elements, optional userConfig fields, an optional top-level theme (a dashboard preset slug for the app's canvas: hive (stock; omit to inherit the viewer's theme), meadow, iris, rose, cobalt, ember, carbon, paper (the warm editorial paper look), plus the classic presets github, vscode, material, solarized, tokyo, monokai, gruvbox, catppuccin; viewers can override it per-user; unknown slugs degrade to the viewer's dashboard theme), and an optional top-level icon shown on the dashboard Apps page, one of { type: "lucide", icon: "<kebab-case lucide icon name>", color?: "#RRGGBB" } (an unrecognized name shows a generic default), { type: "url", url: "https://..." } (https only, no credentials), or { type: "agent-fs", path: "/apps/<appId>/icon.png" } (swarm drive; add orgId and driveId for another drive); the dashboard shows a glyph when an image cannot load, and a patch replaces icon whole, then returns its dashboard URL. userConfig is versioned schema only; each user's values are stored separately, survive rollback, and schema changes are always compatible. Pages may bind a declared field read-only at exactly /user/<field>; pure and bound reusable elements must receive that value through a prop. Elements are private by default: pure elements read declared props, allow $item/$index inside repeats, may expose one leaf ElementSlot, and cannot invoke actions; bound elements may use the defining app's queries/actions, while exported bound elements cannot navigate. Prop kinds include enum with a required non-empty enum values array. Pages or elements reuse them with literal ElementRef targets, and cross-app refs require export: true. Zero-model pure-UI apps are valid. Pass appId to update; breaking a referenced export is blocked by the compatibility gate unless forceElementBreak explicitly names it.`,
|
|
114272
114279
|
annotations: { destructiveHint: false },
|
|
114273
114280
|
inputSchema: object2({
|
|
114274
114281
|
name: string2().min(1).describe("Human-readable app name."),
|
|
@@ -119111,6 +119118,72 @@ function inheritedModelSelection2(parent) {
|
|
|
119111
119118
|
...parent.profile ? { profile: parent.profile } : {}
|
|
119112
119119
|
};
|
|
119113
119120
|
}
|
|
119121
|
+
async function nextFallback2(parent, errorClass, options = {}) {
|
|
119122
|
+
const current = parent.resolvedProfile;
|
|
119123
|
+
if (!current || !parent.agentId)
|
|
119124
|
+
return { kind: "none", message: null };
|
|
119125
|
+
const hops = parent.fallbackHops ?? [];
|
|
119126
|
+
const path = hops.length > 0 ? [hops[0].from, ...hops.map((hop) => hop.profile)] : [current];
|
|
119127
|
+
if (path[path.length - 1] !== current)
|
|
119128
|
+
path.push(current);
|
|
119129
|
+
const visited = new Set(path);
|
|
119130
|
+
const skipped = [];
|
|
119131
|
+
const judged = new Set;
|
|
119132
|
+
let configured = hops.length > 0;
|
|
119133
|
+
if (parent.routingAffinity?.leadOnly) {
|
|
119134
|
+
const agent = await getAgentById2(parent.agentId);
|
|
119135
|
+
if (!agent?.isLead || !isAgentEligibleForTask2(agent, parent)) {
|
|
119136
|
+
const listsFallbacks = (await getModelProfileByName(current))?.fallbacks.length ?? 0;
|
|
119137
|
+
if (!configured && listsFallbacks === 0)
|
|
119138
|
+
return { kind: "none", message: null };
|
|
119139
|
+
return {
|
|
119140
|
+
kind: "none",
|
|
119141
|
+
message: `${errorClass} on ${current}; no fallback: lead-only work cannot resume on agent ${parent.agentId}`
|
|
119142
|
+
};
|
|
119143
|
+
}
|
|
119144
|
+
}
|
|
119145
|
+
for (let i = path.length - 1;i >= 0; i--) {
|
|
119146
|
+
const profile = await getModelProfileByName(path[i]);
|
|
119147
|
+
for (const name of profile?.fallbacks ?? []) {
|
|
119148
|
+
configured = true;
|
|
119149
|
+
if (visited.has(name) || judged.has(name))
|
|
119150
|
+
continue;
|
|
119151
|
+
judged.add(name);
|
|
119152
|
+
const result = await checkProfileForAgent(parent.agentId, name, {
|
|
119153
|
+
vcsRepo: parent.vcsRepo,
|
|
119154
|
+
includeRepoSecrets: options.includeRepoSecrets,
|
|
119155
|
+
fallbacks: false
|
|
119156
|
+
});
|
|
119157
|
+
if (result?.ok) {
|
|
119158
|
+
return {
|
|
119159
|
+
kind: "picked",
|
|
119160
|
+
profile: name,
|
|
119161
|
+
hop: {
|
|
119162
|
+
from: current,
|
|
119163
|
+
profile: name,
|
|
119164
|
+
errorClass,
|
|
119165
|
+
at: new Date().toISOString(),
|
|
119166
|
+
...skipped.length > 0 ? { skipped } : {}
|
|
119167
|
+
}
|
|
119168
|
+
};
|
|
119169
|
+
}
|
|
119170
|
+
skipped.push({ profile: name, reason: result ? firstFailingRow(result) : "not found" });
|
|
119171
|
+
}
|
|
119172
|
+
}
|
|
119173
|
+
if (!configured)
|
|
119174
|
+
return { kind: "none", message: null };
|
|
119175
|
+
const skippedText = skipped.length > 0 ? `; skipped: ${skipped.map((s) => `${s.profile} (${s.reason})`).join(", ")}` : "";
|
|
119176
|
+
return {
|
|
119177
|
+
kind: "none",
|
|
119178
|
+
message: `${errorClass} on ${current}; no fallback left (tried: ${path.join(" → ")})${skippedText}`
|
|
119179
|
+
};
|
|
119180
|
+
}
|
|
119181
|
+
function firstFailingRow(result) {
|
|
119182
|
+
const row = result.profiles[0]?.checks.find((check) => check.state === "fail");
|
|
119183
|
+
if (!row)
|
|
119184
|
+
return "failed the profile check";
|
|
119185
|
+
return row.detail ? `${row.check}: ${row.detail}` : row.check;
|
|
119186
|
+
}
|
|
119114
119187
|
function attachmentPointer(a) {
|
|
119115
119188
|
return taskAttachmentDisplayUrl(a);
|
|
119116
119189
|
}
|
|
@@ -119353,7 +119426,12 @@ async function createResumeFollowUp2(args) {
|
|
|
119353
119426
|
let preferredAgentId;
|
|
119354
119427
|
let authorizationDecision;
|
|
119355
119428
|
const leadOnly = parent.routingAffinity?.leadOnly === true;
|
|
119356
|
-
|
|
119429
|
+
const fallbackPin = args.reason === "provider_fallback" && args.fallback !== undefined && parent.agentId ? parent.agentId : undefined;
|
|
119430
|
+
if (fallbackPin) {
|
|
119431
|
+
preferredAgentId = fallbackPin;
|
|
119432
|
+
if (leadOnly)
|
|
119433
|
+
authorizationDecision = "source_lead_pin";
|
|
119434
|
+
} else if (parent.agentId) {
|
|
119357
119435
|
const candidate = await getPinCandidateAgent2(parent.agentId);
|
|
119358
119436
|
if (candidate) {
|
|
119359
119437
|
const lastActivity = candidate.lastActivityAt ? Date.parse(candidate.lastActivityAt) : 0;
|
|
@@ -119373,7 +119451,7 @@ async function createResumeFollowUp2(args) {
|
|
|
119373
119451
|
}
|
|
119374
119452
|
}
|
|
119375
119453
|
}
|
|
119376
|
-
if (leadOnly) {
|
|
119454
|
+
if (leadOnly && !fallbackPin) {
|
|
119377
119455
|
const source = preferredAgentId ? await getAgentById2(preferredAgentId) : null;
|
|
119378
119456
|
const resolution = await resolveLeadOnlyRecoveryAssignment2(parent, source);
|
|
119379
119457
|
preferredAgentId = resolution.agentId;
|
|
@@ -119422,7 +119500,7 @@ async function createResumeFollowUp2(args) {
|
|
|
119422
119500
|
parentTaskId: parent.id,
|
|
119423
119501
|
inheritParentFollowUpConfig: true,
|
|
119424
119502
|
routingAffinity,
|
|
119425
|
-
...
|
|
119503
|
+
...resumeModelSelection(parent, args.fallback)
|
|
119426
119504
|
});
|
|
119427
119505
|
await carryUnhandledSteering(parent.id, created.id);
|
|
119428
119506
|
if (authorizationDecision) {
|
|
@@ -119446,6 +119524,11 @@ async function createResumeFollowUp2(args) {
|
|
|
119446
119524
|
}
|
|
119447
119525
|
return { kind: "created", task: created };
|
|
119448
119526
|
}
|
|
119527
|
+
function resumeModelSelection(parent, fallback) {
|
|
119528
|
+
const hops = [...parent.fallbackHops ?? [], ...fallback ? [fallback.hop] : []];
|
|
119529
|
+
const selection = fallback ? { profile: fallback.profile } : inheritedModelSelection2(parent);
|
|
119530
|
+
return { ...selection, ...hops.length > 0 ? { fallbackHops: hops } : {} };
|
|
119531
|
+
}
|
|
119449
119532
|
async function createRerouteDecisionTask2(args) {
|
|
119450
119533
|
const { original, staleResume, reason, maxGenerations } = args;
|
|
119451
119534
|
const leadAgent = await getLeadAgent2();
|
|
@@ -119526,7 +119609,9 @@ var TaskFollowUpModifySchema, WORKER_LIVENESS_WINDOW_SECONDS, RESUME_GENERATION_
|
|
|
119526
119609
|
var init_worker_follow_up = __esm(() => {
|
|
119527
119610
|
init_zod();
|
|
119528
119611
|
init_db4();
|
|
119612
|
+
init_model_profiles();
|
|
119529
119613
|
init_tracker();
|
|
119614
|
+
init_model_profile_check();
|
|
119530
119615
|
init_reachability();
|
|
119531
119616
|
init_steering2();
|
|
119532
119617
|
init_dispatcher();
|
|
@@ -123466,7 +123551,7 @@ var init_check_model_profile = __esm(() => {
|
|
|
123466
123551
|
var registerListModelProfilesTool = (server) => {
|
|
123467
123552
|
createToolRegistrar(server)("list-model-profiles", {
|
|
123468
123553
|
title: "List Model Profiles",
|
|
123469
|
-
description: "List model profiles: named harness + model + effort combinations. Pass a profile's name as `profile` on send-task to run that task on it, or set it as an agent's default through PATCH /api/agents/{id}/runtime. A profile runs only on its own harness. Filter by `harness` to see what an agent on that harness can run.",
|
|
123554
|
+
description: "List model profiles: named harness + model + effort combinations. Pass a profile's name as `profile` on send-task to run that task on it, or set it as an agent's default through PATCH /api/agents/{id}/runtime. A profile runs only on its own harness. `fallbacks` are the same-harness profiles a task hops to, in order, when a provider error (rate limit, seat, overload, auth, empty key pool) ends it. Filter by `harness` to see what an agent on that harness can run.",
|
|
123470
123555
|
annotations: { readOnlyHint: true },
|
|
123471
123556
|
inputSchema: object2({
|
|
123472
123557
|
harness: ProviderNameSchema.optional().describe("Only profiles for this harness (claude, codex, pi, ...).")
|
|
@@ -123477,12 +123562,13 @@ var registerListModelProfilesTool = (server) => {
|
|
|
123477
123562
|
harness: string2().optional(),
|
|
123478
123563
|
model: string2().optional(),
|
|
123479
123564
|
effort: string2().nullable().optional(),
|
|
123480
|
-
description: string2().nullable().optional()
|
|
123565
|
+
description: string2().nullable().optional(),
|
|
123566
|
+
fallbacks: array2(string2()).optional()
|
|
123481
123567
|
})).optional()
|
|
123482
123568
|
})
|
|
123483
123569
|
}, async ({ harness }) => {
|
|
123484
123570
|
const profiles = await listModelProfiles({ harness });
|
|
123485
|
-
const lines = profiles.map((p) => `${p.name}: ${p.harness} / ${p.model}${p.effort ? ` / effort ${p.effort}` : ""}${p.description ? ` (${p.description})` : ""}`);
|
|
123571
|
+
const lines = profiles.map((p) => `${p.name}: ${p.harness} / ${p.model}${p.effort ? ` / effort ${p.effort}` : ""}${p.fallbacks.length > 0 ? ` → fallbacks ${p.fallbacks.join(", ")}` : ""}${p.description ? ` (${p.description})` : ""}`);
|
|
123486
123572
|
return toolOk(`${profiles.length} model profile(s)${harness ? ` for ${harness}` : ""}.`, {
|
|
123487
123573
|
details: lines.join(`
|
|
123488
123574
|
`),
|
|
@@ -123492,7 +123578,8 @@ var registerListModelProfilesTool = (server) => {
|
|
|
123492
123578
|
harness: p.harness,
|
|
123493
123579
|
model: p.model,
|
|
123494
123580
|
effort: p.effort,
|
|
123495
|
-
description: p.description
|
|
123581
|
+
description: p.description,
|
|
123582
|
+
fallbacks: p.fallbacks
|
|
123496
123583
|
}))
|
|
123497
123584
|
}
|
|
123498
123585
|
});
|
|
@@ -133970,7 +134057,7 @@ ${body.stdout.trim()}`);
|
|
|
133970
134057
|
|
|
133971
134058
|
`) : undefined;
|
|
133972
134059
|
}
|
|
133973
|
-
var SCRIPT_RUN_DESCRIPTION = "Run a named swarm-shared script (callable across agents and from workflow `swarm-script` nodes), OR inline source (auto-saved as scratch to the catalog). Inline source executes without the `script-upsert` compile-time typecheck. Use for swarm-visible, durable scripts. For local-only throwaway TS, use code-mode `run`.", registerScriptRunTool = (server) => {
|
|
134060
|
+
var SCRIPT_RUN_DESCRIPTION = "Run a named swarm-shared script (callable across agents and from workflow `swarm-script` nodes), OR inline source (auto-saved as scratch to the catalog). Inline source executes without the `script-upsert` compile-time typecheck. Use for swarm-visible, durable scripts. For local-only throwaway TS, use code-mode `run`. The run ends when the script's default export resolves: a call it did not await gets 2 s more, then is stopped (native) or aborted at once (quickjs), so await every write that must land. A `Promise.race` deadline therefore bounds the run; a nested `script_run` that lost the race keeps running on the server under its own wall.", registerScriptRunTool = (server) => {
|
|
133974
134061
|
createToolRegistrar(server)("script-run", {
|
|
133975
134062
|
title: "Script Run",
|
|
133976
134063
|
description: SCRIPT_RUN_DESCRIPTION,
|
|
@@ -140224,7 +140311,7 @@ var agentOutputShape4, registerUpdateProfileTool = (server) => {
|
|
|
140224
140311
|
setupScript: string2().max(MAX_PROFILE_FILE_LENGTH).optional().describe("Setup script content (bash). Runs at container start as the worker user after privilege drop. Persists across sessions. Also written to /workspace/start-up.sh."),
|
|
140225
140312
|
toolsMd: string2().max(MAX_PROFILE_FILE_LENGTH).optional().describe("Environment-specific operational knowledge. Synced to /workspace/TOOLS.md. Above 20,000 characters, updates may only keep or reduce the stored size; move durable overflow into memory."),
|
|
140226
140313
|
heartbeatMd: string2().max(MAX_PROFILE_FILE_LENGTH).optional().describe("Heartbeat checklist content (HEARTBEAT.md). Checked periodically — add standing orders for the lead to review. Synced to /workspace/HEARTBEAT.md."),
|
|
140227
|
-
avatar: AgentAvatarSchema.nullable().optional().describe("Custom avatar: { type: 'lucide', icon: '<kebab-case-lucide-name>', color?: '#RRGGBB' }. Pass null to reset to the default deterministic icon/color."),
|
|
140314
|
+
avatar: AgentAvatarSchema.nullable().optional().describe("Custom avatar, one of: { type: 'lucide', icon: '<kebab-case-lucide-name>', color?: '#RRGGBB' }; { type: 'url', url: 'https://…' } (https image, no credentials); { type: 'agent-fs', path: '/agents/<id>/avatar.png', orgId?, driveId? } (an image in agent-fs; pass both IDs or neither for the swarm drive). An image that cannot load falls back to the default glyph. Pass null to reset to the default deterministic icon/color."),
|
|
140228
140315
|
slackIcon: AgentSlackIconSchema.nullable().optional().describe("Slack icon for this agent's messages: { type: 'emoji', emoji: ':owl:' } or { type: 'url', url: 'https://…' }, or { type: 'app' } for the Slack app's own icon. A link Slack cannot load falls back to the Slack app's icon. Pass null to reset to the default.")
|
|
140229
140316
|
}),
|
|
140230
140317
|
outputSchema: swarmToolOutputSchema({
|
|
@@ -141993,4 +142080,4 @@ var init_server = __esm(() => {
|
|
|
141993
142080
|
loggedToolAllowlistWarnings = new Set;
|
|
141994
142081
|
});
|
|
141995
142082
|
|
|
141996
|
-
export { DEFAULT_NEGOTIATED_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, isJSONRPCRequest, isJSONRPCResultResponse, isJSONRPCErrorResponse, JSONRPCMessageSchema, isInitializeRequest, init_types, McpServer, init_mcp, repointTrackerSyncBySwarmId, init_tracker, isRuntimePoolWakeable, isAgentReachable, init_reachability, referencedBundlePaths, skillDirs, init_manifest_format, TaskCreationBlockedError, init_errors2, resolveIdentity, renderIdentity, init_identity, recordUnmappedIdentity, init_unmapped_identities, MAX_TASK_ATTACHMENT_BYTES, recordTaskAttachmentUpload, scopeFromAttachment, backingProviderId, init_task_attachment_store, stripSiblingBlock, init_sibling_block, createTaskWithSiblingAwareness, init_sibling_awareness, transcribeAudioNotes, init_transcription, init_templates, buildEffectiveText, bufferedFileFailures, fetchSlackFiles, createSlackTaskWithFiles, notifySlackFileFailures, init_inbound_files, isAddressedToOtherUser, broadcastMatches, routeMessage, extractTaskFromMessage, init_router, extractSlackMessageText, slackInboundMessageText, collectSlackMessageFiles, init_message_text, createAdditiveBuffer, init_additive_buffer, recoverIncompleteRuns, init_recovery, handleWebhookTrigger, verifyHmacSignature, WebhookError, init_triggers, snapshotAndUpdateWorkflow, init_version, RawLlmConfigSchema, RawLlmOutputSchema, executeRawLlm, init_raw_llm, getExecutorRegistry2, initWorkflows2, init_workflows, dispatchScheduleTarget, calculateNextRun2, startScheduler2, stopScheduler2, runScheduleNow2, init_scheduler, ExtensionAssetConflictError, init_assets, ExtensionOwnershipError, getExtensionFiles, getExtensionById, getExtensionByName, listExtensions, listExtensionVersions, updateExtensionMeta, listExtensionRuns, init_db, SDK_ALLOWLIST, mcpToolNameForSdkMethod, init_sdk_allowlist, MCP_OVERFLOW_NAMESPACE, mcpOverflowAuthError, init_kv_overflow, hasKvViewArgs, resolveKvView, init_kv_view, COLOR_LITERAL_THRESHOLD, countColorLiterals, init_color_literals, toolErr, createToolRegistrar, init_utils, handleMcpBridge, init_mcp_bridge, Redacted, init_redacted, SCRIPT_SDK_RESPONSE_LIMIT_BYTES, readScriptSdkJsonResponse, init_response_limit, ExtensionConfigError, init_loader, ExtensionLifecycleError, setExtensionLoopbackBaseUrl, enableExtension, disableExtension, activateVersion, ExtensionAssetsInvalidError, installExtensionWithAssets, uninstallExtension, reloadExtension, loadEnabledExtensions, stopExtensionRuntime, init_lifecycle, ExtensionAbortedError2, isRegistered2, isExtensionAgentId2, getExtensionBridgeToken2, resolveBridgeCallOrigin2, extensionIdForAgent2, runContext2, registerLoaded2, unregister2, listRegistered2, dispatchPre2, dispatchPost2, init_dispatcher, REBOOT_RETRY_PIN_TAG2, getPinCandidateAgent2, resolveLeadOnlyRecoveryAssignment2, getResumeGeneration2, getNextResumeGeneration2, inheritedModelSelection2, createWorkerTaskFollowUp2, createResumeFollowUp2, createRerouteDecisionTask2, createPoolStarvationDecisionTask2, init_worker_follow_up, isGitHubEnabled, initGitHub, verifyWebhookSignature, isAgentMailEnabled, initAgentMail, verifyAgentMailWebhook, isInboxAllowed, isSenderAllowed, handleMessageReceived, init_agentmail, isAzureDevOpsEnabled, initAzureDevOps, verifyAzureDevOpsWebhook, isAzureDevOpsUrl, canonicalAzureDevOpsRepoUrl, parseAzureDevOpsRepoUrl, init_azure_devops, createdPullRequestOf, commentedPayloadOf, handlePullRequestCreated, handlePullRequestCommented, handleWorkItemCreated, handleWorkItemUpdated, handleWorkItemCommented, handleWorkItemDeleted, handleWorkItemRestored, initAzureDevOpsOutbound, init_azure_devops2, enqueueAuditRow, enqueueAdmissionRow, flushAuditBuffer, startAuditWriter, stopAuditWriter, startAuditGc, stopAuditGc, init_rbac_audit, getTelemetryIngestAnchor, init_telemetry_ingest_anchor, initApiTelemetry, syncTelemetryEnabled, init_telemetry_enable, isBitbucketEnabled, initBitbucket, verifyBitbucketWebhook, isDuplicateDelivery, markDeliveryProcessed, pullRequestEventOf, pullRequestCommentEventOf, handlePullRequestCreated2, handlePullRequestCommentCreated, handlePullRequestClosed, init_bitbucket, handlePullRequest, handleIssue, handleComment, handlePullRequestReview, handleCheckRun, handleCheckSuite, handleWorkflowRun, init_github, isGitLabEnabled, initGitLab, verifyGitLabWebhook, handleMergeRequest, handleIssue2, handleNote, handlePipeline, init_gitlab, isChatSdkEnabled, getChatSdkConfig, init_config, errorMessage, init_logger, resolveAdapterApiUrl, init_adapters, trackBackground, init_background, TelegramBotApiError, callTelegramBotApi, init_telegram_api, isTrustedTeamsServiceUrl, init_teams_origin, getSessionLabels, rememberSessionLabel, getResourceSessionLabels, init_session_labels, isChatSdkStopping, startChatSdk, getChatInstance, isChatAdapterConfigured, getChatSdkHealth, stopChatSdk, init_runtime, getJiraMetadata, updateJiraMetadata, clearJiraMetadata, init_metadata, registerJiraWebhook, deleteJiraWebhook, init_webhook_lifecycle, isJiraEnabled, initJira, init_app, handleJiraWebhook, init_webhook, init_jira, handleAgentSessionEvent, handleIssueUpdate, handleIssueDelete, handleAgentSessionPrompted, init_sync, isLinearEnabled, initLinear, init_app2, init_linear, init_slack, verifyPageSession, LEGACY_PAGE_SESSION_COOKIE, isCookieSafePageId, extractPageSession, extractLegacyPageSession, extractAndVerifyCookie, isLocalDevPageRequest, pageSessionSetCookies, init_page_session, resolveHttpRequestAuth, init_auth, getDeploymentEnvValue, loadGlobalConfigsIntoEnv, reloadGlobalConfigsAndIntegrations, scheduleIntegrationsReload, handleCore, init_core, MCP_MAX_TOOL_INPUT_ELEMENTS, MCP_MAX_REQUEST_BODY_BYTES, init_mcp_limits, userCtx, init_task_tool_ctx, requestPrincipal, agentFirstPrincipal, requireAuthKind, rejectGuest, init_request_principal, handleApps, init_apps, cancelApprovalRequest, cancelApprovalRequestAndRun, init_approval_cancel, getUserCommsPrefs, init_requester_comms, getTaskDetailsInputSchema, getTaskDetailsOutputSchema, getTaskDetailsHandler, init_get_task_details, cancelTaskInputSchema, cancelTaskOutputSchema, cancelTaskHandler, init_cancel_task, executeReadOnlyQuery, assertSelectOnlyQuery, handleDbQuery, init_db_query, snapshotMetric, init_version2, AssetKeyAuthorizationError, authorizeAssetKeyWrite, init_asset_key_auth, getPageEditCounter, init_page_versions, snapshotPage, init_version3, DEFAULT_THEME_ID, THEME_PRESET_IDS, getThemePreset, init_presets, readThemeFields, init_page_fields, assertOAuthAppUrlsSafe, assertOAuthEgressUrlSafe, init_app_validation, listOAuthPresets, listOAuthPresetIds, getOAuthPreset, hydrateOAuthAppFromPreset, init_presets2, scopedResourceScopeIdSchema, resolveScopedResourceId, init_scoped_resource, MemoryKeyError, init_key_guard, refreshLinks, init_link_resolver, indexMemoryContent, init_index_content, dedupeMemoryDocumentIds, recordMemoryAccesses, recordRetrievals, init_retrieval, ExplicitSelfDuplicateError, applyRating, init_store, shouldPersistAutomaticTaskMemory, init_automatic_task_gate, guardTerminalTaskResultWrite, init_terminal_result_guard, getTasksInputSchema, getTasksOutputSchema, getTasksHandler, init_get_tasks, reservedNamespaceError, privateNamespaceError, reservedRoomKeyError, init_kv_reserved_namespaces, updateMcpServerChecked, init_mcp_server_checked_update, updateTouchesStdioExecution, init_mcp_server_stdio_gate, canReadMemory, init_access, getLinksForMemory, init_links_store, expandCandidatesWithGraph, init_graph_expansion, isApiDraining, drainApi, init_api_drain, markKapsoMessageRead, sendKapsoReaction, init_client, getKapsoConfig, getKapsoNumberMapping, markKapsoMessageSeen, init_config2, changesAllowMerge, init_repo_merge_policy, updateSwarmRepoChecked, init_repo_checked_update, getCombConfig, init_config3, resolveRoomNamespace, roomRequestInfo, authorizeRoomNamespace, sessionAccessTopic, sessionPresenceRoot, init_auth2, RoomOperationSchema, init_document, removeAwarenessStates, init_awareness, roomTopic, decodeRoomSnapshot, roomView, getRoom, changeRoom, applyRoomUpdate, resetRoom, sweepRooms, closeRooms, removeNamespaceRooms, init_rooms, init_scheduler2, MEMORY_KEYS_DEFAULT_PREFIX, MEMORY_KEYS_MAX_LIMIT, estimateTokens, posteriorMean, listMemoryKeys, checkChunkIntegrity, getMemoryChunks, getPosteriorsByIds, init_key_browser, createEvent, createEventsBatch, getEventCountsFiltered, getEventsFiltered, init_events, mergeScheduleTiming, validateRecurringTiming, init_validate, followUpThreadForSourceTask, evaluateFollowUpRedelegation, init_follow_up_redelegation_guard, checkOutputSchemaShape, sendTaskOutputSchema, sendTaskHandler, init_send_task, steerTaskUserInputSchema, steerTaskOutputSchema, steerTaskHandler, init_steer_task, skipReasonFrom, finalizeSkippedTaskReaction, init_task_skip, IMPROVEMENT_TEXT_MAX, IMPROVEMENT_STATUSES, IMPROVEMENT_SOURCES, ImprovementError, isImprovementsEnabled, getImprovement, listImprovements, createImprovement, approveAndSend, discardImprovement, improvementLeakHints, init_improvements, canClaim, init_budget_admission, emitBudgetRefusalSideEffects, init_budget_refusal_notify, workflowModelErrors, init_model_validation, patchWorkflowDefinition, init_patch_definition, idempotencyKeyHeader, readIdempotencyKey, replayAcceptedOperation, init_idempotency_key, resolveScriptsOnlyMode, init_scripts_only_mode, ALL_CAPABILITIES, hasCapability, getEnabledCapabilities, createServer, init_server };
|
|
142083
|
+
export { DEFAULT_NEGOTIATED_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, isJSONRPCRequest, isJSONRPCResultResponse, isJSONRPCErrorResponse, JSONRPCMessageSchema, isInitializeRequest, init_types, McpServer, init_mcp, repointTrackerSyncBySwarmId, init_tracker, isRuntimePoolWakeable, isAgentReachable, init_reachability, referencedBundlePaths, skillDirs, init_manifest_format, TaskCreationBlockedError, init_errors2, resolveIdentity, renderIdentity, init_identity, recordUnmappedIdentity, init_unmapped_identities, MAX_TASK_ATTACHMENT_BYTES, recordTaskAttachmentUpload, scopeFromAttachment, backingProviderId, init_task_attachment_store, stripSiblingBlock, init_sibling_block, createTaskWithSiblingAwareness, init_sibling_awareness, transcribeAudioNotes, init_transcription, init_templates, buildEffectiveText, bufferedFileFailures, fetchSlackFiles, createSlackTaskWithFiles, notifySlackFileFailures, init_inbound_files, isAddressedToOtherUser, broadcastMatches, routeMessage, extractTaskFromMessage, init_router, extractSlackMessageText, slackInboundMessageText, collectSlackMessageFiles, init_message_text, createAdditiveBuffer, init_additive_buffer, recoverIncompleteRuns, init_recovery, handleWebhookTrigger, verifyHmacSignature, WebhookError, init_triggers, snapshotAndUpdateWorkflow, init_version, RawLlmConfigSchema, RawLlmOutputSchema, executeRawLlm, init_raw_llm, getExecutorRegistry2, initWorkflows2, init_workflows, dispatchScheduleTarget, calculateNextRun2, startScheduler2, stopScheduler2, runScheduleNow2, init_scheduler, ExtensionAssetConflictError, init_assets, ExtensionOwnershipError, getExtensionFiles, getExtensionById, getExtensionByName, listExtensions, listExtensionVersions, updateExtensionMeta, listExtensionRuns, init_db, SDK_ALLOWLIST, mcpToolNameForSdkMethod, init_sdk_allowlist, MCP_OVERFLOW_NAMESPACE, mcpOverflowAuthError, init_kv_overflow, hasKvViewArgs, resolveKvView, init_kv_view, COLOR_LITERAL_THRESHOLD, countColorLiterals, init_color_literals, toolErr, createToolRegistrar, init_utils, handleMcpBridge, init_mcp_bridge, Redacted, init_redacted, SCRIPT_SDK_RESPONSE_LIMIT_BYTES, readScriptSdkJsonResponse, init_response_limit, ExtensionConfigError, init_loader, ExtensionLifecycleError, setExtensionLoopbackBaseUrl, enableExtension, disableExtension, activateVersion, ExtensionAssetsInvalidError, installExtensionWithAssets, uninstallExtension, reloadExtension, loadEnabledExtensions, stopExtensionRuntime, init_lifecycle, ExtensionAbortedError2, isRegistered2, isExtensionAgentId2, getExtensionBridgeToken2, resolveBridgeCallOrigin2, extensionIdForAgent2, runContext2, registerLoaded2, unregister2, listRegistered2, dispatchPre2, dispatchPost2, init_dispatcher, REBOOT_RETRY_PIN_TAG2, getPinCandidateAgent2, resolveLeadOnlyRecoveryAssignment2, getResumeGeneration2, getNextResumeGeneration2, inheritedModelSelection2, nextFallback2, createWorkerTaskFollowUp2, createResumeFollowUp2, createRerouteDecisionTask2, createPoolStarvationDecisionTask2, init_worker_follow_up, isGitHubEnabled, initGitHub, verifyWebhookSignature, isAgentMailEnabled, initAgentMail, verifyAgentMailWebhook, isInboxAllowed, isSenderAllowed, handleMessageReceived, init_agentmail, isAzureDevOpsEnabled, initAzureDevOps, verifyAzureDevOpsWebhook, isAzureDevOpsUrl, canonicalAzureDevOpsRepoUrl, parseAzureDevOpsRepoUrl, init_azure_devops, createdPullRequestOf, commentedPayloadOf, handlePullRequestCreated, handlePullRequestCommented, handleWorkItemCreated, handleWorkItemUpdated, handleWorkItemCommented, handleWorkItemDeleted, handleWorkItemRestored, initAzureDevOpsOutbound, init_azure_devops2, enqueueAuditRow, enqueueAdmissionRow, flushAuditBuffer, startAuditWriter, stopAuditWriter, startAuditGc, stopAuditGc, init_rbac_audit, getTelemetryIngestAnchor, init_telemetry_ingest_anchor, initApiTelemetry, syncTelemetryEnabled, init_telemetry_enable, isBitbucketEnabled, initBitbucket, verifyBitbucketWebhook, isDuplicateDelivery, markDeliveryProcessed, pullRequestEventOf, pullRequestCommentEventOf, handlePullRequestCreated2, handlePullRequestCommentCreated, handlePullRequestClosed, init_bitbucket, handlePullRequest, handleIssue, handleComment, handlePullRequestReview, handleCheckRun, handleCheckSuite, handleWorkflowRun, init_github, isGitLabEnabled, initGitLab, verifyGitLabWebhook, handleMergeRequest, handleIssue2, handleNote, handlePipeline, init_gitlab, isChatSdkEnabled, getChatSdkConfig, init_config, errorMessage, init_logger, resolveAdapterApiUrl, init_adapters, trackBackground, init_background, TelegramBotApiError, callTelegramBotApi, init_telegram_api, isTrustedTeamsServiceUrl, init_teams_origin, getSessionLabels, rememberSessionLabel, getResourceSessionLabels, init_session_labels, isChatSdkStopping, startChatSdk, getChatInstance, isChatAdapterConfigured, getChatSdkHealth, stopChatSdk, init_runtime, getJiraMetadata, updateJiraMetadata, clearJiraMetadata, init_metadata, registerJiraWebhook, deleteJiraWebhook, init_webhook_lifecycle, isJiraEnabled, initJira, init_app, handleJiraWebhook, init_webhook, init_jira, handleAgentSessionEvent, handleIssueUpdate, handleIssueDelete, handleAgentSessionPrompted, init_sync, isLinearEnabled, initLinear, init_app2, init_linear, init_slack, verifyPageSession, LEGACY_PAGE_SESSION_COOKIE, isCookieSafePageId, extractPageSession, extractLegacyPageSession, extractAndVerifyCookie, isLocalDevPageRequest, pageSessionSetCookies, init_page_session, resolveHttpRequestAuth, init_auth, getDeploymentEnvValue, loadGlobalConfigsIntoEnv, reloadGlobalConfigsAndIntegrations, scheduleIntegrationsReload, handleCore, init_core, MCP_MAX_TOOL_INPUT_ELEMENTS, MCP_MAX_REQUEST_BODY_BYTES, init_mcp_limits, userCtx, init_task_tool_ctx, requestPrincipal, agentFirstPrincipal, requireAuthKind, rejectGuest, init_request_principal, handleApps, init_apps, cancelApprovalRequest, cancelApprovalRequestAndRun, init_approval_cancel, getUserCommsPrefs, init_requester_comms, getTaskDetailsInputSchema, getTaskDetailsOutputSchema, getTaskDetailsHandler, init_get_task_details, cancelTaskInputSchema, cancelTaskOutputSchema, cancelTaskHandler, init_cancel_task, DbQueryTimeoutError, DbQueryConcurrencyCapError, executeReadOnlyQuery, getDbQueryHttpBudgetMs, init_db_query_shared, assertSelectOnlyQuery, executeReadOnlyQueryGated, handleDbQuery, init_db_query, snapshotMetric, init_version2, AssetKeyAuthorizationError, authorizeAssetKeyWrite, init_asset_key_auth, getPageEditCounter, init_page_versions, snapshotPage, init_version3, DEFAULT_THEME_ID, THEME_PRESET_IDS, getThemePreset, init_presets, readThemeFields, init_page_fields, assertOAuthAppUrlsSafe, assertOAuthEgressUrlSafe, init_app_validation, listOAuthPresets, listOAuthPresetIds, getOAuthPreset, hydrateOAuthAppFromPreset, init_presets2, scopedResourceScopeIdSchema, resolveScopedResourceId, init_scoped_resource, MemoryKeyError, init_key_guard, refreshLinks, init_link_resolver, indexMemoryContent, init_index_content, dedupeMemoryDocumentIds, recordMemoryAccesses, recordRetrievals, init_retrieval, ExplicitSelfDuplicateError, applyRating, init_store, shouldPersistAutomaticTaskMemory, init_automatic_task_gate, guardTerminalTaskResultWrite, init_terminal_result_guard, getTasksInputSchema, getTasksOutputSchema, getTasksHandler, init_get_tasks, reservedNamespaceError, privateNamespaceError, reservedRoomKeyError, init_kv_reserved_namespaces, updateMcpServerChecked, init_mcp_server_checked_update, updateTouchesStdioExecution, init_mcp_server_stdio_gate, canReadMemory, init_access, getLinksForMemory, init_links_store, expandCandidatesWithGraph, init_graph_expansion, isApiDraining, drainApi, init_api_drain, markKapsoMessageRead, sendKapsoReaction, init_client, getKapsoConfig, getKapsoNumberMapping, markKapsoMessageSeen, init_config2, changesAllowMerge, init_repo_merge_policy, updateSwarmRepoChecked, init_repo_checked_update, getCombConfig, init_config3, resolveRoomNamespace, roomRequestInfo, authorizeRoomNamespace, sessionAccessTopic, sessionPresenceRoot, init_auth2, RoomOperationSchema, init_document, removeAwarenessStates, init_awareness, roomTopic, decodeRoomSnapshot, roomView, getRoom, changeRoom, applyRoomUpdate, resetRoom, sweepRooms, closeRooms, removeNamespaceRooms, init_rooms, init_scheduler2, MEMORY_KEYS_DEFAULT_PREFIX, MEMORY_KEYS_MAX_LIMIT, estimateTokens, posteriorMean, listMemoryKeys, checkChunkIntegrity, getMemoryChunks, getPosteriorsByIds, init_key_browser, createEvent, createEventsBatch, getEventCountsFiltered, getEventsFiltered, init_events, mergeScheduleTiming, validateRecurringTiming, init_validate, followUpThreadForSourceTask, evaluateFollowUpRedelegation, init_follow_up_redelegation_guard, checkOutputSchemaShape, sendTaskOutputSchema, sendTaskHandler, init_send_task, steerTaskUserInputSchema, steerTaskOutputSchema, steerTaskHandler, init_steer_task, skipReasonFrom, finalizeSkippedTaskReaction, init_task_skip, IMPROVEMENT_TEXT_MAX, IMPROVEMENT_STATUSES, IMPROVEMENT_SOURCES, ImprovementError, isImprovementsEnabled, getImprovement, listImprovements, createImprovement, approveAndSend, discardImprovement, improvementLeakHints, init_improvements, canClaim, init_budget_admission, emitBudgetRefusalSideEffects, init_budget_refusal_notify, workflowModelErrors, init_model_validation, patchWorkflowDefinition, init_patch_definition, idempotencyKeyHeader, readIdempotencyKey, replayAcceptedOperation, init_idempotency_key, resolveScriptsOnlyMode, init_scripts_only_mode, ALL_CAPABILITIES, hasCapability, getEnabledCapabilities, createServer, init_server };
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
CONTROLLER_COMMAND_TIMEOUT_MS,
|
|
5
5
|
RuntimeHandleSchema,
|
|
6
6
|
ControllerStatusResultSchema
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-9mb2q6pb.js";
|
|
8
8
|
import {
|
|
9
9
|
getDbClient2,
|
|
10
10
|
validateControllerGraceSec,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
upsertSwarmConfig2,
|
|
22
22
|
getResolvedConfig2,
|
|
23
23
|
init_db4
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-rcecc3yq.js";
|
|
25
25
|
import {
|
|
26
26
|
getPoolCache,
|
|
27
27
|
reconcileCacheReleases,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
getPoolForAgent2,
|
|
36
36
|
resolvePoolDelivery2,
|
|
37
37
|
init_db2
|
|
38
|
-
} from "./cli-
|
|
38
|
+
} from "./cli-97ae65rz.js";
|
|
39
39
|
import {
|
|
40
40
|
workflowEventBus2,
|
|
41
41
|
init_event_bus
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
init_worker_follow_up,
|
|
46
46
|
canClaim,
|
|
47
47
|
init_budget_admission
|
|
48
|
-
} from "./cli-
|
|
48
|
+
} from "./cli-3e875j5p.js";
|
|
49
49
|
import {
|
|
50
50
|
runtimeStaleThresholdMinutes,
|
|
51
51
|
getRuntimeInstanceById,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
listRuntimeInstancesForAgent,
|
|
55
55
|
listRuntimeInstancesForPool,
|
|
56
56
|
init_multi_runtime
|
|
57
|
-
} from "./cli-
|
|
57
|
+
} from "./cli-jdknh18m.js";
|
|
58
58
|
import {
|
|
59
59
|
isMultiRuntimeEnabled,
|
|
60
60
|
init_multi_runtime2
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
canProvisionKind,
|
|
64
64
|
createRuntimeProvider,
|
|
65
65
|
init_runtime_providers
|
|
66
|
-
} from "./cli-
|
|
66
|
+
} from "./cli-z1w943va.js";
|
|
67
67
|
import {
|
|
68
68
|
import_websocket,
|
|
69
69
|
init_wrapper2
|
|
@@ -71,12 +71,12 @@ import {
|
|
|
71
71
|
import {
|
|
72
72
|
mintRuntimeToken,
|
|
73
73
|
init_users
|
|
74
|
-
} from "./cli-
|
|
74
|
+
} from "./cli-f4e8r23x.js";
|
|
75
75
|
import {
|
|
76
76
|
TERMINAL_TASK_STATUSES,
|
|
77
77
|
isTerminalTaskStatus,
|
|
78
78
|
init_types4
|
|
79
|
-
} from "./cli-
|
|
79
|
+
} from "./cli-pchypa1s.js";
|
|
80
80
|
import {
|
|
81
81
|
init_zod
|
|
82
82
|
} from "./cli-zcfpsfzf.js";
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
import {
|
|
97
97
|
resolveWorkerApiUrl,
|
|
98
98
|
init_worker_api_url
|
|
99
|
-
} from "./cli-
|
|
99
|
+
} from "./cli-rh15cakt.js";
|
|
100
100
|
import {
|
|
101
101
|
RUNTIME_LABELS,
|
|
102
102
|
init_types5
|
|
@@ -546,7 +546,7 @@ async function recoverSessions(runtimeId, reason) {
|
|
|
546
546
|
}
|
|
547
547
|
if (!sessions.length)
|
|
548
548
|
return;
|
|
549
|
-
const { remediateTaskForDeadRuntime } = await import("./heartbeat-
|
|
549
|
+
const { remediateTaskForDeadRuntime } = await import("./heartbeat-a1tv60gt.js");
|
|
550
550
|
for (const session of sessions) {
|
|
551
551
|
try {
|
|
552
552
|
const task = await getTaskById2(session.taskId);
|