@skaile/workspaces 1.16.0 → 2.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 +265 -0
- package/dist/{asset-feeds-WIBEP37F.js → asset-feeds-7VQVISDI.js} +25 -24
- package/dist/asset-feeds-7VQVISDI.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 +22 -17
- package/dist/asset-manager/src/index.d.ts.map +1 -1
- 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-344DEXZS.js → chunk-35ELAMQ5.js} +4 -4
- package/dist/{chunk-344DEXZS.js.map → chunk-35ELAMQ5.js.map} +1 -1
- package/dist/{chunk-WSTY3AWY.js → chunk-6FJH63NN.js} +4 -4
- package/dist/{chunk-WSTY3AWY.js.map → chunk-6FJH63NN.js.map} +1 -1
- package/dist/{chunk-ISA7R7PK.js → chunk-72EOJJOM.js} +82 -38
- package/dist/chunk-72EOJJOM.js.map +1 -0
- package/dist/chunk-7GOCNYUV.js +300 -0
- package/dist/chunk-7GOCNYUV.js.map +1 -0
- package/dist/{chunk-TFIFNDT2.js → chunk-A5OYCQGT.js} +4 -4
- package/dist/{chunk-TFIFNDT2.js.map → chunk-A5OYCQGT.js.map} +1 -1
- 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-BK3WL3QK.js +10 -0
- package/dist/chunk-BK3WL3QK.js.map +1 -0
- package/dist/{chunk-BI2NKPA4.js → chunk-CA5CWLGN.js} +3 -2
- package/dist/chunk-CA5CWLGN.js.map +1 -0
- package/dist/{chunk-2TSSCHCQ.js → chunk-CKVIN4H3.js} +5 -5
- package/dist/{chunk-2TSSCHCQ.js.map → chunk-CKVIN4H3.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-MNKUZUN2.js → chunk-DRXDEL3A.js} +3 -3
- package/dist/{chunk-MNKUZUN2.js.map → chunk-DRXDEL3A.js.map} +1 -1
- package/dist/{chunk-BYS6JDZB.js → chunk-DY2AK577.js} +3 -3
- package/dist/{chunk-BYS6JDZB.js.map → chunk-DY2AK577.js.map} +1 -1
- 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-O5VCUU6D.js → chunk-KUZEIKZH.js} +4 -4
- package/dist/{chunk-O5VCUU6D.js.map → chunk-KUZEIKZH.js.map} +1 -1
- package/dist/{chunk-YULV7UTU.js → chunk-KYLWY3A7.js} +10 -10
- package/dist/{chunk-YULV7UTU.js.map → chunk-KYLWY3A7.js.map} +1 -1
- package/dist/{chunk-2BQBWWFX.js → chunk-LBZP2IYG.js} +6 -6
- package/dist/chunk-LBZP2IYG.js.map +1 -0
- 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-7J7LQP6T.js → chunk-MMD2KQ3A.js} +31 -19
- package/dist/chunk-MMD2KQ3A.js.map +1 -0
- package/dist/{chunk-FIUGSIKC.js → chunk-NYCJ7B27.js} +19 -11
- package/dist/chunk-NYCJ7B27.js.map +1 -0
- package/dist/{chunk-ACWCVB5Q.js → chunk-ORZW7MMO.js} +3 -3
- package/dist/{chunk-ACWCVB5Q.js.map → chunk-ORZW7MMO.js.map} +1 -1
- package/dist/{chunk-M5GJT3D7.js → chunk-OYX22NJL.js} +3 -3
- package/dist/{chunk-M5GJT3D7.js.map → chunk-OYX22NJL.js.map} +1 -1
- package/dist/{chunk-C4KVFALU.js → chunk-QIQTYN7F.js} +3 -3
- package/dist/{chunk-C4KVFALU.js.map → chunk-QIQTYN7F.js.map} +1 -1
- package/dist/{chunk-2IJFUAZB.js → chunk-RK3HU3H3.js} +123 -18
- package/dist/chunk-RK3HU3H3.js.map +1 -0
- package/dist/{chunk-5NZ56R63.js → chunk-ST3DLLNZ.js} +18 -6
- package/dist/chunk-ST3DLLNZ.js.map +1 -0
- package/dist/{chunk-6POODADP.js → chunk-SVL4EZJT.js} +453 -250
- package/dist/chunk-SVL4EZJT.js.map +1 -0
- package/dist/{chunk-JB35MVBN.js → chunk-U5POE4BA.js} +4 -298
- package/dist/chunk-U5POE4BA.js.map +1 -0
- package/dist/{chunk-MO43URUI.js → chunk-UAQVFATZ.js} +7 -7
- package/dist/{chunk-MO43URUI.js.map → chunk-UAQVFATZ.js.map} +1 -1
- package/dist/{chunk-A22KZ7GZ.js → chunk-UVW3R6S7.js} +72 -37
- package/dist/chunk-UVW3R6S7.js.map +1 -0
- package/dist/{chunk-STQOPWPS.js → chunk-VCU4NPUS.js} +4 -4
- package/dist/{chunk-STQOPWPS.js.map → chunk-VCU4NPUS.js.map} +1 -1
- package/dist/{chunk-MB6563TL.js → chunk-WCWXDW22.js} +3 -3
- package/dist/{chunk-MB6563TL.js.map → chunk-WCWXDW22.js.map} +1 -1
- package/dist/{chunk-BG4XVMG2.js → chunk-WZPADAE7.js} +254 -135
- package/dist/chunk-WZPADAE7.js.map +1 -0
- package/dist/{chunk-EPWY2ABE.js → chunk-Y3JVBJ3Y.js} +5 -5
- package/dist/{chunk-EPWY2ABE.js.map → chunk-Y3JVBJ3Y.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 +9 -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-JLVHHZI2.js} +13 -12
- package/dist/ensure-sources-JLVHHZI2.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-LV5WYJ2I.js +20 -0
- package/dist/{flows-FHWBCLXF.js.map → flows-LV5WYJ2I.js.map} +1 -1
- package/dist/{helpers-GUUWPPAX.js → helpers-PJ3CPUUL.js} +13 -12
- package/dist/{helpers-GUUWPPAX.js.map → helpers-PJ3CPUUL.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-HVZRCE3C.js} +16 -15
- package/dist/library-publish-HVZRCE3C.js.map +1 -0
- package/dist/{open-library-VALRYGFV.js → open-library-RMI2FTQ4.js} +14 -13
- package/dist/{open-library-VALRYGFV.js.map → open-library-RMI2FTQ4.js.map} +1 -1
- package/dist/{paths-5QJJBAND.js → paths-JSVTQAVW.js} +11 -10
- package/dist/{paths-5QJJBAND.js.map → paths-JSVTQAVW.js.map} +1 -1
- package/dist/plugin-registry/src/deploy-helpers.d.ts +1 -1
- package/dist/{plugin-store-ZBJZ7F6D.js → plugin-store-7TVJB2TS.js} +8 -7
- package/dist/plugin-store-7TVJB2TS.js.map +1 -0
- package/dist/{project-IRUJLIVX.js → project-P636MSYT.js} +14 -13
- package/dist/{project-IRUJLIVX.js.map → project-P636MSYT.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 +5 -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-OYW3W3XK.js} +10 -9
- package/dist/setup-OYW3W3XK.js.map +1 -0
- package/dist/skills-QY5PHBD3.js +20 -0
- package/dist/{skills-BMI6H7HI.js.map → skills-QY5PHBD3.js.map} +1 -1
- package/dist/{source-5KDURFBS.js → source-63CHWDC2.js} +15 -14
- package/dist/{source-5KDURFBS.js.map → source-63CHWDC2.js.map} +1 -1
- package/dist/{source-manifest-publish-DPQI44D3.js → source-manifest-publish-DLASGDK5.js} +17 -16
- package/dist/source-manifest-publish-DLASGDK5.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
|
@@ -52,7 +52,7 @@ export interface AssetFeedResult {
|
|
|
52
52
|
}
|
|
53
53
|
/** The slice of `AssetManager` the source feed needs (kept narrow for tests). */
|
|
54
54
|
interface AssetManagerLike {
|
|
55
|
-
search: () => CatalogEntry[]
|
|
55
|
+
search: () => Promise<CatalogEntry[]>;
|
|
56
56
|
searchRepoRoots: () => {
|
|
57
57
|
repoName: string;
|
|
58
58
|
root: string;
|
|
@@ -63,7 +63,7 @@ interface AssetManagerLike {
|
|
|
63
63
|
*
|
|
64
64
|
* Feeds run in parallel where possible — the store fetch is the slow one
|
|
65
65
|
* (one HTTP call) and is fired alongside the local library walk. The factory
|
|
66
|
-
* scan is local
|
|
66
|
+
* scan is local disk only, so it runs inline.
|
|
67
67
|
*/
|
|
68
68
|
export declare function gatherAssetFeeds(am: AssetManagerLike, projectDir: string): Promise<AssetFeedResult>;
|
|
69
69
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-feeds.d.ts","sourceRoot":"","sources":["../../../cli/src/asset-feeds.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,YAAY,EAKlB,MAAM,yBAAyB,CAAC;AASjC,yEAAyE;AACzE,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,SAAS,CAAC;IACpD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAErE,iEAAiE;AACjE,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,YAAY,CAAC;IACpB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB;;;;;OAKG;IACH,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB;AAgMD,iFAAiF;AACjF,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,YAAY,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"asset-feeds.d.ts","sourceRoot":"","sources":["../../../cli/src/asset-feeds.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,YAAY,EAKlB,MAAM,yBAAyB,CAAC;AASjC,yEAAyE;AACzE,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,SAAS,CAAC;IACpD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAErE,iEAAiE;AACjE,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,YAAY,CAAC;IACpB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB;;;;;OAKG;IACH,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB;AAgMD,iFAAiF;AACjF,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IACtC,eAAe,EAAE,MAAM;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC7D;AA6ED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACpC,EAAE,EAAE,gBAAgB,EACpB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,eAAe,CAAC,CAgB1B"}
|
|
@@ -117,13 +117,61 @@ export declare function makeRemoveCommand(): Command;
|
|
|
117
117
|
* @docLink cli/commands/catalog#make-list-command
|
|
118
118
|
*/
|
|
119
119
|
export declare function makeListCommand(): Command;
|
|
120
|
+
/** Store leg of the `skaile info` lookup; injected in tests to stay network-free. */
|
|
121
|
+
export type InfoStoreLookup = (filter: {
|
|
122
|
+
kind?: string;
|
|
123
|
+
}) => Promise<CatalogAsset[]>;
|
|
124
|
+
/** The slice of `AssetManager` the info lookup needs (kept narrow for tests). */
|
|
125
|
+
interface InfoManagerLike {
|
|
126
|
+
info(ref: string): Promise<CatalogEntry | null>;
|
|
127
|
+
listDeployed(kind?: string): CatalogEntry[];
|
|
128
|
+
}
|
|
129
|
+
export interface InfoLookupResult {
|
|
130
|
+
entry: CatalogEntry | null;
|
|
131
|
+
/** Why the store leg produced nothing — folded into the not-found hint. */
|
|
132
|
+
storeNote?: string;
|
|
133
|
+
/**
|
|
134
|
+
* The store leg was off by configuration (`catalog.url: local`), not down.
|
|
135
|
+
* Keeps the hint from telling the user to retry something that will never
|
|
136
|
+
* succeed until they change their config.
|
|
137
|
+
*/
|
|
138
|
+
storeDisabled?: boolean;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Resolve `skaile info <ref>` across every place the asset can live, cheapest
|
|
142
|
+
* leg first:
|
|
143
|
+
*
|
|
144
|
+
* 1. **Local sources** — `AssetManager.info` (source clones + the bundled
|
|
145
|
+
* factory tree).
|
|
146
|
+
* 2. **Deployed assets** — this project's deploy dirs, re-scanned from disk so
|
|
147
|
+
* an installed store asset resolves with real metadata and no network.
|
|
148
|
+
* 3. **Catalog source** — the configured store, mapped through
|
|
149
|
+
* {@link catalogAssetToEntry}.
|
|
150
|
+
*
|
|
151
|
+
* A failing store leg (unreachable host, `catalog.url: local` with no local
|
|
152
|
+
* library, auth failure) never throws — it comes back as `storeNote` so the
|
|
153
|
+
* caller can print an accurate hint.
|
|
154
|
+
*
|
|
155
|
+
* @docLink cli/commands/catalog#make-info-command
|
|
156
|
+
*/
|
|
157
|
+
export declare function resolveInfoEntry(am: InfoManagerLike, ref: string, opts: {
|
|
158
|
+
projectDir: string;
|
|
159
|
+
storeLookup?: InfoStoreLookup;
|
|
160
|
+
}): Promise<InfoLookupResult>;
|
|
161
|
+
/**
|
|
162
|
+
* Not-found hint for `skaile info`, naming the legs that were actually searched.
|
|
163
|
+
* A `local`-sentinel catalog is a choice, not an outage, so it gets a config
|
|
164
|
+
* hint rather than "retry when the store is reachable".
|
|
165
|
+
*/
|
|
166
|
+
export declare function infoNotFoundHint(ref: string, lookup: Pick<InfoLookupResult, "storeNote" | "storeDisabled">): string;
|
|
120
167
|
/**
|
|
121
168
|
* Create the `skaile info` command.
|
|
122
169
|
*
|
|
123
170
|
* Shows metadata for a catalog entry identified by `kind:name`: description,
|
|
124
171
|
* version, source repository, required platform resources, and transitive skill
|
|
125
|
-
* dependencies.
|
|
126
|
-
*
|
|
172
|
+
* dependencies. The ref is resolved via {@link resolveInfoEntry} — local
|
|
173
|
+
* sources, then this project's deployed assets, then the configured store — and
|
|
174
|
+
* exits with an error (and a leg-accurate hint) when nothing matches.
|
|
127
175
|
*
|
|
128
176
|
* @returns Configured {@link Command} ready for `program.addCommand()`.
|
|
129
177
|
* @docLink cli/commands/catalog#make-info-command
|
|
@@ -153,4 +201,5 @@ export declare function makeCreateCommand(): Command;
|
|
|
153
201
|
* @docLink cli/commands/catalog#make-doctor-command
|
|
154
202
|
*/
|
|
155
203
|
export declare function makeDoctorCommand(): Command;
|
|
204
|
+
export {};
|
|
156
205
|
//# sourceMappingURL=catalog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/catalog.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/catalog.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EACL,YAAY,EAOb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,KAAK,YAAY,EAMlB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAe5C;;;GAGG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,YAA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E,eAAe,CAAA;CAAE,GAC1D,OAAO,CAAC,gBAAgB,CAAC,CA0D3B;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,IAAI,CAAC,gBAAgB,EAAE,WAAW,GAAG,eAAe,CAAC,GAC5D,MAAM,CAOR;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAsCzC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAkB3C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CA2B3C"}
|
|
@@ -23,7 +23,7 @@ import { Command } from "commander";
|
|
|
23
23
|
* name. Roots are override-first (the `SKAILE_FACTORY_ASSETS_DIR` layer ahead of
|
|
24
24
|
* the bundled tree), so an env-supplied manifest shadows the bundled one.
|
|
25
25
|
*/
|
|
26
|
-
export declare function scanFactoryConnectors(scanDirectory: (dir: string, repoName: string) => CatalogEntry[]
|
|
26
|
+
export declare function scanFactoryConnectors(scanDirectory: (dir: string, repoName: string) => Promise<CatalogEntry[]>, roots: string[]): Promise<CatalogEntry[]>;
|
|
27
27
|
/**
|
|
28
28
|
* Creates the `skaile connector` command group.
|
|
29
29
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/connector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC;;;;GAIG;AACH,
|
|
1
|
+
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/connector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC;;;;GAIG;AACH,wBAAsB,qBAAqB,CACzC,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,YAAY,EAAE,CAAC,EACzE,KAAK,EAAE,MAAM,EAAE,GACd,OAAO,CAAC,YAAY,EAAE,CAAC,CAQzB;AAoHD;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAsX9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/logs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/logs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA2DpC;;;;;;;;;GASG;AACH,wBAAgB,eAAe,IAAI,OAAO,CA8GzC"}
|
|
@@ -18,8 +18,9 @@
|
|
|
18
18
|
* - Pending — staged adds/removes (rich rendering deferred to AF-LIB-TUI-RICH).
|
|
19
19
|
* - Sync — bulk sync sources + libraries (deferred to AF-LIB-TUI-RICH).
|
|
20
20
|
*
|
|
21
|
-
* Keys: ↑↓/jk navigate, ←/→ collapse/expand,
|
|
22
|
-
*
|
|
21
|
+
* Keys: ↑↓/jk navigate, PgUp/PgDn/Home/End jump, ←/→ collapse/expand,
|
|
22
|
+
* space/+/- select, a/Enter apply, d domain info, / search (assets),
|
|
23
|
+
* 1/2/3 filter to one origin · 0 clear, s sync, i info,
|
|
23
24
|
* Tab switch, q/Esc quit
|
|
24
25
|
*
|
|
25
26
|
* NOTE: rich rendering (status glyphs, behind/ahead counters, in-line sync) for
|
|
@@ -82,15 +83,41 @@ export interface AssetRow {
|
|
|
82
83
|
* - An asset under a real domain is hidden when that `"…:dom:<slug>"` key is
|
|
83
84
|
* collapsed; a "no domain" asset only depends on its origin + publisher.
|
|
84
85
|
*
|
|
86
|
+
* A non-empty `query` switches to **search mode**: only assets whose name,
|
|
87
|
+
* publisher, or description contains it (case-insensitively) are kept, together
|
|
88
|
+
* with the header / `domain-info` rows on their path. The collapse sets are
|
|
89
|
+
* **ignored** while searching — search flattens the tree, otherwise matches
|
|
90
|
+
* inside a default-collapsed band (e.g. `store`) would be invisible. The
|
|
91
|
+
* `originFilter` still applies to every row (the two combine).
|
|
92
|
+
*
|
|
85
93
|
* @param rows - Complete flat list of asset rows.
|
|
86
94
|
* @param collapsedOrigins - Set of origins whose children are hidden.
|
|
87
95
|
* @param collapsedSources - Set of `"origin:publisher"` keys whose children are hidden.
|
|
88
96
|
* @param collapsedDomains - Set of `"origin:publisher:dom:<slug>"` keys whose assets are hidden.
|
|
89
97
|
* @param originFilter - When set, only rows of this origin are kept.
|
|
98
|
+
* @param query - When non-empty, keep only matching assets + their ancestors (ignores collapse).
|
|
90
99
|
* @returns Filtered array of visible rows.
|
|
91
100
|
* @docLink cli/commands/manage#make-manage-command
|
|
92
101
|
*/
|
|
93
|
-
export declare function buildVisibleRows(rows: AssetRow[], collapsedOrigins: Set<AssetOrigin>, collapsedSources: Set<string>, collapsedDomains: Set<string>, originFilter?: AssetOrigin | null): AssetRow[];
|
|
102
|
+
export declare function buildVisibleRows(rows: AssetRow[], collapsedOrigins: Set<AssetOrigin>, collapsedSources: Set<string>, collapsedDomains: Set<string>, originFilter?: AssetOrigin | null, query?: string): AssetRow[];
|
|
103
|
+
/**
|
|
104
|
+
* Split one raw stdin chunk into individual key presses.
|
|
105
|
+
*
|
|
106
|
+
* Holding a key coalesces its bytes into a single chunk (`"\x1b[B\x1b[B\x1b[B"`),
|
|
107
|
+
* which matches no binding — so the whole burst would be dropped. Splitting keeps
|
|
108
|
+
* navigation lossless:
|
|
109
|
+
*
|
|
110
|
+
* - `\x1b[` + `[0-9;]*` + a final byte is one key (`\x1b[A`…`\x1b[D`, `\x1b[5~`, `\x1b[H`).
|
|
111
|
+
* - `\x1bO` + one char is one key (the SS3 arrows some terminals send) — never a
|
|
112
|
+
* bare `\x1b`, which is the quit binding.
|
|
113
|
+
* - A trailing incomplete escape is emitted as one key, except a lone trailing
|
|
114
|
+
* `\x1b` after another key: that is a sequence the reader split mid-escape
|
|
115
|
+
* (`"\x1b[B\x1b"`), and dispatching it would quit the TUI, so it is dropped.
|
|
116
|
+
* - Anything else is one key per character (a chunk that is only `\x1b` = Esc).
|
|
117
|
+
*
|
|
118
|
+
* @docLink cli/commands/manage#make-manage-command
|
|
119
|
+
*/
|
|
120
|
+
export declare function splitKeys(chunk: string): string[];
|
|
94
121
|
/**
|
|
95
122
|
* Return `kind:name` refs for all asset rows belonging to a specific origin.
|
|
96
123
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manage.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/manage.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"manage.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/manage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAIH,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,KAAK,EAAE,WAAW,EAAe,MAAM,mBAAmB,CAAC;AAalE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,WAAW,QAAQ;IACvB,IAAI,EACA,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,aAAa,GACb,OAAO,GAGP,aAAa,GACb,YAAY,GACZ,aAAa,GAGb,cAAc,GACd,gBAAgB,CAAC;IACrB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;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, "listDecl
|
|
|
92
92
|
/**
|
|
93
93
|
* Creates the `skaile check` command.
|
|
94
94
|
*
|
|
95
|
-
* Scans all deployed assets for unmet dependency requirements and
|
|
96
|
-
*
|
|
95
|
+
* Scans all deployed assets for unmet dependency requirements **and** the
|
|
96
|
+
* declared set for deps that resolved into the lock but never materialized, and
|
|
97
|
+
* exits with code 1 if either is found. `doctor()` alone only walks *deployed*
|
|
98
|
+
* assets' `requires`, so a declared dep whose bytes never landed (e.g. a
|
|
99
|
+
* store-sourced `mcp-server`) used to report "satisfied" (#462).
|
|
97
100
|
*
|
|
98
101
|
* @returns Configured {@link Command} ready for `program.addCommand()`.
|
|
99
102
|
* @docLink cli/commands/project#make-check-command
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/project.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAOhE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqBpC;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CAC3D;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,qBAAqB,CAKxF;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,QAAQ,EAAE,eAAe,GAAG,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACtE;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,8DAA8D;IAC9D,WAAW,EAAE,MAAM,CAAC;IACpB,+DAA+D;IAC/D,SAAS,EAAE,MAAM,CAAC;IAClB,+CAA+C;IAC/C,SAAS,EAA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MAAM,CAAC;IAClB,+CAA+C;IAC/C,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;IAAE,OAAO,EAAE,qBAAqB,CAAC;IAAC,OAAO,EAAE,cAAc,CAAA;CAAE,GAChE,OAAO,CAAC,wBAAwB,CAAC,CA8BnC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,IAAI,OAAO,CAoB5C;AAqKD;;;;;;GAMG;AACH,wBAAsB,uBAAuB,CAC3C,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,cAAc,GAAG,gBAAgB,CAAC,EACzD,MAAM,GAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAA+B,GACxD,OAAO,CAAC,IAAI,CAAC,CASf;AA6CD;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CA6B1C;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAwE1C"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
export { LegacyAuthGrammarError, createCliSecretProviderChain, createForgeSecretProviderChain, loadConnectorDeclarations, resolveAuthRef, resolveBackendAuthFor, resolvedConfigToDeclarations } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { LegacyAuthGrammarError, createCliSecretProviderChain, createForgeSecretProviderChain, loadConnectorDeclarations, resolveAuthRef, resolveBackendAuthFor, resolvedConfigToDeclarations } from '../chunk-CKVIN4H3.js';
|
|
2
|
+
import '../chunk-ST3DLLNZ.js';
|
|
3
3
|
import '../chunk-K5GBV4SA.js';
|
|
4
4
|
import '../chunk-ZAP2BDHG.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-MMD2KQ3A.js';
|
|
6
|
+
import '../chunk-72EOJJOM.js';
|
|
7
7
|
import '../chunk-P4VHQA4N.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-DYMWJAL4.js';
|
|
9
9
|
import '../chunk-GEEW6SY2.js';
|
|
10
10
|
import '../chunk-F3HNW354.js';
|
|
11
11
|
import '../chunk-MENCWIHW.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-U5POE4BA.js';
|
|
13
|
+
import '../chunk-7GOCNYUV.js';
|
|
13
14
|
import '../chunk-NSBPE2FW.js';
|
|
14
15
|
//# sourceMappingURL=config.js.map
|
|
15
16
|
//# sourceMappingURL=config.js.map
|
package/dist/connectors/index.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, ConnectorFieldMissingError, ConnectorManager, ConnectorStartupError, FlowAdapter, LogBuffer, ManagedGitconfigCollisionError, PortPool, atomicReplaceCredential, buildConnectorPromptSection, buildSdkConnectorTools, buildSdkFlowTools, createFsWatcher, createWorktree, defaultSpawn, ensureDirMode, ensureFleetMounted, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, registerBuiltinConnectors, removeMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock } from '../chunk-
|
|
2
|
-
export { EnvSecretProvider, ForgeSecretProvider, InMemorySecretProvider, LegacyAuthGrammarError, LockedSecretProvider, OAuthRequiredError, PreMintedSecretProvider, SecretProviderChain, createCliSecretProviderChain, createForgeSecretProviderChain, deriveSingleMaterializedConnectorDeclaration, fromMaterializedConnectorMd, isKnownSecretRef, loadConnectorDeclarations, loadMaterializedConnectorDeclarations, resolveAuthRef, resolveBackendAuthFor, resolvedConfigToDeclarations } from '../chunk-
|
|
1
|
+
export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, ConnectorFieldMissingError, ConnectorManager, ConnectorStartupError, FlowAdapter, LogBuffer, ManagedGitconfigCollisionError, PortPool, atomicReplaceCredential, buildConnectorPromptSection, buildSdkConnectorTools, buildSdkFlowTools, createFsWatcher, createWorktree, defaultSpawn, ensureDirMode, ensureFleetMounted, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, registerBuiltinConnectors, removeMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock } from '../chunk-SVL4EZJT.js';
|
|
2
|
+
export { EnvSecretProvider, ForgeSecretProvider, InMemorySecretProvider, LegacyAuthGrammarError, LockedSecretProvider, OAuthRequiredError, PreMintedSecretProvider, SecretProviderChain, createCliSecretProviderChain, createForgeSecretProviderChain, deriveSingleMaterializedConnectorDeclaration, fromMaterializedConnectorMd, isKnownSecretRef, loadConnectorDeclarations, loadMaterializedConnectorDeclarations, resolveAuthRef, resolveBackendAuthFor, resolvedConfigToDeclarations } from '../chunk-CKVIN4H3.js';
|
|
3
3
|
import '../chunk-6E6PKKAD.js';
|
|
4
4
|
import '../chunk-HPGV54O4.js';
|
|
5
5
|
import '../chunk-Y662DNQQ.js';
|
|
6
6
|
import '../chunk-IFGTRL2I.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-ST3DLLNZ.js';
|
|
8
8
|
import '../chunk-K5GBV4SA.js';
|
|
9
9
|
import '../chunk-ZAP2BDHG.js';
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-MMD2KQ3A.js';
|
|
11
|
+
import '../chunk-72EOJJOM.js';
|
|
12
12
|
import '../chunk-P4VHQA4N.js';
|
|
13
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-DYMWJAL4.js';
|
|
14
14
|
import '../chunk-GEEW6SY2.js';
|
|
15
15
|
import '../chunk-F3HNW354.js';
|
|
16
16
|
import '../chunk-MENCWIHW.js';
|
|
17
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-U5POE4BA.js';
|
|
18
|
+
import '../chunk-7GOCNYUV.js';
|
|
18
19
|
import '../chunk-NSBPE2FW.js';
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-manager.d.ts","sourceRoot":"","sources":["../../../connectors/src/connector-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"connector-manager.d.ts","sourceRoot":"","sources":["../../../connectors/src/connector-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAI5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,KAAK,EAAE,oBAAoB,EAAU,MAAM,0BAA0B,CAAC;AAG7E,OAAO,KAAK,EAEV,SAAS,EACT,oBAAoB,EACpB,oBAAoB,EAEpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,aAAa,EAEd,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,uBAAuB,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACjG,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACb,MAAM,mBAAmB,CAAC;AAI3B;;GAEG;AACH,UAAU,eAAe;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,eAAe,CAAC;IACxB,WAAW,EAAE,oBAAoB,CAAC;IAClC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,UAAU,eAAe;IACvB,EAAE,EAAE,MAAM,CAAC;I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AiBhE,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAoBzE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAoBlD,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAiBjF,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAmBzF;;;;;OAKG;IACG,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IA4B9F;;;OAGG;IACH,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,mBAAmB,EAAE;IAOhD;;;OAGG;IACH,UAAU,IAAI,sBAAsB,EAAE;IAStC;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,UAAO,GAAG,MAAM;CAUlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watcher.d.ts","sourceRoot":"","sources":["../../../connectors/src/watcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"watcher.d.ts","sourceRoot":"","sources":["../../../connectors/src/watcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAUH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAoEnE,oEAAoE;AACpE,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAiEvC;;;;;;;;GAQG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,EAC/C,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,WAAW,CAAC,CA0CtB"}
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provides create/cleanup with a cross-adapter ownership registry
|
|
5
5
|
* that prevents one adapter from removing a worktree another is using.
|
|
6
|
+
*
|
|
7
|
+
* Every git invocation here is async and carries an explicit timeout. These
|
|
8
|
+
* helpers are reachable from agent-invokable connector operations (the
|
|
9
|
+
* static-server `serve`/`stop` ops), so a git call whose `cwd` sits on a wedged
|
|
10
|
+
* mount used to park the runner's single event loop indefinitely.
|
|
6
11
|
*/
|
|
7
12
|
/**
|
|
8
13
|
* Result of a successful `createWorktree` call. The `cleanup` function removes the
|
|
@@ -44,14 +49,27 @@ declare class WorktreeRegistryImpl {
|
|
|
44
49
|
* @docLink packages/connectors/api-reference#worktree-registry
|
|
45
50
|
*/
|
|
46
51
|
export declare const worktreeRegistry: WorktreeRegistryImpl;
|
|
52
|
+
/**
|
|
53
|
+
* Deadline for metadata-only git queries (`rev-parse`, `worktree list`). These
|
|
54
|
+
* read `.git` and return immediately on a healthy repository; anything slower
|
|
55
|
+
* means the filesystem under `cwd` is not answering.
|
|
56
|
+
*/
|
|
57
|
+
export declare const GIT_QUERY_TIMEOUT_MS = 15000;
|
|
58
|
+
/**
|
|
59
|
+
* Deadline for git operations that touch the working tree (`worktree add`,
|
|
60
|
+
* `worktree remove`, `worktree prune`). Checking out a large tree is legitimate
|
|
61
|
+
* work, so the budget is wider than a query's.
|
|
62
|
+
*/
|
|
63
|
+
export declare const GIT_WORKTREE_TIMEOUT_MS = 120000;
|
|
47
64
|
/**
|
|
48
65
|
* Walk up from `fromDir` to find the git repository root.
|
|
49
66
|
* @param fromDir - Any directory inside a git repository.
|
|
50
67
|
* @returns Absolute path to the repository root.
|
|
51
|
-
* @throws {Error} when no git repository is found
|
|
68
|
+
* @throws {Error} when no git repository is found, or when git does not answer
|
|
69
|
+
* within {@link GIT_QUERY_TIMEOUT_MS}.
|
|
52
70
|
* @docLink packages/connectors/api-reference#find-git-root
|
|
53
71
|
*/
|
|
54
|
-
export declare function findGitRoot(fromDir: string): string
|
|
72
|
+
export declare function findGitRoot(fromDir: string): Promise<string>;
|
|
55
73
|
/**
|
|
56
74
|
* Create a git worktree for `ref` under `baseDir` and register it with `worktreeRegistry`.
|
|
57
75
|
* The returned `WorktreeResult.cleanup()` removes the worktree when no other owners remain.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worktree.d.ts","sourceRoot":"","sources":["../../../connectors/src/worktree.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"worktree.d.ts","sourceRoot":"","sources":["../../../connectors/src/worktree.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAYH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,oCAAoC;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oEAAoE;IACpE,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,0DAA0D;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,cAAM,oBAAoB;IACxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAkC;IAE1D,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAS3C,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAO7C,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI9B,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE;CAG/B;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sBAA6B,CAAC;AAI3D;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,QAAS,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,SAAU,CAAC;AAkC/C;;;;;;;GAOG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAElE;AAID;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,OAAO,CAAC,cAAc,CAAC,CAgD1B;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAkB7E"}
|
package/dist/core/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
export { ALL_PROVIDERS, ManifestYamlEditor, SETTINGS_DEFAULTS, WorkspaceYamlEditor, applyPatch, buildLockFile, checkAgentSkillConformance, computeHash, detectEnvApiKeys, extractForPatch, generatePatch, globalSettingsPath, listPatches, loadSettings, mapLegacyFields, maskApiKey, migrateSettings, portableSpawn, portableSpawnSync, projectSettingsPath, providerEnvKey, readLock, readPatch, readPluginsLockSlice, resolveAllKeys, resolveApiKey, resolveSettings, savePatch, saveSettings, verifyLock, walkForSettings, writeLock, writePluginsLockSlice } from '../chunk-
|
|
1
|
+
export { ALL_PROVIDERS, ManifestYamlEditor, SETTINGS_DEFAULTS, WorkspaceYamlEditor, applyPatch, buildLockFile, checkAgentSkillConformance, computeHash, detectEnvApiKeys, extractForPatch, generatePatch, globalSettingsPath, listPatches, loadSettings, mapLegacyFields, maskApiKey, migrateSettings, portableSpawn, portableSpawnSync, projectSettingsPath, providerEnvKey, readLock, readPatch, readPluginsLockSlice, resolveAllKeys, resolveApiKey, resolveSettings, savePatch, saveSettings, verifyLock, walkForSettings, writeLock, writePluginsLockSlice } from '../chunk-ST3DLLNZ.js';
|
|
2
2
|
export { DRIVER_DEFAULTS, resolveDriverPaths } from '../chunk-K5GBV4SA.js';
|
|
3
3
|
export { ASSET_KIND_DIRS, assetSearchDirs, detectAiResources, detectDomains, detectMonorepoRoot } from '../chunk-ZAP2BDHG.js';
|
|
4
|
-
export { FACTORY_ASSETS_REPO_NAME, factoryAssetRoots, resolveFactoryAssetsRoot, resolveFactoryAssetsRootOrNull, resolvePackagedAssetsDir, resolveRuntimeAssets, resolveWorkspacesPackageRoot } from '../chunk-
|
|
5
|
-
export { COMPACTION_DEFAULTS, CanonicalRefConflictError, DEFAULT_RECIPE_ATTR, SKAILE_YAML_DEFAULT, SK_WORKSPACE_DEFAULT_NAME, SK_WORKSPACE_SUFFIX, __resetCacheMigrationMemo, buildProvenanceIndex, checkRepoStatus, checkoutPin, cloneRepo, cloudConfigFromProfile, coerceVersion, decodeSkaileYaml, deriveSingleMaterializedMcpDeclaration, encodeSkaileYaml, ensureRepo, findWorkspaceRoot, getGlobalCacheDir, getRepoCommit, globalCacheRoot, globalSkaileDir, linkRepo, listSkWorkspaceConfigs, loadMcpServerDeclarations, loadSkWorkspaceConfig, matchPin, mergeLegacyEntriesInto, mergeLegacyEntriesKeyed, mergeSkWorkspaceConfigs, migrateLegacyDir, normalizeConfig, pullRepo, readLinks, resolveAgentDir, resolveAll, resolveAsset, resolveGlobalBackends, resolveGlobalSkWorkspaceConfig, resolveSkWorkspaceConfig, resolveSourcePublisher, saveSkWorkspaceConfig, scanRepo, sourceCacheKey, sourceShortName, stageMaterializedSkills, storeManifestSlug, unlinkRepo, validateAssetRecipeAttr, validateAssetRecipeFlake, workspaceConfigFilename, writeLinks } from '../chunk-
|
|
4
|
+
export { FACTORY_ASSETS_REPO_NAME, factoryAssetRoots, resolveFactoryAssetsRoot, resolveFactoryAssetsRootOrNull, resolvePackagedAssetsDir, resolveRuntimeAssets, resolveWorkspacesPackageRoot } from '../chunk-MMD2KQ3A.js';
|
|
5
|
+
export { COMPACTION_DEFAULTS, CanonicalRefConflictError, DEFAULT_RECIPE_ATTR, SKAILE_YAML_DEFAULT, SK_WORKSPACE_DEFAULT_NAME, SK_WORKSPACE_SUFFIX, __resetCacheMigrationMemo, buildProvenanceIndex, checkRepoStatus, checkoutPin, cloneRepo, cloudConfigFromProfile, coerceVersion, decodeSkaileYaml, deriveSingleMaterializedMcpDeclaration, encodeSkaileYaml, ensureRepo, findWorkspaceRoot, getGlobalCacheDir, getRepoCommit, globalCacheRoot, globalSkaileDir, linkRepo, listSkWorkspaceConfigs, loadMcpServerDeclarations, loadSkWorkspaceConfig, matchPin, mergeLegacyEntriesInto, mergeLegacyEntriesKeyed, mergeSkWorkspaceConfigs, migrateLegacyDir, normalizeConfig, pullRepo, readLinks, resolveAgentDir, resolveAll, resolveAsset, resolveGlobalBackends, resolveGlobalSkWorkspaceConfig, resolveSkWorkspaceConfig, resolveSourcePublisher, saveSkWorkspaceConfig, scanRepo, sourceCacheKey, sourceShortName, stageMaterializedSkills, storeManifestSlug, unlinkRepo, validateAssetRecipeAttr, validateAssetRecipeFlake, workspaceConfigFilename, writeLinks } from '../chunk-72EOJJOM.js';
|
|
6
6
|
export { SKAILE_MANIFEST_FILENAME, decodeSkaileManifest, encodeSkaileManifest, loadSkPublishManifest, saveSkPublishManifest } from '../chunk-P4VHQA4N.js';
|
|
7
|
-
export { bundleDepRefs, fromAgentMd, fromAgentYaml, fromBundleYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromMcpServerMd, fromMcpServerMdContent, fromPromptMd, fromSkillMd, parseFrontmatter, parseRequires, scanDirectory, walkDir } from '../chunk-
|
|
7
|
+
export { DEFAULT_FS_DEADLINE_MS, DEFAULT_WALK_BUDGET_MS, DEFAULT_WALK_MAX_DEPTH, DEFAULT_WALK_MAX_ENTRIES, FS_DEADLINE_ENV_VAR, FsDeadlineError, WALK_BUDGET_MS_ENV_VAR, WALK_MAX_DEPTH_ENV_VAR, WALK_MAX_ENTRIES_ENV_VAR, bundleDepRefs, fromAgentMd, fromAgentYaml, fromBundleYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromMcpServerMd, fromMcpServerMdContent, fromPromptMd, fromSkillMd, fsDeadlineMs, parseFrontmatter, parseRequires, scanDirectory, tryWithFsDeadline, walkDir, withFsDeadline } from '../chunk-DYMWJAL4.js';
|
|
8
8
|
export { ASSET_KINDS, ASSET_NAME_HINT, INDIVIDUAL_KINDS, assetRefToDep, assetRefToStr, depToStr, entryFromRaw, entryToRaw, isValidAssetName, parseAssetRef, parseDep, repositoryFromRaw, repositoryToRaw, slugifyAssetName } from '../chunk-GEEW6SY2.js';
|
|
9
9
|
export { deployedBase, deployedDir, isDeployed } from '../chunk-F3HNW354.js';
|
|
10
10
|
export { DRIVER_TARGETS, SUPPORTED_DRIVER_TARGETS, globalBackendRoot } from '../chunk-MENCWIHW.js';
|
|
11
|
-
export {
|
|
11
|
+
export { OnLogBridgeSink, SqliteSink, WsLogSink, createLogStoreFromConfig, openSqlite, resolveLogStoreConfig } from '../chunk-U5POE4BA.js';
|
|
12
|
+
export { LogStore, LogStoreDisabledError, NoOpSink, StdoutSink, createLogger, getLogStore, normalizeError, registerLogStore, resetLogStore, sanitizeData } from '../chunk-7GOCNYUV.js';
|
|
12
13
|
import '../chunk-NSBPE2FW.js';
|
|
13
14
|
//# sourceMappingURL=index.js.map
|
|
14
15
|
//# sourceMappingURL=index.js.map
|
package/dist/core/logging.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { OnLogBridgeSink, SqliteSink, WsLogSink, createLogStoreFromConfig, openSqlite, resolveLogStoreConfig } from '../chunk-U5POE4BA.js';
|
|
2
|
+
export { LogStore, LogStoreDisabledError, NoOpSink, StdoutSink, createLogger, getLogStore, normalizeError, registerLogStore, resetLogStore, sanitizeData } from '../chunk-7GOCNYUV.js';
|
|
2
3
|
import '../chunk-NSBPE2FW.js';
|
|
3
4
|
//# sourceMappingURL=logging.js.map
|
|
4
5
|
//# sourceMappingURL=logging.js.map
|
package/dist/core/manifest.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { bundleDepRefs, fromAgentMd, fromAgentYaml, fromBundleYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromKnowledgeYaml, fromMcpServerMd, fromMcpServerMdContent, fromPromptMd, fromSkillMd, parseFrontmatter, parseRequires, scanDirectory, walkDir } from '../chunk-
|
|
1
|
+
export { DEFAULT_WALK_BUDGET_MS, DEFAULT_WALK_MAX_DEPTH, DEFAULT_WALK_MAX_ENTRIES, WALK_BUDGET_MS_ENV_VAR, WALK_MAX_DEPTH_ENV_VAR, WALK_MAX_ENTRIES_ENV_VAR, bundleDepRefs, fromAgentMd, fromAgentYaml, fromBundleYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromKnowledgeYaml, fromMcpServerMd, fromMcpServerMdContent, fromPromptMd, fromSkillMd, parseFrontmatter, parseRequires, scanDirectory, walkDir } from '../chunk-DYMWJAL4.js';
|
|
2
2
|
import '../chunk-GEEW6SY2.js';
|
|
3
|
+
import '../chunk-7GOCNYUV.js';
|
|
3
4
|
import '../chunk-NSBPE2FW.js';
|
|
4
5
|
//# sourceMappingURL=manifest.js.map
|
|
5
6
|
//# sourceMappingURL=manifest.js.map
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export { FACTORY_ASSETS_REPO_NAME, factoryAssetRoots, resolveFactoryAssetsRoot, resolveFactoryAssetsRootOrNull, resolvePackagedAssetsDir, resolveRuntimeAssets, resolveWorkspacesPackageRoot } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { FACTORY_ASSETS_REPO_NAME, factoryAssetRoots, resolveFactoryAssetsRoot, resolveFactoryAssetsRootOrNull, resolvePackagedAssetsDir, resolveRuntimeAssets, resolveWorkspacesPackageRoot } from '../chunk-MMD2KQ3A.js';
|
|
2
|
+
import '../chunk-72EOJJOM.js';
|
|
3
3
|
import '../chunk-P4VHQA4N.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-DYMWJAL4.js';
|
|
5
5
|
import '../chunk-GEEW6SY2.js';
|
|
6
6
|
import '../chunk-MENCWIHW.js';
|
|
7
|
+
import '../chunk-7GOCNYUV.js';
|
|
7
8
|
import '../chunk-NSBPE2FW.js';
|
|
8
9
|
//# sourceMappingURL=runtime-assets.js.map
|
|
9
10
|
//# sourceMappingURL=runtime-assets.js.map
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deadline guards for filesystem work that can land on a network mount.
|
|
3
|
+
*
|
|
4
|
+
* Inside the agent container `/skaile/workspace` **is** an rclone FUSE mount
|
|
5
|
+
* (SharePoint / OneDrive / WebDAV). When the host rclone process wedges, a
|
|
6
|
+
* filesystem call against that path parks in an uninterruptible kernel wait.
|
|
7
|
+
* A **synchronous** call there stops the entire single-threaded event loop —
|
|
8
|
+
* the whole `skaile serve` process stops serving, and the platform reads the
|
|
9
|
+
* session as dead or idle. A hang is not an error, so `try/catch` never fires.
|
|
10
|
+
*
|
|
11
|
+
* Two rules follow, and both matter:
|
|
12
|
+
*
|
|
13
|
+
* 1. **Never touch a mount synchronously.** Async `node:fs/promises` keeps the
|
|
14
|
+
* loop free, so a wedged mount degrades to one stuck request instead of a
|
|
15
|
+
* dead session. This is the actual fix.
|
|
16
|
+
* 2. **Bound the wait.** {@link withFsDeadline} converts an unbounded wait into
|
|
17
|
+
* a bounded failure so the requester gets an error rather than nothing.
|
|
18
|
+
*
|
|
19
|
+
* `withFsDeadline` does **not** cancel the underlying operation — Node cannot
|
|
20
|
+
* abort a syscall already in the kernel. The losing promise stays pending until
|
|
21
|
+
* the mount recovers or the process exits. That is acceptable precisely because
|
|
22
|
+
* rule 1 holds: a pending promise costs one handle, not the event loop.
|
|
23
|
+
*
|
|
24
|
+
* Modelled on `connectors/src/fleet-utils.ts` (`ensureFleetMounted`), which
|
|
25
|
+
* already does async-stat-with-deadline correctly.
|
|
26
|
+
*/
|
|
27
|
+
/** Default deadline for a single filesystem operation on a possibly-networked mount. */
|
|
28
|
+
export declare const DEFAULT_FS_DEADLINE_MS = 15000;
|
|
29
|
+
/**
|
|
30
|
+
* Env override for {@link DEFAULT_FS_DEADLINE_MS}, in milliseconds.
|
|
31
|
+
*
|
|
32
|
+
* A cloud-backed mount over a slow link can legitimately need longer than the
|
|
33
|
+
* default; operators raise this rather than patching call sites.
|
|
34
|
+
*/
|
|
35
|
+
export declare const FS_DEADLINE_ENV_VAR = "SKAILE_FS_DEADLINE_MS";
|
|
36
|
+
/**
|
|
37
|
+
* Thrown when a filesystem operation misses its deadline.
|
|
38
|
+
*
|
|
39
|
+
* Distinct from a plain `Error` so callers can tell "the mount is wedged" apart
|
|
40
|
+
* from "the file does not exist" and surface the right message to the frontend.
|
|
41
|
+
*/
|
|
42
|
+
export declare class FsDeadlineError extends Error {
|
|
43
|
+
readonly timeoutMs: number;
|
|
44
|
+
readonly operation: string;
|
|
45
|
+
constructor(operation: string, timeoutMs: number);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Resolve the effective filesystem deadline.
|
|
49
|
+
*
|
|
50
|
+
* Reads {@link FS_DEADLINE_ENV_VAR} on every call rather than caching it: the
|
|
51
|
+
* runner mutates `process.env` while wiring a session, so a module-load-time
|
|
52
|
+
* snapshot would pin the value set before configuration ran.
|
|
53
|
+
*
|
|
54
|
+
* @param fallback - Deadline to use when the env var is absent or unusable.
|
|
55
|
+
* @returns The deadline in milliseconds.
|
|
56
|
+
*/
|
|
57
|
+
export declare function fsDeadlineMs(fallback?: number): number;
|
|
58
|
+
/**
|
|
59
|
+
* Run an async filesystem operation under a deadline.
|
|
60
|
+
*
|
|
61
|
+
* @param operation - Short label used in the timeout message (e.g. `"readdir /skaile/workspace"`).
|
|
62
|
+
* @param fn - Thunk performing the operation. Called immediately.
|
|
63
|
+
* @param timeoutMs - Deadline override; defaults to {@link fsDeadlineMs}.
|
|
64
|
+
* @returns The operation's result.
|
|
65
|
+
* @throws {FsDeadlineError} when the deadline elapses first.
|
|
66
|
+
* @throws Whatever `fn` rejects with, unchanged, when it loses no race.
|
|
67
|
+
* @docLink packages/core/api-reference#with-fs-deadline
|
|
68
|
+
*/
|
|
69
|
+
export declare function withFsDeadline<T>(operation: string, fn: () => Promise<T>, timeoutMs?: number): Promise<T>;
|
|
70
|
+
/**
|
|
71
|
+
* Run an async filesystem operation under a deadline, mapping every failure to
|
|
72
|
+
* `fallback`.
|
|
73
|
+
*
|
|
74
|
+
* For best-effort probes that previously used `existsSync` — a missing file, an
|
|
75
|
+
* unreadable file, and a wedged mount are all "nothing usable here", and the
|
|
76
|
+
* caller has no better move than to continue without it.
|
|
77
|
+
*
|
|
78
|
+
* @param operation - Short label used in the timeout message.
|
|
79
|
+
* @param fn - Thunk performing the operation.
|
|
80
|
+
* @param fallback - Value returned when `fn` rejects or the deadline elapses.
|
|
81
|
+
* @param timeoutMs - Deadline override; defaults to {@link fsDeadlineMs}.
|
|
82
|
+
*/
|
|
83
|
+
export declare function tryWithFsDeadline<T>(operation: string, fn: () => Promise<T>, fallback: T, timeoutMs?: number): Promise<T>;
|
|
84
|
+
//# sourceMappingURL=fs-deadline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fs-deadline.d.ts","sourceRoot":"","sources":["../../../core/src/fs-deadline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,wFAAwF;AACxF,eAAO,MAAM,sBAAsB,QAAS,CAAC;AAE7C;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAE3D;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,KAAK;IACxC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;gBAEf,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;CAQjD;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,QAAQ,GAAE,MAA+B,GAAG,MAAM,CAO9E;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,cAAc,CAAC,CAAC,EACpC,SAAS,EAAE,MAAM,EACjB,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACpB,SAAS,GAAE,MAAuB,GACjC,OAAO,CAAC,CAAC,CAAC,CAeZ;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,iBAAiB,CAAC,CAAC,EACvC,SAAS,EAAE,MAAM,EACjB,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACpB,QAAQ,EAAE,CAAC,EACX,SAAS,GAAE,MAAuB,GACjC,OAAO,CAAC,CAAC,CAAC,CAMZ"}
|
package/dist/core/src/index.d.ts
CHANGED
|
@@ -18,9 +18,10 @@ export type { DriverPaths } from "./framework.js";
|
|
|
18
18
|
export { DRIVER_DEFAULTS, resolveDriverPaths } from "./framework.js";
|
|
19
19
|
export type { VerifyResult } from "./lock.js";
|
|
20
20
|
export { buildLockFile, computeHash, readLock, readPluginsLockSlice, verifyLock, writeLock, writePluginsLockSlice, } from "./lock.js";
|
|
21
|
+
export { DEFAULT_FS_DEADLINE_MS, FS_DEADLINE_ENV_VAR, FsDeadlineError, fsDeadlineMs, tryWithFsDeadline, withFsDeadline, } from "./fs-deadline.js";
|
|
21
22
|
export * from "./logging/index.js";
|
|
22
|
-
export type { FrontmatterResult } from "./manifest.js";
|
|
23
|
-
export { bundleDepRefs, fromAgentMd, fromAgentYaml, fromBundleYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromMcpServerMd, fromMcpServerMdContent, fromPromptMd, fromSkillMd, parseFrontmatter, parseRequires, scanDirectory, walkDir, } from "./manifest.js";
|
|
23
|
+
export type { FrontmatterResult, WalkOptions, WalkTruncation } from "./manifest.js";
|
|
24
|
+
export { bundleDepRefs, DEFAULT_WALK_BUDGET_MS, DEFAULT_WALK_MAX_DEPTH, DEFAULT_WALK_MAX_ENTRIES, fromAgentMd, fromAgentYaml, fromBundleYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromMcpServerMd, fromMcpServerMdContent, fromPromptMd, fromSkillMd, parseFrontmatter, parseRequires, scanDirectory, WALK_BUDGET_MS_ENV_VAR, WALK_MAX_DEPTH_ENV_VAR, WALK_MAX_ENTRIES_ENV_VAR, walkDir, } from "./manifest.js";
|
|
24
25
|
export { ManifestYamlEditor } from "./manifest-yaml-editor.js";
|
|
25
26
|
export type { AgentManifest, AssetKind, AssetRef, CatalogDomain, CatalogEntry, Dependency, DomainRelation, LockEntry, LockFile, LockFileEntry, LockPluginEntry, LockSourceEntry, Repository, } from "./models.js";
|
|
26
27
|
export { ASSET_KINDS, ASSET_NAME_HINT, assetRefToDep, assetRefToStr, depToStr, entryFromRaw, entryToRaw, INDIVIDUAL_KINDS, isValidAssetName, parseAssetRef, parseDep, repositoryFromRaw, repositoryToRaw, slugifyAssetName, } from "./models.js";
|
|
@@ -35,7 +36,7 @@ export { FACTORY_ASSETS_REPO_NAME, factoryAssetRoots, resolveFactoryAssetsRoot,
|
|
|
35
36
|
export type { Provider, ResolvedKey, SkaileSettings } from "./settings.js";
|
|
36
37
|
export { ALL_PROVIDERS, detectEnvApiKeys, globalSettingsPath, loadSettings, mapLegacyFields, maskApiKey, migrateSettings, projectSettingsPath, providerEnvKey, resolveAllKeys, resolveApiKey, resolveSettings, SETTINGS_DEFAULTS, saveSettings, walkForSettings, } from "./settings.js";
|
|
37
38
|
export { deployedBase, deployedDir, isDeployed } from "./store.js";
|
|
38
|
-
export type { PortableSpawnOptions, PortableSpawnSyncResult, PortableSubprocess, } from "./subprocess.js";
|
|
39
|
+
export type { PortableSpawnOptions, PortableSpawnSyncOptions, PortableSpawnSyncResult, PortableSubprocess, } from "./subprocess.js";
|
|
39
40
|
export { portableSpawn, portableSpawnSync } from "./subprocess.js";
|
|
40
41
|
export type { ProvenanceCandidate, ProvenanceIndex, SourceClone, } from "./walker.js";
|
|
41
42
|
export { buildProvenanceIndex } from "./walker.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,EACL,yBAAyB,EACzB,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AAExB,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAElG,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAErE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EACL,aAAa,EACb,WAAW,EACX,QAAQ,EACR,oBAAoB,EACpB,UAAU,EACV,SAAS,EACT,qBAAqB,GACtB,MAAM,WAAW,CAAC;AAEnB,cAAc,oBAAoB,CAAC;AAEnC,YAAY,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/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