@skaile/workspaces 6.4.0 → 6.6.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 +58 -1
- package/README.md +4 -0
- package/dist/ai-sdk.js +55 -25
- package/dist/ai-sdk.js.map +1 -1
- package/dist/app-sdk/index.js +1 -1
- package/dist/{asset-feeds-UJSYGKCX.js → asset-feeds-WQ6YQPHV.js} +22 -22
- package/dist/{asset-feeds-UJSYGKCX.js.map → asset-feeds-WQ6YQPHV.js.map} +1 -1
- package/dist/asset-manager/catalog-deployer.js +8 -8
- package/dist/asset-manager/index.js +14 -14
- package/dist/asset-manager/installer.js +10 -10
- package/dist/asset-manager/renderers.js +9 -9
- package/dist/asset-manager/src/index.d.ts +114 -12
- package/dist/asset-manager/src/index.d.ts.map +1 -1
- package/dist/asset-manager/src/installer.d.ts +6 -0
- package/dist/asset-manager/src/installer.d.ts.map +1 -1
- package/dist/bridge/harnesses/claude-sdk.js +24 -19
- package/dist/bridge/harnesses/claude-sdk.js.map +1 -1
- package/dist/bridge/harnesses/codex.js +38 -36
- package/dist/bridge/harnesses/codex.js.map +1 -1
- package/dist/bridge/harnesses/continue.js +12 -13
- package/dist/bridge/harnesses/continue.js.map +1 -1
- package/dist/bridge/harnesses/echo.js +5 -6
- package/dist/bridge/harnesses/echo.js.map +1 -1
- package/dist/bridge/harnesses/gemini.js +9 -10
- package/dist/bridge/harnesses/goose.js +12 -13
- package/dist/bridge/harnesses/goose.js.map +1 -1
- package/dist/bridge/harnesses/omp.js +17 -12
- package/dist/bridge/harnesses/omp.js.map +1 -1
- package/dist/bridge/harnesses/opencode.js +12 -13
- package/dist/bridge/harnesses/opencode.js.map +1 -1
- package/dist/bridge/harnesses/qwen.js +9 -10
- package/dist/bridge/harnesses/qwen.js.map +1 -1
- package/dist/bridge/index.js +20 -21
- package/dist/bridge/src/ai-sdk.d.ts +0 -2
- package/dist/bridge/src/ai-sdk.d.ts.map +1 -1
- package/dist/bridge/src/codex/login-fallback.d.ts +39 -0
- package/dist/bridge/src/codex/login-fallback.d.ts.map +1 -0
- package/dist/bridge/src/error-classifier.d.ts +6 -0
- package/dist/bridge/src/error-classifier.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/claude-sdk.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/codex.d.ts +0 -6
- package/dist/bridge/src/harnesses/codex.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/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/{chunk-GTMANMBZ.js → chunk-2M3VLKT2.js} +3 -3
- package/dist/{chunk-GTMANMBZ.js.map → chunk-2M3VLKT2.js.map} +1 -1
- package/dist/{chunk-2WOA3TKK.js → chunk-2TLPC6TQ.js} +34 -19
- package/dist/chunk-2TLPC6TQ.js.map +1 -0
- package/dist/{chunk-O7KAQQAI.js → chunk-4BFEPZ6J.js} +4 -4
- package/dist/{chunk-O7KAQQAI.js.map → chunk-4BFEPZ6J.js.map} +1 -1
- package/dist/{chunk-TPQKFX6X.js → chunk-4J7JQX4G.js} +4 -4
- package/dist/{chunk-TPQKFX6X.js.map → chunk-4J7JQX4G.js.map} +1 -1
- package/dist/{chunk-6OHZUUR7.js → chunk-5DE3DGVR.js} +11 -5
- package/dist/chunk-5DE3DGVR.js.map +1 -0
- package/dist/{chunk-Q4XWCVFA.js → chunk-5ETYBC2X.js} +8 -8
- package/dist/{chunk-Q4XWCVFA.js.map → chunk-5ETYBC2X.js.map} +1 -1
- package/dist/{chunk-ZWCGJYR7.js → chunk-5XHQBCB5.js} +3 -3
- package/dist/{chunk-ZWCGJYR7.js.map → chunk-5XHQBCB5.js.map} +1 -1
- package/dist/{chunk-JSWMRYLM.js → chunk-65UAC3ZR.js} +31 -7
- package/dist/chunk-65UAC3ZR.js.map +1 -0
- package/dist/{chunk-UBLZALKP.js → chunk-6A6HE5LW.js} +3 -3
- package/dist/{chunk-UBLZALKP.js.map → chunk-6A6HE5LW.js.map} +1 -1
- package/dist/{chunk-ABVWUM2E.js → chunk-6ARPZHOV.js} +47 -25
- package/dist/chunk-6ARPZHOV.js.map +1 -0
- package/dist/{chunk-TDKZL5ZC.js → chunk-6RHWTZPT.js} +4 -4
- package/dist/{chunk-TDKZL5ZC.js.map → chunk-6RHWTZPT.js.map} +1 -1
- package/dist/{chunk-6WQGJF65.js → chunk-6SXSVKQY.js} +88 -17
- package/dist/chunk-6SXSVKQY.js.map +1 -0
- package/dist/{chunk-YFGXYQW4.js → chunk-7I5PNB2G.js} +3 -3
- package/dist/{chunk-YFGXYQW4.js.map → chunk-7I5PNB2G.js.map} +1 -1
- package/dist/{serve-preflight-NPWI4MV6.js → chunk-7PVGND4J.js} +30 -61
- package/dist/chunk-7PVGND4J.js.map +1 -0
- package/dist/{chunk-P7EL7QRD.js → chunk-7SJHSGUV.js} +34 -20
- package/dist/chunk-7SJHSGUV.js.map +1 -0
- package/dist/{chunk-VSCLUPGZ.js → chunk-AQNW2FET.js} +289 -44
- package/dist/chunk-AQNW2FET.js.map +1 -0
- package/dist/{chunk-45KLCFQB.js → chunk-B6N653ZG.js} +6 -6
- package/dist/{chunk-45KLCFQB.js.map → chunk-B6N653ZG.js.map} +1 -1
- package/dist/{chunk-6UP2EDFN.js → chunk-BSMW3PX2.js} +313 -4
- package/dist/chunk-BSMW3PX2.js.map +1 -0
- package/dist/{chunk-HTGTNN2B.js → chunk-CMXDFTA2.js} +3 -3
- package/dist/{chunk-HTGTNN2B.js.map → chunk-CMXDFTA2.js.map} +1 -1
- package/dist/{chunk-YJNE4V2M.js → chunk-DI6J2PJB.js} +70 -37
- package/dist/chunk-DI6J2PJB.js.map +1 -0
- package/dist/{chunk-V4OXHEWY.js → chunk-DS6UUCFG.js} +4 -4
- package/dist/{chunk-V4OXHEWY.js.map → chunk-DS6UUCFG.js.map} +1 -1
- package/dist/{chunk-U6S5CXKB.js → chunk-E2EC6SAX.js} +4 -4
- package/dist/{chunk-U6S5CXKB.js.map → chunk-E2EC6SAX.js.map} +1 -1
- package/dist/{chunk-TF5CWJQZ.js → chunk-EPXZQIC6.js} +23 -80
- package/dist/chunk-EPXZQIC6.js.map +1 -0
- package/dist/{chunk-6X3GDPCB.js → chunk-F4CZQD3T.js} +3 -4
- package/dist/chunk-F4CZQD3T.js.map +1 -0
- package/dist/{chunk-VZU67OKK.js → chunk-G5SYFFMD.js} +2 -2
- package/dist/{chunk-VZU67OKK.js.map → chunk-G5SYFFMD.js.map} +1 -1
- package/dist/{chunk-VV2DJT4I.js → chunk-GNUA7XT2.js} +4 -3
- package/dist/chunk-GNUA7XT2.js.map +1 -0
- package/dist/{chunk-E237FGGX.js → chunk-GTAHU4N4.js} +4 -4
- package/dist/{chunk-E237FGGX.js.map → chunk-GTAHU4N4.js.map} +1 -1
- package/dist/{chunk-SISUT7VR.js → chunk-GTGWRKMJ.js} +7 -7
- package/dist/{chunk-SISUT7VR.js.map → chunk-GTGWRKMJ.js.map} +1 -1
- package/dist/{chunk-BX7PSWJA.js → chunk-HGZN6JLP.js} +4 -4
- package/dist/{chunk-BX7PSWJA.js.map → chunk-HGZN6JLP.js.map} +1 -1
- package/dist/{chunk-L45IHRDH.js → chunk-HQAPUPBE.js} +3 -3
- package/dist/{chunk-L45IHRDH.js.map → chunk-HQAPUPBE.js.map} +1 -1
- package/dist/{chunk-L4OYPFLB.js → chunk-I5IF3JCG.js} +4 -4
- package/dist/{chunk-L4OYPFLB.js.map → chunk-I5IF3JCG.js.map} +1 -1
- package/dist/{chunk-IYZAJ2J2.js → chunk-J262X4JU.js} +36 -36
- package/dist/chunk-J262X4JU.js.map +1 -0
- package/dist/{chunk-WENTJ5KP.js → chunk-J4WKNJHO.js} +6 -6
- package/dist/{chunk-WENTJ5KP.js.map → chunk-J4WKNJHO.js.map} +1 -1
- package/dist/{chunk-3ENE6ZOF.js → chunk-JIQUF3X2.js} +9 -8
- package/dist/chunk-JIQUF3X2.js.map +1 -0
- package/dist/{chunk-TGB4E5Z6.js → chunk-JRVQV7WC.js} +414 -95
- package/dist/chunk-JRVQV7WC.js.map +1 -0
- package/dist/{chunk-BOS7P2Y4.js → chunk-KSH5CFQS.js} +3 -3
- package/dist/{chunk-BOS7P2Y4.js.map → chunk-KSH5CFQS.js.map} +1 -1
- package/dist/{chunk-UUKCPPTQ.js → chunk-KSUT5KAE.js} +3 -3
- package/dist/{chunk-UUKCPPTQ.js.map → chunk-KSUT5KAE.js.map} +1 -1
- package/dist/{chunk-DF5WJC3Q.js → chunk-LBJ4M5J2.js} +4 -4
- package/dist/{chunk-DF5WJC3Q.js.map → chunk-LBJ4M5J2.js.map} +1 -1
- package/dist/{chunk-GBXQFJ4G.js → chunk-MMOWIRHP.js} +310 -175
- package/dist/chunk-MMOWIRHP.js.map +1 -0
- package/dist/{chunk-G63KOHFS.js → chunk-MXI3XWV6.js} +4 -4
- package/dist/{chunk-G63KOHFS.js.map → chunk-MXI3XWV6.js.map} +1 -1
- package/dist/{chunk-ACBL7X62.js → chunk-N2PBAXAA.js} +3 -3
- package/dist/{chunk-ACBL7X62.js.map → chunk-N2PBAXAA.js.map} +1 -1
- package/dist/{chunk-5NHBLKKU.js → chunk-O7QZI6MQ.js} +3 -3
- package/dist/{chunk-5NHBLKKU.js.map → chunk-O7QZI6MQ.js.map} +1 -1
- package/dist/{chunk-U3SXCVR7.js → chunk-OY22B7E2.js} +4 -4
- package/dist/{chunk-U3SXCVR7.js.map → chunk-OY22B7E2.js.map} +1 -1
- package/dist/{chunk-C7TQARGC.js → chunk-PTJTOPE5.js} +3 -3
- package/dist/{chunk-C7TQARGC.js.map → chunk-PTJTOPE5.js.map} +1 -1
- package/dist/{chunk-HSF665NV.js → chunk-RAU5QPI6.js} +5 -5
- package/dist/{chunk-HSF665NV.js.map → chunk-RAU5QPI6.js.map} +1 -1
- package/dist/{chunk-RKI35EAN.js → chunk-RHCEX2EV.js} +3 -3
- package/dist/{chunk-RKI35EAN.js.map → chunk-RHCEX2EV.js.map} +1 -1
- package/dist/{chunk-76WSWPOB.js → chunk-SCRYXAHH.js} +15 -6
- package/dist/chunk-SCRYXAHH.js.map +1 -0
- package/dist/{chunk-DKXNKFKP.js → chunk-SGI5MRKP.js} +75 -3
- package/dist/chunk-SGI5MRKP.js.map +1 -0
- package/dist/{chunk-24D7IW5O.js → chunk-SHTXMERQ.js} +7 -8
- package/dist/chunk-SHTXMERQ.js.map +1 -0
- package/dist/{chunk-IZV3HDVG.js → chunk-SZKCE7EC.js} +5 -5
- package/dist/{chunk-IZV3HDVG.js.map → chunk-SZKCE7EC.js.map} +1 -1
- package/dist/{chunk-UAOHR6AL.js → chunk-TCH5UDKT.js} +4 -4
- package/dist/{chunk-UAOHR6AL.js.map → chunk-TCH5UDKT.js.map} +1 -1
- package/dist/{chunk-UVTN4O7N.js → chunk-TUFNY6OD.js} +33 -10
- package/dist/chunk-TUFNY6OD.js.map +1 -0
- package/dist/{chunk-PTBX55QF.js → chunk-U3UDOX6I.js} +4 -4
- package/dist/{chunk-PTBX55QF.js.map → chunk-U3UDOX6I.js.map} +1 -1
- package/dist/{chunk-BUU2DLPC.js → chunk-USSP43U3.js} +3 -3
- package/dist/{chunk-BUU2DLPC.js.map → chunk-USSP43U3.js.map} +1 -1
- package/dist/{chunk-IZQOO6MN.js → chunk-V5KG6CCV.js} +2 -2
- package/dist/{chunk-IZQOO6MN.js.map → chunk-V5KG6CCV.js.map} +1 -1
- package/dist/{chunk-CK3CJSRY.js → chunk-VJRL6ZK6.js} +4 -4
- package/dist/{chunk-CK3CJSRY.js.map → chunk-VJRL6ZK6.js.map} +1 -1
- package/dist/{chunk-76FLBODK.js → chunk-VT6G5AJV.js} +10 -7
- package/dist/chunk-VT6G5AJV.js.map +1 -0
- package/dist/{chunk-EXRQKOY6.js → chunk-VXYZ5M7Z.js} +83 -34
- package/dist/chunk-VXYZ5M7Z.js.map +1 -0
- package/dist/{chunk-QSIFEHSN.js → chunk-WW5NAU6N.js} +3 -3
- package/dist/{chunk-QSIFEHSN.js.map → chunk-WW5NAU6N.js.map} +1 -1
- package/dist/chunk-XD3RYAMR.js +83 -0
- package/dist/chunk-XD3RYAMR.js.map +1 -0
- package/dist/{chunk-HXZ3FQQN.js → chunk-XYCYGN3Q.js} +82 -50
- package/dist/chunk-XYCYGN3Q.js.map +1 -0
- package/dist/{chunk-5T3DTK7A.js → chunk-YN6N3RBM.js} +9 -10
- package/dist/chunk-YN6N3RBM.js.map +1 -0
- package/dist/{chunk-DCJ4BION.js → chunk-Z4FERR4U.js} +2 -2
- package/dist/{chunk-DCJ4BION.js.map → chunk-Z4FERR4U.js.map} +1 -1
- package/dist/{claude-code-UBT4ZME7.js → claude-code-LZH7Y4Y5.js} +5 -5
- package/dist/{claude-code-UBT4ZME7.js.map → claude-code-LZH7Y4Y5.js.map} +1 -1
- package/dist/cli/index.js +308 -162
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/src/commands/cache.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/connector.d.ts.map +1 -1
- package/dist/cli/src/commands/deploy.d.ts.map +1 -1
- package/dist/cli/src/commands/harness.d.ts +5 -4
- package/dist/cli/src/commands/harness.d.ts.map +1 -1
- package/dist/cli/src/commands/integration.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 +6 -0
- package/dist/cli/src/commands/library-index.d.ts.map +1 -1
- package/dist/cli/src/commands/migrate-files.d.ts +3 -6
- package/dist/cli/src/commands/migrate-files.d.ts.map +1 -1
- package/dist/cli/src/commands/migrate-harness.d.ts +4 -3
- package/dist/cli/src/commands/migrate-harness.d.ts.map +1 -1
- package/dist/cli/src/commands/migrate.d.ts +2 -2
- package/dist/cli/src/commands/outdated.d.ts.map +1 -1
- package/dist/cli/src/commands/plugin-registry-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/project.d.ts +7 -1
- package/dist/cli/src/commands/project.d.ts.map +1 -1
- package/dist/cli/src/commands/run.d.ts.map +1 -1
- package/dist/cli/src/commands/serve-preflight.d.ts +21 -0
- package/dist/cli/src/commands/serve-preflight.d.ts.map +1 -1
- package/dist/cli/src/commands/serve.d.ts.map +1 -1
- package/dist/cli/src/commands/source-manifest.d.ts.map +1 -1
- package/dist/cli/src/commands/source.d.ts +8 -0
- package/dist/cli/src/commands/source.d.ts.map +1 -1
- package/dist/cli/src/commands/update.d.ts.map +1 -1
- package/dist/cli/src/commands/validate-instances.d.ts +6 -0
- package/dist/cli/src/commands/validate-instances.d.ts.map +1 -1
- package/dist/cli/src/commands/validate.d.ts.map +1 -1
- package/dist/cli/src/commands/verify.d.ts.map +1 -1
- package/dist/cli/src/config-checks.d.ts +8 -0
- package/dist/cli/src/config-checks.d.ts.map +1 -1
- package/dist/cli/src/ensure-sources.d.ts.map +1 -1
- package/dist/cli/src/helpers.d.ts +3 -2
- package/dist/cli/src/helpers.d.ts.map +1 -1
- package/dist/cli/src/plugin-store/index.d.ts.map +1 -1
- package/dist/cli/src/plugin-store/reconcile.d.ts.map +1 -1
- package/dist/cli/src/plugin-store/spec.d.ts +1 -0
- package/dist/cli/src/plugin-store/spec.d.ts.map +1 -1
- package/dist/cli/src/skill-checks.d.ts +2 -0
- package/dist/cli/src/skill-checks.d.ts.map +1 -1
- package/dist/connectors/config.js +5 -5
- package/dist/connectors/index.js +24 -25
- package/dist/connectors/src/connector-manager.d.ts.map +1 -1
- package/dist/connectors/src/index.d.ts +2 -2
- package/dist/connectors/src/index.d.ts.map +1 -1
- package/dist/connectors/src/managed-gitconfig.d.ts +22 -0
- package/dist/connectors/src/managed-gitconfig.d.ts.map +1 -1
- package/dist/connectors/src/mount-ledger.d.ts.map +1 -1
- package/dist/connectors/src/npm-installer.d.ts +11 -3
- package/dist/connectors/src/npm-installer.d.ts.map +1 -1
- package/dist/connectors-HU5MHSUJ.js +49 -0
- package/dist/{connectors-4WH32NK2.js.map → connectors-HU5MHSUJ.js.map} +1 -1
- package/dist/connectors-shared/index.js +2 -2
- package/dist/core/index.js +7 -7
- package/dist/core/logging.js +1 -1
- package/dist/core/manifest.js +2 -2
- package/dist/core/models.js +1 -1
- package/dist/core/publish-manifest.js +3 -3
- package/dist/core/ref.js +1 -1
- package/dist/core/runtime-assets.js +5 -5
- package/dist/core/src/agent-instances.d.ts +6 -0
- package/dist/core/src/agent-instances.d.ts.map +1 -1
- package/dist/core/src/config-key-diagnostics.d.ts +2 -1
- package/dist/core/src/config-key-diagnostics.d.ts.map +1 -1
- package/dist/core/src/index.d.ts +4 -4
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/core/src/lock.d.ts +20 -1
- package/dist/core/src/lock.d.ts.map +1 -1
- package/dist/core/src/logging/index.d.ts +1 -0
- package/dist/core/src/logging/index.d.ts.map +1 -1
- package/dist/core/src/logging/log-safe-text.d.ts +20 -0
- package/dist/core/src/logging/log-safe-text.d.ts.map +1 -0
- package/dist/core/src/manifest-yaml-editor.d.ts +4 -1
- package/dist/core/src/manifest-yaml-editor.d.ts.map +1 -1
- package/dist/core/src/manifest.d.ts.map +1 -1
- package/dist/core/src/models.d.ts +10 -0
- package/dist/core/src/models.d.ts.map +1 -1
- package/dist/core/src/repo-manager.d.ts +11 -0
- package/dist/core/src/repo-manager.d.ts.map +1 -1
- package/dist/core/src/runtime-assets.d.ts +12 -1
- package/dist/core/src/runtime-assets.d.ts.map +1 -1
- package/dist/core/src/walker.d.ts +3 -0
- package/dist/core/src/walker.d.ts.map +1 -1
- package/dist/core/src/workspace-config.d.ts +10 -2
- package/dist/core/src/workspace-config.d.ts.map +1 -1
- package/dist/core/workspace-config.js +4 -4
- package/dist/deploy/index.js +7 -7
- package/dist/discovery/index.js +5 -5
- package/dist/{ensure-sources-UC2RBYMP.js → ensure-sources-CAMWJTMR.js} +32 -32
- package/dist/ensure-sources-CAMWJTMR.js.map +1 -0
- package/dist/factory-assets/connectors/box.js +24 -25
- package/dist/factory-assets/connectors/deploy.js +24 -25
- package/dist/factory-assets/connectors/devserver.js +24 -25
- package/dist/factory-assets/connectors/flow/adapter.js +24 -25
- package/dist/factory-assets/connectors/flow/engine.js +8 -8
- package/dist/factory-assets/connectors/flow/run-flow.js +26 -27
- package/dist/factory-assets/connectors/flow.js +24 -25
- package/dist/factory-assets/connectors/git.js +24 -25
- package/dist/factory-assets/connectors/gmail.js +24 -25
- package/dist/factory-assets/connectors/googledrive.js +24 -25
- package/dist/factory-assets/connectors/local.js +24 -25
- package/dist/factory-assets/connectors/mattermost.js +24 -25
- package/dist/factory-assets/connectors/memory.js +24 -25
- package/dist/factory-assets/connectors/minio.js +24 -25
- package/dist/factory-assets/connectors/postgres.js +24 -25
- package/dist/factory-assets/connectors/s3.js +24 -25
- package/dist/factory-assets/connectors/sharepoint.js +24 -25
- package/dist/factory-assets/connectors/sqlite.js +24 -25
- package/dist/factory-assets/connectors/static-server.js +24 -25
- package/dist/factory-assets/connectors/tunnel.js +24 -25
- package/dist/factory-assets/connectors/webdav.js +24 -25
- package/dist/factory-assets/connectors/xstate-store.js +24 -25
- package/dist/factory-assets/connectors/xstate.js +24 -25
- package/dist/factory-assets/skills/authoring-skaile-assets/SKILL.md +2 -1
- package/dist/{flows-LYTKNGKE.js → flows-GVOVQGQW.js} +12 -12
- package/dist/{flows-LYTKNGKE.js.map → flows-GVOVQGQW.js.map} +1 -1
- package/dist/{helpers-SSSKT5XK.js → helpers-WMCCODAV.js} +29 -30
- package/dist/{helpers-SSSKT5XK.js.map → helpers-WMCCODAV.js.map} +1 -1
- package/dist/library/index.js +11 -11
- package/dist/library/install.js +4 -4
- package/dist/library/src/manifest-writer.d.ts +9 -0
- package/dist/library/src/manifest-writer.d.ts.map +1 -1
- package/dist/library/src/remote/remote-catalog-source.d.ts +9 -0
- package/dist/library/src/remote/remote-catalog-source.d.ts.map +1 -1
- package/dist/library/src/remote/rest-catalog-source.d.ts +1 -0
- package/dist/library/src/remote/rest-catalog-source.d.ts.map +1 -1
- package/dist/{library-publish-GQMNTAKK.js → library-publish-UQQMHTND.js} +55 -55
- package/dist/{library-publish-GQMNTAKK.js.map → library-publish-UQQMHTND.js.map} +1 -1
- package/dist/model-endpoint/index.js +10 -11
- package/dist/open-library-OJ4HT2X4.js +57 -0
- package/dist/{open-library-XGUCUJYE.js.map → open-library-OJ4HT2X4.js.map} +1 -1
- package/dist/open-registry-LWGIOJDK.js +32 -0
- package/dist/{open-registry-DIFEPDF6.js.map → open-registry-LWGIOJDK.js.map} +1 -1
- package/dist/paths-FR2752HV.js +22 -0
- package/dist/{paths-G4GFJLE2.js.map → paths-FR2752HV.js.map} +1 -1
- package/dist/{plugin-store-BBLDFD3L.js → plugin-store-IALJUBN2.js} +10 -10
- package/dist/{plugin-store-BBLDFD3L.js.map → plugin-store-IALJUBN2.js.map} +1 -1
- package/dist/project-UQFCYHYS.js +88 -0
- package/dist/{project-LB745WVZ.js.map → project-UQFCYHYS.js.map} +1 -1
- package/dist/resolver/index.js +8 -8
- package/dist/runner/index.js +40 -41
- package/dist/runner/src/composition/resolve-instance.d.ts.map +1 -1
- package/dist/runner/src/composition/resolve.d.ts +6 -0
- package/dist/runner/src/composition/resolve.d.ts.map +1 -1
- package/dist/runner/src/credential-notice.d.ts +3 -2
- package/dist/runner/src/credential-notice.d.ts.map +1 -1
- package/dist/runner/src/external-mcp.d.ts +22 -0
- package/dist/runner/src/external-mcp.d.ts.map +1 -1
- package/dist/runner/src/mcp-tools-snapshot.d.ts +13 -0
- package/dist/runner/src/mcp-tools-snapshot.d.ts.map +1 -0
- package/dist/runner/src/resources.d.ts +14 -0
- package/dist/runner/src/resources.d.ts.map +1 -1
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +14 -14
- package/dist/sdk/bridge.js +20 -21
- package/dist/sdk/core.js +7 -7
- package/dist/sdk/flow.js +8 -8
- package/dist/sdk/index.js +40 -41
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/resolver.js +8 -8
- package/dist/sdk/runner.js +40 -41
- package/dist/sdk/session.js +2 -2
- package/dist/sdk/transport/ws/server.js +8 -8
- package/dist/sdk/transport/ws.js +8 -8
- package/dist/sdk/transport.js +8 -8
- package/dist/sdk/types.js +1 -1
- package/dist/serve-preflight-TYEKHC32.js +56 -0
- package/dist/serve-preflight-TYEKHC32.js.map +1 -0
- package/dist/session/index.js +2 -2
- package/dist/{setup-X6ZYH2MW.js → setup-4JV2IMCB.js} +30 -31
- package/dist/setup-4JV2IMCB.js.map +1 -0
- package/dist/{skills-62PXDBPJ.js → skills-6QTKFMLW.js} +13 -13
- package/dist/{skills-62PXDBPJ.js.map → skills-6QTKFMLW.js.map} +1 -1
- package/dist/source-XYMMJVKR.js +86 -0
- package/dist/{source-LAYCTRHP.js.map → source-XYMMJVKR.js.map} +1 -1
- package/dist/{source-manifest-publish-3S6PJ25W.js → source-manifest-publish-SZFGGKB4.js} +52 -53
- package/dist/source-manifest-publish-SZFGGKB4.js.map +1 -0
- package/dist/transport/index.js +8 -8
- package/dist/transport/ws/server.js +8 -8
- package/dist/transport/ws.js +8 -8
- package/dist/tui/index.js +40 -41
- 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/manifests/agent.d.ts +2 -2
- package/dist/types/src/manifests/agent.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +8 -8
- package/dist/workspace-plugin/adapters/mcp.js +31 -32
- package/dist/workspace-plugin/adapters/omp.js +14 -14
- package/dist/workspace-plugin/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-24D7IW5O.js.map +0 -1
- package/dist/chunk-2WOA3TKK.js.map +0 -1
- package/dist/chunk-3ENE6ZOF.js.map +0 -1
- package/dist/chunk-5T3DTK7A.js.map +0 -1
- package/dist/chunk-6OHZUUR7.js.map +0 -1
- package/dist/chunk-6UP2EDFN.js.map +0 -1
- package/dist/chunk-6WQGJF65.js.map +0 -1
- package/dist/chunk-6X3GDPCB.js.map +0 -1
- package/dist/chunk-76FLBODK.js.map +0 -1
- package/dist/chunk-76WSWPOB.js.map +0 -1
- package/dist/chunk-ABVWUM2E.js.map +0 -1
- package/dist/chunk-DKXNKFKP.js.map +0 -1
- package/dist/chunk-EXRQKOY6.js.map +0 -1
- package/dist/chunk-GBXQFJ4G.js.map +0 -1
- package/dist/chunk-HXZ3FQQN.js.map +0 -1
- package/dist/chunk-IYZAJ2J2.js.map +0 -1
- package/dist/chunk-JSWMRYLM.js.map +0 -1
- package/dist/chunk-P7EL7QRD.js.map +0 -1
- package/dist/chunk-QJQQNBVT.js +0 -315
- package/dist/chunk-QJQQNBVT.js.map +0 -1
- package/dist/chunk-TF5CWJQZ.js.map +0 -1
- package/dist/chunk-TGB4E5Z6.js.map +0 -1
- package/dist/chunk-UVTN4O7N.js.map +0 -1
- package/dist/chunk-VSCLUPGZ.js.map +0 -1
- package/dist/chunk-VV2DJT4I.js.map +0 -1
- package/dist/chunk-YJNE4V2M.js.map +0 -1
- package/dist/connectors-4WH32NK2.js +0 -50
- package/dist/ensure-sources-UC2RBYMP.js.map +0 -1
- package/dist/open-library-XGUCUJYE.js +0 -58
- package/dist/open-registry-DIFEPDF6.js +0 -32
- package/dist/paths-G4GFJLE2.js +0 -22
- package/dist/project-LB745WVZ.js +0 -88
- package/dist/serve-preflight-NPWI4MV6.js.map +0 -1
- package/dist/setup-X6ZYH2MW.js.map +0 -1
- package/dist/source-LAYCTRHP.js +0 -87
- package/dist/source-manifest-publish-3S6PJ25W.js.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { requireValidPublisherOrExit } from './chunk-
|
|
2
|
-
import { openLibraryManager } from './chunk-
|
|
3
|
-
import { getKindRegistry, getKnownKinds } from './chunk-
|
|
4
|
-
import { S, logErr, logWarn, logInfo, logOk } from './chunk-
|
|
5
|
-
import { AssetManager } from './chunk-
|
|
6
|
-
import { getStoreManifestsDir, storeManifestFile, LocalCatalogSource, curatedManifestOverlay, writeCuratedManifest, commitStoreManifest } from './chunk-
|
|
7
|
-
import { computeDeterministicHash, discoverAssetsInTree } from './chunk-
|
|
8
|
-
import { WorkspaceYamlEditor } from './chunk-
|
|
9
|
-
import {
|
|
10
|
-
import { globalCacheRoot } from './chunk-L5VSIPQD.js';
|
|
11
|
-
import { decodeSkaileManifest, encodeSkaileManifest } from './chunk-
|
|
12
|
-
import { parseAssetRef } from './chunk-
|
|
1
|
+
import { requireValidPublisherOrExit } from './chunk-J262X4JU.js';
|
|
2
|
+
import { openLibraryManager } from './chunk-HGZN6JLP.js';
|
|
3
|
+
import { getKindRegistry, getKnownKinds } from './chunk-RAU5QPI6.js';
|
|
4
|
+
import { S, logErr, logWarn, logInfo, logOk, logNoProject } from './chunk-SCRYXAHH.js';
|
|
5
|
+
import { AssetManager } from './chunk-JRVQV7WC.js';
|
|
6
|
+
import { getStoreManifestsDir, storeManifestFile, LocalCatalogSource, curatedManifestOverlay, writeCuratedManifest, commitStoreManifest } from './chunk-MMOWIRHP.js';
|
|
7
|
+
import { computeDeterministicHash, discoverAssetsInTree } from './chunk-J4WKNJHO.js';
|
|
8
|
+
import { WorkspaceYamlEditor } from './chunk-6ARPZHOV.js';
|
|
9
|
+
import { workspaceConfigFilename, sourceShortName, sourceCacheKey, getGlobalCacheDir, isSourceCloned, discardUnclonedSourceDir, attachToBranch, resolveSourcePublisher, resolveSkWorkspaceConfig, priorSourceCacheKeys, buildProvenanceIndex, getRepoCommit } from './chunk-6SXSVKQY.js';
|
|
10
|
+
import { globalSkaileDir, globalCacheRoot } from './chunk-L5VSIPQD.js';
|
|
11
|
+
import { decodeSkaileManifest, encodeSkaileManifest } from './chunk-E2EC6SAX.js';
|
|
12
|
+
import { parseAssetRef } from './chunk-V5KG6CCV.js';
|
|
13
13
|
import { spawnSync } from 'child_process';
|
|
14
14
|
import { existsSync, realpathSync, rmSync, renameSync, mkdirSync, statSync, readdirSync, rmdirSync, readFileSync, writeFileSync } from 'fs';
|
|
15
15
|
import * as os from 'os';
|
|
@@ -23,8 +23,9 @@ function notWired(verb) {
|
|
|
23
23
|
process.exit(2);
|
|
24
24
|
}
|
|
25
25
|
function resolveSourceArg(arg, projectDir, opts = {}) {
|
|
26
|
-
const
|
|
27
|
-
|
|
26
|
+
const registered = readProjectSources(
|
|
27
|
+
path2.join(path2.resolve(projectDir), workspaceConfigFilename())
|
|
28
|
+
);
|
|
28
29
|
const match = registered.find((e) => sourceMatchesKey(e, arg));
|
|
29
30
|
const found = !match ? resolveByStoreSlug(arg, opts.byName ?? true) : void 0;
|
|
30
31
|
const bySlug = found && "url" in found ? found : void 0;
|
|
@@ -380,12 +381,12 @@ function addSourceManifestCommands(src) {
|
|
|
380
381
|
).option("-C, --project-dir <dir>", "Project directory", process.cwd()).option("--publisher <name>", "Override the publisher (--overwrite only)").option("--dev", "Include assets under the source's dev_paths", false).option("--overwrite", "Discard curation and re-scan the full inventory", false).action((arg, opts) => runRebuild(arg, opts));
|
|
381
382
|
manifest.command("verify <src>").description("Verify hashes, deps, and schema (read-only)").option("-C, --project-dir <dir>", "Project directory", process.cwd()).option("--strict", "Fail on advisory checks (warnings force a nonzero exit)", false).action((arg, opts) => runVerify(arg, opts));
|
|
382
383
|
manifest.command("publish <src>").description("Push the curated sidecar manifest and publish it to the store").option("-C, --project-dir <dir>", "Project directory", process.cwd()).option("--as <namespace>", "Publisher namespace (default: your store username)").option("--sidecar-repo <url>", "Public GitHub repo you own to hold the curated manifest").option("--ref <gitref>", "Foreign source ref to ingest (branch/sha; default: main)").option("--dry-run", "Print the publish plan without pushing or calling the store", false).action(async (arg, opts) => {
|
|
383
|
-
const { runPublish } = await import('./source-manifest-publish-
|
|
384
|
+
const { runPublish } = await import('./source-manifest-publish-SZFGGKB4.js');
|
|
384
385
|
await runPublish(arg, opts);
|
|
385
386
|
});
|
|
386
387
|
manifest.command("propose <src>").description("Open a PR to upstream with the sidecar manifest").action(() => notWired("propose"));
|
|
387
388
|
manifest.command("yank <src>").description("Retract the source's published assets from the store").option("-C, --project-dir <dir>", "Project directory", process.cwd()).option("--asset <ref>", "Yank only the asset matching this ref/name").action(async (arg, opts) => {
|
|
388
|
-
const { runYank } = await import('./source-manifest-publish-
|
|
389
|
+
const { runYank } = await import('./source-manifest-publish-SZFGGKB4.js');
|
|
389
390
|
await runYank(arg, opts);
|
|
390
391
|
});
|
|
391
392
|
}
|
|
@@ -411,10 +412,14 @@ function canonicalGitUrl(spec) {
|
|
|
411
412
|
const noSlash = spec.replace(/\/+$/, "");
|
|
412
413
|
const url = /^([a-z][a-z0-9+.-]*):\/\/([^/]*)(.*)$/i.exec(noSlash);
|
|
413
414
|
if (url) {
|
|
415
|
+
const scheme = (url[1] ?? "").toLowerCase();
|
|
416
|
+
if (scheme === "file" && url[2] === "" && /(?:^|\/)\.\.?(?:\/|$)|\/\//.test(url[3] ?? "")) {
|
|
417
|
+
return `file://${path2.posix.normalize(url[3] ?? "")}`;
|
|
418
|
+
}
|
|
414
419
|
const authority = url[2] ?? "";
|
|
415
420
|
const at = authority.lastIndexOf("@");
|
|
416
421
|
const host = authority.slice(at + 1).toLowerCase();
|
|
417
|
-
return `${
|
|
422
|
+
return `${scheme}://${authority.slice(0, at + 1)}${host}${url[3] ?? ""}`;
|
|
418
423
|
}
|
|
419
424
|
const scp = /^(git@)([^:]+):(.*)$/.exec(noSlash);
|
|
420
425
|
return scp ? `${scp[1]}${(scp[2] ?? "").toLowerCase()}:${scp[3] ?? ""}` : noSlash;
|
|
@@ -497,12 +502,14 @@ function realLocalCacheKey(url) {
|
|
|
497
502
|
}
|
|
498
503
|
return sourceCacheKey(url);
|
|
499
504
|
}
|
|
500
|
-
function
|
|
501
|
-
const
|
|
505
|
+
function projectRootOf(projectDir) {
|
|
506
|
+
const dir = path2.resolve(projectDir);
|
|
507
|
+
return existsSync(path2.join(dir, workspaceConfigFilename())) ? dir : void 0;
|
|
508
|
+
}
|
|
509
|
+
function requireProjectYamlPath(projectDir) {
|
|
510
|
+
const root = projectRootOf(projectDir);
|
|
502
511
|
if (!root) {
|
|
503
|
-
|
|
504
|
-
"No skaile.yaml found in the current directory or any parent. Run `skaile init` first."
|
|
505
|
-
);
|
|
512
|
+
logNoProject(projectDir);
|
|
506
513
|
process.exit(1);
|
|
507
514
|
}
|
|
508
515
|
return path2.join(root, workspaceConfigFilename());
|
|
@@ -540,7 +547,8 @@ function pruneEmptyCloneParents(dest) {
|
|
|
540
547
|
function ensureClone(entry, opts = {}) {
|
|
541
548
|
const dest = sourceClonePath(sourceCacheKey(entry.url));
|
|
542
549
|
let backup;
|
|
543
|
-
if (
|
|
550
|
+
if (!isSourceCloned(dest)) discardUnclonedSourceDir(dest);
|
|
551
|
+
if (isSourceCloned(dest)) {
|
|
544
552
|
if (!opts.force) return false;
|
|
545
553
|
backup = `${dest}.bak`;
|
|
546
554
|
rmSync(backup, { recursive: true, force: true });
|
|
@@ -642,10 +650,8 @@ async function refreshManifestCache(entry, includeDev = false) {
|
|
|
642
650
|
});
|
|
643
651
|
const cfg = added.backendConfig;
|
|
644
652
|
const recorded = "url" in cfg ? cfg.publisher : void 0;
|
|
645
|
-
const publisher = entry.publisher
|
|
646
|
-
const lib =
|
|
647
|
-
backendConfig: { ...added.backendConfig, publisher: entry.publisher }
|
|
648
|
-
});
|
|
653
|
+
const publisher = existing || legacyRow ? recorded : entry.publisher;
|
|
654
|
+
const lib = added;
|
|
649
655
|
const catalog = new LocalCatalogSource(library, lib.id, dest, getKindRegistry(), {
|
|
650
656
|
sidecarManifestFile: curatedManifestOverlay(entry.url),
|
|
651
657
|
publisher
|
|
@@ -658,10 +664,10 @@ async function refreshManifestCache(entry, includeDev = false) {
|
|
|
658
664
|
}
|
|
659
665
|
}
|
|
660
666
|
async function restoreSourceReaders(projectDir) {
|
|
661
|
-
const root =
|
|
667
|
+
const root = projectRootOf(projectDir);
|
|
662
668
|
if (!root) return [];
|
|
663
669
|
const sources = readProjectSources(path2.join(root, workspaceConfigFilename()));
|
|
664
|
-
const cached = sources.filter((s) =>
|
|
670
|
+
const cached = sources.filter((s) => isSourceCloned(sourceClonePath(sourceCacheKey(s.url))));
|
|
665
671
|
if (cached.length === 0) return [];
|
|
666
672
|
const { manager, close } = await openLibraryManager();
|
|
667
673
|
let missing;
|
|
@@ -689,7 +695,7 @@ async function restoreSourceReaders(projectDir) {
|
|
|
689
695
|
return restored;
|
|
690
696
|
}
|
|
691
697
|
async function autoSyncForSearch(projectDir) {
|
|
692
|
-
const root =
|
|
698
|
+
const root = projectRootOf(projectDir);
|
|
693
699
|
if (!root) return false;
|
|
694
700
|
if (readProjectSources(path2.join(root, workspaceConfigFilename())).length === 0) return false;
|
|
695
701
|
logInfo("sources not synced \u2014 syncing now\u2026");
|
|
@@ -697,7 +703,7 @@ async function autoSyncForSearch(projectDir) {
|
|
|
697
703
|
return synced > 0;
|
|
698
704
|
}
|
|
699
705
|
async function syncProjectSources(projectDir, opts = {}) {
|
|
700
|
-
const root =
|
|
706
|
+
const root = path2.resolve(projectDir);
|
|
701
707
|
const sources = readProjectSources(path2.join(root, workspaceConfigFilename()));
|
|
702
708
|
let synced = 0;
|
|
703
709
|
let failed = 0;
|
|
@@ -705,12 +711,14 @@ async function syncProjectSources(projectDir, opts = {}) {
|
|
|
705
711
|
const slug = sourceShortName(entry.url);
|
|
706
712
|
const dest = sourceClonePath(sourceCacheKey(entry.url));
|
|
707
713
|
try {
|
|
708
|
-
if (!
|
|
714
|
+
if (!isSourceCloned(dest)) {
|
|
715
|
+
discardUnclonedSourceDir(dest);
|
|
709
716
|
mkdirSync(path2.dirname(dest), { recursive: true });
|
|
710
717
|
const args = ["clone", entry.url, dest];
|
|
711
718
|
if (entry.pin) args.splice(1, 0, "--branch", entry.pin);
|
|
712
719
|
const clone = spawnSync("git", args, { stdio: "ignore" });
|
|
713
720
|
if (clone.status !== 0) {
|
|
721
|
+
discardUnclonedSourceDir(dest);
|
|
714
722
|
logWarn(`${slug}: git clone failed, skipping.`);
|
|
715
723
|
failed++;
|
|
716
724
|
continue;
|
|
@@ -735,7 +743,7 @@ async function syncProjectSources(projectDir, opts = {}) {
|
|
|
735
743
|
return { total: sources.length, synced, failed };
|
|
736
744
|
}
|
|
737
745
|
function divergedSourceClones(projectDir) {
|
|
738
|
-
const root =
|
|
746
|
+
const root = path2.resolve(projectDir);
|
|
739
747
|
const diverged = [];
|
|
740
748
|
for (const entry of readProjectSources(path2.join(root, workspaceConfigFilename()))) {
|
|
741
749
|
const dest = sourceClonePath(sourceCacheKey(entry.url));
|
|
@@ -798,6 +806,24 @@ async function localPathNotASource(source) {
|
|
|
798
806
|
}
|
|
799
807
|
return void 0;
|
|
800
808
|
}
|
|
809
|
+
async function remoteOfRegisteredLibrary(url) {
|
|
810
|
+
const key = sourceCacheKey(url);
|
|
811
|
+
const cloneRoots = [getGlobalCacheDir(), path2.join(globalSkaileDir(), "sources")].map(
|
|
812
|
+
(d) => path2.resolve(d)
|
|
813
|
+
);
|
|
814
|
+
const { manager, close } = await openLibraryManager();
|
|
815
|
+
try {
|
|
816
|
+
const lib = (await manager.listLibraries()).find((l) => {
|
|
817
|
+
const remote = "url" in l.backendConfig ? l.backendConfig.url : void 0;
|
|
818
|
+
if (typeof remote !== "string" || sourceCacheKey(remote) !== key) return false;
|
|
819
|
+
const at = path2.resolve(l.path);
|
|
820
|
+
return !cloneRoots.some((root) => at.startsWith(root + path2.sep));
|
|
821
|
+
});
|
|
822
|
+
return lib ? `${url} is the remote of the library "${lib.name}"; it needs no source \u2014 \`skaile library list\` shows it and its assets are already searchable.` : void 0;
|
|
823
|
+
} finally {
|
|
824
|
+
close();
|
|
825
|
+
}
|
|
826
|
+
}
|
|
801
827
|
function makeSourceCommand() {
|
|
802
828
|
const cmd = new Command("source").description(
|
|
803
829
|
"Manage github sources for the current project (recorded in skaile.yaml)"
|
|
@@ -811,7 +837,7 @@ function makeSourceCommand() {
|
|
|
811
837
|
).option(
|
|
812
838
|
"--publisher <name>",
|
|
813
839
|
"Publisher of the source's assets when its skaile.manifest.yaml declares none (required for a non-GitHub URL)"
|
|
814
|
-
).option("--dev", "Also index dev-only assets under the source's dev_paths", false).option("--verbose", "List every referenced file outside the asset filter", false).action(
|
|
840
|
+
).option("--dev", "Also index dev-only assets under the source's dev_paths", false).option("--verbose", "List every referenced file outside the asset filter", false).option("--project-dir <path>", "Project directory", process.cwd()).action(
|
|
815
841
|
async (source, opts) => {
|
|
816
842
|
if (/^[\w.-]+$/.test(source.trim().replace(/\.git$/, ""))) {
|
|
817
843
|
logErr(
|
|
@@ -827,7 +853,13 @@ function makeSourceCommand() {
|
|
|
827
853
|
return;
|
|
828
854
|
}
|
|
829
855
|
let url = normalizeSourceUrl(source);
|
|
830
|
-
const
|
|
856
|
+
const ownLibrary = await remoteOfRegisteredLibrary(url);
|
|
857
|
+
if (ownLibrary) {
|
|
858
|
+
logErr(ownLibrary);
|
|
859
|
+
process.exitCode = 1;
|
|
860
|
+
return;
|
|
861
|
+
}
|
|
862
|
+
const yamlPath = requireProjectYamlPath(opts.projectDir);
|
|
831
863
|
const collision = findCacheKeyCollision(readProjectSources(yamlPath), url);
|
|
832
864
|
if (collision && isLocalSourceUrl(collision.url) && isLocalSourceUrl(url)) {
|
|
833
865
|
url = collision.url;
|
|
@@ -868,7 +900,7 @@ function makeSourceCommand() {
|
|
|
868
900
|
return;
|
|
869
901
|
}
|
|
870
902
|
const dest = sourceClonePath(sourceCacheKey(url));
|
|
871
|
-
const preexisting =
|
|
903
|
+
const preexisting = isSourceCloned(dest);
|
|
872
904
|
const cloned = ensureClone(entry, { force: opts.force });
|
|
873
905
|
const noPublisher = await publisherProblem(entry, dest);
|
|
874
906
|
if (noPublisher) {
|
|
@@ -913,8 +945,8 @@ function makeSourceCommand() {
|
|
|
913
945
|
}
|
|
914
946
|
}
|
|
915
947
|
);
|
|
916
|
-
cmd.command("list").description("List sources registered in this project's skaile.yaml").option("--json", "Output as JSON").action(async (opts) => {
|
|
917
|
-
const yamlPath = requireProjectYamlPath();
|
|
948
|
+
cmd.command("list").description("List sources registered in this project's skaile.yaml").option("--json", "Output as JSON").option("--project-dir <path>", "Project directory", process.cwd()).action(async (opts) => {
|
|
949
|
+
const yamlPath = requireProjectYamlPath(opts.projectDir);
|
|
918
950
|
const sources = readProjectSources(yamlPath);
|
|
919
951
|
if (opts.json) return console.log(JSON.stringify(sources, null, 2));
|
|
920
952
|
if (sources.length === 0) {
|
|
@@ -925,15 +957,15 @@ function makeSourceCommand() {
|
|
|
925
957
|
console.log(S.heading(" Sources"));
|
|
926
958
|
for (const s of sources) {
|
|
927
959
|
const slug = sourceLabel(s, sources);
|
|
928
|
-
const cached =
|
|
960
|
+
const cached = isSourceCloned(sourceClonePath(sourceCacheKey(s.url))) ? "" : S.warn(" (not cached)");
|
|
929
961
|
console.log(` ${S.cmd(slug.padEnd(24))} ${S.dim(s.url)}${cached}`);
|
|
930
962
|
}
|
|
931
963
|
console.log(`
|
|
932
964
|
${S.dim(`${sources.length} source(s)`)}
|
|
933
965
|
`);
|
|
934
966
|
});
|
|
935
|
-
cmd.command("show <name-or-url>").description("Show details for a source (matched by URL or derived slug)").action(async (key) => {
|
|
936
|
-
const yamlPath = requireProjectYamlPath();
|
|
967
|
+
cmd.command("show <name-or-url>").description("Show details for a source (matched by URL or derived slug)").option("--project-dir <path>", "Project directory", process.cwd()).action(async (key, opts) => {
|
|
968
|
+
const yamlPath = requireProjectYamlPath(opts.projectDir);
|
|
937
969
|
const all = readProjectSources(yamlPath);
|
|
938
970
|
const resolved = resolveSource(all, key);
|
|
939
971
|
if (resolved.kind === "none") {
|
|
@@ -950,7 +982,7 @@ function makeSourceCommand() {
|
|
|
950
982
|
...entry,
|
|
951
983
|
slug,
|
|
952
984
|
clonePath,
|
|
953
|
-
cached:
|
|
985
|
+
cached: isSourceCloned(clonePath)
|
|
954
986
|
},
|
|
955
987
|
null,
|
|
956
988
|
2
|
|
@@ -961,8 +993,8 @@ function makeSourceCommand() {
|
|
|
961
993
|
"--purge",
|
|
962
994
|
`Also delete the cached clone from ${path2.join(globalCacheRoot(), "sources")}${path2.sep}`,
|
|
963
995
|
false
|
|
964
|
-
).option("--force", "Remove the source although a locked asset still comes from it", false).action(async (key, opts) => {
|
|
965
|
-
const yamlPath = requireProjectYamlPath();
|
|
996
|
+
).option("--force", "Remove the source although a locked asset still comes from it", false).option("--project-dir <path>", "Project directory", process.cwd()).action(async (key, opts) => {
|
|
997
|
+
const yamlPath = requireProjectYamlPath(opts.projectDir);
|
|
966
998
|
const editor = loadProjectEditor(yamlPath);
|
|
967
999
|
const all = editor.getSources();
|
|
968
1000
|
const resolved = resolveSource(all, key);
|
|
@@ -990,9 +1022,9 @@ function makeSourceCommand() {
|
|
|
990
1022
|
opts.purge ? `Removed source "${slug}" and purged its clone.` : `Removed source "${slug}" from skaile.yaml (clone left in ${path2.join(globalCacheRoot(), "sources")} \u2014 pass --purge to remove it, or run \`skaile cache clean --global\`).`
|
|
991
1023
|
);
|
|
992
1024
|
});
|
|
993
|
-
cmd.command("sync [name]").description("Pull upstream changes and refresh the manifest cache").option("--dev", "Also index dev-only assets under each source's dev_paths", false).option("--verbose", "List every referenced file outside the asset filter", false).option("--all", "Sync every source without prompting", false).action(
|
|
1025
|
+
cmd.command("sync [name]").description("Pull upstream changes and refresh the manifest cache").option("--dev", "Also index dev-only assets under each source's dev_paths", false).option("--verbose", "List every referenced file outside the asset filter", false).option("--all", "Sync every source without prompting", false).option("--project-dir <path>", "Project directory", process.cwd()).action(
|
|
994
1026
|
async (key, opts) => {
|
|
995
|
-
const yamlPath = requireProjectYamlPath();
|
|
1027
|
+
const yamlPath = requireProjectYamlPath(opts.projectDir);
|
|
996
1028
|
const sources = readProjectSources(yamlPath);
|
|
997
1029
|
if (sources.length === 0) {
|
|
998
1030
|
logInfo("No sources in skaile.yaml.");
|
|
@@ -1029,7 +1061,7 @@ function makeSourceCommand() {
|
|
|
1029
1061
|
for (const entry of targets) {
|
|
1030
1062
|
const slug = sourceLabel(entry, sources);
|
|
1031
1063
|
const dest = sourceClonePath(sourceCacheKey(entry.url));
|
|
1032
|
-
if (!
|
|
1064
|
+
if (!isSourceCloned(dest)) {
|
|
1033
1065
|
ensureClone(entry);
|
|
1034
1066
|
logOk(`${slug}: cloned to ${dest}.`);
|
|
1035
1067
|
} else {
|
|
@@ -1072,6 +1104,6 @@ function makeSourceCommand() {
|
|
|
1072
1104
|
return cmd;
|
|
1073
1105
|
}
|
|
1074
1106
|
|
|
1075
|
-
export { autoSyncForSearch, divergedSourceClones, ensureClone, findCacheKeyCollision, indexingHadFailures, legacySourceConfigHint, loadProjectEditor, localPathNotASource, makeSourceCommand, missingManifestMessage, normalizeSourceUrl, pullSourceClone, readProjectSources, resolveSource, resolveSourceArg, restoreSourceReaders, sourceClonePath, sourceLabel, sourceMatchesKey, syncProjectSources };
|
|
1076
|
-
//# sourceMappingURL=chunk-
|
|
1077
|
-
//# sourceMappingURL=chunk-
|
|
1107
|
+
export { autoSyncForSearch, divergedSourceClones, ensureClone, findCacheKeyCollision, indexingHadFailures, legacySourceConfigHint, loadProjectEditor, localPathNotASource, makeSourceCommand, missingManifestMessage, normalizeSourceUrl, pullSourceClone, readProjectSources, remoteOfRegisteredLibrary, resolveSource, resolveSourceArg, restoreSourceReaders, sourceClonePath, sourceLabel, sourceMatchesKey, syncProjectSources };
|
|
1108
|
+
//# sourceMappingURL=chunk-XYCYGN3Q.js.map
|
|
1109
|
+
//# sourceMappingURL=chunk-XYCYGN3Q.js.map
|