@desplega.ai/agent-swarm 2.6.0 → 2.7.1
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 +2 -0
- package/dist/{acp-adapter-dgfakfpw.js → acp-adapter-8dn5tq56.js} +6 -6
- package/dist/{actions-fbqma8aa.js → actions-3r6gw7dy.js} +18 -18
- package/dist/{amp-adapter-en0jy6hs.js → amp-adapter-wjtq413p.js} +3 -3
- package/dist/{anthropic-messages-txs190dd.js → anthropic-messages-n4cby1rz.js} +4 -4
- package/dist/{app-k8a5cgpp.js → app-d53yhykk.js} +3 -3
- package/dist/{assistant-a16433gr.js → assistant-ksrawj3k.js} +20 -20
- package/dist/{boot-reembed-6c1sjfnr.js → boot-reembed-fxfw17m2.js} +11 -3
- package/dist/{boot-reembed-f4nn561n.js → boot-reembed-k5y5xbj0.js} +15 -8
- package/dist/{boot-scrub-sweep-d4w9gajf.js → boot-scrub-sweep-se41j9fd.js} +3 -3
- package/dist/{boot-seeds-9bmkspyw.js → boot-seeds-r3kwwv8b.js} +4 -4
- package/dist/{claude-adapter-nys1kjxa.js → claude-adapter-ahmyf231.js} +8 -8
- package/dist/{claude-managed-adapter-55207973.js → claude-managed-adapter-5knamegc.js} +3 -3
- package/dist/{claude-managed-setup-3cm35gey.js → claude-managed-setup-mdc7dy6b.js} +3 -3
- package/dist/{claude-sdk-session-nw5yd8cp.js → claude-sdk-session-n5wen9zk.js} +8729 -8600
- package/dist/{cli-683y0b3a.js → cli-0dqtv2jg.js} +2 -2
- package/dist/{cli-a34pr3w1.js → cli-0tww7dnz.js} +2 -2
- package/dist/{cli-w2656ka1.js → cli-0w4e4v58.js} +7 -7
- package/dist/{cli-5sckpqcx.js → cli-2sjm3t4r.js} +1 -1
- package/dist/{cli-gf2850q7.js → cli-3cywb44q.js} +18 -1
- package/dist/{cli-8wkb09q5.js → cli-3k9jej0c.js} +2 -2
- package/dist/{cli-3aqd4jaa.js → cli-3v2cyqb8.js} +3 -3
- package/dist/{cli-emhjcj2y.js → cli-5qt9vzmq.js} +89 -20
- package/dist/{cli-abkm71vr.js → cli-5rp1w4cr.js} +1 -1
- package/dist/{cli-gf95q3bm.js → cli-6vwjsetx.js} +4 -4
- package/dist/{cli-k21gx5ht.js → cli-6w2yrrc0.js} +10 -10
- package/dist/{cli-m70bajzr.js → cli-75tdydgv.js} +1 -1
- package/dist/{cli-5rj83bam.js → cli-8feswf2v.js} +47 -36
- package/dist/{cli-sxgtf5fw.js → cli-8wd3mbyj.js} +1 -1
- package/dist/{cli-ca6banwz.js → cli-9csfthbw.js} +10 -8
- package/dist/{cli-dqygeeh5.js → cli-b41p764a.js} +31 -3
- package/dist/{cli-m5a9m0ak.js → cli-c1t533hh.js} +3 -3
- package/dist/{cli-2sjhpsns.js → cli-c28jxpcv.js} +1 -1
- package/dist/{cli-bqztfyve.js → cli-cb50g9cd.js} +1 -1
- package/dist/{cli-ag2yrnt5.js → cli-d8gaphtr.js} +2 -2
- package/dist/{cli-9abdgn5t.js → cli-dgtfysne.js} +3 -3
- package/dist/{cli-nq677csy.js → cli-dscnhn18.js} +1 -1
- package/dist/{cli-3fwqy71j.js → cli-dv11pgpv.js} +39 -32
- package/dist/{cli-v49fkghp.js → cli-ekptgk2m.js} +6 -6
- package/dist/{cli-c2habvsf.js → cli-f3mzy662.js} +17 -17
- package/dist/{cli-zqne1qcj.js → cli-fk7k8s9x.js} +2 -2
- package/dist/{cli-1tem6ns9.js → cli-gt4h8cxw.js} +3 -2
- package/dist/{cli-vbhgkw9h.js → cli-h3e7bhvn.js} +3 -3
- package/dist/{cli-ffvsj2qw.js → cli-hkxqdmnb.js} +3 -3
- package/dist/{cli-a2rr0fmg.js → cli-hpkvgdad.js} +7 -4
- package/dist/{cli-art7c1zh.js → cli-hq2v4rr5.js} +37 -9
- package/dist/{cli-sqma6vw1.js → cli-k1zb7raw.js} +5 -5
- package/dist/{cli-4rvr7zfx.js → cli-k4awgvzm.js} +5 -0
- package/dist/{cli-3ndmpxxv.js → cli-k7d3hvya.js} +2 -2
- package/dist/{cli-3gfvmzht.js → cli-kbtdftbw.js} +74 -26
- package/dist/{cli-hfeb68z4.js → cli-kj69b9tw.js} +34 -6
- package/dist/{cli-az25fn5f.js → cli-kk9jy4nm.js} +2 -2
- package/dist/{cli-39aet655.js → cli-m52t4cta.js} +1 -1
- package/dist/{cli-cz37jqss.js → cli-mdadewqp.js} +5 -5
- package/dist/{cli-esakngh8.js → cli-nf6k60sn.js} +1 -1
- package/dist/{cli-j6rktc91.js → cli-nzdf09js.js} +1 -1
- package/dist/{cli-rr7zx19j.js → cli-prcyzecg.js} +12 -12
- package/dist/{cli-4hxrf0p4.js → cli-pzafyqtk.js} +393 -62
- package/dist/{cli-g8ka5j4j.js → cli-qvaa1gjp.js} +173 -52
- package/dist/{cli-d2dpf95n.js → cli-rg4b2g6j.js} +1 -1
- package/dist/{cli-kf4jree9.js → cli-rm66vqdz.js} +1 -1
- package/dist/{cli-4rf0f5vg.js → cli-s504c3w7.js} +5 -3
- package/dist/{cli-nn6vx2mq.js → cli-swkx9jm2.js} +7 -5
- package/dist/{cli-g20jjwt4.js → cli-thsaq4pd.js} +16 -16
- package/dist/{cli-aj8djyqt.js → cli-twjnyvs8.js} +2 -2
- package/dist/{cli-03gg9pd1.js → cli-typdpe8g.js} +4 -4
- package/dist/{cli-mtnj4fwa.js → cli-vg8pwmsd.js} +6 -6
- package/dist/{cli-gnsb1zxa.js → cli-vhpckzvp.js} +1 -1
- package/dist/{cli-7enjwya9.js → cli-vz78s5wm.js} +1 -1
- package/dist/{cli-dv97kdzv.js → cli-wdxgsdz5.js} +2 -2
- package/dist/{cli-7a6p4e65.js → cli-wtjg6je3.js} +1 -1
- package/dist/{cli-6y51ryva.js → cli-x3cngb1h.js} +44 -12
- package/dist/{cli-n7asmce6.js → cli-xbz6mcg4.js} +3 -3
- package/dist/{cli-24j1jeeb.js → cli-y4tdxsqb.js} +3 -3
- package/dist/{cli-mvjz5an3.js → cli-yqrsp3ny.js} +7 -7
- package/dist/cli.js +31 -21
- package/dist/{codex-adapter-d95q4qsn.js → codex-adapter-7wepzq15.js} +6 -6
- package/dist/{codex-hook-brpnycn5.js → codex-hook-pbdh4xhx.js} +2 -2
- package/dist/{codex-session-runner-gdwd8h0c.js → codex-session-runner-02sb49e4.js} +6 -6
- package/dist/{commands-jqmgk54b.js → commands-3rcspxct.js} +2 -2
- package/dist/{controller-z3jq589f.js → controller-8ar4avd6.js} +3 -3
- package/dist/{controllers-connect-r2za39ef.js → controllers-connect-ajvh9h0v.js} +19 -19
- package/dist/{cursor-adapter-4mr4jgkw.js → cursor-adapter-gd0sa7bh.js} +1 -1
- package/dist/{db-w36wwb5g.js → db-dv9j7ts5.js} +2 -2
- package/dist/{db-ppv2tze7.js → db-z26vgdvj.js} +3 -3
- package/dist/{dispatcher-pv5h77vf.js → dispatcher-8m0htjq8.js} +17 -17
- package/dist/{dsh-adapter-d4pdpb3r.js → dsh-adapter-y8gyk130.js} +1 -1
- package/dist/{e2b-fn3zacvt.js → e2b-74vg9b7e.js} +1 -1
- package/dist/{e2b-222hsajc.js → e2b-jyay8wzn.js} +1 -1
- package/dist/{easter-egg-3d-4sp4dvmc.js → easter-egg-3d-28f880xx.js} +1 -1
- package/dist/{execute-jev839y1.js → execute-9seb79vh.js} +1 -1
- package/dist/{external-channel-y6nkzhnn.js → external-channel-smz7jyth.js} +2 -2
- package/dist/{getMachineId-bsd-brn0xym3.js → getMachineId-bsd-whfre6gr.js} +3 -3
- package/dist/{getMachineId-darwin-t339sfxm.js → getMachineId-darwin-5zjynb19.js} +3 -3
- package/dist/{getMachineId-linux-5eq95d8b.js → getMachineId-linux-8mksrrsq.js} +3 -3
- package/dist/{getMachineId-unsupported-qavrtc7j.js → getMachineId-unsupported-fxtqsdt2.js} +3 -3
- package/dist/{getMachineId-win-q7fe1wx7.js → getMachineId-win-nzfmz857.js} +3 -3
- package/dist/{grok-adapter-t08b9ntm.js → grok-adapter-z0nnvtbn.js} +7 -7
- package/dist/handlers-pspryh6g.js +41 -0
- package/dist/{heartbeat-vn31xwdk.js → heartbeat-f928aqyp.js} +20 -20
- package/dist/{hook-cpjs8q51.js → hook-d7c605r4.js} +7 -7
- package/dist/{hook-6d0zbvvt.js → hook-q9hv5xf9.js} +5 -5
- package/dist/{http-9c6medda.js → http-q6j4k989.js} +1000 -251
- package/dist/{index-k0yt1tvq.js → index-5nb266jr.js} +17 -17
- package/dist/{index-ysd45kgc.js → index-8fxt5eah.js} +10 -10
- package/dist/{index-zgvqzjsw.js → index-cekzwhez.js} +5 -5
- package/dist/{index-38t35h0n.js → index-ch0c1xff.js} +17 -17
- package/dist/{index-pkma1yf8.js → index-ebnjhxh1.js} +1 -1
- package/dist/{index-yqgbfgaj.js → index-ed8dy8rn.js} +20 -20
- package/dist/{index-qhjf2htm.js → index-ejqdkkqx.js} +262 -96
- package/dist/{index-dr94zbnh.js → index-farm1zsn.js} +32661 -29443
- package/dist/{index-g6k9tctj.js → index-yn1yxg85.js} +1 -1
- package/dist/{keepalive-em0117bp.js → keepalive-zzc3hks1.js} +3 -3
- package/dist/lead-c0pjcaw4.js +79 -0
- package/dist/{maintenance-kbme3qy9.js → maintenance-kqsxzpzx.js} +1 -1
- package/dist/{oauth-refresh-sweep-xysj4yse.js → oauth-refresh-sweep-7qt0g55z.js} +8 -3
- package/dist/{onboard-p6q0vz97.js → onboard-k7x13fqg.js} +121 -8
- package/dist/{opencode-adapter-esv3k9yn.js → opencode-adapter-tqvrtter.js} +5 -5
- package/dist/{otel-impl-54qhqh1z.js → otel-impl-sqkf6k3b.js} +97 -97
- package/dist/{pi-mono-adapter-mymbwhj0.js → pi-mono-adapter-m2qnafxm.js} +89 -14
- package/dist/{pricing-refresh-yb75wv33.js → pricing-refresh-wkpwhgvs.js} +3 -3
- package/dist/{rbac-roles-dexhc9x8.js → rbac-roles-dpn0c0wj.js} +7 -4
- package/dist/{rbac-roles-1vp2mw4p.js → rbac-roles-wk7xd6a6.js} +2 -2
- package/dist/{render-v2-tjay5hhf.js → render-v2-ex2m4g2k.js} +3 -3
- package/dist/{resume-8ayf37g5.js → resume-725g9b0b.js} +7 -7
- package/dist/{runtime-hqe5cqcd.js → runtime-kajas15g.js} +1 -1
- package/dist/{session-access-fdhp987s.js → session-access-0j2ezjje.js} +8 -4
- package/dist/{session-source-backfill-qgtc86z1.js → session-source-backfill-62202awe.js} +2 -2
- package/dist/{setup-4rrmqcq3.js → setup-9sj11ax6.js} +1 -1
- package/dist/{virtual-modules-52km00d6.js → virtual-modules-c6fcq6zr.js} +2 -2
- package/dist/{work-objects-p28fgd70.js → work-objects-0y07495y.js} +20 -20
- package/dist/worker-d4q9sqbc.js +79 -0
- package/openapi.json +1536 -407
- package/package.json +7 -5
- package/src/be/automation-preflight.ts +2 -0
- package/src/be/connector-codes.ts +65 -22
- package/src/be/db/api-keys.ts +9 -0
- package/src/be/db/workflow-runs.ts +36 -5
- package/src/be/db.ts +80 -22
- package/src/be/memory/boot-reembed.ts +4 -1
- package/src/be/memory/constants.ts +6 -0
- package/src/be/memory/embedding-recovery.ts +48 -0
- package/src/be/memory/index-content.ts +5 -2
- package/src/be/memory/providers/openai-embedding.ts +65 -14
- package/src/be/memory/task-learning.ts +257 -0
- package/src/be/memory/types.ts +13 -2
- package/src/be/migrations/245_script_executor.sql +3 -0
- package/src/be/migrations/246_connector_code_kind.sql +11 -0
- package/src/be/oauth-refresh-sweep.ts +2 -1
- package/src/be/onboarding.ts +125 -15
- package/src/be/rbac-roles.ts +4 -1
- package/src/be/scripts/boot-reembed.ts +2 -0
- package/src/be/scripts/db.ts +14 -4
- package/src/be/scripts/embeddings.ts +4 -2
- package/src/be/scripts/run-saved.ts +1 -0
- package/src/be/scripts/typecheck.ts +9 -3
- package/src/be/seed/agent-fs-provision.ts +75 -14
- package/src/be/seed-skills/index.ts +7 -0
- package/src/be/swarm-config-guard.ts +3 -0
- package/src/cli.tsx +9 -0
- package/src/comb/config.ts +6 -1
- package/src/commands/onboard/agent-fs-version.ts +5 -0
- package/src/commands/onboard/compose-generator.ts +117 -4
- package/src/commands/onboard/env-generator.ts +9 -0
- package/src/commands/onboard/tei-image.ts +12 -0
- package/src/commands/onboard/types.ts +7 -0
- package/src/commands/onboard.tsx +11 -1
- package/src/commands/provider-credentials.ts +2 -1
- package/src/commands/runner.ts +14 -1
- package/src/heartbeat/heartbeat.ts +14 -1
- package/src/heartbeat/script-runner-probe.ts +47 -0
- package/src/http/agentfs-proxy.ts +369 -0
- package/src/http/all-routes.ts +1 -0
- package/src/http/api-keys.ts +24 -9
- package/src/http/codex-oauth-device.ts +8 -1
- package/src/http/fs.ts +64 -10
- package/src/http/idempotency-key.ts +1 -1
- package/src/http/inbox-state.ts +27 -1
- package/src/http/index.ts +7 -4
- package/src/http/memory.ts +7 -4
- package/src/http/onboarding.ts +139 -11
- package/src/http/pages-public.ts +38 -5
- package/src/http/scripts.ts +27 -0
- package/src/http/session-access.ts +24 -0
- package/src/http/sessions.ts +10 -6
- package/src/http/tasks.ts +85 -11
- package/src/http/telemetry-ui.ts +1 -1
- package/src/http/user-roles.ts +4 -1
- package/src/http/users.ts +272 -3
- package/src/http/utils.ts +22 -3
- package/src/http/workflows.ts +10 -0
- package/src/http/x.ts +5 -0
- package/src/prompts/base-prompt.ts +45 -10
- package/src/prompts/session-templates.ts +43 -5
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/codex-adapter.ts +6 -1
- package/src/providers/cursor-adapter.ts +1 -1
- package/src/providers/dsh-adapter.ts +1 -1
- package/src/providers/pi-mono-adapter.ts +99 -14
- package/src/rbac/legacy-policy.ts +1 -0
- package/src/rbac/permissions.ts +4 -0
- package/src/scheduler/scheduler.ts +2 -1
- package/src/scripts-runtime/eval-harness.ts +8 -1
- package/src/scripts-runtime/executors/native.ts +22 -16
- package/src/scripts-runtime/executors/quickjs-prelude.ts +103 -1
- package/src/scripts-runtime/executors/quickjs-runner.ts +2 -1
- package/src/scripts-runtime/executors/quickjs.ts +7 -0
- package/src/scripts-runtime/executors/registry.ts +32 -0
- package/src/scripts-runtime/executors/types.ts +7 -0
- package/src/scripts-runtime/host-validated-args.ts +133 -0
- package/src/scripts-runtime/loader.ts +30 -3
- package/src/scripts-runtime/swarm-sdk.ts +9 -2
- package/src/scripts-runtime/types/stdlib.d.ts +9 -1
- package/src/scripts-runtime/types/swarm-sdk.d.ts +9 -1
- package/src/tests/agent-fs-provision-seeder.test.ts +261 -92
- package/src/tests/agentfs-proxy.test.ts +1106 -0
- package/src/tests/api-key-status-by-suffix.test.ts +242 -0
- package/src/tests/base-prompt.test.ts +139 -4
- package/src/tests/codex-adapter.test.ts +46 -8
- package/src/tests/codex-oauth-device.test.ts +12 -1
- package/src/tests/comb-config-guard.test.ts +20 -0
- package/src/tests/comb-links.test.ts +79 -1
- package/src/tests/comb-status.test.ts +44 -0
- package/src/tests/community-linear-delivery-loop.test.ts +2099 -0
- package/src/tests/credential-check.test.ts +4 -2
- package/src/tests/docs-index-footprint.test.js +3 -3
- package/src/tests/docs-index.test.ts +135 -0
- package/src/tests/dsh-adapter.test.ts +1 -1
- package/src/tests/fetch-resolved-env.test.ts +16 -2
- package/src/tests/fixtures/onboard/baseline-states.ts +68 -0
- package/src/tests/fixtures/onboard/content.compose.yml.txt +190 -0
- package/src/tests/fixtures/onboard/content.env.txt +29 -0
- package/src/tests/fixtures/onboard/dev.compose.yml.txt +155 -0
- package/src/tests/fixtures/onboard/dev.env.txt +28 -0
- package/src/tests/fixtures/onboard/full-all.compose.yml.txt +582 -0
- package/src/tests/fixtures/onboard/full-all.env.txt +59 -0
- package/src/tests/fixtures/onboard/full.compose.yml.txt +435 -0
- package/src/tests/fixtures/onboard/full.env.txt +36 -0
- package/src/tests/fixtures/onboard/research.compose.yml.txt +155 -0
- package/src/tests/fixtures/onboard/research.env.txt +28 -0
- package/src/tests/fixtures/onboard/solo.compose.yml.txt +85 -0
- package/src/tests/fixtures/onboard/solo.env.txt +26 -0
- package/src/tests/heartbeat-checklist.test.ts +89 -0
- package/src/tests/heartbeat-script-runner-probe.test.ts +83 -0
- package/src/tests/http-log-scrubbing.test.ts +34 -1
- package/src/tests/http-task-write-ownership.test.ts +5 -1
- package/src/tests/invites-http.test.ts +464 -0
- package/src/tests/memory-embedding-input-cap.test.ts +122 -1
- package/src/tests/memory-embedding-recovery.test.ts +137 -0
- package/src/tests/oauth-refresh-sweep.test.ts +34 -1
- package/src/tests/onboard-compose.test.ts +162 -0
- package/src/tests/onboard-env.test.ts +24 -0
- package/src/tests/onboard-non-interactive.test.ts +29 -0
- package/src/tests/onboard-tei-image.test.ts +36 -0
- package/src/tests/onboarding.test.ts +451 -4
- package/src/tests/openai-embedding-provider.test.ts +105 -2
- package/src/tests/opencode-adapter.test.ts +2 -1
- package/src/tests/pages-frame-ancestors.test.ts +162 -0
- package/src/tests/pi-codemode.test.ts +2 -1
- package/src/tests/pi-mono-adapter.test.ts +54 -0
- package/src/tests/pi-mono-session-cost-on-abort.test.ts +270 -0
- package/src/tests/pi-native-mcp.test.ts +13 -1
- package/src/tests/pi-tool-exposure.test.ts +8 -8
- package/src/tests/preload-env.test.ts +4 -0
- package/src/tests/preload.ts +4 -0
- package/src/tests/probe-tool-schema-tokens.test.ts +144 -0
- package/src/tests/prompt-template-session.test.ts +20 -3
- package/src/tests/rbac-admission-e2e.test.ts +22 -6
- package/src/tests/rbac-admission.test.ts +342 -4
- package/src/tests/rbac-engine.test.ts +1 -0
- package/src/tests/rbac-roles.test.ts +9 -1
- package/src/tests/request-composition-derive.test.ts +329 -0
- package/src/tests/script-connections.test.ts +2 -0
- package/src/tests/script-executor-conformance.test.ts +36 -1
- package/src/tests/script-executor-quickjs-pool.test.ts +50 -0
- package/src/tests/script-executor-quickjs.test.ts +140 -0
- package/src/tests/script-host-validated-args-native.test.ts +196 -0
- package/src/tests/script-per-script-executor.test.ts +415 -0
- package/src/tests/scripts-external-api.test.ts +45 -0
- package/src/tests/sdk-allowlist.test.ts +3 -2
- package/src/tests/self-improvement.test.ts +4 -4
- package/src/tests/send-task-requester-gate.test.ts +64 -3
- package/src/tests/sessions-move.test.ts +39 -1
- package/src/tests/store-progress-learning.test.ts +381 -0
- package/src/tests/ui-logs-parser.test.ts +180 -0
- package/src/tests/whoami-route.test.ts +41 -0
- package/src/tests/workflow-engine-v2.test.ts +116 -1
- package/src/tests/workflow-mcp-trigger-schema.test.ts +209 -0
- package/src/tests/workflow-run-finished-event.test.ts +263 -0
- package/src/tests/workflow-swarm-script.test.ts +34 -0
- package/src/tools/inject-learning.ts +1 -1
- package/src/tools/memory-edit.ts +1 -1
- package/src/tools/memory-search.ts +1 -1
- package/src/tools/script-common.ts +1 -0
- package/src/tools/script-run.ts +7 -0
- package/src/tools/script-upsert.ts +7 -0
- package/src/tools/store-progress.ts +71 -1
- package/src/tools/utils.ts +12 -1
- package/src/tools/workflows/trigger-workflow.ts +104 -10
- package/src/types.ts +12 -1
- package/src/utils/constants.ts +39 -0
- package/src/utils/credentials.ts +5 -2
- package/src/utils/task-attachment-links.ts +15 -3
- package/src/workflows/engine.ts +18 -16
- package/src/workflows/executors/swarm-script.ts +5 -0
- package/src/workflows/foreach-driver.ts +5 -11
- package/src/workflows/node-timeout.ts +30 -0
- package/templates/community/linear-delivery-loop/PLAYBOOK.md +323 -0
- package/templates/community/linear-delivery-loop/README.md +38 -0
- package/templates/community/linear-delivery-loop/config.example.json +31 -0
- package/templates/community/linear-delivery-loop/lead-prompt.md +34 -0
- package/templates/community/linear-delivery-loop/schedule.json +10 -0
- package/templates/community/linear-delivery-loop/scripts/linear-delivery-setup.ts +148 -0
- package/templates/community/linear-delivery-loop/scripts/linear-delivery-tick.ts +1781 -0
- package/templates/skills/swarm-docs/config.json +14 -0
- package/templates/skills/swarm-docs/content.md +144 -0
- package/dist/handlers-eqsnmv95.js +0 -41
- package/dist/lead-23e7z59t.js +0 -79
- package/dist/worker-e3w7vye1.js +0 -79
- package/dist/{azure-openai-responses-9kfwhmn7.js → azure-openai-responses-43asa23s.js} +0 -0
- package/dist/{node-vxx896fa.js → node-t28cc56b.js} +0 -0
- package/dist/{openai-codex-responses-79s8xnbh.js → openai-codex-responses-jhr3sjtm.js} +3 -3
- package/dist/{openai-completions-tdbyts0x.js → openai-completions-gs6yn37k.js} +3 -3
- /package/dist/{openai-responses-dm3t5vqp.js → openai-responses-jqm9vwwk.js} +0 -0
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
VersionableFieldSchema,
|
|
23
23
|
SessionCostModelBreakdownSchema,
|
|
24
24
|
init_types
|
|
25
|
-
} from "./cli-
|
|
25
|
+
} from "./cli-s504c3w7.js";
|
|
26
26
|
import {
|
|
27
27
|
ALL_TOOLS,
|
|
28
28
|
init_tool_config
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
init_identity_field_budget,
|
|
41
41
|
contentSha256,
|
|
42
42
|
init_profile_sync
|
|
43
|
-
} from "./cli-
|
|
43
|
+
} from "./cli-kj69b9tw.js";
|
|
44
44
|
import {
|
|
45
45
|
isSteeringEnabled2,
|
|
46
46
|
init_steering_enabled
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
} from "./cli-qeaq3j6t.js";
|
|
52
52
|
import {
|
|
53
53
|
init_templates3
|
|
54
|
-
} from "./cli-
|
|
54
|
+
} from "./cli-nzdf09js.js";
|
|
55
55
|
import {
|
|
56
56
|
SUBSCRIPTION_KEY_TYPES,
|
|
57
57
|
planAllowsModelFamily,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
deriveProviderFromKeyType,
|
|
65
65
|
selectCredential,
|
|
66
66
|
init_credentials
|
|
67
|
-
} from "./cli-
|
|
67
|
+
} from "./cli-gt4h8cxw.js";
|
|
68
68
|
import {
|
|
69
69
|
getOpenRouterAttributionHeaders,
|
|
70
70
|
init_openrouter_base_url
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
configureDbResolver,
|
|
77
77
|
init_resolver,
|
|
78
78
|
init_session_templates
|
|
79
|
-
} from "./cli-
|
|
79
|
+
} from "./cli-b41p764a.js";
|
|
80
80
|
import {
|
|
81
81
|
runtimeHarnessSections,
|
|
82
82
|
init_runtime_model_catalog
|
|
@@ -108,15 +108,15 @@ import {
|
|
|
108
108
|
import {
|
|
109
109
|
init_package,
|
|
110
110
|
package_default
|
|
111
|
-
} from "./cli-
|
|
112
|
-
import {
|
|
113
|
-
realtimeBus,
|
|
114
|
-
init_bus
|
|
115
|
-
} from "./cli-syfdvhkc.js";
|
|
111
|
+
} from "./cli-swkx9jm2.js";
|
|
116
112
|
import {
|
|
117
113
|
isEnvFlagEnabled,
|
|
118
114
|
init_env_flag
|
|
119
115
|
} from "./cli-cebvbc9t.js";
|
|
116
|
+
import {
|
|
117
|
+
realtimeBus,
|
|
118
|
+
init_bus
|
|
119
|
+
} from "./cli-syfdvhkc.js";
|
|
120
120
|
import {
|
|
121
121
|
scrubSecrets,
|
|
122
122
|
scrubObject,
|
|
@@ -4972,7 +4972,7 @@ var init_runtime = __esm(() => {
|
|
|
4972
4972
|
// src/telemetry-identity.ts
|
|
4973
4973
|
async function loadUserRole(userId) {
|
|
4974
4974
|
try {
|
|
4975
|
-
const { getUserGrant } = await import("./rbac-roles-
|
|
4975
|
+
const { getUserGrant } = await import("./rbac-roles-wk7xd6a6.js");
|
|
4976
4976
|
const grant = await getUserGrant(userId);
|
|
4977
4977
|
const role = grant.grantsAll ? "admin" : "member";
|
|
4978
4978
|
const user = await getDbClient2().get("SELECT json_extract(metadata, '$.jobFunction') AS jobFunction FROM users WHERE id = ? AND json_valid(metadata)", [userId]);
|
|
@@ -8907,9 +8907,12 @@ async function disarmWorkflowTreeRetries(runIds, finishedAt) {
|
|
|
8907
8907
|
}
|
|
8908
8908
|
async function cancelLiveWorkflowTreeRuns(runIds, reason, finishedAt) {
|
|
8909
8909
|
await forEachChunk(runIds, async (chunk, placeholders) => {
|
|
8910
|
-
await getDbClient2().
|
|
8910
|
+
const cancelled = await getDbClient2().query(`UPDATE workflow_runs
|
|
8911
8911
|
SET status = 'cancelled', error = ?, finishedAt = ?, lastUpdatedAt = ?
|
|
8912
|
-
WHERE id IN (${placeholders}) AND status IN ('running', 'waiting')
|
|
8912
|
+
WHERE id IN (${placeholders}) AND status IN ('running', 'waiting')
|
|
8913
|
+
RETURNING id, workflowId`, [scrubSecrets(reason), finishedAt, finishedAt, ...chunk]);
|
|
8914
|
+
for (const run of cancelled)
|
|
8915
|
+
emitRunFinished(run.id, run.workflowId, "cancelled");
|
|
8913
8916
|
});
|
|
8914
8917
|
}
|
|
8915
8918
|
async function getChildWorkflowRunId(parentStepId, attempt) {
|
|
@@ -8988,10 +8991,21 @@ function emitChildRunFinished(childRunId, parentStepId, status) {
|
|
|
8988
8991
|
emitAfterCommit(childRunId, parentStepId);
|
|
8989
8992
|
}
|
|
8990
8993
|
function emitAfterCommit(childRunId, parentStepId) {
|
|
8994
|
+
emitBusEventAfterCommit("workflow.child.finished", { childRunId, parentStepId });
|
|
8995
|
+
}
|
|
8996
|
+
function isTerminalWorkflowRunStatus(status) {
|
|
8997
|
+
return TERMINAL_STATUSES.has(status);
|
|
8998
|
+
}
|
|
8999
|
+
function emitRunFinished(runId, workflowId, status) {
|
|
9000
|
+
if (!TERMINAL_STATUSES.has(status))
|
|
9001
|
+
return;
|
|
9002
|
+
emitBusEventAfterCommit(WORKFLOW_RUN_FINISHED_EVENT, { runId, workflowId, status });
|
|
9003
|
+
}
|
|
9004
|
+
function emitBusEventAfterCommit(event, payload) {
|
|
8991
9005
|
getDbClient2().afterCommit(() => {
|
|
8992
9006
|
import("./event-bus-pghg8hqy.js").then(({ workflowEventBus }) => {
|
|
8993
|
-
workflowEventBus.emit(
|
|
8994
|
-
}).catch((err) => console.error(
|
|
9007
|
+
workflowEventBus.emit(event, payload);
|
|
9008
|
+
}).catch((err) => console.error(`[db] ${event} event not emitted:`, scrubSecrets(err instanceof Error ? err.message : String(err))));
|
|
8995
9009
|
});
|
|
8996
9010
|
}
|
|
8997
9011
|
async function createForeachChildSteps(runId, parentNodeId, rows) {
|
|
@@ -9049,7 +9063,7 @@ async function createForeachAttemptSteps(runId, rows) {
|
|
|
9049
9063
|
return created;
|
|
9050
9064
|
});
|
|
9051
9065
|
}
|
|
9052
|
-
var WORKFLOW_RUN_SUMMARY_COLUMNS = "id, workflowId, status, triggerType, triggerData, error, created_by, startedAt, lastUpdatedAt, finishedAt, parentStepId, parentStepAttempt", WORKFLOW_RUN_STEP_SLIM_COLUMNS = "id, runId, nodeId, nodeType, status, output, error, startedAt, finishedAt, retryCount, maxRetries, nextRetryAt, idempotencyKey, diagnostics, nextPort", TERMINAL_STATUSES, WORKFLOW_RUN_TREE_MAX_DEPTH = 32, WorkflowRunTreeError, WorkflowStepNotExecutableError, TREE_QUERY_CHUNK = 500;
|
|
9066
|
+
var WORKFLOW_RUN_SUMMARY_COLUMNS = "id, workflowId, status, triggerType, triggerData, error, created_by, startedAt, lastUpdatedAt, finishedAt, parentStepId, parentStepAttempt", WORKFLOW_RUN_STEP_SLIM_COLUMNS = "id, runId, nodeId, nodeType, status, output, error, startedAt, finishedAt, retryCount, maxRetries, nextRetryAt, idempotencyKey, diagnostics, nextPort", TERMINAL_STATUSES, WORKFLOW_RUN_TREE_MAX_DEPTH = 32, WorkflowRunTreeError, WorkflowStepNotExecutableError, TREE_QUERY_CHUNK = 500, WORKFLOW_RUN_FINISHED_EVENT = "workflow.run.finished";
|
|
9053
9067
|
var init_workflow_runs = __esm(() => {
|
|
9054
9068
|
init_types();
|
|
9055
9069
|
init_secret_scrubber();
|
|
@@ -9726,6 +9740,7 @@ var init_swarm_config_guard = __esm(() => {
|
|
|
9726
9740
|
},
|
|
9727
9741
|
OPENROUTER_BASE_URL: (value) => validateHttpBaseUrl(value, "Invalid OPENROUTER_BASE_URL (must be an http(s) URL with no query string or fragment, e.g. https://api.example.com/v1. Leave blank for openrouter.ai)"),
|
|
9728
9742
|
AGENT_FS_PUBLIC_URL: (value) => validateHttpBaseUrl(value, "Invalid AGENT_FS_PUBLIC_URL (must be an http(s) URL with no query string or fragment, e.g. https://agent-fs.example.com. Leave blank to use AGENT_FS_API_URL)"),
|
|
9743
|
+
...enumValidator("AGENT_FS_LINK_TARGET", ["dashboard", "live", ""]),
|
|
9729
9744
|
HARNESS_PROVIDER: (value) => {
|
|
9730
9745
|
const parsed = ProviderNameSchema.safeParse(value);
|
|
9731
9746
|
if (parsed.success)
|
|
@@ -9822,7 +9837,8 @@ var init_swarm_config_guard = __esm(() => {
|
|
|
9822
9837
|
"CLAUDE_TRUST_PRESEED",
|
|
9823
9838
|
"DB_RETENTION_DRY_RUN",
|
|
9824
9839
|
"MODEL_AUTO_UPGRADE",
|
|
9825
|
-
"COMB_ENABLED"
|
|
9840
|
+
"COMB_ENABLED",
|
|
9841
|
+
"AGENT_FS_PROXY"
|
|
9826
9842
|
]),
|
|
9827
9843
|
...enumValidator("SLACK_MODE", ["socket", "http"]),
|
|
9828
9844
|
...enumValidator("SLACK_THREAD_STEERING", ["off", "lead", "all"]),
|
|
@@ -18469,7 +18485,7 @@ function isGraphExpansionEnabled() {
|
|
|
18469
18485
|
const val = process.env.MEMORY_GRAPH_EXPANSION?.trim().toLowerCase();
|
|
18470
18486
|
return val !== "0" && val !== "false";
|
|
18471
18487
|
}
|
|
18472
|
-
var TTL_DEFAULTS, DEFAULT_RECENCY_DECAY_HALF_LIFE, SOURCE_QUALITY_MULTIPLIER, PATH_WEIGHT, DECISIONS_ROOT = "/longterm/decisions", SUPERSEDED_DECISION_WEIGHT = 0.3, ACCESS_BOOST_RECENCY_WINDOW_HOURS, CANDIDATE_SET_MULTIPLIER, EMBEDDING_DIMENSIONS, DEFAULT_EMBEDDING_MODEL = "openai/text-embedding-3-small", PROTECTED_SOURCES;
|
|
18488
|
+
var TTL_DEFAULTS, DEFAULT_RECENCY_DECAY_HALF_LIFE, SOURCE_QUALITY_MULTIPLIER, PATH_WEIGHT, DECISIONS_ROOT = "/longterm/decisions", SUPERSEDED_DECISION_WEIGHT = 0.3, LEARNING_DUPLICATE_MIN_SIMILARITY = 0.8, ACCESS_BOOST_RECENCY_WINDOW_HOURS, CANDIDATE_SET_MULTIPLIER, EMBEDDING_DIMENSIONS, DEFAULT_EMBEDDING_MODEL = "openai/text-embedding-3-small", PROTECTED_SOURCES;
|
|
18473
18489
|
var init_constants = __esm(() => {
|
|
18474
18490
|
TTL_DEFAULTS = {
|
|
18475
18491
|
task_completion: 7,
|
|
@@ -18502,20 +18518,59 @@ var init_constants = __esm(() => {
|
|
|
18502
18518
|
PROTECTED_SOURCES = new Set(["manual"]);
|
|
18503
18519
|
});
|
|
18504
18520
|
|
|
18521
|
+
// src/be/memory/embedding-recovery.ts
|
|
18522
|
+
function noteEmbeddingFailure() {
|
|
18523
|
+
failedSinceBackfill = true;
|
|
18524
|
+
}
|
|
18525
|
+
function noteEmbeddingSuccess() {
|
|
18526
|
+
if (!failedSinceBackfill || backfill)
|
|
18527
|
+
return;
|
|
18528
|
+
failedSinceBackfill = false;
|
|
18529
|
+
const report = (what) => (err) => {
|
|
18530
|
+
console.error(`[memory] ${what} backfill after embeddings recovered failed:`, err.message);
|
|
18531
|
+
};
|
|
18532
|
+
backfill = Promise.all([
|
|
18533
|
+
import("./boot-reembed-k5y5xbj0.js").then(({ runBootReembed }) => runBootReembed()).catch(report("Memory")),
|
|
18534
|
+
import("./boot-reembed-fxfw17m2.js").then(({ runBootReembedScripts }) => runBootReembedScripts()).catch(report("Script"))
|
|
18535
|
+
]).then(() => {
|
|
18536
|
+
return;
|
|
18537
|
+
}).finally(() => {
|
|
18538
|
+
backfill = null;
|
|
18539
|
+
});
|
|
18540
|
+
}
|
|
18541
|
+
var failedSinceBackfill = false, backfill = null;
|
|
18542
|
+
var init_embedding_recovery = () => {};
|
|
18543
|
+
|
|
18505
18544
|
// src/be/memory/providers/openai-embedding.ts
|
|
18506
18545
|
var exports_openai_embedding = {};
|
|
18507
18546
|
__export(exports_openai_embedding, {
|
|
18508
18547
|
OpenAIEmbeddingProvider: () => OpenAIEmbeddingProvider
|
|
18509
18548
|
});
|
|
18510
|
-
function cleanInput(text) {
|
|
18511
|
-
|
|
18549
|
+
function cleanInput(text, prefix = "") {
|
|
18550
|
+
const cleaned = text.replace(/[\n\r]/g, " ").trim();
|
|
18551
|
+
if (!cleaned)
|
|
18552
|
+
return "";
|
|
18553
|
+
return prefix + cleaned.slice(0, Math.max(0, MAX_EMBEDDING_INPUT_CHARS - prefix.length));
|
|
18512
18554
|
}
|
|
18513
18555
|
function isInputRejection(err) {
|
|
18514
18556
|
return err instanceof OpenAI2.APIError && err.status === 400;
|
|
18515
18557
|
}
|
|
18558
|
+
function isBatchTooLarge(err) {
|
|
18559
|
+
if (!(err instanceof OpenAI2.APIError))
|
|
18560
|
+
return false;
|
|
18561
|
+
if (err.status === 413)
|
|
18562
|
+
return true;
|
|
18563
|
+
return err.status === 422 && /batch size/i.test(err.message ?? "");
|
|
18564
|
+
}
|
|
18516
18565
|
function isInputTooLong(err) {
|
|
18517
18566
|
return isInputRejection(err) && /maximum (context|input) length/i.test(err.message ?? "");
|
|
18518
18567
|
}
|
|
18568
|
+
function isOutage(err) {
|
|
18569
|
+
if (!(err instanceof OpenAI2.APIError))
|
|
18570
|
+
return true;
|
|
18571
|
+
const status = err.status;
|
|
18572
|
+
return status === undefined || status === 429 || status >= 500;
|
|
18573
|
+
}
|
|
18519
18574
|
|
|
18520
18575
|
class OpenAIEmbeddingProvider {
|
|
18521
18576
|
name;
|
|
@@ -18523,12 +18578,23 @@ class OpenAIEmbeddingProvider {
|
|
|
18523
18578
|
client = null;
|
|
18524
18579
|
model;
|
|
18525
18580
|
apiKey;
|
|
18581
|
+
queryPrefix;
|
|
18582
|
+
documentPrefix;
|
|
18526
18583
|
constructor(config) {
|
|
18527
18584
|
const apiKey = config?.apiKey ?? process.env.EMBEDDING_API_KEY ?? process.env.OPENAI_API_KEY;
|
|
18528
18585
|
this.apiKey = apiKey ? selectCredential(apiKey, undefined, "EMBEDDING_API_KEY").selected : undefined;
|
|
18529
18586
|
this.model = config?.model ?? process.env.EMBEDDING_MODEL ?? "text-embedding-3-small";
|
|
18530
18587
|
this.dimensions = config?.dimensions ?? EMBEDDING_DIMENSIONS;
|
|
18531
18588
|
this.name = config?.model ? `openai/${config.model}` : process.env.EMBEDDING_MODEL ?? DEFAULT_EMBEDDING_MODEL;
|
|
18589
|
+
this.queryPrefix = config?.queryPrefix ?? process.env.EMBEDDING_QUERY_PREFIX ?? "";
|
|
18590
|
+
this.documentPrefix = config?.documentPrefix ?? process.env.EMBEDDING_DOCUMENT_PREFIX ?? "";
|
|
18591
|
+
}
|
|
18592
|
+
prefixFor(kind) {
|
|
18593
|
+
if (kind === "query")
|
|
18594
|
+
return this.queryPrefix;
|
|
18595
|
+
if (kind === "document")
|
|
18596
|
+
return this.documentPrefix;
|
|
18597
|
+
return "";
|
|
18532
18598
|
}
|
|
18533
18599
|
isConfigured() {
|
|
18534
18600
|
return !!this.apiKey;
|
|
@@ -18568,7 +18634,10 @@ class OpenAIEmbeddingProvider {
|
|
|
18568
18634
|
while (true) {
|
|
18569
18635
|
try {
|
|
18570
18636
|
const response = await this.request(client, input);
|
|
18571
|
-
|
|
18637
|
+
const vector = this.toVector(response.data[0]?.embedding, "Embedding");
|
|
18638
|
+
if (vector)
|
|
18639
|
+
noteEmbeddingSuccess();
|
|
18640
|
+
return vector;
|
|
18572
18641
|
} catch (err) {
|
|
18573
18642
|
const message = err.message;
|
|
18574
18643
|
if (isInputTooLong(err) && input.length > MIN_EMBEDDING_INPUT_CHARS) {
|
|
@@ -18578,25 +18647,28 @@ class OpenAIEmbeddingProvider {
|
|
|
18578
18647
|
continue;
|
|
18579
18648
|
}
|
|
18580
18649
|
console.error("[memory] Embedding failed:", message);
|
|
18650
|
+
if (isOutage(err))
|
|
18651
|
+
noteEmbeddingFailure();
|
|
18581
18652
|
return null;
|
|
18582
18653
|
}
|
|
18583
18654
|
}
|
|
18584
18655
|
}
|
|
18585
|
-
async embed(text) {
|
|
18656
|
+
async embed(text, opts) {
|
|
18586
18657
|
const client = this.getClient();
|
|
18587
18658
|
if (!client)
|
|
18588
18659
|
return null;
|
|
18589
|
-
const cleaned = cleanInput(text);
|
|
18660
|
+
const cleaned = cleanInput(text, this.prefixFor(opts?.kind));
|
|
18590
18661
|
if (!cleaned)
|
|
18591
18662
|
return null;
|
|
18592
18663
|
return this.embedOne(client, cleaned);
|
|
18593
18664
|
}
|
|
18594
|
-
async embedBatch(texts) {
|
|
18665
|
+
async embedBatch(texts, opts) {
|
|
18595
18666
|
const results = texts.map(() => null);
|
|
18596
18667
|
const client = this.getClient();
|
|
18597
18668
|
if (!client)
|
|
18598
18669
|
return results;
|
|
18599
|
-
const
|
|
18670
|
+
const prefix = this.prefixFor(opts?.kind);
|
|
18671
|
+
const cleaned = texts.map((text) => cleanInput(text, prefix));
|
|
18600
18672
|
const groups = [];
|
|
18601
18673
|
let group = [];
|
|
18602
18674
|
let groupChars = 0;
|
|
@@ -18623,9 +18695,13 @@ class OpenAIEmbeddingProvider {
|
|
|
18623
18695
|
continue;
|
|
18624
18696
|
results[originalIndex] = this.toVector(item.embedding, "Batch embedding");
|
|
18625
18697
|
}
|
|
18698
|
+
if (indices.some((i) => results[i]))
|
|
18699
|
+
noteEmbeddingSuccess();
|
|
18626
18700
|
} catch (err) {
|
|
18627
|
-
if (!isInputRejection(err)) {
|
|
18701
|
+
if (!isInputRejection(err) && !isBatchTooLarge(err)) {
|
|
18628
18702
|
console.error("[memory] Batch embedding failed:", err.message);
|
|
18703
|
+
if (isOutage(err))
|
|
18704
|
+
noteEmbeddingFailure();
|
|
18629
18705
|
continue;
|
|
18630
18706
|
}
|
|
18631
18707
|
console.warn(`[memory] Batch embedding rejected, embedding ${indices.length} inputs one by one: ${err.message}`);
|
|
@@ -18643,6 +18719,7 @@ var init_openai_embedding = __esm(() => {
|
|
|
18643
18719
|
init_credentials();
|
|
18644
18720
|
init_openrouter_base_url();
|
|
18645
18721
|
init_constants();
|
|
18722
|
+
init_embedding_recovery();
|
|
18646
18723
|
});
|
|
18647
18724
|
|
|
18648
18725
|
// src/be/memory/key-paths.ts
|
|
@@ -19859,6 +19936,7 @@ function rowToScript(row) {
|
|
|
19859
19936
|
isScratch: row.isScratch === 1,
|
|
19860
19937
|
typeChecked: row.typeChecked === 1,
|
|
19861
19938
|
fsMode: row.fsMode,
|
|
19939
|
+
executor: row.executor ?? null,
|
|
19862
19940
|
createdByAgentId: row.createdByAgentId ?? null,
|
|
19863
19941
|
createdAt: row.createdAt,
|
|
19864
19942
|
updatedAt: row.updatedAt
|
|
@@ -19867,7 +19945,7 @@ function rowToScript(row) {
|
|
|
19867
19945
|
async function embedScript(script) {
|
|
19868
19946
|
const text = scriptEmbeddingText(script);
|
|
19869
19947
|
const provider = embeddingProvider();
|
|
19870
|
-
const embedding = await provider.embed(text);
|
|
19948
|
+
const embedding = await provider.embed(text, { kind: "document" });
|
|
19871
19949
|
if (!embedding)
|
|
19872
19950
|
return;
|
|
19873
19951
|
if (embedding.length !== provider.dimensions) {
|
|
@@ -19950,7 +20028,7 @@ async function lexicalFallback(args) {
|
|
|
19950
20028
|
}
|
|
19951
20029
|
async function searchScripts(args) {
|
|
19952
20030
|
const provider = embeddingProvider();
|
|
19953
|
-
const queryEmbedding = await provider.embed(args.query);
|
|
20031
|
+
const queryEmbedding = await provider.embed(args.query, { kind: "query" });
|
|
19954
20032
|
if (!queryEmbedding)
|
|
19955
20033
|
return lexicalFallback(args);
|
|
19956
20034
|
const candidates = await candidateRows(args.scope, args.scopeId);
|
|
@@ -20004,6 +20082,7 @@ function rowToScript2(row) {
|
|
|
20004
20082
|
scopeId: row.scopeId ?? null,
|
|
20005
20083
|
isScratch: row.isScratch === 1,
|
|
20006
20084
|
typeChecked: row.typeChecked === 1,
|
|
20085
|
+
executor: row.executor ?? null,
|
|
20007
20086
|
createdByAgentId: row.createdByAgentId ?? null
|
|
20008
20087
|
};
|
|
20009
20088
|
}
|
|
@@ -20039,15 +20118,16 @@ async function insertScript(args) {
|
|
|
20039
20118
|
const scopeId = normalizeScopeId(args.scope, args.scopeId);
|
|
20040
20119
|
const contentHash = computeContentHash2(args.source);
|
|
20041
20120
|
const fsMode = args.fsMode ?? "none";
|
|
20121
|
+
const executor = args.executor ?? null;
|
|
20042
20122
|
const isScratch = args.isScratch ? 1 : 0;
|
|
20043
20123
|
const typeChecked = args.typeChecked ? 1 : 0;
|
|
20044
20124
|
return await getDbClient2().transaction(async (tx) => {
|
|
20045
20125
|
const row = await tx.get(`INSERT INTO scripts (
|
|
20046
20126
|
id, "key", name, scope, scopeId, source, description, intent, signatureJson,
|
|
20047
|
-
argsJsonSchema, contentHash, isScratch, typeChecked, fsMode, createdByAgentId, createdAt, updatedAt,
|
|
20127
|
+
argsJsonSchema, contentHash, isScratch, typeChecked, fsMode, executor, createdByAgentId, createdAt, updatedAt,
|
|
20048
20128
|
created_by, updated_by
|
|
20049
20129
|
)
|
|
20050
|
-
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
20130
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
20051
20131
|
RETURNING *`, [
|
|
20052
20132
|
id,
|
|
20053
20133
|
defaultAssetKey("script", id),
|
|
@@ -20063,6 +20143,7 @@ async function insertScript(args) {
|
|
|
20063
20143
|
isScratch,
|
|
20064
20144
|
typeChecked,
|
|
20065
20145
|
fsMode,
|
|
20146
|
+
executor,
|
|
20066
20147
|
args.agentId ?? null,
|
|
20067
20148
|
now,
|
|
20068
20149
|
now,
|
|
@@ -20102,16 +20183,17 @@ async function upsertScriptByName(args) {
|
|
|
20102
20183
|
const contentHash = computeContentHash2(args.source);
|
|
20103
20184
|
if (existing.contentHash === contentHash) {
|
|
20104
20185
|
const fsMode = args.fsMode ?? existing.fsMode;
|
|
20186
|
+
const executor = args.executor !== undefined ? args.executor : existing.executor;
|
|
20105
20187
|
const isScratch = args.isScratch ?? existing.isScratch;
|
|
20106
20188
|
const typeChecked = args.typeChecked ?? existing.typeChecked;
|
|
20107
20189
|
const argsJsonSchema = args.argsJsonSchema !== undefined ? args.argsJsonSchema : existing.argsJsonSchema;
|
|
20108
20190
|
const trackedMetadataChanged = args.description !== existing.description || args.intent !== existing.intent || args.signatureJson !== existing.signatureJson || argsJsonSchema !== existing.argsJsonSchema;
|
|
20109
20191
|
const promotedFromScratch = existing.isScratch && !isScratch;
|
|
20110
20192
|
const refreshScratchLastUsed = existing.scope === "agent" && existing.name.startsWith("scratch-") && existing.isScratch && isScratch;
|
|
20111
|
-
if (fsMode !== existing.fsMode || isScratch !== existing.isScratch || typeChecked !== existing.typeChecked || trackedMetadataChanged || refreshScratchLastUsed) {
|
|
20193
|
+
if (fsMode !== existing.fsMode || executor !== existing.executor || isScratch !== existing.isScratch || typeChecked !== existing.typeChecked || trackedMetadataChanged || refreshScratchLastUsed) {
|
|
20112
20194
|
const row = await getDbClient2().get(`UPDATE scripts
|
|
20113
20195
|
SET description = ?, intent = ?, signatureJson = ?, argsJsonSchema = ?,
|
|
20114
|
-
isScratch = ?, typeChecked = ?, fsMode = ?, updatedAt = ?, updated_by = ?
|
|
20196
|
+
isScratch = ?, typeChecked = ?, fsMode = ?, executor = ?, updatedAt = ?, updated_by = ?
|
|
20115
20197
|
WHERE id = ?
|
|
20116
20198
|
RETURNING *`, [
|
|
20117
20199
|
args.description,
|
|
@@ -20121,6 +20203,7 @@ async function upsertScriptByName(args) {
|
|
|
20121
20203
|
isScratch ? 1 : 0,
|
|
20122
20204
|
typeChecked ? 1 : 0,
|
|
20123
20205
|
fsMode,
|
|
20206
|
+
executor ?? null,
|
|
20124
20207
|
new Date().toISOString(),
|
|
20125
20208
|
args.createdBy ?? null,
|
|
20126
20209
|
existing.id
|
|
@@ -20146,13 +20229,14 @@ async function upsertScriptByName(args) {
|
|
|
20146
20229
|
const now = new Date().toISOString();
|
|
20147
20230
|
const newVersion = existing.version + 1;
|
|
20148
20231
|
const fsMode = args.fsMode ?? existing.fsMode;
|
|
20232
|
+
const executor = args.executor !== undefined ? args.executor : existing.executor;
|
|
20149
20233
|
const isScratch = args.isScratch ?? existing.isScratch;
|
|
20150
20234
|
const typeChecked = args.typeChecked ?? existing.typeChecked;
|
|
20151
20235
|
const argsJsonSchema = args.argsJsonSchema !== undefined ? args.argsJsonSchema : existing.argsJsonSchema;
|
|
20152
20236
|
const script = await getDbClient2().transaction(async (tx) => {
|
|
20153
20237
|
const row = await tx.get(`UPDATE scripts
|
|
20154
20238
|
SET source = ?, description = ?, intent = ?, signatureJson = ?, argsJsonSchema = ?,
|
|
20155
|
-
contentHash = ?, version = ?, isScratch = ?, typeChecked = ?, fsMode = ?, updatedAt = ?, updated_by = ?
|
|
20239
|
+
contentHash = ?, version = ?, isScratch = ?, typeChecked = ?, fsMode = ?, executor = ?, updatedAt = ?, updated_by = ?
|
|
20156
20240
|
WHERE id = ?
|
|
20157
20241
|
RETURNING *`, [
|
|
20158
20242
|
args.source,
|
|
@@ -20165,6 +20249,7 @@ async function upsertScriptByName(args) {
|
|
|
20165
20249
|
isScratch ? 1 : 0,
|
|
20166
20250
|
typeChecked ? 1 : 0,
|
|
20167
20251
|
fsMode,
|
|
20252
|
+
executor ?? null,
|
|
20168
20253
|
now,
|
|
20169
20254
|
args.createdBy ?? null,
|
|
20170
20255
|
existing.id
|
|
@@ -20470,7 +20555,7 @@ async function loadSecretRegistry() {
|
|
|
20470
20555
|
result.failed += 1;
|
|
20471
20556
|
}
|
|
20472
20557
|
try {
|
|
20473
|
-
const { loadRuntimeControllerSecrets } = await import("./db-
|
|
20558
|
+
const { loadRuntimeControllerSecrets } = await import("./db-z26vgdvj.js");
|
|
20474
20559
|
const loaded = await loadRuntimeControllerSecrets();
|
|
20475
20560
|
result.runtimeController = loaded.count;
|
|
20476
20561
|
result.failed += loaded.failed;
|
|
@@ -20746,6 +20831,10 @@ async function recordKeyValidation2(keyType, keys, scope = "global", scopeId = n
|
|
|
20746
20831
|
provider,
|
|
20747
20832
|
now
|
|
20748
20833
|
]);
|
|
20834
|
+
if (key.ok) {
|
|
20835
|
+
await tx.run(`UPDATE api_key_status SET lastValidationError = NULL, lastValidationFailedAt = NULL, updatedAt = ?
|
|
20836
|
+
WHERE keyType = ? AND keySuffix = ? AND lastValidationFailedAt IS NOT NULL`, [now, keyType, key.keySuffix]);
|
|
20837
|
+
}
|
|
20749
20838
|
}
|
|
20750
20839
|
if (options.retireAbsent === false)
|
|
20751
20840
|
return;
|
|
@@ -25481,7 +25570,12 @@ async function updateWorkflowRun2(id, data) {
|
|
|
25481
25570
|
updates.push("lastUpdatedAt = ?");
|
|
25482
25571
|
params.push(new Date().toISOString());
|
|
25483
25572
|
params.push(id);
|
|
25484
|
-
const
|
|
25573
|
+
const update = () => getDbClient2().get(`UPDATE workflow_runs SET ${updates.join(", ")} WHERE id = ? RETURNING *`, params);
|
|
25574
|
+
const endsRun = data.status !== undefined && isTerminalWorkflowRunStatus(data.status);
|
|
25575
|
+
const [previousStatus, row] = endsRun ? await getDbClient2().transaction(async () => {
|
|
25576
|
+
const previous = await getDbClient2().get("SELECT status FROM workflow_runs WHERE id = ?", [id]);
|
|
25577
|
+
return [previous?.status, await update()];
|
|
25578
|
+
}) : [undefined, await update()];
|
|
25485
25579
|
if (!row)
|
|
25486
25580
|
return null;
|
|
25487
25581
|
const run = rowToWorkflowRun(row);
|
|
@@ -25490,6 +25584,9 @@ async function updateWorkflowRun2(id, data) {
|
|
|
25490
25584
|
}
|
|
25491
25585
|
if (row.parentStepId)
|
|
25492
25586
|
emitChildRunFinished(id, row.parentStepId, run.status);
|
|
25587
|
+
if (endsRun && previousStatus && !isTerminalWorkflowRunStatus(previousStatus)) {
|
|
25588
|
+
emitRunFinished(id, run.workflowId, run.status);
|
|
25589
|
+
}
|
|
25493
25590
|
return run;
|
|
25494
25591
|
}
|
|
25495
25592
|
async function listWorkflowRuns2(workflowId, options = {}) {
|
|
@@ -27434,20 +27531,32 @@ function parseRateLimitWindowsJson(value) {
|
|
|
27434
27531
|
function rowToApiKeyStatus(row) {
|
|
27435
27532
|
return { ...row, rateLimitWindows: parseRateLimitWindowsJson(row.rateLimitWindows) };
|
|
27436
27533
|
}
|
|
27437
|
-
async function getAvailableKeyIndices2(keyType, totalKeys, scope = "global", scopeId = null, modelFamily) {
|
|
27534
|
+
async function getAvailableKeyIndices2(keyType, totalKeys, scope = "global", scopeId = null, modelFamily, keySuffixes) {
|
|
27438
27535
|
const now = new Date().toISOString();
|
|
27439
27536
|
const nowMs = Date.now();
|
|
27440
27537
|
const client = getDbClient2();
|
|
27441
27538
|
const effectiveScopeId = scopeId ?? "";
|
|
27539
|
+
const suffixes = keySuffixes?.length ? keySuffixes : undefined;
|
|
27540
|
+
const rowFilter = suffixes ? `keyType = ? AND keySuffix IN (${suffixes.map(() => "?").join(", ")})` : "keyType = ? AND scope = ? AND scopeId = ?";
|
|
27541
|
+
const rowParams = suffixes ? [keyType, ...suffixes] : [keyType, scope, effectiveScopeId];
|
|
27442
27542
|
await client.run(`UPDATE api_key_status
|
|
27443
27543
|
SET status = 'available', rateLimitedUntil = NULL, updatedAt = ?
|
|
27444
|
-
WHERE
|
|
27445
|
-
AND status = 'rate_limited' AND rateLimitedUntil <= ? AND consecutiveAuthFailures < ?`, [now,
|
|
27446
|
-
const rows = await client.query(`SELECT keyIndex, status, rateLimitWindows, plan, authFailureSeq, lastValidationFailedAt FROM api_key_status
|
|
27447
|
-
WHERE
|
|
27448
|
-
const
|
|
27544
|
+
WHERE ${rowFilter}
|
|
27545
|
+
AND status = 'rate_limited' AND rateLimitedUntil <= ? AND consecutiveAuthFailures < ?`, [now, ...rowParams, now, CODEX_AUTH_FAILURE_BENCH_THRESHOLD]);
|
|
27546
|
+
const rows = await client.query(`SELECT keyIndex, keySuffix, scope, scopeId, status, rateLimitWindows, plan, authFailureSeq, lastValidationFailedAt FROM api_key_status
|
|
27547
|
+
WHERE ${rowFilter}`, rowParams);
|
|
27548
|
+
const positionsOf = (row) => {
|
|
27549
|
+
if (!suffixes)
|
|
27550
|
+
return [row.keyIndex];
|
|
27551
|
+
const positions = suffixes.flatMap((suffix, i) => suffix === row.keySuffix ? [i] : []);
|
|
27552
|
+
if (positions.length < 2)
|
|
27553
|
+
return positions;
|
|
27554
|
+
const sameScope = row.scope === scope && row.scopeId === effectiveScopeId;
|
|
27555
|
+
return sameScope && positions.includes(row.keyIndex) ? [row.keyIndex] : [];
|
|
27556
|
+
};
|
|
27557
|
+
const blockedIndices = new Set(rows.filter((r) => r.status === "rate_limited").flatMap(positionsOf));
|
|
27449
27558
|
const rejectedIndices = [
|
|
27450
|
-
...new Set(rows.filter((row) => row.lastValidationFailedAt !== null).
|
|
27559
|
+
...new Set(rows.filter((row) => row.lastValidationFailedAt !== null).flatMap(positionsOf))
|
|
27451
27560
|
];
|
|
27452
27561
|
for (const index of rejectedIndices)
|
|
27453
27562
|
blockedIndices.add(index);
|
|
@@ -27455,12 +27564,13 @@ async function getAvailableKeyIndices2(keyType, totalKeys, scope = "global", sco
|
|
|
27455
27564
|
let earliestModelResetsAtSec;
|
|
27456
27565
|
if (modelFamily) {
|
|
27457
27566
|
for (const row of rows) {
|
|
27458
|
-
|
|
27567
|
+
const positions = positionsOf(row).filter((i) => !blockedIndices.has(i) && !modelBlockedIndices.includes(i));
|
|
27568
|
+
if (positions.length === 0)
|
|
27459
27569
|
continue;
|
|
27460
27570
|
const block = activeModelBlock(parseRateLimitWindowsJson(row.rateLimitWindows), modelFamily, nowMs);
|
|
27461
27571
|
if (!block)
|
|
27462
27572
|
continue;
|
|
27463
|
-
modelBlockedIndices.push(
|
|
27573
|
+
modelBlockedIndices.push(...positions);
|
|
27464
27574
|
if (earliestModelResetsAtSec === undefined || block.resetsAt < earliestModelResetsAtSec) {
|
|
27465
27575
|
earliestModelResetsAtSec = block.resetsAt;
|
|
27466
27576
|
}
|
|
@@ -27470,8 +27580,12 @@ async function getAvailableKeyIndices2(keyType, totalKeys, scope = "global", sco
|
|
|
27470
27580
|
const seatBlockedIndices = [];
|
|
27471
27581
|
if (modelFamily) {
|
|
27472
27582
|
for (const row of rows) {
|
|
27473
|
-
if (
|
|
27474
|
-
|
|
27583
|
+
if (planAllowsModelFamily(row.plan, modelFamily))
|
|
27584
|
+
continue;
|
|
27585
|
+
for (const i of positionsOf(row)) {
|
|
27586
|
+
if (!seatBlockedIndices.includes(i))
|
|
27587
|
+
seatBlockedIndices.push(i);
|
|
27588
|
+
}
|
|
27475
27589
|
}
|
|
27476
27590
|
}
|
|
27477
27591
|
const seatBlockedSet = new Set(seatBlockedIndices);
|
|
@@ -27649,19 +27763,26 @@ async function clearKeyRateLimit2(keyType, keySuffix, scope = "global", scopeId
|
|
|
27649
27763
|
const effectiveScopeId = scopeId ?? "";
|
|
27650
27764
|
const { keyIndex = -1, authFence = null } = opts;
|
|
27651
27765
|
const clearAuthBench = opts.clearAuthBench === true && authFence !== null;
|
|
27652
|
-
const key = [keyType, keySuffix, scope, effectiveScopeId];
|
|
27653
27766
|
return await getDbClient2().transaction(async (tx) => {
|
|
27654
27767
|
const result = await tx.run(`UPDATE api_key_status
|
|
27655
27768
|
SET status = 'available', rateLimitedUntil = NULL, updatedAt = ?
|
|
27656
|
-
WHERE keyType = ? AND keySuffix = ?
|
|
27657
|
-
AND status = 'rate_limited' AND ((? AND authFailureSeq <= ?) OR consecutiveAuthFailures < ?)`, [
|
|
27769
|
+
WHERE keyType = ? AND keySuffix = ?
|
|
27770
|
+
AND status = 'rate_limited' AND ((? AND authFailureSeq <= ?) OR consecutiveAuthFailures < ?)`, [
|
|
27771
|
+
now,
|
|
27772
|
+
keyType,
|
|
27773
|
+
keySuffix,
|
|
27774
|
+
clearAuthBench ? 1 : 0,
|
|
27775
|
+
authFence,
|
|
27776
|
+
CODEX_AUTH_FAILURE_BENCH_THRESHOLD
|
|
27777
|
+
]);
|
|
27658
27778
|
const cleared = result.changes > 0;
|
|
27659
27779
|
if (!clearAuthBench)
|
|
27660
27780
|
return cleared;
|
|
27661
27781
|
const lifted = await tx.query(`UPDATE api_key_status SET consecutiveAuthFailures = 0, updatedAt = ?1,
|
|
27662
27782
|
status = CASE WHEN keySuffix = ?2 THEN status ELSE 'available' END, rateLimitedUntil = CASE WHEN keySuffix = ?2 THEN rateLimitedUntil END
|
|
27663
|
-
WHERE keyType = ?3 AND
|
|
27664
|
-
AND ((keySuffix = ?2 AND authFailureSeq <= ?7)
|
|
27783
|
+
WHERE keyType = ?3 AND (consecutiveAuthFailures > 0 OR status = 'rate_limited')
|
|
27784
|
+
AND ((keySuffix = ?2 AND authFailureSeq <= ?7)
|
|
27785
|
+
OR (keySuffix != ?2 AND keyIndex = ?6 AND scope = ?4 AND scopeId = ?5)) RETURNING keySuffix`, [now, keySuffix, keyType, scope, effectiveScopeId, keyIndex, authFence]);
|
|
27665
27786
|
const retired = lifted.filter((row) => row.keySuffix !== keySuffix);
|
|
27666
27787
|
if (keyType === "CODEX_OAUTH") {
|
|
27667
27788
|
for (const suffix of [...cleared ? [keySuffix] : [], ...retired.map((r) => r.keySuffix)]) {
|
|
@@ -28935,4 +29056,4 @@ var init_db3 = __esm(() => {
|
|
|
28935
29056
|
};
|
|
28936
29057
|
});
|
|
28937
29058
|
|
|
28938
|
-
export { slackContextKey, chatSdkContextKey, chatThreadOfContextKey, agentmailContextKey, githubContextKey, gitlabContextKey, azureDevOpsContextKey, azureDevOpsWorkItemContextKey, bitbucketContextKey, linearContextKey, buildJiraContextKey, scheduleContextKey, workflowContextKey, agentContextKey, pageContextKey, init_context_key, sessionSourceKey, sourceOfKey, SOURCE_GROUPS_READ_ONLY, sourceMoveError, init_source_key, checkSlackRoutingCoherence, init_slack_routing, init_catalog, catalog_default, COMPANY_TEAM_SIZES, COMPANY_USE_CASES, USER_FUNCTIONS, reportedUseCase, reportedUserFunction, init_company_profile, mapTriggerSurface, init_telemetry_context, TELEMETRY_PROXY_ORIGIN, normalizeOrgWebsite, orgLogoUrl, isFilledOrgLogoUrl, init_org_website, beginRequestAuthScope, setRequestAuth, getRequestAuth, getCurrentRequestAuth, runWithoutRequestAuth, getCurrentRequestUserId, init_request_auth_context, setTelemetryIngestObserver, isTelemetryEnabled, _resolveIntegrationType, _resolveIntegrationProvider, initTelemetry, setTelemetryRoleResolver, setTelemetryFunctionResolver, isTelemetryReady, track, trackRelayed, telemetry, emitIntegrationConnected, init_telemetry, auditAssetKeys, init_asset_key_audit, CredentialBindingSchema, placeholderForConfigKey, CredentialBroker, DEFAULT_CREDENTIAL_BINDINGS, assertUrlSafe, parseEgressAllowlist, init_egress_guard, init_credential_broker, encryptSecret, decryptSecret, getEncryptionKey, init_crypto, isInTransaction, init_db_client, breaksJsonValidity, scrubJsonValue, init_scrub_json, sealJson, init_sealed_json, getPromptTemplateDefaultDrift, init_default_drift, init_templates, init_templates2, isSqliteVecAvailable2, resolveSqliteVecExtensionPath2, __resetSqliteVecExtensionPathCacheForTests2, initDb2, getDb2, closeDb2, getDbClient2, init_runtime, cachedUserRole, cachedUserFunction, invalidateTelemetryUserRole, configureOrgDomainPersistence, recomputeOrgDomain, scheduleOrgDomainRecompute, init_telemetry_identity, resolveTriggerSurface, emitTaskTelemetry, init_telemetry_trigger, CODEX_AUTH_FAILURE_BENCH_THRESHOLD, CODEX_AUTH_WATCH_NAMESPACE, codexAuthBenchMarkerKey, isCodexAuthFailureReason, init_codex_auth_failure, isEnvExportRestrictedKey, init_config_env_export, MASKED_SECRET_VALUE, init_config_secrets, HeartbeatExpiryError, init_heartbeat_expiry, isRuntimePoolsEnabled, init_runtime_pools_flag, normalizeDate, normalizeDateRequired, init_date_utils, rowToAgent, updateAgentCredentialState2, updateAgentCredentialMissing2, createAgent2, getAgentById2, EXTENSION_AGENT_ROLE2, NOT_EXTENSION_AGENT_SQL2, isExtensionAgent2, extensionAgentAssignmentError2, ReservedAgentRoleError2, reservedRoleViolation2, ExtensionAgentAssignmentError2, getAllAgents2, getAgentStatusCounts2, getLeadAgent2, updateAgentStatus2, updateAgentMaxTasks2, updateAgentProvider2, setAgentHarnessProvider2, updateAgentCredStatus2, listAgentsWithCredStatusByProvider2, getAgentHarnessProviders2, updateAgentActivity2, MAX_EMPTY_POLLS2, incrementEmptyPollCount2, resetEmptyPollCount2, shouldBlockPolling2, deleteAgent2, getActiveTaskCount2, hasCapacity2, getRemainingCapacity2, updateAgentStatusFromCapacity2, isPoolAffinityEnforcementEnabled2, buildRoutingAffinityFromAgent2, isAgentEligibleForTask2, getAgentDailyTaskCounts2, init_agents, listApprovalRequestSummaries2, getPendingApprovalVoteState2, recordApprovalVotes2, getPendingApprovalsForTasks2, approvalCancellationNotificationKey, listUndeliveredCancelledApprovalRequestIds, init_approvals, computeContentHash2, createContextVersion2, getLatestContextVersion2, getContextVersion2, getContextVersionHistory2, vcsRepoName, vcsRepoUrlMatches, init_vcs_repo_match, rowToAgentTask, getTaskById2, getChildTasks2, TASK_LINEAGE_LIMITS2, getTaskLineage2, hasNonTerminalResumeChild2, SUPERSEDED_RESUME_REPAIR_WINDOW_MS2, getSupersededTasksWithoutResume2, getSupersededTasksWithUnsettledDependents2, hasNonTerminalRerouteDecisionChild2, getTasksByAgentId2, getAgentCurrentTask2, getTasksByStatus2, findTaskByVcs2, findActiveTasksByVcs2, findTaskByGitHub2, readableSessionCondition, getAllTasks2, getTasksCount2, getTaskStats2, getCompletedSlackTasks2, getPendingSlackRelayTasks2, markSlackRelayAttempted2, markSlackRelayDelivered2, markFinalizedSlackRelaysDelivered2, getPendingChatRelayTasks2, giveUpStaleChatRelays2, markChatRelayAttempted2, recordChatRelayError2, markChatRelayDelivered2, markChatRelayGivenUp2, getRecentlyFinishedWorkerTasks2, markTasksNotified2, resetTasksNotified2, getInProgressSlackTasks2, getSlackTasksMissingTree2, getInProgressTasksByContextKey2, isLinearTrackerContextKey2, findExistingLinearTrackerContextWork2, getLatestTaskByContextKey2, getLatestScriptRunStepTaskByContextKey2, getAgentWorkingOnThread2, getLatestActiveTaskInThread2, getLatestLeadTaskInThread2, getAgentWorkingOnContextKey2, getLatestActiveTaskByContextKey2, getLatestLeadTaskByContextKey2, getMostRecentTaskInThread2, findCompletedTaskInThread2, findRecentCancelledTaskInThread2, init_read, MODEL_PROFILE_CONFIG_KEY, listModelProfiles, getModelProfileByName, createModelProfile, updateModelProfile, modelProfileReferences, modelProfileRefError, deleteModelProfile, getAgentDefaultProfileName, repoModelOverrideKeys, taskProfileError, init_model_profiles, AssetKeyMovesBlockedError2, assertAssetKeyMovesAllowed2, moveTaskChainKeyInTx2, moveSessionChains, listPrefixRoots, listSharedPrefixRoots, init_session_moves, getSessionGroupKey, getSessionReadState, getSessionTree, triageSessionList, init_session_tree, setHumanFreeQueueListener, drainHumanFreeReclassifyQueue, init_human_free, onTaskStarted, init_task_lifecycle_events, channelTopic, addWorkerSubscription, removeWorkerSubscription, listSubscribedWorkerAgents, init_channels, publishWorkerNudge, init_worker_nudges, createTask2, getPendingTaskForAgent2, assignUnassignedTaskPending2, startTask2, updateTaskClaudeSessionId2, recordTaskProviderIfUnset2, updateTaskTitle2, completeTask2, failTask2, overwriteTerminalTaskResultText2, cancelTask2, supersedeTask2, settleSupersededTaskDependents2, backfillSupersedeTaskResumeTaskId2, pauseTask2, resumeTask2, getPausedTasksForAgent2, getOrphanedInProgressTasksForAgent2, resetOrphanedInProgressTasksForAgent2, getRecentlyCancelledTasksForAgent2, deleteTask2, updateTaskProgress2, IdempotencyKeyTakenError, workflowRequestFingerprint, findAcceptedWorkflowOperation, assertWorkflowIdempotencyKeyUnused, recordAcceptedWorkflowOperation, init_workflow_idempotency, WorkflowReplayStateError, init_workflow_replay, getWorkflowRunSummary, getWorkflowRunStepsSlimByRunId, WORKFLOW_RUN_TREE_MAX_DEPTH, WorkflowRunTreeError, getRunLineageBlock, getWorkflowRunTreeIds, getWorkflowRunStatus, getOpenWorkflowTreeTaskIds, getTaskIdsWithDependents, workflowRunTreeHasOpenWork, getWorkflowRunTree, cancelOpenWorkflowTreeSteps, disarmWorkflowTreeRetries, cancelLiveWorkflowTreeRuns, getChildWorkflowRunId, isParentStepAttemptCurrent, getRunningSubWorkflowSteps, getWorkflowRunParent, getWorkflowRunLineage, getSettledChildRunParentSteps, createForeachChildSteps, createForeachAttemptSteps, init_workflow_runs, CHAT_SDK_ADAPTER_NAMES, CHAT_SDK_ADAPTER_SCHEMAS, ChatSdkAdaptersDraftSchema, firstIssueText, isAdapterEntryEnabled, init_schema, TELEMETRY_RANKING_KEY, PUBLIC_RANKING_ENABLED_KEY, RANKING_CATEGORIES, readTelemetryRanking, rankingFormSchema, buildListing, init_telemetry_ranking, resolveQuickJSPoolSize, init_quickjs_pool_config, SLACK_REACTION_DEFAULTS, SLACK_REACTION_CONFIG_KEYS, reactionName, completedStatusIcon, init_reaction_shortcode, API_DRAINING_HEADER, API_DRAIN_MAX_MS_LIMIT, isApiDrainingResponse, init_api_drain, parseEnabledTools, init_enabled_tools, parseTaskToolManifest, CHAT_TASK_ONLY_TOOLS, isChatSdkTask, selectTaskTools, init_task_tool_manifest, tierConfigKey, init_model_tier_keys, isApiOnlyConfigKey, isInternalConfigKey, internalConfigKeyError, isReservedConfigKey, reservedKeyError, MAX_DB_RETENTION_DAYS, DB_RETENTION_TUNING_BOUNDS, APPS_JSON_COLUMN_MAX_BYTES_BOUNDS, CODEX_OAUTH_KEEP_WARM_MAX_AGE_HOURS_BOUNDS, validateRuntimeTokenTtlHours, validateControllerTokenTtlDays, validateControllerGraceSec, validateConfigValue, validateConfigEntry, validateExportToEnv, init_swarm_config_guard, getDefaultAuthorizationIdForProvider, getOAuthApp, getOAuthAppById, getOAuthAppIdByProvider, createOAuthApp, updateOAuthAppById, upsertOAuthApp, listAuthorizationsForApp, getAuthorizationById, upsertAuthorization, updateAuthorizationTokens, updateAuthorizationIdentity, deleteAuthorizationById, deleteAuthorizationsForApp, createOAuthPending, consumeOAuthPending, gcOAuthPending, markAuthorizationRefreshFailed, getOAuthTokens, listAuthorizationSweepRows, listKeepAliveAuthorizations, deleteOAuthTokens, acquireOAuthRefreshLock, releaseOAuthRefreshLock, init_oauth, OpenAI2, init_openai, CANDIDATE_SET_MULTIPLIER, isGraphExpansionEnabled, EMBEDDING_DIMENSIONS, init_constants, LONGTERM_ROOT, MEMORY_KEY_PATTERN, MEMORY_KEY_PATTERN_MESSAGE, MEMORY_KEY_MAX_LENGTH, isLongtermKey, longtermKeyError, isConsolidatedKey, consolidatedKeyMessage, resolveStoreKey, init_key_paths, computeScore, rerank, init_reranker, searchMemoryCandidates, init_search_candidates, rowToCandidate, init_sqlite_store, getEmbeddingProvider2, resetEmbeddingProvider2, getMemoryStore2, init_memory, embeddingProvider, embedScript, searchScripts, reembedAllScripts, init_embeddings, upsertScriptByName, getScript, getScriptById, getScriptVersion, listScripts, listScriptVersions, deleteScript, touchScratchScriptLastUsed, restoreScratchScriptLastUsedIfUnchanged, createScriptApi, listScriptApisForScript, getScriptApiById, getScriptApiSecret, updateScriptApi, rotateScriptApiSecret, deleteScriptApi, recordScriptApiUsage, init_db2, oauthSecretName, registerStoredSecret, loadSecretRegistry, init_secret_registry, STEERING_MOVED_ERROR, SteeringRequestError, isSteeringEnabled, getTaskSteeringFields, getTaskSteeringFieldsForTasks, promotePendingSteeringForTask, markSteeringUndeliverable, carryUnhandledSteering, requestSteering, init_steering, SESSION_ACTIVITY_REFRESH_MIN_INTERVAL_MS2, refreshActiveSessionOnActivity2, getActiveSessionById, init_active_sessions, recordKeySeatMismatch2, recordKeyValidation2, retirePoolKeyStatus, init_api_keys, getScriptRunExecutionArgs2, literalPrefixPattern2, getSlackRenderV2ActivatedAt2, ensureSlackRenderV2Activation2, getSlackDelegationActivatedAt2, ensureSlackDelegationActivation2, isPendingSlackMessage2, isSettledSlackMessage2, recordSlackMessage2, reserveSlackMessage2, bindSlackMessageTimestamp2, updateSlackMessageRecord2, markSlackTreeRendered2, deleteSlackMessageRecord2, getSlackTreeMessage2, getSlackTreeMessageByThread2, getSlackOutcomeMessage2, getResolvableDeferralOutcomes2, markSlackDeferralResolved2, noteSlackOutcomeDeliveryFailure2, abandonSlackOutcomeDelivery2, getSlackTreeMessages2, getSlackMessageByChannelTs2, getSlackTasksInThread2, listSlackThreadsAwaitingHuman2, isSlackThreadAwaitingHuman2, markTaskSlackReplySent2, setSlackMessageTracking2, updateTaskVcs2, insertTaskAttachment2, recordTaskPullRequestAttachments2, getAssetKeyMappingByProvider2, upsertAssetKeyMapping2, getAssetKeyMapping2, listAssetSummaries2, moveAssetKey2, deleteTaskAttachment2, replaceTaskAttachment2, getTaskAttachments2, createSteeringMessage2, getSteeringMessagesForTask2, getSteeringMessageById2, getPendingSteeringForTask2, getPendingSteeringForAgent2, markSteeringDelivered2, markSteeringHandled2, markSteeringPromoted2, cancelPendingSteeringForTask2, hasPendingSteering2, getAgentWithTasks2, getAllAgentsWithTasks2, createLogEntry2, getLogsByAgentId2, getLogsByTaskId2, getLogsByTaskIdAndEventType2, getLogsByTaskIdChronological2, getLogsByEventType2, getAllLogs2, findRecentSimilarTasks2, createTaskExtended2, claimTask2, releaseTask2, acceptTask2, rejectTask2, moveTaskToBacklog2, moveTaskFromBacklog2, promoteDraftTask2, refreshDraftTaskLease2, promoteAbandonedDraftTasks2, releaseStaleReviewingTasks2, releaseStaleOfferedTasksForOfflineAgents2, getOfferedTasksForAgent2, claimOfferedTask2, getUnassignedTasksCount2, getUnassignedTaskIds2, getUnassignedTaskIdsForAgent2, checkDependencies2, getDependentTasks2, cascadeFailDependents2, updateAgentProfile2, updateAgentName2, createChannel2, getMessageById2, getChannelById2, getChannelByName2, getAllChannels2, deleteChannel2, postMessage2, getChannelMessages2, updateReadState2, getLastReadAt2, getUnreadMessages2, getMentionsForAgent2, getInboxSummary2, claimMentions2, releaseMentionProcessing2, releaseStaleMentionProcessing2, createService2, getServiceById2, getServiceByAgentAndName2, getServicesByAgentId2, getAllServices2, updateServiceStatus2, deleteService2, upsertService2, deleteServicesByAgentId2, createSessionLogs2, getSessionLogsByTaskId2, getSessionLogsBySession2, createSessionCost2, getSessionCostsByTaskId2, getSessionCostsByAgentId2, getAllSessionCosts2, getSessionCostsFiltered2, UNATTRIBUTED_USER_ID2, getSessionCostSummary2, getAttributionByPerson2, getDashboardCostSummary2, createInboxMessage2, getInboxMessageById2, getUnreadInboxMessages2, claimInboxMessages2, markInboxMessageRead2, markInboxMessageResponded2, markInboxMessageDelegated2, releaseStaleProcessingInbox2, getConcurrentContext2, getScheduledTasks2, getScheduledTaskById2, getScheduledTaskByName2, createScheduledTask2, updateScheduledTask2, deleteScheduledTask2, getDueScheduledTasks2, autoEncryptLegacyPlaintextSecrets2, maskSecrets2, getSwarmConfigs2, getInjectableGlobalConfigs2, getSwarmConfigById2, getSwarmConfigLookupById2, upsertSwarmConfig2, emitBuiltInIntegrationConnectedOnce2, deleteSwarmConfig2, deleteSwarmConfigByKey2, getResolvedConfig2, getSwarmRepos2, getSwarmRepoById2, getSwarmRepoByName2, getSwarmRepoByUrl2, createSwarmRepo2, updateSwarmRepo2, deleteSwarmRepo2, getAgentMailInboxMapping2, getAgentMailInboxMappingsByAgent2, getAllAgentMailInboxMappings2, createAgentMailInboxMapping2, deleteAgentMailInboxMapping2, findTaskByAgentMailThread2, insertActiveSession2, deleteActiveSession2, deleteActiveSessionById2, getActiveSessions2, heartbeatActiveSession2, cleanupStaleSessions2, cleanupAgentSessions2, updateActiveSessionProviderSessionId2, getActiveSessionForTask2, reassociateSessionLogs2, getStalledInProgressTasks2, getStalePinnedResumes2, failPendingResumeIfUnclaimed2, getIdleWorkersWithCapacity2, getUnassignedPoolTasks2, getStaleUnassignedAffinityTasks2, getRecentFailedTasks2, getRecentCompletedCount2, getRecentFailedCount2, createWorkflow2, getWorkflow2, listWorkflows2, updateWorkflow2, deleteWorkflow2, getWorkflowsByScheduleId2, createWorkflowRun2, getWorkflowRun2, updateWorkflowRun2, listWorkflowRuns2, countWorkflowRuns2, listWorkflowRunsPage2, createWorkflowRunStep2, getWorkflowRunStep2, updateWorkflowRunStep2, getWorkflowRunStepsByRunId2, getStuckWorkflowRuns2, getLastSuccessfulRun2, getLastRunStart2, getRetryableSteps2, getCompletedStepNodeIds2, getTaskByWorkflowRunStepId2, detachTaskFromWorkflowRunStep2, getStepByIdempotencyKey2, getStepCountForNode2, getLatestStepForNode2, getCurrentStepForNode2, createWorkflowVersion2, getWorkflowVersions2, getWorkflowVersion2, createAppVersion2, getAppVersions2, getAppVersion2, createPage2, getPage2, getPageBySlug2, getLatestPageBySlug2, listPagesByAgent2, listAllPages2, countAllPages2, countPagesByAgent2, updatePage2, deletePage2, incrementPageViewCount2, createPageVersion2, getPageVersions2, getPageVersion2, createMetric2, getMetric2, getMetricBySlug2, listMetricsByAgent2, listAllMetrics2, countAllMetrics2, countMetricsByAgent2, updateMetric2, deleteMetric2, createMetricVersion2, getMetricVersions2, getMetricVersion2, getPromptTemplates2, getPromptTemplateById2, upsertPromptTemplate2, deletePromptTemplate2, resetPromptTemplateToDefault2, getPromptTemplateHistory2, resolvePromptTemplate2, checkoutPromptTemplate2, getAllChannelActivityCursors2, getChannelActivityCursor2, upsertChannelActivityCursor2, createApprovalRequest2, getApprovalRequestById2, resolveApprovalRequest2, cancelApprovalRequestById2, cancelPendingApprovalRequestsForRun2, listCancelledApprovalRequestsForRun2, listCancelledApprovalRequestsForStep2, claimApprovalCancellationNotification2, completeApprovalCancellationNotificationClaim2, releaseApprovalCancellationNotificationClaim2, updateApprovalRequestNotifications2, listApprovalRequests2, getStuckApprovalRuns2, getApprovalRequestByStepId2, getExpiredPendingApprovals2, getStaleApprovalRequests2, createWaitState2, getWaitStateById2, getWaitStateByStepId2, getDueWaitStates2, getPendingEventWaitNames2, getPendingWaitsByEvent2, resolveWaitState2, getStuckWaitRuns2, SKILL_FILE_LIMITS2, normalizeSkillFilePath2, createSkill2, updateSkill2, listSkillFileManifest2, getSkillFiles2, getSkillFile2, upsertSkillFile2, upsertSkillFiles2, deleteSkillFile2, deleteSkill2, getSkillById2, getSkillByName2, listSkills2, searchSkills2, installSkill2, getSystemDefaultSkills2, installSystemDefaultSkillsForAgent2, uninstallSkill2, getAgentSkills2, toggleAgentSkill2, createMcpServer2, emitMcpServerConnectedTelemetry2, updateMcpServer2, deleteMcpServer2, getMcpServerById2, getMcpServerByName2, listMcpServers2, installMcpServer2, uninstallMcpServer2, getAgentMcpServers2, createContextSnapshot2, getContextSnapshotsByTaskId2, getContextSnapshotsBySessionId2, getContextSummaryByTaskId2, getAvailableKeyIndices2, recordKeyUsage2, setApiKeyPlan2, markKeyRateLimited2, recordKeyAuthFailure2, recordKeyRateLimitWindows2, setApiKeyName2, clearKeyRateLimit2, getKeyStatuses2, getKeyCostSummary2, getUserById2, getAllUsers2, createUser2, updateUser2, deleteUser2, listInboxState2, upsertInboxState2, listFavorites2, listUserFavorites2, getFavoriteItemIdSet2, setFavorite2, setUserFavorite2, withFavoriteFlags2, listTaskTemplates2, getRootTaskChain2, listRecentSessions2, countSessions2, getBudget2, getBudgets2, upsertBudget2, deleteBudget2, getAllPricingRows2, getPricingRows2, getActivePricingRow2, insertPricingRow2, deletePricingRow2, getDailySpendForAgent2, getDailySpendGlobal2, getDailySpendForUser2, recordBudgetRefusalNotification2, getBudgetRefusalNotification2, getRecentBudgetRefusalNotifications2, hasBudgetRefusalNotificationToday2, setBudgetRefusalFollowUpTaskId2, getLiveAgentCounts2, getReadyAgentCounts2, getInstanceActivity2, getSwarmMetrics2, hasFirstCompletedTask2, getKv2, sweepExpiredKv2, sweepExpiredKvPrefix2, upsertKv2, claimKv2, deleteKv2, KvTypeCollisionError2, incrKv2, kvPrefixUpperBound2, listKv2, countKv2, createScriptRun2, recordInlineScriptRun2, getScriptRun2, getScriptRunByIdempotencyKey2, listScriptRuns2, countScriptRuns2, countActiveScriptRuns2, updateScriptRun2, updateScriptRunIfNotTerminal2, updateScriptRunIfRunning2, getRunningScriptRuns2, getScriptRunJournalStep2, upsertScriptRunJournalStep2, listScriptRunJournalSteps2, countScriptRunJournalSteps2, countScriptRunJournalAgentTaskSteps2, exports_db, init_db3 };
|
|
29059
|
+
export { slackContextKey, chatSdkContextKey, chatThreadOfContextKey, agentmailContextKey, githubContextKey, gitlabContextKey, azureDevOpsContextKey, azureDevOpsWorkItemContextKey, bitbucketContextKey, linearContextKey, buildJiraContextKey, scheduleContextKey, workflowContextKey, agentContextKey, pageContextKey, init_context_key, sessionSourceKey, sourceOfKey, SOURCE_GROUPS_READ_ONLY, sourceMoveError, init_source_key, checkSlackRoutingCoherence, init_slack_routing, init_catalog, catalog_default, COMPANY_TEAM_SIZES, COMPANY_USE_CASES, USER_FUNCTIONS, reportedUseCase, reportedUserFunction, init_company_profile, mapTriggerSurface, init_telemetry_context, TELEMETRY_PROXY_ORIGIN, normalizeOrgWebsite, orgLogoUrl, isFilledOrgLogoUrl, init_org_website, beginRequestAuthScope, setRequestAuth, getRequestAuth, getCurrentRequestAuth, runWithoutRequestAuth, getCurrentRequestUserId, init_request_auth_context, setTelemetryIngestObserver, isTelemetryEnabled, _resolveIntegrationType, _resolveIntegrationProvider, initTelemetry, setTelemetryRoleResolver, setTelemetryFunctionResolver, isTelemetryReady, track, trackRelayed, telemetry, emitIntegrationConnected, init_telemetry, auditAssetKeys, init_asset_key_audit, CredentialBindingSchema, placeholderForConfigKey, CredentialBroker, DEFAULT_CREDENTIAL_BINDINGS, isPrivateAddress, assertUrlSafe, parseEgressAllowlist, init_egress_guard, init_credential_broker, encryptSecret, decryptSecret, getEncryptionKey, init_crypto, isInTransaction, init_db_client, breaksJsonValidity, scrubJsonValue, init_scrub_json, sealJson, init_sealed_json, getPromptTemplateDefaultDrift, init_default_drift, init_templates, init_templates2, isSqliteVecAvailable2, resolveSqliteVecExtensionPath2, __resetSqliteVecExtensionPathCacheForTests2, initDb2, getDb2, closeDb2, getDbClient2, init_runtime, cachedUserRole, cachedUserFunction, invalidateTelemetryUserRole, configureOrgDomainPersistence, recomputeOrgDomain, scheduleOrgDomainRecompute, init_telemetry_identity, resolveTriggerSurface, emitTaskTelemetry, init_telemetry_trigger, CODEX_AUTH_FAILURE_BENCH_THRESHOLD, CODEX_AUTH_WATCH_NAMESPACE, codexAuthBenchMarkerKey, isCodexAuthFailureReason, init_codex_auth_failure, isEnvExportRestrictedKey, init_config_env_export, MASKED_SECRET_VALUE, init_config_secrets, HeartbeatExpiryError, init_heartbeat_expiry, isRuntimePoolsEnabled, init_runtime_pools_flag, normalizeDate, normalizeDateRequired, init_date_utils, rowToAgent, updateAgentCredentialState2, updateAgentCredentialMissing2, createAgent2, getAgentById2, EXTENSION_AGENT_ROLE2, NOT_EXTENSION_AGENT_SQL2, isExtensionAgent2, extensionAgentAssignmentError2, ReservedAgentRoleError2, reservedRoleViolation2, ExtensionAgentAssignmentError2, getAllAgents2, getAgentStatusCounts2, getLeadAgent2, updateAgentStatus2, updateAgentMaxTasks2, updateAgentProvider2, setAgentHarnessProvider2, updateAgentCredStatus2, listAgentsWithCredStatusByProvider2, getAgentHarnessProviders2, updateAgentActivity2, MAX_EMPTY_POLLS2, incrementEmptyPollCount2, resetEmptyPollCount2, shouldBlockPolling2, deleteAgent2, getActiveTaskCount2, hasCapacity2, getRemainingCapacity2, updateAgentStatusFromCapacity2, isPoolAffinityEnforcementEnabled2, buildRoutingAffinityFromAgent2, isAgentEligibleForTask2, getAgentDailyTaskCounts2, init_agents, listApprovalRequestSummaries2, getPendingApprovalVoteState2, recordApprovalVotes2, getPendingApprovalsForTasks2, approvalCancellationNotificationKey, listUndeliveredCancelledApprovalRequestIds, init_approvals, computeContentHash2, createContextVersion2, getLatestContextVersion2, getContextVersion2, getContextVersionHistory2, vcsRepoName, vcsRepoUrlMatches, init_vcs_repo_match, rowToAgentTask, getTaskById2, getChildTasks2, TASK_LINEAGE_LIMITS2, getTaskLineage2, hasNonTerminalResumeChild2, SUPERSEDED_RESUME_REPAIR_WINDOW_MS2, getSupersededTasksWithoutResume2, getSupersededTasksWithUnsettledDependents2, hasNonTerminalRerouteDecisionChild2, getTasksByAgentId2, getAgentCurrentTask2, getTasksByStatus2, findTaskByVcs2, findActiveTasksByVcs2, findTaskByGitHub2, readableSessionCondition, getAllTasks2, getTasksCount2, getTaskStats2, getCompletedSlackTasks2, getPendingSlackRelayTasks2, markSlackRelayAttempted2, markSlackRelayDelivered2, markFinalizedSlackRelaysDelivered2, getPendingChatRelayTasks2, giveUpStaleChatRelays2, markChatRelayAttempted2, recordChatRelayError2, markChatRelayDelivered2, markChatRelayGivenUp2, getRecentlyFinishedWorkerTasks2, markTasksNotified2, resetTasksNotified2, getInProgressSlackTasks2, getSlackTasksMissingTree2, getInProgressTasksByContextKey2, isLinearTrackerContextKey2, findExistingLinearTrackerContextWork2, getLatestTaskByContextKey2, getLatestScriptRunStepTaskByContextKey2, getAgentWorkingOnThread2, getLatestActiveTaskInThread2, getLatestLeadTaskInThread2, getAgentWorkingOnContextKey2, getLatestActiveTaskByContextKey2, getLatestLeadTaskByContextKey2, getMostRecentTaskInThread2, findCompletedTaskInThread2, findRecentCancelledTaskInThread2, init_read, MODEL_PROFILE_CONFIG_KEY, listModelProfiles, getModelProfileByName, createModelProfile, updateModelProfile, modelProfileReferences, modelProfileRefError, deleteModelProfile, getAgentDefaultProfileName, repoModelOverrideKeys, taskProfileError, init_model_profiles, AssetKeyMovesBlockedError2, assertAssetKeyMovesAllowed2, moveTaskChainKeyInTx2, moveSessionChains, listPrefixRoots, listSharedPrefixRoots, init_session_moves, getSessionGroupKey, getSessionReadState, getSessionTree, triageSessionList, init_session_tree, setHumanFreeQueueListener, drainHumanFreeReclassifyQueue, init_human_free, onTaskStarted, init_task_lifecycle_events, channelTopic, addWorkerSubscription, removeWorkerSubscription, listSubscribedWorkerAgents, init_channels, publishWorkerNudge, init_worker_nudges, createTask2, getPendingTaskForAgent2, assignUnassignedTaskPending2, startTask2, updateTaskClaudeSessionId2, recordTaskProviderIfUnset2, updateTaskTitle2, completeTask2, failTask2, overwriteTerminalTaskResultText2, cancelTask2, supersedeTask2, settleSupersededTaskDependents2, backfillSupersedeTaskResumeTaskId2, pauseTask2, resumeTask2, getPausedTasksForAgent2, getOrphanedInProgressTasksForAgent2, resetOrphanedInProgressTasksForAgent2, getRecentlyCancelledTasksForAgent2, deleteTask2, updateTaskProgress2, IdempotencyKeyTakenError, workflowRequestFingerprint, findAcceptedWorkflowOperation, assertWorkflowIdempotencyKeyUnused, recordAcceptedWorkflowOperation, init_workflow_idempotency, WorkflowReplayStateError, init_workflow_replay, getWorkflowRunSummary, getWorkflowRunStepsSlimByRunId, WORKFLOW_RUN_TREE_MAX_DEPTH, WorkflowRunTreeError, getRunLineageBlock, getWorkflowRunTreeIds, getWorkflowRunStatus, getOpenWorkflowTreeTaskIds, getTaskIdsWithDependents, workflowRunTreeHasOpenWork, getWorkflowRunTree, cancelOpenWorkflowTreeSteps, disarmWorkflowTreeRetries, cancelLiveWorkflowTreeRuns, getChildWorkflowRunId, isParentStepAttemptCurrent, getRunningSubWorkflowSteps, getWorkflowRunParent, getWorkflowRunLineage, getSettledChildRunParentSteps, emitRunFinished, createForeachChildSteps, createForeachAttemptSteps, init_workflow_runs, CHAT_SDK_ADAPTER_NAMES, CHAT_SDK_ADAPTER_SCHEMAS, ChatSdkAdaptersDraftSchema, firstIssueText, isAdapterEntryEnabled, init_schema, TELEMETRY_RANKING_KEY, PUBLIC_RANKING_ENABLED_KEY, RANKING_CATEGORIES, readTelemetryRanking, rankingFormSchema, buildListing, init_telemetry_ranking, resolveQuickJSPoolSize, init_quickjs_pool_config, SLACK_REACTION_DEFAULTS, SLACK_REACTION_CONFIG_KEYS, reactionName, completedStatusIcon, init_reaction_shortcode, API_DRAINING_HEADER, API_DRAIN_MAX_MS_LIMIT, isApiDrainingResponse, init_api_drain, parseEnabledTools, init_enabled_tools, parseTaskToolManifest, CHAT_TASK_ONLY_TOOLS, isChatSdkTask, selectTaskTools, init_task_tool_manifest, tierConfigKey, init_model_tier_keys, isApiOnlyConfigKey, isInternalConfigKey, internalConfigKeyError, isReservedConfigKey, reservedKeyError, MAX_DB_RETENTION_DAYS, DB_RETENTION_TUNING_BOUNDS, APPS_JSON_COLUMN_MAX_BYTES_BOUNDS, CODEX_OAUTH_KEEP_WARM_MAX_AGE_HOURS_BOUNDS, validateRuntimeTokenTtlHours, validateControllerTokenTtlDays, validateControllerGraceSec, validateConfigValue, validateConfigEntry, validateExportToEnv, init_swarm_config_guard, getDefaultAuthorizationIdForProvider, getOAuthApp, getOAuthAppById, getOAuthAppIdByProvider, createOAuthApp, updateOAuthAppById, upsertOAuthApp, listAuthorizationsForApp, getAuthorizationById, upsertAuthorization, updateAuthorizationTokens, updateAuthorizationIdentity, deleteAuthorizationById, deleteAuthorizationsForApp, createOAuthPending, consumeOAuthPending, gcOAuthPending, markAuthorizationRefreshFailed, getOAuthTokens, listAuthorizationSweepRows, listKeepAliveAuthorizations, deleteOAuthTokens, acquireOAuthRefreshLock, releaseOAuthRefreshLock, init_oauth, OpenAI2, init_openai, LEARNING_DUPLICATE_MIN_SIMILARITY, CANDIDATE_SET_MULTIPLIER, isGraphExpansionEnabled, EMBEDDING_DIMENSIONS, init_constants, LONGTERM_ROOT, MEMORY_KEY_PATTERN, MEMORY_KEY_PATTERN_MESSAGE, MEMORY_KEY_MAX_LENGTH, isLongtermKey, longtermKeyError, isConsolidatedKey, consolidatedKeyMessage, resolveStoreKey, init_key_paths, computeScore, rerank, init_reranker, searchMemoryCandidates, init_search_candidates, rowToCandidate, init_sqlite_store, getEmbeddingProvider2, resetEmbeddingProvider2, getMemoryStore2, init_memory, embeddingProvider, embedScript, searchScripts, reembedAllScripts, init_embeddings, upsertScriptByName, getScript, getScriptById, getScriptVersion, listScripts, listScriptVersions, deleteScript, touchScratchScriptLastUsed, restoreScratchScriptLastUsedIfUnchanged, createScriptApi, listScriptApisForScript, getScriptApiById, getScriptApiSecret, updateScriptApi, rotateScriptApiSecret, deleteScriptApi, recordScriptApiUsage, init_db2, oauthSecretName, registerStoredSecret, loadSecretRegistry, init_secret_registry, STEERING_MOVED_ERROR, SteeringRequestError, isSteeringEnabled, getTaskSteeringFields, getTaskSteeringFieldsForTasks, promotePendingSteeringForTask, markSteeringUndeliverable, carryUnhandledSteering, requestSteering, init_steering, SESSION_ACTIVITY_REFRESH_MIN_INTERVAL_MS2, refreshActiveSessionOnActivity2, getActiveSessionById, init_active_sessions, recordKeySeatMismatch2, recordKeyValidation2, retirePoolKeyStatus, init_api_keys, getScriptRunExecutionArgs2, literalPrefixPattern2, getSlackRenderV2ActivatedAt2, ensureSlackRenderV2Activation2, getSlackDelegationActivatedAt2, ensureSlackDelegationActivation2, isPendingSlackMessage2, isSettledSlackMessage2, recordSlackMessage2, reserveSlackMessage2, bindSlackMessageTimestamp2, updateSlackMessageRecord2, markSlackTreeRendered2, deleteSlackMessageRecord2, getSlackTreeMessage2, getSlackTreeMessageByThread2, getSlackOutcomeMessage2, getResolvableDeferralOutcomes2, markSlackDeferralResolved2, noteSlackOutcomeDeliveryFailure2, abandonSlackOutcomeDelivery2, getSlackTreeMessages2, getSlackMessageByChannelTs2, getSlackTasksInThread2, listSlackThreadsAwaitingHuman2, isSlackThreadAwaitingHuman2, markTaskSlackReplySent2, setSlackMessageTracking2, updateTaskVcs2, insertTaskAttachment2, recordTaskPullRequestAttachments2, getAssetKeyMappingByProvider2, upsertAssetKeyMapping2, getAssetKeyMapping2, listAssetSummaries2, moveAssetKey2, deleteTaskAttachment2, replaceTaskAttachment2, getTaskAttachments2, createSteeringMessage2, getSteeringMessagesForTask2, getSteeringMessageById2, getPendingSteeringForTask2, getPendingSteeringForAgent2, markSteeringDelivered2, markSteeringHandled2, markSteeringPromoted2, cancelPendingSteeringForTask2, hasPendingSteering2, getAgentWithTasks2, getAllAgentsWithTasks2, createLogEntry2, getLogsByAgentId2, getLogsByTaskId2, getLogsByTaskIdAndEventType2, getLogsByTaskIdChronological2, getLogsByEventType2, getAllLogs2, findRecentSimilarTasks2, createTaskExtended2, claimTask2, releaseTask2, acceptTask2, rejectTask2, moveTaskToBacklog2, moveTaskFromBacklog2, promoteDraftTask2, refreshDraftTaskLease2, promoteAbandonedDraftTasks2, releaseStaleReviewingTasks2, releaseStaleOfferedTasksForOfflineAgents2, getOfferedTasksForAgent2, claimOfferedTask2, getUnassignedTasksCount2, getUnassignedTaskIds2, getUnassignedTaskIdsForAgent2, checkDependencies2, getDependentTasks2, cascadeFailDependents2, updateAgentProfile2, updateAgentName2, createChannel2, getMessageById2, getChannelById2, getChannelByName2, getAllChannels2, deleteChannel2, postMessage2, getChannelMessages2, updateReadState2, getLastReadAt2, getUnreadMessages2, getMentionsForAgent2, getInboxSummary2, claimMentions2, releaseMentionProcessing2, releaseStaleMentionProcessing2, createService2, getServiceById2, getServiceByAgentAndName2, getServicesByAgentId2, getAllServices2, updateServiceStatus2, deleteService2, upsertService2, deleteServicesByAgentId2, createSessionLogs2, getSessionLogsByTaskId2, getSessionLogsBySession2, createSessionCost2, getSessionCostsByTaskId2, getSessionCostsByAgentId2, getAllSessionCosts2, getSessionCostsFiltered2, UNATTRIBUTED_USER_ID2, getSessionCostSummary2, getAttributionByPerson2, getDashboardCostSummary2, createInboxMessage2, getInboxMessageById2, getUnreadInboxMessages2, claimInboxMessages2, markInboxMessageRead2, markInboxMessageResponded2, markInboxMessageDelegated2, releaseStaleProcessingInbox2, getConcurrentContext2, getScheduledTasks2, getScheduledTaskById2, getScheduledTaskByName2, createScheduledTask2, updateScheduledTask2, deleteScheduledTask2, getDueScheduledTasks2, autoEncryptLegacyPlaintextSecrets2, maskSecrets2, getSwarmConfigs2, getInjectableGlobalConfigs2, getSwarmConfigById2, getSwarmConfigLookupById2, upsertSwarmConfig2, emitBuiltInIntegrationConnectedOnce2, deleteSwarmConfig2, deleteSwarmConfigByKey2, getResolvedConfig2, getSwarmRepos2, getSwarmRepoById2, getSwarmRepoByName2, getSwarmRepoByUrl2, createSwarmRepo2, updateSwarmRepo2, deleteSwarmRepo2, getAgentMailInboxMapping2, getAgentMailInboxMappingsByAgent2, getAllAgentMailInboxMappings2, createAgentMailInboxMapping2, deleteAgentMailInboxMapping2, findTaskByAgentMailThread2, insertActiveSession2, deleteActiveSession2, deleteActiveSessionById2, getActiveSessions2, heartbeatActiveSession2, cleanupStaleSessions2, cleanupAgentSessions2, updateActiveSessionProviderSessionId2, getActiveSessionForTask2, reassociateSessionLogs2, getStalledInProgressTasks2, getStalePinnedResumes2, failPendingResumeIfUnclaimed2, getIdleWorkersWithCapacity2, getUnassignedPoolTasks2, getStaleUnassignedAffinityTasks2, getRecentFailedTasks2, getRecentCompletedCount2, getRecentFailedCount2, createWorkflow2, getWorkflow2, listWorkflows2, updateWorkflow2, deleteWorkflow2, getWorkflowsByScheduleId2, createWorkflowRun2, getWorkflowRun2, updateWorkflowRun2, listWorkflowRuns2, countWorkflowRuns2, listWorkflowRunsPage2, createWorkflowRunStep2, getWorkflowRunStep2, updateWorkflowRunStep2, getWorkflowRunStepsByRunId2, getStuckWorkflowRuns2, getLastSuccessfulRun2, getLastRunStart2, getRetryableSteps2, getCompletedStepNodeIds2, getTaskByWorkflowRunStepId2, detachTaskFromWorkflowRunStep2, getStepByIdempotencyKey2, getStepCountForNode2, getLatestStepForNode2, getCurrentStepForNode2, createWorkflowVersion2, getWorkflowVersions2, getWorkflowVersion2, createAppVersion2, getAppVersions2, getAppVersion2, createPage2, getPage2, getPageBySlug2, getLatestPageBySlug2, listPagesByAgent2, listAllPages2, countAllPages2, countPagesByAgent2, updatePage2, deletePage2, incrementPageViewCount2, createPageVersion2, getPageVersions2, getPageVersion2, createMetric2, getMetric2, getMetricBySlug2, listMetricsByAgent2, listAllMetrics2, countAllMetrics2, countMetricsByAgent2, updateMetric2, deleteMetric2, createMetricVersion2, getMetricVersions2, getMetricVersion2, getPromptTemplates2, getPromptTemplateById2, upsertPromptTemplate2, deletePromptTemplate2, resetPromptTemplateToDefault2, getPromptTemplateHistory2, resolvePromptTemplate2, checkoutPromptTemplate2, getAllChannelActivityCursors2, getChannelActivityCursor2, upsertChannelActivityCursor2, createApprovalRequest2, getApprovalRequestById2, resolveApprovalRequest2, cancelApprovalRequestById2, cancelPendingApprovalRequestsForRun2, listCancelledApprovalRequestsForRun2, listCancelledApprovalRequestsForStep2, claimApprovalCancellationNotification2, completeApprovalCancellationNotificationClaim2, releaseApprovalCancellationNotificationClaim2, updateApprovalRequestNotifications2, listApprovalRequests2, getStuckApprovalRuns2, getApprovalRequestByStepId2, getExpiredPendingApprovals2, getStaleApprovalRequests2, createWaitState2, getWaitStateById2, getWaitStateByStepId2, getDueWaitStates2, getPendingEventWaitNames2, getPendingWaitsByEvent2, resolveWaitState2, getStuckWaitRuns2, SKILL_FILE_LIMITS2, normalizeSkillFilePath2, createSkill2, updateSkill2, listSkillFileManifest2, getSkillFiles2, getSkillFile2, upsertSkillFile2, upsertSkillFiles2, deleteSkillFile2, deleteSkill2, getSkillById2, getSkillByName2, listSkills2, searchSkills2, installSkill2, getSystemDefaultSkills2, installSystemDefaultSkillsForAgent2, uninstallSkill2, getAgentSkills2, toggleAgentSkill2, createMcpServer2, emitMcpServerConnectedTelemetry2, updateMcpServer2, deleteMcpServer2, getMcpServerById2, getMcpServerByName2, listMcpServers2, installMcpServer2, uninstallMcpServer2, getAgentMcpServers2, createContextSnapshot2, getContextSnapshotsByTaskId2, getContextSnapshotsBySessionId2, getContextSummaryByTaskId2, getAvailableKeyIndices2, recordKeyUsage2, setApiKeyPlan2, markKeyRateLimited2, recordKeyAuthFailure2, recordKeyRateLimitWindows2, setApiKeyName2, clearKeyRateLimit2, getKeyStatuses2, getKeyCostSummary2, getUserById2, getAllUsers2, createUser2, updateUser2, deleteUser2, listInboxState2, upsertInboxState2, listFavorites2, listUserFavorites2, getFavoriteItemIdSet2, setFavorite2, setUserFavorite2, withFavoriteFlags2, listTaskTemplates2, getRootTaskChain2, listRecentSessions2, countSessions2, getBudget2, getBudgets2, upsertBudget2, deleteBudget2, getAllPricingRows2, getPricingRows2, getActivePricingRow2, insertPricingRow2, deletePricingRow2, getDailySpendForAgent2, getDailySpendGlobal2, getDailySpendForUser2, recordBudgetRefusalNotification2, getBudgetRefusalNotification2, getRecentBudgetRefusalNotifications2, hasBudgetRefusalNotificationToday2, setBudgetRefusalFollowUpTaskId2, getLiveAgentCounts2, getReadyAgentCounts2, getInstanceActivity2, getSwarmMetrics2, hasFirstCompletedTask2, getKv2, sweepExpiredKv2, sweepExpiredKvPrefix2, upsertKv2, claimKv2, deleteKv2, KvTypeCollisionError2, incrKv2, kvPrefixUpperBound2, listKv2, countKv2, createScriptRun2, recordInlineScriptRun2, getScriptRun2, getScriptRunByIdempotencyKey2, listScriptRuns2, countScriptRuns2, countActiveScriptRuns2, updateScriptRun2, updateScriptRunIfNotTerminal2, updateScriptRunIfRunning2, getRunningScriptRuns2, getScriptRunJournalStep2, upsertScriptRunJournalStep2, listScriptRunJournalSteps2, countScriptRunJournalSteps2, countScriptRunJournalAgentTaskSteps2, exports_db, init_db3 };
|