@skaile/workspaces 4.36.0 → 4.38.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 +44 -0
- package/dist/app-sdk/index.js +1 -1
- package/dist/{asset-feeds-SJELMLNK.js → asset-feeds-UYIFZKKG.js} +16 -16
- package/dist/asset-feeds-UYIFZKKG.js.map +1 -0
- package/dist/asset-manager/catalog-deployer.js +9 -8
- package/dist/asset-manager/index.js +15 -14
- package/dist/asset-manager/installer.js +11 -10
- package/dist/asset-manager/renderers.js +2 -2
- package/dist/asset-manager/src/index.d.ts +77 -18
- package/dist/asset-manager/src/index.d.ts.map +1 -1
- package/dist/asset-manager/src/installer.d.ts +11 -1
- package/dist/asset-manager/src/installer.d.ts.map +1 -1
- package/dist/bridge/drivers/claude-sdk.js +14 -13
- package/dist/bridge/drivers/claude-sdk.js.map +1 -1
- package/dist/bridge/drivers/codex.js +11 -10
- package/dist/bridge/drivers/codex.js.map +1 -1
- package/dist/bridge/drivers/continue.js +12 -11
- package/dist/bridge/drivers/continue.js.map +1 -1
- package/dist/bridge/drivers/echo.js +3 -3
- package/dist/bridge/drivers/gemini.js +6 -6
- package/dist/bridge/drivers/goose.js +12 -11
- package/dist/bridge/drivers/goose.js.map +1 -1
- package/dist/bridge/drivers/omp.js +4 -4
- package/dist/bridge/drivers/opencode.js +12 -11
- package/dist/bridge/drivers/opencode.js.map +1 -1
- package/dist/bridge/drivers/qwen.js +6 -6
- package/dist/bridge/index.js +15 -14
- package/dist/{chunk-3CLUU45N.js → chunk-27DN4DZD.js} +8 -8
- package/dist/{chunk-3CLUU45N.js.map → chunk-27DN4DZD.js.map} +1 -1
- package/dist/{chunk-VOEBLPXO.js → chunk-2EL2PBRC.js} +3 -3
- package/dist/{chunk-VOEBLPXO.js.map → chunk-2EL2PBRC.js.map} +1 -1
- package/dist/{chunk-VRFKCF3R.js → chunk-36ML6SFP.js} +4 -4
- package/dist/{chunk-VRFKCF3R.js.map → chunk-36ML6SFP.js.map} +1 -1
- package/dist/{chunk-O63QZ6XX.js → chunk-4WKZEMBD.js} +4 -4
- package/dist/{chunk-O63QZ6XX.js.map → chunk-4WKZEMBD.js.map} +1 -1
- package/dist/{chunk-2D3C4AJP.js → chunk-5CYEWBPB.js} +11 -4
- package/dist/chunk-5CYEWBPB.js.map +1 -0
- package/dist/{chunk-SQ7IN7KR.js → chunk-5K2VT6E2.js} +3 -3
- package/dist/{chunk-SQ7IN7KR.js.map → chunk-5K2VT6E2.js.map} +1 -1
- package/dist/{chunk-NTASYPDN.js → chunk-5NYBY6ZE.js} +3 -3
- package/dist/{chunk-NTASYPDN.js.map → chunk-5NYBY6ZE.js.map} +1 -1
- package/dist/{chunk-FQE2NBUH.js → chunk-6EMF4UZI.js} +8 -8
- package/dist/{chunk-FQE2NBUH.js.map → chunk-6EMF4UZI.js.map} +1 -1
- package/dist/{chunk-MQU632EK.js → chunk-6KPQDP7P.js} +2 -2
- package/dist/{chunk-MQU632EK.js.map → chunk-6KPQDP7P.js.map} +1 -1
- package/dist/{chunk-LVRKJW53.js → chunk-6VRZ6M2L.js} +10 -3
- package/dist/chunk-6VRZ6M2L.js.map +1 -0
- package/dist/{chunk-5L55HNNA.js → chunk-7FZSABQV.js} +5 -5
- package/dist/{chunk-5L55HNNA.js.map → chunk-7FZSABQV.js.map} +1 -1
- package/dist/{chunk-FLGLODDF.js → chunk-7RC37XFW.js} +3 -3
- package/dist/{chunk-FLGLODDF.js.map → chunk-7RC37XFW.js.map} +1 -1
- package/dist/{chunk-3VUHHDZW.js → chunk-7UL2SQQH.js} +4 -4
- package/dist/{chunk-3VUHHDZW.js.map → chunk-7UL2SQQH.js.map} +1 -1
- package/dist/{chunk-GEEW6SY2.js → chunk-A5EDMBFG.js} +2 -2
- package/dist/{chunk-GEEW6SY2.js.map → chunk-A5EDMBFG.js.map} +1 -1
- package/dist/{chunk-QABZZROM.js → chunk-ARUJBGAH.js} +3 -3
- package/dist/{chunk-QABZZROM.js.map → chunk-ARUJBGAH.js.map} +1 -1
- package/dist/{chunk-TILISP6X.js → chunk-BQ3HXZNT.js} +2 -2
- package/dist/{chunk-TILISP6X.js.map → chunk-BQ3HXZNT.js.map} +1 -1
- package/dist/{chunk-NVNKPWL4.js → chunk-CACCIOQL.js} +12 -12
- package/dist/{chunk-NVNKPWL4.js.map → chunk-CACCIOQL.js.map} +1 -1
- package/dist/{chunk-5JAO4MXA.js → chunk-DOVURNRK.js} +3 -3
- package/dist/{chunk-5JAO4MXA.js.map → chunk-DOVURNRK.js.map} +1 -1
- package/dist/{chunk-P4VHQA4N.js → chunk-DSB6X25D.js} +3 -3
- package/dist/{chunk-P4VHQA4N.js.map → chunk-DSB6X25D.js.map} +1 -1
- package/dist/{chunk-ZWTCXL3H.js → chunk-DV47JNI4.js} +3 -3
- package/dist/{chunk-ZWTCXL3H.js.map → chunk-DV47JNI4.js.map} +1 -1
- package/dist/{chunk-Q7SIVPM2.js → chunk-EETXMMZS.js} +3 -3
- package/dist/{chunk-Q7SIVPM2.js.map → chunk-EETXMMZS.js.map} +1 -1
- package/dist/{chunk-OEBAXTQ4.js → chunk-EOKAFBJ7.js} +3 -3
- package/dist/{chunk-OEBAXTQ4.js.map → chunk-EOKAFBJ7.js.map} +1 -1
- package/dist/{chunk-6BEGKO2Q.js → chunk-HUNZYTOS.js} +4 -3
- package/dist/chunk-HUNZYTOS.js.map +1 -0
- package/dist/{chunk-YOIENZHA.js → chunk-HXG6IZSF.js} +6 -6
- package/dist/{chunk-YOIENZHA.js.map → chunk-HXG6IZSF.js.map} +1 -1
- package/dist/{chunk-L22WTIIC.js → chunk-ILAZDNIA.js} +3 -3
- package/dist/{chunk-L22WTIIC.js.map → chunk-ILAZDNIA.js.map} +1 -1
- package/dist/{chunk-FWZTKSYI.js → chunk-J5UF3OOS.js} +10 -10
- package/dist/{chunk-FWZTKSYI.js.map → chunk-J5UF3OOS.js.map} +1 -1
- package/dist/{chunk-QKXDRBLL.js → chunk-JEPSP6XK.js} +11 -80
- package/dist/chunk-JEPSP6XK.js.map +1 -0
- package/dist/{chunk-KIFJWSNC.js → chunk-KAJH3XPW.js} +7 -3
- package/dist/chunk-KAJH3XPW.js.map +1 -0
- package/dist/chunk-LOHQTTUV.js +29 -0
- package/dist/chunk-LOHQTTUV.js.map +1 -0
- package/dist/{chunk-MDBAEEY5.js → chunk-MQ42OYKH.js} +159 -7
- package/dist/chunk-MQ42OYKH.js.map +1 -0
- package/dist/{chunk-5JJ5KQUM.js → chunk-MS2JK4V7.js} +6 -6
- package/dist/{chunk-5JJ5KQUM.js.map → chunk-MS2JK4V7.js.map} +1 -1
- package/dist/{chunk-JRSLMZOT.js → chunk-OKGUDNDT.js} +37 -7
- package/dist/chunk-OKGUDNDT.js.map +1 -0
- package/dist/{chunk-DFZDL62S.js → chunk-OLMNDIAU.js} +14 -9
- package/dist/chunk-OLMNDIAU.js.map +1 -0
- package/dist/{chunk-3SUWLY3H.js → chunk-OQRB7JUS.js} +3 -3
- package/dist/{chunk-3SUWLY3H.js.map → chunk-OQRB7JUS.js.map} +1 -1
- package/dist/{chunk-TTITGVXV.js → chunk-PRCUGFXV.js} +3 -3
- package/dist/{chunk-TTITGVXV.js.map → chunk-PRCUGFXV.js.map} +1 -1
- package/dist/{chunk-MRS5YHPI.js → chunk-QBQITQAM.js} +3 -3
- package/dist/{chunk-MRS5YHPI.js.map → chunk-QBQITQAM.js.map} +1 -1
- package/dist/{chunk-PKGI5QG7.js → chunk-QWWDDU5Z.js} +274 -67
- package/dist/chunk-QWWDDU5Z.js.map +1 -0
- package/dist/{chunk-NKYNDLCB.js → chunk-R2U346ER.js} +3 -3
- package/dist/{chunk-NKYNDLCB.js.map → chunk-R2U346ER.js.map} +1 -1
- package/dist/{chunk-KVDXSEQH.js → chunk-R5ARWJGE.js} +104 -63
- package/dist/chunk-R5ARWJGE.js.map +1 -0
- package/dist/chunk-TLKM4M47.js +78 -0
- package/dist/chunk-TLKM4M47.js.map +1 -0
- package/dist/{chunk-NFECHLV6.js → chunk-TNWXGHLD.js} +3 -3
- package/dist/{chunk-NFECHLV6.js.map → chunk-TNWXGHLD.js.map} +1 -1
- package/dist/{chunk-H3KXUUYQ.js → chunk-VDBP6Y5M.js} +4 -4
- package/dist/{chunk-H3KXUUYQ.js.map → chunk-VDBP6Y5M.js.map} +1 -1
- package/dist/{chunk-XN7DAZB7.js → chunk-VJNTB4DN.js} +5 -5
- package/dist/chunk-VJNTB4DN.js.map +1 -0
- package/dist/{chunk-BSIHJZKN.js → chunk-XU7JET5Z.js} +107 -26
- package/dist/chunk-XU7JET5Z.js.map +1 -0
- package/dist/{chunk-LIS5KT2X.js → chunk-YCJ3PJNB.js} +5 -5
- package/dist/{chunk-LIS5KT2X.js.map → chunk-YCJ3PJNB.js.map} +1 -1
- package/dist/{chunk-VCLN2IUM.js → chunk-YCMZHL4T.js} +31 -27
- package/dist/chunk-YCMZHL4T.js.map +1 -0
- package/dist/{chunk-JS7DCCDA.js → chunk-YNUBJY3L.js} +4 -4
- package/dist/chunk-YNUBJY3L.js.map +1 -0
- package/dist/{chunk-S63H4HDH.js → chunk-YQEF36D5.js} +4 -4
- package/dist/{chunk-S63H4HDH.js.map → chunk-YQEF36D5.js.map} +1 -1
- package/dist/{chunk-FJYOQMXT.js → chunk-YV3YI3TA.js} +32 -16
- package/dist/chunk-YV3YI3TA.js.map +1 -0
- package/dist/cli/index.js +755 -533
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/src/asset-feeds.d.ts.map +1 -1
- package/dist/cli/src/commands/asset-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/cache.d.ts.map +1 -1
- package/dist/cli/src/commands/catalog.d.ts +28 -3
- package/dist/cli/src/commands/catalog.d.ts.map +1 -1
- package/dist/cli/src/commands/complete-resolvers.d.ts +1 -7
- package/dist/cli/src/commands/complete-resolvers.d.ts.map +1 -1
- package/dist/cli/src/commands/complete.d.ts.map +1 -1
- package/dist/cli/src/commands/diff.d.ts +3 -1
- package/dist/cli/src/commands/diff.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 +8 -0
- package/dist/cli/src/commands/library-index.d.ts.map +1 -1
- package/dist/cli/src/commands/library-publish.d.ts +7 -2
- package/dist/cli/src/commands/library-publish.d.ts.map +1 -1
- package/dist/cli/src/commands/manage.d.ts.map +1 -1
- package/dist/cli/src/commands/outdated.d.ts +12 -2
- package/dist/cli/src/commands/outdated.d.ts.map +1 -1
- package/dist/cli/src/commands/project.d.ts +2 -2
- package/dist/cli/src/commands/publish-core.d.ts +21 -0
- package/dist/cli/src/commands/publish-core.d.ts.map +1 -1
- package/dist/cli/src/commands/skailify-lib.d.ts +18 -1
- package/dist/cli/src/commands/skailify-lib.d.ts.map +1 -1
- package/dist/cli/src/commands/source-manifest-publish.d.ts.map +1 -1
- package/dist/cli/src/commands/store.d.ts.map +1 -1
- package/dist/cli/src/commands/update.d.ts.map +1 -1
- package/dist/cli/src/commands/validate.d.ts.map +1 -1
- package/dist/cli/src/paths.d.ts +1 -1
- package/dist/cli/src/paths.d.ts.map +1 -1
- package/dist/cli/src/store-auth.d.ts.map +1 -1
- package/dist/connectors/config.js +6 -5
- package/dist/connectors/index.js +19 -18
- package/dist/connectors-shared/index.js +2 -2
- package/dist/core/index.js +8 -7
- 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 -5
- package/dist/core/src/asset-roots.d.ts +2 -12
- package/dist/core/src/asset-roots.d.ts.map +1 -1
- package/dist/core/src/cache-paths.d.ts +7 -3
- package/dist/core/src/cache-paths.d.ts.map +1 -1
- package/dist/core/src/index.d.ts +3 -3
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/core/src/lock.d.ts +27 -4
- package/dist/core/src/lock.d.ts.map +1 -1
- package/dist/core/src/models.d.ts +26 -6
- package/dist/core/src/models.d.ts.map +1 -1
- package/dist/core/src/repo-manager.d.ts.map +1 -1
- package/dist/core/src/settings.d.ts +2 -1
- package/dist/core/src/settings.d.ts.map +1 -1
- package/dist/core/src/store.d.ts.map +1 -1
- package/dist/core/src/workspace-config.d.ts.map +1 -1
- package/dist/core/store.js +2 -1
- package/dist/core/workspace-config.js +5 -4
- package/dist/deploy/index.js +8 -7
- package/dist/deploy/index.js.map +1 -1
- package/dist/discovery/index.js +5 -5
- package/dist/discovery/src/domains.d.ts +6 -1
- package/dist/discovery/src/domains.d.ts.map +1 -1
- package/dist/discovery/src/index.d.ts +1 -1
- package/dist/discovery/src/index.d.ts.map +1 -1
- package/dist/{ensure-sources-SYZO2HNP.js → ensure-sources-VX63EKY7.js} +18 -17
- package/dist/ensure-sources-VX63EKY7.js.map +1 -0
- package/dist/factory-assets/connectors/box.js +19 -18
- package/dist/factory-assets/connectors/deploy.js +19 -18
- package/dist/factory-assets/connectors/devserver.js +19 -18
- package/dist/factory-assets/connectors/flow/adapter.js +19 -18
- package/dist/factory-assets/connectors/flow/engine.js +9 -8
- package/dist/factory-assets/connectors/flow/run-flow.js +21 -20
- package/dist/factory-assets/connectors/flow.js +19 -18
- package/dist/factory-assets/connectors/git.js +19 -18
- package/dist/factory-assets/connectors/gmail.js +19 -18
- package/dist/factory-assets/connectors/googledrive.js +19 -18
- package/dist/factory-assets/connectors/local.js +19 -18
- package/dist/factory-assets/connectors/mattermost.js +19 -18
- package/dist/factory-assets/connectors/memory.js +19 -18
- package/dist/factory-assets/connectors/minio.js +19 -18
- package/dist/factory-assets/connectors/postgres.js +19 -18
- package/dist/factory-assets/connectors/s3.js +19 -18
- package/dist/factory-assets/connectors/sharepoint.js +19 -18
- package/dist/factory-assets/connectors/sqlite.js +19 -18
- package/dist/factory-assets/connectors/static-server.js +19 -18
- package/dist/factory-assets/connectors/tunnel.js +19 -18
- package/dist/factory-assets/connectors/webdav.js +19 -18
- package/dist/factory-assets/connectors/xstate-store.js +19 -18
- package/dist/factory-assets/connectors/xstate.js +19 -18
- package/dist/flows-PX53XFV7.js +25 -0
- package/dist/{flows-6MDMBQUZ.js.map → flows-PX53XFV7.js.map} +1 -1
- package/dist/{helpers-IMUCDNME.js → helpers-DF55G2YC.js} +18 -17
- package/dist/{helpers-IMUCDNME.js.map → helpers-DF55G2YC.js.map} +1 -1
- package/dist/library/index.js +12 -11
- package/dist/library/install.js +2 -2
- package/dist/library/src/config.d.ts +11 -9
- package/dist/library/src/config.d.ts.map +1 -1
- package/dist/library/src/index.d.ts +2 -2
- 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 +7 -0
- package/dist/library/src/local/library-manager.d.ts.map +1 -1
- package/dist/library/src/local/library.d.ts +5 -4
- package/dist/library/src/local/library.d.ts.map +1 -1
- package/dist/library/src/local/schema.d.ts +2 -0
- package/dist/library/src/local/schema.d.ts.map +1 -1
- package/dist/library/src/local/sidecar-paths.d.ts.map +1 -1
- package/dist/library/src/local/store-paths.d.ts.map +1 -1
- package/dist/library/src/remote/cache.d.ts.map +1 -1
- package/dist/library/src/sync/git-driver.d.ts +34 -0
- package/dist/library/src/sync/git-driver.d.ts.map +1 -1
- package/dist/{library-publish-XAIAHKRL.js → library-publish-2PNWJJOY.js} +95 -41
- package/dist/library-publish-2PNWJJOY.js.map +1 -0
- package/dist/open-library-SUVOMIWZ.js +38 -0
- package/dist/{open-library-6N3XZ2XL.js.map → open-library-SUVOMIWZ.js.map} +1 -1
- package/dist/paths-W4LDORQQ.js +21 -0
- package/dist/{paths-4MTICP3T.js.map → paths-W4LDORQQ.js.map} +1 -1
- package/dist/{plugin-store-GQ4WQZJ2.js → plugin-store-D45CREMJ.js} +10 -9
- package/dist/plugin-store-D45CREMJ.js.map +1 -0
- package/dist/project-RTLVOXUU.js +34 -0
- package/dist/{project-HESTMGPU.js.map → project-RTLVOXUU.js.map} +1 -1
- package/dist/resolver/index.js +9 -8
- package/dist/runner/index.js +28 -27
- package/dist/runner/src/composition/bootstrap.d.ts +1 -1
- package/dist/runner/src/composition/bootstrap.d.ts.map +1 -1
- package/dist/runner/src/prompt-turn-queue.d.ts +27 -4
- package/dist/runner/src/prompt-turn-queue.d.ts.map +1 -1
- package/dist/runner/src/runtime-session-emit.d.ts +2 -1
- package/dist/runner/src/runtime-session-emit.d.ts.map +1 -1
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +15 -14
- package/dist/sdk/bridge.js +15 -14
- package/dist/sdk/core.js +8 -7
- package/dist/sdk/flow.js +9 -8
- package/dist/sdk/index.js +28 -27
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/resolver.js +9 -8
- package/dist/sdk/runner.js +28 -27
- package/dist/sdk/session.js +2 -2
- package/dist/sdk/store.js +1 -1
- package/dist/sdk/types.js +1 -1
- package/dist/secrets/index.js +18 -1
- package/dist/secrets/src/providers/local.d.ts.map +1 -1
- package/dist/session/index.js +2 -2
- package/dist/session/src/dispatcher.d.ts.map +1 -1
- package/dist/{setup-PQG5DH5Z.js → setup-ZA7VZL72.js} +25 -24
- package/dist/setup-ZA7VZL72.js.map +1 -0
- package/dist/skills-R3RPIPWP.js +25 -0
- package/dist/{skills-JHUY4DFE.js.map → skills-R3RPIPWP.js.map} +1 -1
- package/dist/{source-PNYNVVPM.js → source-Y5YQ7M53.js} +21 -20
- package/dist/{source-PNYNVVPM.js.map → source-Y5YQ7M53.js.map} +1 -1
- package/dist/{source-manifest-publish-6O6H4T2P.js → source-manifest-publish-RZIJNRIW.js} +24 -25
- package/dist/source-manifest-publish-RZIJNRIW.js.map +1 -0
- package/dist/store/index.js +1 -1
- package/dist/store/src/store.d.ts +9 -0
- package/dist/store/src/store.d.ts.map +1 -1
- package/dist/store/src/types.d.ts +17 -0
- package/dist/store/src/types.d.ts.map +1 -1
- package/dist/tui/index.js +28 -27
- package/dist/tui/index.js.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/manifests.js +1 -1
- package/dist/types/src/events.d.ts +28 -3
- package/dist/types/src/events.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/manifests/index.d.ts +1 -1
- package/dist/types/src/manifests/index.d.ts.map +1 -1
- package/dist/types/src/manifests/skill.d.ts +10 -0
- package/dist/types/src/manifests/skill.d.ts.map +1 -1
- package/dist/types/src/protocol.d.ts +2 -0
- package/dist/types/src/protocol.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +12 -1
- package/dist/types/src/version.d.ts.map +1 -1
- package/dist/workspace-plugin/adapters/mcp.js +15 -14
- package/dist/workspace-plugin/adapters/omp.js +7 -7
- package/dist/workspace-plugin/index.js +1 -1
- package/package.json +1 -1
- package/dist/asset-feeds-SJELMLNK.js.map +0 -1
- package/dist/chunk-2D3C4AJP.js.map +0 -1
- package/dist/chunk-422WJ2QC.js +0 -158
- package/dist/chunk-422WJ2QC.js.map +0 -1
- package/dist/chunk-6BEGKO2Q.js.map +0 -1
- package/dist/chunk-BSIHJZKN.js.map +0 -1
- package/dist/chunk-DFZDL62S.js.map +0 -1
- package/dist/chunk-FJYOQMXT.js.map +0 -1
- package/dist/chunk-JRSLMZOT.js.map +0 -1
- package/dist/chunk-JS7DCCDA.js.map +0 -1
- package/dist/chunk-KIFJWSNC.js.map +0 -1
- package/dist/chunk-KVDXSEQH.js.map +0 -1
- package/dist/chunk-LVRKJW53.js.map +0 -1
- package/dist/chunk-MDBAEEY5.js.map +0 -1
- package/dist/chunk-PKGI5QG7.js.map +0 -1
- package/dist/chunk-QKXDRBLL.js.map +0 -1
- package/dist/chunk-VCLN2IUM.js.map +0 -1
- package/dist/chunk-XN7DAZB7.js.map +0 -1
- package/dist/ensure-sources-SYZO2HNP.js.map +0 -1
- package/dist/flows-6MDMBQUZ.js +0 -24
- package/dist/library-publish-XAIAHKRL.js.map +0 -1
- package/dist/open-library-6N3XZ2XL.js +0 -37
- package/dist/paths-4MTICP3T.js +0 -20
- package/dist/plugin-store-GQ4WQZJ2.js.map +0 -1
- package/dist/project-HESTMGPU.js +0 -33
- package/dist/setup-PQG5DH5Z.js.map +0 -1
- package/dist/skills-JHUY4DFE.js +0 -24
- package/dist/source-manifest-publish-6O6H4T2P.js.map +0 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { readManifestSourceConfig, discoverAssetsInTree, isManifestMode } from './chunk-
|
|
2
|
-
import { installFromManifest } from './chunk-
|
|
3
|
-
import { defaultLibraryDir, resolveLibraryDir
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { readManifestSourceConfig, discoverAssetsInTree, isManifestMode } from './chunk-OLMNDIAU.js';
|
|
2
|
+
import { installFromManifest } from './chunk-2EL2PBRC.js';
|
|
3
|
+
import { defaultLibraryDir, resolveLibraryDir } from './chunk-YV3YI3TA.js';
|
|
4
|
+
import { getGlobalCacheDir, resolveSourcePublisher } from './chunk-JEPSP6XK.js';
|
|
5
|
+
import { globalSkaileDir, mergeLegacyEntriesInto, migrateLegacyDir, globalCacheRoot } from './chunk-TLKM4M47.js';
|
|
6
|
+
import { encodeSkaileManifest } from './chunk-DSB6X25D.js';
|
|
7
|
+
import { parseAssetRef } from './chunk-A5EDMBFG.js';
|
|
8
|
+
import { PresetManifestSchema } from './chunk-5CYEWBPB.js';
|
|
8
9
|
import { __export } from './chunk-NSBPE2FW.js';
|
|
9
10
|
import * as fs10 from 'fs';
|
|
10
|
-
import
|
|
11
|
+
import { existsSync, mkdirSync } from 'fs';
|
|
11
12
|
import * as path5 from 'path';
|
|
12
13
|
import { stringify, parse, parseDocument } from 'yaml';
|
|
13
14
|
import * as z3 from 'zod';
|
|
@@ -102,7 +103,7 @@ var CatalogConfigSchema = z3.object({
|
|
|
102
103
|
framing: z3.enum(["trpc", "rest"]).optional()
|
|
103
104
|
});
|
|
104
105
|
var LibraryConfigSchema = z3.object({
|
|
105
|
-
/** Library storage directory. Default: ~/.skaile/libraries */
|
|
106
|
+
/** Library storage directory. Default: $SKAILE_HOME/libraries (~/.skaile/libraries) */
|
|
106
107
|
dir: z3.string().optional(),
|
|
107
108
|
/** Default pin policy for new instances/assignments. */
|
|
108
109
|
pin_policy: z3.enum(PIN_POLICIES).optional()
|
|
@@ -112,7 +113,7 @@ var SkaileConfigSchema = z3.object({
|
|
|
112
113
|
library: LibraryConfigSchema.optional()
|
|
113
114
|
});
|
|
114
115
|
function defaultIndexPath() {
|
|
115
|
-
return path5.join(
|
|
116
|
+
return path5.join(globalSkaileDir(), "index.db");
|
|
116
117
|
}
|
|
117
118
|
function resolveIndexPath() {
|
|
118
119
|
if (process.env.SKAILE_INDEX_PATH) return process.env.SKAILE_INDEX_PATH;
|
|
@@ -126,7 +127,7 @@ function getConfigDefaults() {
|
|
|
126
127
|
}
|
|
127
128
|
var CONFIG_FILENAME = "config.yaml";
|
|
128
129
|
function userConfigPath() {
|
|
129
|
-
return path5.join(
|
|
130
|
+
return path5.join(globalSkaileDir(), CONFIG_FILENAME);
|
|
130
131
|
}
|
|
131
132
|
function projectConfigPath(projectDir) {
|
|
132
133
|
return path5.join(projectDir, ".skaile", CONFIG_FILENAME);
|
|
@@ -324,12 +325,11 @@ var assignments = sqliteTable("assignments", {
|
|
|
324
325
|
pinPolicy: text("pin_policy").notNull(),
|
|
325
326
|
assignedAt: text("assigned_at").notNull()
|
|
326
327
|
});
|
|
327
|
-
var SKAILE_HOME_ENV = "SKAILE_HOME";
|
|
328
328
|
function isClone(dir) {
|
|
329
329
|
return fs10.existsSync(path5.join(dir, ".git"));
|
|
330
330
|
}
|
|
331
331
|
function getSidecarRoot() {
|
|
332
|
-
const home =
|
|
332
|
+
const home = globalSkaileDir();
|
|
333
333
|
const sidecars = path5.join(home, "sidecars");
|
|
334
334
|
const legacy = path5.join(home, "sources");
|
|
335
335
|
mergeLegacyEntriesInto(getGlobalCacheDir(), legacy, isClone);
|
|
@@ -375,8 +375,7 @@ function slugify(input) {
|
|
|
375
375
|
|
|
376
376
|
// library/src/local/store-paths.ts
|
|
377
377
|
function getStoreRoot() {
|
|
378
|
-
|
|
379
|
-
return path5.join(home, "store");
|
|
378
|
+
return path5.join(globalSkaileDir(), "store");
|
|
380
379
|
}
|
|
381
380
|
function getStoreManifestsDir() {
|
|
382
381
|
return path5.join(getStoreRoot(), "manifests");
|
|
@@ -674,10 +673,20 @@ async function healStaleAssetDefinitionsFk(client) {
|
|
|
674
673
|
await client.execute("PRAGMA foreign_keys = ON");
|
|
675
674
|
}
|
|
676
675
|
}
|
|
676
|
+
var ORPHAN_PURGE_VERSION = 1;
|
|
677
|
+
async function purgeOrphanedAssetDefinitions(client) {
|
|
678
|
+
const rs = await client.execute("PRAGMA user_version");
|
|
679
|
+
const current = Number(rs.rows[0]?.user_version ?? 0);
|
|
680
|
+
if (current >= ORPHAN_PURGE_VERSION) return;
|
|
681
|
+
await client.execute(
|
|
682
|
+
"DELETE FROM asset_definitions WHERE library_id IS NULL OR library_id NOT IN (SELECT id FROM libraries)"
|
|
683
|
+
);
|
|
684
|
+
await client.execute(`PRAGMA user_version = ${ORPHAN_PURGE_VERSION}`);
|
|
685
|
+
}
|
|
677
686
|
function assertNoLegacyLibDb(newDbPath) {
|
|
678
687
|
if (fs10.existsSync(newDbPath)) return;
|
|
679
688
|
const parent = path5.dirname(newDbPath);
|
|
680
|
-
const skaileHome =
|
|
689
|
+
const skaileHome = globalSkaileDir();
|
|
681
690
|
const defaultIndexPath2 = path5.join(skaileHome, "index.db");
|
|
682
691
|
const candidates = [];
|
|
683
692
|
if (path5.basename(newDbPath) === "index.db") {
|
|
@@ -725,6 +734,7 @@ async function createLibraryDb(dbPath) {
|
|
|
725
734
|
}
|
|
726
735
|
}
|
|
727
736
|
await healStaleAssetDefinitionsFk(client);
|
|
737
|
+
await purgeOrphanedAssetDefinitions(client);
|
|
728
738
|
if (await librariesPresent(client)) {
|
|
729
739
|
const storeRows = await client.execute({
|
|
730
740
|
sql: "SELECT id, name FROM libraries WHERE backend = ?",
|
|
@@ -928,6 +938,7 @@ var LocalIndex = class {
|
|
|
928
938
|
const db = await this.ensureDb();
|
|
929
939
|
const existing = await db.select().from(libraries).where(eq(libraries.id, id)).get();
|
|
930
940
|
if (!existing) throw new SourceNotFoundError(id);
|
|
941
|
+
await db.delete(assetDefinitions).where(eq(assetDefinitions.libraryId, id)).run();
|
|
931
942
|
await db.delete(libraries).where(eq(libraries.id, id)).run();
|
|
932
943
|
}
|
|
933
944
|
async syncSource(id) {
|
|
@@ -1246,6 +1257,58 @@ var UserLibraryNotFoundError = class extends LibrarySyncError {
|
|
|
1246
1257
|
function git(cwd, args) {
|
|
1247
1258
|
return spawnSync("git", args, { cwd, encoding: "utf-8" });
|
|
1248
1259
|
}
|
|
1260
|
+
function isGitRepo(libPath) {
|
|
1261
|
+
return existsSync(path5.join(libPath, ".git"));
|
|
1262
|
+
}
|
|
1263
|
+
function spawnGit(cwd, args, action) {
|
|
1264
|
+
const r = git(cwd, args);
|
|
1265
|
+
if (r.status !== 0) {
|
|
1266
|
+
const detail = (r.stderr ?? "").trim() || (r.stdout ?? "").trim() || r.error?.message;
|
|
1267
|
+
throw new LibrarySyncError(`git ${action} failed: ${detail}`, "remote_error");
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
function setOriginUrl(libPath, url) {
|
|
1271
|
+
const hasOrigin = git(libPath, ["remote", "get-url", "origin"]).status === 0;
|
|
1272
|
+
spawnGit(libPath, ["remote", hasOrigin ? "set-url" : "add", "--", "origin", url], "remote");
|
|
1273
|
+
}
|
|
1274
|
+
function ensureGitRepo(libPath, url, branch) {
|
|
1275
|
+
if (!isGitRepo(libPath)) {
|
|
1276
|
+
mkdirSync(libPath, { recursive: true });
|
|
1277
|
+
spawnGit(libPath, ["init", "-b", branch], "init");
|
|
1278
|
+
}
|
|
1279
|
+
setOriginUrl(libPath, url);
|
|
1280
|
+
}
|
|
1281
|
+
function cloneOrInitGitRepo(libPath, url, branch) {
|
|
1282
|
+
mkdirSync(libPath, { recursive: true });
|
|
1283
|
+
const clone = spawnSync("git", ["clone", "--", url, libPath], {
|
|
1284
|
+
encoding: "utf-8",
|
|
1285
|
+
env: { ...process.env, GIT_TERMINAL_PROMPT: "0" }
|
|
1286
|
+
});
|
|
1287
|
+
if (clone.status !== 0) {
|
|
1288
|
+
ensureGitRepo(libPath, url, branch);
|
|
1289
|
+
const stderr = clone.stderr.trim();
|
|
1290
|
+
const expected = /already exists and is not an empty directory/.test(stderr);
|
|
1291
|
+
return expected ? { branch, cloned: false } : { branch, cloned: false, reason: stderr };
|
|
1292
|
+
}
|
|
1293
|
+
if (git(libPath, ["rev-parse", "--verify", "--quiet", "HEAD"]).status !== 0) {
|
|
1294
|
+
spawnGit(libPath, ["symbolic-ref", "HEAD", `refs/heads/${branch}`], "symbolic-ref");
|
|
1295
|
+
return { branch, cloned: true };
|
|
1296
|
+
}
|
|
1297
|
+
return {
|
|
1298
|
+
branch: git(libPath, ["symbolic-ref", "--short", "HEAD"]).stdout.trim() || branch,
|
|
1299
|
+
cloned: true
|
|
1300
|
+
};
|
|
1301
|
+
}
|
|
1302
|
+
function countCommits(cwd, range) {
|
|
1303
|
+
const r = git(cwd, ["rev-list", "--count", range]);
|
|
1304
|
+
if (r.status !== 0) return void 0;
|
|
1305
|
+
const n = Number.parseInt(r.stdout.trim(), 10);
|
|
1306
|
+
return Number.isNaN(n) ? void 0 : n;
|
|
1307
|
+
}
|
|
1308
|
+
function headCommit(cwd) {
|
|
1309
|
+
const r = git(cwd, ["rev-parse", "--verify", "--quiet", "HEAD"]);
|
|
1310
|
+
return r.status === 0 ? r.stdout.trim() : void 0;
|
|
1311
|
+
}
|
|
1249
1312
|
function ok(r, action) {
|
|
1250
1313
|
if (r.status !== 0) {
|
|
1251
1314
|
throw new LibrarySyncError(
|
|
@@ -1306,14 +1369,18 @@ var GitSyncDriver = class {
|
|
|
1306
1369
|
const cfg = gitCfg(lib);
|
|
1307
1370
|
const args = ["pull", "--ff-only", "origin", cfg.branch];
|
|
1308
1371
|
if (opts?.rebase) args.splice(1, 1, "--rebase");
|
|
1372
|
+
const before = headCommit(lib.path);
|
|
1309
1373
|
const r = git(lib.path, args);
|
|
1310
1374
|
if (r.status !== 0) {
|
|
1375
|
+
if (/couldn't find remote ref/i.test(r.stderr)) return { applied: 0, conflicts: [] };
|
|
1311
1376
|
if (/non-fast-forward|diverged|conflict/i.test(r.stderr)) {
|
|
1312
1377
|
return { applied: 0, conflicts: [{ path: "(branch)", reason: r.stderr.trim() }] };
|
|
1313
1378
|
}
|
|
1314
1379
|
throw new LibrarySyncError(`git pull failed: ${r.stderr.trim()}`, "remote_error");
|
|
1315
1380
|
}
|
|
1316
|
-
|
|
1381
|
+
const upstream = `refs/remotes/origin/${cfg.branch}`;
|
|
1382
|
+
const applied = (before ? countCommits(lib.path, `${before}..${upstream}`) : countCommits(lib.path, upstream)) ?? 0;
|
|
1383
|
+
return { applied, conflicts: [] };
|
|
1317
1384
|
}
|
|
1318
1385
|
async push(lib, opts) {
|
|
1319
1386
|
if (lib.ownership !== "owner") {
|
|
@@ -1325,8 +1392,10 @@ var GitSyncDriver = class {
|
|
|
1325
1392
|
const cfg = gitCfg(lib);
|
|
1326
1393
|
const args = ["push", "origin", cfg.branch];
|
|
1327
1394
|
if (opts?.force) args.push("--force-with-lease");
|
|
1395
|
+
const local = `refs/heads/${cfg.branch}`;
|
|
1396
|
+
const pushed = countCommits(lib.path, `refs/remotes/origin/${cfg.branch}..${local}`) ?? countCommits(lib.path, local) ?? 0;
|
|
1328
1397
|
ok(git(lib.path, args), "push");
|
|
1329
|
-
return { pushed
|
|
1398
|
+
return { pushed };
|
|
1330
1399
|
}
|
|
1331
1400
|
async propose(lib, opts) {
|
|
1332
1401
|
if (lib.ownership !== "contributor") {
|
|
@@ -1507,6 +1576,19 @@ var LibraryManager = class {
|
|
|
1507
1576
|
await db.update(libraries).set(updates).where(eq(libraries.id, lib.id)).run();
|
|
1508
1577
|
return this.requireLibrary(lib.id);
|
|
1509
1578
|
}
|
|
1579
|
+
/**
|
|
1580
|
+
* The library commands act on when none is named: the default-marked one, else
|
|
1581
|
+
* the only owner/contributor library (a reader library cannot be authored into,
|
|
1582
|
+
* so it never counts). `null` when neither exists — none registered, or several
|
|
1583
|
+
* writable ones and no default to choose between them.
|
|
1584
|
+
*/
|
|
1585
|
+
async findDefaultLibrary() {
|
|
1586
|
+
const all = await this.listLibraries();
|
|
1587
|
+
const def = all.find((l) => l.isDefault);
|
|
1588
|
+
if (def) return def;
|
|
1589
|
+
const writable = all.filter((l) => l.ownership !== "reader");
|
|
1590
|
+
return writable.length === 1 ? writable[0] : null;
|
|
1591
|
+
}
|
|
1510
1592
|
async setDefault(nameOrId) {
|
|
1511
1593
|
const lib = await this.requireLibrary(nameOrId);
|
|
1512
1594
|
const db = await this.lib.dbHandle();
|
|
@@ -1516,8 +1598,7 @@ var LibraryManager = class {
|
|
|
1516
1598
|
}
|
|
1517
1599
|
async removeLibrary(nameOrId, opts = {}) {
|
|
1518
1600
|
const lib = await this.requireLibrary(nameOrId);
|
|
1519
|
-
|
|
1520
|
-
await db.delete(libraries).where(eq(libraries.id, lib.id)).run();
|
|
1601
|
+
await this.lib.removeSource(lib.id);
|
|
1521
1602
|
if (opts.purge && fs10.existsSync(lib.path)) {
|
|
1522
1603
|
fs10.rmSync(lib.path, { recursive: true, force: true });
|
|
1523
1604
|
}
|
|
@@ -2103,8 +2184,8 @@ function resolveTemplate(template, context) {
|
|
|
2103
2184
|
});
|
|
2104
2185
|
return { value: result, hasSecret: false };
|
|
2105
2186
|
}
|
|
2106
|
-
function setNestedValue(obj,
|
|
2107
|
-
const parts =
|
|
2187
|
+
function setNestedValue(obj, path14, value) {
|
|
2188
|
+
const parts = path14.split(".");
|
|
2108
2189
|
let current = obj;
|
|
2109
2190
|
for (let i = 0; i < parts.length - 1; i++) {
|
|
2110
2191
|
const key = parts[i];
|
|
@@ -2707,7 +2788,7 @@ function deepEqual(a, b) {
|
|
|
2707
2788
|
return JSON.stringify(a) === JSON.stringify(b);
|
|
2708
2789
|
}
|
|
2709
2790
|
function defaultCatalogCacheDir() {
|
|
2710
|
-
const home =
|
|
2791
|
+
const home = globalSkaileDir();
|
|
2711
2792
|
return migrateLegacyDir(
|
|
2712
2793
|
path5.join(globalCacheRoot(), "catalog"),
|
|
2713
2794
|
path5.join(home, "catalog-cache")
|
|
@@ -3898,6 +3979,6 @@ function detectWorkspaceVersion(dir, filename = "skaile.yaml") {
|
|
|
3898
3979
|
return raw.version === 2 ? 2 : 1;
|
|
3899
3980
|
}
|
|
3900
3981
|
|
|
3901
|
-
export { AssignmentNotFoundError, CatalogCache, CatalogConfigSchema, CatalogHttpError, DuplicateAssignmentError, DuplicateLibraryNameError, GitSyncDriver, InstanceHasConsumersError, InstanceNotFoundError, InterpolationError, KNOWN_ASSET_KINDS, KnowledgeManifestSchema, LIBRARY_BACKENDS, LIBRARY_OWNERSHIPS, LIBRARY_STRUCTURES, 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, createEmptyLockFile, deriveSlug, detectChanges, detectNestedPresetRefs, detectWorkspaceVersion, evaluateUpgrade, extractLibraryInstanceId, extractReferencedKeys, filterKey, getConfigDefaults, getDefaultValue, getSidecarRoot, getStoreManifestsDir, getStoreRoot, hasInterpolationTokens, interpolate, isLocalCatalogUrl, isSecretPlaceholder, knowledgeKindProvider, listSidecarSlugsOnDisk, loadLockFile, loadWorkspaceV2, migrateSidecarsToStoreIfNeeded, migrateWorkspaceConfig, parsePreset, parsePresetYaml, parseWorkspaceV2, projectConfigPath, queryInstancePickerChoices, resolveAllItems, resolveConfig, resolveIndexPath, resolveItem, resolvePin, resolveSidecarPaths, saveConfig, saveLockFile, saveWorkspaceV2, sha256Hex, storeSecrets, trpcGetUrl, userConfigPath, validateAllPlaceholders, validateKnowledge, validateNestingDepth, validatePlaceholder, writeCuratedManifest, writeManifestIfMissing };
|
|
3902
|
-
//# sourceMappingURL=chunk-
|
|
3903
|
-
//# sourceMappingURL=chunk-
|
|
3982
|
+
export { AssignmentNotFoundError, CatalogCache, CatalogConfigSchema, CatalogHttpError, DuplicateAssignmentError, DuplicateLibraryNameError, GitSyncDriver, InstanceHasConsumersError, InstanceNotFoundError, InterpolationError, KNOWN_ASSET_KINDS, KnowledgeManifestSchema, LIBRARY_BACKENDS, LIBRARY_OWNERSHIPS, LIBRARY_STRUCTURES, 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, userConfigPath, validateAllPlaceholders, validateKnowledge, validateNestingDepth, validatePlaceholder, writeCuratedManifest, writeManifestIfMissing };
|
|
3983
|
+
//# sourceMappingURL=chunk-XU7JET5Z.js.map
|
|
3984
|
+
//# sourceMappingURL=chunk-XU7JET5Z.js.map
|