@skaile/workspaces 1.16.0 → 2.1.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 +309 -0
- package/dist/{asset-feeds-WIBEP37F.js → asset-feeds-FBGBQEYD.js} +25 -24
- package/dist/asset-feeds-FBGBQEYD.js.map +1 -0
- package/dist/asset-manager/catalog-deployer.js +13 -1
- package/dist/asset-manager/index.js +10 -9
- package/dist/asset-manager/installer.js +7 -6
- package/dist/asset-manager/src/catalog-deployer.d.ts +70 -5
- package/dist/asset-manager/src/catalog-deployer.d.ts.map +1 -1
- package/dist/asset-manager/src/index.d.ts +41 -17
- package/dist/asset-manager/src/index.d.ts.map +1 -1
- package/dist/asset-manager/src/mcp-config.d.ts +58 -0
- package/dist/asset-manager/src/mcp-config.d.ts.map +1 -0
- package/dist/bridge/drivers/claude-sdk.js +108 -56
- package/dist/bridge/drivers/claude-sdk.js.map +1 -1
- package/dist/bridge/drivers/codex.js +3 -2
- package/dist/bridge/drivers/codex.js.map +1 -1
- package/dist/bridge/drivers/continue.js +4 -3
- package/dist/bridge/drivers/continue.js.map +1 -1
- package/dist/bridge/drivers/echo.js +3 -2
- package/dist/bridge/drivers/echo.js.map +1 -1
- package/dist/bridge/drivers/gemini.js +5 -4
- package/dist/bridge/drivers/goose.js +4 -3
- package/dist/bridge/drivers/goose.js.map +1 -1
- package/dist/bridge/drivers/omp.js +3 -2
- package/dist/bridge/drivers/omp.js.map +1 -1
- package/dist/bridge/drivers/opencode.js +4 -3
- package/dist/bridge/drivers/opencode.js.map +1 -1
- package/dist/bridge/drivers/qwen.js +5 -4
- package/dist/bridge/drivers/qwen.js.map +1 -1
- package/dist/bridge/index.js +4 -3
- package/dist/bridge/src/drivers/claude-sdk.d.ts.map +1 -1
- package/dist/bridge/src/drivers/scrub-transcript.d.ts +21 -1
- package/dist/bridge/src/drivers/scrub-transcript.d.ts.map +1 -1
- package/dist/{chunk-MO43URUI.js → chunk-2BSXXTUP.js} +7 -7
- package/dist/{chunk-MO43URUI.js.map → chunk-2BSXXTUP.js.map} +1 -1
- package/dist/{chunk-FIUGSIKC.js → chunk-43TAGQ3Z.js} +19 -11
- package/dist/chunk-43TAGQ3Z.js.map +1 -0
- package/dist/{chunk-7J7LQP6T.js → chunk-5BGEYZ7I.js} +31 -19
- package/dist/chunk-5BGEYZ7I.js.map +1 -0
- package/dist/chunk-7GOCNYUV.js +300 -0
- package/dist/chunk-7GOCNYUV.js.map +1 -0
- package/dist/{chunk-KY5NY7LB.js → chunk-BCTU4TN7.js} +11 -11
- package/dist/chunk-BCTU4TN7.js.map +1 -0
- package/dist/chunk-BEAIJRVF.js +159 -0
- package/dist/chunk-BEAIJRVF.js.map +1 -0
- package/dist/{chunk-2TSSCHCQ.js → chunk-BHLNQ4L5.js} +5 -5
- package/dist/{chunk-2TSSCHCQ.js.map → chunk-BHLNQ4L5.js.map} +1 -1
- package/dist/chunk-BK3WL3QK.js +10 -0
- package/dist/chunk-BK3WL3QK.js.map +1 -0
- package/dist/{chunk-TFIFNDT2.js → chunk-BTR3ZJ7S.js} +4 -4
- package/dist/{chunk-TFIFNDT2.js.map → chunk-BTR3ZJ7S.js.map} +1 -1
- package/dist/{chunk-BI2NKPA4.js → chunk-CA5CWLGN.js} +3 -2
- package/dist/chunk-CA5CWLGN.js.map +1 -0
- package/dist/{chunk-STQOPWPS.js → chunk-CTWE7I7Z.js} +4 -4
- package/dist/{chunk-STQOPWPS.js.map → chunk-CTWE7I7Z.js.map} +1 -1
- package/dist/{chunk-GXC3TYMQ.js → chunk-CZZRDYT4.js} +70 -32
- package/dist/chunk-CZZRDYT4.js.map +1 -0
- package/dist/chunk-DYMWJAL4.js +552 -0
- package/dist/chunk-DYMWJAL4.js.map +1 -0
- package/dist/{chunk-ACXLKNIM.js → chunk-E7HKNQTH.js} +10 -4
- package/dist/chunk-E7HKNQTH.js.map +1 -0
- package/dist/{chunk-2BQBWWFX.js → chunk-GUKMNUQK.js} +6 -6
- package/dist/chunk-GUKMNUQK.js.map +1 -0
- package/dist/{chunk-6POODADP.js → chunk-HOL5KD7U.js} +453 -250
- package/dist/chunk-HOL5KD7U.js.map +1 -0
- package/dist/{chunk-C4KVFALU.js → chunk-L26NGI43.js} +3 -3
- package/dist/{chunk-C4KVFALU.js.map → chunk-L26NGI43.js.map} +1 -1
- package/dist/{chunk-MZV6WCF3.js → chunk-MAN7AGQJ.js} +3 -3
- package/dist/{chunk-MZV6WCF3.js.map → chunk-MAN7AGQJ.js.map} +1 -1
- package/dist/{chunk-YULV7UTU.js → chunk-MLYV6WEM.js} +10 -10
- package/dist/{chunk-YULV7UTU.js.map → chunk-MLYV6WEM.js.map} +1 -1
- package/dist/{chunk-O5VCUU6D.js → chunk-N6TYW6EB.js} +4 -4
- package/dist/{chunk-O5VCUU6D.js.map → chunk-N6TYW6EB.js.map} +1 -1
- package/dist/{chunk-EPWY2ABE.js → chunk-PSVF3LDU.js} +5 -5
- package/dist/{chunk-EPWY2ABE.js.map → chunk-PSVF3LDU.js.map} +1 -1
- package/dist/{chunk-M5GJT3D7.js → chunk-PYYL5XMA.js} +3 -3
- package/dist/{chunk-M5GJT3D7.js.map → chunk-PYYL5XMA.js.map} +1 -1
- package/dist/{chunk-BG4XVMG2.js → chunk-RBOPTTTK.js} +286 -151
- package/dist/chunk-RBOPTTTK.js.map +1 -0
- package/dist/{chunk-2IJFUAZB.js → chunk-RK3HU3H3.js} +123 -18
- package/dist/chunk-RK3HU3H3.js.map +1 -0
- package/dist/{chunk-5NZ56R63.js → chunk-RTLQAZAE.js} +18 -6
- package/dist/chunk-RTLQAZAE.js.map +1 -0
- package/dist/{chunk-MNKUZUN2.js → chunk-SGLGA2AZ.js} +3 -3
- package/dist/{chunk-MNKUZUN2.js.map → chunk-SGLGA2AZ.js.map} +1 -1
- package/dist/{chunk-JB35MVBN.js → chunk-U5POE4BA.js} +4 -298
- package/dist/chunk-U5POE4BA.js.map +1 -0
- package/dist/{chunk-A22KZ7GZ.js → chunk-VPXBAEWE.js} +274 -40
- package/dist/chunk-VPXBAEWE.js.map +1 -0
- package/dist/{chunk-ACWCVB5Q.js → chunk-WVPL4OGD.js} +3 -3
- package/dist/{chunk-ACWCVB5Q.js.map → chunk-WVPL4OGD.js.map} +1 -1
- package/dist/{chunk-MB6563TL.js → chunk-XQVP6XWR.js} +3 -3
- package/dist/{chunk-MB6563TL.js.map → chunk-XQVP6XWR.js.map} +1 -1
- package/dist/{chunk-344DEXZS.js → chunk-XSIXGVH6.js} +4 -4
- package/dist/{chunk-344DEXZS.js.map → chunk-XSIXGVH6.js.map} +1 -1
- package/dist/{chunk-BYS6JDZB.js → chunk-Y6VSFX2A.js} +3 -3
- package/dist/{chunk-BYS6JDZB.js.map → chunk-Y6VSFX2A.js.map} +1 -1
- package/dist/{chunk-ISA7R7PK.js → chunk-YODP3STD.js} +90 -40
- package/dist/chunk-YODP3STD.js.map +1 -0
- package/dist/{chunk-WSTY3AWY.js → chunk-ZWFLEMI4.js} +4 -4
- package/dist/{chunk-WSTY3AWY.js.map → chunk-ZWFLEMI4.js.map} +1 -1
- package/dist/cli/index.js +347 -127
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/src/asset-feeds.d.ts +2 -2
- package/dist/cli/src/asset-feeds.d.ts.map +1 -1
- package/dist/cli/src/commands/catalog.d.ts +51 -2
- package/dist/cli/src/commands/catalog.d.ts.map +1 -1
- package/dist/cli/src/commands/connector.d.ts +1 -1
- package/dist/cli/src/commands/connector.d.ts.map +1 -1
- package/dist/cli/src/commands/logs.d.ts.map +1 -1
- package/dist/cli/src/commands/manage.d.ts +30 -3
- package/dist/cli/src/commands/manage.d.ts.map +1 -1
- package/dist/cli/src/commands/project.d.ts +5 -2
- package/dist/cli/src/commands/project.d.ts.map +1 -1
- package/dist/connectors/config.js +7 -6
- package/dist/connectors/index.js +8 -7
- package/dist/connectors/src/connector-manager.d.ts.map +1 -1
- package/dist/connectors/src/watcher.d.ts.map +1 -1
- package/dist/connectors/src/worktree.d.ts +20 -2
- package/dist/connectors/src/worktree.d.ts.map +1 -1
- package/dist/core/index.js +6 -5
- package/dist/core/logging.js +2 -1
- package/dist/core/manifest.js +2 -1
- package/dist/core/runtime-assets.js +4 -3
- package/dist/core/src/fs-deadline.d.ts +84 -0
- package/dist/core/src/fs-deadline.d.ts.map +1 -0
- package/dist/core/src/index.d.ts +4 -3
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/core/src/manifest.d.ts +142 -18
- package/dist/core/src/manifest.d.ts.map +1 -1
- package/dist/core/src/repo-manager.d.ts +2 -2
- package/dist/core/src/repo-manager.d.ts.map +1 -1
- package/dist/core/src/runtime-assets.d.ts.map +1 -1
- package/dist/core/src/subprocess.d.ts +33 -1
- package/dist/core/src/subprocess.d.ts.map +1 -1
- package/dist/core/src/walker.d.ts +1 -1
- package/dist/core/src/walker.d.ts.map +1 -1
- package/dist/core/src/workspace-config.d.ts +19 -2
- package/dist/core/src/workspace-config.d.ts.map +1 -1
- package/dist/core/workspace-config.js +3 -2
- package/dist/deploy/index.js +12 -7
- package/dist/deploy/index.js.map +1 -1
- package/dist/deploy/src/targets/container-runtime.d.ts.map +1 -1
- package/dist/discovery/index.js +3 -2
- package/dist/{ensure-sources-RSTZONIE.js → ensure-sources-AVCVX7CV.js} +13 -12
- package/dist/ensure-sources-AVCVX7CV.js.map +1 -0
- package/dist/factory-assets/connectors/box.js +8 -7
- package/dist/factory-assets/connectors/deploy/CONNECTOR.md +19 -0
- package/dist/factory-assets/connectors/deploy/adapter.d.ts.map +1 -1
- package/dist/factory-assets/connectors/deploy.js +8 -7
- package/dist/factory-assets/connectors/devserver/adapter.d.ts.map +1 -1
- package/dist/factory-assets/connectors/devserver.js +8 -7
- package/dist/factory-assets/connectors/flow/adapter.js +8 -7
- package/dist/factory-assets/connectors/flow/engine.js +6 -5
- package/dist/factory-assets/connectors/flow/run-flow.js +10 -9
- package/dist/factory-assets/connectors/flow.js +8 -7
- package/dist/factory-assets/connectors/git/driver.d.ts +12 -1
- package/dist/factory-assets/connectors/git/driver.d.ts.map +1 -1
- package/dist/factory-assets/connectors/git.js +8 -7
- package/dist/factory-assets/connectors/gmail.js +8 -7
- package/dist/factory-assets/connectors/googledrive.js +8 -7
- package/dist/factory-assets/connectors/local/driver.d.ts +25 -1
- package/dist/factory-assets/connectors/local/driver.d.ts.map +1 -1
- package/dist/factory-assets/connectors/local.js +8 -7
- package/dist/factory-assets/connectors/mattermost.js +8 -7
- package/dist/factory-assets/connectors/memory.js +8 -7
- package/dist/factory-assets/connectors/minio.js +8 -7
- package/dist/factory-assets/connectors/postgres.js +8 -7
- package/dist/factory-assets/connectors/s3/driver.d.ts +15 -0
- package/dist/factory-assets/connectors/s3/driver.d.ts.map +1 -1
- package/dist/factory-assets/connectors/s3.js +8 -7
- package/dist/factory-assets/connectors/sharepoint.js +8 -7
- package/dist/factory-assets/connectors/sqlite/adapter.d.ts +8 -1
- package/dist/factory-assets/connectors/sqlite/adapter.d.ts.map +1 -1
- package/dist/factory-assets/connectors/sqlite.js +8 -7
- package/dist/factory-assets/connectors/static-server/adapter.d.ts.map +1 -1
- package/dist/factory-assets/connectors/static-server.js +8 -7
- package/dist/factory-assets/connectors/tunnel.js +8 -7
- package/dist/factory-assets/connectors/webdav.js +8 -7
- package/dist/factory-assets/connectors/xstate/adapter.d.ts +6 -0
- package/dist/factory-assets/connectors/xstate/adapter.d.ts.map +1 -1
- package/dist/factory-assets/connectors/xstate-store.js +8 -7
- package/dist/factory-assets/connectors/xstate.js +8 -7
- package/dist/flows-CXVFGR27.js +20 -0
- package/dist/{flows-FHWBCLXF.js.map → flows-CXVFGR27.js.map} +1 -1
- package/dist/{helpers-GUUWPPAX.js → helpers-M5SXB4LL.js} +13 -12
- package/dist/{helpers-GUUWPPAX.js.map → helpers-M5SXB4LL.js.map} +1 -1
- package/dist/library/index.js +8 -7
- package/dist/library/install.js +6 -5
- package/dist/{library-publish-UKKSJP7V.js → library-publish-HVIIQMI6.js} +16 -15
- package/dist/library-publish-HVIIQMI6.js.map +1 -0
- package/dist/{open-library-VALRYGFV.js → open-library-EJQISBWV.js} +14 -13
- package/dist/{open-library-VALRYGFV.js.map → open-library-EJQISBWV.js.map} +1 -1
- package/dist/{paths-5QJJBAND.js → paths-2HMHL25W.js} +11 -10
- package/dist/{paths-5QJJBAND.js.map → paths-2HMHL25W.js.map} +1 -1
- package/dist/plugin-registry/src/deploy-helpers.d.ts +1 -1
- package/dist/{plugin-store-ZBJZ7F6D.js → plugin-store-TLBQ5XRS.js} +8 -7
- package/dist/plugin-store-TLBQ5XRS.js.map +1 -0
- package/dist/{project-IRUJLIVX.js → project-M2COJFPZ.js} +14 -13
- package/dist/{project-IRUJLIVX.js.map → project-M2COJFPZ.js.map} +1 -1
- package/dist/resolver/index.js +13 -1
- package/dist/resolver/src/types.d.ts +7 -0
- package/dist/resolver/src/types.d.ts.map +1 -1
- package/dist/resolver/src/validator.d.ts +8 -1
- package/dist/resolver/src/validator.d.ts.map +1 -1
- package/dist/runner/index.js +13 -12
- package/dist/runner/src/external-mcp.d.ts +1 -1
- package/dist/runner/src/external-mcp.d.ts.map +1 -1
- package/dist/runner/src/mcp-prompt.d.ts +7 -3
- package/dist/runner/src/mcp-prompt.d.ts.map +1 -1
- package/dist/runner/src/mcp-runtime-handlers.d.ts +12 -0
- package/dist/runner/src/mcp-runtime-handlers.d.ts.map +1 -1
- package/dist/runner/src/mixin-resolver.d.ts.map +1 -1
- package/dist/runner/src/recipe-resolver.d.ts +20 -6
- package/dist/runner/src/recipe-resolver.d.ts.map +1 -1
- package/dist/runner/src/resource-handler.d.ts +43 -0
- package/dist/runner/src/resource-handler.d.ts.map +1 -1
- package/dist/runner/src/resources.d.ts +12 -5
- package/dist/runner/src/resources.d.ts.map +1 -1
- package/dist/runner/src/serve.d.ts +31 -5
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/runner/src/session-builder.d.ts +9 -0
- package/dist/runner/src/session-builder.d.ts.map +1 -1
- package/dist/runner/src/session-capability-wiring.d.ts +5 -0
- package/dist/runner/src/session-capability-wiring.d.ts.map +1 -1
- package/dist/runner/src/workspace-migration.d.ts +37 -3
- package/dist/runner/src/workspace-migration.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +10 -9
- package/dist/sdk/bridge.js +4 -3
- package/dist/sdk/core.js +6 -5
- package/dist/sdk/flow.js +6 -5
- package/dist/sdk/index.js +13 -12
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/resolver.js +13 -1
- package/dist/sdk/runner.js +13 -12
- package/dist/sdk/session.js +1 -1
- package/dist/sdk/store.js +1 -1
- package/dist/session/index.js +1 -1
- package/dist/session/src/dispatcher.d.ts.map +1 -1
- package/dist/{setup-WJPNUE32.js → setup-GWXEG3G2.js} +10 -9
- package/dist/setup-GWXEG3G2.js.map +1 -0
- package/dist/skills-YTMGG23D.js +20 -0
- package/dist/{skills-BMI6H7HI.js.map → skills-YTMGG23D.js.map} +1 -1
- package/dist/{source-5KDURFBS.js → source-WMXH2OBW.js} +15 -14
- package/dist/{source-5KDURFBS.js.map → source-WMXH2OBW.js.map} +1 -1
- package/dist/{source-manifest-publish-DPQI44D3.js → source-manifest-publish-MTHUGBAY.js} +17 -16
- package/dist/source-manifest-publish-MTHUGBAY.js.map +1 -0
- package/dist/store/index.js +1 -1
- package/dist/store/src/store.d.ts +9 -0
- package/dist/store/src/store.d.ts.map +1 -1
- package/dist/tui/index.js +13 -12
- package/dist/tui/index.js.map +1 -1
- package/dist/validator-RN64BKFW.js +5 -0
- package/dist/{validator-VF5M764T.js.map → validator-RN64BKFW.js.map} +1 -1
- package/dist/workspace-plugin/adapters/mcp.js +18 -5
- package/dist/workspace-plugin/adapters/mcp.js.map +1 -1
- package/dist/workspace-plugin/adapters/omp.js +10 -10
- package/dist/workspace-plugin/index.js +3 -2
- package/dist/workspace-plugin/src/tools/validator.d.ts.map +1 -1
- package/dist/workspace-plugin/src/utils/ai-assets.d.ts +11 -6
- package/dist/workspace-plugin/src/utils/ai-assets.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/asset-feeds-WIBEP37F.js.map +0 -1
- package/dist/chunk-2BQBWWFX.js.map +0 -1
- package/dist/chunk-2IJFUAZB.js.map +0 -1
- package/dist/chunk-5NZ56R63.js.map +0 -1
- package/dist/chunk-6POODADP.js.map +0 -1
- package/dist/chunk-7J7LQP6T.js.map +0 -1
- package/dist/chunk-A22KZ7GZ.js.map +0 -1
- package/dist/chunk-ACXLKNIM.js.map +0 -1
- package/dist/chunk-BG4XVMG2.js.map +0 -1
- package/dist/chunk-BI2NKPA4.js.map +0 -1
- package/dist/chunk-BQCGFPHW.js +0 -345
- package/dist/chunk-BQCGFPHW.js.map +0 -1
- package/dist/chunk-FIUGSIKC.js.map +0 -1
- package/dist/chunk-GXC3TYMQ.js.map +0 -1
- package/dist/chunk-ISA7R7PK.js.map +0 -1
- package/dist/chunk-JB35MVBN.js.map +0 -1
- package/dist/chunk-KY5NY7LB.js.map +0 -1
- package/dist/chunk-LV2HPH3C.js +0 -73
- package/dist/chunk-LV2HPH3C.js.map +0 -1
- package/dist/chunk-XCBG2KDC.js +0 -23
- package/dist/chunk-XCBG2KDC.js.map +0 -1
- package/dist/ensure-sources-RSTZONIE.js.map +0 -1
- package/dist/flows-FHWBCLXF.js +0 -7
- package/dist/library-publish-UKKSJP7V.js.map +0 -1
- package/dist/plugin-store-ZBJZ7F6D.js.map +0 -1
- package/dist/setup-WJPNUE32.js.map +0 -1
- package/dist/skills-BMI6H7HI.js +0 -7
- package/dist/source-manifest-publish-DPQI44D3.js.map +0 -1
- package/dist/validator-VF5M764T.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../../../resolver/src/validator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../../../resolver/src/validator.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,oBAAoB,EAGpB,aAAa,EAEb,kBAAkB,EAGlB,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAsBpB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,iBAAiB,EAC/B,UAAU,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,aAAa,EACzB,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAClC,OAAO,CAAC,kBAAkB,CAAC,CA0F7B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,0BAA0B;IACzC,8CAA8C;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,+FAA+F;IAC/F,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;gGACgG;AAChG,UAAU,kBAAkB;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC;CACrC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,6BAA6B,CAC3C,YAAY,EAAE,oBAAoB,EAAE,EACpC,SAAS,EAAE,kBAAkB,EAAE,GAC9B,0BAA0B,EAAE,CA8B9B"}
|
package/dist/runner/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, DEFAULT_FLOW_MUTATE_CONNECTOR_WAIT_MS, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, buildStoreSnapshotReplay, builtinCapabilities, capabilityLogInstance, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createFlowConnectorReadiness, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureGitConfigInclude, executeConnectorMutate, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, hasNonTerminalFlow, hostOpResumeStimulus, installPreInitRingSink, isTerminalFlowStatus, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, pickRepointedManager, planFlowMutate, reconcilePendingDecisions, registerActiveFlow, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveFlowMutateConnectorWaitMs, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, stimulusFromMetas, touchSession, validateInputResponse, writeClaudeCodeCredentialsFile } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, DEFAULT_FLOW_MUTATE_CONNECTOR_WAIT_MS, MOUNT_LIST_MAX_DEPTH, MOUNT_LIST_MAX_ENTRIES, MOUNT_READ_DEADLINE_FACTOR, MOUNT_TREE_OP_DEADLINE_FACTOR, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, buildStoreSnapshotReplay, builtinCapabilities, capabilityLogInstance, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createFlowConnectorReadiness, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureGitConfigInclude, executeConnectorMutate, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, hasNonTerminalFlow, hostOpResumeStimulus, installPreInitRingSink, isTerminalFlowStatus, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, pickRepointedManager, planFlowMutate, reconcilePendingDecisions, registerActiveFlow, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveFlowMutateConnectorWaitMs, resolveMixin, runAgentChat, saveSession, setCurrentSession, setUpFlowConnector, startAgentServer, stimulusFromMetas, touchSession, validateInputResponse, writeClaudeCodeCredentialsFile } from '../chunk-RBOPTTTK.js';
|
|
2
|
+
import '../chunk-L26NGI43.js';
|
|
3
3
|
import '../chunk-X5YPJV4N.js';
|
|
4
4
|
export { assembleSystemPrompt, buildCapabilitiesPromptSection, buildLinkedPeersPromptSection } from '../chunk-W3UDISS2.js';
|
|
5
5
|
import '../chunk-O7SG5PC2.js';
|
|
@@ -7,31 +7,32 @@ import '../chunk-7QBNJTTQ.js';
|
|
|
7
7
|
import '../chunk-WQ7DE5UC.js';
|
|
8
8
|
import '../chunk-GTS2FODO.js';
|
|
9
9
|
import '../chunk-32NA4TVC.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-PYYL5XMA.js';
|
|
11
11
|
import '../chunk-ISQWMBKD.js';
|
|
12
12
|
import '../chunk-RRVQAE5D.js';
|
|
13
13
|
import '../chunk-BMQKMOQY.js';
|
|
14
14
|
import '../chunk-GAH4YRCI.js';
|
|
15
|
-
import '../chunk-
|
|
16
|
-
import '../chunk-
|
|
17
|
-
import '../chunk-
|
|
18
|
-
import '../chunk-
|
|
15
|
+
import '../chunk-WVPL4OGD.js';
|
|
16
|
+
import '../chunk-BEAIJRVF.js';
|
|
17
|
+
import '../chunk-HOL5KD7U.js';
|
|
18
|
+
import '../chunk-BHLNQ4L5.js';
|
|
19
19
|
import '../chunk-6E6PKKAD.js';
|
|
20
20
|
import '../chunk-HPGV54O4.js';
|
|
21
21
|
import '../chunk-Y662DNQQ.js';
|
|
22
22
|
import '../chunk-IFGTRL2I.js';
|
|
23
23
|
import '../chunk-RDE43ORT.js';
|
|
24
|
-
export { globalSettingsPath, loadSettings, mapLegacyFields, projectSettingsPath, resolveSettings, saveSettings } from '../chunk-
|
|
24
|
+
export { globalSettingsPath, loadSettings, mapLegacyFields, projectSettingsPath, resolveSettings, saveSettings } from '../chunk-RTLQAZAE.js';
|
|
25
25
|
export { DRIVER_DEFAULTS, resolveDriverPaths } from '../chunk-K5GBV4SA.js';
|
|
26
26
|
import '../chunk-ZAP2BDHG.js';
|
|
27
|
-
import '../chunk-
|
|
28
|
-
import '../chunk-
|
|
27
|
+
import '../chunk-5BGEYZ7I.js';
|
|
28
|
+
import '../chunk-YODP3STD.js';
|
|
29
29
|
import '../chunk-P4VHQA4N.js';
|
|
30
|
-
import '../chunk-
|
|
30
|
+
import '../chunk-DYMWJAL4.js';
|
|
31
31
|
import '../chunk-GEEW6SY2.js';
|
|
32
32
|
import '../chunk-F3HNW354.js';
|
|
33
33
|
export { DRIVER_TARGETS, SUPPORTED_DRIVER_TARGETS } from '../chunk-MENCWIHW.js';
|
|
34
|
-
import '../chunk-
|
|
34
|
+
import '../chunk-U5POE4BA.js';
|
|
35
|
+
import '../chunk-7GOCNYUV.js';
|
|
35
36
|
import '../chunk-NSBPE2FW.js';
|
|
36
37
|
//# sourceMappingURL=index.js.map
|
|
37
38
|
//# sourceMappingURL=index.js.map
|
|
@@ -45,7 +45,7 @@ export declare function resolveRecordSecretsStrict(record: Record<string, string
|
|
|
45
45
|
* @returns The recipe-substituted declarations ready for spawn (or SDK
|
|
46
46
|
* delegation in the legacy fallback path).
|
|
47
47
|
*/
|
|
48
|
-
export declare function resolveExternalMcpDeclarations(projectDir: string, sessionId?: string): McpServerDeclaration[]
|
|
48
|
+
export declare function resolveExternalMcpDeclarations(projectDir: string, sessionId?: string): Promise<McpServerDeclaration[]>;
|
|
49
49
|
/** A single tool advertised by an MCP server's `tools/list`. */
|
|
50
50
|
export interface McpToolDescriptor {
|
|
51
51
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-mcp.d.ts","sourceRoot":"","sources":["../../../runner/src/external-mcp.ts"],"names":[],"mappings":"AAoCA,OAAO,EAA6B,KAAK,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAenE,wFAAwF;AACxF,qBAAa,+BAAgC,SAAQ,KAAK;aAC5B,EAAE,EAAE,MAAM;gBAAV,EAAE,EAAE,MAAM;CAIvC;AAMD;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CAC1C;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,OAAO,EAAE,kBAAkB,GAAG,SAAS,GACtC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAOxB;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,OAAO,EAAE,kBAAkB,GAAG,SAAS,EACvC,GAAG,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,QAAQ,GAAG,KAAK,CAAA;CAAE,GAChD,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAYxB;AAaD;;;;;;;;;;;;;;GAcG;AACH,
|
|
1
|
+
{"version":3,"file":"external-mcp.d.ts","sourceRoot":"","sources":["../../../runner/src/external-mcp.ts"],"names":[],"mappings":"AAoCA,OAAO,EAA6B,KAAK,oBAAoB,EAAE,MAAM,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E;;;;OAIG;IACG,SAAS,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IA2CzF;;;;;;;OAOG;IACG,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAkB7C,uDAAuD;IACvD,WAAW,IAAI,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAQ5F;;;;OAIG;YACW,iBAAiB;IAc/B;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;YAOZ,oBAAoB;IAgClC;;;;;;;OAOG;IACH,OAAO,CAAC,mBAAmB;IAwD3B;;;;;;;;OAQG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAiB/B"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
/** Build
|
|
2
|
-
*
|
|
3
|
-
*
|
|
1
|
+
/** Build the `## MCP servers` system-prompt section: an inventory of the
|
|
2
|
+
* currently connected servers, plus a guidance block per declaration that
|
|
3
|
+
* carries preset custom instructions (the materialized MCP.md body). Returns
|
|
4
|
+
* "" when there is neither an inventory nor any guidance. */
|
|
4
5
|
export declare function buildMcpPromptSection(declarations: {
|
|
5
6
|
id: string;
|
|
6
7
|
instructions?: string;
|
|
8
|
+
}[], connected?: {
|
|
9
|
+
id: string;
|
|
10
|
+
toolCount: number;
|
|
7
11
|
}[]): string;
|
|
8
12
|
//# sourceMappingURL=mcp-prompt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-prompt.d.ts","sourceRoot":"","sources":["../../../runner/src/mcp-prompt.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"mcp-prompt.d.ts","sourceRoot":"","sources":["../../../runner/src/mcp-prompt.ts"],"names":[],"mappings":"AAAA;;;8DAG8D;AAC9D,wBAAgB,qBAAqB,CACnC,YAAY,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,EACrD,SAAS,CAAC,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,EAAE,GAC9C,MAAM,CAqBR"}
|
|
@@ -8,6 +8,18 @@ export interface McpRuntimeHandlerDeps {
|
|
|
8
8
|
getPreMintedSecrets: () => PreMintedSecretProvider | null;
|
|
9
9
|
/** True when the active driver picks up newly-registered capabilities without a session restart. */
|
|
10
10
|
driverPicksUpToolsLive: () => boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Record a live-attached server in serve's registry so every later session
|
|
13
|
+
* rebuild respawns it. Without it the rebuild reads `skaile.yaml` only, which
|
|
14
|
+
* a live attach never updates, and the server is dropped for good.
|
|
15
|
+
*/
|
|
16
|
+
registerLiveAttachedMcp: (declaration: McpServerDeclaration) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Queue a driver restart so a non-live driver re-bakes its tool set (owned by
|
|
19
|
+
* `serve.ts`). Fire-and-forget by contract: the platform caps this capability
|
|
20
|
+
* call at 30s and a rebuild routinely exceeds that.
|
|
21
|
+
*/
|
|
22
|
+
scheduleDriverRestartForToolChanges: (reason: string) => void;
|
|
11
23
|
emitResourcesAvailable: () => void;
|
|
12
24
|
log: (msg: string) => void;
|
|
13
25
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-runtime-handlers.d.ts","sourceRoot":"","sources":["../../../runner/src/mcp-runtime-handlers.ts"],"names":[],"mappings":"AAWA,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAE7E,OAAO,KAAK,EAAE,kBAAk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AAG,IAAI,CAAA;SAAE,CAAC;KAC/D,KAAK,OAAO,CACT;QAAE,EAAE,EAAE,IAAI,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,OAAO,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,GAC1D;QAAE,EAAE,EAAE,KAAK,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAC/C,CAAC;IAEF;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,cAAc,CAAC,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;SAAE,CAAC;KAC/D,KAAK,OAAO,CACT;QAAE,EAAE,EAAE,IAAI,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,OAAO,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,GAC1D;QAAE,EAAE,EAAE,KAAK,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAC/C,CAAC;CACH;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,qBAAqB,GAAG,kBAAkB,CAuIvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mixin-resolver.d.ts","sourceRoot":"","sources":["../../../runner/src/mixin-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;
|
|
1
|
+
{"version":3,"file":"mixin-resolver.d.ts","sourceRoot":"","sources":["../../../runner/src/mixin-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAI3E;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,sDAAsD;IACtD,OAAO,EAAE,MAAM,CAAC;IAChB,uDAAuD;IACvD,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;AAErD;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,SAAS,EAAE,aAAa,EAAE,CAAC;CAC5B;AAID;;;;;GAKG;AACH,wBAAsB,YAAY,CAChC,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CA0B/B;AAED;;;;GAIG;AACH,wBAAsB,kBAAkB,CACtC,QAAQ,EAAE,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,OAAO,GAAG,WAAW,CAAC,EAChE,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,iBAAiB,CAAC,CAkB5B"}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wall-clock ceiling for one `nix path-info` invocation.
|
|
3
|
+
*
|
|
4
|
+
* `--offline` means the only unbounded wait is the store's SQLite lock held by a
|
|
5
|
+
* concurrent nix operation. A recipe that has not resolved within this is not
|
|
6
|
+
* going to; failing here surfaces `RecipeUnavailableError` to the requester
|
|
7
|
+
* instead of stalling session build indefinitely.
|
|
8
|
+
*/
|
|
9
|
+
export declare const DEFAULT_NIX_TIMEOUT_MS = 30000;
|
|
10
|
+
/** Env override for {@link DEFAULT_NIX_TIMEOUT_MS}, in milliseconds. */
|
|
11
|
+
export declare const NIX_TIMEOUT_ENV_VAR = "SKAILE_NIX_TIMEOUT_MS";
|
|
1
12
|
export declare class RecipeUnavailableError extends Error {
|
|
2
13
|
readonly flakeRef: string;
|
|
3
14
|
readonly attr: string;
|
|
@@ -21,8 +32,11 @@ export interface RecipeProducer {
|
|
|
21
32
|
* does not catch mid-chain, so a throw skips any producers registered after it.
|
|
22
33
|
* Put deferring producers (those that return `null` on a miss) BEFORE any
|
|
23
34
|
* throwing producer in the chain.
|
|
35
|
+
*
|
|
36
|
+
* Async since #454 — every producer does I/O (a file read, a subprocess) that
|
|
37
|
+
* must not block the event loop.
|
|
24
38
|
*/
|
|
25
|
-
resolve(ref: string, attr: string): string | null
|
|
39
|
+
resolve(ref: string, attr: string): Promise<string | null>;
|
|
26
40
|
readonly kind: string;
|
|
27
41
|
}
|
|
28
42
|
/** Content-addressed store-path map producer. Nix is one PRODUCER of this map,
|
|
@@ -30,23 +44,23 @@ export interface RecipeProducer {
|
|
|
30
44
|
export declare class MapRecipeProducer implements RecipeProducer {
|
|
31
45
|
private readonly load;
|
|
32
46
|
readonly kind = "map";
|
|
33
|
-
constructor(load?: () => Record<string, unknown> | null);
|
|
34
|
-
resolve(_ref: string, attr: string): string | null
|
|
47
|
+
constructor(load?: () => Promise<Record<string, unknown> | null>);
|
|
48
|
+
resolve(_ref: string, attr: string): Promise<string | null>;
|
|
35
49
|
}
|
|
36
50
|
/** Nix flake producer — locates/builds the closure via `nix path-info --offline`. */
|
|
37
51
|
export declare class NixRecipeProducer implements RecipeProducer {
|
|
38
52
|
readonly kind = "nix";
|
|
39
|
-
resolve(ref: string, attr: string): string | null
|
|
53
|
+
resolve(ref: string, attr: string): Promise<string | null>;
|
|
40
54
|
}
|
|
41
55
|
/** Default chain: content-addressed map first, then nix build. */
|
|
42
56
|
export declare function defaultRecipeProducers(): RecipeProducer[];
|
|
43
57
|
/** Try each producer in order; cache the first non-null by `ref#attr`. */
|
|
44
|
-
export declare function resolveViaProducers(ref: string, attr: string, cache: RecipeResolutionCache, producers?: RecipeProducer[]): string
|
|
58
|
+
export declare function resolveViaProducers(ref: string, attr: string, cache: RecipeResolutionCache, producers?: RecipeProducer[]): Promise<string>;
|
|
45
59
|
/**
|
|
46
60
|
* Resolves a flake attribute to its /nix/store out-path.
|
|
47
61
|
* Throws RecipeUnavailableError on missing closure / nix failure.
|
|
48
62
|
*
|
|
49
63
|
* Thin back-compat wrapper over the default producer chain (map → nix).
|
|
50
64
|
*/
|
|
51
|
-
export declare function resolveRecipePath(flakeRef: string, attr: string, cache: RecipeResolutionCache): string
|
|
65
|
+
export declare function resolveRecipePath(flakeRef: string, attr: string, cache: RecipeResolutionCache): Promise<string>;
|
|
52
66
|
//# sourceMappingURL=recipe-resolver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe-resolver.d.ts","sourceRoot":"","sources":["../../../runner/src/recipe-resolver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"recipe-resolver.d.ts","sourceRoot":"","sources":["../../../runner/src/recipe-resolver.ts"],"names":[],"mappings":"AA6BA;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,QAAS,CAAC;AAE7C,wEAAwE;AACxE,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAU3D,qBAAa,sBAAuB,SAAQ,KAAK;aAE7B,QAAQ,EAAE,MAAM;aAChB,IAAI,EAAE,MAAM;gBADZ,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EAC5B,KAAK,CAAC,EAAE,OAAO;CAOlB;AAED;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAExD,wBAAgB,iBAAiB,IAAI,qBAAqB,CAEzD;AA4BD,6GAA6G;AAC7G,wBAAgB,2BAA2B,IAAI,IAAI,CAGlD;AA6ED,uFAAuF;AACvF,MAAM,WAAW,cAAc;IAC7B;;;;;;;;;;OAUG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC3D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;mDACmD;AACnD,qBAAa,iBAAkB,YAAW,cAAc;IAGpD,OAAO,CAAC,QAAQ,CAAC,IAAI;IAFvB,QAAQ,CAAC,IAAI,SAAS;gBAEH,IAAI,GAAE,MAAM,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAiB;IAEhF,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CAWlE;AAED,qFAAqF;AACrF,qBAAa,iBAAkB,YAAW,cAAc;IACtD,QAAQ,CAAC,IAAI,SAAS;IAChB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CA2BjE;AAED,kEAAkE;AAClE,wBAAgB,sBAAsB,IAAI,cAAc,EAAE,CAEzD;AAED,0EAA0E;AAC1E,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,qBAAqB,EAC5B,SAAS,GAAE,cAAc,EAA6B,GACrD,OAAO,CAAC,MAAM,CAAC,CA6BjB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,qBAAqB,GAC3B,OAAO,CAAC,MAAM,CAAC,CAEjB"}
|
|
@@ -15,9 +15,52 @@ import type { AgentEvent, ConnectorRequestCommand } from "@skaile/workspaces/typ
|
|
|
15
15
|
* @docLink packages/runner/dev-guide#flow-execution-turn-based-model
|
|
16
16
|
*/
|
|
17
17
|
export declare function handleResourceRequest(command: ConnectorRequestCommand, manager: ConnectorManager, emit: (event: AgentEvent) => void): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Maximum directory depth a recursive mount listing descends.
|
|
20
|
+
*
|
|
21
|
+
* Guards against a symlink/junction cycle on a remote mount turning one folder
|
|
22
|
+
* open into an unbounded walk.
|
|
23
|
+
*/
|
|
24
|
+
export declare const MOUNT_LIST_MAX_DEPTH = 32;
|
|
25
|
+
/**
|
|
26
|
+
* Maximum number of entries a single mount listing returns.
|
|
27
|
+
*
|
|
28
|
+
* A recursive walk issues one round-trip per directory and one per file on a
|
|
29
|
+
* cloud mount, so an unbounded listing is an unbounded request.
|
|
30
|
+
*/
|
|
31
|
+
export declare const MOUNT_LIST_MAX_ENTRIES = 10000;
|
|
32
|
+
/**
|
|
33
|
+
* Deadline multiplier for the recursive delete.
|
|
34
|
+
*
|
|
35
|
+
* The single-op deadline exists to catch a *wedged* mount, where nothing
|
|
36
|
+
* returns. A recursive `rm` on a healthy mount is not that: rclone issues one
|
|
37
|
+
* remote DELETE per object with no write-back cache to hide the latency, so a
|
|
38
|
+
* few hundred files legitimately outlast a single `stat`. Charging that the
|
|
39
|
+
* single-op deadline would report "delete failed" while the uncancellable `rm`
|
|
40
|
+
* carries on and the folder does disappear — a wrong error with a real side
|
|
41
|
+
* effect. Matches the tree-op factor used by the catalog deployer and the
|
|
42
|
+
* workspace-config tree copy.
|
|
43
|
+
*/
|
|
44
|
+
export declare const MOUNT_TREE_OP_DEADLINE_FACTOR = 4;
|
|
45
|
+
/**
|
|
46
|
+
* Deadline multiplier for reading one whole file off the mount.
|
|
47
|
+
*
|
|
48
|
+
* A cold rclone VFS serves the first read of a large file straight from the
|
|
49
|
+
* remote, so honest duration scales with file size, not with mount health. The
|
|
50
|
+
* write path stays on the single-op default deliberately: writes land in the
|
|
51
|
+
* VFS write-back cache and return locally, so a slow write really does mean a
|
|
52
|
+
* sick mount.
|
|
53
|
+
*/
|
|
54
|
+
export declare const MOUNT_READ_DEADLINE_FACTOR = 4;
|
|
18
55
|
/**
|
|
19
56
|
* Handle a resource request against a filesystem-face (mountable) connector.
|
|
20
57
|
*
|
|
58
|
+
* All filesystem work is async and deadline-bounded, so a wedged mount fails
|
|
59
|
+
* this one request (`resource_response` with `error`) instead of parking the
|
|
60
|
+
* event loop. Listings are additionally capped by {@link MOUNT_LIST_MAX_DEPTH}
|
|
61
|
+
* and {@link MOUNT_LIST_MAX_ENTRIES}; exceeding either is an error, never a
|
|
62
|
+
* silently truncated result.
|
|
63
|
+
*
|
|
21
64
|
* @docLink packages/runner/dev-guide#flow-execution-turn-based-model
|
|
22
65
|
*/
|
|
23
66
|
export declare function handleMountResourceRequest(command: ConnectorRequestCommand, manager: ConnectorManager, emit: (event: AgentEvent) => void): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-handler.d.ts","sourceRoot":"","sources":["../../../runner/src/resource-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"resource-handler.d.ts","sourceRoot":"","sources":["../../../runner/src/resource-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAA6B,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjG,OAAO,KAAK,EACV,UAAU,EAEV,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAOlC;;;;GAIG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,uBAAuB,EAChC,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAChC,OAAO,CAAC,IAAI,CAAC,CAyCf;AAYD;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,QAAS,CAAC;AAE7C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,6BAA6B,IAAI,CAAC;AAE/C;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAqC5C;;;;;;;;;;GAUG;AACH,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE,uBAAuB,EAChC,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAChC,OAAO,CAAC,IAAI,CAAC,CAsKf"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Extracted from duplicated inline blocks in each of those files.
|
|
9
9
|
*/
|
|
10
10
|
import { type ConnectorChangeEvent, type ConnectorDeclaration, type PreMintedSecretProvider, type SyncStatusPayload, type TokenMediator } from "@skaile/workspaces/connectors";
|
|
11
|
-
import { type RuntimeAssetsResult } from "@skaile/workspaces/core";
|
|
11
|
+
import { type McpServerDeclaration, type RuntimeAssetsResult } from "@skaile/workspaces/core";
|
|
12
12
|
import type { ConnectorStatusEvent } from "@skaile/workspaces/types";
|
|
13
13
|
import type { CapabilityRegistry } from "./capability-registry.js";
|
|
14
14
|
import { ExternalMcpManager } from "./external-mcp.js";
|
|
@@ -52,9 +52,9 @@ export interface AgentResourcesResult {
|
|
|
52
52
|
/** The external MCP manager if constructed (boot or lazy), else null. */
|
|
53
53
|
getExternalMcpManager: () => ExternalMcpManager | null;
|
|
54
54
|
/**
|
|
55
|
-
* Markdown section for the agent system prompt
|
|
56
|
-
*
|
|
57
|
-
*
|
|
55
|
+
* Markdown section for the agent system prompt: an inventory of the
|
|
56
|
+
* connected MCP servers plus per-server guidance built from the materialized
|
|
57
|
+
* MCP.md bodies. Empty string when there is neither.
|
|
58
58
|
*/
|
|
59
59
|
mcpPromptSection: string;
|
|
60
60
|
}
|
|
@@ -127,13 +127,20 @@ export interface ResourceWatchCallbacks {
|
|
|
127
127
|
* `session_init` resolvedConfig here so broker-mode
|
|
128
128
|
* sessions (no yaml on disk) still get their resources.
|
|
129
129
|
* Disk-first: any disk declaration disables the fallback.
|
|
130
|
+
* @param extraMcpDeclarations MCP servers attached at runtime
|
|
131
|
+
* (`runner.attach_instance`) that `skaile.yaml` does not
|
|
132
|
+
* declare. Serve mode replays its live-attach registry
|
|
133
|
+
* here so a session rebuild respawns them instead of
|
|
134
|
+
* dropping them as undeclared "ghosts". Merged into the
|
|
135
|
+
* disk set before spawn; a disk declaration of the same
|
|
136
|
+
* id wins.
|
|
130
137
|
* @docLink packages/runner/dev-guide#flow-execution-turn-based-model
|
|
131
138
|
*/
|
|
132
139
|
export declare function buildAgentResources(projectDir: string, driverType: string, _onLog?: (line: string) => void, watch?: ResourceWatchCallbacks, secretProvider?: unknown, sessionMeta?: {
|
|
133
140
|
provider?: string;
|
|
134
141
|
model?: string;
|
|
135
142
|
sessionId?: string;
|
|
136
|
-
}, tokenMediator?: TokenMediator, preMintedSecrets?: PreMintedSecretProvider, deferFilesystemMounts?: boolean, capabilityRegistry?: CapabilityRegistry, fallbackConnectorDeclarations?: ConnectorDeclaration[]): Promise<AgentResourcesResult>;
|
|
143
|
+
}, tokenMediator?: TokenMediator, preMintedSecrets?: PreMintedSecretProvider, deferFilesystemMounts?: boolean, capabilityRegistry?: CapabilityRegistry, fallbackConnectorDeclarations?: ConnectorDeclaration[], extraMcpDeclarations?: McpServerDeclaration[]): Promise<AgentResourcesResult>;
|
|
137
144
|
/** `MCP__<sanitized id>__AUTH` — cross-repo contract: must mirror the platform's bearer-provisioning key. */
|
|
138
145
|
export declare function mcpAuthSecretKey(id: string): string;
|
|
139
146
|
//# sourceMappingURL=resources.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../runner/src/resources.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAMzB,KAAK,uBAAuB,EAI5B,KAAK,iBAAiB,EACtB,KAAK,aAAa,EACnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../runner/src/resources.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAGL,KAAK,oB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IAC1E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAC3D;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EAC/B,KAAK,CAAC,EAAE,sBAAsB,EAC9B,cAAc,CAAC,EAAE,OAAO,EACxB,WAAW,CAAC,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,EACvE,aAAa,CAAC,EAAE,aAAa,EAC7B,gBAAgB,CAAC,EAAE,uBAAuB,EAC1C,qBAAqB,CAAC,EAAE,OAAO,EAC/B,kBAAkB,CAAC,EAAE,kBAAkB,EACvC,6BAA6B,CAAC,EAAE,oBAAoB,EAAE,EACtD,oBAAoB,CAAC,EAAE,oBAAoB,EAAE,GAC5C,OAAO,CAAC,oBAAoB,CAAC,CA8P/B;AAiMD,6GAA6G;AAC7G,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAEnD"}
|
|
@@ -71,13 +71,13 @@ export declare function pickRepointedManager<T>(next: T | null, current: T | nul
|
|
|
71
71
|
/**
|
|
72
72
|
* Build the `resources_available` wire payload: connector/mount split plus the
|
|
73
73
|
* live MCP server list. Each MCP server is stamped with `live` — whether the
|
|
74
|
-
*
|
|
74
|
+
* agent reaches its tools on the next turn without a session restart.
|
|
75
75
|
*
|
|
76
76
|
* A server is live when `driverLive` (bridge drivers recompose tools per turn)
|
|
77
|
-
* OR it
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
77
|
+
* OR it is in `bakedServerIds` — baked into the current driver at its
|
|
78
|
+
* (re)creation, or stamped by `registerLiveAttachedMcp` for a hot-add whose
|
|
79
|
+
* rebuild is already queued. A server not in the set gets `live: driverLive`;
|
|
80
|
+
* omitting the argument is equivalent to an empty set.
|
|
81
81
|
*
|
|
82
82
|
* Exported for unit testing.
|
|
83
83
|
*/
|
|
@@ -118,6 +118,32 @@ export declare function hasNonTerminalFlow(flows: Iterable<FlowStatusProbe>): bo
|
|
|
118
118
|
* Exported for unit testing.
|
|
119
119
|
*/
|
|
120
120
|
export declare function registerActiveFlow<T extends FlowStatusProbe>(flows: Map<string, T>, runId: string, entry: T): string[];
|
|
121
|
+
/** The order-critical steps of a flow-connector bring-up, in the order they run. */
|
|
122
|
+
export interface FlowConnectorSetupDeps<M> {
|
|
123
|
+
/** Recreate the agent session when the driver has already started. */
|
|
124
|
+
recreateForFlowTools: () => Promise<boolean>;
|
|
125
|
+
/** The ConnectorManager the flow connector belongs on, lazily created if absent. */
|
|
126
|
+
resolveManager: () => M;
|
|
127
|
+
/** Register the flow connector on that manager. */
|
|
128
|
+
connect: (manager: M) => Promise<ConnectorHandle>;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Bring up a flow connector on the manager that SURVIVES a driver recreate.
|
|
132
|
+
*
|
|
133
|
+
* The recreate disposes the session's ConnectorManager (`dispose()` →
|
|
134
|
+
* `disconnectAll()` clears `active`) and repoints the runner at the new
|
|
135
|
+
* session's own. Connecting first left the run registered on a torn-down
|
|
136
|
+
* manager — and `buildSdkFlowTools` closes over it, so its tool handlers were
|
|
137
|
+
* bound to the dead one too, wedging the run at `running` forever
|
|
138
|
+
* (workspaces#484). Hence: recreate, THEN resolve, THEN connect.
|
|
139
|
+
*
|
|
140
|
+
* Exported for unit testing — this ordering is the fix.
|
|
141
|
+
*/
|
|
142
|
+
export declare function setUpFlowConnector<M>(deps: FlowConnectorSetupDeps<M>): Promise<{
|
|
143
|
+
manager: M;
|
|
144
|
+
handle: ConnectorHandle;
|
|
145
|
+
recreated: boolean;
|
|
146
|
+
}>;
|
|
121
147
|
/**
|
|
122
148
|
* Build the `state_changed` events that replay the current snapshot of every
|
|
123
149
|
* live state-bearing store, for delivery when a subscriber (re)attaches.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../../runner/src/serve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;
|
|
1
|
+
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../../runner/src/serve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAuBH,OAAO,EAIL,KAAK,eAAe,EACpB,gBAAgB,EAChB,KAAK,WAAW,EAKhB,KAAK,aAAa,EAEnB,MAAM,+BAA+B,CAAC;AAevC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC/F,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,oEAAoE,CAAC;AAE5E,OAAO,KAAK,EAEV,UAAU,EAGV,wBAAwB,EACxB,aAAa,EACb,mBAAmB,EACnB,yBAAyB,EACzB,WAAW,EACX,MAAM,EAEN,mBAAmB,EAEnB,eAAe,EACf,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAkClC,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAG7B,8BAA8B,EAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,sBAAsB,CAAC;AAkB9B;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,CACtC,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,GACjC,IAAI,CAMN;AAoFD,8EAA8E;AAC9E,MAAM,MAAM,eAAe,GAAG;IAC5B,WAAW,IAAI,KAAK,CAAC;QAAE,EAAE,EAAE,MAA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;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAC;YAAC,cAAc,CAAC,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE,GACxE;QAAE,SAAS,EAAE,aAAa,CAAA;KAAE,KAC7B,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC/B;;;;OAIG;IACH,oBAAoB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3F,eAAe,EAAE,MAAM,CAAC;IACxB,sEAAsE;IACtE,cAAc,EAAE,CAAC,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IAC3E,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;CAC9C;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,sBAAsB,CAC1C,GAAG,EAAE,oBAAoB,EACzB,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,IAAI,CAAC,CA4Lf;AA+CD;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,YAAY,CAMrF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAm3FxE"}
|
|
@@ -147,6 +147,15 @@ export interface AgentSessionConfig {
|
|
|
147
147
|
* CLI/flow/REPL callers omit this field.
|
|
148
148
|
*/
|
|
149
149
|
fallbackConnectorDeclarations?: import("@skaile/workspaces/connectors").ConnectorDeclaration[];
|
|
150
|
+
/**
|
|
151
|
+
* Returns the MCP servers attached at runtime (`runner.attach_instance`) that
|
|
152
|
+
* `skaile.yaml` does not declare, so a session rebuild respawns them instead
|
|
153
|
+
* of dropping them as undeclared "ghosts". A thunk, not an array: serve builds
|
|
154
|
+
* its `AgentSessionConfig` once and reuses it for every recreate, so a snapshot
|
|
155
|
+
* taken at build time would never see a later attach. A disk declaration of the
|
|
156
|
+
* same id wins. CLI/flow/REPL callers omit this field.
|
|
157
|
+
*/
|
|
158
|
+
getExtraMcpDeclarations?: () => import("@skaile/workspaces/core").McpServerDeclaration[];
|
|
150
159
|
/**
|
|
151
160
|
* Platform `AIProviderConfig.id` for the AI credential provisioned into
|
|
152
161
|
* this session. Threaded into `AgentConfig.aiProviderConfigId` so that
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-builder.d.ts","sourceRoot":"","sources":["../../../runner/src/session-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEpF,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"session-builder.d.ts","sourceRoot":"","sources":["../../../runner/src/session-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEpF,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AAQjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,KAAK,mBAAmB,EAA2B,MAAM,4BAA4B,CAAC;AAK/F,OAAO,EAAuB,KAAK,sBA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AI,CAAC;IAC1C;;;;OAIG;IACH,WAAW,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACxC,iEAAiE;IACjE,QAAQ,EAAE,aAAa,GAAG,SAAS,CAAC;IACpC,wDAAwD;IACxD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,wEAAwE;IACxE,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,kFAAkF;IAClF,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B;;;;OAIG;IACH,6BAA6B,EAAE,MAAM,OAAO,mBAAmB,EAAE,kBAAkB,CAAC;IACpF,yEAAyE;IACzE,qBAAqB,EAAE,MAAM,OAAO,mBAAmB,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACnF,oEAAoE;IACpE,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B;;;;;;;;;OASG;IACH,oBAAoB,EAAE,mBAAmB,EAAE,CAAC;CAC7C;AAMD;;;;;;;;;;;GAWG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,YAAY,CAAC,CAqM1F"}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* @since 3.6.0
|
|
12
12
|
*/
|
|
13
13
|
import type { ConnectorManager, PreMintedSecretProvider } from "@skaile/workspaces/connectors";
|
|
14
|
+
import type { McpServerDeclaration } from "@skaile/workspaces/core";
|
|
14
15
|
import type { CapabilityRegistry, RemoteCapabilityInvoker } from "./capability-registry.js";
|
|
15
16
|
import type { CompactionOrchestrator } from "./compaction/index.js";
|
|
16
17
|
import type { ExternalMcpManager } from "./external-mcp.js";
|
|
@@ -36,6 +37,10 @@ export interface SessionCapabilityWiringDeps {
|
|
|
36
37
|
getProjectDir: () => string;
|
|
37
38
|
/** Stage-then-fast-restart a skill by name (owned by `serve.ts`). */
|
|
38
39
|
attachSkillInstance: (name: string) => Promise<AttachResult>;
|
|
40
|
+
/** Record a live-attached MCP server so later session rebuilds respawn it (owned by `serve.ts`). */
|
|
41
|
+
registerLiveAttachedMcp: (declaration: McpServerDeclaration) => void;
|
|
42
|
+
/** Queue a (backgrounded) driver restart so a non-live driver re-bakes its tool set. */
|
|
43
|
+
scheduleDriverRestartForToolChanges: (reason: string) => void;
|
|
39
44
|
log: (msg: string) => void;
|
|
40
45
|
}
|
|
41
46
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-capability-wiring.d.ts","sourceRoot":"","sources":["../../../runner/src/session-capability-wiring.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC/F,OAAO,KAAK,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAC5F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAI5D,OAAO,EACL,KAAK,YAAY,EAElB,MAAM,gCAAgC,CAAC;AAExC,MAAM,WAAW,2BAA2B;IAC1C,wCAAwC;IACxC,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,8EAA8E;IAC9E,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,+EAA+E;IAC/E,kBAAkB,EAAE,MAAM,gBAAgB,GAAG,IAAI,CAAC;IAClD,4EAA4E;IAC5E,mBAAmB,EAAE,MAAM,uBAAuB,GAAG,SAAS,CAAC;IAC/D,8EAA8E;IAC9E,sBAAsB,EAAE,MAAM,IAAI,CAAC;IACnC,qFAAqF;IACrF,sBAAsB,EAAE,MAAM,OAAO,CAAC;IACtC,8EAA8E;IAC9E,qBAAqB,EAAE,MAAM,kBAAkB,GAAG,IAAI,CAAC;IACvD,+EAA+E;IAC/E,yBA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E,qBAAqB,EAAE,MAAM,kBAAkB,GAAG,IAAI,CAAC;IACvD,+EAA+E;IAC/E,yBAAyB,EAAE,MAAM,sBAAsB,GAAG,IAAI,CAAC;IAC/D,sDAAsD;IACtD,aAAa,EAAE,MAAM,MAAM,CAAC;IAC5B,qEAAqE;IACrE,mBAAmB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;IAC7D,oGAAoG;IACpG,uBAAuB,EAAE,CAAC,WAAW,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACrE,wFAAwF;IACxF,mCAAmC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5B;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,2BAA2B,GAAG,IAAI,CA4E/E"}
|
|
@@ -11,6 +11,21 @@
|
|
|
11
11
|
* 6. Emit resource_status: active
|
|
12
12
|
*
|
|
13
13
|
* On failure at any step, rollback: unmount staging, delete staging dir, emit error.
|
|
14
|
+
*
|
|
15
|
+
* ── Why everything here is async ─────────────────────────────────────────
|
|
16
|
+
*
|
|
17
|
+
* This module is the worst case for the issue #454 outage class: it copies a
|
|
18
|
+
* whole tree **from one mount to another** (the old workspace to the newly
|
|
19
|
+
* mounted backend), removes trees recursively, and shells out to git — all on
|
|
20
|
+
* paths that are network filesystems by construction. Done synchronously that
|
|
21
|
+
* parks the runner's single event loop for the entire migration, and a wedged
|
|
22
|
+
* rclone mount parks it forever; a hang is not an error, so the `try/catch`
|
|
23
|
+
* rollback below would never fire.
|
|
24
|
+
*
|
|
25
|
+
* Every filesystem call is therefore awaited and deadline-bounded, and every
|
|
26
|
+
* git call carries an explicit timeout. That holds even though nothing wires
|
|
27
|
+
* this entry point up yet — the cost of getting it right now is a rewrite, the
|
|
28
|
+
* cost of getting it right after someone calls it is an outage.
|
|
14
29
|
*/
|
|
15
30
|
import type { ConnectorManager } from "@skaile/workspaces/connectors";
|
|
16
31
|
import type { ResourceDeclaration, ResourceMigration } from "@skaile/workspaces/types";
|
|
@@ -36,19 +51,38 @@ export declare function handleWorkspaceReplacement(resource: ResourceDeclaration
|
|
|
36
51
|
/**
|
|
37
52
|
* Returns true if the directory has no non-hidden files or directories.
|
|
38
53
|
* Hidden entries (starting with '.') are ignored — e.g. .git, .DS_Store.
|
|
54
|
+
* @param dir - Directory to inspect. May be a network mount.
|
|
55
|
+
* @throws {FsDeadlineError} when the directory does not answer in time.
|
|
39
56
|
* @docLink packages/runner/dev-guide#flow-execution-turn-based-model
|
|
40
57
|
*/
|
|
41
|
-
export declare function isEffectivelyEmpty(dir: string): boolean
|
|
58
|
+
export declare function isEffectivelyEmpty(dir: string): Promise<boolean>;
|
|
42
59
|
/**
|
|
43
60
|
* Recursively copy src into dest, skipping hidden entries (starting with '.').
|
|
61
|
+
*
|
|
62
|
+
* Hand-rolled rather than `fs.cp(..., { recursive: true, filter })` because the
|
|
63
|
+
* skip rule is "hidden at any level", and a single deadline around a whole-tree
|
|
64
|
+
* `cp` would be all-or-nothing: one slow subtree would abort a copy that had
|
|
65
|
+
* already moved gigabytes. Per-entry deadlines keep the failure local and the
|
|
66
|
+
* progress made.
|
|
67
|
+
*
|
|
68
|
+
* @param src - Source directory (may be a network mount).
|
|
69
|
+
* @param dest - Destination directory; must already exist.
|
|
70
|
+
* @throws {FsDeadlineError} when any single entry misses its deadline.
|
|
44
71
|
* @docLink packages/runner/dev-guide#flow-execution-turn-based-model
|
|
45
72
|
*/
|
|
46
|
-
export declare function copyDirectory(src: string, dest: string): void
|
|
73
|
+
export declare function copyDirectory(src: string, dest: string): Promise<void>;
|
|
47
74
|
/**
|
|
48
75
|
* Run `git add -A` and `git commit` in repoDir. Skips the commit if nothing
|
|
49
76
|
* is staged (i.e. the workspace was already empty or all files were hidden).
|
|
77
|
+
*
|
|
78
|
+
* `repoDir` is a freshly mounted backend, so each git call carries an explicit
|
|
79
|
+
* timeout and is killed with `SIGKILL` — `SIGTERM` is not delivered to a
|
|
80
|
+
* `D`-state process on a dead FUSE connection.
|
|
81
|
+
*
|
|
82
|
+
* @param repoDir - Git repository root to stage and commit in.
|
|
83
|
+
* @param message - Commit message.
|
|
50
84
|
* @docLink packages/runner/dev-guide#flow-execution-turn-based-model
|
|
51
85
|
*/
|
|
52
|
-
export declare function gitAddAndCommit(repoDir: string, message: string): void
|
|
86
|
+
export declare function gitAddAndCommit(repoDir: string, message: string): Promise<void>;
|
|
53
87
|
export {};
|
|
54
88
|
//# sourceMappingURL=workspace-migration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-migration.d.ts","sourceRoot":"","sources":["../../../runner/src/workspace-migration.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"workspace-migration.d.ts","sourceRoot":"","sources":["../../../runner/src/workspace-migration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAMH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAIvF,KAAK,yBAAyB,GAAG,OAAO,CAAC,iBAAiB,EAAE;IAAE,QAAQ,EAAE,mBAAmB,CAAA;CAAE,CAAC,CAAC;AAY/F;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,0BAA0B,CAC9C,QAAQ,EAAE,mBAAmB,EAC7B,SAAS,EAAE,yBAAyB,EACpC,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,EACnD,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CAoGf;AAgBD;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAGtE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAqB5E;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBrF"}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
export { AssetManager, FACTORY_SOURCE_URL, MissingManifestError, NON_DEPLOYABLE_KINDS, normalizeRepoUrl, parseCanonicalLockKey, parseRefTolerant, softDepName } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { AssetManager, FACTORY_SOURCE_URL, MissingManifestError, NON_DEPLOYABLE_KINDS, normalizeRepoUrl, parseCanonicalLockKey, parseRefTolerant, renderMcpServerConfig, softDepName } from '../chunk-VPXBAEWE.js';
|
|
2
|
+
import '../chunk-XSIXGVH6.js';
|
|
3
3
|
import '../chunk-UKJMQZV6.js';
|
|
4
4
|
import '../chunk-R7FOF242.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-MAN7AGQJ.js';
|
|
6
6
|
import '../chunk-JXT46QFC.js';
|
|
7
|
-
export { createScaffold, deployAll, installAgent, removeAsset } from '../chunk-
|
|
7
|
+
export { createScaffold, deployAll, installAgent, removeAsset } from '../chunk-CTWE7I7Z.js';
|
|
8
8
|
export { BUILT_IN_FRAGMENTS, loadPromptExtensions, resolveFragments } from '../chunk-CGYEHQOX.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-RTLQAZAE.js';
|
|
10
10
|
import '../chunk-K5GBV4SA.js';
|
|
11
11
|
import '../chunk-ZAP2BDHG.js';
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-5BGEYZ7I.js';
|
|
13
|
+
import '../chunk-YODP3STD.js';
|
|
14
14
|
import '../chunk-P4VHQA4N.js';
|
|
15
|
-
import '../chunk-
|
|
15
|
+
import '../chunk-DYMWJAL4.js';
|
|
16
16
|
import '../chunk-GEEW6SY2.js';
|
|
17
17
|
import '../chunk-F3HNW354.js';
|
|
18
18
|
import '../chunk-MENCWIHW.js';
|
|
19
|
-
import '../chunk-
|
|
19
|
+
import '../chunk-U5POE4BA.js';
|
|
20
|
+
import '../chunk-7GOCNYUV.js';
|
|
20
21
|
export { appendHistory, clearHistory, getRecentHistory, loadHistory } from '../chunk-KTBKW2FI.js';
|
|
21
22
|
import '../chunk-UQ6LFBPZ.js';
|
|
22
23
|
export { AGENT_RENDERERS, claudeCodeRenderer, codexRenderer, driverTargetSupportsAgents, ompRenderer, renderAgentToFramework } from '../chunk-IEX5YV4R.js';
|