@skaile/workspaces 5.1.3 → 5.3.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 +68 -0
- package/README.md +1 -1
- package/dist/app-sdk/index.js +1 -1
- package/dist/{asset-feeds-C4X4RTZV.js → asset-feeds-VIZXYDAO.js} +13 -13
- package/dist/{asset-feeds-C4X4RTZV.js.map → asset-feeds-VIZXYDAO.js.map} +1 -1
- package/dist/asset-manager/catalog-deployer.js +10 -10
- package/dist/asset-manager/index.js +14 -14
- package/dist/asset-manager/installer.js +10 -10
- package/dist/asset-manager/src/index.d.ts +39 -4
- package/dist/asset-manager/src/index.d.ts.map +1 -1
- package/dist/asset-manager/src/installer.d.ts +2 -1
- package/dist/asset-manager/src/installer.d.ts.map +1 -1
- package/dist/bridge/drivers/claude-sdk.js +16 -15
- package/dist/bridge/drivers/claude-sdk.js.map +1 -1
- package/dist/bridge/drivers/codex.js +13 -12
- package/dist/bridge/drivers/codex.js.map +1 -1
- package/dist/bridge/drivers/continue.js +13 -13
- package/dist/bridge/drivers/echo.js +3 -3
- package/dist/bridge/drivers/gemini.js +5 -5
- package/dist/bridge/drivers/goose.js +13 -13
- package/dist/bridge/drivers/omp.js +6 -5
- package/dist/bridge/drivers/omp.js.map +1 -1
- package/dist/bridge/drivers/opencode.js +13 -13
- package/dist/bridge/drivers/qwen.js +5 -5
- package/dist/bridge/index.js +15 -15
- package/dist/bridge/src/driver-capabilities.d.ts +66 -0
- package/dist/bridge/src/driver-capabilities.d.ts.map +1 -0
- package/dist/bridge/src/drivers/claude-sdk.d.ts.map +1 -1
- package/dist/bridge/src/drivers/codex.d.ts.map +1 -1
- package/dist/bridge/src/drivers/omp.d.ts.map +1 -1
- package/dist/bridge/src/index.d.ts +1 -0
- package/dist/bridge/src/index.d.ts.map +1 -1
- package/dist/bridge/src/registry.d.ts.map +1 -1
- package/dist/{chunk-7SAWDPUT.js → chunk-37GBJLF5.js} +5 -55
- package/dist/chunk-37GBJLF5.js.map +1 -0
- package/dist/{chunk-SP47UJKE.js → chunk-3ZVSINEV.js} +247 -118
- package/dist/chunk-3ZVSINEV.js.map +1 -0
- package/dist/{chunk-ZVKJNNME.js → chunk-4257Q2LH.js} +8 -8
- package/dist/{chunk-ZVKJNNME.js.map → chunk-4257Q2LH.js.map} +1 -1
- package/dist/{chunk-YDJZRLGN.js → chunk-4SSKKFDF.js} +4 -4
- package/dist/{chunk-YDJZRLGN.js.map → chunk-4SSKKFDF.js.map} +1 -1
- package/dist/{chunk-K5GBV4SA.js → chunk-5BEFNLOR.js} +6 -5
- package/dist/chunk-5BEFNLOR.js.map +1 -0
- package/dist/{chunk-IWCCZL7C.js → chunk-6GBQND2F.js} +99 -36
- package/dist/chunk-6GBQND2F.js.map +1 -0
- package/dist/{chunk-QU4J5YSJ.js → chunk-7L4WFH3Y.js} +4 -4
- package/dist/{chunk-QU4J5YSJ.js.map → chunk-7L4WFH3Y.js.map} +1 -1
- package/dist/{chunk-O4U7OL6D.js → chunk-A223FDDC.js} +6 -6
- package/dist/{chunk-O4U7OL6D.js.map → chunk-A223FDDC.js.map} +1 -1
- package/dist/{chunk-AZYIEK3F.js → chunk-AWGQVAC5.js} +3 -3
- package/dist/{chunk-AZYIEK3F.js.map → chunk-AWGQVAC5.js.map} +1 -1
- package/dist/{chunk-RDYI4MML.js → chunk-BNUZEYC3.js} +3 -3
- package/dist/{chunk-RDYI4MML.js.map → chunk-BNUZEYC3.js.map} +1 -1
- package/dist/{chunk-RNNUYFFD.js → chunk-BUZ3K2PT.js} +3 -3
- package/dist/{chunk-RNNUYFFD.js.map → chunk-BUZ3K2PT.js.map} +1 -1
- package/dist/{chunk-WKIOWDLQ.js → chunk-CZ35I4RK.js} +4 -4
- package/dist/{chunk-WKIOWDLQ.js.map → chunk-CZ35I4RK.js.map} +1 -1
- package/dist/{chunk-KWP4RVTJ.js → chunk-D63AJVBW.js} +761 -643
- package/dist/chunk-D63AJVBW.js.map +1 -0
- package/dist/{chunk-BJZHNSQO.js → chunk-DECPI7DN.js} +5 -5
- package/dist/{chunk-BJZHNSQO.js.map → chunk-DECPI7DN.js.map} +1 -1
- package/dist/{chunk-KVAI5DGL.js → chunk-ERCSHLTF.js} +3 -3
- package/dist/{chunk-KVAI5DGL.js.map → chunk-ERCSHLTF.js.map} +1 -1
- package/dist/{chunk-ZD7CX25M.js → chunk-FTYM4VRZ.js} +56 -7
- package/dist/chunk-FTYM4VRZ.js.map +1 -0
- package/dist/{chunk-DLLM4U6C.js → chunk-FXN4PLRO.js} +3 -3
- package/dist/{chunk-DLLM4U6C.js.map → chunk-FXN4PLRO.js.map} +1 -1
- package/dist/{chunk-KNC55536.js → chunk-FZGL7Z52.js} +5 -4
- package/dist/chunk-FZGL7Z52.js.map +1 -0
- package/dist/{chunk-WCQMXBO5.js → chunk-GCYD4EGY.js} +4 -4
- package/dist/{chunk-WCQMXBO5.js.map → chunk-GCYD4EGY.js.map} +1 -1
- package/dist/{chunk-EB6OPURC.js → chunk-HTKZ4AOW.js} +3 -3
- package/dist/{chunk-EB6OPURC.js.map → chunk-HTKZ4AOW.js.map} +1 -1
- package/dist/{chunk-YV4J7V53.js → chunk-JAJG4G5E.js} +3 -3
- package/dist/{chunk-YV4J7V53.js.map → chunk-JAJG4G5E.js.map} +1 -1
- package/dist/{chunk-TYUJB336.js → chunk-JELTQ4H7.js} +3 -3
- package/dist/{chunk-TYUJB336.js.map → chunk-JELTQ4H7.js.map} +1 -1
- package/dist/{chunk-VDJKWKH2.js → chunk-JKWU6ULI.js} +3 -3
- package/dist/{chunk-VDJKWKH2.js.map → chunk-JKWU6ULI.js.map} +1 -1
- package/dist/{chunk-AGWYBS2E.js → chunk-K2JVODQD.js} +18 -6
- package/dist/chunk-K2JVODQD.js.map +1 -0
- package/dist/{chunk-IDEA6CYI.js → chunk-K2K7OF4P.js} +95 -3
- package/dist/chunk-K2K7OF4P.js.map +1 -0
- package/dist/{chunk-MXXKTQXJ.js → chunk-KBAE7PU7.js} +18 -33
- package/dist/chunk-KBAE7PU7.js.map +1 -0
- package/dist/{chunk-ARUJBGAH.js → chunk-KXTO7HON.js} +3 -3
- package/dist/{chunk-ARUJBGAH.js.map → chunk-KXTO7HON.js.map} +1 -1
- package/dist/{chunk-TVOODIZE.js → chunk-LAI7X6I2.js} +3 -3
- package/dist/{chunk-TVOODIZE.js.map → chunk-LAI7X6I2.js.map} +1 -1
- package/dist/{chunk-DXUQCMVT.js → chunk-LFMX2UEF.js} +3 -3
- package/dist/{chunk-DXUQCMVT.js.map → chunk-LFMX2UEF.js.map} +1 -1
- package/dist/{chunk-UMSWQKCY.js → chunk-LM5XEFNS.js} +3 -3
- package/dist/{chunk-UMSWQKCY.js.map → chunk-LM5XEFNS.js.map} +1 -1
- package/dist/{chunk-TLKM4M47.js → chunk-MFHKHXDE.js} +6 -3
- package/dist/chunk-MFHKHXDE.js.map +1 -0
- package/dist/{chunk-5S4ZK75K.js → chunk-OMD4TAJX.js} +3 -3
- package/dist/{chunk-5S4ZK75K.js.map → chunk-OMD4TAJX.js.map} +1 -1
- package/dist/{chunk-M4ISBWXR.js → chunk-OOKFZW6H.js} +2472 -2265
- package/dist/chunk-OOKFZW6H.js.map +1 -0
- package/dist/{chunk-WPWJRDR3.js → chunk-QHIMMBJO.js} +8 -7
- package/dist/chunk-QHIMMBJO.js.map +1 -0
- package/dist/{chunk-KC3OF6B2.js → chunk-QMWMSZQ4.js} +3 -3
- package/dist/{chunk-KC3OF6B2.js.map → chunk-QMWMSZQ4.js.map} +1 -1
- package/dist/{chunk-AG44ZJ7W.js → chunk-SR4RFKHM.js} +35 -13
- package/dist/chunk-SR4RFKHM.js.map +1 -0
- package/dist/{chunk-RNOIDD3Y.js → chunk-TR7KFBIO.js} +7 -7
- package/dist/chunk-TR7KFBIO.js.map +1 -0
- package/dist/{chunk-YMOZC2D3.js → chunk-TVFSA5IQ.js} +4 -4
- package/dist/{chunk-YMOZC2D3.js.map → chunk-TVFSA5IQ.js.map} +1 -1
- package/dist/{chunk-H4EGUQ7M.js → chunk-VKSA2CDJ.js} +7 -8
- package/dist/chunk-VKSA2CDJ.js.map +1 -0
- package/dist/{chunk-I75CM2QF.js → chunk-VLEWVR44.js} +14 -15
- package/dist/chunk-VLEWVR44.js.map +1 -0
- package/dist/{chunk-RO4Z2CBP.js → chunk-WGN7Z36G.js} +21 -4
- package/dist/chunk-WGN7Z36G.js.map +1 -0
- package/dist/{chunk-BEOKEK3B.js → chunk-WGNFDLHT.js} +135 -64
- package/dist/chunk-WGNFDLHT.js.map +1 -0
- package/dist/{chunk-43ZBF3WH.js → chunk-WX74MVNA.js} +16 -3
- package/dist/chunk-WX74MVNA.js.map +1 -0
- package/dist/{chunk-U6K3I3AX.js → chunk-XGIS325V.js} +3 -3
- package/dist/{chunk-U6K3I3AX.js.map → chunk-XGIS325V.js.map} +1 -1
- package/dist/{chunk-UVOJSWD2.js → chunk-Y7UBRRKG.js} +107 -135
- package/dist/chunk-Y7UBRRKG.js.map +1 -0
- package/dist/{chunk-Y6V6NUEV.js → chunk-YTJZQ4HY.js} +3 -3
- package/dist/{chunk-Y6V6NUEV.js.map → chunk-YTJZQ4HY.js.map} +1 -1
- package/dist/{chunk-IAGCOAIW.js → chunk-YXNYBUQY.js} +5 -5
- package/dist/{chunk-IAGCOAIW.js.map → chunk-YXNYBUQY.js.map} +1 -1
- package/dist/chunk-ZCSFGGLG.js +15 -0
- package/dist/{chunk-XUQBVK4R.js.map → chunk-ZCSFGGLG.js.map} +1 -1
- package/dist/{chunk-2HR3RPWD.js → chunk-ZDMGMWK6.js} +13 -11
- package/dist/chunk-ZDMGMWK6.js.map +1 -0
- package/dist/cli/index.js +696 -552
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/src/commands/asset-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/catalog-cmd.d.ts.map +1 -1
- 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/library-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/library-index.d.ts +43 -1
- 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/outdated.d.ts +3 -1
- package/dist/cli/src/commands/outdated.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/skailify-lib.d.ts +3 -47
- package/dist/cli/src/commands/skailify-lib.d.ts.map +1 -1
- package/dist/cli/src/commands/source.d.ts.map +1 -1
- package/dist/cli/src/commands/validate.d.ts.map +1 -1
- package/dist/cli/src/flow-discovery.d.ts +9 -0
- package/dist/cli/src/flow-discovery.d.ts.map +1 -1
- package/dist/cli/src/helpers.d.ts +13 -0
- package/dist/cli/src/helpers.d.ts.map +1 -1
- package/dist/cli/src/setup.d.ts.map +1 -1
- package/dist/connectors/config.js +6 -6
- package/dist/connectors/index.js +19 -19
- package/dist/connectors/src/connector-manager.d.ts +8 -27
- package/dist/connectors/src/connector-manager.d.ts.map +1 -1
- package/dist/connectors/src/index.d.ts +1 -1
- package/dist/connectors/src/index.d.ts.map +1 -1
- package/dist/connectors/src/mount-ledger.d.ts +61 -0
- package/dist/connectors/src/mount-ledger.d.ts.map +1 -0
- package/dist/{connectors-BQXFKISC.js → connectors-Z2FUGAJU.js} +22 -22
- package/dist/{connectors-BQXFKISC.js.map → connectors-Z2FUGAJU.js.map} +1 -1
- package/dist/connectors-shared/index.js +2 -2
- package/dist/core/framework.js +1 -1
- package/dist/core/index.js +9 -9
- package/dist/core/manifest.js +2 -2
- package/dist/core/models.js +1 -1
- package/dist/core/publish-manifest.js +2 -2
- package/dist/core/ref.js +1 -1
- package/dist/core/runtime-assets.js +6 -6
- package/dist/core/src/asset-roots.d.ts +8 -0
- package/dist/core/src/asset-roots.d.ts.map +1 -1
- package/dist/core/src/cache-paths.d.ts +6 -0
- package/dist/core/src/cache-paths.d.ts.map +1 -1
- package/dist/core/src/framework.d.ts +7 -0
- package/dist/core/src/framework.d.ts.map +1 -1
- package/dist/core/src/index.d.ts +6 -6
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/core/src/lock.d.ts +12 -0
- package/dist/core/src/lock.d.ts.map +1 -1
- package/dist/core/src/manifest-yaml-editor.d.ts +14 -6
- package/dist/core/src/manifest-yaml-editor.d.ts.map +1 -1
- package/dist/core/src/models.d.ts +22 -0
- package/dist/core/src/models.d.ts.map +1 -1
- package/dist/core/src/publish-manifest.d.ts +28 -6
- package/dist/core/src/publish-manifest.d.ts.map +1 -1
- package/dist/core/src/settings.d.ts.map +1 -1
- package/dist/core/src/walker.d.ts.map +1 -1
- package/dist/core/store.js +2 -2
- package/dist/core/workspace-config.js +5 -5
- package/dist/deploy/index.js +9 -9
- package/dist/discovery/index.js +4 -4
- package/dist/discovery/src/discover-manifest.d.ts +5 -0
- package/dist/discovery/src/discover-manifest.d.ts.map +1 -1
- package/dist/discovery/src/discover.d.ts.map +1 -1
- package/dist/discovery/src/hash.d.ts +45 -23
- package/dist/discovery/src/hash.d.ts.map +1 -1
- package/dist/discovery/src/index.d.ts +3 -1
- package/dist/discovery/src/index.d.ts.map +1 -1
- package/dist/discovery/src/parse-manifest.d.ts +27 -0
- package/dist/discovery/src/parse-manifest.d.ts.map +1 -0
- package/dist/discovery/src/tree-entries.d.ts.map +1 -1
- package/dist/{ensure-sources-CMHOTYFS.js → ensure-sources-3IH5XHAP.js} +17 -17
- package/dist/{ensure-sources-CMHOTYFS.js.map → ensure-sources-3IH5XHAP.js.map} +1 -1
- 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.d.ts +28 -4
- package/dist/factory-assets/connectors/flow/adapter.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/adapter.js +19 -19
- package/dist/factory-assets/connectors/flow/engine.js +10 -10
- package/dist/factory-assets/connectors/flow/index.d.ts +1 -1
- package/dist/factory-assets/connectors/flow/index.d.ts.map +1 -1
- 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/checkout.d.ts +161 -0
- package/dist/factory-assets/connectors/git/checkout.d.ts.map +1 -0
- package/dist/factory-assets/connectors/git/config.d.ts +78 -0
- package/dist/factory-assets/connectors/git/config.d.ts.map +1 -0
- package/dist/factory-assets/connectors/git/credentials.d.ts +93 -0
- package/dist/factory-assets/connectors/git/credentials.d.ts.map +1 -0
- package/dist/factory-assets/connectors/git/driver.d.ts +39 -598
- package/dist/factory-assets/connectors/git/driver.d.ts.map +1 -1
- package/dist/factory-assets/connectors/git/exec.d.ts +177 -0
- package/dist/factory-assets/connectors/git/exec.d.ts.map +1 -0
- package/dist/factory-assets/connectors/git/inspect.d.ts +120 -0
- package/dist/factory-assets/connectors/git/inspect.d.ts.map +1 -0
- package/dist/factory-assets/connectors/git/lifecycle.d.ts +107 -0
- package/dist/factory-assets/connectors/git/lifecycle.d.ts.map +1 -0
- package/dist/factory-assets/connectors/git/repo.d.ts +496 -0
- package/dist/factory-assets/connectors/git/repo.d.ts.map +1 -0
- 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-64OAOYLP.js +26 -0
- package/dist/{flows-SVCCADGE.js.map → flows-64OAOYLP.js.map} +1 -1
- package/dist/{helpers-R3GLTAER.js → helpers-HV5Y57CY.js} +17 -17
- package/dist/{helpers-R3GLTAER.js.map → helpers-HV5Y57CY.js.map} +1 -1
- package/dist/library/index.js +12 -12
- package/dist/library/install.js +3 -2
- package/dist/library/src/config.d.ts +5 -4
- package/dist/library/src/config.d.ts.map +1 -1
- package/dist/library/src/index.d.ts +6 -3
- package/dist/library/src/index.d.ts.map +1 -1
- package/dist/library/src/install/install-from-manifest.d.ts +21 -0
- package/dist/library/src/install/install-from-manifest.d.ts.map +1 -1
- package/dist/library/src/local/install-library-asset.d.ts +64 -0
- package/dist/library/src/local/install-library-asset.d.ts.map +1 -0
- package/dist/library/src/local/library.d.ts.map +1 -1
- package/dist/library/src/local/local-catalog-source.d.ts +30 -0
- package/dist/library/src/local/local-catalog-source.d.ts.map +1 -1
- package/dist/library/src/local/store-paths.d.ts +6 -0
- package/dist/library/src/local/store-paths.d.ts.map +1 -1
- package/dist/library/src/manifest-writer.d.ts +79 -0
- package/dist/library/src/manifest-writer.d.ts.map +1 -0
- package/dist/library/src/sync/git-driver.d.ts +8 -0
- package/dist/library/src/sync/git-driver.d.ts.map +1 -1
- package/dist/library/src/sync/manifest-writeback.d.ts +2 -17
- package/dist/library/src/sync/manifest-writeback.d.ts.map +1 -1
- package/dist/{library-publish-EL7VYICU.js → library-publish-TVS3WQ4C.js} +27 -25
- package/dist/library-publish-TVS3WQ4C.js.map +1 -0
- package/dist/{open-library-MTD34YX3.js → open-library-AT6RYQ5M.js} +20 -20
- package/dist/{open-library-MTD34YX3.js.map → open-library-AT6RYQ5M.js.map} +1 -1
- package/dist/open-registry-F2Z4OLXJ.js +32 -0
- package/dist/{open-registry-CHCWKV5W.js.map → open-registry-F2Z4OLXJ.js.map} +1 -1
- package/dist/paths-P7ZXMDCX.js +22 -0
- package/dist/{paths-MKSI52PF.js.map → paths-P7ZXMDCX.js.map} +1 -1
- package/dist/plugin-registry/src/targets.d.ts +3 -1
- package/dist/plugin-registry/src/targets.d.ts.map +1 -1
- package/dist/{plugin-store-SVYV7L4C.js → plugin-store-27KGLW4S.js} +11 -11
- package/dist/{plugin-store-SVYV7L4C.js.map → plugin-store-27KGLW4S.js.map} +1 -1
- package/dist/{project-HCNWJP7J.js → project-J2EROMBW.js} +18 -18
- package/dist/{project-HCNWJP7J.js.map → project-J2EROMBW.js.map} +1 -1
- package/dist/resolver/index.js +10 -10
- package/dist/runner/index.js +29 -29
- package/dist/runner/src/agent.d.ts +1 -1
- package/dist/runner/src/agent.d.ts.map +1 -1
- package/dist/runner/src/codex-init.d.ts.map +1 -1
- package/dist/runner/src/compaction-gate.d.ts +9 -33
- package/dist/runner/src/compaction-gate.d.ts.map +1 -1
- package/dist/runner/src/managed-codex-bootstrap.d.ts.map +1 -1
- package/dist/runner/src/pending-turns.d.ts +7 -2
- package/dist/runner/src/pending-turns.d.ts.map +1 -1
- package/dist/runner/src/resources.d.ts +2 -2
- package/dist/runner/src/resources.d.ts.map +1 -1
- package/dist/runner/src/serve-credentials.d.ts +2 -1
- package/dist/runner/src/serve-credentials.d.ts.map +1 -1
- package/dist/runner/src/serve.d.ts +19 -35
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/runner/src/session-builder.d.ts.map +1 -1
- package/dist/runner/src/turn-scheduler.d.ts +158 -0
- package/dist/runner/src/turn-scheduler.d.ts.map +1 -0
- package/dist/sdk/asset-manager.js +14 -14
- package/dist/sdk/bridge.js +15 -15
- package/dist/sdk/core.js +9 -9
- package/dist/sdk/flow.js +10 -10
- package/dist/sdk/index.js +29 -29
- package/dist/sdk/resolver.js +10 -10
- package/dist/sdk/runner.js +29 -29
- package/dist/sdk/session.js +2 -2
- package/dist/sdk/types.js +1 -1
- package/dist/secrets/index.js +2 -2
- package/dist/session/index.js +2 -2
- package/dist/session/src/dispatcher.d.ts.map +1 -1
- package/dist/{setup-HTXNR2CZ.js → setup-IFGA4NQA.js} +25 -25
- package/dist/setup-IFGA4NQA.js.map +1 -0
- package/dist/skills-3T55L4YT.js +26 -0
- package/dist/{skills-7K2YO3KN.js.map → skills-3T55L4YT.js.map} +1 -1
- package/dist/{source-UIFC2PFC.js → source-HEAE43IL.js} +21 -21
- package/dist/{source-UIFC2PFC.js.map → source-HEAE43IL.js.map} +1 -1
- package/dist/{source-manifest-publish-QKAKXDVH.js → source-manifest-publish-SCAHAYSQ.js} +23 -23
- package/dist/{source-manifest-publish-QKAKXDVH.js.map → source-manifest-publish-SCAHAYSQ.js.map} +1 -1
- package/dist/tui/index.js +30 -30
- package/dist/tui/index.js.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/src/delivery.d.ts +26 -0
- package/dist/types/src/delivery.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +3 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/runtime.d.ts +51 -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 +18 -17
- package/dist/workspace-plugin/adapters/omp.js.map +1 -1
- package/dist/workspace-plugin/index.js +2 -1
- package/dist/workspace-plugin/src/adapters/mcp.d.ts.map +1 -1
- package/dist/workspace-plugin/src/adapters/omp.d.ts.map +1 -1
- package/dist/workspace-plugin/src/plugin.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-2HR3RPWD.js.map +0 -1
- package/dist/chunk-43ZBF3WH.js.map +0 -1
- package/dist/chunk-7SAWDPUT.js.map +0 -1
- package/dist/chunk-AG44ZJ7W.js.map +0 -1
- package/dist/chunk-AGWYBS2E.js.map +0 -1
- package/dist/chunk-BEOKEK3B.js.map +0 -1
- package/dist/chunk-F7JHP7JV.js +0 -122
- package/dist/chunk-F7JHP7JV.js.map +0 -1
- package/dist/chunk-H4EGUQ7M.js.map +0 -1
- package/dist/chunk-I75CM2QF.js.map +0 -1
- package/dist/chunk-IDEA6CYI.js.map +0 -1
- package/dist/chunk-IWCCZL7C.js.map +0 -1
- package/dist/chunk-K5GBV4SA.js.map +0 -1
- package/dist/chunk-KNC55536.js.map +0 -1
- package/dist/chunk-KWP4RVTJ.js.map +0 -1
- package/dist/chunk-M4ISBWXR.js.map +0 -1
- package/dist/chunk-MXXKTQXJ.js.map +0 -1
- package/dist/chunk-RNOIDD3Y.js.map +0 -1
- package/dist/chunk-RO4Z2CBP.js.map +0 -1
- package/dist/chunk-SP47UJKE.js.map +0 -1
- package/dist/chunk-TLKM4M47.js.map +0 -1
- package/dist/chunk-UVOJSWD2.js.map +0 -1
- package/dist/chunk-WPWJRDR3.js.map +0 -1
- package/dist/chunk-XUQBVK4R.js +0 -15
- package/dist/chunk-ZD7CX25M.js.map +0 -1
- package/dist/flows-SVCCADGE.js +0 -26
- package/dist/library-publish-EL7VYICU.js.map +0 -1
- package/dist/open-registry-CHCWKV5W.js +0 -32
- package/dist/paths-MKSI52PF.js +0 -22
- package/dist/runner/src/flow-turn-dispatch.d.ts +0 -41
- package/dist/runner/src/flow-turn-dispatch.d.ts.map +0 -1
- package/dist/runner/src/reply-routing.d.ts +0 -54
- package/dist/runner/src/reply-routing.d.ts.map +0 -1
- package/dist/setup-HTXNR2CZ.js.map +0 -1
- package/dist/skills-7K2YO3KN.js +0 -26
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { readManifestSourceConfig, discoverAssetsInTree } from './chunk-
|
|
2
|
-
import { installFromManifest } from './chunk-
|
|
3
|
-
import { defaultLibraryDir, resolveLibraryDir } from './chunk-
|
|
4
|
-
import { getGlobalCacheDir, resolveSourcePublisher } from './chunk-
|
|
5
|
-
import { globalSkaileDir, mergeLegacyEntriesInto, migrateLegacyDir, globalCacheRoot } from './chunk-
|
|
6
|
-
import { encodeSkaileManifest } from './chunk-
|
|
7
|
-
import {
|
|
1
|
+
import { barePublisher, createDefaultRegistry, sharesItsFolder, readManifestSourceConfig, discoverAssetsInTree } from './chunk-Y7UBRRKG.js';
|
|
2
|
+
import { installFromManifest, assertSafeManifestPath } from './chunk-VKSA2CDJ.js';
|
|
3
|
+
import { defaultLibraryDir, resolveLibraryDir, GLOBAL_INSTALL_DIR_NAME, readLock, buildLibraryLockEntries, writeLock, mergeLockFile, buildLockFile, ManifestYamlEditor } from './chunk-6GBQND2F.js';
|
|
4
|
+
import { getGlobalCacheDir, storeManifestSlug, resolveSourcePublisher } from './chunk-KBAE7PU7.js';
|
|
5
|
+
import { userConfigPath, globalSkaileDir, mergeLegacyEntriesInto, migrateLegacyDir, globalCacheRoot } from './chunk-MFHKHXDE.js';
|
|
6
|
+
import { encodeSkaileManifest, loadSkPublishManifest, SKAILE_MANIFEST_FILENAME } from './chunk-SR4RFKHM.js';
|
|
7
|
+
import { scanDirectory } from './chunk-LFMX2UEF.js';
|
|
8
|
+
import { parseAssetRef, assetRefToStr } from './chunk-WX74MVNA.js';
|
|
8
9
|
import { PresetManifestSchema } from './chunk-5CYEWBPB.js';
|
|
9
10
|
import { __export } from './chunk-NSBPE2FW.js';
|
|
10
11
|
import * as fs10 from 'fs';
|
|
11
|
-
import { existsSync, mkdirSync } from 'fs';
|
|
12
|
-
import * as
|
|
12
|
+
import { existsSync, mkdirSync, symlinkSync, copyFileSync, cpSync } from 'fs';
|
|
13
|
+
import * as path4 from 'path';
|
|
14
|
+
import { resolve, relative, sep, join, dirname } from 'path';
|
|
13
15
|
import { stringify, parse, parseDocument } from 'yaml';
|
|
14
16
|
import * as z3 from 'zod';
|
|
15
17
|
import * as crypto from 'crypto';
|
|
@@ -18,6 +20,7 @@ import { createClient } from '@libsql/client';
|
|
|
18
20
|
import { drizzle } from 'drizzle-orm/libsql';
|
|
19
21
|
import { sqliteTable, text, integer } from 'drizzle-orm/sqlite-core';
|
|
20
22
|
import { spawnSync } from 'child_process';
|
|
23
|
+
import { isDeepStrictEqual } from 'util';
|
|
21
24
|
|
|
22
25
|
// library/src/library.ts
|
|
23
26
|
var KNOWN_ASSET_KINDS = [
|
|
@@ -113,7 +116,7 @@ var SkaileConfigSchema = z3.object({
|
|
|
113
116
|
library: LibraryConfigSchema.optional()
|
|
114
117
|
});
|
|
115
118
|
function defaultIndexPath() {
|
|
116
|
-
return
|
|
119
|
+
return path4.join(globalSkaileDir(), "index.db");
|
|
117
120
|
}
|
|
118
121
|
function resolveIndexPath() {
|
|
119
122
|
if (process.env.SKAILE_INDEX_PATH) return process.env.SKAILE_INDEX_PATH;
|
|
@@ -126,11 +129,8 @@ function getConfigDefaults() {
|
|
|
126
129
|
};
|
|
127
130
|
}
|
|
128
131
|
var CONFIG_FILENAME = "config.yaml";
|
|
129
|
-
function userConfigPath() {
|
|
130
|
-
return path5.join(globalSkaileDir(), CONFIG_FILENAME);
|
|
131
|
-
}
|
|
132
132
|
function projectConfigPath(projectDir) {
|
|
133
|
-
return
|
|
133
|
+
return path4.join(projectDir, ".skaile", CONFIG_FILENAME);
|
|
134
134
|
}
|
|
135
135
|
function loadConfigFile(filePath) {
|
|
136
136
|
if (!fs10.existsSync(filePath)) return null;
|
|
@@ -183,7 +183,7 @@ function resolveConfig(opts) {
|
|
|
183
183
|
return resolved;
|
|
184
184
|
}
|
|
185
185
|
function saveConfig(filePath, config) {
|
|
186
|
-
const dir =
|
|
186
|
+
const dir = path4.dirname(filePath);
|
|
187
187
|
if (!fs10.existsSync(dir)) {
|
|
188
188
|
fs10.mkdirSync(dir, { recursive: true });
|
|
189
189
|
}
|
|
@@ -213,11 +213,11 @@ function validateKnowledge(data) {
|
|
|
213
213
|
|
|
214
214
|
// library/src/knowledge/knowledge-kind-provider.ts
|
|
215
215
|
function collectDirRecursive(baseDir, relativeDir) {
|
|
216
|
-
const full =
|
|
216
|
+
const full = path4.join(baseDir, relativeDir);
|
|
217
217
|
if (!fs10.existsSync(full) || !fs10.statSync(full).isDirectory()) return [];
|
|
218
218
|
const results = [];
|
|
219
219
|
for (const entry of fs10.readdirSync(full, { withFileTypes: true })) {
|
|
220
|
-
const rel =
|
|
220
|
+
const rel = path4.posix.join(relativeDir, entry.name);
|
|
221
221
|
if (entry.isDirectory()) {
|
|
222
222
|
results.push(...collectDirRecursive(baseDir, rel));
|
|
223
223
|
} else if (entry.isFile()) {
|
|
@@ -244,8 +244,8 @@ var knowledgeKindProvider = {
|
|
|
244
244
|
return validateKnowledge(data);
|
|
245
245
|
},
|
|
246
246
|
defaultFileFilter(manifestPath) {
|
|
247
|
-
const dir =
|
|
248
|
-
const manifestName =
|
|
247
|
+
const dir = path4.dirname(manifestPath);
|
|
248
|
+
const manifestName = path4.basename(manifestPath);
|
|
249
249
|
const files = [manifestName];
|
|
250
250
|
files.push(...collectDirRecursive(dir, "documents"));
|
|
251
251
|
files.sort();
|
|
@@ -324,30 +324,30 @@ var assignments = sqliteTable("assignments", {
|
|
|
324
324
|
assignedAt: text("assigned_at").notNull()
|
|
325
325
|
});
|
|
326
326
|
function isClone(dir) {
|
|
327
|
-
return fs10.existsSync(
|
|
327
|
+
return fs10.existsSync(path4.join(dir, ".git"));
|
|
328
328
|
}
|
|
329
329
|
function getSidecarRoot() {
|
|
330
330
|
const home = globalSkaileDir();
|
|
331
|
-
const sidecars =
|
|
332
|
-
const legacy =
|
|
331
|
+
const sidecars = path4.join(home, "sidecars");
|
|
332
|
+
const legacy = path4.join(home, "sources");
|
|
333
333
|
mergeLegacyEntriesInto(getGlobalCacheDir(), legacy, isClone);
|
|
334
334
|
mergeLegacyEntriesInto(sidecars, legacy, (p) => !isClone(p));
|
|
335
335
|
return sidecars;
|
|
336
336
|
}
|
|
337
337
|
function resolveSidecarPaths(slug) {
|
|
338
338
|
const rootDir = getSidecarRoot();
|
|
339
|
-
const sidecarDir =
|
|
339
|
+
const sidecarDir = path4.join(rootDir, slug);
|
|
340
340
|
return {
|
|
341
341
|
rootDir,
|
|
342
342
|
sidecarDir,
|
|
343
|
-
manifestFile:
|
|
344
|
-
readmeFile:
|
|
345
|
-
lockFile:
|
|
343
|
+
manifestFile: path4.join(sidecarDir, "skaile.manifest.yaml"),
|
|
344
|
+
readmeFile: path4.join(sidecarDir, "README.md"),
|
|
345
|
+
lockFile: path4.join(sidecarDir, "skaile.manifest.lock.json")
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
348
|
function deriveSlug(sourceConfig, sourcePath, existingSlugs) {
|
|
349
349
|
const fromConfig = sourceConfig && typeof sourceConfig.name === "string" ? sourceConfig.name : void 0;
|
|
350
|
-
const base = fromConfig && fromConfig.length > 0 ? slugify(fromConfig) : slugify(
|
|
350
|
+
const base = fromConfig && fromConfig.length > 0 ? slugify(fromConfig) : slugify(path4.basename(sourcePath || "")) || "unnamed-source";
|
|
351
351
|
const taken = new Set(existingSlugs);
|
|
352
352
|
if (!taken.has(base)) return base;
|
|
353
353
|
for (let i = 2; i < 1e3; i++) {
|
|
@@ -373,13 +373,17 @@ function slugify(input) {
|
|
|
373
373
|
|
|
374
374
|
// library/src/local/store-paths.ts
|
|
375
375
|
function getStoreRoot() {
|
|
376
|
-
return
|
|
376
|
+
return path4.join(globalSkaileDir(), "store");
|
|
377
377
|
}
|
|
378
378
|
function getStoreManifestsDir() {
|
|
379
|
-
return
|
|
379
|
+
return path4.join(getStoreRoot(), "manifests");
|
|
380
|
+
}
|
|
381
|
+
function curatedManifestOverlay(sourceUrl) {
|
|
382
|
+
const file = path4.join(getStoreManifestsDir(), `${storeManifestSlug(sourceUrl)}.yaml`);
|
|
383
|
+
return fs10.existsSync(file) ? file : void 0;
|
|
380
384
|
}
|
|
381
385
|
function migratedMarkerPath() {
|
|
382
|
-
return
|
|
386
|
+
return path4.join(getStoreRoot(), ".migrated");
|
|
383
387
|
}
|
|
384
388
|
function collectSidecarMigrationCandidates(sidecarRoot) {
|
|
385
389
|
const candidates = [];
|
|
@@ -387,9 +391,9 @@ function collectSidecarMigrationCandidates(sidecarRoot) {
|
|
|
387
391
|
for (const entry of fs10.readdirSync(sidecarRoot, { withFileTypes: true })) {
|
|
388
392
|
if (!entry.isDirectory()) continue;
|
|
389
393
|
if (entry.name.startsWith(".")) continue;
|
|
390
|
-
const sidecarDir =
|
|
391
|
-
const current =
|
|
392
|
-
const legacy =
|
|
394
|
+
const sidecarDir = path4.join(sidecarRoot, entry.name);
|
|
395
|
+
const current = path4.join(sidecarDir, "skaile.manifest.yaml");
|
|
396
|
+
const legacy = path4.join(sidecarDir, ".skaile-source.yaml");
|
|
393
397
|
const src = fs10.existsSync(current) ? current : fs10.existsSync(legacy) ? legacy : void 0;
|
|
394
398
|
if (src) candidates.push({ src, slug: entry.name });
|
|
395
399
|
}
|
|
@@ -399,7 +403,7 @@ function collectSidecarMigrationCandidates(sidecarRoot) {
|
|
|
399
403
|
function moveSidecarManifests(candidates, manifestsDir) {
|
|
400
404
|
let migrated = 0;
|
|
401
405
|
for (const { src, slug } of candidates) {
|
|
402
|
-
const dest =
|
|
406
|
+
const dest = path4.join(manifestsDir, `${slug}.yaml`);
|
|
403
407
|
if (fs10.existsSync(dest)) continue;
|
|
404
408
|
try {
|
|
405
409
|
fs10.renameSync(src, dest);
|
|
@@ -414,11 +418,11 @@ function moveSidecarManifests(candidates, manifestsDir) {
|
|
|
414
418
|
return migrated;
|
|
415
419
|
}
|
|
416
420
|
function initStoreGitRepo(storeRoot) {
|
|
417
|
-
if (fs10.existsSync(
|
|
421
|
+
if (fs10.existsSync(path4.join(storeRoot, ".git"))) return;
|
|
418
422
|
try {
|
|
419
423
|
spawnSync("git", ["init", "--quiet"], { cwd: storeRoot, stdio: "ignore" });
|
|
420
424
|
fs10.writeFileSync(
|
|
421
|
-
|
|
425
|
+
path4.join(storeRoot, ".gitignore"),
|
|
422
426
|
"# Remote-store cache \u2014 local to this machine.\nremote-cache/\n",
|
|
423
427
|
"utf8"
|
|
424
428
|
);
|
|
@@ -516,7 +520,7 @@ async function librariesPresent(client) {
|
|
|
516
520
|
return rs.rows.length > 0;
|
|
517
521
|
}
|
|
518
522
|
function slugify2(p) {
|
|
519
|
-
const base =
|
|
523
|
+
const base = path4.basename(p) || "lib";
|
|
520
524
|
return base.toLowerCase().replace(/[^a-z0-9-]+/g, "-").replace(/^-|-$/g, "") || "lib";
|
|
521
525
|
}
|
|
522
526
|
async function runLibrariesMigration(client) {
|
|
@@ -681,19 +685,19 @@ async function purgeOrphanedAssetDefinitions(client) {
|
|
|
681
685
|
}
|
|
682
686
|
function assertNoLegacyLibDb(newDbPath) {
|
|
683
687
|
if (fs10.existsSync(newDbPath)) return;
|
|
684
|
-
const parent =
|
|
688
|
+
const parent = path4.dirname(newDbPath);
|
|
685
689
|
const skaileHome = globalSkaileDir();
|
|
686
|
-
const defaultIndexPath2 =
|
|
690
|
+
const defaultIndexPath2 = path4.join(skaileHome, "index.db");
|
|
687
691
|
const candidates = [];
|
|
688
|
-
if (
|
|
689
|
-
candidates.push(
|
|
692
|
+
if (path4.basename(newDbPath) === "index.db") {
|
|
693
|
+
candidates.push(path4.join(parent, "lib.db"));
|
|
690
694
|
}
|
|
691
695
|
if (newDbPath === defaultIndexPath2) {
|
|
692
|
-
candidates.push(
|
|
693
|
-
candidates.push(
|
|
696
|
+
candidates.push(path4.join(skaileHome, "libraries", "lib.db"));
|
|
697
|
+
candidates.push(path4.join(skaileHome, "library", "lib.db"));
|
|
694
698
|
}
|
|
695
|
-
if (
|
|
696
|
-
candidates.push(
|
|
699
|
+
if (path4.basename(parent) === "libraries") {
|
|
700
|
+
candidates.push(path4.join(path4.dirname(parent), "library", "lib.db"));
|
|
697
701
|
}
|
|
698
702
|
for (const legacy of candidates) {
|
|
699
703
|
if (!fs10.existsSync(legacy)) continue;
|
|
@@ -855,14 +859,14 @@ var LocalIndex = class {
|
|
|
855
859
|
let dbPath;
|
|
856
860
|
if (typeof optionsOrDir === "string") {
|
|
857
861
|
dir = optionsOrDir;
|
|
858
|
-
dbPath =
|
|
862
|
+
dbPath = path4.join(dir, "index.db");
|
|
859
863
|
} else if (optionsOrDir?.indexPath) {
|
|
860
864
|
dbPath = optionsOrDir.indexPath;
|
|
861
865
|
dir = optionsOrDir.libraryDir ?? resolveLibraryDir();
|
|
862
866
|
this._kindRegistry = optionsOrDir.kindRegistry;
|
|
863
867
|
} else if (optionsOrDir?.libraryDir) {
|
|
864
868
|
dir = optionsOrDir.libraryDir;
|
|
865
|
-
dbPath =
|
|
869
|
+
dbPath = path4.join(dir, "index.db");
|
|
866
870
|
this._kindRegistry = optionsOrDir.kindRegistry;
|
|
867
871
|
} else {
|
|
868
872
|
dir = resolveLibraryDir();
|
|
@@ -872,7 +876,7 @@ var LocalIndex = class {
|
|
|
872
876
|
if (!fs10.existsSync(dir)) {
|
|
873
877
|
fs10.mkdirSync(dir, { recursive: true });
|
|
874
878
|
}
|
|
875
|
-
const dbParent =
|
|
879
|
+
const dbParent = path4.dirname(dbPath);
|
|
876
880
|
if (!fs10.existsSync(dbParent)) {
|
|
877
881
|
fs10.mkdirSync(dbParent, { recursive: true });
|
|
878
882
|
}
|
|
@@ -1094,7 +1098,7 @@ var LocalIndex = class {
|
|
|
1094
1098
|
* @returns The created Instance plus its on-disk install path.
|
|
1095
1099
|
*/
|
|
1096
1100
|
async install(manifest, opts) {
|
|
1097
|
-
const libraryRoot = opts?.libraryRoot ??
|
|
1101
|
+
const libraryRoot = opts?.libraryRoot ?? path4.join(this.libraryDir, GLOBAL_INSTALL_DIR_NAME);
|
|
1098
1102
|
const { installPath } = await installFromManifest({
|
|
1099
1103
|
manifest,
|
|
1100
1104
|
libraryRoot,
|
|
@@ -1251,7 +1255,7 @@ function git(cwd, args) {
|
|
|
1251
1255
|
return spawnSync("git", args, { cwd, encoding: "utf-8" });
|
|
1252
1256
|
}
|
|
1253
1257
|
function isGitRepo(libPath) {
|
|
1254
|
-
return existsSync(
|
|
1258
|
+
return existsSync(path4.join(libPath, ".git"));
|
|
1255
1259
|
}
|
|
1256
1260
|
function spawnGit(cwd, args, action) {
|
|
1257
1261
|
const r = git(cwd, args);
|
|
@@ -1261,8 +1265,15 @@ function spawnGit(cwd, args, action) {
|
|
|
1261
1265
|
}
|
|
1262
1266
|
}
|
|
1263
1267
|
function setOriginUrl(libPath, url) {
|
|
1264
|
-
const
|
|
1268
|
+
const current = git(libPath, ["remote", "get-url", "origin"]);
|
|
1269
|
+
const hasOrigin = current.status === 0;
|
|
1265
1270
|
spawnGit(libPath, ["remote", hasOrigin ? "set-url" : "add", "--", "origin", url], "remote");
|
|
1271
|
+
if (hasOrigin && current.stdout.trim() !== url) {
|
|
1272
|
+
const refs = git(libPath, ["for-each-ref", "--format=%(refname)", "refs/remotes/origin"]);
|
|
1273
|
+
for (const ref of refs.stdout.split("\n").filter(Boolean)) {
|
|
1274
|
+
spawnGit(libPath, ["update-ref", "--no-deref", "-d", ref], "update-ref");
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1266
1277
|
}
|
|
1267
1278
|
function ensureGitRepo(libPath, url, branch) {
|
|
1268
1279
|
if (!isGitRepo(libPath)) {
|
|
@@ -1606,7 +1617,7 @@ var LibraryManager = class {
|
|
|
1606
1617
|
(l) => l.isDefault && (l.ownership === "owner" || l.ownership === "contributor")
|
|
1607
1618
|
);
|
|
1608
1619
|
if (writableDefault) return { library: writableDefault, created: false };
|
|
1609
|
-
const personalPath =
|
|
1620
|
+
const personalPath = path4.join(librariesDir, "personal");
|
|
1610
1621
|
fs10.mkdirSync(personalPath, { recursive: true });
|
|
1611
1622
|
const lib = await this.addLibrary({
|
|
1612
1623
|
name: "personal",
|
|
@@ -1637,6 +1648,24 @@ function describeSyncError(err) {
|
|
|
1637
1648
|
}
|
|
1638
1649
|
return parts.join(": ");
|
|
1639
1650
|
}
|
|
1651
|
+
function scanLibraryRoot(rootPath, registry, scanOpts) {
|
|
1652
|
+
const fallbackPublisher = resolveSourcePublisher(rootPath) ?? (path4.basename(rootPath) || "unknown");
|
|
1653
|
+
const opts = {
|
|
1654
|
+
registry,
|
|
1655
|
+
sidecarManifestFile: scanOpts?.sidecarManifestFile,
|
|
1656
|
+
sidecarPath: scanOpts?.sidecarPath,
|
|
1657
|
+
includeDev: scanOpts?.includeDev ?? false,
|
|
1658
|
+
publisher: fallbackPublisher
|
|
1659
|
+
};
|
|
1660
|
+
if (!scanOpts?.sidecarPath && !scanOpts?.sidecarManifestFile) {
|
|
1661
|
+
opts.sourceConfig = readManifestSourceConfig(rootPath, fallbackPublisher);
|
|
1662
|
+
}
|
|
1663
|
+
return discoverAssetsInTree(rootPath, opts);
|
|
1664
|
+
}
|
|
1665
|
+
function libraryScanOptions(library) {
|
|
1666
|
+
const url = library.ownership === "reader" && library.backendConfig && "url" in library.backendConfig ? library.backendConfig.url : void 0;
|
|
1667
|
+
return { includeDev: true, sidecarManifestFile: url ? curatedManifestOverlay(url) : void 0 };
|
|
1668
|
+
}
|
|
1640
1669
|
var LocalCatalogSource = class {
|
|
1641
1670
|
constructor(library, sourceId, rootPath, registry, options) {
|
|
1642
1671
|
this.library = library;
|
|
@@ -1673,9 +1702,9 @@ var LocalCatalogSource = class {
|
|
|
1673
1702
|
libraryId: this.sourceId,
|
|
1674
1703
|
kind: parsed.kind
|
|
1675
1704
|
});
|
|
1676
|
-
const wantPublisher = parsed.publisher
|
|
1705
|
+
const wantPublisher = parsed.publisher === void 0 ? void 0 : barePublisher(parsed.publisher);
|
|
1677
1706
|
return defs.filter(
|
|
1678
|
-
(d) => d.name === parsed.name && (wantPublisher === void 0 || d.publisher
|
|
1707
|
+
(d) => d.name === parsed.name && (wantPublisher === void 0 || barePublisher(d.publisher) === wantPublisher)
|
|
1679
1708
|
).map((d) => d.version);
|
|
1680
1709
|
}
|
|
1681
1710
|
async fetchTarball(_ref, _sha256) {
|
|
@@ -1696,18 +1725,11 @@ var LocalCatalogSource = class {
|
|
|
1696
1725
|
* config's `dev_paths` (e.g. `ai-assets-dev/`) are discovered too.
|
|
1697
1726
|
*/
|
|
1698
1727
|
scan(scanOpts) {
|
|
1699
|
-
|
|
1700
|
-
const opts = {
|
|
1701
|
-
registry: this.registry,
|
|
1702
|
-
sidecarManifestFile: this.sidecarManifestFile,
|
|
1728
|
+
return scanLibraryRoot(this.rootPath, this.registry, {
|
|
1703
1729
|
sidecarPath: this.sidecarPath,
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
};
|
|
1707
|
-
if (!this.sidecarPath && !this.sidecarManifestFile) {
|
|
1708
|
-
opts.sourceConfig = readManifestSourceConfig(this.rootPath, fallbackPublisher);
|
|
1709
|
-
}
|
|
1710
|
-
return discoverAssetsInTree(this.rootPath, opts);
|
|
1730
|
+
sidecarManifestFile: this.sidecarManifestFile,
|
|
1731
|
+
includeDev: scanOpts?.includeDev
|
|
1732
|
+
});
|
|
1711
1733
|
}
|
|
1712
1734
|
/**
|
|
1713
1735
|
* Sync: discover assets in the source directory and cache them in the library.
|
|
@@ -1793,6 +1815,61 @@ function defToCatalogAsset(def) {
|
|
|
1793
1815
|
manifest: def.manifest
|
|
1794
1816
|
};
|
|
1795
1817
|
}
|
|
1818
|
+
|
|
1819
|
+
// library/src/local/install-library-asset.ts
|
|
1820
|
+
function installLibraryAsset(opts) {
|
|
1821
|
+
const { def, library, mode } = opts;
|
|
1822
|
+
const publisher = barePublisher(def.publisher);
|
|
1823
|
+
const ref = assetRefToStr({ kind: def.kind, name: def.name, publisher, pin: def.version });
|
|
1824
|
+
const registry = opts.registry ?? createDefaultRegistry();
|
|
1825
|
+
const found = scanLibraryRoot(library.path, registry, libraryScanOptions(library)).assets.find(
|
|
1826
|
+
(a) => a.kind === def.kind && a.name === def.name && barePublisher(a.publisher) === publisher && a.version === def.version
|
|
1827
|
+
);
|
|
1828
|
+
if (!found) {
|
|
1829
|
+
const reindex = library.ownership === "reader" ? "skaile source sync" : `skaile library index ${library.name}`;
|
|
1830
|
+
throw new Error(
|
|
1831
|
+
`${ref} not found in library "${library.name}" at version ${def.version} \u2014 run \`${reindex}\``
|
|
1832
|
+
);
|
|
1833
|
+
}
|
|
1834
|
+
if (def.sha256 && found.sha256 !== def.sha256) {
|
|
1835
|
+
throw new Error(
|
|
1836
|
+
`hash mismatch for ${ref}: indexed ${def.sha256}, library has ${found.sha256} \u2014 run \`skaile library index ${library.name}\``
|
|
1837
|
+
);
|
|
1838
|
+
}
|
|
1839
|
+
const libRoot = resolve(library.path);
|
|
1840
|
+
const srcRoot = resolve(found.fileFilter.assetRoot);
|
|
1841
|
+
const target = resolve(opts.targetDir);
|
|
1842
|
+
const fileScoped = sharesItsFolder(def.kind, registry);
|
|
1843
|
+
const manifestAbs = resolve(found.manifestPath);
|
|
1844
|
+
const src = fileScoped ? manifestAbs : srcRoot;
|
|
1845
|
+
const rel = relative(libRoot, src).split(sep).join("/");
|
|
1846
|
+
if (!rel) {
|
|
1847
|
+
throw new Error(`${ref} sits at the root of library "${library.name}"; move it into a folder`);
|
|
1848
|
+
}
|
|
1849
|
+
assertSafeManifestPath(target, rel);
|
|
1850
|
+
const installPath = resolve(target, rel);
|
|
1851
|
+
const lockPath = join(target, "skaile.lock.yaml");
|
|
1852
|
+
const prevLock = readLock(lockPath);
|
|
1853
|
+
mkdirSync(dirname(installPath), { recursive: true });
|
|
1854
|
+
if (mode === "link") symlinkSync(src, installPath);
|
|
1855
|
+
else if (fileScoped) copyFileSync(src, installPath);
|
|
1856
|
+
else cpSync(src, installPath, { recursive: true });
|
|
1857
|
+
const lockEntries = buildLibraryLockEntries([
|
|
1858
|
+
{
|
|
1859
|
+
kind: def.kind,
|
|
1860
|
+
publisher,
|
|
1861
|
+
name: def.name,
|
|
1862
|
+
library: {
|
|
1863
|
+
name: library.name,
|
|
1864
|
+
version: def.version,
|
|
1865
|
+
sha256: found.sha256,
|
|
1866
|
+
installed: mode
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1869
|
+
]);
|
|
1870
|
+
writeLock(lockPath, mergeLockFile(prevLock, buildLockFile([], /* @__PURE__ */ new Set(), lockEntries)));
|
|
1871
|
+
return { installPath, lockKey: Object.keys(lockEntries)[0] ?? ref, sha256: found.sha256 };
|
|
1872
|
+
}
|
|
1796
1873
|
var FALLBACK_USER_NAME = "Skaile CLI";
|
|
1797
1874
|
var FALLBACK_USER_EMAIL = "skaile-cli@local";
|
|
1798
1875
|
var ROOT_README = `# Skaile Sidecar Manifests
|
|
@@ -1840,7 +1917,7 @@ var SidecarGit = class {
|
|
|
1840
1917
|
if (!fs10.existsSync(this.rootDir)) {
|
|
1841
1918
|
fs10.mkdirSync(this.rootDir, { recursive: true });
|
|
1842
1919
|
}
|
|
1843
|
-
const gitDir =
|
|
1920
|
+
const gitDir = path4.join(this.rootDir, ".git");
|
|
1844
1921
|
const freshRepo = !fs10.existsSync(gitDir);
|
|
1845
1922
|
if (freshRepo) {
|
|
1846
1923
|
const init = this.spawn(["init", "-b", "main"]);
|
|
@@ -1848,9 +1925,9 @@ var SidecarGit = class {
|
|
|
1848
1925
|
throw new Error(`git init failed: ${init.stderr || init.stdout}`);
|
|
1849
1926
|
}
|
|
1850
1927
|
}
|
|
1851
|
-
const attrsPath =
|
|
1928
|
+
const attrsPath = path4.join(this.rootDir, ".gitattributes");
|
|
1852
1929
|
if (!fs10.existsSync(attrsPath)) fs10.writeFileSync(attrsPath, GITATTRIBUTES, "utf-8");
|
|
1853
|
-
const readmePath =
|
|
1930
|
+
const readmePath = path4.join(this.rootDir, "README.md");
|
|
1854
1931
|
if (!fs10.existsSync(readmePath)) fs10.writeFileSync(readmePath, ROOT_README, "utf-8");
|
|
1855
1932
|
if (!this.hasGlobalGitConfig("user.name")) {
|
|
1856
1933
|
this.spawn(["config", "user.name", FALLBACK_USER_NAME]);
|
|
@@ -1876,7 +1953,7 @@ var SidecarGit = class {
|
|
|
1876
1953
|
*/
|
|
1877
1954
|
async commit(slug, message, opts) {
|
|
1878
1955
|
if (opts?.skip) return;
|
|
1879
|
-
const slugDir =
|
|
1956
|
+
const slugDir = path4.join(this.rootDir, slug);
|
|
1880
1957
|
if (fs10.existsSync(slugDir)) {
|
|
1881
1958
|
this.spawn(["add", "--", slug]);
|
|
1882
1959
|
} else {
|
|
@@ -1937,7 +2014,7 @@ ${result.stderr}`;
|
|
|
1937
2014
|
};
|
|
1938
2015
|
function migrateWorkspaceConfig(dir, opts) {
|
|
1939
2016
|
const filename = opts?.filename ?? "skaile.yaml";
|
|
1940
|
-
const filePath =
|
|
2017
|
+
const filePath = path4.join(dir, filename);
|
|
1941
2018
|
if (!fs10.existsSync(filePath)) {
|
|
1942
2019
|
return { migrated: false, version: 1, warnings: ["No skaile.yaml found"] };
|
|
1943
2020
|
}
|
|
@@ -2162,8 +2239,8 @@ function resolveTemplate(template, context) {
|
|
|
2162
2239
|
});
|
|
2163
2240
|
return { value: result, hasSecret: false };
|
|
2164
2241
|
}
|
|
2165
|
-
function setNestedValue(obj,
|
|
2166
|
-
const parts =
|
|
2242
|
+
function setNestedValue(obj, path16, value) {
|
|
2243
|
+
const parts = path16.split(".");
|
|
2167
2244
|
let current = obj;
|
|
2168
2245
|
for (let i = 0; i < parts.length - 1; i++) {
|
|
2169
2246
|
const key = parts[i];
|
|
@@ -2768,8 +2845,8 @@ function deepEqual(a, b) {
|
|
|
2768
2845
|
function defaultCatalogCacheDir() {
|
|
2769
2846
|
const home = globalSkaileDir();
|
|
2770
2847
|
return migrateLegacyDir(
|
|
2771
|
-
|
|
2772
|
-
|
|
2848
|
+
path4.join(globalCacheRoot(), "catalog"),
|
|
2849
|
+
path4.join(home, "catalog-cache")
|
|
2773
2850
|
);
|
|
2774
2851
|
}
|
|
2775
2852
|
var INDEX_FILE = "index.json";
|
|
@@ -2842,7 +2919,7 @@ var CatalogCache = class {
|
|
|
2842
2919
|
// ── public: tarball cache ───────────────────────────────────────────────
|
|
2843
2920
|
/** Absolute path where a tarball with `sha256` would be cached. */
|
|
2844
2921
|
tarballPath(sha256) {
|
|
2845
|
-
return
|
|
2922
|
+
return path4.join(this.dir, TARBALL_DIR, `${sha256}.tgz`);
|
|
2846
2923
|
}
|
|
2847
2924
|
/** Read a cached tarball from disk if present, otherwise `null`. */
|
|
2848
2925
|
readTarball(sha256) {
|
|
@@ -2852,7 +2929,7 @@ var CatalogCache = class {
|
|
|
2852
2929
|
}
|
|
2853
2930
|
/** Persist a tarball blob to disk (atomic write). */
|
|
2854
2931
|
writeTarball(sha256, bytes) {
|
|
2855
|
-
const dir =
|
|
2932
|
+
const dir = path4.join(this.dir, TARBALL_DIR);
|
|
2856
2933
|
if (!fs10.existsSync(dir)) fs10.mkdirSync(dir, { recursive: true });
|
|
2857
2934
|
const finalPath = this.tarballPath(sha256);
|
|
2858
2935
|
const tmpPath = `${finalPath}.${process.pid}.${Math.random().toString(36).slice(2)}.tmp`;
|
|
@@ -2876,7 +2953,7 @@ var CatalogCache = class {
|
|
|
2876
2953
|
*/
|
|
2877
2954
|
invalidateEverything() {
|
|
2878
2955
|
this.invalidateAll();
|
|
2879
|
-
const tarballDir =
|
|
2956
|
+
const tarballDir = path4.join(this.dir, TARBALL_DIR);
|
|
2880
2957
|
if (fs10.existsSync(tarballDir)) {
|
|
2881
2958
|
fs10.rmSync(tarballDir, { recursive: true, force: true });
|
|
2882
2959
|
}
|
|
@@ -2888,11 +2965,11 @@ var CatalogCache = class {
|
|
|
2888
2965
|
// ── private ─────────────────────────────────────────────────────────────
|
|
2889
2966
|
ensureDir() {
|
|
2890
2967
|
if (!fs10.existsSync(this.dir)) fs10.mkdirSync(this.dir, { recursive: true });
|
|
2891
|
-
const tarballDir =
|
|
2968
|
+
const tarballDir = path4.join(this.dir, TARBALL_DIR);
|
|
2892
2969
|
if (!fs10.existsSync(tarballDir)) fs10.mkdirSync(tarballDir, { recursive: true });
|
|
2893
2970
|
}
|
|
2894
2971
|
indexPath() {
|
|
2895
|
-
return
|
|
2972
|
+
return path4.join(this.dir, INDEX_FILE);
|
|
2896
2973
|
}
|
|
2897
2974
|
loadIndex() {
|
|
2898
2975
|
if (this.index) return this.index;
|
|
@@ -3726,37 +3803,8 @@ var defaultFetch2 = async (url, init) => {
|
|
|
3726
3803
|
signal: requestInit.signal ?? AbortSignal.timeout(CATALOG_REQUEST_TIMEOUT_MS2)
|
|
3727
3804
|
});
|
|
3728
3805
|
};
|
|
3729
|
-
var MANIFEST_FILENAME = "skaile.manifest.yaml";
|
|
3730
|
-
async function writeManifestIfMissing(input) {
|
|
3731
|
-
const manifestPath = path5.join(input.libraryPath, MANIFEST_FILENAME);
|
|
3732
|
-
if (fs10.existsSync(manifestPath)) return { wrote: false, manifestPath };
|
|
3733
|
-
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
3734
|
-
const yaml = `# Generated by skaile library add on ${now}
|
|
3735
|
-
# Edit by hand to inline discovered assets; or run \`skaile library refresh-manifest\`.
|
|
3736
|
-
publisher: ""
|
|
3737
|
-
assets: []
|
|
3738
|
-
`;
|
|
3739
|
-
fs10.writeFileSync(manifestPath, yaml, "utf-8");
|
|
3740
|
-
if (input.ownership !== "owner") {
|
|
3741
|
-
const excludePath = path5.join(input.libraryPath, ".git", "info", "exclude");
|
|
3742
|
-
if (fs10.existsSync(path5.dirname(excludePath))) {
|
|
3743
|
-
const current = fs10.existsSync(excludePath) ? fs10.readFileSync(excludePath, "utf-8") : "";
|
|
3744
|
-
if (!current.includes(MANIFEST_FILENAME)) {
|
|
3745
|
-
fs10.writeFileSync(
|
|
3746
|
-
excludePath,
|
|
3747
|
-
(current.endsWith("\n") || current === "" ? current : `${current}
|
|
3748
|
-
`) + `# skaile-managed local-overlay manifest
|
|
3749
|
-
${MANIFEST_FILENAME}
|
|
3750
|
-
`,
|
|
3751
|
-
"utf-8"
|
|
3752
|
-
);
|
|
3753
|
-
}
|
|
3754
|
-
}
|
|
3755
|
-
}
|
|
3756
|
-
return { wrote: true, manifestPath };
|
|
3757
|
-
}
|
|
3758
3806
|
function discoveredToAssetEntry(asset, repoPublisher, inheritPublisher) {
|
|
3759
|
-
const root =
|
|
3807
|
+
const root = path4.posix.dirname(asset.relativePath.replace(/\\/g, "/"));
|
|
3760
3808
|
const entry = {
|
|
3761
3809
|
kind: asset.kind,
|
|
3762
3810
|
name: asset.name,
|
|
@@ -3780,10 +3828,91 @@ function writeCuratedManifest(input) {
|
|
|
3780
3828
|
const inheritPublisher = input.inheritPublisher ?? false;
|
|
3781
3829
|
const assets = input.assets.filter((a) => a.kind !== "preset").map((a) => discoveredToAssetEntry(a, publisher, inheritPublisher)).sort((a, b) => `${a.kind}:${a.name}`.localeCompare(`${b.kind}:${b.name}`));
|
|
3782
3830
|
const manifest = { publisher, assets };
|
|
3783
|
-
fs10.mkdirSync(
|
|
3831
|
+
fs10.mkdirSync(path4.dirname(manifestPath), { recursive: true });
|
|
3784
3832
|
fs10.writeFileSync(manifestPath, encodeSkaileManifest(manifest), "utf-8");
|
|
3785
3833
|
return { wrote: true, manifestPath, assetCount: assets.length };
|
|
3786
3834
|
}
|
|
3835
|
+
function openManifest(libraryPath) {
|
|
3836
|
+
const dir = path4.resolve(libraryPath);
|
|
3837
|
+
const file = path4.join(dir, SKAILE_MANIFEST_FILENAME);
|
|
3838
|
+
if (!fs10.existsSync(file)) {
|
|
3839
|
+
fs10.mkdirSync(dir, { recursive: true });
|
|
3840
|
+
return { editor: ManifestYamlEditor.create(file), created: true };
|
|
3841
|
+
}
|
|
3842
|
+
const editor = ManifestYamlEditor.load(file);
|
|
3843
|
+
const problem = editor.problem();
|
|
3844
|
+
if (problem) throw new Error(`${file} is not a valid manifest: ${problem}`);
|
|
3845
|
+
return { editor, created: false };
|
|
3846
|
+
}
|
|
3847
|
+
function assertManifestEditable(libraryPath) {
|
|
3848
|
+
openManifest(libraryPath);
|
|
3849
|
+
}
|
|
3850
|
+
function upsertManifestAsset(libraryPath, input) {
|
|
3851
|
+
const { editor } = openManifest(libraryPath);
|
|
3852
|
+
const declared = editor.getPublisher();
|
|
3853
|
+
const topLevel = declared === void 0 ? void 0 : barePublisher(declared);
|
|
3854
|
+
const overridesTopLevel = !!input.publisher && input.publisher !== topLevel;
|
|
3855
|
+
const entry = { kind: input.kind, name: input.name, root: input.root };
|
|
3856
|
+
if (input.version) entry.version = input.version;
|
|
3857
|
+
if (overridesTopLevel) entry.publisher = input.publisher;
|
|
3858
|
+
if (input.description) entry.description = input.description;
|
|
3859
|
+
if (input.keywords && input.keywords.length > 0) entry.keywords = input.keywords;
|
|
3860
|
+
const existing = editor.getAssets().find((a) => a.kind === input.kind && a.name === input.name);
|
|
3861
|
+
const next = existing ? { ...existing, ...entry } : entry;
|
|
3862
|
+
if (existing && input.publisher && !overridesTopLevel) delete next.publisher;
|
|
3863
|
+
if (!existing || !isDeepStrictEqual(existing, next)) {
|
|
3864
|
+
editor.setAsset(next);
|
|
3865
|
+
editor.save();
|
|
3866
|
+
}
|
|
3867
|
+
return { manifestPath: editor.path, added: !existing };
|
|
3868
|
+
}
|
|
3869
|
+
function missingRootAssets(libraryPath, manifest) {
|
|
3870
|
+
return (manifest.assets ?? []).filter((a) => {
|
|
3871
|
+
if (a.source || manifest.source || !a.root) return false;
|
|
3872
|
+
const dir = path4.resolve(libraryPath, a.root);
|
|
3873
|
+
return !(fs10.existsSync(dir) && fs10.statSync(dir).isDirectory());
|
|
3874
|
+
});
|
|
3875
|
+
}
|
|
3876
|
+
function pruneMissingRootAssets(libraryPath) {
|
|
3877
|
+
const manifest = loadSkPublishManifest(libraryPath);
|
|
3878
|
+
if (!manifest) return [];
|
|
3879
|
+
const missing = missingRootAssets(libraryPath, manifest);
|
|
3880
|
+
if (missing.length === 0) return [];
|
|
3881
|
+
const { editor } = openManifest(libraryPath);
|
|
3882
|
+
const removed = missing.filter((a) => editor.removeAsset(a.kind, a.name));
|
|
3883
|
+
if (removed.length > 0) editor.save();
|
|
3884
|
+
return removed;
|
|
3885
|
+
}
|
|
3886
|
+
function stampManifestPublisher(libraryPath, publisher) {
|
|
3887
|
+
const { editor, created } = openManifest(libraryPath);
|
|
3888
|
+
if (editor.getPublisher()) return false;
|
|
3889
|
+
editor.setPublisher(publisher);
|
|
3890
|
+
if (created) editor.ensureAssets();
|
|
3891
|
+
editor.save();
|
|
3892
|
+
return true;
|
|
3893
|
+
}
|
|
3894
|
+
function setManifestPublisher(libraryPath, publisher) {
|
|
3895
|
+
const { editor, created } = openManifest(libraryPath);
|
|
3896
|
+
if (editor.getPublisher() === publisher) return false;
|
|
3897
|
+
editor.setPublisher(publisher);
|
|
3898
|
+
if (created) editor.ensureAssets();
|
|
3899
|
+
editor.save();
|
|
3900
|
+
return true;
|
|
3901
|
+
}
|
|
3902
|
+
async function syncManifestWithDisk(libraryPath, defaultPublisher) {
|
|
3903
|
+
stampManifestPublisher(libraryPath, defaultPublisher);
|
|
3904
|
+
const removed = pruneMissingRootAssets(libraryPath);
|
|
3905
|
+
const publisher = loadSkPublishManifest(libraryPath)?.publisher ?? defaultPublisher;
|
|
3906
|
+
for (const e of await scanDirectory(libraryPath, publisher)) {
|
|
3907
|
+
upsertManifestAsset(libraryPath, {
|
|
3908
|
+
kind: e.kind,
|
|
3909
|
+
name: e.name,
|
|
3910
|
+
root: path4.relative(libraryPath, path4.dirname(e.source)) || e.name,
|
|
3911
|
+
version: e.version
|
|
3912
|
+
});
|
|
3913
|
+
}
|
|
3914
|
+
return removed;
|
|
3915
|
+
}
|
|
3787
3916
|
var PinPolicySchema = z3.enum(PIN_POLICIES);
|
|
3788
3917
|
var LibraryInstanceRefSchema = z3.object({
|
|
3789
3918
|
id: z3.string().uuid(),
|
|
@@ -3836,7 +3965,7 @@ function parseWorkspaceV2(raw) {
|
|
|
3836
3965
|
return WorkspaceConfigV2Schema.parse(raw);
|
|
3837
3966
|
}
|
|
3838
3967
|
function loadWorkspaceV2(dir, filename = "skaile.yaml") {
|
|
3839
|
-
const filePath =
|
|
3968
|
+
const filePath = path4.join(dir, filename);
|
|
3840
3969
|
if (!fs10.existsSync(filePath)) return null;
|
|
3841
3970
|
const content = fs10.readFileSync(filePath, "utf-8");
|
|
3842
3971
|
const raw = parse(content);
|
|
@@ -3844,7 +3973,7 @@ function loadWorkspaceV2(dir, filename = "skaile.yaml") {
|
|
|
3844
3973
|
return parseWorkspaceV2(raw);
|
|
3845
3974
|
}
|
|
3846
3975
|
function saveWorkspaceV2(dir, v2, filename = "skaile.yaml") {
|
|
3847
|
-
const filePath =
|
|
3976
|
+
const filePath = path4.join(dir, filename);
|
|
3848
3977
|
let existing = {};
|
|
3849
3978
|
if (fs10.existsSync(filePath)) {
|
|
3850
3979
|
const content = fs10.readFileSync(filePath, "utf-8");
|
|
@@ -3860,7 +3989,7 @@ function saveWorkspaceV2(dir, v2, filename = "skaile.yaml") {
|
|
|
3860
3989
|
}
|
|
3861
3990
|
var LOCK_FILENAME = "skaile.lock.yaml";
|
|
3862
3991
|
function loadLockFile(dir) {
|
|
3863
|
-
const filePath =
|
|
3992
|
+
const filePath = path4.join(dir, LOCK_FILENAME);
|
|
3864
3993
|
if (!fs10.existsSync(filePath)) return null;
|
|
3865
3994
|
const content = fs10.readFileSync(filePath, "utf-8");
|
|
3866
3995
|
const raw = parse(content);
|
|
@@ -3878,7 +4007,7 @@ function loadLockFile(dir) {
|
|
|
3878
4007
|
return LockFileSchema.parse(raw);
|
|
3879
4008
|
}
|
|
3880
4009
|
function saveLockFile(dir, lock) {
|
|
3881
|
-
const filePath =
|
|
4010
|
+
const filePath = path4.join(dir, LOCK_FILENAME);
|
|
3882
4011
|
if (!fs10.existsSync(dir)) {
|
|
3883
4012
|
fs10.mkdirSync(dir, { recursive: true });
|
|
3884
4013
|
}
|
|
@@ -3899,7 +4028,7 @@ function createEmptyLockFile() {
|
|
|
3899
4028
|
};
|
|
3900
4029
|
}
|
|
3901
4030
|
function detectWorkspaceVersion(dir, filename = "skaile.yaml") {
|
|
3902
|
-
const filePath =
|
|
4031
|
+
const filePath = path4.join(dir, filename);
|
|
3903
4032
|
if (!fs10.existsSync(filePath)) return null;
|
|
3904
4033
|
const content = fs10.readFileSync(filePath, "utf-8");
|
|
3905
4034
|
const raw = parse(content);
|
|
@@ -3907,6 +4036,6 @@ function detectWorkspaceVersion(dir, filename = "skaile.yaml") {
|
|
|
3907
4036
|
return raw.version === 2 ? 2 : 1;
|
|
3908
4037
|
}
|
|
3909
4038
|
|
|
3910
|
-
export { AssignmentNotFoundError, CatalogCache, CatalogConfigSchema, CatalogHttpError, DuplicateAssignmentError, DuplicateLibraryNameError, GitSyncDriver, InstanceHasConsumersError, InstanceNotFoundError, InterpolationError, KNOWN_ASSET_KINDS, KnowledgeManifestSchema, LIBRARY_BACKENDS, LIBRARY_OWNERSHIPS, LOCAL_CATALOG_URL, LibraryConfigSchema, LibraryError, LibraryInstanceRefSchema, LibraryManager, LibrarySectionSchema, LibrarySyncError, LocalCatalogSource, LocalIndex, LocalSyncDriver, LockAssignmentSchema, LockFileSchema, OfflineError, OperationNotPermittedError, PIN_POLICIES, PinPolicySchema, PresetAppliedSchema, PresetExpandedSchema, RemoteCatalogSource, RequiresEdgeSchema, RestCatalogSource, SidecarGit, SkaileConfigSchema, SourceNotFoundError, TarballHashMismatchError, UserLibraryNotFoundError, WorkspaceConfigV2Schema, applyNonStructuralUpgrade, applyPreset, applyPresetFromData, classifyRef, cloneOrInitGitRepo, createEmptyLockFile, deriveSlug, detectChanges, detectNestedPresetRefs, detectWorkspaceVersion, ensureGitRepo, evaluateUpgrade, extractLibraryInstanceId, extractReferencedKeys, filterKey, getConfigDefaults, getDefaultValue, getSidecarRoot, getStoreManifestsDir, getStoreRoot, hasInterpolationTokens, interpolate, isGitRepo, isLocalCatalogUrl, isSecretPlaceholder, knowledgeKindProvider, listSidecarSlugsOnDisk, loadLockFile, loadWorkspaceV2, migrateSidecarsToStoreIfNeeded, migrateWorkspaceConfig, parsePreset, parsePresetYaml, parseWorkspaceV2, projectConfigPath, queryInstancePickerChoices, resolveAllItems, resolveConfig, resolveIndexPath, resolveItem, resolvePin, resolveSidecarPaths, saveConfig, saveLockFile, saveWorkspaceV2, setOriginUrl, sha256Hex, storeSecrets, trpcGetUrl,
|
|
3911
|
-
//# sourceMappingURL=chunk-
|
|
3912
|
-
//# sourceMappingURL=chunk-
|
|
4039
|
+
export { AssignmentNotFoundError, CatalogCache, CatalogConfigSchema, CatalogHttpError, DuplicateAssignmentError, DuplicateLibraryNameError, GitSyncDriver, InstanceHasConsumersError, InstanceNotFoundError, InterpolationError, KNOWN_ASSET_KINDS, KnowledgeManifestSchema, LIBRARY_BACKENDS, LIBRARY_OWNERSHIPS, LOCAL_CATALOG_URL, LibraryConfigSchema, LibraryError, LibraryInstanceRefSchema, LibraryManager, LibrarySectionSchema, LibrarySyncError, LocalCatalogSource, LocalIndex, LocalSyncDriver, LockAssignmentSchema, LockFileSchema, OfflineError, OperationNotPermittedError, PIN_POLICIES, PinPolicySchema, PresetAppliedSchema, PresetExpandedSchema, RemoteCatalogSource, RequiresEdgeSchema, RestCatalogSource, SidecarGit, SkaileConfigSchema, SourceNotFoundError, TarballHashMismatchError, UserLibraryNotFoundError, WorkspaceConfigV2Schema, applyNonStructuralUpgrade, applyPreset, applyPresetFromData, assertManifestEditable, classifyRef, cloneOrInitGitRepo, createEmptyLockFile, curatedManifestOverlay, deriveSlug, detectChanges, detectNestedPresetRefs, detectWorkspaceVersion, ensureGitRepo, evaluateUpgrade, extractLibraryInstanceId, extractReferencedKeys, filterKey, getConfigDefaults, getDefaultValue, getSidecarRoot, getStoreManifestsDir, getStoreRoot, hasInterpolationTokens, installLibraryAsset, interpolate, isGitRepo, isLocalCatalogUrl, isSecretPlaceholder, knowledgeKindProvider, listSidecarSlugsOnDisk, loadLockFile, loadWorkspaceV2, migrateSidecarsToStoreIfNeeded, migrateWorkspaceConfig, missingRootAssets, parsePreset, parsePresetYaml, parseWorkspaceV2, projectConfigPath, pruneMissingRootAssets, queryInstancePickerChoices, resolveAllItems, resolveConfig, resolveIndexPath, resolveItem, resolvePin, resolveSidecarPaths, saveConfig, saveLockFile, saveWorkspaceV2, setManifestPublisher, setOriginUrl, sha256Hex, stampManifestPublisher, storeSecrets, syncManifestWithDisk, trpcGetUrl, upsertManifestAsset, validateAllPlaceholders, validateKnowledge, validateNestingDepth, validatePlaceholder, writeCuratedManifest };
|
|
4040
|
+
//# sourceMappingURL=chunk-3ZVSINEV.js.map
|
|
4041
|
+
//# sourceMappingURL=chunk-3ZVSINEV.js.map
|