@skaile/workspaces 6.15.0 → 6.16.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 +73 -0
- package/dist/agent-file-refresh-76NNFB4W.js +89 -0
- package/dist/agent-file-refresh-76NNFB4W.js.map +1 -0
- package/dist/ai-sdk.js +8 -7
- package/dist/ai-sdk.js.map +1 -1
- package/dist/{asset-feeds-PM7FKHJP.js → asset-feeds-ON7FYHHF.js} +25 -23
- package/dist/asset-feeds-ON7FYHHF.js.map +1 -0
- package/dist/asset-manager/catalog-deployer.js +8 -7
- package/dist/asset-manager/history.js +7 -6
- package/dist/asset-manager/index.js +17 -15
- package/dist/asset-manager/installer.js +16 -9
- package/dist/asset-manager/renderers.js +8 -8
- package/dist/asset-manager/src/add-remove/add.d.ts +134 -0
- package/dist/asset-manager/src/add-remove/add.d.ts.map +1 -0
- package/dist/asset-manager/src/add-remove/remove.d.ts +329 -0
- package/dist/asset-manager/src/add-remove/remove.d.ts.map +1 -0
- package/dist/asset-manager/src/agent-render.d.ts +116 -0
- package/dist/asset-manager/src/agent-render.d.ts.map +1 -0
- package/dist/asset-manager/src/composed-blocks.d.ts +40 -0
- package/dist/asset-manager/src/composed-blocks.d.ts.map +1 -0
- package/dist/asset-manager/src/config/core.d.ts +297 -0
- package/dist/asset-manager/src/config/core.d.ts.map +1 -0
- package/dist/asset-manager/src/config/edit.d.ts +161 -0
- package/dist/asset-manager/src/config/edit.d.ts.map +1 -0
- package/dist/asset-manager/src/index.d.ts +31 -2961
- package/dist/asset-manager/src/index.d.ts.map +1 -1
- package/dist/asset-manager/src/install/clone-commit-fetcher.d.ts +11 -0
- package/dist/asset-manager/src/install/clone-commit-fetcher.d.ts.map +1 -0
- package/dist/asset-manager/src/install/install.d.ts +151 -0
- package/dist/asset-manager/src/install/install.d.ts.map +1 -0
- package/dist/asset-manager/src/install/restore.d.ts +76 -0
- package/dist/asset-manager/src/install/restore.d.ts.map +1 -0
- package/dist/asset-manager/src/install-agent.d.ts +52 -4
- package/dist/asset-manager/src/install-agent.d.ts.map +1 -1
- package/dist/asset-manager/src/install-instances.d.ts +70 -2
- package/dist/asset-manager/src/install-instances.d.ts.map +1 -1
- package/dist/asset-manager/src/installer.d.ts +54 -4
- package/dist/asset-manager/src/installer.d.ts.map +1 -1
- package/dist/asset-manager/src/lock/copies.d.ts +156 -0
- package/dist/asset-manager/src/lock/copies.d.ts.map +1 -0
- package/dist/asset-manager/src/lock/library.d.ts +261 -0
- package/dist/asset-manager/src/lock/library.d.ts.map +1 -0
- package/dist/asset-manager/src/mcp-render.d.ts +86 -0
- package/dist/asset-manager/src/mcp-render.d.ts.map +1 -0
- package/dist/asset-manager/src/omp-sweep.d.ts +25 -0
- package/dist/asset-manager/src/omp-sweep.d.ts.map +1 -0
- package/dist/asset-manager/src/read/diff.d.ts +109 -0
- package/dist/asset-manager/src/read/diff.d.ts.map +1 -0
- package/dist/asset-manager/src/read/doctor.d.ts +116 -0
- package/dist/asset-manager/src/read/doctor.d.ts.map +1 -0
- package/dist/asset-manager/src/read/gaps.d.ts +120 -0
- package/dist/asset-manager/src/read/gaps.d.ts.map +1 -0
- package/dist/asset-manager/src/read/graph.d.ts +69 -0
- package/dist/asset-manager/src/read/graph.d.ts.map +1 -0
- package/dist/asset-manager/src/read/outdated.d.ts +152 -0
- package/dist/asset-manager/src/read/outdated.d.ts.map +1 -0
- package/dist/asset-manager/src/read/state.d.ts +265 -0
- package/dist/asset-manager/src/read/state.d.ts.map +1 -0
- package/dist/asset-manager/src/renderers.d.ts +11 -1
- package/dist/asset-manager/src/renderers.d.ts.map +1 -1
- package/dist/asset-manager/src/resolve/guards.d.ts +167 -0
- package/dist/asset-manager/src/resolve/guards.d.ts.map +1 -0
- package/dist/asset-manager/src/resolve/scan.d.ts +222 -0
- package/dist/asset-manager/src/resolve/scan.d.ts.map +1 -0
- package/dist/asset-manager/src/resolve/stores.d.ts +176 -0
- package/dist/asset-manager/src/resolve/stores.d.ts.map +1 -0
- package/dist/asset-manager/src/shared/files.d.ts +42 -0
- package/dist/asset-manager/src/shared/files.d.ts.map +1 -0
- package/dist/asset-manager/src/shared/library-hooks.d.ts +16 -0
- package/dist/asset-manager/src/shared/library-hooks.d.ts.map +1 -0
- package/dist/asset-manager/src/shared/library.d.ts +96 -0
- package/dist/asset-manager/src/shared/library.d.ts.map +1 -0
- package/dist/asset-manager/src/shared/refs.d.ts +101 -0
- package/dist/asset-manager/src/shared/refs.d.ts.map +1 -0
- package/dist/asset-manager/src/shared/types.d.ts +399 -0
- package/dist/asset-manager/src/shared/types.d.ts.map +1 -0
- package/dist/bridge/harnesses/claude-sdk.js +11 -17
- package/dist/bridge/harnesses/claude-sdk.js.map +1 -1
- package/dist/bridge/harnesses/codex.js +10 -10
- package/dist/bridge/harnesses/continue.js +12 -16
- package/dist/bridge/harnesses/continue.js.map +1 -1
- package/dist/bridge/harnesses/echo.js +3 -8
- package/dist/bridge/harnesses/echo.js.map +1 -1
- package/dist/bridge/harnesses/gemini.js +5 -5
- package/dist/bridge/harnesses/goose.js +13 -17
- package/dist/bridge/harnesses/goose.js.map +1 -1
- package/dist/bridge/harnesses/omp.js +5 -11
- package/dist/bridge/harnesses/omp.js.map +1 -1
- package/dist/bridge/harnesses/opencode.js +13 -17
- package/dist/bridge/harnesses/opencode.js.map +1 -1
- package/dist/bridge/harnesses/qwen.js +6 -11
- package/dist/bridge/harnesses/qwen.js.map +1 -1
- package/dist/bridge/index.js +16 -16
- package/dist/bridge/src/codex/managed-harness.d.ts.map +1 -1
- package/dist/bridge/src/driver-contract.d.ts +72 -0
- package/dist/bridge/src/driver-contract.d.ts.map +1 -0
- package/dist/bridge/src/harness-model-check.d.ts +1 -1
- package/dist/bridge/src/harness-model-check.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/_subprocess-cli.d.ts +8 -0
- package/dist/bridge/src/harnesses/_subprocess-cli.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/claude-sdk.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/codex.d.ts +2 -0
- package/dist/bridge/src/harnesses/codex.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/continue.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/echo.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/gemini.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/goose.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/omp.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/opencode.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/qwen.d.ts.map +1 -1
- package/dist/bridge/src/index.d.ts +2 -0
- package/dist/bridge/src/index.d.ts.map +1 -1
- package/dist/bridge/src/preflight.d.ts +114 -0
- package/dist/bridge/src/preflight.d.ts.map +1 -0
- package/dist/bridge/src/registry.d.ts +12 -0
- package/dist/bridge/src/registry.d.ts.map +1 -1
- package/dist/{chunk-MUQBP2BK.js → chunk-2JUCWMIS.js} +8808 -8337
- package/dist/chunk-2JUCWMIS.js.map +1 -0
- package/dist/{chunk-VS6XC5JE.js → chunk-2MTRRK37.js} +3 -3
- package/dist/{chunk-VS6XC5JE.js.map → chunk-2MTRRK37.js.map} +1 -1
- package/dist/chunk-2PJYJPDE.js +3 -0
- package/dist/chunk-2PJYJPDE.js.map +1 -0
- package/dist/{chunk-J7FEWDRQ.js → chunk-2SSG5B24.js} +4 -4
- package/dist/{chunk-J7FEWDRQ.js.map → chunk-2SSG5B24.js.map} +1 -1
- package/dist/{chunk-WDG5IVEA.js → chunk-2ZDZJ7XQ.js} +3 -3
- package/dist/{chunk-WDG5IVEA.js.map → chunk-2ZDZJ7XQ.js.map} +1 -1
- package/dist/{chunk-V2VDTQ7A.js → chunk-3A7JUOY2.js} +3 -3
- package/dist/{chunk-V2VDTQ7A.js.map → chunk-3A7JUOY2.js.map} +1 -1
- package/dist/chunk-3LAJJURV.js +26 -0
- package/dist/chunk-3LAJJURV.js.map +1 -0
- package/dist/{chunk-FJJEC6O2.js → chunk-3UYKT62L.js} +5 -5
- package/dist/{chunk-FJJEC6O2.js.map → chunk-3UYKT62L.js.map} +1 -1
- package/dist/{chunk-HCIXCCUH.js → chunk-4X5WXQV7.js} +4 -4
- package/dist/{chunk-HCIXCCUH.js.map → chunk-4X5WXQV7.js.map} +1 -1
- package/dist/chunk-4ZNKEDYH.js +887 -0
- package/dist/chunk-4ZNKEDYH.js.map +1 -0
- package/dist/{chunk-R7422XD4.js → chunk-65SOXO7I.js} +20 -14
- package/dist/chunk-65SOXO7I.js.map +1 -0
- package/dist/{chunk-YDMZWVZN.js → chunk-6KV34G6A.js} +8 -8
- package/dist/{chunk-YDMZWVZN.js.map → chunk-6KV34G6A.js.map} +1 -1
- package/dist/{chunk-OIWFXUZB.js → chunk-6M44OQKH.js} +40 -44
- package/dist/chunk-6M44OQKH.js.map +1 -0
- package/dist/{chunk-SXRN27TU.js → chunk-72DYHOO2.js} +24 -25
- package/dist/chunk-72DYHOO2.js.map +1 -0
- package/dist/{chunk-XPSZIBPU.js → chunk-7IW5E6LB.js} +43 -48
- package/dist/chunk-7IW5E6LB.js.map +1 -0
- package/dist/{chunk-BNLXZXZN.js → chunk-BRAOB37W.js} +97 -47
- package/dist/chunk-BRAOB37W.js.map +1 -0
- package/dist/{chunk-ZLDAPZIX.js → chunk-BTMSHGN3.js} +4 -4
- package/dist/{chunk-ZLDAPZIX.js.map → chunk-BTMSHGN3.js.map} +1 -1
- package/dist/{chunk-7K73MCI6.js → chunk-CU5WY6HN.js} +3 -3
- package/dist/{chunk-7K73MCI6.js.map → chunk-CU5WY6HN.js.map} +1 -1
- package/dist/{chunk-CG63XGVV.js → chunk-EGKCKWWE.js} +3 -3
- package/dist/{chunk-CG63XGVV.js.map → chunk-EGKCKWWE.js.map} +1 -1
- package/dist/{chunk-CJO3XKO7.js → chunk-ETGC2MEM.js} +4 -4
- package/dist/{chunk-CJO3XKO7.js.map → chunk-ETGC2MEM.js.map} +1 -1
- package/dist/{chunk-PFBPESW7.js → chunk-FPG36VC4.js} +8 -13
- package/dist/chunk-FPG36VC4.js.map +1 -0
- package/dist/{chunk-SBAUZ7XH.js → chunk-H3PY5DFL.js} +4 -4
- package/dist/{chunk-SBAUZ7XH.js.map → chunk-H3PY5DFL.js.map} +1 -1
- package/dist/{chunk-7HRZACI4.js → chunk-HW4BDJPC.js} +17 -6
- package/dist/chunk-HW4BDJPC.js.map +1 -0
- package/dist/{chunk-7VBD5XUM.js → chunk-IG4YQ7ER.js} +32 -90
- package/dist/chunk-IG4YQ7ER.js.map +1 -0
- package/dist/{chunk-6WIZC6GM.js → chunk-KDRA6FYE.js} +120 -211
- package/dist/chunk-KDRA6FYE.js.map +1 -0
- package/dist/{chunk-KOI7QFDH.js → chunk-M7XIYHWB.js} +3 -3
- package/dist/{chunk-KOI7QFDH.js.map → chunk-M7XIYHWB.js.map} +1 -1
- package/dist/{chunk-7LJUK5JK.js → chunk-MG6QD7GE.js} +201 -43
- package/dist/chunk-MG6QD7GE.js.map +1 -0
- package/dist/{chunk-CWUHUL6W.js → chunk-NAQXDTF3.js} +3 -3
- package/dist/{chunk-CWUHUL6W.js.map → chunk-NAQXDTF3.js.map} +1 -1
- package/dist/{chunk-JIZ35OOU.js → chunk-NJ6UCY2B.js} +3 -3
- package/dist/{chunk-JIZ35OOU.js.map → chunk-NJ6UCY2B.js.map} +1 -1
- package/dist/{chunk-A3G3FHGB.js → chunk-NNJQQYHY.js} +2 -2
- package/dist/{chunk-A3G3FHGB.js.map → chunk-NNJQQYHY.js.map} +1 -1
- package/dist/{chunk-TYRAEMWE.js → chunk-OD4N5O7V.js} +4 -4
- package/dist/{chunk-TYRAEMWE.js.map → chunk-OD4N5O7V.js.map} +1 -1
- package/dist/{chunk-LBJCOEXH.js → chunk-P6FJDT35.js} +27 -7
- package/dist/chunk-P6FJDT35.js.map +1 -0
- package/dist/{chunk-IOXFT5D7.js → chunk-PD42JZWI.js} +3 -3
- package/dist/{chunk-IOXFT5D7.js.map → chunk-PD42JZWI.js.map} +1 -1
- package/dist/{chunk-MS2IXLTC.js → chunk-PMXTBWFD.js} +27 -7
- package/dist/chunk-PMXTBWFD.js.map +1 -0
- package/dist/{chunk-O74SRQ3W.js → chunk-PPSSDUN6.js} +3 -3
- package/dist/{chunk-O74SRQ3W.js.map → chunk-PPSSDUN6.js.map} +1 -1
- package/dist/{chunk-IYXOSBQ4.js → chunk-PRB67LCK.js} +126 -17
- package/dist/chunk-PRB67LCK.js.map +1 -0
- package/dist/{chunk-6VQW2X2F.js → chunk-QUIK7L3Z.js} +9 -9
- package/dist/{chunk-6VQW2X2F.js.map → chunk-QUIK7L3Z.js.map} +1 -1
- package/dist/{chunk-DRUAQ7IY.js → chunk-QUPZKTF3.js} +9 -8
- package/dist/chunk-QUPZKTF3.js.map +1 -0
- package/dist/{chunk-7FXOOUOC.js → chunk-RPRMD7XV.js} +27 -11
- package/dist/chunk-RPRMD7XV.js.map +1 -0
- package/dist/{chunk-U7EJB6LY.js → chunk-S3UOZBGE.js} +20 -3
- package/dist/chunk-S3UOZBGE.js.map +1 -0
- package/dist/{chunk-LQWOU7S2.js → chunk-SFBLZOV5.js} +3 -3
- package/dist/{chunk-LQWOU7S2.js.map → chunk-SFBLZOV5.js.map} +1 -1
- package/dist/{chunk-EB2LKPI6.js → chunk-SMFZ5YGN.js} +4 -4
- package/dist/{chunk-EB2LKPI6.js.map → chunk-SMFZ5YGN.js.map} +1 -1
- package/dist/{chunk-IRIWNKQS.js → chunk-SX54OQQT.js} +4 -4
- package/dist/{chunk-IRIWNKQS.js.map → chunk-SX54OQQT.js.map} +1 -1
- package/dist/{chunk-2PVYDAFN.js → chunk-T65N4CIZ.js} +3 -3
- package/dist/{chunk-2PVYDAFN.js.map → chunk-T65N4CIZ.js.map} +1 -1
- package/dist/{chunk-C5ZCREBI.js → chunk-TVRL3IPZ.js} +3 -3
- package/dist/{chunk-C5ZCREBI.js.map → chunk-TVRL3IPZ.js.map} +1 -1
- package/dist/{chunk-RKTEHX2S.js → chunk-TW5AP6IF.js} +5 -5
- package/dist/{chunk-RKTEHX2S.js.map → chunk-TW5AP6IF.js.map} +1 -1
- package/dist/{chunk-EMIOFJQJ.js → chunk-TYK752MU.js} +3 -3
- package/dist/{chunk-EMIOFJQJ.js.map → chunk-TYK752MU.js.map} +1 -1
- package/dist/{chunk-HPQ2WDYC.js → chunk-U2WPJHRA.js} +5 -5
- package/dist/{chunk-HPQ2WDYC.js.map → chunk-U2WPJHRA.js.map} +1 -1
- package/dist/{chunk-MEU2HHGV.js → chunk-U7P22GEB.js} +386 -46
- package/dist/chunk-U7P22GEB.js.map +1 -0
- package/dist/{chunk-AEFDFCS2.js → chunk-VFEZUSB6.js} +4 -4
- package/dist/{chunk-AEFDFCS2.js.map → chunk-VFEZUSB6.js.map} +1 -1
- package/dist/{chunk-A4VKIVGB.js → chunk-WW22FS74.js} +75 -67
- package/dist/chunk-WW22FS74.js.map +1 -0
- package/dist/{chunk-72PPC4SC.js → chunk-Z23I2JA6.js} +6 -6
- package/dist/{chunk-72PPC4SC.js.map → chunk-Z23I2JA6.js.map} +1 -1
- package/dist/{chunk-KIFAU62K.js → chunk-Z7HLX4V2.js} +4 -4
- package/dist/{chunk-KIFAU62K.js.map → chunk-Z7HLX4V2.js.map} +1 -1
- package/dist/{chunk-YLKOCMU7.js → chunk-ZII54C3E.js} +266 -1032
- package/dist/chunk-ZII54C3E.js.map +1 -0
- package/dist/{chunk-CVUMZTNO.js → chunk-ZQPBYLCS.js} +4 -4
- package/dist/{chunk-CVUMZTNO.js.map → chunk-ZQPBYLCS.js.map} +1 -1
- package/dist/{claude-code-5QYXWC5H.js → claude-code-VL6UM7BZ.js} +4 -4
- package/dist/{claude-code-5QYXWC5H.js.map → claude-code-VL6UM7BZ.js.map} +1 -1
- package/dist/cli/index.js +491 -298
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/src/agent-file-refresh.d.ts +25 -0
- package/dist/cli/src/agent-file-refresh.d.ts.map +1 -0
- package/dist/cli/src/commands/asset-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/catalog.d.ts +9 -2
- package/dist/cli/src/commands/catalog.d.ts.map +1 -1
- package/dist/cli/src/commands/config.d.ts.map +1 -1
- package/dist/cli/src/commands/harness.d.ts +1 -1
- package/dist/cli/src/commands/harness.d.ts.map +1 -1
- package/dist/cli/src/commands/library-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/library-index.d.ts +5 -7
- package/dist/cli/src/commands/library-index.d.ts.map +1 -1
- package/dist/cli/src/commands/library-publish.d.ts.map +1 -1
- package/dist/cli/src/commands/preset-export.d.ts.map +1 -1
- package/dist/cli/src/commands/project.d.ts.map +1 -1
- package/dist/cli/src/commands/run.d.ts.map +1 -1
- package/dist/cli/src/commands/serve-preflight.d.ts +27 -48
- package/dist/cli/src/commands/serve-preflight.d.ts.map +1 -1
- package/dist/cli/src/commands/serve.d.ts.map +1 -1
- package/dist/cli/src/commands/source.d.ts +6 -9
- package/dist/cli/src/commands/source.d.ts.map +1 -1
- package/dist/cli/src/commands/validate.d.ts +6 -0
- package/dist/cli/src/commands/validate.d.ts.map +1 -1
- package/dist/cli/src/config-checks.d.ts.map +1 -1
- package/dist/cli/src/harness-error.d.ts +11 -9
- package/dist/cli/src/harness-error.d.ts.map +1 -1
- package/dist/cli/src/skill-checks.d.ts +48 -74
- package/dist/cli/src/skill-checks.d.ts.map +1 -1
- package/dist/connectors/config.js +5 -5
- package/dist/connectors/index.js +19 -19
- package/dist/{connectors-DLXW27NQ.js → connectors-7EPJRVLJ.js} +22 -22
- package/dist/{connectors-DLXW27NQ.js.map → connectors-7EPJRVLJ.js.map} +1 -1
- package/dist/core/index.js +7 -6
- package/dist/core/manifest.js +2 -2
- package/dist/core/models.js +1 -1
- package/dist/core/publish-manifest.js +3 -3
- package/dist/core/ref.js +1 -1
- package/dist/core/runtime-assets.js +5 -5
- package/dist/core/src/agent-prompt-sections.d.ts +96 -4
- package/dist/core/src/agent-prompt-sections.d.ts.map +1 -1
- package/dist/core/src/check-asset.d.ts +115 -0
- package/dist/core/src/check-asset.d.ts.map +1 -0
- package/dist/core/src/harness-model.d.ts +20 -0
- package/dist/core/src/harness-model.d.ts.map +1 -0
- package/dist/core/src/index.d.ts +10 -6
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/core/src/lock.d.ts +12 -10
- package/dist/core/src/lock.d.ts.map +1 -1
- package/dist/core/src/models.d.ts +42 -11
- package/dist/core/src/models.d.ts.map +1 -1
- package/dist/core/src/publish-manifest.d.ts +17 -0
- package/dist/core/src/publish-manifest.d.ts.map +1 -1
- package/dist/core/src/repo-identity.d.ts +41 -0
- package/dist/core/src/repo-identity.d.ts.map +1 -0
- package/dist/core/src/repo-manager.d.ts +3 -9
- package/dist/core/src/repo-manager.d.ts.map +1 -1
- package/dist/core/src/walker.d.ts.map +1 -1
- package/dist/core/src/workspace-config.d.ts.map +1 -1
- package/dist/core/workspace-config.js +4 -4
- package/dist/deploy/index.js +7 -6
- package/dist/deploy/index.js.map +1 -1
- package/dist/discovery/index.js +5 -5
- package/dist/discovery/src/source-config.d.ts.map +1 -1
- package/dist/{ensure-sources-I7GCXPXK.js → ensure-sources-CI3JQJST.js} +30 -28
- package/dist/ensure-sources-CI3JQJST.js.map +1 -0
- package/dist/factory-assets/connectors/box.js +19 -19
- package/dist/factory-assets/connectors/deploy.js +19 -19
- package/dist/factory-assets/connectors/devserver.js +19 -19
- package/dist/factory-assets/connectors/flow/adapter.js +19 -19
- package/dist/factory-assets/connectors/flow/engine.js +8 -7
- package/dist/factory-assets/connectors/flow/run-flow.js +21 -21
- package/dist/factory-assets/connectors/flow.js +19 -19
- package/dist/factory-assets/connectors/git.js +19 -19
- package/dist/factory-assets/connectors/gmail.js +19 -19
- package/dist/factory-assets/connectors/googledrive.js +19 -19
- package/dist/factory-assets/connectors/local.js +19 -19
- package/dist/factory-assets/connectors/mattermost.js +19 -19
- package/dist/factory-assets/connectors/memory.js +19 -19
- package/dist/factory-assets/connectors/minio.js +19 -19
- package/dist/factory-assets/connectors/postgres.js +19 -19
- package/dist/factory-assets/connectors/s3.js +19 -19
- package/dist/factory-assets/connectors/sharepoint.js +19 -19
- package/dist/factory-assets/connectors/sqlite.js +19 -19
- package/dist/factory-assets/connectors/static-server.js +19 -19
- package/dist/factory-assets/connectors/tunnel.js +19 -19
- package/dist/factory-assets/connectors/webdav.js +19 -19
- package/dist/factory-assets/connectors/xstate-store.js +19 -19
- package/dist/factory-assets/connectors/xstate.js +19 -19
- package/dist/{flows-J64L5MGJ.js → flows-6XQAYQS4.js} +12 -11
- package/dist/{flows-J64L5MGJ.js.map → flows-6XQAYQS4.js.map} +1 -1
- package/dist/{helpers-U75UGGH5.js → helpers-26MR5QPO.js} +30 -28
- package/dist/{helpers-U75UGGH5.js.map → helpers-26MR5QPO.js.map} +1 -1
- package/dist/library/index.js +10 -10
- package/dist/library/install.js +4 -4
- package/dist/library/src/index.d.ts +1 -1
- package/dist/library/src/index.d.ts.map +1 -1
- package/dist/library/src/local/db.d.ts.map +1 -1
- package/dist/library/src/local/library-manager.d.ts.map +1 -1
- package/dist/library/src/local/library.d.ts.map +1 -1
- package/dist/library/src/local/schema.d.ts +19 -0
- package/dist/library/src/local/schema.d.ts.map +1 -1
- package/dist/library/src/user-library.d.ts +18 -0
- package/dist/library/src/user-library.d.ts.map +1 -1
- package/dist/{library-publish-57422ULT.js → library-publish-F3AKF66O.js} +71 -65
- package/dist/library-publish-F3AKF66O.js.map +1 -0
- package/dist/model-endpoint/index.js +10 -9
- package/dist/{open-library-EVUKLOV7.js → open-library-FVV6GG4I.js} +33 -31
- package/dist/{open-library-EVUKLOV7.js.map → open-library-FVV6GG4I.js.map} +1 -1
- package/dist/{open-registry-4HNCWOCN.js → open-registry-VX2BVMS5.js} +16 -16
- package/dist/{open-registry-4HNCWOCN.js.map → open-registry-VX2BVMS5.js.map} +1 -1
- package/dist/{paths-PXBWY532.js → paths-PIWSSUUG.js} +10 -9
- package/dist/{paths-PXBWY532.js.map → paths-PIWSSUUG.js.map} +1 -1
- package/dist/{plugin-store-ZC3EGZ3D.js → plugin-store-MVTW6G7J.js} +10 -9
- package/dist/{plugin-store-ZC3EGZ3D.js.map → plugin-store-MVTW6G7J.js.map} +1 -1
- package/dist/{project-HB7OYPEF.js → project-GFQP4TW6.js} +47 -45
- package/dist/{project-HB7OYPEF.js.map → project-GFQP4TW6.js.map} +1 -1
- package/dist/resolver/index.js +8 -7
- package/dist/runner/composition-content.d.ts +2 -0
- package/dist/runner/composition-content.js +29 -0
- package/dist/runner/composition-content.js.map +1 -0
- package/dist/runner/index.js +37 -36
- package/dist/runner/src/composition/content-entry.d.ts +15 -0
- package/dist/runner/src/composition/content-entry.d.ts.map +1 -0
- package/dist/runner/src/composition/content-source.d.ts +7 -0
- package/dist/runner/src/composition/content-source.d.ts.map +1 -1
- package/dist/runner/src/composition/dry-run.d.ts +5 -1
- package/dist/runner/src/composition/dry-run.d.ts.map +1 -1
- package/dist/runner/src/composition/index.d.ts +1 -1
- package/dist/runner/src/composition/index.d.ts.map +1 -1
- package/dist/runner/src/composition/prompt-sections.d.ts +47 -20
- package/dist/runner/src/composition/prompt-sections.d.ts.map +1 -1
- package/dist/runner/src/session-builder.d.ts +3 -8
- package/dist/runner/src/session-builder.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +17 -15
- package/dist/sdk/bridge.js +16 -16
- package/dist/sdk/core.js +7 -6
- package/dist/sdk/flow.js +8 -7
- package/dist/sdk/index.js +37 -36
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/resolver.js +8 -7
- package/dist/sdk/runner.js +37 -36
- package/dist/sdk/transport/ws/server.js +8 -7
- package/dist/sdk/transport/ws.js +8 -7
- package/dist/sdk/transport.js +8 -7
- package/dist/serve-preflight-XJS5OZML.js +138 -0
- package/dist/serve-preflight-XJS5OZML.js.map +1 -0
- package/dist/{setup-2XV6T53V.js → setup-BFEBJLYF.js} +31 -29
- package/dist/setup-BFEBJLYF.js.map +1 -0
- package/dist/{skills-5D4KDVPJ.js → skills-OCG7B5CL.js} +13 -12
- package/dist/{skills-5D4KDVPJ.js.map → skills-OCG7B5CL.js.map} +1 -1
- package/dist/source-P6JPZYWP.js +93 -0
- package/dist/{source-VXE3RSSA.js.map → source-P6JPZYWP.js.map} +1 -1
- package/dist/{source-manifest-publish-IIVQLM67.js → source-manifest-publish-XBFHEURV.js} +51 -49
- package/dist/source-manifest-publish-XBFHEURV.js.map +1 -0
- package/dist/transport/index.js +8 -7
- package/dist/transport/ws/server.js +8 -7
- package/dist/transport/ws.js +8 -7
- package/dist/tui/index.js +37 -36
- package/dist/tui/index.js.map +1 -1
- package/dist/types/src/runtime.d.ts +6 -0
- package/dist/types/src/runtime.d.ts.map +1 -1
- package/dist/workspace-plugin/adapters/mcp.js +26 -26
- package/dist/workspace-plugin/adapters/omp.js +14 -14
- package/dist/workspace-plugin/index.js +1 -1
- package/package.json +7 -1
- package/dist/asset-feeds-PM7FKHJP.js.map +0 -1
- package/dist/chunk-2RVEYDQK.js +0 -110
- package/dist/chunk-2RVEYDQK.js.map +0 -1
- package/dist/chunk-6WIZC6GM.js.map +0 -1
- package/dist/chunk-7FXOOUOC.js.map +0 -1
- package/dist/chunk-7HRZACI4.js.map +0 -1
- package/dist/chunk-7LJUK5JK.js.map +0 -1
- package/dist/chunk-7VBD5XUM.js.map +0 -1
- package/dist/chunk-A4VKIVGB.js.map +0 -1
- package/dist/chunk-BNLXZXZN.js.map +0 -1
- package/dist/chunk-DRUAQ7IY.js.map +0 -1
- package/dist/chunk-IYXOSBQ4.js.map +0 -1
- package/dist/chunk-LBJCOEXH.js.map +0 -1
- package/dist/chunk-MEU2HHGV.js.map +0 -1
- package/dist/chunk-MS2IXLTC.js.map +0 -1
- package/dist/chunk-MUQBP2BK.js.map +0 -1
- package/dist/chunk-OIWFXUZB.js.map +0 -1
- package/dist/chunk-PFBPESW7.js.map +0 -1
- package/dist/chunk-R7422XD4.js.map +0 -1
- package/dist/chunk-SXRN27TU.js.map +0 -1
- package/dist/chunk-U7EJB6LY.js.map +0 -1
- package/dist/chunk-XPSZIBPU.js.map +0 -1
- package/dist/chunk-YLKOCMU7.js.map +0 -1
- package/dist/cli/src/commands/harness-preflight.d.ts +0 -40
- package/dist/cli/src/commands/harness-preflight.d.ts.map +0 -1
- package/dist/ensure-sources-I7GCXPXK.js.map +0 -1
- package/dist/library-publish-57422ULT.js.map +0 -1
- package/dist/serve-preflight-YY3YC6GH.js +0 -61
- package/dist/serve-preflight-YY3YC6GH.js.map +0 -1
- package/dist/setup-2XV6T53V.js.map +0 -1
- package/dist/source-VXE3RSSA.js +0 -91
- package/dist/source-manifest-publish-IIVQLM67.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installer.d.ts","sourceRoot":"","sources":["../../../asset-manager/src/installer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAsBH,OAAO,KAAK,EACV,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,WAAW,EACX,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"installer.d.ts","sourceRoot":"","sources":["../../../asset-manager/src/installer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAsBH,OAAO,KAAK,EACV,mBAAmB,EACnB,wBAAwB,EACxB,WAAW,EACX,cAAc,EACd,YAAY,EACZ,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AAqCjC,OAAO,KAAK,EAAsB,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGzF,OAAO,EAEL,KAAK,gBAAgB,EAMtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAIL,KAAK,GAAG,EACT,MAAM,gBAAgB,CAAC;AAExB,YAAY,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAI1C;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAU7D;AA8DD;;;;;GAKG;AACH,wBAAgB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}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { type LockFile, type LockFileEntry } from "@skaile/workspaces/core";
|
|
2
|
+
import { AmAgentRender } from "../agent-render.js";
|
|
3
|
+
import { type DeployedDrift } from "../installer.js";
|
|
4
|
+
import type { IncompleteDeploy, LockGap, RestoredAsset, RewrittenAgent } from "../shared/types.js";
|
|
5
|
+
/** Rendered agent files per lock key (path -> sha256) before a deploy; see `unrecordedRenderings`. */
|
|
6
|
+
interface RenderSnapshot {
|
|
7
|
+
/** The asset-named files of an agent entry whose lock records no `rendered:` (5.11.0 and older). */
|
|
8
|
+
agent: Map<string, Map<string, string>>;
|
|
9
|
+
/** The files of agent instances the entry's `rendered:` does not list yet (5.13.0 and older). */
|
|
10
|
+
instance: Map<string, Map<string, string>>;
|
|
11
|
+
}
|
|
12
|
+
/** WithCopiedFiles, withRenderedAgents, lockedCopyDrift, restoredCopies. One layer of the `AssetManager` class chain (see `asset-manager/CLAUDE.md`). */
|
|
13
|
+
export declare abstract class AmLockCopies extends AmAgentRender {
|
|
14
|
+
protected abstract lockedComposeDrift(lock: LockFile, kind: string, name: string): Promise<string | undefined>;
|
|
15
|
+
abstract otherKindHint(ref: string): Promise<string | undefined>;
|
|
16
|
+
/**
|
|
17
|
+
* Record, on every library-origin entry of `lock` that is copied into a harness folder, the
|
|
18
|
+
* files of the deployed copy and their sha256 (`LockEntry.copied`), so a hand edit is named
|
|
19
|
+
* even after the library moved past the lock (p1641). Call it after the deploy. An entry that
|
|
20
|
+
* is unchanged since `prev` keeps its record, or stays without one: the deployed bytes may
|
|
21
|
+
* carry an edit the deploy did not touch. Project mode only; a `--link` deploy and a patched
|
|
22
|
+
* asset are not recorded.
|
|
23
|
+
*/
|
|
24
|
+
protected withCopiedFiles<T extends LockFile>(lock: T, prev: LockFile | null): T;
|
|
25
|
+
/**
|
|
26
|
+
* Record, on every agent entry of `lock` that has none, the files the agent's harness
|
|
27
|
+
* rendering occupies and their sha256. Call it after the deploy, so the bytes hashed are the
|
|
28
|
+
* ones `install` just wrote; {@link lockedCopyDrift} compares later edits with them.
|
|
29
|
+
* Entries that carry a record (kept from an earlier lock) are left as they are.
|
|
30
|
+
*
|
|
31
|
+
* @param keepComposedOf - The lock an `install` read: an agent whose `../` compose folder is
|
|
32
|
+
* not in the cache keeps that lock's `composed:` record. Omitted by `update` and `add`,
|
|
33
|
+
* which copy the library's current bytes.
|
|
34
|
+
*/
|
|
35
|
+
protected withRenderedAgents<T extends LockFile>(lock: T, keepComposedOf?: LockFile | null): T;
|
|
36
|
+
/**
|
|
37
|
+
* Make the `rendered:` list of every agent entry say exactly which files belong to it: the
|
|
38
|
+
* asset-named files of its own rendering (hashes kept as recorded) plus the files of the agent
|
|
39
|
+
* instances whose `ref` names it (`.claude/agents/default.md`, …) with their current sha256,
|
|
40
|
+
* so a hand edit of an instance file is drift like one of the asset-named file. A path that is
|
|
41
|
+
* neither is dropped: an instance that left `skaile.yaml`, or was bound to another agent, no
|
|
42
|
+
* longer lists its file under the old entry. A file that is another entry's own rendering
|
|
43
|
+
* stays with that entry; an instance whose `ref` names no locked agent (a path ref) has no
|
|
44
|
+
* entry to hold its files. Call it after `renderAgentInstances`, which rewrites every
|
|
45
|
+
* instance file, so the bytes hashed are the ones just written.
|
|
46
|
+
*/
|
|
47
|
+
protected withInstanceRenderings<T extends LockFile>(lock: T): T;
|
|
48
|
+
/** Append the regular files under `path` (a file or a directory) to `out`, project-relative with sha256. Symlinks are skipped. */
|
|
49
|
+
protected hashTree(path: string, out: LockFileEntry[]): void;
|
|
50
|
+
/** The files of one agent's rendering for the active harness, project-relative, with sha256. */
|
|
51
|
+
protected renderedAgentFiles(name: string): LockFileEntry[];
|
|
52
|
+
/**
|
|
53
|
+
* The lock key of the agent entry an agent instance's `ref` names, or `undefined` when no locked
|
|
54
|
+
* agent matches (a path ref has no entry).
|
|
55
|
+
*/
|
|
56
|
+
protected agentKeyOfRef(agentKeys: readonly string[], ref: string): string | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* The rendered native files of every locked agent that the lock does not list under
|
|
59
|
+
* `rendered:` (a lock an older CLI wrote), as path → sha256 per lock key, taken before a
|
|
60
|
+
* deploy. `check` cannot tell such a file from a stale one, so {@link changedRenderings}
|
|
61
|
+
* compares it afterwards. `agent` holds the asset-named files of an entry with no `rendered:`
|
|
62
|
+
* at all (5.11.0 and older); `instance` the files of agent instances the entry's `rendered:`
|
|
63
|
+
* does not list yet (5.13.0 and older), which the instance render rewrites. Project mode only.
|
|
64
|
+
*/
|
|
65
|
+
protected unrecordedRenderings(lock: LockFile | null): RenderSnapshot;
|
|
66
|
+
/**
|
|
67
|
+
* The notice `check` and `outdated` print for a lock written before it listed the rendered
|
|
68
|
+
* agent files and the files of agent instances: the next `install`, `add` or `update`
|
|
69
|
+
* adds the list and rewrites those files from the render, so a hand edit of one is lost.
|
|
70
|
+
* Empty for a current lock, and in global mode.
|
|
71
|
+
*/
|
|
72
|
+
legacyLockNotices(): string[];
|
|
73
|
+
/**
|
|
74
|
+
* What a deploy changed among the files {@link unrecordedRenderings} saw before it. `rewritten`
|
|
75
|
+
* is one row per locked agent whose asset-named files differ now: a render the CLI changed (the
|
|
76
|
+
* 5.12.0 abilities block) otherwise reaches the user as a silent rewrite. `restored` is one row
|
|
77
|
+
* per agent whose instance files differ now: the render replaced them, a hand edit included.
|
|
78
|
+
*/
|
|
79
|
+
protected changedRenderings(before: RenderSnapshot): {
|
|
80
|
+
rewritten: RewrittenAgent[];
|
|
81
|
+
restored: RestoredAsset[];
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* The {@link RestoredAsset} rows for the drifted copies (see {@link lockedCopyDrift}) a
|
|
85
|
+
* deploy just wrote again: those whose ref is among the `deployed` canonical refs.
|
|
86
|
+
*/
|
|
87
|
+
protected restoredCopies(drifts: ReadonlyArray<{
|
|
88
|
+
ref: string;
|
|
89
|
+
key: string;
|
|
90
|
+
rendered?: true;
|
|
91
|
+
lockedSha?: ReadonlyMap<string, string>;
|
|
92
|
+
} & DeployedDrift>, deployed: readonly string[], incomplete?: readonly IncompleteDeploy[]): RestoredAsset[];
|
|
93
|
+
/**
|
|
94
|
+
* Hand edits in the deployed copy of a library asset whose library moved past the lock (a
|
|
95
|
+
* version bump, or an in-place edit of the same version): {@link restoreLibraryLockEntries}
|
|
96
|
+
* drops such an entry, so {@link lockedCopyDrift} would not see the edit and `update` would
|
|
97
|
+
* replace the file without a word (p1641). `covered` holds the `kind:@publisher/name` of the
|
|
98
|
+
* entries that were compared already. The lock's per-file record (`copied:`) names the edited
|
|
99
|
+
* files; a lock without one (written before it existed) compares the deployed folder with the
|
|
100
|
+
* one library hash and names the files that also differ from the library's new content.
|
|
101
|
+
*/
|
|
102
|
+
protected changedLibraryCopyEdits(lock: LockFile, covered: ReadonlySet<string>, patches: Record<string, unknown>): Promise<Array<{
|
|
103
|
+
ref: string;
|
|
104
|
+
key: string;
|
|
105
|
+
} & DeployedDrift & {
|
|
106
|
+
library: true;
|
|
107
|
+
libraryChanged: true;
|
|
108
|
+
unrecorded?: true;
|
|
109
|
+
}>>;
|
|
110
|
+
/**
|
|
111
|
+
* Locked assets whose deployed copy differs from the bytes the lock covers: a file edited by
|
|
112
|
+
* hand, or a file the asset does not ship. One row per asset, `ref` being `kind:@publisher/name`
|
|
113
|
+
* and `key` its lock key. The one comparison behind the `modified` gap and the `Restored` lines
|
|
114
|
+
* of `install`.
|
|
115
|
+
*
|
|
116
|
+
* - A library-origin asset is compared with its library's files, but only while those equal the
|
|
117
|
+
* locked hash (changed library content is the `content` gap's business), both modified and
|
|
118
|
+
* extra files.
|
|
119
|
+
* - A source asset is compared with the per-file hashes the lock records (modified files only:
|
|
120
|
+
* the lock lists what the source covers, not what the deploy copies).
|
|
121
|
+
*
|
|
122
|
+
* A `--link` deploy, an asset with a configured patch, and a copy that is missing are not
|
|
123
|
+
* compared: other gaps cover them. An agent (rendered, not copied) is compared with the
|
|
124
|
+
* hashes of its rendered files the lock records (`LockEntry.rendered`); its `modified` paths
|
|
125
|
+
* are project-relative. Project mode only.
|
|
126
|
+
*/
|
|
127
|
+
protected lockedCopyDrift(): Promise<Array<{
|
|
128
|
+
ref: string;
|
|
129
|
+
key: string;
|
|
130
|
+
} & DeployedDrift & {
|
|
131
|
+
library: boolean;
|
|
132
|
+
libraryChanged?: true;
|
|
133
|
+
/** The lock keeps no per-file record: `modified` is what differs from the library now. */
|
|
134
|
+
unrecorded?: true;
|
|
135
|
+
/** Files whose lock hash is wrong: the deployed bytes match the entry's own checksum. */
|
|
136
|
+
lockWrong?: string[];
|
|
137
|
+
rendered?: true;
|
|
138
|
+
lockedSha?: ReadonlyMap<string, string>;
|
|
139
|
+
/** Project-relative path of an agent instance's file → the instance id. */
|
|
140
|
+
instanceOf?: ReadonlyMap<string, string>;
|
|
141
|
+
}>>;
|
|
142
|
+
/**
|
|
143
|
+
* Locked assets (declared or required by one) whose deployed copy is gone: `skaile install`
|
|
144
|
+
* restores them. Same deployability rule as {@link AssetManager.listDeclared}'s `drift`.
|
|
145
|
+
*
|
|
146
|
+
* @param named - `kind:name` identities already reported; they are skipped.
|
|
147
|
+
*/
|
|
148
|
+
protected undeployedLockGaps(lock: LockFile | null, named: ReadonlySet<string>): Promise<LockGap[]>;
|
|
149
|
+
/**
|
|
150
|
+
* {@link declaredNoHolderReason} plus, when the name exists under another kind, the same
|
|
151
|
+
* `It is a skill: skill:@pub/name.` tail `add` and `update` end their not-found line with.
|
|
152
|
+
*/
|
|
153
|
+
protected declaredNoHolderLine(ref: string): Promise<string>;
|
|
154
|
+
}
|
|
155
|
+
export {};
|
|
156
|
+
//# sourceMappingURL=copies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copies.d.ts","sourceRoot":"","sources":["../../../../asset-manager/src/lock/copies.ts"],"names":[],"mappings":"AAEA,OAAO,EAOL,KAAK,QAAQ,EACb,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,aAAa,EA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;KACnB,CACJ,CACF;IA8ED;;;;;;;;;;;;;;;;OAgBG;cACa,eAAe,IAAI,OAAO,CACxC,KAAK,CACH;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,aAAa,GAAG;QAC3C,OAAO,EAAE,OAAO,CAAC;QACjB,cAAc,CAAC,EAAE,IAAI,CAAC;QACtB,0FAA0F;QAC1F,UAAU,CAAC,EAAE,IAAI,CAAC;QAClB,yFAAyF;QACzF,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;QACrB,QAAQ,CAAC,EAAE,IAAI,CAAC;QAChB,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACxC,2EAA2E;QAC3E,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC1C,CACJ,CACF;IA+JD;;;;;OAKG;cACa,kBAAkB,CAChC,IAAI,EAAE,QAAQ,GAAG,IAAI,EACrB,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,GACzB,OAAO,CAAC,OAAO,EAAE,CAAC;IAqDrB;;;OAGG;cACa,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAKnE"}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { type AssetRef, type CatalogEntry, type LockEntry, type LockFile } from "@skaile/workspaces/core";
|
|
2
|
+
import { type DeployableEntry } from "../installer.js";
|
|
3
|
+
import { AmResolveStores } from "../resolve/stores.js";
|
|
4
|
+
import type { KeptLibraryEntry, KeptLockEntries, LibraryIndexSnapshot, LockedLibrary, PreferLocked } from "../shared/types.js";
|
|
5
|
+
/** Lock(), library lock entries and restore. One layer of the `AssetManager` class chain (see `asset-manager/CLAUDE.md`). */
|
|
6
|
+
export declare abstract class AmLockLibrary extends AmResolveStores {
|
|
7
|
+
protected abstract presetRecorded(want: AssetRef): boolean;
|
|
8
|
+
protected abstract deployedRequirementsOf(id: {
|
|
9
|
+
kind?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
publisher?: string;
|
|
12
|
+
}): Promise<string[]>;
|
|
13
|
+
protected abstract noteStoreFailure(storeUrl: string, err: unknown): string;
|
|
14
|
+
/**
|
|
15
|
+
* Library-origin lock entries for the assets {@link resolveLibraryEntries}
|
|
16
|
+
* matched. The locked version is the one actually deployed: the on-disk
|
|
17
|
+
* entry's version, falling back to the library index only when the disk entry
|
|
18
|
+
* carries none — the index lags until the next `skaile library index`, so
|
|
19
|
+
* preferring it would lock a stale version after an in-place bump. The hash is
|
|
20
|
+
* computed from the files on disk, so it matches what `install --locked`
|
|
21
|
+
* re-hashes.
|
|
22
|
+
*
|
|
23
|
+
* A git-backed library also records its remote URL. When the previous lock names the
|
|
24
|
+
* library under another name that {@link lockedLibrary} matched to this one by URL (a
|
|
25
|
+
* teammate registered the same remote under a different name), the entry keeps the locked
|
|
26
|
+
* name and URL: the lock does not change because it was installed on another machine. A
|
|
27
|
+
* library renamed on this machine with `library rename` is locked under its new name.
|
|
28
|
+
*/
|
|
29
|
+
protected libraryLockEntries(lib: {
|
|
30
|
+
entries: CatalogEntry[];
|
|
31
|
+
libraryOf: Map<CatalogEntry, string>;
|
|
32
|
+
}, relockGit?: boolean): Promise<Record<string, LockEntry>>;
|
|
33
|
+
/**
|
|
34
|
+
* The entries a deploy would write into some target harness: those without a current deployed
|
|
35
|
+
* copy. An intact copy stays as it is, so a library change that does not reach it (a symlink
|
|
36
|
+
* added next to the files) stops no `install` or `update` (p1857).
|
|
37
|
+
*/
|
|
38
|
+
protected needingDeploy<T extends CatalogEntry>(entries: readonly T[], link?: boolean): T[];
|
|
39
|
+
/**
|
|
40
|
+
* The files of a library asset that git has not committed (edited, new or staged only), as
|
|
41
|
+
* paths relative to the library root. The asset's own folder, or its one manifest file when it
|
|
42
|
+
* shares the folder with other assets. Empty when the asset is not in a git work tree.
|
|
43
|
+
*/
|
|
44
|
+
protected uncommittedAssetFiles(entry: CatalogEntry, libPath: string): string[];
|
|
45
|
+
/**
|
|
46
|
+
* Warn when a library with a git remote has uncommitted changes in the folders of the assets
|
|
47
|
+
* `add` or `install` lock: the lock records the bytes on this disk, which no clone of the
|
|
48
|
+
* remote holds, so a teammate (or CI) cannot restore them. One line per library naming the
|
|
49
|
+
* files; the command goes on (OQ5, p1859).
|
|
50
|
+
*/
|
|
51
|
+
protected warnUncommittedLibraryAssets(lib: {
|
|
52
|
+
entries: CatalogEntry[];
|
|
53
|
+
libraryOf: Map<CatalogEntry, string>;
|
|
54
|
+
}): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Whether every declared ref is locked and no declared pin differs from the locked version:
|
|
57
|
+
* `skaile.yaml` asks for nothing the lock does not hold. A declared preset counts when the
|
|
58
|
+
* lock records it.
|
|
59
|
+
*/
|
|
60
|
+
protected declaredMatchesLock(lock: LockFile, declared: readonly string[]): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Lock keys that `skaile.yaml` still wants: the entries a declared ref names, plus every
|
|
63
|
+
* entry such an asset requires, transitively. All keys when a `preset:` is declared.
|
|
64
|
+
*/
|
|
65
|
+
protected declaredLockKeys(lock: LockFile, declared: readonly string[]): Promise<Set<string>>;
|
|
66
|
+
/**
|
|
67
|
+
* The `Missing:` lines of every library-origin lock entry whose library cannot supply
|
|
68
|
+
* assets on this machine (not registered, or registered with its directory gone). Plain
|
|
69
|
+
* `install` stops on a non-empty list, the same lines `install --locked` prints: it must
|
|
70
|
+
* not re-resolve a locked asset from another origin. The ONE function that decides "the
|
|
71
|
+
* locked library is not here", so a store-restore fallback extends it in one place.
|
|
72
|
+
*
|
|
73
|
+
* An entry `install --locked` already restored from a store (its library is not registered
|
|
74
|
+
* here and the store cache holds the locked version, see {@link restoredFromStoreCache}) is no
|
|
75
|
+
* line: it is returned in `restored`, and plain `install` then restores the lock as
|
|
76
|
+
* `install --locked` does instead of re-resolving it from another origin (OQ8, p1655).
|
|
77
|
+
*
|
|
78
|
+
* Only entries `skaile.yaml` still declares, or that a declared asset requires
|
|
79
|
+
* (transitively, read from the deployed copy), count. A stale entry nothing declares is
|
|
80
|
+
* pruned by `install` as usual, so a removed dependency whose library is gone can be
|
|
81
|
+
* cleaned up. With a declared `preset:` every entry counts: the lock records no edge
|
|
82
|
+
* from a preset to its items, and the preset's own library may be the one that is gone.
|
|
83
|
+
*
|
|
84
|
+
* @param declared - The `dependencies:` refs as written in `skaile.yaml`.
|
|
85
|
+
*/
|
|
86
|
+
protected unavailableLockedLibraries(lock: LockFile, declared: readonly string[]): Promise<{
|
|
87
|
+
lines: string[];
|
|
88
|
+
restored: string[];
|
|
89
|
+
}>;
|
|
90
|
+
/**
|
|
91
|
+
* Re-resolve every library-origin lock entry from its named library, for
|
|
92
|
+
* `install --locked`. An entry is restored only when its library is still
|
|
93
|
+
* registered/on disk, still holds the asset, and still offers the locked
|
|
94
|
+
* version; anything else is reported in `missing` with the reason.
|
|
95
|
+
*
|
|
96
|
+
* @param opts.storeFallback - `install --locked` only: an entry whose library is not registered
|
|
97
|
+
* here is restored from a store that serves the locked sha256 (OQ8, OQ15, p1490, p1655). The
|
|
98
|
+
* lock records the library's remote and hash but no commit and no file list, so the library
|
|
99
|
+
* remote itself cannot be fetched at a locked commit; the store pointer names the upstream
|
|
100
|
+
* repository and commit that hold exactly the hashed bytes. Reads such as the drift check
|
|
101
|
+
* never ask a store.
|
|
102
|
+
*/
|
|
103
|
+
protected restoreLibraryLockEntries(lock: LockFile, opts?: {
|
|
104
|
+
storeFallback?: boolean;
|
|
105
|
+
}): Promise<{
|
|
106
|
+
entries: DeployableEntry[];
|
|
107
|
+
missing: string[];
|
|
108
|
+
viaStore: string[];
|
|
109
|
+
/** Lock key → where the store says the bytes come from (`<store url> (<upstream>@<commit7>)`). */
|
|
110
|
+
storeOrigins: Record<string, string>;
|
|
111
|
+
}>;
|
|
112
|
+
/**
|
|
113
|
+
* Whether a library-origin lock entry was restored from a store: its library is not
|
|
114
|
+
* registered here, and the project's store cache holds the locked version (`install --locked`
|
|
115
|
+
* fetched it there and SHA-verified every file against the sha256 the lock recorded). Such an
|
|
116
|
+
* entry is as restorable as a source- or store-origin one: `check`, `doctor` and plain
|
|
117
|
+
* `install` read its requirements from the deployed copy and do not ask for the library (OQ8,
|
|
118
|
+
* p1655). An unregistered library that never restored anything here stays a gap.
|
|
119
|
+
*
|
|
120
|
+
* This only checks that the cache directory of the locked version is not empty: the bytes were
|
|
121
|
+
* verified when they were fetched, and a later edit of the deployed copy is the `modified`
|
|
122
|
+
* drift check's job, not this one's.
|
|
123
|
+
*/
|
|
124
|
+
protected restoredFromStoreCache(key: string, entry: LockEntry, snap: LibraryIndexSnapshot | null): Promise<boolean>;
|
|
125
|
+
/**
|
|
126
|
+
* The store's copy of a library-origin lock entry whose library is not registered here: a
|
|
127
|
+
* store (project `stores:` or the global catalog) that serves `kind:@publisher/name#version`
|
|
128
|
+
* under the very sha256 the lock recorded holds the same bytes. The entry is fetched and
|
|
129
|
+
* verified like any store asset; the lock stays as it is. `null` when the lock has no hash,
|
|
130
|
+
* no store answers, or the hash differs (OQ15, p1490). `from` names the store and the
|
|
131
|
+
* upstream repository and commit its pointer gives, for the notice.
|
|
132
|
+
*/
|
|
133
|
+
protected storeEntryForLockedLibraryAsset(publisher: string, kind: string, name: string, origin: {
|
|
134
|
+
version: string;
|
|
135
|
+
sha256?: string;
|
|
136
|
+
}): Promise<{
|
|
137
|
+
entry: DeployableEntry;
|
|
138
|
+
from: string;
|
|
139
|
+
} | null>;
|
|
140
|
+
/**
|
|
141
|
+
* Whether a deployed copy exists for the lock entries `install` kept for the unresolved
|
|
142
|
+
* `ref`. A kind with no install target has none, except an `mcp-server`: its copy is the
|
|
143
|
+
* `.mcp.json` entry skaile wrote and the payload that entry points into (p792).
|
|
144
|
+
*/
|
|
145
|
+
protected keptCopyDeployed(kept: KeptLockEntries, ref: string): Promise<boolean>;
|
|
146
|
+
/** Whether the deployed copy of a library asset is on disk; a kind with no install target has none to check. */
|
|
147
|
+
protected lockedCopyDeployed(kind: string, name: string): boolean;
|
|
148
|
+
/**
|
|
149
|
+
* The library-origin lock entries `install` keeps when the library holds a newer version:
|
|
150
|
+
* only `update` moves a locked asset, so `install` restores the locked one (p1095).
|
|
151
|
+
* Keyed by `<publisher>/<kind>:<name>`. `requires` is what the locked version needs: the
|
|
152
|
+
* lock's own list, or for a lock that predates the field the deployed copy's requirements,
|
|
153
|
+
* never the newer library entry's.
|
|
154
|
+
*/
|
|
155
|
+
protected keepLockedLibraryEntries(lock: LockFile | null): Promise<ReadonlyMap<string, KeptLibraryEntry> | undefined>;
|
|
156
|
+
/**
|
|
157
|
+
* How the library `origin` names stands on this machine. THE one lookup of a locked library
|
|
158
|
+
* ("is it registered here?"): `check`, `outdated`, `install` and `install --locked` all ask it.
|
|
159
|
+
*
|
|
160
|
+
* - registered in the index under its name: `ok` at its registered path, or `dir-missing` when
|
|
161
|
+
* that directory is gone;
|
|
162
|
+
* - not registered: a directory `<libraries dir>/<name>` nobody unregistered still counts as a
|
|
163
|
+
* hand-made library (`ok`). One `library remove` unregistered without `--purge` does not
|
|
164
|
+
* (it stays on disk but no longer resolves), and neither does the reserved `installed` folder.
|
|
165
|
+
* - otherwise, when the lock recorded the library's remote URL: another registered library
|
|
166
|
+
* whose git remote is the same repository (`.git` suffix, trailing `/` and the
|
|
167
|
+
* `git@host:o/r` / `https://host/o/r` forms do not matter) and whose directory exists is
|
|
168
|
+
* `ok`, with `name` set to the name it is registered under here. The library name is
|
|
169
|
+
* machine-local; the remote is what a clone shares.
|
|
170
|
+
*/
|
|
171
|
+
protected lockedLibrary(origin: {
|
|
172
|
+
id?: string;
|
|
173
|
+
name: string;
|
|
174
|
+
url?: string;
|
|
175
|
+
sha256?: string;
|
|
176
|
+
}, snap: LibraryIndexSnapshot | null, asset?: {
|
|
177
|
+
kind: string;
|
|
178
|
+
publisher: string;
|
|
179
|
+
name: string;
|
|
180
|
+
}): LockedLibrary;
|
|
181
|
+
/**
|
|
182
|
+
* Why `install --locked` cannot restore a locked library asset from its library: the library
|
|
183
|
+
* holds another version than the lock (`library "x" is at 0.1.1, locked 0.1.0`) or the locked
|
|
184
|
+
* version with other bytes (`library "x" content changed since lock`). Only `update` moves
|
|
185
|
+
* the lock to it. `undefined` when the library is not here, no longer holds the asset, or
|
|
186
|
+
* still holds the locked files (the other gaps say what is wrong then).
|
|
187
|
+
*/
|
|
188
|
+
protected libraryAheadOfLock(origin: {
|
|
189
|
+
name: string;
|
|
190
|
+
url?: string;
|
|
191
|
+
sha256?: string;
|
|
192
|
+
version?: string;
|
|
193
|
+
}, asset: {
|
|
194
|
+
kind: string;
|
|
195
|
+
publisher: string;
|
|
196
|
+
name: string;
|
|
197
|
+
}): Promise<string | undefined>;
|
|
198
|
+
/** The registered library whose files for `asset` hash to `sha256` (the locked bytes), if any. */
|
|
199
|
+
protected libraryHoldingLockedBytes(sha256: string, asset: {
|
|
200
|
+
kind: string;
|
|
201
|
+
publisher: string;
|
|
202
|
+
name: string;
|
|
203
|
+
}, snap: LibraryIndexSnapshot | null): {
|
|
204
|
+
name: string;
|
|
205
|
+
path: string;
|
|
206
|
+
} | undefined;
|
|
207
|
+
/** On-disk root of the library `origin` names; `null` unless {@link lockedLibrary} says `ok`. */
|
|
208
|
+
protected libraryPath(origin: {
|
|
209
|
+
name: string;
|
|
210
|
+
url?: string;
|
|
211
|
+
}, snap: LibraryIndexSnapshot | null): string | null;
|
|
212
|
+
/**
|
|
213
|
+
* Rename the library every library-origin lock entry names: `library rename <interim> <old>`
|
|
214
|
+
* puts a library back under its old name, and an entry locked in between would keep the
|
|
215
|
+
* interim name, so a later "register library again" advice would name a library nobody knows
|
|
216
|
+
* any more (p893). Nothing is written when no entry names `from`.
|
|
217
|
+
*
|
|
218
|
+
* @returns the number of lock entries renamed.
|
|
219
|
+
*/
|
|
220
|
+
renameLockedLibrary(from: string, to: string): number;
|
|
221
|
+
/**
|
|
222
|
+
* The `kind:@publisher/name` identities the lock holds for one `kind` and `name`, whatever
|
|
223
|
+
* their publisher. `diff` uses it to accept a ref without a publisher only when it names
|
|
224
|
+
* exactly one locked asset.
|
|
225
|
+
*/
|
|
226
|
+
lockedRefsNamed(kind: string, name: string): string[];
|
|
227
|
+
/**
|
|
228
|
+
* The library a library-origin lock entry of `kind` and `name` (and `publisher`, when given)
|
|
229
|
+
* resolves to on this machine, or `undefined` when the lock holds no such entry, it is not
|
|
230
|
+
* from a library, or its library is not here. `info` prints it next to `source:`.
|
|
231
|
+
*/
|
|
232
|
+
lockedLibraryOf(kind: string, name: string, publisher?: string): Promise<string | undefined>;
|
|
233
|
+
/**
|
|
234
|
+
* Where each library-origin lock entry of this project resolves on this machine: identity
|
|
235
|
+
* `kind:publisher/name` (no scope sigil, no version) → the name the locked library is
|
|
236
|
+
* registered under here. The name differs from the locked one when the lock's remote URL
|
|
237
|
+
* matched another registered library ({@link lockedLibrary}). A deployed entry whose library
|
|
238
|
+
* resolves nowhere (not registered, directory gone) maps to `null`.
|
|
239
|
+
*
|
|
240
|
+
* Direct `asset install` entries (`library.installed`) are included and resolved the same
|
|
241
|
+
* way, but they map to the locked library name when that lookup fails: such a copy sits in
|
|
242
|
+
* the project and does not depend on the library still being registered. A missing or
|
|
243
|
+
* unreadable lock yields an empty map. `skaile manage` uses it to tick the right library row.
|
|
244
|
+
*/
|
|
245
|
+
lockedLibraryNames(): Promise<Map<string, string | null>>;
|
|
246
|
+
/**
|
|
247
|
+
* What `update` prefers when libraries tie: the library each lock entry resolves to here
|
|
248
|
+
* ({@link lockedLibraryNames}, a `library rename` followed) and the sha256 it locked.
|
|
249
|
+
*/
|
|
250
|
+
protected lockedPreference(): Promise<PreferLocked>;
|
|
251
|
+
/**
|
|
252
|
+
* Resolve all declared dependencies and write (or overwrite) `skaile.lock.yaml`.
|
|
253
|
+
*
|
|
254
|
+
* Performs repository sync and full dependency resolution without deploying assets.
|
|
255
|
+
* Use this to regenerate the lock file after manually editing `skaile.yaml`.
|
|
256
|
+
*
|
|
257
|
+
* @returns The written {@link LockFile} data.
|
|
258
|
+
*/
|
|
259
|
+
lock(): Promise<LockFile>;
|
|
260
|
+
}
|
|
261
|
+
//# sourceMappingURL=library.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../../asset-manager/src/lock/library.ts"],"names":[],"mappings":"AAGA,OAAO,EAWL,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,QAAQ,EAEd,MAAM,yBAAyB,CAAC;AASjC,OAAO,EAAwB,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAE7E,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAevD,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,YAAY,EACb,MAAM,oBAAoB,CAAC;AAsC5B,6HAA6H;AAC7H,8BAAsB,aAAc,SAAQ,eAAe;IAEzD,SAAS,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO;IAC1D,SAAS,CAAC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,EAAE;QAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IACrB,SAAS,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,MAAM;IAE3E;;;;;;;;;;;;;;OAcG;cACa,kBAAkB,CAChC,GAAG,EAAE;QACH,OAAO,EAAE,YAAY,EAAE,CAAC;QACxB,SAAS,EAAE,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;KACtC,EACD,SAAS,UAAQ,GAChB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAA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AAG,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;IAkB/D;;;OAGG;cACa,gBAAgB,IAAI,OAAO,CAAC,YAAY,CAAC;IAYzD;;;;;;;OAOG;IACG,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC;CAoChC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { AmLockLibrary } from "./lock/library.js";
|
|
2
|
+
import { type McpServerDrift } from "./mcp-config.js";
|
|
3
|
+
import type { RestoredAsset } from "./shared/types.js";
|
|
4
|
+
/** A note about an `mcp-server` that fails nothing. See {@link AssetManager.mcpNotices}. */
|
|
5
|
+
export interface McpNotice {
|
|
6
|
+
/** The declaration id (`sql`, `@admin/sql`). */
|
|
7
|
+
id: string;
|
|
8
|
+
kind: "skipped" | "unset-field";
|
|
9
|
+
/** With `skipped`: why the server is not written to the MCP config. */
|
|
10
|
+
reason?: string;
|
|
11
|
+
/** The `!` line `check` and `doctor` print. */
|
|
12
|
+
text: string;
|
|
13
|
+
}
|
|
14
|
+
/** MCP config drift, render and notices. One layer of the `AssetManager` class chain (see `asset-manager/CLAUDE.md`). */
|
|
15
|
+
export declare abstract class AmMcpRender extends AmLockLibrary {
|
|
16
|
+
/**
|
|
17
|
+
* The payloads and managed `.mcp.json` entries of the project's **locked** `mcp-server`
|
|
18
|
+
* assets that differ from what the declarations render (see {@link mcpServerDrift}), one row
|
|
19
|
+
* per server, named by the lock identity `mcp-server:@publisher/name`; `key` is the lock key.
|
|
20
|
+
* An `mcp_servers:` entry of `skaile.yaml` is configuration, not a locked asset: it has no
|
|
21
|
+
* row. Empty for a global manager and for a project that locks no `mcp-server`.
|
|
22
|
+
*/
|
|
23
|
+
protected mcpDriftRows(): Promise<Array<{
|
|
24
|
+
ref: string;
|
|
25
|
+
key: string;
|
|
26
|
+
drift: McpServerDrift;
|
|
27
|
+
}>>;
|
|
28
|
+
/**
|
|
29
|
+
* What the render wrote for the `mcp-server` asset `name` into the coding agent's MCP
|
|
30
|
+
* config: the config file and, for a server with a payload, the payload directory
|
|
31
|
+
* (project-relative). `written` is false when the render left the server out (see
|
|
32
|
+
* {@link AssetManager.mcpNotices}). `undefined` when the harness has no MCP config skaile
|
|
33
|
+
* writes (`codex`, `omp`) or for a global manager: the asset is composed at run time only.
|
|
34
|
+
*/
|
|
35
|
+
mcpRenderFootprint(name: string): Promise<{
|
|
36
|
+
file: string;
|
|
37
|
+
payloadDir?: string;
|
|
38
|
+
written: boolean;
|
|
39
|
+
} | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* The declared MCP servers whose `.mcp.json` entry skaile wrote and nothing edited, but that
|
|
42
|
+
* `skaile.yaml` (or a newer asset) now renders differently: the config waits for
|
|
43
|
+
* `skaile install`. Covers a locked `mcp-server` and an `mcp_servers:` entry alike; the
|
|
44
|
+
* server is named by its lock identity when it has one, else `mcp-server:<id>`. Empty for a
|
|
45
|
+
* global manager.
|
|
46
|
+
*/
|
|
47
|
+
protected mcpPendingRender(): Promise<Array<{
|
|
48
|
+
ref: string;
|
|
49
|
+
file: string;
|
|
50
|
+
}>>;
|
|
51
|
+
/**
|
|
52
|
+
* Render the project's declared MCP servers into the harness target's own
|
|
53
|
+
* native MCP config (`<project>/.mcp.json` for `claude-code`), so the coding
|
|
54
|
+
* agent sees the same servers skaile's agent loop wires up.
|
|
55
|
+
*
|
|
56
|
+
* Project scope only: a `--global` install has no project-scope config to
|
|
57
|
+
* write, and the coding agent's user scope is a large user-state file this
|
|
58
|
+
* must not touch. Never fails an install — a render error is warned and
|
|
59
|
+
* swallowed.
|
|
60
|
+
*
|
|
61
|
+
* @returns The payload files and config entries the render wrote back (and the files it
|
|
62
|
+
* removed) because they had drifted from the declaration: `install` names them, as it does
|
|
63
|
+
* a restored skill file.
|
|
64
|
+
*/
|
|
65
|
+
protected renderHarnessMcpConfig(): Promise<RestoredAsset[]>;
|
|
66
|
+
/**
|
|
67
|
+
* After an `mcp-server` asset left the project: drop what would keep it rendered. Its staged
|
|
68
|
+
* store bytes under `.skaile/cache/store/<publisher>/mcp-server/<name>/` go (an `mcp_servers:`
|
|
69
|
+
* entry of the same id would otherwise keep loading them), and so does an `mcp_servers:` entry
|
|
70
|
+
* that only sets values for it: `env` and the like, with no `command`, `url` or recipe of its
|
|
71
|
+
* own. An entry that can run alone is the user's own server and stays.
|
|
72
|
+
*
|
|
73
|
+
* @returns The dropped `mcp_servers` entries, as `mcp_servers entry "<id>"`.
|
|
74
|
+
*/
|
|
75
|
+
protected dropRemovedMcpServerSettings(name: string, publishers: readonly string[]): string[];
|
|
76
|
+
/**
|
|
77
|
+
* Notes about the project's `mcp-server`s that are not drift and fail nothing: a declared
|
|
78
|
+
* server skaile does not write to the coding agent's MCP config (`reason` from the last
|
|
79
|
+
* render), and a required `MCP.md` field nothing sets. `check` and `doctor` print them as
|
|
80
|
+
* `!` lines; `list` shows the first kind as `skipped`.
|
|
81
|
+
*
|
|
82
|
+
* @returns One {@link McpNotice} per note; empty for a global manager.
|
|
83
|
+
*/
|
|
84
|
+
mcpNotices(): Promise<McpNotice[]>;
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=mcp-render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-render.d.ts","sourceRoot":"","sources":["../../../asset-manager/src/mcp-render.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAQL,KAAK,cAAc,EACpB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,4FAA4F;AAC5F,MAAM,WAAW,SAAS;IACxB,gDAAgD;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,SAAS,GAAG,aAAa,CAAC;IAChC,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;CACd;AAED,yHAAyH;AACzH,8BAAsB,WAAY,SAAQ,aAAa;IACrD;;;;;;OAMG;cACa,YAAY,IAAI,OAAO,CACrC,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,cAAc,CAAA;KAAE,CAAC,CAC3D;IA0BD;;;;;;OAMG;IACG,kBAAkB,CACtB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,GAAG,SAAS,CAAC;IAQ/E;;;;;;OAMG;cACa,gBAAgB,IAAI,OAAO,CAAC,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAsBjF;;;;;;;;;;;;;OAaG;cACa,sBAAsB,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;IAmDlE;;;;;;;;OAQG;IACH,SAAS,CAAC,4BAA4B,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE;IA0B7F;;;;;;;OAOG;IACG,UAAU,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;CA0BzC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type CatalogEntry } from "@skaile/workspaces/core";
|
|
2
|
+
import { AmCore } from "./config/core.js";
|
|
3
|
+
/** Legacy omp copy sweep and its notices. One layer of the `AssetManager` class chain (see `asset-manager/CLAUDE.md`). */
|
|
4
|
+
export declare abstract class AmOmpSweep extends AmCore {
|
|
5
|
+
/**
|
|
6
|
+
* Delete the copies a 5.12.0 global install left in `~/.omp/skills`, `~/.omp/agents`,
|
|
7
|
+
* `~/.omp/prompts` and `~/.omp/contracts` (omp reads `~/.omp/agent/<dir>`) for the assets just
|
|
8
|
+
* deployed into omp's new folder, and remember them for {@link takeLegacyCopiesRemoved} (p744).
|
|
9
|
+
*/
|
|
10
|
+
protected sweepLegacyOmpCopies(entries: CatalogEntry[]): void;
|
|
11
|
+
/** The old omp copies the deploys since the last call kept, as skaile did not write them. */
|
|
12
|
+
takeLegacyCopiesKept(): string[];
|
|
13
|
+
/**
|
|
14
|
+
* The old `~/.omp/<dir>/<name>` copies of the globally locked assets that are still on disk
|
|
15
|
+
* (a 5.12.0 install wrote them; omp reads `~/.omp/agent/<dir>`). Global mode only. `check`,
|
|
16
|
+
* `doctor` and `clean` with `--global` report or remove them (p911).
|
|
17
|
+
*/
|
|
18
|
+
staleLegacyOmpCopies(): {
|
|
19
|
+
ref: string;
|
|
20
|
+
path: string;
|
|
21
|
+
}[];
|
|
22
|
+
/** The old omp copies the deploys since the last call removed (see {@link sweepLegacyOmpCopies}). */
|
|
23
|
+
takeLegacyCopiesRemoved(): string[];
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=omp-sweep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"omp-sweep.d.ts","sourceRoot":"","sources":["../../../asset-manager/src/omp-sweep.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAM1C,0HAA0H;AAC1H,8BAAsB,UAAW,SAAQ,MAAM;IAC7C;;;;OAIG;IACH,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,IAAI;IAqC7D,6FAA6F;IAC7F,oBAAoB,IAAI,MAAM,EAAE;IAIhC;;;;OAIG;IACH,oBAAoB,IAAI;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE;IAevD,qGAAqG;IACrG,uBAAuB,IAAI,MAAM,EAAE;CAGpC"}
|