@skaile/workspaces 5.18.1 → 6.0.0
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/CHANGELOG.md +88 -0
- package/README.md +8 -8
- package/dist/app-sdk/index.js +1 -1
- package/dist/{asset-feeds-MKB5JUML.js → asset-feeds-PXUWCXVI.js} +21 -21
- package/dist/{asset-feeds-MKB5JUML.js.map → asset-feeds-PXUWCXVI.js.map} +1 -1
- package/dist/asset-manager/catalog-deployer.js +10 -10
- package/dist/asset-manager/index.js +17 -17
- package/dist/asset-manager/installer.js +13 -13
- package/dist/asset-manager/renderers.js +12 -12
- package/dist/asset-manager/src/index.d.ts +113 -24
- package/dist/asset-manager/src/index.d.ts.map +1 -1
- package/dist/asset-manager/src/install-agent.d.ts +2 -2
- package/dist/asset-manager/src/install-agent.d.ts.map +1 -1
- package/dist/asset-manager/src/install-instances.d.ts +8 -8
- package/dist/asset-manager/src/install-instances.d.ts.map +1 -1
- package/dist/asset-manager/src/installer.d.ts +3 -3
- package/dist/asset-manager/src/installer.d.ts.map +1 -1
- package/dist/asset-manager/src/mcp-config.d.ts +39 -13
- package/dist/asset-manager/src/mcp-config.d.ts.map +1 -1
- package/dist/asset-manager/src/renderers.d.ts +12 -12
- package/dist/asset-manager/src/renderers.d.ts.map +1 -1
- package/dist/bridge/codex-app-server.js +2 -2
- package/dist/bridge/harnesses/claude-sdk.d.ts +2 -0
- package/dist/bridge/{drivers → harnesses}/claude-sdk.js +75 -73
- package/dist/bridge/harnesses/claude-sdk.js.map +1 -0
- package/dist/bridge/{drivers/gemini.d.ts → harnesses/codex.d.ts} +1 -1
- package/dist/bridge/{drivers → harnesses}/codex.js +52 -52
- package/dist/bridge/harnesses/codex.js.map +1 -0
- package/dist/bridge/{drivers/claude-sdk.d.ts → harnesses/continue.d.ts} +1 -1
- package/dist/bridge/{drivers → harnesses}/continue.js +29 -29
- package/dist/bridge/harnesses/continue.js.map +1 -0
- package/dist/bridge/{drivers → harnesses}/echo.d.ts +1 -1
- package/dist/bridge/{drivers → harnesses}/echo.js +27 -27
- package/dist/bridge/harnesses/echo.js.map +1 -0
- package/dist/bridge/{drivers/continue.d.ts → harnesses/gemini.d.ts} +1 -1
- package/dist/bridge/harnesses/gemini.js +18 -0
- package/dist/bridge/{drivers → harnesses}/goose.d.ts +1 -1
- package/dist/bridge/{drivers → harnesses}/goose.js +29 -29
- package/dist/bridge/harnesses/goose.js.map +1 -0
- package/dist/bridge/{drivers → harnesses}/omp.d.ts +1 -1
- package/dist/bridge/{drivers → harnesses}/omp.js +43 -485
- package/dist/bridge/harnesses/omp.js.map +1 -0
- package/dist/bridge/{drivers → harnesses}/opencode.d.ts +1 -1
- package/dist/bridge/{drivers → harnesses}/opencode.js +30 -30
- package/dist/bridge/harnesses/opencode.js.map +1 -0
- package/dist/bridge/{drivers → harnesses}/qwen.d.ts +1 -1
- package/dist/bridge/{drivers → harnesses}/qwen.js +20 -20
- package/dist/bridge/harnesses/qwen.js.map +1 -0
- package/dist/bridge/index.js +24 -22
- package/dist/bridge/src/agent-exec.d.ts +2 -2
- package/dist/bridge/src/agent-transcript.d.ts +1 -1
- package/dist/bridge/src/agent-transcript.d.ts.map +1 -1
- package/dist/bridge/src/approval-card.d.ts +3 -3
- package/dist/bridge/src/capability-dispatch.d.ts +5 -5
- package/dist/bridge/src/cloud.d.ts +4 -4
- package/dist/bridge/src/codex/config-toml.d.ts +3 -3
- package/dist/bridge/src/codex/friendly-error.d.ts +1 -1
- package/dist/bridge/src/codex/friendly-error.d.ts.map +1 -1
- package/dist/bridge/src/codex/{managed-driver.d.ts → managed-harness.d.ts} +5 -5
- package/dist/bridge/src/codex/managed-harness.d.ts.map +1 -0
- package/dist/bridge/src/codex/native-approvals.d.ts +1 -1
- package/dist/bridge/src/codex/native-approvals.d.ts.map +1 -1
- package/dist/bridge/src/error-classifier.d.ts +7 -7
- package/dist/bridge/src/{driver-capabilities.d.ts → harness-capabilities.d.ts} +18 -18
- package/dist/bridge/src/harness-capabilities.d.ts.map +1 -0
- package/dist/bridge/src/harness-model-check.d.ts +25 -0
- package/dist/bridge/src/harness-model-check.d.ts.map +1 -0
- package/dist/bridge/src/{drivers → harnesses}/_subprocess-cli.d.ts +8 -8
- package/dist/bridge/src/harnesses/_subprocess-cli.d.ts.map +1 -0
- package/dist/bridge/src/{drivers → harnesses}/claude-context-usage.d.ts +5 -5
- package/dist/bridge/src/harnesses/claude-context-usage.d.ts.map +1 -0
- package/dist/bridge/src/{drivers → harnesses}/claude-sdk.d.ts +27 -27
- package/dist/bridge/src/harnesses/claude-sdk.d.ts.map +1 -0
- package/dist/bridge/src/{drivers → harnesses}/claude-self-turns.d.ts +5 -5
- package/dist/bridge/src/harnesses/claude-self-turns.d.ts.map +1 -0
- package/dist/bridge/src/{drivers → harnesses}/claude-tool-allowlist.d.ts +4 -4
- package/dist/bridge/src/harnesses/claude-tool-allowlist.d.ts.map +1 -0
- package/dist/bridge/src/{drivers → harnesses}/codex.d.ts +14 -14
- package/dist/bridge/src/harnesses/codex.d.ts.map +1 -0
- package/dist/bridge/src/{drivers → harnesses}/continue.d.ts +12 -12
- package/dist/bridge/src/harnesses/continue.d.ts.map +1 -0
- package/dist/bridge/src/{drivers → harnesses}/echo.d.ts +16 -16
- package/dist/bridge/src/harnesses/echo.d.ts.map +1 -0
- package/dist/bridge/src/{drivers → harnesses}/flow-script.d.ts +9 -9
- package/dist/bridge/src/harnesses/flow-script.d.ts.map +1 -0
- package/dist/bridge/src/{drivers → harnesses}/gemini.d.ts +15 -15
- package/dist/bridge/src/harnesses/gemini.d.ts.map +1 -0
- package/dist/bridge/src/{drivers → harnesses}/goose.d.ts +10 -10
- package/dist/bridge/src/harnesses/goose.d.ts.map +1 -0
- package/dist/bridge/src/{drivers → harnesses}/omp-models-yml.d.ts +23 -12
- package/dist/bridge/src/harnesses/omp-models-yml.d.ts.map +1 -0
- package/dist/bridge/src/{drivers → harnesses}/omp.d.ts +23 -23
- package/dist/bridge/src/harnesses/omp.d.ts.map +1 -0
- package/dist/bridge/src/{drivers → harnesses}/opencode.d.ts +11 -11
- package/dist/bridge/src/harnesses/opencode.d.ts.map +1 -0
- package/dist/bridge/src/{drivers → harnesses}/qwen.d.ts +12 -12
- package/dist/bridge/src/harnesses/qwen.d.ts.map +1 -0
- package/dist/bridge/src/{drivers → harnesses}/recovery-policy.d.ts +4 -4
- package/dist/bridge/src/harnesses/recovery-policy.d.ts.map +1 -0
- package/dist/bridge/src/{drivers → harnesses}/resume-probe.d.ts +3 -3
- package/dist/bridge/src/harnesses/resume-probe.d.ts.map +1 -0
- package/dist/bridge/src/{drivers → harnesses}/sanitize-assistant-text.d.ts +1 -1
- package/dist/bridge/src/harnesses/sanitize-assistant-text.d.ts.map +1 -0
- package/dist/bridge/src/{drivers → harnesses}/scrub-transcript.d.ts +1 -1
- package/dist/bridge/src/harnesses/scrub-transcript.d.ts.map +1 -0
- package/dist/bridge/src/index.d.ts +4 -4
- package/dist/bridge/src/index.d.ts.map +1 -1
- package/dist/bridge/src/logger.d.ts +4 -4
- package/dist/bridge/src/models.d.ts +1 -1
- package/dist/bridge/src/normalizer.d.ts +2 -2
- package/dist/bridge/src/provider-materialize/continue-config-yaml.d.ts +5 -5
- package/dist/bridge/src/provider-materialize/continue-config-yaml.d.ts.map +1 -1
- package/dist/bridge/src/provider-materialize/credential-env.d.ts +3 -3
- package/dist/bridge/src/provider-materialize/{env-drivers.d.ts → env-harnesses.d.ts} +19 -19
- package/dist/bridge/src/provider-materialize/env-harnesses.d.ts.map +1 -0
- package/dist/bridge/src/provider-materialize/goose-custom-providers.d.ts +5 -5
- package/dist/bridge/src/provider-materialize/goose-custom-providers.d.ts.map +1 -1
- package/dist/bridge/src/provider-materialize/opencode-config.d.ts +7 -7
- package/dist/bridge/src/provider-materialize/opencode-config.d.ts.map +1 -1
- package/dist/bridge/src/provider-materialize/session-config-home.d.ts +5 -5
- package/dist/bridge/src/provider-materialize/session-config-home.d.ts.map +1 -1
- package/dist/bridge/src/provider-registry-derive.d.ts +4 -4
- package/dist/bridge/src/provider-registry-derive.d.ts.map +1 -1
- package/dist/bridge/src/reconfigure-ledger.d.ts +8 -8
- package/dist/bridge/src/reconfigure-ledger.d.ts.map +1 -1
- package/dist/bridge/src/registry.d.ts +34 -41
- package/dist/bridge/src/registry.d.ts.map +1 -1
- package/dist/bridge/src/runner-private-env.d.ts +2 -2
- package/dist/bridge/src/runtime.d.ts +11 -11
- package/dist/bridge/src/runtime.d.ts.map +1 -1
- package/dist/bridge/src/types.d.ts +158 -158
- package/dist/bridge/src/types.d.ts.map +1 -1
- package/dist/{chunk-CKBCX3HQ.js → chunk-2UUKCROR.js} +4 -4
- package/dist/{chunk-CKBCX3HQ.js.map → chunk-2UUKCROR.js.map} +1 -1
- package/dist/{chunk-7ANRSTNR.js → chunk-3IXIEHUB.js} +36 -17
- package/dist/chunk-3IXIEHUB.js.map +1 -0
- package/dist/{chunk-YZ3N7IUU.js → chunk-3JKGY2YC.js} +91 -55
- package/dist/chunk-3JKGY2YC.js.map +1 -0
- package/dist/{chunk-X5YPJV4N.js → chunk-3MWQKQUB.js} +2 -2
- package/dist/{chunk-X5YPJV4N.js.map → chunk-3MWQKQUB.js.map} +1 -1
- package/dist/{chunk-EPBKISS5.js → chunk-3TG2NV2F.js} +2 -2
- package/dist/chunk-3TG2NV2F.js.map +1 -0
- package/dist/{chunk-L2AMXONH.js → chunk-3X7VTCPG.js} +2 -2
- package/dist/chunk-3X7VTCPG.js.map +1 -0
- package/dist/{chunk-3KMREAR2.js → chunk-4DWBSTYA.js} +24 -24
- package/dist/chunk-4DWBSTYA.js.map +1 -0
- package/dist/{chunk-YARXR3CN.js → chunk-4XWLB7JB.js} +52 -46
- package/dist/chunk-4XWLB7JB.js.map +1 -0
- package/dist/{chunk-5TBFN46Z.js → chunk-5KRMNUL4.js} +4 -4
- package/dist/chunk-5KRMNUL4.js.map +1 -0
- package/dist/{chunk-YIF2IJUA.js → chunk-6GWSDPBP.js} +3 -3
- package/dist/{chunk-YIF2IJUA.js.map → chunk-6GWSDPBP.js.map} +1 -1
- package/dist/{chunk-BBWSGVVE.js → chunk-7CV3HFWJ.js} +5 -5
- package/dist/chunk-7CV3HFWJ.js.map +1 -0
- package/dist/{chunk-YROR332M.js → chunk-7DN6JKP2.js} +2 -2
- package/dist/chunk-7DN6JKP2.js.map +1 -0
- package/dist/{chunk-IZCR27MU.js → chunk-7EKQDY2T.js} +3 -3
- package/dist/chunk-7EKQDY2T.js.map +1 -0
- package/dist/{chunk-VOBXINUZ.js → chunk-7TPYPVAH.js} +4 -4
- package/dist/{chunk-VOBXINUZ.js.map → chunk-7TPYPVAH.js.map} +1 -1
- package/dist/{chunk-U2FI547Z.js → chunk-7XSAW5OC.js} +3 -3
- package/dist/{chunk-U2FI547Z.js.map → chunk-7XSAW5OC.js.map} +1 -1
- package/dist/{chunk-ICSCSM5D.js → chunk-ADPM6AYF.js} +3 -3
- package/dist/{chunk-ICSCSM5D.js.map → chunk-ADPM6AYF.js.map} +1 -1
- package/dist/{chunk-LW7ZI6EQ.js → chunk-AF432MS3.js} +3 -3
- package/dist/chunk-AF432MS3.js.map +1 -0
- package/dist/{chunk-WJLYL6RY.js → chunk-ARWKK325.js} +5 -5
- package/dist/{chunk-WJLYL6RY.js.map → chunk-ARWKK325.js.map} +1 -1
- package/dist/{chunk-AJ7EGIFR.js → chunk-BIRW3HOG.js} +3 -3
- package/dist/chunk-BIRW3HOG.js.map +1 -0
- package/dist/{chunk-X3AUS4RW.js → chunk-DHYSUJ3H.js} +4 -4
- package/dist/{chunk-X3AUS4RW.js.map → chunk-DHYSUJ3H.js.map} +1 -1
- package/dist/{chunk-SRNCN4X2.js → chunk-DUMTLYSO.js} +10 -10
- package/dist/chunk-DUMTLYSO.js.map +1 -0
- package/dist/{chunk-GOK4QRJR.js → chunk-E3GPGTW3.js} +8 -8
- package/dist/chunk-E3GPGTW3.js.map +1 -0
- package/dist/{chunk-CKNIYIV2.js → chunk-E572OHGY.js} +5 -5
- package/dist/chunk-E572OHGY.js.map +1 -0
- package/dist/{chunk-KY4UXX7M.js → chunk-F2GOZMRA.js} +63 -64
- package/dist/chunk-F2GOZMRA.js.map +1 -0
- package/dist/{chunk-6E6PKKAD.js → chunk-G5SUWZEU.js} +18 -8
- package/dist/chunk-G5SUWZEU.js.map +1 -0
- package/dist/{chunk-7FHZB2QU.js → chunk-GEQSUC6U.js} +12 -12
- package/dist/chunk-GEQSUC6U.js.map +1 -0
- package/dist/{chunk-AIBAOXDU.js → chunk-GN4VVSAA.js} +18 -18
- package/dist/chunk-GN4VVSAA.js.map +1 -0
- package/dist/{chunk-XTO436PV.js → chunk-HK7HMEPT.js} +13 -13
- package/dist/chunk-HK7HMEPT.js.map +1 -0
- package/dist/{chunk-Y56YIT6J.js → chunk-JCPD4QRM.js} +4 -4
- package/dist/chunk-JCPD4QRM.js.map +1 -0
- package/dist/{chunk-GBYNC5V3.js → chunk-JDR6ILCW.js} +4 -4
- package/dist/chunk-JDR6ILCW.js.map +1 -0
- package/dist/{chunk-K4O6L3WH.js → chunk-KNY356I3.js} +3 -3
- package/dist/{chunk-K4O6L3WH.js.map → chunk-KNY356I3.js.map} +1 -1
- package/dist/{chunk-4ZTPYIBE.js → chunk-KW37WNXY.js} +12 -12
- package/dist/chunk-KW37WNXY.js.map +1 -0
- package/dist/{chunk-BO426QWN.js → chunk-KX2PT5Q4.js} +8 -8
- package/dist/chunk-KX2PT5Q4.js.map +1 -0
- package/dist/{chunk-T2TQAH2X.js → chunk-L4YKW5AY.js} +105 -38
- package/dist/chunk-L4YKW5AY.js.map +1 -0
- package/dist/{chunk-WJCQFNF6.js → chunk-LN6QB7XI.js} +3 -3
- package/dist/{chunk-WJCQFNF6.js.map → chunk-LN6QB7XI.js.map} +1 -1
- package/dist/{chunk-MJHSLODD.js → chunk-LSI2IVFT.js} +2 -2
- package/dist/chunk-LSI2IVFT.js.map +1 -0
- package/dist/{chunk-2ABUJYVI.js → chunk-MCUJTNY5.js} +3 -3
- package/dist/{chunk-2ABUJYVI.js.map → chunk-MCUJTNY5.js.map} +1 -1
- package/dist/{chunk-A2ULN3KX.js → chunk-MWXYN6NY.js} +2 -2
- package/dist/{chunk-A2ULN3KX.js.map → chunk-MWXYN6NY.js.map} +1 -1
- package/dist/{chunk-EAZECHPM.js → chunk-NBAGV6L2.js} +5 -5
- package/dist/chunk-NBAGV6L2.js.map +1 -0
- package/dist/{chunk-U7V5SIFW.js → chunk-NMI2TWMH.js} +46 -18
- package/dist/chunk-NMI2TWMH.js.map +1 -0
- package/dist/{chunk-VM3PH7BB.js → chunk-OAHVKSQJ.js} +604 -178
- package/dist/chunk-OAHVKSQJ.js.map +1 -0
- package/dist/{chunk-2NOLF7B2.js → chunk-OHNKYHRR.js} +53 -17
- package/dist/chunk-OHNKYHRR.js.map +1 -0
- package/dist/{chunk-KC6HGWXN.js → chunk-OTIB4D2K.js} +3 -3
- package/dist/{chunk-KC6HGWXN.js.map → chunk-OTIB4D2K.js.map} +1 -1
- package/dist/{chunk-WMF2C5U7.js → chunk-OULSJRXV.js} +17 -17
- package/dist/chunk-OULSJRXV.js.map +1 -0
- package/dist/{chunk-HPVMTX6M.js → chunk-QOM5Z62G.js} +47 -12
- package/dist/chunk-QOM5Z62G.js.map +1 -0
- package/dist/{chunk-ZBMC6IAE.js → chunk-SNEE6UGY.js} +33 -32
- package/dist/chunk-SNEE6UGY.js.map +1 -0
- package/dist/{chunk-RD6N2D7I.js → chunk-SRODW6M2.js} +4 -4
- package/dist/{chunk-RD6N2D7I.js.map → chunk-SRODW6M2.js.map} +1 -1
- package/dist/{chunk-D6UBEYQH.js → chunk-SZXGRHQQ.js} +6 -6
- package/dist/chunk-SZXGRHQQ.js.map +1 -0
- package/dist/{chunk-X6GUNN7X.js → chunk-T2BDID2J.js} +39 -39
- package/dist/chunk-T2BDID2J.js.map +1 -0
- package/dist/{chunk-RP3FZ2T6.js → chunk-TKHJXPSB.js} +110 -37
- package/dist/chunk-TKHJXPSB.js.map +1 -0
- package/dist/{chunk-CD7SVH6W.js → chunk-U56GGCC2.js} +4 -4
- package/dist/{chunk-CD7SVH6W.js.map → chunk-U56GGCC2.js.map} +1 -1
- package/dist/{chunk-VKPBUPH7.js → chunk-UL22SDGR.js} +36 -11
- package/dist/chunk-UL22SDGR.js.map +1 -0
- package/dist/{chunk-CKICWXMU.js → chunk-UQ33Y4DM.js} +139 -10
- package/dist/chunk-UQ33Y4DM.js.map +1 -0
- package/dist/{chunk-34C2EKWJ.js → chunk-UVVVR4XO.js} +38 -38
- package/dist/chunk-UVVVR4XO.js.map +1 -0
- package/dist/{chunk-KSBDLCZI.js → chunk-VBI7HGHB.js} +11 -11
- package/dist/{chunk-KSBDLCZI.js.map → chunk-VBI7HGHB.js.map} +1 -1
- package/dist/{chunk-PBSN4RTV.js → chunk-VJRTDKXS.js} +590 -450
- package/dist/chunk-VJRTDKXS.js.map +1 -0
- package/dist/{chunk-IG5LZ3WU.js → chunk-VTETQCR6.js} +10 -10
- package/dist/chunk-VTETQCR6.js.map +1 -0
- package/dist/{chunk-EFLKSMCO.js → chunk-VUJXZDCY.js} +5 -5
- package/dist/{chunk-EFLKSMCO.js.map → chunk-VUJXZDCY.js.map} +1 -1
- package/dist/{chunk-V3D4HQMS.js → chunk-VXEYX73S.js} +4 -4
- package/dist/{chunk-V3D4HQMS.js.map → chunk-VXEYX73S.js.map} +1 -1
- package/dist/{chunk-M3WPBTGJ.js → chunk-WD3L5QSU.js} +2 -2
- package/dist/{chunk-M3WPBTGJ.js.map → chunk-WD3L5QSU.js.map} +1 -1
- package/dist/chunk-WDAIWDLK.js +505 -0
- package/dist/chunk-WDAIWDLK.js.map +1 -0
- package/dist/{chunk-IW6F6R2W.js → chunk-WEH33JSG.js} +105 -35
- package/dist/chunk-WEH33JSG.js.map +1 -0
- package/dist/{chunk-OYIENLJI.js → chunk-WYHQUCHR.js} +15 -15
- package/dist/{chunk-OYIENLJI.js.map → chunk-WYHQUCHR.js.map} +1 -1
- package/dist/{chunk-R6O6YWU7.js → chunk-WYZXSJBK.js} +3 -3
- package/dist/{chunk-R6O6YWU7.js.map → chunk-WYZXSJBK.js.map} +1 -1
- package/dist/{chunk-B4X2N7JQ.js → chunk-XFIEVEU7.js} +14 -14
- package/dist/chunk-XFIEVEU7.js.map +1 -0
- package/dist/{chunk-Q6E6FM7P.js → chunk-XKNXPLKR.js} +6 -6
- package/dist/{chunk-Q6E6FM7P.js.map → chunk-XKNXPLKR.js.map} +1 -1
- package/dist/chunk-Y2TO2U7W.js +285 -0
- package/dist/chunk-Y2TO2U7W.js.map +1 -0
- package/dist/{chunk-JYWW32JI.js → chunk-YGRZNFRO.js} +18 -6
- package/dist/chunk-YGRZNFRO.js.map +1 -0
- package/dist/{chunk-5BEFNLOR.js → chunk-Z7ZEZZB6.js} +8 -8
- package/dist/chunk-Z7ZEZZB6.js.map +1 -0
- package/dist/{chunk-PHRNUTSG.js → chunk-ZFUZ5AKM.js} +4 -4
- package/dist/{chunk-PHRNUTSG.js.map → chunk-ZFUZ5AKM.js.map} +1 -1
- package/dist/claude-code-VJGYBXQR.js +10 -0
- package/dist/claude-code-VJGYBXQR.js.map +1 -0
- package/dist/cli/index.js +930 -685
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/src/agent-checks.d.ts +5 -0
- package/dist/cli/src/agent-checks.d.ts.map +1 -1
- package/dist/cli/src/agent-pins.d.ts +18 -0
- package/dist/cli/src/agent-pins.d.ts.map +1 -0
- package/dist/cli/src/commands/catalog.d.ts +9 -3
- package/dist/cli/src/commands/catalog.d.ts.map +1 -1
- package/dist/cli/src/commands/complete-resolvers.d.ts.map +1 -1
- package/dist/cli/src/commands/config.d.ts +2 -2
- package/dist/cli/src/commands/config.d.ts.map +1 -1
- package/dist/cli/src/commands/diff.d.ts.map +1 -1
- package/dist/cli/src/commands/flow.d.ts +8 -8
- package/dist/cli/src/commands/flow.d.ts.map +1 -1
- package/dist/cli/src/commands/integration.d.ts +1 -1
- package/dist/cli/src/commands/integration.d.ts.map +1 -1
- package/dist/cli/src/commands/library-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/library-index.d.ts +17 -5
- package/dist/cli/src/commands/library-index.d.ts.map +1 -1
- package/dist/cli/src/commands/library-publish.d.ts +3 -0
- package/dist/cli/src/commands/library-publish.d.ts.map +1 -1
- package/dist/cli/src/commands/migrate-assets.d.ts +2 -0
- package/dist/cli/src/commands/migrate-assets.d.ts.map +1 -1
- package/dist/cli/src/commands/migrate-files.d.ts +14 -0
- package/dist/cli/src/commands/migrate-files.d.ts.map +1 -1
- package/dist/cli/src/commands/migrate-harness.d.ts +49 -0
- package/dist/cli/src/commands/migrate-harness.d.ts.map +1 -0
- package/dist/cli/src/commands/migrate.d.ts +4 -2
- package/dist/cli/src/commands/migrate.d.ts.map +1 -1
- package/dist/cli/src/commands/outdated.d.ts.map +1 -1
- package/dist/cli/src/commands/plugin/claude-code.d.ts +6 -0
- package/dist/cli/src/commands/plugin/claude-code.d.ts.map +1 -1
- package/dist/cli/src/commands/plugin/codex.d.ts +19 -4
- package/dist/cli/src/commands/plugin/codex.d.ts.map +1 -1
- package/dist/cli/src/commands/plugin/types.d.ts +1 -6
- package/dist/cli/src/commands/plugin/types.d.ts.map +1 -1
- package/dist/cli/src/commands/plugin-registry-cmd.d.ts +1 -1
- package/dist/cli/src/commands/preset-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/preset-export.d.ts +1 -1
- package/dist/cli/src/commands/project.d.ts +7 -4
- package/dist/cli/src/commands/project.d.ts.map +1 -1
- package/dist/cli/src/commands/providers.d.ts +13 -0
- package/dist/cli/src/commands/providers.d.ts.map +1 -1
- package/dist/cli/src/commands/run.d.ts +2 -2
- package/dist/cli/src/commands/run.d.ts.map +1 -1
- package/dist/cli/src/commands/serve-preflight.d.ts +30 -7
- package/dist/cli/src/commands/serve-preflight.d.ts.map +1 -1
- package/dist/cli/src/commands/serve.d.ts +1 -1
- package/dist/cli/src/commands/serve.d.ts.map +1 -1
- package/dist/cli/src/commands/update.d.ts.map +1 -1
- package/dist/cli/src/commands/validate.d.ts.map +1 -1
- package/dist/cli/src/flow-discovery.d.ts +69 -53
- package/dist/cli/src/flow-discovery.d.ts.map +1 -1
- package/dist/cli/src/harness-error.d.ts +47 -0
- package/dist/cli/src/harness-error.d.ts.map +1 -0
- package/dist/cli/src/helpers.d.ts +5 -5
- package/dist/cli/src/helpers.d.ts.map +1 -1
- package/dist/cli/src/plugin-store/index.d.ts +8 -4
- package/dist/cli/src/plugin-store/index.d.ts.map +1 -1
- package/dist/cli/src/setup.d.ts +3 -3
- package/dist/cli/src/setup.d.ts.map +1 -1
- package/dist/cli/src/skill-checks.d.ts +32 -1
- package/dist/cli/src/skill-checks.d.ts.map +1 -1
- package/dist/connectors/config.js +4 -4
- package/dist/connectors/index.js +29 -27
- package/dist/connectors/src/connector-prompt.d.ts +5 -5
- package/dist/connectors/src/connector-registry.d.ts +1 -1
- package/dist/connectors-CXZLXAFZ.js +48 -0
- package/dist/{connectors-YNQ3WJGM.js.map → connectors-CXZLXAFZ.js.map} +1 -1
- package/dist/connectors-shared/index.js +2 -2
- package/dist/core/discovery.js +1 -1
- package/dist/core/framework.js +1 -1
- package/dist/{bridge/drivers/codex.d.ts → core/harness-targets.d.ts} +1 -1
- package/dist/core/harness-targets.js +4 -0
- package/dist/core/harness-targets.js.map +1 -0
- package/dist/core/index.js +10 -10
- package/dist/core/provider-registry-credentials.js +2 -2
- package/dist/core/provider-registry.js +1 -1
- package/dist/core/publish-manifest.js +1 -1
- package/dist/core/runtime-assets.js +4 -4
- package/dist/core/src/asset-roots.d.ts +16 -2
- package/dist/core/src/asset-roots.d.ts.map +1 -1
- package/dist/core/src/bind.d.ts +33 -14
- package/dist/core/src/bind.d.ts.map +1 -1
- package/dist/core/src/discovery.d.ts +1 -1
- package/dist/core/src/framework.d.ts +21 -21
- package/dist/core/src/framework.d.ts.map +1 -1
- package/dist/core/src/{driver-sdk.d.ts → harness-sdk.d.ts} +9 -9
- package/dist/core/src/harness-sdk.d.ts.map +1 -0
- package/dist/core/src/harness-targets.d.ts +71 -0
- package/dist/core/src/harness-targets.d.ts.map +1 -0
- package/dist/core/src/index.d.ts +11 -11
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/core/src/lock.d.ts +8 -0
- package/dist/core/src/lock.d.ts.map +1 -1
- package/dist/core/src/provider-registry.d.ts +2 -2
- package/dist/core/src/publish-manifest.d.ts +45 -10
- package/dist/core/src/publish-manifest.d.ts.map +1 -1
- package/dist/core/src/settings.d.ts +17 -16
- package/dist/core/src/settings.d.ts.map +1 -1
- package/dist/core/src/store.d.ts +12 -12
- package/dist/core/src/store.d.ts.map +1 -1
- package/dist/core/src/workspace-config.d.ts +49 -22
- package/dist/core/src/workspace-config.d.ts.map +1 -1
- package/dist/core/src/workspace-yaml-editor.d.ts +1 -1
- package/dist/core/src/workspace-yaml-editor.d.ts.map +1 -1
- package/dist/core/store.js +2 -2
- package/dist/core/workspace-config.js +3 -3
- package/dist/deploy/index.js +11 -11
- package/dist/discovery/index.js +3 -3
- package/dist/discovery/src/discover-manifest.d.ts +1 -1
- package/dist/discovery/src/discover-manifest.d.ts.map +1 -1
- package/dist/discovery/src/discover.d.ts.map +1 -1
- package/dist/discovery/src/tree-entries.d.ts.map +1 -1
- package/dist/{ensure-sources-UJWEZSR3.js → ensure-sources-UPTHZKGF.js} +20 -20
- package/dist/{ensure-sources-UJWEZSR3.js.map → ensure-sources-UPTHZKGF.js.map} +1 -1
- package/dist/factory-assets/connectors/box.js +29 -27
- package/dist/factory-assets/connectors/deploy.js +29 -27
- package/dist/factory-assets/connectors/devserver.js +29 -27
- package/dist/factory-assets/connectors/flow/CONNECTOR.md +5 -5
- package/dist/factory-assets/connectors/flow/adapter.d.ts +3 -3
- package/dist/factory-assets/connectors/flow/adapter.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/adapter.js +29 -27
- package/dist/factory-assets/connectors/flow/engine/loader.d.ts +1 -1
- package/dist/factory-assets/connectors/flow/engine/locate.d.ts +8 -5
- package/dist/factory-assets/connectors/flow/engine/locate.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine/types.d.ts +1 -1
- package/dist/factory-assets/connectors/flow/engine.js +11 -11
- package/dist/factory-assets/connectors/flow/inline-sub-flow-host.d.ts +2 -2
- package/dist/factory-assets/connectors/flow/inline-sub-flow-host.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/orchestrator-turn.d.ts +4 -4
- package/dist/factory-assets/connectors/flow/orchestrator-turn.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/prompt-fragments.d.ts +1 -1
- package/dist/factory-assets/connectors/flow/prompt-fragments.js +1 -1
- package/dist/factory-assets/connectors/flow/run-flow.d.ts +12 -12
- package/dist/factory-assets/connectors/flow/run-flow.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/run-flow.js +30 -28
- package/dist/factory-assets/connectors/flow/sub-flow-runner.d.ts +1 -1
- package/dist/factory-assets/connectors/flow/sub-flow-runner.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/subprompt-runner.d.ts +22 -22
- package/dist/factory-assets/connectors/flow/subprompt-runner.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow.js +29 -27
- package/dist/factory-assets/connectors/git.js +29 -27
- package/dist/factory-assets/connectors/gmail.js +29 -27
- package/dist/factory-assets/connectors/googledrive.js +29 -27
- package/dist/factory-assets/connectors/local.js +29 -27
- package/dist/factory-assets/connectors/mattermost.js +29 -27
- package/dist/factory-assets/connectors/memory.js +29 -27
- package/dist/factory-assets/connectors/minio.js +29 -27
- package/dist/factory-assets/connectors/postgres.js +29 -27
- package/dist/factory-assets/connectors/s3.js +29 -27
- package/dist/factory-assets/connectors/sharepoint.js +29 -27
- package/dist/factory-assets/connectors/sqlite.js +29 -27
- package/dist/factory-assets/connectors/static-server.js +29 -27
- package/dist/factory-assets/connectors/tunnel.js +29 -27
- package/dist/factory-assets/connectors/webdav.js +29 -27
- package/dist/factory-assets/connectors/xstate/adapter.d.ts +1 -1
- package/dist/factory-assets/connectors/xstate/adapter.d.ts.map +1 -1
- package/dist/factory-assets/connectors/xstate-store.js +29 -27
- package/dist/factory-assets/connectors/xstate.js +29 -27
- package/dist/factory-assets/skills/skaile-manage-workspace/SKILL.md +1 -1
- package/dist/flows-TJQIMGUX.js +26 -0
- package/dist/{flows-BHY73K3O.js.map → flows-TJQIMGUX.js.map} +1 -1
- package/dist/{helpers-3CG7ZVX4.js → helpers-DE53KG3E.js} +20 -20
- package/dist/{helpers-3CG7ZVX4.js.map → helpers-DE53KG3E.js.map} +1 -1
- package/dist/library/index.js +14 -14
- package/dist/library/install.js +2 -2
- package/dist/library/src/index.d.ts +1 -1
- package/dist/library/src/index.d.ts.map +1 -1
- package/dist/library/src/manifest-writer.d.ts +13 -0
- package/dist/library/src/manifest-writer.d.ts.map +1 -1
- package/dist/{library-publish-NWWVYJUK.js → library-publish-KKQ2ULLX.js} +140 -63
- package/dist/library-publish-KKQ2ULLX.js.map +1 -0
- package/dist/model-endpoint/index.js +14 -14
- package/dist/model-endpoint/src/resolve.d.ts +1 -1
- package/dist/open-library-RJGJIW5H.js +42 -0
- package/dist/{open-library-7ZG2FFAX.js.map → open-library-RJGJIW5H.js.map} +1 -1
- package/dist/open-registry-3QS3J7KO.js +32 -0
- package/dist/{open-registry-RBELV5YH.js.map → open-registry-3QS3J7KO.js.map} +1 -1
- package/dist/paths-QAV4C3KX.js +22 -0
- package/dist/{paths-BFM6K2QO.js.map → paths-QAV4C3KX.js.map} +1 -1
- package/dist/plugin-registry/index.js +1 -1
- package/dist/plugin-registry/src/context.d.ts +3 -3
- package/dist/plugin-registry/src/context.d.ts.map +1 -1
- package/dist/plugin-registry/src/deploy-handle.d.ts +1 -1
- package/dist/plugin-registry/src/index.d.ts +2 -2
- package/dist/plugin-registry/src/index.d.ts.map +1 -1
- package/dist/plugin-registry/src/internal.d.ts.map +1 -1
- package/dist/plugin-registry/src/registry.d.ts +3 -3
- package/dist/plugin-registry/src/registry.d.ts.map +1 -1
- package/dist/plugin-registry/src/targets.d.ts +9 -9
- package/dist/plugin-registry/src/targets.d.ts.map +1 -1
- package/dist/plugin-store-MSH6GK6T.js +23 -0
- package/dist/{plugin-store-QOQDM24E.js.map → plugin-store-MSH6GK6T.js.map} +1 -1
- package/dist/plugins/src/asset-kind-provider.d.ts +1 -1
- package/dist/project-HZW2MZPA.js +84 -0
- package/dist/{project-YQM3I25D.js.map → project-HZW2MZPA.js.map} +1 -1
- package/dist/resolver/index.js +10 -10
- package/dist/runner/index.js +45 -44
- package/dist/runner/src/agent.d.ts +3 -3
- package/dist/runner/src/agent.d.ts.map +1 -1
- package/dist/runner/src/agents/in-process-host.d.ts +1 -1
- package/dist/runner/src/agents/instances.d.ts +1 -1
- package/dist/runner/src/agents/instances.d.ts.map +1 -1
- package/dist/runner/src/agents/run-controller.d.ts +7 -7
- package/dist/runner/src/agents/run-controller.d.ts.map +1 -1
- package/dist/runner/src/agents/standalone-surface.d.ts +2 -2
- package/dist/runner/src/agents/standalone-surface.d.ts.map +1 -1
- package/dist/runner/src/ai-provider-switch.d.ts +7 -7
- package/dist/runner/src/assistant-home.d.ts +1 -1
- package/dist/runner/src/capability-registry.d.ts +2 -2
- package/dist/runner/src/coalesced-restart.d.ts +2 -2
- package/dist/runner/src/compaction/context-window.d.ts +8 -8
- package/dist/runner/src/compaction/context-window.d.ts.map +1 -1
- package/dist/runner/src/compaction/orchestrator.d.ts +24 -24
- package/dist/runner/src/compaction/orchestrator.d.ts.map +1 -1
- package/dist/runner/src/compaction-gate.d.ts +30 -30
- package/dist/runner/src/compaction-gate.d.ts.map +1 -1
- package/dist/runner/src/composition/compile.d.ts +11 -0
- package/dist/runner/src/composition/compile.d.ts.map +1 -1
- package/dist/runner/src/composition/dry-run.d.ts +2 -2
- package/dist/runner/src/composition/dry-run.d.ts.map +1 -1
- package/dist/runner/src/composition/index.d.ts +1 -1
- package/dist/runner/src/composition/index.d.ts.map +1 -1
- package/dist/runner/src/composition/resolve-instance.d.ts +2 -2
- package/dist/runner/src/composition/resolve.d.ts +1 -1
- package/dist/runner/src/config.d.ts +3 -3
- package/dist/runner/src/config.d.ts.map +1 -1
- package/dist/runner/src/context-usage/collector.d.ts +15 -15
- package/dist/runner/src/context-usage/collector.d.ts.map +1 -1
- package/dist/runner/src/context-usage/compose.d.ts +6 -6
- package/dist/runner/src/context-usage/compose.d.ts.map +1 -1
- package/dist/runner/src/context-usage/estimator.d.ts +1 -1
- package/dist/runner/src/context-usage/index.d.ts +1 -1
- package/dist/runner/src/context-usage/index.d.ts.map +1 -1
- package/dist/runner/src/context-usage/transcript-tracker.d.ts +2 -2
- package/dist/runner/src/context-usage/transcript-tracker.d.ts.map +1 -1
- package/dist/runner/src/credential-notice.d.ts +3 -3
- package/dist/runner/src/credential-notice.d.ts.map +1 -1
- package/dist/runner/src/credential-rotated.d.ts +1 -1
- package/dist/runner/src/final-text.d.ts +1 -1
- package/dist/runner/src/{driver-swap-gate.d.ts → harness-swap-gate.d.ts} +21 -21
- package/dist/runner/src/harness-swap-gate.d.ts.map +1 -0
- package/dist/runner/src/late-mcp-rebuild.d.ts +6 -6
- package/dist/runner/src/late-mcp-rebuild.d.ts.map +1 -1
- package/dist/runner/src/lifecycle-handler.d.ts +1 -1
- package/dist/runner/src/lifecycle-handler.d.ts.map +1 -1
- package/dist/runner/src/manifest.d.ts +1 -1
- package/dist/runner/src/mcp-runtime-handlers.d.ts +6 -6
- package/dist/runner/src/mcp-runtime-handlers.d.ts.map +1 -1
- package/dist/runner/src/model-endpoint-discovery.d.ts +1 -1
- package/dist/runner/src/pending-turns.d.ts +3 -3
- package/dist/runner/src/platform-blocks.d.ts +5 -5
- package/dist/runner/src/platform-blocks.d.ts.map +1 -1
- package/dist/runner/src/prompt-turn-queue.d.ts +1 -1
- package/dist/runner/src/provider-quota-forwarder.d.ts +1 -1
- package/dist/runner/src/provider-quota-forwarder.d.ts.map +1 -1
- package/dist/runner/src/reconfigure-handler.d.ts +14 -14
- package/dist/runner/src/reconfigure-handler.d.ts.map +1 -1
- package/dist/runner/src/resource-handler.d.ts +1 -1
- package/dist/runner/src/resources.d.ts +5 -5
- package/dist/runner/src/resources.d.ts.map +1 -1
- package/dist/runner/src/runner-capabilities.d.ts +7 -7
- package/dist/runner/src/runtime-session-emit.d.ts +5 -5
- package/dist/runner/src/runtime-session-emit.d.ts.map +1 -1
- package/dist/runner/src/s3-presign-client.d.ts +1 -1
- package/dist/runner/src/serve-credentials.d.ts +7 -7
- package/dist/runner/src/serve-credentials.d.ts.map +1 -1
- package/dist/runner/src/serve.d.ts +32 -32
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/runner/src/session-builder.d.ts +41 -41
- package/dist/runner/src/session-builder.d.ts.map +1 -1
- package/dist/runner/src/session-capability-wiring.d.ts +9 -9
- package/dist/runner/src/session-capability-wiring.d.ts.map +1 -1
- package/dist/runner/src/session-stimulus.d.ts +1 -1
- package/dist/runner/src/session.d.ts +5 -5
- package/dist/runner/src/session.d.ts.map +1 -1
- package/dist/runner/src/skill-staging.d.ts +16 -16
- package/dist/runner/src/skill-staging.d.ts.map +1 -1
- package/dist/runner/src/turn-end-contract.d.ts +55 -0
- package/dist/runner/src/turn-end-contract.d.ts.map +1 -0
- package/dist/runner/src/turn-scheduler.d.ts +27 -22
- package/dist/runner/src/turn-scheduler.d.ts.map +1 -1
- package/dist/runner/src/turn-status-replay.d.ts +1 -1
- package/dist/runner/src/usage-limit-turn-hold.d.ts +1 -1
- package/dist/sdk/asset-manager.js +17 -17
- package/dist/sdk/bridge.js +24 -22
- package/dist/sdk/core.js +10 -10
- package/dist/sdk/flow.js +11 -11
- package/dist/sdk/index.js +49 -48
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/resolver.js +10 -10
- package/dist/sdk/runner.js +45 -44
- package/dist/sdk/session.js +2 -2
- package/dist/sdk/src/agent-session.d.ts +1 -1
- package/dist/sdk/src/local-runtime.d.ts +1 -1
- package/dist/sdk/src/local-runtime.d.ts.map +1 -1
- package/dist/sdk/src/types.d.ts +1 -1
- package/dist/sdk/src/types.d.ts.map +1 -1
- package/dist/sdk/store.js +2 -2
- package/dist/sdk/transport/ws/server.js +11 -11
- package/dist/sdk/transport/ws.js +11 -11
- package/dist/sdk/transport.js +11 -11
- package/dist/sdk/types.js +1 -1
- package/dist/serve-preflight-L4POEHNQ.js +108 -0
- package/dist/serve-preflight-L4POEHNQ.js.map +1 -0
- package/dist/session/index.js +2 -2
- package/dist/session/src/dispatcher.d.ts +2 -2
- package/dist/sessions-2Q7SSYPT.js +5 -0
- package/dist/{sessions-DICDEONJ.js.map → sessions-2Q7SSYPT.js.map} +1 -1
- package/dist/{setup-AAHVAXRA.js → setup-AGYB4PKR.js} +50 -48
- package/dist/setup-AGYB4PKR.js.map +1 -0
- package/dist/skills-2LMQ2IAD.js +26 -0
- package/dist/{skills-RSZVUIYZ.js.map → skills-2LMQ2IAD.js.map} +1 -1
- package/dist/source-GBMYD3RO.js +85 -0
- package/dist/{source-KWMCMEMB.js.map → source-GBMYD3RO.js.map} +1 -1
- package/dist/{source-manifest-publish-EDYKM4YZ.js → source-manifest-publish-FK22TVQT.js} +57 -56
- package/dist/source-manifest-publish-FK22TVQT.js.map +1 -0
- package/dist/store/index.js +2 -2
- package/dist/store/src/store.d.ts +3 -3
- package/dist/store/src/store.d.ts.map +1 -1
- package/dist/transport/index.js +11 -11
- package/dist/transport/src/ws/server.d.ts +1 -1
- package/dist/transport/src/ws/server.d.ts.map +1 -1
- package/dist/transport/ws/server.js +11 -11
- package/dist/transport/ws.js +11 -11
- package/dist/tui/index.js +65 -64
- package/dist/tui/index.js.map +1 -1
- package/dist/tui/src/repl-session.d.ts +5 -5
- package/dist/tui/src/repl.d.ts +5 -5
- package/dist/tui/src/repl.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/manifests.js +1 -1
- package/dist/types/src/agent-lifecycle.d.ts +1 -1
- package/dist/types/src/agent-lifecycle.d.ts.map +1 -1
- package/dist/types/src/ask-slots.d.ts +1 -1
- package/dist/types/src/capabilities.d.ts +1 -1
- package/dist/types/src/context-usage.d.ts +22 -22
- package/dist/types/src/context-usage.d.ts.map +1 -1
- package/dist/types/src/events.d.ts +49 -49
- package/dist/types/src/events.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/lifecycle.d.ts +6 -6
- package/dist/types/src/lifecycle.d.ts.map +1 -1
- package/dist/types/src/logging.d.ts +1 -1
- package/dist/types/src/manifests/agent.d.ts +3 -3
- package/dist/types/src/manifests/scaffold-body.d.ts +6 -3
- package/dist/types/src/manifests/scaffold-body.d.ts.map +1 -1
- package/dist/types/src/protocol.d.ts +4 -4
- package/dist/types/src/runtime.d.ts +38 -38
- package/dist/types/src/runtime.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +22 -11
- package/dist/types/src/version.d.ts.map +1 -1
- package/dist/validator-DRHMJ457.js +5 -0
- package/dist/{validator-FA2PFW6N.js.map → validator-DRHMJ457.js.map} +1 -1
- package/dist/workspace-plugin/adapters/mcp.js +36 -34
- package/dist/workspace-plugin/adapters/omp.js +26 -26
- package/dist/workspace-plugin/adapters/omp.js.map +1 -1
- package/dist/workspace-plugin/index.js +3 -3
- package/dist/workspace-plugin/src/plugin.d.ts +5 -5
- package/dist/workspace-plugin/src/plugin.d.ts.map +1 -1
- package/dist/workspace-plugin/src/tools/flows.d.ts +1 -1
- package/dist/workspace-plugin/src/tools/validator.d.ts +6 -6
- package/dist/workspace-plugin/src/tools/validator.d.ts.map +1 -1
- package/dist/workspace-plugin/src/types.d.ts +2 -2
- package/dist/workspace-plugin/src/types.d.ts.map +1 -1
- package/package.json +59 -59
- package/dist/bridge/drivers/claude-sdk.js.map +0 -1
- package/dist/bridge/drivers/codex.js.map +0 -1
- package/dist/bridge/drivers/continue.js.map +0 -1
- package/dist/bridge/drivers/echo.js.map +0 -1
- package/dist/bridge/drivers/gemini.js +0 -18
- package/dist/bridge/drivers/goose.js.map +0 -1
- package/dist/bridge/drivers/omp.js.map +0 -1
- package/dist/bridge/drivers/opencode.js.map +0 -1
- package/dist/bridge/drivers/qwen.js.map +0 -1
- package/dist/bridge/src/codex/managed-driver.d.ts.map +0 -1
- package/dist/bridge/src/driver-capabilities.d.ts.map +0 -1
- package/dist/bridge/src/driver-model-check.d.ts +0 -21
- package/dist/bridge/src/driver-model-check.d.ts.map +0 -1
- package/dist/bridge/src/drivers/_subprocess-cli.d.ts.map +0 -1
- package/dist/bridge/src/drivers/claude-context-usage.d.ts.map +0 -1
- package/dist/bridge/src/drivers/claude-sdk.d.ts.map +0 -1
- package/dist/bridge/src/drivers/claude-self-turns.d.ts.map +0 -1
- package/dist/bridge/src/drivers/claude-tool-allowlist.d.ts.map +0 -1
- package/dist/bridge/src/drivers/codex.d.ts.map +0 -1
- package/dist/bridge/src/drivers/continue.d.ts.map +0 -1
- package/dist/bridge/src/drivers/echo.d.ts.map +0 -1
- package/dist/bridge/src/drivers/flow-script.d.ts.map +0 -1
- package/dist/bridge/src/drivers/gemini.d.ts.map +0 -1
- package/dist/bridge/src/drivers/goose.d.ts.map +0 -1
- package/dist/bridge/src/drivers/omp-models-yml.d.ts.map +0 -1
- package/dist/bridge/src/drivers/omp.d.ts.map +0 -1
- package/dist/bridge/src/drivers/opencode.d.ts.map +0 -1
- package/dist/bridge/src/drivers/qwen.d.ts.map +0 -1
- package/dist/bridge/src/drivers/recovery-policy.d.ts.map +0 -1
- package/dist/bridge/src/drivers/resume-probe.d.ts.map +0 -1
- package/dist/bridge/src/drivers/sanitize-assistant-text.d.ts.map +0 -1
- package/dist/bridge/src/drivers/scrub-transcript.d.ts.map +0 -1
- package/dist/bridge/src/provider-materialize/env-drivers.d.ts.map +0 -1
- package/dist/chunk-2NOLF7B2.js.map +0 -1
- package/dist/chunk-34C2EKWJ.js.map +0 -1
- package/dist/chunk-3KMREAR2.js.map +0 -1
- package/dist/chunk-4ZTPYIBE.js.map +0 -1
- package/dist/chunk-5BEFNLOR.js.map +0 -1
- package/dist/chunk-5TBFN46Z.js.map +0 -1
- package/dist/chunk-6E6PKKAD.js.map +0 -1
- package/dist/chunk-7ANRSTNR.js.map +0 -1
- package/dist/chunk-7FHZB2QU.js.map +0 -1
- package/dist/chunk-AIBAOXDU.js.map +0 -1
- package/dist/chunk-AJ7EGIFR.js.map +0 -1
- package/dist/chunk-B4X2N7JQ.js.map +0 -1
- package/dist/chunk-BBWSGVVE.js.map +0 -1
- package/dist/chunk-BO426QWN.js.map +0 -1
- package/dist/chunk-CKICWXMU.js.map +0 -1
- package/dist/chunk-CKNIYIV2.js.map +0 -1
- package/dist/chunk-D6UBEYQH.js.map +0 -1
- package/dist/chunk-EAZECHPM.js.map +0 -1
- package/dist/chunk-EPBKISS5.js.map +0 -1
- package/dist/chunk-GBYNC5V3.js.map +0 -1
- package/dist/chunk-GOK4QRJR.js.map +0 -1
- package/dist/chunk-HPVMTX6M.js.map +0 -1
- package/dist/chunk-IG5LZ3WU.js.map +0 -1
- package/dist/chunk-IW6F6R2W.js.map +0 -1
- package/dist/chunk-IZCR27MU.js.map +0 -1
- package/dist/chunk-JYWW32JI.js.map +0 -1
- package/dist/chunk-KY4UXX7M.js.map +0 -1
- package/dist/chunk-L2AMXONH.js.map +0 -1
- package/dist/chunk-LW7ZI6EQ.js.map +0 -1
- package/dist/chunk-MJHSLODD.js.map +0 -1
- package/dist/chunk-PBSN4RTV.js.map +0 -1
- package/dist/chunk-RP3FZ2T6.js.map +0 -1
- package/dist/chunk-SRNCN4X2.js.map +0 -1
- package/dist/chunk-T2TQAH2X.js.map +0 -1
- package/dist/chunk-U7V5SIFW.js.map +0 -1
- package/dist/chunk-VKPBUPH7.js.map +0 -1
- package/dist/chunk-VM3PH7BB.js.map +0 -1
- package/dist/chunk-WMF2C5U7.js.map +0 -1
- package/dist/chunk-X6GUNN7X.js.map +0 -1
- package/dist/chunk-XTO436PV.js.map +0 -1
- package/dist/chunk-Y56YIT6J.js.map +0 -1
- package/dist/chunk-YARXR3CN.js.map +0 -1
- package/dist/chunk-YROR332M.js.map +0 -1
- package/dist/chunk-YZ3N7IUU.js.map +0 -1
- package/dist/chunk-ZBMC6IAE.js.map +0 -1
- package/dist/cli/src/driver-error.d.ts +0 -21
- package/dist/cli/src/driver-error.d.ts.map +0 -1
- package/dist/connectors-YNQ3WJGM.js +0 -46
- package/dist/core/driver-targets.d.ts +0 -2
- package/dist/core/driver-targets.js +0 -4
- package/dist/core/driver-targets.js.map +0 -1
- package/dist/core/src/driver-sdk.d.ts.map +0 -1
- package/dist/core/src/driver-targets.d.ts +0 -71
- package/dist/core/src/driver-targets.d.ts.map +0 -1
- package/dist/flows-BHY73K3O.js +0 -26
- package/dist/library-publish-NWWVYJUK.js.map +0 -1
- package/dist/open-library-7ZG2FFAX.js +0 -42
- package/dist/open-registry-RBELV5YH.js +0 -32
- package/dist/paths-BFM6K2QO.js +0 -22
- package/dist/plugin-store-QOQDM24E.js +0 -23
- package/dist/project-YQM3I25D.js +0 -83
- package/dist/runner/src/driver-swap-gate.d.ts.map +0 -1
- package/dist/serve-preflight-5QMY7DBC.js +0 -60
- package/dist/serve-preflight-5QMY7DBC.js.map +0 -1
- package/dist/sessions-DICDEONJ.js +0 -5
- package/dist/setup-AAHVAXRA.js.map +0 -1
- package/dist/skills-RSZVUIYZ.js +0 -26
- package/dist/source-KWMCMEMB.js +0 -84
- package/dist/source-manifest-publish-EDYKM4YZ.js.map +0 -1
- package/dist/validator-FA2PFW6N.js +0 -5
- /package/dist/bridge/{drivers → harnesses}/gemini.js.map +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Three independent triggers converge here — a `credentialRotated` broadcast
|
|
6
6
|
* naming a new seat, any mint result that comes back pinned to a different
|
|
7
|
-
* seat (including the proactive scheduler's), and a
|
|
7
|
+
* seat (including the proactive scheduler's), and a harness-reported usage-limit
|
|
8
8
|
* block. They can race, so they coalesce onto one in-flight re-pull.
|
|
9
9
|
*
|
|
10
10
|
* Extracted from `serve.ts` so the restash / restart / coalescing properties
|
|
@@ -40,7 +40,7 @@ export interface AiProviderConfigSwitcherDeps {
|
|
|
40
40
|
/** Repoint the session at `configId` (runner stash + live session config). */
|
|
41
41
|
setConfigId: (configId: string) => void;
|
|
42
42
|
/**
|
|
43
|
-
* Queue a
|
|
43
|
+
* Queue a harness restart on the serialized restart chain. MUST be
|
|
44
44
|
* fire-and-forget — see {@link createAiProviderConfigSwitcher}.
|
|
45
45
|
*/
|
|
46
46
|
scheduleRestart: (reason: string) => void;
|
|
@@ -85,13 +85,13 @@ export interface AiProviderConfigSwitcher {
|
|
|
85
85
|
/**
|
|
86
86
|
* Build the switcher.
|
|
87
87
|
*
|
|
88
|
-
* **The
|
|
89
|
-
* the
|
|
88
|
+
* **The harness restart is scheduled, never awaited.** A restart runs through
|
|
89
|
+
* the harness swap gate, which waits for the active turn to settle — and the
|
|
90
90
|
* limit-block trigger is invoked from *inside* that turn. Awaiting it here
|
|
91
|
-
* would deadlock the very failover it is meant to complete. The
|
|
91
|
+
* would deadlock the very failover it is meant to complete. The harness owns the
|
|
92
92
|
* urgent half anyway: it drops its query and respawns the CLI on the replay,
|
|
93
93
|
* which is what actually clears a resident CLI's cached limit state. The queued
|
|
94
|
-
* restart only brings the live
|
|
94
|
+
* restart only brings the live harness's own `aiProviderConfigId` up to date,
|
|
95
95
|
* and can safely land after the turn.
|
|
96
96
|
*
|
|
97
97
|
* **Coalescing covers the re-pull only,** for the same reason: if the shared
|
|
@@ -101,7 +101,7 @@ export interface AiProviderConfigSwitcher {
|
|
|
101
101
|
export declare function createAiProviderConfigSwitcher(deps: AiProviderConfigSwitcherDeps): AiProviderConfigSwitcher;
|
|
102
102
|
/**
|
|
103
103
|
* Whether a re-pull that did not switch the session still leaves it on a seat
|
|
104
|
-
* other than `blockedConfigId`, the one a
|
|
104
|
+
* other than `blockedConfigId`, the one a harness's turn was blocked on.
|
|
105
105
|
*
|
|
106
106
|
* True when an earlier switch (a `credentialRotated` broadcast naming another
|
|
107
107
|
* seat) already moved the pin while that turn kept running on the old seat:
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Builds the assistant home block (`agent.home` in skaile.yaml) from files in
|
|
5
5
|
* the project, at every session build. The block is part of the assembled
|
|
6
|
-
* system prompt, so it reaches every
|
|
6
|
+
* system prompt, so it reaches every harness the same way `agent.prompt` does.
|
|
7
7
|
*
|
|
8
8
|
* The reader runs in the trusted runner process, outside any native sandbox, on
|
|
9
9
|
* files the agent can write. So it refuses a symlinked final component, a
|
|
@@ -20,7 +20,7 @@ import type { DefinedCapability, HandlerContext } from "./define-capability.js";
|
|
|
20
20
|
*/
|
|
21
21
|
export type RemoteCapabilityInvoker = (name: string, input: unknown, timeoutMs?: number) => Promise<unknown>;
|
|
22
22
|
/**
|
|
23
|
-
* Minimal LLM tool descriptor consumed by bridge
|
|
23
|
+
* Minimal LLM tool descriptor consumed by bridge harnesses. Harnesses translate
|
|
24
24
|
* this into the provider-specific tool spec (Claude tool definition, OpenAI
|
|
25
25
|
* function spec, etc.) at registration time.
|
|
26
26
|
*
|
|
@@ -167,7 +167,7 @@ export declare class CapabilityRegistry {
|
|
|
167
167
|
/**
|
|
168
168
|
* Build LLM tool descriptors for every registered capability whose
|
|
169
169
|
* audience includes `'llm'` (the default when {@link Capability.audience}
|
|
170
|
-
* is omitted). Bridge
|
|
170
|
+
* is omitted). Bridge harnesses consume this output directly when
|
|
171
171
|
* assembling the tool list passed to the underlying LLM SDK.
|
|
172
172
|
*
|
|
173
173
|
* Capabilities scoped to `'runtime'` only (e.g. `host.refresh_credential`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Coalesces a burst of "the
|
|
3
|
-
* one
|
|
2
|
+
* Coalesces a burst of "the harness must re-bake its tool set" requests into
|
|
3
|
+
* one harness restart.
|
|
4
4
|
*
|
|
5
5
|
* The platform detaches (or attaches) MCP servers one RPC per server, so a lock
|
|
6
6
|
* flip that removes N servers asks for N restarts within a few milliseconds. A
|
|
@@ -10,8 +10,8 @@ export interface ResolvedContextWindow {
|
|
|
10
10
|
window: number;
|
|
11
11
|
source: ContextWindowSource;
|
|
12
12
|
}
|
|
13
|
-
/** The
|
|
14
|
-
export interface
|
|
13
|
+
/** The harness surface the resolver reads; `AgentHarness` satisfies it. */
|
|
14
|
+
export interface ContextWindowHarness {
|
|
15
15
|
getContextWindow(): number | null;
|
|
16
16
|
getModel?(): string | undefined;
|
|
17
17
|
}
|
|
@@ -26,11 +26,11 @@ export interface ContextWindowResolverOptions {
|
|
|
26
26
|
* compaction point and the displayed window both come from one
|
|
27
27
|
* {@link resolve} call, so they can never describe different windows.
|
|
28
28
|
*
|
|
29
|
-
* Precedence: the
|
|
30
|
-
* the last window a
|
|
29
|
+
* Precedence: the harness's reported window (a 1M alias floored at 1M), else
|
|
30
|
+
* the last window a harness reported for the same model and seat, else the
|
|
31
31
|
* harness's own context measurement, else {@link DEFAULT_CONTEXT_WINDOW}
|
|
32
|
-
* marked `assumed`. The memory outlives `resetSession()` and
|
|
33
|
-
* both of which leave a
|
|
32
|
+
* marked `assumed`. The memory outlives `resetSession()` and harness rebuilds,
|
|
33
|
+
* both of which leave a harness with no window until its next result; a model
|
|
34
34
|
* or seat change forgets it, since the new one may serve a different window.
|
|
35
35
|
*
|
|
36
36
|
* One instance per session, shared by every orchestrator and the collector.
|
|
@@ -44,9 +44,9 @@ export declare class ContextWindowResolver {
|
|
|
44
44
|
/** Whether any non-assumed window was ever resolved; the first one is not a change. */
|
|
45
45
|
private everKnown;
|
|
46
46
|
constructor(opts?: ContextWindowResolverOptions);
|
|
47
|
-
resolve(
|
|
47
|
+
resolve(harness: ContextWindowHarness): ResolvedContextWindow;
|
|
48
48
|
/** Record the window a fresh harness measurement gave (claude-sdk: `/context` `maxTokens`). */
|
|
49
|
-
noteContextReport(
|
|
49
|
+
noteContextReport(harness: ContextWindowHarness, window: number | null | undefined): void;
|
|
50
50
|
private pick;
|
|
51
51
|
private syncKey;
|
|
52
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-window.d.ts","sourceRoot":"","sources":["../../../../runner/src/compaction/context-window.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,SAAU,CAAC;AAgB9C,+CAA+C;AAC/C,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,mBAAmB,CAAC;CAC7B;AAED,
|
|
1
|
+
{"version":3,"file":"context-window.d.ts","sourceRoot":"","sources":["../../../../runner/src/compaction/context-window.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,SAAU,CAAC;AAgB9C,+CAA+C;AAC/C,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,mBAAmB,CAAC;CAC7B;AAED,2EAA2E;AAC3E,MAAM,WAAW,oBAAoB;IACnC,gBAAgB,IAAI,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,IAAI,MAAM,GAAG,SAAS,CAAC;CACjC;AAED,MAAM,WAAW,4BAA4B;IAC3C,yFAAyF;IACzF,IAAI,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IAChC,uGAAuG;IACvG,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/B;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,qBAAqB;IAQpB,OAAO,CAAC,QAAQ,CAAC,IAAI;IAPjC,OAAO,CAAC,GAAG,CAAuB;IAClC,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,aAAa,CAAuB;IAC5C,OAAO,CAAC,IAAI,CAAsC;IAClD,uFAAuF;IACvF,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,GAAE,4BAAiC;IAEpE,OAAO,CAAC,OAAO,EAAE,oBAAoB,GAAG,qBAAqB;IAkB7D,+FAA+F;IAC/F,iBAAiB,CAAC,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IAMzF,OAAO,CAAC,IAAI;IAmBZ,OAAO,CAAC,OAAO;CAOhB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AgentHarness } from "@skaile/workspaces/bridge";
|
|
2
2
|
import type { CompactionConfig } from "@skaile/workspaces/core";
|
|
3
3
|
import type { CompactionAttemptEvent, CompactionTrigger, SnapshotEvent, TokenUsage } from "@skaile/workspaces/types";
|
|
4
4
|
import { ContextWindowResolver, type ResolvedContextWindow } from "./context-window.js";
|
|
5
5
|
/**
|
|
6
6
|
* How long to wait for an aborted compaction turn to actually unwind before
|
|
7
|
-
* retrying. Only the claude-sdk
|
|
8
|
-
* codex and subprocess
|
|
9
|
-
* "turn already in progress". Sized just above that
|
|
7
|
+
* retrying. Only the claude-sdk harness's `abort()` waits for its query; the
|
|
8
|
+
* codex and subprocess harnesses return first and reject the next `prompt()` as
|
|
9
|
+
* "turn already in progress". Sized just above that harness's own 3s grace.
|
|
10
10
|
*/
|
|
11
11
|
export declare const ABORT_SETTLE_GRACE_MS = 5000;
|
|
12
12
|
/**
|
|
@@ -17,7 +17,7 @@ export declare const ABORT_SETTLE_GRACE_MS = 5000;
|
|
|
17
17
|
* `cacheReadTokens`, which is why reading `inputTokens` alone made the compaction
|
|
18
18
|
* threshold unreachable. OpenAI's `inputTokens` already *includes* cache reads, so
|
|
19
19
|
* `cacheReadTokens` is a subset there — taking the max of the two rather than the
|
|
20
|
-
* sum keeps that
|
|
20
|
+
* sum keeps that harness from double-counting.
|
|
21
21
|
*/
|
|
22
22
|
export declare function contextTokens(usage: TokenUsage | null | undefined): number;
|
|
23
23
|
/**
|
|
@@ -40,10 +40,10 @@ export declare function detectRateLimitInSummary(text: string): boolean;
|
|
|
40
40
|
* Failed validation does NOT throw; it returns a structured verdict so the
|
|
41
41
|
* orchestrator can record a `failed` Compaction row with the right errorCode.
|
|
42
42
|
*
|
|
43
|
-
* @param text The captured summary text from the
|
|
43
|
+
* @param text The captured summary text from the harness.
|
|
44
44
|
* @param tokensBefore Estimated context size before the call — the whole prompt, cached
|
|
45
45
|
* tokens included (from {@link contextTokens}), not `usage.inputTokens`.
|
|
46
|
-
* @param tokensAfter Output token count of the summary (from
|
|
46
|
+
* @param tokensAfter Output token count of the summary (from harness or chars/4 heuristic).
|
|
47
47
|
* @returns `{ ok: true }` on pass, otherwise `{ ok: false, errorCode }` with one of:
|
|
48
48
|
* `"empty"` | `"too_short"` | `"poor_ratio"` | `"rate_limit"`.
|
|
49
49
|
*
|
|
@@ -62,7 +62,7 @@ export declare function validateCompactionOutput(text: string, tokensBefore: num
|
|
|
62
62
|
* @docLink packages/runner/dev-guide#compaction
|
|
63
63
|
*/
|
|
64
64
|
export interface CompactionOrchestratorOptions {
|
|
65
|
-
|
|
65
|
+
harness: AgentHarness;
|
|
66
66
|
config?: CompactionConfig;
|
|
67
67
|
skillDirectives?: string[];
|
|
68
68
|
mcpDirectives?: string[];
|
|
@@ -77,25 +77,25 @@ export interface CompactionOrchestratorOptions {
|
|
|
77
77
|
onCompactionAttempt?: (event: CompactionAttemptEvent) => void;
|
|
78
78
|
onCompactionEnd?: () => void;
|
|
79
79
|
/**
|
|
80
|
-
* Fires once the compaction call has fully settled and the
|
|
80
|
+
* Fires once the compaction call has fully settled and the harness is free.
|
|
81
81
|
*
|
|
82
82
|
* Distinct from {@link onCompactionEnd}, which fires earlier on the success
|
|
83
83
|
* path — before `resetSession()` and the snapshot injection — so that the
|
|
84
84
|
* injection turn's events are not suppressed. A host holding user turns off
|
|
85
|
-
* the
|
|
85
|
+
* the harness has to wait for this one instead, or it releases them straight
|
|
86
86
|
* into the injection.
|
|
87
87
|
*
|
|
88
88
|
* Guaranteed on every exit, including a throw.
|
|
89
89
|
*/
|
|
90
90
|
onCompactionSettled?: () => void;
|
|
91
91
|
/**
|
|
92
|
-
* Take the
|
|
92
|
+
* Take the harness before the compaction starts. Resolves to a release, which
|
|
93
93
|
* the orchestrator calls after {@link onCompactionSettled}, or to `null` to
|
|
94
94
|
* skip this compaction: no start callback, no attempt, no cooldown. The host
|
|
95
|
-
* waits here for user turns that already hold the
|
|
95
|
+
* waits here for user turns that already hold the harness, so a compaction
|
|
96
96
|
* never prompts it under one of them.
|
|
97
97
|
*/
|
|
98
|
-
|
|
98
|
+
claimHarness?: (trigger: CompactionTrigger) => Promise<(() => void) | null>;
|
|
99
99
|
onLog?: (line: string) => void;
|
|
100
100
|
/**
|
|
101
101
|
* Phase 3 (resume cascade): supplies the current capability registry
|
|
@@ -111,7 +111,7 @@ export interface CompactionOrchestratorOptions {
|
|
|
111
111
|
getCurrentCapabilitySignature?: () => string | null;
|
|
112
112
|
/**
|
|
113
113
|
* The session's context window resolver. Pass the host's shared instance so
|
|
114
|
-
* the window survives a
|
|
114
|
+
* the window survives a harness rebuild; without one the orchestrator keeps
|
|
115
115
|
* its own, which survives only `resetSession()`.
|
|
116
116
|
*/
|
|
117
117
|
contextWindows?: ContextWindowResolver;
|
|
@@ -125,7 +125,7 @@ export interface CompactionOrchestratorOptions {
|
|
|
125
125
|
* @docLink packages/runner/dev-guide#compaction
|
|
126
126
|
*/
|
|
127
127
|
export declare class CompactionOrchestrator {
|
|
128
|
-
private readonly
|
|
128
|
+
private readonly harness;
|
|
129
129
|
private readonly strategy;
|
|
130
130
|
private readonly config;
|
|
131
131
|
private readonly opts;
|
|
@@ -139,7 +139,7 @@ export declare class CompactionOrchestrator {
|
|
|
139
139
|
private lastCompactionTime;
|
|
140
140
|
/**
|
|
141
141
|
* Summary of the last successful compaction, carried into the next one.
|
|
142
|
-
* Per-instance, in step with `lastCompactionSeq`: a
|
|
142
|
+
* Per-instance, in step with `lastCompactionSeq`: a harness rebuild resets
|
|
143
143
|
* both, so the first compaction after one is not treated as a re-compaction.
|
|
144
144
|
*/
|
|
145
145
|
private lastSummary;
|
|
@@ -149,12 +149,12 @@ export declare class CompactionOrchestrator {
|
|
|
149
149
|
/** The window the fill is measured against, and where it came from. */
|
|
150
150
|
resolveContextWindow(): ResolvedContextWindow;
|
|
151
151
|
/**
|
|
152
|
-
* How full the context window is. Prefers the
|
|
152
|
+
* How full the context window is. Prefers the harness's per-call figure; the
|
|
153
153
|
* turn-cumulative `getTokenUsage()` overstates it by 10-40x on a multi-tool
|
|
154
|
-
* turn, so it is only the fallback for
|
|
155
|
-
* The fallback cannot resurrect that overstatement: a
|
|
154
|
+
* turn, so it is only the fallback for harnesses that report no per-call size.
|
|
155
|
+
* The fallback cannot resurrect that overstatement: a harness clears both
|
|
156
156
|
* readings together, so a null per-call figure implies no cumulative one.
|
|
157
|
-
* `?.` guards duck-typed hosts that predate the accessor, not `
|
|
157
|
+
* `?.` guards duck-typed hosts that predate the accessor, not `AgentHarness`.
|
|
158
158
|
*/
|
|
159
159
|
private contextFill;
|
|
160
160
|
/**
|
|
@@ -207,17 +207,17 @@ export declare class CompactionOrchestrator {
|
|
|
207
207
|
private _shouldRetry;
|
|
208
208
|
/**
|
|
209
209
|
* Drive the compaction `prompt()` call, capturing summary text from the
|
|
210
|
-
*
|
|
210
|
+
* harness's raw bridge-level events and any thrown error. The listener is
|
|
211
211
|
* always removed in `finally`.
|
|
212
212
|
*
|
|
213
213
|
* `elapsedMs` is the wall-clock cost of the `prompt()` call. It is the only
|
|
214
214
|
* thing that separates a genuinely empty model response from a turn that was
|
|
215
215
|
* settled by something other than the model, which resolves in milliseconds.
|
|
216
216
|
*
|
|
217
|
-
* The call is bounded by {@link compactionInactivityMs} of
|
|
217
|
+
* The call is bounded by {@link compactionInactivityMs} of harness silence and
|
|
218
218
|
* by the {@link compactionTimeoutMs} ceiling; on either expiry the turn is
|
|
219
219
|
* aborted and `timedOut` is returned so the caller can record a classified
|
|
220
|
-
* `timeout` rather than wait out the
|
|
220
|
+
* `timeout` rather than wait out the harness's much longer stall watchdog.
|
|
221
221
|
*/
|
|
222
222
|
private _runCompactionPrompt;
|
|
223
223
|
/**
|
|
@@ -241,7 +241,7 @@ export declare class CompactionOrchestrator {
|
|
|
241
241
|
private _emitValidationFailure;
|
|
242
242
|
/**
|
|
243
243
|
* Success path: emit the attempt + snapshot events, update internal state,
|
|
244
|
-
* and (unless hibernating) reset the
|
|
244
|
+
* and (unless hibernating) reset the harness and inject the snapshot.
|
|
245
245
|
*/
|
|
246
246
|
private _completeCompaction;
|
|
247
247
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["../../../../runner/src/compaction/orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["../../../../runner/src/compaction/orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,KAAK,EAAE,gBAAgB,EAA4B,MAAM,yBAAyB,CAAC;AAE1F,OAAO,KAAK,EACV,sBAAsB,EACtB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACX,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAkFxF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,OAAQ,CAAC;AAmD3C;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAK1E;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG9D;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,GAClB;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAQjD;AAED;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,YAAY,CAAC;IACtB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACzD,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,IAAI,CAAC;IAC/C;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAC9D,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B;;;;;;;;;;OAUG;IACH,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAC5E,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B;;;;;;;;;;OAUG;IACH,6BAA6B,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IACpD;;;;OAIG;IACH,cAAc,CAAC,EAAE,qBAAqB,CAAC;CACxC;AAED;;;;;;;GAOG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAe;IACvC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAqB;IAC9C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAClD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgC;IACrD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAwB;IAEvD,OAAO,CAAC,aAAa,CAAS;IAC9B,sGAAsG;IACtG,OAAO,CAAC,WAAW,CAAS;IAC5B,oGAAoG;IACpG,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,iBAAiB,CAAuB;IAChD,OAAO,CAAC,kBAAkB,CAAuB;IACjD;;;;OAIG;IACH,OAAO,CAAC,WAAW,CAAuB;IAC1C,OAAO,CAAC,UAAU,CAAK;IACvB,OAAO,CAAC,uBAAuB,CAAK;gBAExB,IAAI,EAAE,6BAA6B;IAS/C,uEAAuE;IACvE,oBAAoB,IAAI,qBAAqB;IAI7C;;;;;;;OAOG;IACH,OAAO,CAAC,WAAW;IAInB;;;;;OAKG;IACH,eAAe,CAAC,aAAa,SAAqC,GAAG,MAAM,GAAG,IAAI;IAOlF,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAK/B,aAAa,IAAI,OAAO;IAiBlB,OAAO,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;IAiDxF;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAStB;;;;;;;OAOG;YACW,UAAU;IAyFxB;;;;OAIG;IACH,OAAO,CAAC,eAAe;IAUvB;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAItB;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAcpB;;;;;;;;;;;;;OAaG;YACW,oBAAoB;IA0IlC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,kBAAkB;IA2C1B;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IAwB9B;;;OAGG;YACW,mBAAmB;CAyDlC"}
|
|
@@ -2,40 +2,40 @@ import type { AgentEvent, CompactionTrigger } from "@skaile/workspaces/types";
|
|
|
2
2
|
/** Opaque handle for one in-flight compaction. See {@link CompactionGate.begin}. */
|
|
3
3
|
export type CompactionHold = symbol;
|
|
4
4
|
/**
|
|
5
|
-
* Coordinates the compaction-turn / user-turn race on a single
|
|
5
|
+
* Coordinates the compaction-turn / user-turn race on a single harness.
|
|
6
6
|
*
|
|
7
|
-
* Compaction prompts the very
|
|
7
|
+
* Compaction prompts the very harness a user turn would, and the runner
|
|
8
8
|
* suppresses forwarded events for its duration. A turn dispatched into that
|
|
9
|
-
* window therefore runs against a
|
|
9
|
+
* window therefore runs against a harness already mid-turn and has its reply
|
|
10
10
|
* dropped on the way out — no text, no `finished`, no error, just an indefinite
|
|
11
11
|
* "AI is thinking…" (skaile-ai/platform#3882).
|
|
12
12
|
*
|
|
13
13
|
* The window this gate holds is deliberately wider than the event suppression.
|
|
14
14
|
* On the success path the orchestrator stops suppressing before it resets the
|
|
15
|
-
*
|
|
15
|
+
* harness and injects the snapshot, so a turn released at that moment would race
|
|
16
16
|
* the injection instead of the summary. The gate opens only once the whole
|
|
17
17
|
* compaction call has settled.
|
|
18
18
|
*
|
|
19
|
-
* Mirrors {@link
|
|
19
|
+
* Mirrors {@link HarnessSwapGate}: one instance per agent server, and every
|
|
20
20
|
* method is safe to call when nothing is in flight.
|
|
21
21
|
*/
|
|
22
22
|
export declare class CompactionGate {
|
|
23
23
|
/**
|
|
24
|
-
* Every compaction currently holding the
|
|
24
|
+
* Every compaction currently holding the harness.
|
|
25
25
|
*
|
|
26
|
-
* A set rather than a boolean because holds can overlap: a
|
|
26
|
+
* A set rather than a boolean because holds can overlap: a harness swap
|
|
27
27
|
* rebuilds the orchestrator, and the new instance carries its own
|
|
28
28
|
* `_isCompacting`, so it can start a compaction while the previous
|
|
29
29
|
* instance's call is still unwinding. Keyed by handle so the older one
|
|
30
30
|
* settling cannot open the gate under the newer one — the same identity
|
|
31
|
-
* check `
|
|
31
|
+
* check `HarnessSwapGate.beginSwap` makes for swaps.
|
|
32
32
|
*/
|
|
33
33
|
private held;
|
|
34
|
-
/** Resolves when the last hold is released. Null whenever the
|
|
34
|
+
/** Resolves when the last hold is released. Null whenever the harness is free. */
|
|
35
35
|
private opened;
|
|
36
36
|
private release;
|
|
37
37
|
/**
|
|
38
|
-
* Mark a compaction as occupying the
|
|
38
|
+
* Mark a compaction as occupying the harness. The returned handle is the only
|
|
39
39
|
* thing that can release it.
|
|
40
40
|
*/
|
|
41
41
|
begin(): CompactionHold;
|
|
@@ -49,18 +49,18 @@ export declare class CompactionGate {
|
|
|
49
49
|
* failure than the discarded reply this gate exists to prevent.
|
|
50
50
|
*/
|
|
51
51
|
settle(hold: CompactionHold | null | undefined): void;
|
|
52
|
-
/** Whether no compaction holds the
|
|
52
|
+
/** Whether no compaction holds the harness right now. */
|
|
53
53
|
isIdle(): boolean;
|
|
54
54
|
/**
|
|
55
|
-
* Wait for the
|
|
55
|
+
* Wait for the harness to be free.
|
|
56
56
|
*
|
|
57
57
|
* Returns `idle` when nothing was in flight, `waited` when every compaction
|
|
58
58
|
* settled within the bound, and `timeout` when they did not. A caller that
|
|
59
59
|
* gets `timeout` must surface it rather than dispatch: a compaction still
|
|
60
|
-
* holding the
|
|
60
|
+
* holding the harness past this bound is stuck, and dispatching into it
|
|
61
61
|
* reproduces the silent loss.
|
|
62
62
|
*
|
|
63
|
-
* Re-checks in a loop, as `
|
|
63
|
+
* Re-checks in a loop, as `HarnessSwapGate.awaitSwap` does, so a compaction
|
|
64
64
|
* armed while this turn was already waiting is also awaited. `timeoutMs`
|
|
65
65
|
* bounds the whole wait, not each iteration.
|
|
66
66
|
*/
|
|
@@ -68,20 +68,20 @@ export declare class CompactionGate {
|
|
|
68
68
|
}
|
|
69
69
|
/** The turn-wait bound for a compaction with this trigger. */
|
|
70
70
|
export declare function compactionTurnWaitFor(trigger: CompactionTrigger): number;
|
|
71
|
-
export interface
|
|
71
|
+
export interface ClaimHarnessForCompactionDeps {
|
|
72
72
|
gate: CompactionGate;
|
|
73
73
|
/** Resolves once every turn that already claimed a slot has settled. Must not reject. */
|
|
74
74
|
awaitClaimedTurns: () => Promise<void>;
|
|
75
75
|
/**
|
|
76
|
-
* Whether the
|
|
77
|
-
* (`
|
|
78
|
-
* newer
|
|
76
|
+
* Whether the harness is being replaced or already was: a swap is registered
|
|
77
|
+
* (`HarnessSwapGate.isSwapping`), or the compaction belongs to an orchestrator a
|
|
78
|
+
* newer harness superseded. A swap about to replace the harness would kill it
|
|
79
79
|
* under the compaction.
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
isHarnessReplaced: () => boolean;
|
|
82
82
|
/**
|
|
83
83
|
* Take a turn slot so a swap registered later waits for the compaction, e.g.
|
|
84
|
-
* `
|
|
84
|
+
* `HarnessSwapGate.beginTurn`. Returns the slot's release.
|
|
85
85
|
*/
|
|
86
86
|
claimTurnSlot: () => () => void;
|
|
87
87
|
log: (line: string) => void;
|
|
@@ -89,9 +89,9 @@ export interface ClaimDriverForCompactionDeps {
|
|
|
89
89
|
timeoutMs: number;
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
|
-
* Take the
|
|
92
|
+
* Take the harness for a compaction, the way a harness swap takes it.
|
|
93
93
|
*
|
|
94
|
-
* Also holds
|
|
94
|
+
* Also holds harness swaps off: a swap kills the outgoing harness, and a
|
|
95
95
|
* compaction prompting it then hangs until its timeout, retry included.
|
|
96
96
|
*
|
|
97
97
|
* Arms the gate first, so no turn can claim a slot from here on (see
|
|
@@ -100,28 +100,28 @@ export interface ClaimDriverForCompactionDeps {
|
|
|
100
100
|
* are a closed set, not a FIFO that every new prompt extends.
|
|
101
101
|
*
|
|
102
102
|
* Returns the release (idempotent; call it once the compaction has settled),
|
|
103
|
-
* or `null` when a turn still held the
|
|
103
|
+
* or `null` when a turn still held the harness at the bound. The caller then
|
|
104
104
|
* skips the compaction and the next turn end checks again. Proceeding instead
|
|
105
105
|
* would drop that turn's reply, which is the defect this gate exists for.
|
|
106
106
|
*/
|
|
107
|
-
export declare function
|
|
107
|
+
export declare function claimHarnessForCompaction(deps: ClaimHarnessForCompactionDeps): Promise<(() => void) | null>;
|
|
108
108
|
export interface BeginTurnClearOfCompactionDeps {
|
|
109
109
|
gate: CompactionGate;
|
|
110
110
|
/** Wait out any compaction; `false` means abandon the turn (already reported). */
|
|
111
111
|
awaitIdle: () => Promise<boolean>;
|
|
112
|
-
/** Run the turn's pre-flight and claim its slot, e.g. `
|
|
112
|
+
/** Run the turn's pre-flight and claim its slot, e.g. `HarnessSwapGate.beginTurnOnLiveHarness`. */
|
|
113
113
|
claimTurn: () => Promise<() => void>;
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
|
-
* Claim a turn slot while no compaction holds the
|
|
116
|
+
* Claim a turn slot while no compaction holds the harness.
|
|
117
117
|
*
|
|
118
118
|
* A turn that passed the gate is still in its pre-flight (skill restage,
|
|
119
|
-
*
|
|
119
|
+
* harness start) when a compaction can arm. That compaction waits only for
|
|
120
120
|
* turns that hold a slot, and this one does not hold one yet. So the turn
|
|
121
121
|
* checks the gate again after it claims its slot: a compaction armed before
|
|
122
|
-
* that check owns the
|
|
122
|
+
* that check owns the harness, and the turn yields its slot and waits. A
|
|
123
123
|
* compaction armed after the check waits for this turn instead, through
|
|
124
|
-
* {@link
|
|
124
|
+
* {@link claimHarnessForCompaction}.
|
|
125
125
|
*
|
|
126
126
|
* Returns `endTurn`, or `null` when `awaitIdle` refused the turn. Throws after
|
|
127
127
|
* {@link TURN_COMPACTION_YIELD_ATTEMPTS} yields; that needs compactions back to
|
|
@@ -136,7 +136,7 @@ export interface GuardTurnDeps {
|
|
|
136
136
|
sendEvent: (event: AgentEvent) => void;
|
|
137
137
|
}
|
|
138
138
|
/**
|
|
139
|
-
* Hold a user turn until the
|
|
139
|
+
* Hold a user turn until the harness is free of any compaction.
|
|
140
140
|
*
|
|
141
141
|
* Returns false when the caller must abandon the turn — dispatching anyway is
|
|
142
142
|
* what skaile-ai/platform#3882 records. The error event is the first
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compaction-gate.d.ts","sourceRoot":"","sources":["../../../runner/src/compaction-gate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE9E,oFAAoF;AACpF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,cAAc;IACzB;;;;;;;;;OASG;IACH,OAAO,CAAC,IAAI,CAA6B;IACzC,
|
|
1
|
+
{"version":3,"file":"compaction-gate.d.ts","sourceRoot":"","sources":["../../../runner/src/compaction-gate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE9E,oFAAoF;AACpF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,cAAc;IACzB;;;;;;;;;OASG;IACH,OAAO,CAAC,IAAI,CAA6B;IACzC,kFAAkF;IAClF,OAAO,CAAC,MAAM,CAA8B;IAC5C,OAAO,CAAC,OAAO,CAA6B;IAE5C;;;OAGG;IACH,KAAK,IAAI,cAAc;IAWvB;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IASrD,yDAAyD;IACzD,MAAM,IAAI,OAAO;IAIjB;;;;;;;;;;;;OAYG;IACG,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;CAe3E;AA2DD,8DAA8D;AAC9D,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAExE;AAED,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,cAAc,CAAC;IACrB,yFAAyF;IACzF,iBAAiB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC;;;;;OAKG;IACH,iBAAiB,EAAE,MAAM,OAAO,CAAC;IACjC;;;OAGG;IACH,aAAa,EAAE,MAAM,MAAM,IAAI,CAAC;IAChC,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5B,+DAA+D;IAC/D,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,6BAA6B,GAClC,OAAO,CAAC,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC,CA8B9B;AAKD,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,cAAc,CAAC;IACrB,kFAAkF;IAClF,SAAS,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAClC,mGAAmG;IACnG,SAAS,EAAE,MAAM,OAAO,CAAC,MAAM,IAAI,CAAC,CAAC;CACtC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,0BAA0B,CAC9C,IAAI,EAAE,8BAA8B,GACnC,OAAO,CAAC,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC,CAQ9B;AAMD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,cAAc,CAAC;IACrB,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5B,SAAS,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACxC;AAED;;;;;;;GAOG;AACH,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,CAOtF"}
|
|
@@ -77,6 +77,17 @@ export interface CompileResult {
|
|
|
77
77
|
* @docLink packages/runner/capabilities#compile-composition
|
|
78
78
|
*/
|
|
79
79
|
export declare function compileComposition(opts: CompileOpts): Promise<CompileResult>;
|
|
80
|
+
/**
|
|
81
|
+
* Whether `<agentDir>/compile_manifest.json` already pins exactly what {@link compileComposition}
|
|
82
|
+
* would write now: one entry per item, in order, with the ref, kind and binding of the item and
|
|
83
|
+
* the hash of the bytes the content source serves today. `skaile add`/`install`/`update` compile
|
|
84
|
+
* an agent only when this is `false`, so a pin that `skaile rebuild` wrote survives an install
|
|
85
|
+
* and a changed lock revision gets a fresh pin (p413, p1310).
|
|
86
|
+
*
|
|
87
|
+
* @returns `false` when there is no pin, it is stale-schema or malformed, or any item differs.
|
|
88
|
+
* @throws {CompositionError} `composition_asset_missing` / `composition_conflict` for an item the content source cannot serve.
|
|
89
|
+
*/
|
|
90
|
+
export declare function isCompilePinCurrent(opts: CompileOpts): Promise<boolean>;
|
|
80
91
|
/**
|
|
81
92
|
* Load an existing compile_manifest.json.
|
|
82
93
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../../../runner/src/composition/compile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAG3E,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,KAAK,wBAAwB,EAE9B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,eAAe,EAA6C,MAAM,YAAY,CAAC;AAM7F;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,0BAA0B,CAAC;AAEjE,gGAAgG;AAChG,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;iBASrC,CAAC;AAoBH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,oFAAoF;IACpF,QAAQ,EAAE,MAAM,CAAC;IACjB,kFAAkF;IAClF,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,yCAAyC;IACzC,MAAM,EAAE,wBAAwB,CAAC;CAClC;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,mCAAmC;IACnC,QAAQ,EAAE,eAAe,CAAC;IAC1B,+BAA+B;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,4EAA4E;IAC5E,aAAa,EAAE,MAAM,CAAC;CACvB;AAMD;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CA4ClF;AAMD;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CACvC,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CA6CtC;AAED;;;;;;;;GAQG;AACH,wBAAsB,0BAA0B,CAC9C,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CAEtC"}
|
|
1
|
+
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../../../runner/src/composition/compile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAG3E,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,KAAK,wBAAwB,EAE9B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,eAAe,EAA6C,MAAM,YAAY,CAAC;AAM7F;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,0BAA0B,CAAC;AAEjE,gGAAgG;AAChG,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;iBASrC,CAAC;AAoBH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,oFAAoF;IACpF,QAAQ,EAAE,MAAM,CAAC;IACjB,kFAAkF;IAClF,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,yCAAyC;IACzC,MAAM,EAAE,wBAAwB,CAAC;CAClC;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,mCAAmC;IACnC,QAAQ,EAAE,eAAe,CAAC;IAC1B,+BAA+B;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,4EAA4E;IAC5E,aAAa,EAAE,MAAM,CAAC;CACvB;AAMD;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CA4ClF;AAED;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAgB7E;AAMD;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CACvC,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CA6CtC;AAED;;;;;;;;GAQG;AACH,wBAAsB,0BAA0B,CAC9C,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CAEtC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* reaches each supported harness. No model is spawned and no run snapshot is
|
|
7
7
|
* written.
|
|
8
8
|
*/
|
|
9
|
-
import { type
|
|
9
|
+
import { type HarnessName } from "@skaile/workspaces/core";
|
|
10
10
|
import type { ResolvedAgentInstance } from "./resolve-instance.js";
|
|
11
11
|
/** One row of the dry-run report. */
|
|
12
12
|
export interface CompositionDryRunRow {
|
|
@@ -21,7 +21,7 @@ export interface CompositionDryRunRow {
|
|
|
21
21
|
/** Where the bytes came from. */
|
|
22
22
|
resolvedRef: string | undefined;
|
|
23
23
|
/** How the item reaches each harness. */
|
|
24
|
-
support: Record<
|
|
24
|
+
support: Record<HarnessName, string>;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Describe a resolved agent instance for `--dry-run`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dry-run.d.ts","sourceRoot":"","sources":["../../../../runner/src/composition/dry-run.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"dry-run.d.ts","sourceRoot":"","sources":["../../../../runner/src/composition/dry-run.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAmB,KAAK,WAAW,EAAuB,MAAM,yBAAyB,CAAC;AACjG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAGnE,qCAAqC;AACrC,MAAM,WAAW,oBAAoB;IACnC,mCAAmC;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,iDAAiD;IACjD,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC,oCAAoC;IACpC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,iCAAiC;IACjC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,yCAAyC;IACzC,OAAO,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;CACtC;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,oBAAoB,EAAE,CAmB3F"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* And supports `skaile rebuild <agent>` via the compile module.
|
|
9
9
|
*/
|
|
10
10
|
export { registerCompositionCapabilities } from "./bootstrap.js";
|
|
11
|
-
export { COMPILE_MANIFEST_FILENAME, CompileManifestEntrySchema, type CompileOpts, type CompileResult, compileComposition, loadCompileManifest, loadCompileManifestFromDir, } from "./compile.js";
|
|
11
|
+
export { COMPILE_MANIFEST_FILENAME, CompileManifestEntrySchema, type CompileOpts, type CompileResult, compileComposition, isCompilePinCurrent, loadCompileManifest, loadCompileManifestFromDir, } from "./compile.js";
|
|
12
12
|
export { type CompositionDryRunRow, describeComposition } from "./dry-run.js";
|
|
13
13
|
export { type CompositionAsset, type CompositionContentSource, type CompositionContentSourceOpts, createCompositionContentSource, hashContent, } from "./content-source.js";
|
|
14
14
|
export { CompositionError, type CompositionErrorCode, type CompositionErrorReason, isCompositionError, } from "./errors.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../runner/src/composition/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AAEjE,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAE9E,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,8BAA8B,EAC9B,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,gBAAgB,EAChB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,kBAAkB,GACnB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,kBAAkB,EAClB,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,KAAK,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAE/E,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,KAAK,+BAA+B,EACpC,wBAAwB,EACxB,KAAK,mBAAmB,GACzB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,KAAK,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEpF,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,cAAc,EACd,2BAA2B,GAC5B,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../runner/src/composition/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AAEjE,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAE9E,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,8BAA8B,EAC9B,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,gBAAgB,EAChB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,kBAAkB,GACnB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,kBAAkB,EAClB,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,KAAK,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAE/E,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,KAAK,+BAA+B,EACpC,wBAAwB,EACxB,KAAK,mBAAmB,GACzB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,KAAK,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEpF,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,cAAc,EACd,2BAA2B,GAC5B,MAAM,YAAY,CAAC"}
|
|
@@ -32,9 +32,9 @@ export interface AgentInstanceAsset {
|
|
|
32
32
|
/** What the host running the instance can do. Every field is optional. */
|
|
33
33
|
export interface AgentInstanceHost {
|
|
34
34
|
/**
|
|
35
|
-
* Whether the
|
|
35
|
+
* Whether the harness spawns native sub-agents (rendered agent files). Drives
|
|
36
36
|
* the default of a `kind: agent` item without an explicit binding:
|
|
37
|
-
* `delegate` when true, `run` otherwise. An explicit `delegate` on a
|
|
37
|
+
* `delegate` when true, `run` otherwise. An explicit `delegate` on a harness
|
|
38
38
|
* without native sub-agents is demoted to `run` with a warning.
|
|
39
39
|
*/
|
|
40
40
|
nativeSubagents?: boolean;
|
|
@@ -72,7 +72,7 @@ export declare function assertConventionItemUnedited(item: AgentComposeItem, com
|
|
|
72
72
|
* are pinned like discoverable items: a run snapshot, then the compiled
|
|
73
73
|
* capture, then the content source. The compiled entry is found whichever
|
|
74
74
|
* delegate/run binding it was compiled under — the effective binding depends
|
|
75
|
-
* on the
|
|
75
|
+
* on the harness, the pinned bytes do not.
|
|
76
76
|
*
|
|
77
77
|
* @throws {CompositionError} `composition_asset_missing` / `composition_conflict` from the content source.
|
|
78
78
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Harness configuration — re-exported from @skaile/workspaces/core.
|
|
3
3
|
*
|
|
4
4
|
* This file is a backwards-compatibility shim. All types and functions
|
|
5
5
|
* originate in skaile-agent-core and are re-exported here so existing
|
|
6
6
|
* imports within skaile-agent-runner continue to work unchanged.
|
|
7
7
|
* @docLink packages/runner/dev-guide#config
|
|
8
8
|
*/
|
|
9
|
-
export type {
|
|
10
|
-
export {
|
|
9
|
+
export type { HarnessName, HarnessPaths } from "@skaile/workspaces/core";
|
|
10
|
+
export { HARNESS_DEFAULTS, HARNESS_TARGETS, resolveHarnessPaths, SUPPORTED_HARNESSES, } from "@skaile/workspaces/core";
|
|
11
11
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../runner/src/config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EACL,eAAe,EACf,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../runner/src/config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,yBAAyB,CAAC"}
|