@skaile/workspaces 5.17.0 → 5.18.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 +31 -0
- package/dist/{asset-feeds-MALYFZUM.js → asset-feeds-WAKBHGEV.js} +21 -21
- package/dist/{asset-feeds-MALYFZUM.js.map → asset-feeds-WAKBHGEV.js.map} +1 -1
- package/dist/asset-manager/catalog-deployer.js +8 -8
- package/dist/asset-manager/index.js +18 -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 +122 -5
- package/dist/asset-manager/src/index.d.ts.map +1 -1
- package/dist/asset-manager/src/installer.d.ts +13 -10
- package/dist/asset-manager/src/installer.d.ts.map +1 -1
- package/dist/asset-manager/src/mcp-config.d.ts +61 -1
- package/dist/asset-manager/src/mcp-config.d.ts.map +1 -1
- package/dist/asset-manager/src/renderers.d.ts.map +1 -1
- package/dist/bridge/drivers/claude-sdk.js +12 -12
- package/dist/bridge/drivers/codex.js +12 -12
- package/dist/bridge/drivers/continue.js +11 -11
- package/dist/bridge/drivers/echo.js +2 -2
- package/dist/bridge/drivers/gemini.js +7 -7
- package/dist/bridge/drivers/goose.js +11 -11
- package/dist/bridge/drivers/omp.js +31 -5
- package/dist/bridge/drivers/omp.js.map +1 -1
- package/dist/bridge/drivers/opencode.js +11 -11
- package/dist/bridge/drivers/qwen.js +7 -7
- package/dist/bridge/index.js +14 -14
- package/dist/bridge/src/driver-model-check.d.ts +8 -8
- package/dist/bridge/src/driver-model-check.d.ts.map +1 -1
- package/dist/bridge/src/drivers/omp-models-yml.d.ts +5 -0
- package/dist/bridge/src/drivers/omp-models-yml.d.ts.map +1 -1
- package/dist/bridge/src/drivers/omp.d.ts.map +1 -1
- package/dist/bridge/src/index.d.ts +1 -1
- package/dist/bridge/src/index.d.ts.map +1 -1
- package/dist/{chunk-KZWZRNIY.js → chunk-24AXETE3.js} +55 -17
- package/dist/chunk-24AXETE3.js.map +1 -0
- package/dist/{chunk-ZVZTCDUN.js → chunk-2NOLF7B2.js} +37 -9
- package/dist/chunk-2NOLF7B2.js.map +1 -0
- package/dist/{chunk-3OYOBTY4.js → chunk-3KMREAR2.js} +3 -3
- package/dist/{chunk-3OYOBTY4.js.map → chunk-3KMREAR2.js.map} +1 -1
- package/dist/{chunk-D54T2F54.js → chunk-5TBFN46Z.js} +4 -4
- package/dist/chunk-5TBFN46Z.js.map +1 -0
- package/dist/{chunk-5SWED2LW.js → chunk-6HK6RUFM.js} +3 -3
- package/dist/{chunk-5SWED2LW.js.map → chunk-6HK6RUFM.js.map} +1 -1
- package/dist/{chunk-PGZDSDOB.js → chunk-6Z5KTFJT.js} +3 -3
- package/dist/{chunk-PGZDSDOB.js.map → chunk-6Z5KTFJT.js.map} +1 -1
- package/dist/{chunk-46IRZJV4.js → chunk-CD7SVH6W.js} +4 -4
- package/dist/{chunk-46IRZJV4.js.map → chunk-CD7SVH6W.js.map} +1 -1
- package/dist/{chunk-WKEBNB5S.js → chunk-CKBCX3HQ.js} +4 -4
- package/dist/{chunk-WKEBNB5S.js.map → chunk-CKBCX3HQ.js.map} +1 -1
- package/dist/{chunk-H7R7R5BN.js → chunk-CKICWXMU.js} +18 -15
- package/dist/chunk-CKICWXMU.js.map +1 -0
- package/dist/{chunk-YK3XLEQJ.js → chunk-CKNIYIV2.js} +83 -77
- package/dist/chunk-CKNIYIV2.js.map +1 -0
- package/dist/{chunk-SPV2CXJ3.js → chunk-D6UBEYQH.js} +4 -4
- package/dist/{chunk-SPV2CXJ3.js.map → chunk-D6UBEYQH.js.map} +1 -1
- package/dist/{chunk-OXUCYHL5.js → chunk-DA2MCPFN.js} +53 -16
- package/dist/chunk-DA2MCPFN.js.map +1 -0
- package/dist/{chunk-QBY74UBH.js → chunk-DJD36HC5.js} +7 -7
- package/dist/{chunk-QBY74UBH.js.map → chunk-DJD36HC5.js.map} +1 -1
- package/dist/{chunk-EYDRONKO.js → chunk-E5YNGE3I.js} +4 -4
- package/dist/{chunk-EYDRONKO.js.map → chunk-E5YNGE3I.js.map} +1 -1
- package/dist/{chunk-V5CDPKDA.js → chunk-EELKR2WP.js} +44 -27
- package/dist/chunk-EELKR2WP.js.map +1 -0
- package/dist/{chunk-BVXXBZWA.js → chunk-EZVZDCHZ.js} +24 -15
- package/dist/chunk-EZVZDCHZ.js.map +1 -0
- package/dist/{chunk-WY22FMZF.js → chunk-FHIMIXT3.js} +5 -5
- package/dist/{chunk-WY22FMZF.js.map → chunk-FHIMIXT3.js.map} +1 -1
- package/dist/{chunk-D5REDKVU.js → chunk-FKU57Q5Q.js} +3 -3
- package/dist/{chunk-D5REDKVU.js.map → chunk-FKU57Q5Q.js.map} +1 -1
- package/dist/{chunk-OQN7PCI4.js → chunk-FV2MSBVA.js} +4 -4
- package/dist/{chunk-OQN7PCI4.js.map → chunk-FV2MSBVA.js.map} +1 -1
- package/dist/{chunk-YW2BNDSE.js → chunk-GOCWM7FN.js} +22 -4
- package/dist/chunk-GOCWM7FN.js.map +1 -0
- package/dist/{chunk-GYZJKZPJ.js → chunk-GRKU3S5V.js} +3 -3
- package/dist/{chunk-GYZJKZPJ.js.map → chunk-GRKU3S5V.js.map} +1 -1
- package/dist/{chunk-AP24HESN.js → chunk-H6UVIKQ2.js} +3 -3
- package/dist/{chunk-AP24HESN.js.map → chunk-H6UVIKQ2.js.map} +1 -1
- package/dist/{chunk-ES6ARJPQ.js → chunk-HPVMTX6M.js} +15 -10
- package/dist/chunk-HPVMTX6M.js.map +1 -0
- package/dist/{chunk-MMARPEV7.js → chunk-JJ7LDI3S.js} +6 -6
- package/dist/{chunk-MMARPEV7.js.map → chunk-JJ7LDI3S.js.map} +1 -1
- package/dist/{chunk-DR5ZOEYI.js → chunk-JY7GVNYU.js} +32 -18
- package/dist/chunk-JY7GVNYU.js.map +1 -0
- package/dist/{chunk-HUKUYWBJ.js → chunk-JYWW32JI.js} +17 -6
- package/dist/chunk-JYWW32JI.js.map +1 -0
- package/dist/{chunk-QEX75L77.js → chunk-K5LVU2MN.js} +13 -7
- package/dist/chunk-K5LVU2MN.js.map +1 -0
- package/dist/{chunk-5RDZ5JHH.js → chunk-KC6HGWXN.js} +4 -4
- package/dist/{chunk-5RDZ5JHH.js.map → chunk-KC6HGWXN.js.map} +1 -1
- package/dist/{chunk-ZPCABSSW.js → chunk-L5XUEC2W.js} +4 -4
- package/dist/{chunk-ZPCABSSW.js.map → chunk-L5XUEC2W.js.map} +1 -1
- package/dist/{chunk-QW534EZB.js → chunk-L6IFN6ER.js} +53 -8
- package/dist/chunk-L6IFN6ER.js.map +1 -0
- package/dist/{chunk-L6UMSKDF.js → chunk-LW7ZI6EQ.js} +8 -36
- package/dist/chunk-LW7ZI6EQ.js.map +1 -0
- package/dist/{chunk-QXA2W6UB.js → chunk-MQIRRN76.js} +3 -3
- package/dist/{chunk-QXA2W6UB.js.map → chunk-MQIRRN76.js.map} +1 -1
- package/dist/{chunk-CWAWYXD5.js → chunk-N5P2WBUL.js} +3 -3
- package/dist/{chunk-CWAWYXD5.js.map → chunk-N5P2WBUL.js.map} +1 -1
- package/dist/{chunk-BBRMS4IC.js → chunk-ODDATIII.js} +8 -8
- package/dist/{chunk-BBRMS4IC.js.map → chunk-ODDATIII.js.map} +1 -1
- package/dist/{chunk-WXWQNJCT.js → chunk-PUK7TQT4.js} +3 -3
- package/dist/{chunk-WXWQNJCT.js.map → chunk-PUK7TQT4.js.map} +1 -1
- package/dist/{chunk-ZWUJ22RF.js → chunk-PZ6NF5DE.js} +16 -23
- package/dist/chunk-PZ6NF5DE.js.map +1 -0
- package/dist/{chunk-5DCOG5B5.js → chunk-RD6N2D7I.js} +3 -3
- package/dist/{chunk-5DCOG5B5.js.map → chunk-RD6N2D7I.js.map} +1 -1
- package/dist/{chunk-HLETG3CX.js → chunk-RO2BPKXK.js} +3 -3
- package/dist/{chunk-HLETG3CX.js.map → chunk-RO2BPKXK.js.map} +1 -1
- package/dist/{chunk-6GSE63K2.js → chunk-SRNCN4X2.js} +13 -5
- package/dist/chunk-SRNCN4X2.js.map +1 -0
- package/dist/{chunk-PIC23DDE.js → chunk-T2TQAH2X.js} +42 -11
- package/dist/chunk-T2TQAH2X.js.map +1 -0
- package/dist/{chunk-W44KA24A.js → chunk-TDQ2ERCM.js} +695 -96
- package/dist/chunk-TDQ2ERCM.js.map +1 -0
- package/dist/{chunk-SXWGLW23.js → chunk-U2FI547Z.js} +4 -4
- package/dist/{chunk-SXWGLW23.js.map → chunk-U2FI547Z.js.map} +1 -1
- package/dist/{chunk-EOKWTN4N.js → chunk-V4RV2NJF.js} +44 -29
- package/dist/chunk-V4RV2NJF.js.map +1 -0
- package/dist/{chunk-D3PU3C6F.js → chunk-VKPBUPH7.js} +41 -15
- package/dist/chunk-VKPBUPH7.js.map +1 -0
- package/dist/{chunk-FT4ZHLYR.js → chunk-WDXZA7QW.js} +33 -3
- package/dist/chunk-WDXZA7QW.js.map +1 -0
- package/dist/{chunk-FSSRBWYL.js → chunk-WJCQFNF6.js} +4 -4
- package/dist/chunk-WJCQFNF6.js.map +1 -0
- package/dist/{chunk-2SKPPIV7.js → chunk-WJLYL6RY.js} +5 -5
- package/dist/{chunk-2SKPPIV7.js.map → chunk-WJLYL6RY.js.map} +1 -1
- package/dist/{chunk-LQT2IKYY.js → chunk-X54YR4AW.js} +2 -2
- package/dist/{chunk-LQT2IKYY.js.map → chunk-X54YR4AW.js.map} +1 -1
- package/dist/{chunk-QSLXB44M.js → chunk-YU6AURJY.js} +3 -3
- package/dist/{chunk-QSLXB44M.js.map → chunk-YU6AURJY.js.map} +1 -1
- package/dist/{chunk-FSLVMZXR.js → chunk-YZ3N7IUU.js} +72 -31
- package/dist/chunk-YZ3N7IUU.js.map +1 -0
- package/dist/{chunk-FACRITOL.js → chunk-ZNN7ONJX.js} +8 -4
- package/dist/chunk-ZNN7ONJX.js.map +1 -0
- package/dist/cli/index.js +346 -147
- 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.d.ts.map +1 -1
- package/dist/cli/src/commands/config.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-publish.d.ts.map +1 -1
- package/dist/cli/src/commands/plugin/claude-code.d.ts.map +1 -1
- package/dist/cli/src/commands/plugin/codex.d.ts +6 -0
- package/dist/cli/src/commands/plugin/codex.d.ts.map +1 -1
- package/dist/cli/src/commands/project.d.ts.map +1 -1
- package/dist/cli/src/commands/run.d.ts.map +1 -1
- package/dist/cli/src/commands/serve.d.ts +5 -0
- package/dist/cli/src/commands/serve.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/commands/verify.d.ts.map +1 -1
- package/dist/cli/src/driver-error.d.ts +3 -1
- package/dist/cli/src/driver-error.d.ts.map +1 -1
- package/dist/cli/src/helpers.d.ts +6 -4
- package/dist/cli/src/helpers.d.ts.map +1 -1
- package/dist/cli/src/plugin-store/index.d.ts +6 -0
- package/dist/cli/src/plugin-store/index.d.ts.map +1 -1
- package/dist/cli/src/skill-checks.d.ts +4 -3
- package/dist/cli/src/skill-checks.d.ts.map +1 -1
- package/dist/connectors/config.js +5 -5
- package/dist/connectors/index.js +20 -20
- package/dist/connectors/src/connector-manager.d.ts.map +1 -1
- package/dist/connectors/src/connector-types.d.ts +5 -0
- package/dist/connectors/src/connector-types.d.ts.map +1 -1
- package/dist/connectors/src/watcher.d.ts.map +1 -1
- package/dist/{connectors-CIEIMJY2.js → connectors-QL4GBMH3.js} +23 -23
- package/dist/{connectors-CIEIMJY2.js.map → connectors-QL4GBMH3.js.map} +1 -1
- package/dist/core/index.js +7 -7
- 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/bind.d.ts +30 -0
- package/dist/core/src/bind.d.ts.map +1 -0
- package/dist/core/src/index.d.ts +4 -3
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/core/src/lock.d.ts +11 -2
- package/dist/core/src/lock.d.ts.map +1 -1
- package/dist/core/src/manifest.d.ts.map +1 -1
- package/dist/core/src/models.d.ts +19 -0
- package/dist/core/src/models.d.ts.map +1 -1
- package/dist/core/src/publish-manifest.d.ts +15 -13
- package/dist/core/src/publish-manifest.d.ts.map +1 -1
- package/dist/core/src/store.d.ts +2 -1
- package/dist/core/src/store.d.ts.map +1 -1
- package/dist/core/src/workspace-config.d.ts +26 -1
- package/dist/core/src/workspace-config.d.ts.map +1 -1
- package/dist/core/store.js +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/discovery/src/parse-manifest.d.ts +1 -1
- package/dist/discovery/src/source-config.d.ts +2 -1
- package/dist/discovery/src/source-config.d.ts.map +1 -1
- package/dist/{ensure-sources-I62QMZZP.js → ensure-sources-CEFODJCE.js} +21 -17
- package/dist/ensure-sources-CEFODJCE.js.map +1 -0
- package/dist/factory-assets/connectors/box.js +20 -20
- package/dist/factory-assets/connectors/deploy.js +20 -20
- package/dist/factory-assets/connectors/devserver.js +20 -20
- package/dist/factory-assets/connectors/flow/adapter.js +20 -20
- package/dist/factory-assets/connectors/flow/engine.js +9 -9
- package/dist/factory-assets/connectors/flow/run-flow.js +22 -22
- package/dist/factory-assets/connectors/flow.js +20 -20
- package/dist/factory-assets/connectors/git.js +20 -20
- package/dist/factory-assets/connectors/gmail.js +20 -20
- package/dist/factory-assets/connectors/googledrive.js +20 -20
- package/dist/factory-assets/connectors/local.js +20 -20
- package/dist/factory-assets/connectors/mattermost.js +20 -20
- package/dist/factory-assets/connectors/memory.js +20 -20
- package/dist/factory-assets/connectors/minio.js +20 -20
- package/dist/factory-assets/connectors/postgres.js +20 -20
- package/dist/factory-assets/connectors/s3.js +20 -20
- package/dist/factory-assets/connectors/sharepoint.js +20 -20
- package/dist/factory-assets/connectors/sqlite.js +20 -20
- package/dist/factory-assets/connectors/static-server.js +20 -20
- package/dist/factory-assets/connectors/tunnel.js +20 -20
- package/dist/factory-assets/connectors/webdav.js +20 -20
- package/dist/factory-assets/connectors/xstate-store/adapter.d.ts +1 -1
- package/dist/factory-assets/connectors/xstate-store/adapter.d.ts.map +1 -1
- package/dist/factory-assets/connectors/xstate-store.js +20 -20
- package/dist/factory-assets/connectors/xstate.js +20 -20
- package/dist/{flows-YKC53LDP.js → flows-BHY73K3O.js} +12 -12
- package/dist/{flows-YKC53LDP.js.map → flows-BHY73K3O.js.map} +1 -1
- package/dist/{helpers-3FOM37BO.js → helpers-R22QNPFN.js} +21 -17
- package/dist/{helpers-3FOM37BO.js.map → helpers-R22QNPFN.js.map} +1 -1
- package/dist/library/index.js +11 -11
- package/dist/library/install.js +4 -4
- package/dist/library/src/index.d.ts +1 -1
- package/dist/library/src/index.d.ts.map +1 -1
- package/dist/library/src/manifest-writer.d.ts +17 -1
- package/dist/library/src/manifest-writer.d.ts.map +1 -1
- package/dist/{library-publish-EFKITCGE.js → library-publish-VBE3X2TH.js} +60 -63
- package/dist/library-publish-VBE3X2TH.js.map +1 -0
- package/dist/model-endpoint/index.js +10 -10
- package/dist/model-endpoint/src/server.d.ts.map +1 -1
- package/dist/open-library-JP5TC5UX.js +42 -0
- package/dist/{open-library-NZUI4XGF.js.map → open-library-JP5TC5UX.js.map} +1 -1
- package/dist/open-registry-RBELV5YH.js +32 -0
- package/dist/{open-registry-YPRQDUMK.js.map → open-registry-RBELV5YH.js.map} +1 -1
- package/dist/paths-BFM6K2QO.js +22 -0
- package/dist/{paths-P55DTBEK.js.map → paths-BFM6K2QO.js.map} +1 -1
- package/dist/plugin-store-QOQDM24E.js +23 -0
- package/dist/{plugin-store-IPIBZRBX.js.map → plugin-store-QOQDM24E.js.map} +1 -1
- package/dist/{project-2BNFZ2CR.js → project-6ETXGQWD.js} +45 -45
- package/dist/{project-2BNFZ2CR.js.map → project-6ETXGQWD.js.map} +1 -1
- package/dist/resolver/index.js +8 -8
- package/dist/runner/index.js +37 -37
- package/dist/runner/src/agent.d.ts.map +1 -1
- package/dist/runner/src/capability-roundtrip.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +18 -14
- package/dist/sdk/bridge.js +14 -14
- package/dist/sdk/core.js +7 -7
- package/dist/sdk/flow.js +9 -9
- package/dist/sdk/index.js +37 -37
- package/dist/sdk/resolver.js +8 -8
- package/dist/sdk/runner.js +37 -37
- package/dist/sdk/transport/ws/server.js +19 -1
- package/dist/sdk/transport/ws.js +19 -1
- package/dist/sdk/transport.js +19 -1
- package/dist/{serve-preflight-V5GM33T3.js → serve-preflight-BTGTZUDN.js} +9 -9
- package/dist/{serve-preflight-V5GM33T3.js.map → serve-preflight-BTGTZUDN.js.map} +1 -1
- package/dist/{setup-ZMAPTKJW.js → setup-JQDTYPSD.js} +28 -24
- package/dist/setup-JQDTYPSD.js.map +1 -0
- package/dist/{skills-7G6QCDEM.js → skills-RSZVUIYZ.js} +13 -13
- package/dist/{skills-7G6QCDEM.js.map → skills-RSZVUIYZ.js.map} +1 -1
- package/dist/{source-6BZA34F5.js → source-FPLHY3DP.js} +47 -47
- package/dist/{source-6BZA34F5.js.map → source-FPLHY3DP.js.map} +1 -1
- package/dist/{source-manifest-publish-MJXCSUKT.js → source-manifest-publish-LY4H63VA.js} +49 -49
- package/dist/{source-manifest-publish-MJXCSUKT.js.map → source-manifest-publish-LY4H63VA.js.map} +1 -1
- package/dist/transport/index.js +19 -1
- package/dist/transport/src/ws/server.d.ts +2 -16
- package/dist/transport/src/ws/server.d.ts.map +1 -1
- package/dist/transport/ws/server.js +19 -1
- package/dist/transport/ws.js +19 -1
- package/dist/tui/index.js +54 -42
- package/dist/tui/index.js.map +1 -1
- package/dist/tui/src/repl.d.ts +4 -1
- package/dist/tui/src/repl.d.ts.map +1 -1
- package/dist/types/manifests.js +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/scaffold-body.d.ts +8 -0
- package/dist/types/src/manifests/scaffold-body.d.ts.map +1 -1
- package/dist/types/src/manifests/skill.d.ts +0 -2
- package/dist/types/src/manifests/skill.d.ts.map +1 -1
- package/dist/workspace-plugin/adapters/mcp.js +27 -27
- package/dist/workspace-plugin/adapters/omp.js +32 -18
- package/dist/workspace-plugin/adapters/omp.js.map +1 -1
- package/dist/workspace-plugin/index.js +1 -1
- package/dist/workspace-plugin/src/adapters/claude-code.d.ts +1 -1
- package/dist/workspace-plugin/src/adapters/omp.d.ts +8 -5
- package/dist/workspace-plugin/src/adapters/omp.d.ts.map +1 -1
- package/dist/workspace-plugin/src/plugin.d.ts +7 -1
- package/dist/workspace-plugin/src/plugin.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-6GSE63K2.js.map +0 -1
- package/dist/chunk-BVXXBZWA.js.map +0 -1
- package/dist/chunk-D3PU3C6F.js.map +0 -1
- package/dist/chunk-D54T2F54.js.map +0 -1
- package/dist/chunk-DR5ZOEYI.js.map +0 -1
- package/dist/chunk-EOKWTN4N.js.map +0 -1
- package/dist/chunk-ES6ARJPQ.js.map +0 -1
- package/dist/chunk-FACRITOL.js.map +0 -1
- package/dist/chunk-FSLVMZXR.js.map +0 -1
- package/dist/chunk-FSSRBWYL.js.map +0 -1
- package/dist/chunk-FT4ZHLYR.js.map +0 -1
- package/dist/chunk-H7R7R5BN.js.map +0 -1
- package/dist/chunk-HUKUYWBJ.js.map +0 -1
- package/dist/chunk-KZWZRNIY.js.map +0 -1
- package/dist/chunk-L6UMSKDF.js.map +0 -1
- package/dist/chunk-OXUCYHL5.js.map +0 -1
- package/dist/chunk-PIC23DDE.js.map +0 -1
- package/dist/chunk-QEX75L77.js.map +0 -1
- package/dist/chunk-QW534EZB.js.map +0 -1
- package/dist/chunk-V5CDPKDA.js.map +0 -1
- package/dist/chunk-W44KA24A.js.map +0 -1
- package/dist/chunk-YK3XLEQJ.js.map +0 -1
- package/dist/chunk-YW2BNDSE.js.map +0 -1
- package/dist/chunk-ZVZTCDUN.js.map +0 -1
- package/dist/chunk-ZWUJ22RF.js.map +0 -1
- package/dist/ensure-sources-I62QMZZP.js.map +0 -1
- package/dist/library-publish-EFKITCGE.js.map +0 -1
- package/dist/open-library-NZUI4XGF.js +0 -40
- package/dist/open-registry-YPRQDUMK.js +0 -32
- package/dist/paths-P55DTBEK.js +0 -22
- package/dist/plugin-store-IPIBZRBX.js +0 -23
- package/dist/setup-ZMAPTKJW.js.map +0 -1
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import { makeHttpPublisherClient } from './chunk-
|
|
2
|
-
import { sourceClonePath, resolveSourceArg } from './chunk-
|
|
3
|
-
import { isStoreAuthenticated } from './chunk-
|
|
4
|
-
import { refFor, publishToStore, exitOnEmptyAsset, bareName } from './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import { logErr, S, logInfo, logOk, logWarn } from './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
1
|
+
import { makeHttpPublisherClient } from './chunk-N5P2WBUL.js';
|
|
2
|
+
import { sourceClonePath, resolveSourceArg } from './chunk-JY7GVNYU.js';
|
|
3
|
+
import { isStoreAuthenticated } from './chunk-E5YNGE3I.js';
|
|
4
|
+
import { refFor, publishToStore, exitOnEmptyAsset, bareName } from './chunk-DA2MCPFN.js';
|
|
5
|
+
import './chunk-FV2MSBVA.js';
|
|
6
|
+
import { logErr, S, logInfo, logOk, logWarn } from './chunk-K5LVU2MN.js';
|
|
7
|
+
import './chunk-WJLYL6RY.js';
|
|
8
|
+
import './chunk-V4RV2NJF.js';
|
|
9
|
+
import './chunk-ZNN7ONJX.js';
|
|
10
|
+
import './chunk-JJ7LDI3S.js';
|
|
11
|
+
import './chunk-RO2BPKXK.js';
|
|
12
|
+
import './chunk-RD6N2D7I.js';
|
|
13
13
|
import './chunk-R6O6YWU7.js';
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import './chunk-CD7SVH6W.js';
|
|
15
|
+
import './chunk-6Z5KTFJT.js';
|
|
16
16
|
import './chunk-4ZTPYIBE.js';
|
|
17
17
|
import './chunk-X5YPJV4N.js';
|
|
18
|
-
import './chunk-
|
|
18
|
+
import './chunk-PZ6NF5DE.js';
|
|
19
19
|
import './chunk-O7SG5PC2.js';
|
|
20
20
|
import './chunk-7QBNJTTQ.js';
|
|
21
21
|
import './chunk-O2SYFJWP.js';
|
|
22
|
-
import './chunk-
|
|
22
|
+
import './chunk-LW7ZI6EQ.js';
|
|
23
23
|
import './chunk-32NA4TVC.js';
|
|
24
24
|
import './chunk-W3UDISS2.js';
|
|
25
25
|
import './chunk-PHRNUTSG.js';
|
|
26
|
-
import './chunk-
|
|
27
|
-
import './chunk-
|
|
26
|
+
import './chunk-GRKU3S5V.js';
|
|
27
|
+
import './chunk-ODDATIII.js';
|
|
28
28
|
import './chunk-4R6DROGN.js';
|
|
29
|
-
import './chunk-
|
|
30
|
-
import './chunk-
|
|
31
|
-
import './chunk-
|
|
32
|
-
import './chunk-V5CDPKDA.js';
|
|
29
|
+
import './chunk-FKU57Q5Q.js';
|
|
30
|
+
import './chunk-H6UVIKQ2.js';
|
|
31
|
+
import './chunk-EELKR2WP.js';
|
|
33
32
|
import './chunk-YIF2IJUA.js';
|
|
34
|
-
import './chunk-
|
|
35
|
-
import './chunk-
|
|
36
|
-
import './chunk-
|
|
37
|
-
import './chunk-
|
|
33
|
+
import './chunk-WJCQFNF6.js';
|
|
34
|
+
import './chunk-L6IFN6ER.js';
|
|
35
|
+
import './chunk-3KMREAR2.js';
|
|
36
|
+
import './chunk-6HK6RUFM.js';
|
|
38
37
|
import './chunk-LOO5CB5M.js';
|
|
39
38
|
import './chunk-AJ7EGIFR.js';
|
|
40
|
-
import './chunk-
|
|
39
|
+
import './chunk-L5XUEC2W.js';
|
|
41
40
|
import './chunk-B4X2N7JQ.js';
|
|
42
41
|
import './chunk-YROR332M.js';
|
|
43
|
-
import './chunk-
|
|
44
|
-
import './chunk-
|
|
42
|
+
import './chunk-YU6AURJY.js';
|
|
43
|
+
import './chunk-X54YR4AW.js';
|
|
45
44
|
import './chunk-6E6PKKAD.js';
|
|
46
45
|
import './chunk-IFGTRL2I.js';
|
|
47
|
-
import './chunk-
|
|
48
|
-
import './chunk-LNFKL23K.js';
|
|
49
|
-
import './chunk-X3RMRJNR.js';
|
|
46
|
+
import './chunk-D6UBEYQH.js';
|
|
50
47
|
import './chunk-M3WPBTGJ.js';
|
|
51
48
|
import './chunk-7RGTAEG6.js';
|
|
52
|
-
import './chunk-NUELZWCF.js';
|
|
53
49
|
import './chunk-Y56YIT6J.js';
|
|
54
|
-
import './chunk-
|
|
55
|
-
import './chunk-
|
|
56
|
-
import './chunk-
|
|
57
|
-
import './chunk-
|
|
50
|
+
import './chunk-TDQ2ERCM.js';
|
|
51
|
+
import './chunk-VKPBUPH7.js';
|
|
52
|
+
import './chunk-HPVMTX6M.js';
|
|
53
|
+
import './chunk-U2FI547Z.js';
|
|
58
54
|
import './chunk-BFMYYNDT.js';
|
|
59
55
|
import './chunk-3TXEJN4W.js';
|
|
60
|
-
import './chunk-
|
|
56
|
+
import './chunk-ISHJITXJ.js';
|
|
57
|
+
import './chunk-LNFKL23K.js';
|
|
58
|
+
import './chunk-X3RMRJNR.js';
|
|
59
|
+
import './chunk-NUELZWCF.js';
|
|
60
|
+
import './chunk-YZ3N7IUU.js';
|
|
61
61
|
import './chunk-NOA6EJXE.js';
|
|
62
62
|
import './chunk-KTBKW2FI.js';
|
|
63
63
|
import './chunk-UQ6LFBPZ.js';
|
|
64
|
-
import './chunk-
|
|
65
|
-
import './chunk-
|
|
66
|
-
import { globalSettingsPath } from './chunk-
|
|
64
|
+
import './chunk-SRNCN4X2.js';
|
|
65
|
+
import './chunk-CKNIYIV2.js';
|
|
66
|
+
import { globalSettingsPath } from './chunk-T2TQAH2X.js';
|
|
67
67
|
import './chunk-4GY63JU6.js';
|
|
68
|
-
import './chunk-
|
|
69
|
-
import './chunk-
|
|
68
|
+
import './chunk-KC6HGWXN.js';
|
|
69
|
+
import './chunk-5TBFN46Z.js';
|
|
70
70
|
import './chunk-5BEFNLOR.js';
|
|
71
71
|
import './chunk-A2ULN3KX.js';
|
|
72
|
-
import { sourceCacheKey } from './chunk-
|
|
72
|
+
import { sourceCacheKey } from './chunk-2NOLF7B2.js';
|
|
73
73
|
import './chunk-L5VSIPQD.js';
|
|
74
74
|
import './chunk-IG5LZ3WU.js';
|
|
75
|
-
import { decodeSkaileManifest, encodeSkaileManifest } from './chunk-
|
|
75
|
+
import { decodeSkaileManifest, encodeSkaileManifest } from './chunk-CKICWXMU.js';
|
|
76
76
|
import './chunk-RVRB27AN.js';
|
|
77
|
-
import './chunk-
|
|
78
|
-
import './chunk-
|
|
77
|
+
import './chunk-GOCWM7FN.js';
|
|
78
|
+
import './chunk-WDXZA7QW.js';
|
|
79
79
|
import './chunk-ICSCSM5D.js';
|
|
80
80
|
import './chunk-DKXNKFKP.js';
|
|
81
81
|
import './chunk-MJHSLODD.js';
|
|
@@ -279,5 +279,5 @@ async function runYank(arg, opts, client) {
|
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
export { getSidecarRepo, normalizePublishedManifest, pushSidecarManifest, runPublish, runYank, saveSidecarRepo };
|
|
282
|
-
//# sourceMappingURL=source-manifest-publish-
|
|
283
|
-
//# sourceMappingURL=source-manifest-publish-
|
|
282
|
+
//# sourceMappingURL=source-manifest-publish-LY4H63VA.js.map
|
|
283
|
+
//# sourceMappingURL=source-manifest-publish-LY4H63VA.js.map
|
package/dist/{source-manifest-publish-MJXCSUKT.js.map → source-manifest-publish-LY4H63VA.js.map}
REN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CSUKT.js","sourcesContent":["/**\n * `skaile source manifest publish` / `yank` — the curator-publish flow. Takes a\n * locally-curated sidecar manifest (over a foreign public GitHub repo) and:\n *\n * 1. Pushes the curated `skaile.manifest.yaml` to the curator's OWN public\n * \"sidecar\" repo (bytes stay in the foreign source; the sidecar holds only\n * the manifest pointing at it).\n * 2. Registers the foreign source + the sidecar (url + pinned commit) with the\n * store, syncs it, and publishes each curated asset.\n *\n * `yank` is the inverse: unpublish each currently-published asset of the source.\n *\n * The store REST surface is reached through the injectable {@link PublisherClient}\n * (default HTTP client); git side-effects go through an injectable `spawn`. Both\n * seams keep the pure helpers + orchestration unit/integration-testable without a\n * live store or a real remote.\n *\n * @docLink cli/commands/source#manifest-publish\n */\n\nimport { spawnSync } from \"node:child_process\";\nimport { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from \"node:fs\";\nimport { dirname, join } from \"node:path\";\nimport {\n decodeSkaileManifest,\n encodeSkaileManifest,\n globalSettingsPath,\n type SkPublishManifest,\n sourceCacheKey,\n} from \"@skaile/workspaces/core\";\nimport { logErr, logInfo, logOk, logWarn, S } from \"../helpers.ts\";\nimport { makeHttpPublisherClient, type PublisherClient } from \"../store-publisher.ts\";\nimport { isStoreAuthenticated } from \"../store-client.ts\";\nimport { bareName, exitOnEmptyAsset, publishToStore, refFor } from \"./publish-core.ts\";\nimport { sourceClonePath } from \"./source.ts\";\nimport { resolveSourceArg } from \"./source-manifest.ts\";\n\n/** The fixed filename a sidecar repo carries at its root. */\nconst SIDECAR_MANIFEST_FILENAME = \"skaile.manifest.yaml\";\n\n/** Injectable spawn contract — the subset of `spawnSync` these helpers use. */\ntype SpawnLike = typeof spawnSync;\n\n/**\n * Return a copy of `manifest` normalized for publication under `namespace`:\n * the top-level `publisher` is set to `namespace` and every per-asset\n * `publisher` override is removed so all assets inherit the top-level one.\n * Pure — the input is not mutated.\n */\nexport function normalizePublishedManifest(\n manifest: SkPublishManifest,\n namespace: string,\n): SkPublishManifest {\n const assets = (manifest.assets ?? []).map((a) => {\n const { publisher: _drop, ...rest } = a;\n return rest;\n });\n return { ...manifest, publisher: namespace, assets };\n}\n\n// ── Sidecar-repo association (~/.skaile/settings.json) ────────────────────────\n\n/**\n * Path to the user settings file — the same `$SKAILE_HOME/settings.json`\n * (`~/.skaile/settings.json`) the store client reads tokens from, so the sidecar\n * association lives beside the store manifests and tests isolate through the\n * same `SKAILE_HOME` seam.\n */\nfunction settingsFile(): string {\n return globalSettingsPath();\n}\n\nfunction readSettings(): Record<string, any> {\n const file = settingsFile();\n if (!existsSync(file)) return {};\n try {\n return JSON.parse(readFileSync(file, \"utf-8\"));\n } catch {\n return {};\n }\n}\n\n/**\n * The sidecar repo URL previously associated with a source `slug`, if any.\n * Reads `settings.sidecarRepos?.[slug]?.repo`.\n */\nexport function getSidecarRepo(slug: string): string | undefined {\n const settings = readSettings();\n return settings.sidecarRepos?.[slug]?.repo;\n}\n\n/**\n * Persist the sidecar repo URL for a source `slug`, preserving every other\n * settings key. Stored as an object (`{ repo }`) so a `path` (or other fields)\n * can be added later without a schema migration.\n */\nexport function saveSidecarRepo(slug: string, repo: string): void {\n const file = settingsFile();\n mkdirSync(dirname(file), { recursive: true });\n const settings = readSettings();\n const sidecarRepos = { ...(settings.sidecarRepos ?? {}) };\n sidecarRepos[slug] = { ...(sidecarRepos[slug] ?? {}), repo };\n settings.sidecarRepos = sidecarRepos;\n writeFileSync(file, JSON.stringify(settings, null, 2), \"utf-8\");\n}\n\n// ── Sidecar push ──────────────────────────────────────────────────────────────\n\n/**\n * Run a git command in `cwd` via the injected spawn, throwing with the captured\n * stderr on failure. Returns trimmed stdout.\n */\nfunction git(spawn: SpawnLike, cwd: string, args: string[]): string {\n const res = spawn(\"git\", [\"-C\", cwd, ...args], { encoding: \"utf-8\" });\n if (res.status !== 0) {\n const stderr = (res.stderr ?? \"\").toString().trim();\n throw new Error(`git ${args.join(\" \")} failed: ${stderr || `exit ${res.status}`}`);\n }\n return (res.stdout ?? \"\").toString().trim();\n}\n\n/**\n * Clone the curator's sidecar repo, write the curated manifest at its root, and\n * commit + push. Returns the pushed commit sha (used to pin the store source).\n *\n * Idempotent re-publish: when the manifest is unchanged `git commit` fails with\n * \"nothing to commit\" — we swallow that and return the current HEAD so a no-op\n * re-run still yields a valid pin. Any push/auth failure surfaces as a thrown\n * Error carrying git's stderr.\n */\nexport function pushSidecarManifest(opts: {\n sidecarRepoUrl: string;\n manifestText: string;\n spawn?: SpawnLike;\n}): { commitSha: string } {\n const spawn = opts.spawn ?? spawnSync;\n // Dedicated dir next to the source clone cache; wipe any stale clone first so\n // a re-publish always starts from a clean shallow checkout of the remote.\n const cloneDir = `${sourceClonePath(sourceCacheKey(opts.sidecarRepoUrl))}-sidecar-push`;\n rmSync(cloneDir, { recursive: true, force: true });\n mkdirSync(dirname(cloneDir), { recursive: true });\n\n // The clone is scratch — always remove it afterwards (success or failure) so a\n // failed push never leaves a stale checkout in the cache dir.\n try {\n const cloneRes = spawn(\"git\", [\"clone\", \"--depth\", \"1\", opts.sidecarRepoUrl, cloneDir], {\n encoding: \"utf-8\",\n });\n if (cloneRes.status !== 0) {\n const stderr = (cloneRes.stderr ?? \"\").toString().trim();\n throw new Error(\n `git clone ${opts.sidecarRepoUrl} failed: ${stderr || `exit ${cloneRes.status}`}`,\n );\n }\n\n writeFileSync(join(cloneDir, SIDECAR_MANIFEST_FILENAME), opts.manifestText, \"utf-8\");\n git(spawn, cloneDir, [\"add\", SIDECAR_MANIFEST_FILENAME]);\n\n // Fixed bot identity via -c so the commit succeeds regardless of the curator's\n // git config (the sidecar push is a machine action, not authored work).\n const commitRes = spawn(\n \"git\",\n [\n \"-C\",\n cloneDir,\n \"-c\",\n \"user.email=publish@skaile.store\",\n \"-c\",\n \"user.name=skaile\",\n \"commit\",\n \"-m\",\n \"chore(sidecar): publish curated manifest\",\n ],\n { encoding: \"utf-8\" },\n );\n if (commitRes.status !== 0) {\n const out = `${commitRes.stdout ?? \"\"}${commitRes.stderr ?? \"\"}`;\n // Nothing changed → idempotent re-publish; keep the existing HEAD.\n if (!/nothing to commit/i.test(out)) {\n throw new Error(`git commit failed: ${out.trim() || `exit ${commitRes.status}`}`);\n }\n } else {\n // `push origin HEAD` (not a bare `push`) so a fresh sidecar repo with an\n // unborn/renamed default branch still gets its branch created on the remote.\n git(spawn, cloneDir, [\"push\", \"origin\", \"HEAD\"]);\n }\n\n return { commitSha: git(spawn, cloneDir, [\"rev-parse\", \"HEAD\"]) };\n } finally {\n rmSync(cloneDir, { recursive: true, force: true });\n }\n}\n\n// ── Orchestration ───────────────────────────────────────────────────────────\n\n/**\n * `source manifest publish <src>` — publish a curated sidecar manifest to the\n * store. See the module header for the full flow. Store calls go through\n * `client` (default HTTP); git side-effects through `spawn` (default\n * `spawnSync`). The auth gate is enforced only for the default HTTP client so\n * injected fakes bypass it.\n */\nexport async function runPublish(\n arg: string,\n opts: {\n projectDir: string;\n as?: string;\n sidecarRepo?: string;\n ref?: string;\n dryRun?: boolean;\n },\n client?: PublisherClient,\n spawn: SpawnLike = spawnSync,\n): Promise<void> {\n const injected = client !== undefined;\n const pub = client ?? makeHttpPublisherClient();\n\n const { url, slug, manifestFile } = resolveSourceArg(arg, opts.projectDir);\n\n if (!existsSync(manifestFile)) {\n logErr(\n `No curated manifest for \"${slug}\" at ${S.dim(manifestFile)} — ` +\n \"run `skaile source manifest init` first.\",\n );\n process.exit(1);\n }\n\n const { manifest, diagnostics } = decodeSkaileManifest(readFileSync(manifestFile, \"utf-8\"));\n if (diagnostics.some((d) => d.severity === \"error\")) {\n for (const d of diagnostics.filter((x) => x.severity === \"error\")) {\n logErr(`${d.code}: ${d.message}`);\n }\n logErr(\n \"The curated manifest has errors — fix them with `skaile source manifest edit` / \" +\n \"`verify` before publishing.\",\n );\n process.exit(1);\n }\n\n // A real publish makes store calls (+ `me()` when `--as` is omitted), so it\n // needs a token. `--dry-run` is an offline preview: never gate it on auth.\n const authed = injected || isStoreAuthenticated();\n if (!opts.dryRun && !authed) {\n logErr(\"Not signed in — run `skaile store login` first.\");\n process.exit(1);\n }\n\n // Namespace: `--as` wins; else the caller's verified identity. Prefer the\n // GitHub handle (`githubLogin`) over the store login (`username`) — for a user\n // whose login differs from their GitHub handle the login namespace may be\n // reserved (matches the CLI's `resolveLibraryPublisher` precedence). In an\n // unauthenticated dry-run we cannot call `me()`, so show a placeholder.\n let namespace: string;\n if (opts.as) namespace = opts.as;\n else if (authed) {\n const me = await pub.me();\n // `||` not `??`: an empty-string githubLogin (partially-connected account) is\n // not a usable namespace — fall back to the login rather than publish under \"\".\n namespace = me.githubLogin || me.username;\n } else namespace = \"<your store username>\";\n\n const normalized = normalizePublishedManifest(manifest, namespace);\n const publishedText = encodeSkaileManifest(normalized);\n\n const wouldBeRefs = (normalized.assets ?? []).map((a) =>\n refFor(a.kind, namespace, a.name, a.version ?? normalized.version),\n );\n\n if (opts.dryRun) {\n const sidecar = opts.sidecarRepo ?? getSidecarRepo(slug) ?? \"<none — pass --sidecar-repo>\";\n logInfo(`Publish plan for ${S.bold(slug)}:`);\n logInfo(` namespace: ${namespace}`);\n logInfo(` sidecar repo: ${sidecar}`);\n logInfo(` source ref: ${opts.ref ?? \"main\"}`);\n logInfo(` would publish ${wouldBeRefs.length} asset(s):`);\n for (const r of wouldBeRefs) logInfo(` ${r}`);\n return;\n }\n\n const sidecarRepoUrl = opts.sidecarRepo ?? getSidecarRepo(slug);\n if (!sidecarRepoUrl) {\n logErr(\n \"No sidecar repo associated with this source. Pass \" +\n `${S.cmd(\"--sidecar-repo https://github.com/<you>/<repo>\")} — it must be a ` +\n \"PUBLIC GitHub repo you own; the curated manifest is committed there and the \" +\n \"store pins to that commit.\",\n );\n process.exit(1);\n }\n if (opts.sidecarRepo) saveSidecarRepo(slug, sidecarRepoUrl);\n\n const { commitSha } = pushSidecarManifest({ sidecarRepoUrl, manifestText: publishedText, spawn });\n logOk(`Pushed curated manifest to ${S.dim(sidecarRepoUrl)} @ ${commitSha.slice(0, 10)}.`);\n\n // The FOREIGN repo's ref to ingest (branch/sha). Defaults to `main`.\n const sourceRef = opts.ref ?? \"main\";\n\n const { published } = await publishToStore({\n sourceUrl: url,\n ref: sourceRef,\n sidecar: { url: sidecarRepoUrl, ref: commitSha },\n manifest: normalized,\n client: pub,\n });\n\n if (published.length > 0) {\n logInfo(`Consumers can now install them with \\`skaile add ${published[0]}\\`.`);\n }\n}\n\n/**\n * `source manifest yank <src>` — unpublish the source's published assets (all,\n * or the single asset matching `opts.asset`'s name). Auth-gated like publish.\n */\nexport async function runYank(\n arg: string,\n opts: { projectDir: string; asset?: string },\n client?: PublisherClient,\n): Promise<void> {\n exitOnEmptyAsset(opts.asset);\n const injected = client !== undefined;\n const pub = client ?? makeHttpPublisherClient();\n\n const { url, slug } = resolveSourceArg(arg, opts.projectDir);\n\n if (!injected && !isStoreAuthenticated()) {\n logErr(\"Not signed in — run `skaile store login` first.\");\n process.exit(1);\n }\n\n const rows = await pub.sourcesList();\n const source = rows.find((r) => r.url === url);\n if (!source) {\n logErr(`Source \"${slug}\" is not registered in the store — nothing to yank.`);\n process.exit(1);\n }\n\n // Optionally narrow to a single asset by name (accept a bare name or a ref).\n const targetName = opts.asset ? bareName(opts.asset) : undefined;\n const candidates = (await pub.sourceCandidates(source.id)).filter(\n (c) => c.published && (!targetName || c.name === targetName),\n );\n if (candidates.length === 0) {\n logWarn(\"No published assets matched — nothing to yank.\");\n return;\n }\n\n const yanked: string[] = [];\n for (const c of candidates) {\n try {\n await pub.assetUnpublish(c.id);\n yanked.push(`${c.kind}:${c.name}`);\n } catch (err) {\n logWarn(\n `Failed to yank ${c.kind}:${c.name}: ${err instanceof Error ? err.message : String(err)}`,\n );\n }\n }\n\n logOk(`Yanked ${yanked.length} asset(s):`);\n for (const r of yanked) logInfo(` ${r}`);\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../cli/src/commands/source-manifest-publish.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAK,KAAK,CAAA,GAAI,MAAA;AACvD,EAAA,MAAM,cAAc,MAAM,GAAA,CAAI,gBAAA,CAAiB,MAAA,CAAO,EAAE,CAAA,EAAG,MAAA;AAAA,IACzD,CAAC,CAAA,KAAM,CAAA,CAAE,cAAc,CAAC,UAAA,IAAc,EAAE,IAAA,KAAS,UAAA;AAAA,GACnD;AACA,EAAA,IAAI,UAAA,CAAW,WAAW,CAAA,EAAG;AAC3B,IAAA,OAAA,CAAQ,qDAAgD,CAAA;AACxD,IAAA;AAAA,EACF;AAEA,EAAA,MAAM,SAAmB,EAAC;AAC1B,EAAA,KAAA,MAAW,KAAK,UAAA,EAAY;AAC1B,IAAA,IAAI;AACF,MAAA,MAAM,GAAA,CAAI,cAAA,CAAe,CAAA,CAAE,EAAE,CAAA;AAC7B,MAAA,MAAA,CAAO,KAAK,CAAA,EAAG,CAAA,CAAE,IAAI,CAAA,CAAA,EAAI,CAAA,CAAE,IAAI,CAAA,CAAE,CAAA;AAAA,IACnC,SAAS,GAAA,EAAK;AACZ,MAAA,OAAA;AAAA,QACE,CAAA,eAAA,EAAkB,CAAA,CAAE,IAAI,CAAA,CAAA,EAAI,CAAA,CAAE,IAAI,CAAA,EAAA,EAAK,GAAA,YAAe,KAAA,GAAQ,GAAA,CAAI,OAAA,GAAU,MAAA,CAAO,GAAG,CAAC,CAAA;AAAA,OACzF;AAAA,IACF;AAAA,EACF;AAEA,EAAA,KAAA,CAAM,CAAA,OAAA,EAAU,MAAA,CAAO,MAAM,CAAA,UAAA,CAAY,CAAA;AACzC,EAAA,KAAA,MAAW,CAAA,IAAK,MAAA,EAAQ,OAAA,CAAQ,CAAA,EAAA,EAAK,CAAC,CAAA,CAAE,CAAA;AAC1C","file":"source-manifest-publish-LY4H63VA.js","sourcesContent":["/**\n * `skaile source manifest publish` / `yank` — the curator-publish flow. Takes a\n * locally-curated sidecar manifest (over a foreign public GitHub repo) and:\n *\n * 1. Pushes the curated `skaile.manifest.yaml` to the curator's OWN public\n * \"sidecar\" repo (bytes stay in the foreign source; the sidecar holds only\n * the manifest pointing at it).\n * 2. Registers the foreign source + the sidecar (url + pinned commit) with the\n * store, syncs it, and publishes each curated asset.\n *\n * `yank` is the inverse: unpublish each currently-published asset of the source.\n *\n * The store REST surface is reached through the injectable {@link PublisherClient}\n * (default HTTP client); git side-effects go through an injectable `spawn`. Both\n * seams keep the pure helpers + orchestration unit/integration-testable without a\n * live store or a real remote.\n *\n * @docLink cli/commands/source#manifest-publish\n */\n\nimport { spawnSync } from \"node:child_process\";\nimport { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from \"node:fs\";\nimport { dirname, join } from \"node:path\";\nimport {\n decodeSkaileManifest,\n encodeSkaileManifest,\n globalSettingsPath,\n type SkPublishManifest,\n sourceCacheKey,\n} from \"@skaile/workspaces/core\";\nimport { logErr, logInfo, logOk, logWarn, S } from \"../helpers.ts\";\nimport { makeHttpPublisherClient, type PublisherClient } from \"../store-publisher.ts\";\nimport { isStoreAuthenticated } from \"../store-client.ts\";\nimport { bareName, exitOnEmptyAsset, publishToStore, refFor } from \"./publish-core.ts\";\nimport { sourceClonePath } from \"./source.ts\";\nimport { resolveSourceArg } from \"./source-manifest.ts\";\n\n/** The fixed filename a sidecar repo carries at its root. */\nconst SIDECAR_MANIFEST_FILENAME = \"skaile.manifest.yaml\";\n\n/** Injectable spawn contract — the subset of `spawnSync` these helpers use. */\ntype SpawnLike = typeof spawnSync;\n\n/**\n * Return a copy of `manifest` normalized for publication under `namespace`:\n * the top-level `publisher` is set to `namespace` and every per-asset\n * `publisher` override is removed so all assets inherit the top-level one.\n * Pure — the input is not mutated.\n */\nexport function normalizePublishedManifest(\n manifest: SkPublishManifest,\n namespace: string,\n): SkPublishManifest {\n const assets = (manifest.assets ?? []).map((a) => {\n const { publisher: _drop, ...rest } = a;\n return rest;\n });\n return { ...manifest, publisher: namespace, assets };\n}\n\n// ── Sidecar-repo association (~/.skaile/settings.json) ────────────────────────\n\n/**\n * Path to the user settings file — the same `$SKAILE_HOME/settings.json`\n * (`~/.skaile/settings.json`) the store client reads tokens from, so the sidecar\n * association lives beside the store manifests and tests isolate through the\n * same `SKAILE_HOME` seam.\n */\nfunction settingsFile(): string {\n return globalSettingsPath();\n}\n\nfunction readSettings(): Record<string, any> {\n const file = settingsFile();\n if (!existsSync(file)) return {};\n try {\n return JSON.parse(readFileSync(file, \"utf-8\"));\n } catch {\n return {};\n }\n}\n\n/**\n * The sidecar repo URL previously associated with a source `slug`, if any.\n * Reads `settings.sidecarRepos?.[slug]?.repo`.\n */\nexport function getSidecarRepo(slug: string): string | undefined {\n const settings = readSettings();\n return settings.sidecarRepos?.[slug]?.repo;\n}\n\n/**\n * Persist the sidecar repo URL for a source `slug`, preserving every other\n * settings key. Stored as an object (`{ repo }`) so a `path` (or other fields)\n * can be added later without a schema migration.\n */\nexport function saveSidecarRepo(slug: string, repo: string): void {\n const file = settingsFile();\n mkdirSync(dirname(file), { recursive: true });\n const settings = readSettings();\n const sidecarRepos = { ...(settings.sidecarRepos ?? {}) };\n sidecarRepos[slug] = { ...(sidecarRepos[slug] ?? {}), repo };\n settings.sidecarRepos = sidecarRepos;\n writeFileSync(file, JSON.stringify(settings, null, 2), \"utf-8\");\n}\n\n// ── Sidecar push ──────────────────────────────────────────────────────────────\n\n/**\n * Run a git command in `cwd` via the injected spawn, throwing with the captured\n * stderr on failure. Returns trimmed stdout.\n */\nfunction git(spawn: SpawnLike, cwd: string, args: string[]): string {\n const res = spawn(\"git\", [\"-C\", cwd, ...args], { encoding: \"utf-8\" });\n if (res.status !== 0) {\n const stderr = (res.stderr ?? \"\").toString().trim();\n throw new Error(`git ${args.join(\" \")} failed: ${stderr || `exit ${res.status}`}`);\n }\n return (res.stdout ?? \"\").toString().trim();\n}\n\n/**\n * Clone the curator's sidecar repo, write the curated manifest at its root, and\n * commit + push. Returns the pushed commit sha (used to pin the store source).\n *\n * Idempotent re-publish: when the manifest is unchanged `git commit` fails with\n * \"nothing to commit\" — we swallow that and return the current HEAD so a no-op\n * re-run still yields a valid pin. Any push/auth failure surfaces as a thrown\n * Error carrying git's stderr.\n */\nexport function pushSidecarManifest(opts: {\n sidecarRepoUrl: string;\n manifestText: string;\n spawn?: SpawnLike;\n}): { commitSha: string } {\n const spawn = opts.spawn ?? spawnSync;\n // Dedicated dir next to the source clone cache; wipe any stale clone first so\n // a re-publish always starts from a clean shallow checkout of the remote.\n const cloneDir = `${sourceClonePath(sourceCacheKey(opts.sidecarRepoUrl))}-sidecar-push`;\n rmSync(cloneDir, { recursive: true, force: true });\n mkdirSync(dirname(cloneDir), { recursive: true });\n\n // The clone is scratch — always remove it afterwards (success or failure) so a\n // failed push never leaves a stale checkout in the cache dir.\n try {\n const cloneRes = spawn(\"git\", [\"clone\", \"--depth\", \"1\", opts.sidecarRepoUrl, cloneDir], {\n encoding: \"utf-8\",\n });\n if (cloneRes.status !== 0) {\n const stderr = (cloneRes.stderr ?? \"\").toString().trim();\n throw new Error(\n `git clone ${opts.sidecarRepoUrl} failed: ${stderr || `exit ${cloneRes.status}`}`,\n );\n }\n\n writeFileSync(join(cloneDir, SIDECAR_MANIFEST_FILENAME), opts.manifestText, \"utf-8\");\n git(spawn, cloneDir, [\"add\", SIDECAR_MANIFEST_FILENAME]);\n\n // Fixed bot identity via -c so the commit succeeds regardless of the curator's\n // git config (the sidecar push is a machine action, not authored work).\n const commitRes = spawn(\n \"git\",\n [\n \"-C\",\n cloneDir,\n \"-c\",\n \"user.email=publish@skaile.store\",\n \"-c\",\n \"user.name=skaile\",\n \"commit\",\n \"-m\",\n \"chore(sidecar): publish curated manifest\",\n ],\n { encoding: \"utf-8\" },\n );\n if (commitRes.status !== 0) {\n const out = `${commitRes.stdout ?? \"\"}${commitRes.stderr ?? \"\"}`;\n // Nothing changed → idempotent re-publish; keep the existing HEAD.\n if (!/nothing to commit/i.test(out)) {\n throw new Error(`git commit failed: ${out.trim() || `exit ${commitRes.status}`}`);\n }\n } else {\n // `push origin HEAD` (not a bare `push`) so a fresh sidecar repo with an\n // unborn/renamed default branch still gets its branch created on the remote.\n git(spawn, cloneDir, [\"push\", \"origin\", \"HEAD\"]);\n }\n\n return { commitSha: git(spawn, cloneDir, [\"rev-parse\", \"HEAD\"]) };\n } finally {\n rmSync(cloneDir, { recursive: true, force: true });\n }\n}\n\n// ── Orchestration ───────────────────────────────────────────────────────────\n\n/**\n * `source manifest publish <src>` — publish a curated sidecar manifest to the\n * store. See the module header for the full flow. Store calls go through\n * `client` (default HTTP); git side-effects through `spawn` (default\n * `spawnSync`). The auth gate is enforced only for the default HTTP client so\n * injected fakes bypass it.\n */\nexport async function runPublish(\n arg: string,\n opts: {\n projectDir: string;\n as?: string;\n sidecarRepo?: string;\n ref?: string;\n dryRun?: boolean;\n },\n client?: PublisherClient,\n spawn: SpawnLike = spawnSync,\n): Promise<void> {\n const injected = client !== undefined;\n const pub = client ?? makeHttpPublisherClient();\n\n const { url, slug, manifestFile } = resolveSourceArg(arg, opts.projectDir);\n\n if (!existsSync(manifestFile)) {\n logErr(\n `No curated manifest for \"${slug}\" at ${S.dim(manifestFile)} — ` +\n \"run `skaile source manifest init` first.\",\n );\n process.exit(1);\n }\n\n const { manifest, diagnostics } = decodeSkaileManifest(readFileSync(manifestFile, \"utf-8\"));\n if (diagnostics.some((d) => d.severity === \"error\")) {\n for (const d of diagnostics.filter((x) => x.severity === \"error\")) {\n logErr(`${d.code}: ${d.message}`);\n }\n logErr(\n \"The curated manifest has errors — fix them with `skaile source manifest edit` / \" +\n \"`verify` before publishing.\",\n );\n process.exit(1);\n }\n\n // A real publish makes store calls (+ `me()` when `--as` is omitted), so it\n // needs a token. `--dry-run` is an offline preview: never gate it on auth.\n const authed = injected || isStoreAuthenticated();\n if (!opts.dryRun && !authed) {\n logErr(\"Not signed in — run `skaile store login` first.\");\n process.exit(1);\n }\n\n // Namespace: `--as` wins; else the caller's verified identity. Prefer the\n // GitHub handle (`githubLogin`) over the store login (`username`) — for a user\n // whose login differs from their GitHub handle the login namespace may be\n // reserved (matches the CLI's `resolveLibraryPublisher` precedence). In an\n // unauthenticated dry-run we cannot call `me()`, so show a placeholder.\n let namespace: string;\n if (opts.as) namespace = opts.as;\n else if (authed) {\n const me = await pub.me();\n // `||` not `??`: an empty-string githubLogin (partially-connected account) is\n // not a usable namespace — fall back to the login rather than publish under \"\".\n namespace = me.githubLogin || me.username;\n } else namespace = \"<your store username>\";\n\n const normalized = normalizePublishedManifest(manifest, namespace);\n const publishedText = encodeSkaileManifest(normalized);\n\n const wouldBeRefs = (normalized.assets ?? []).map((a) =>\n refFor(a.kind, namespace, a.name, a.version ?? normalized.version),\n );\n\n if (opts.dryRun) {\n const sidecar = opts.sidecarRepo ?? getSidecarRepo(slug) ?? \"<none — pass --sidecar-repo>\";\n logInfo(`Publish plan for ${S.bold(slug)}:`);\n logInfo(` namespace: ${namespace}`);\n logInfo(` sidecar repo: ${sidecar}`);\n logInfo(` source ref: ${opts.ref ?? \"main\"}`);\n logInfo(` would publish ${wouldBeRefs.length} asset(s):`);\n for (const r of wouldBeRefs) logInfo(` ${r}`);\n return;\n }\n\n const sidecarRepoUrl = opts.sidecarRepo ?? getSidecarRepo(slug);\n if (!sidecarRepoUrl) {\n logErr(\n \"No sidecar repo associated with this source. Pass \" +\n `${S.cmd(\"--sidecar-repo https://github.com/<you>/<repo>\")} — it must be a ` +\n \"PUBLIC GitHub repo you own; the curated manifest is committed there and the \" +\n \"store pins to that commit.\",\n );\n process.exit(1);\n }\n if (opts.sidecarRepo) saveSidecarRepo(slug, sidecarRepoUrl);\n\n const { commitSha } = pushSidecarManifest({ sidecarRepoUrl, manifestText: publishedText, spawn });\n logOk(`Pushed curated manifest to ${S.dim(sidecarRepoUrl)} @ ${commitSha.slice(0, 10)}.`);\n\n // The FOREIGN repo's ref to ingest (branch/sha). Defaults to `main`.\n const sourceRef = opts.ref ?? \"main\";\n\n const { published } = await publishToStore({\n sourceUrl: url,\n ref: sourceRef,\n sidecar: { url: sidecarRepoUrl, ref: commitSha },\n manifest: normalized,\n client: pub,\n });\n\n if (published.length > 0) {\n logInfo(`Consumers can now install them with \\`skaile add ${published[0]}\\`.`);\n }\n}\n\n/**\n * `source manifest yank <src>` — unpublish the source's published assets (all,\n * or the single asset matching `opts.asset`'s name). Auth-gated like publish.\n */\nexport async function runYank(\n arg: string,\n opts: { projectDir: string; asset?: string },\n client?: PublisherClient,\n): Promise<void> {\n exitOnEmptyAsset(opts.asset);\n const injected = client !== undefined;\n const pub = client ?? makeHttpPublisherClient();\n\n const { url, slug } = resolveSourceArg(arg, opts.projectDir);\n\n if (!injected && !isStoreAuthenticated()) {\n logErr(\"Not signed in — run `skaile store login` first.\");\n process.exit(1);\n }\n\n const rows = await pub.sourcesList();\n const source = rows.find((r) => r.url === url);\n if (!source) {\n logErr(`Source \"${slug}\" is not registered in the store — nothing to yank.`);\n process.exit(1);\n }\n\n // Optionally narrow to a single asset by name (accept a bare name or a ref).\n const targetName = opts.asset ? bareName(opts.asset) : undefined;\n const candidates = (await pub.sourceCandidates(source.id)).filter(\n (c) => c.published && (!targetName || c.name === targetName),\n );\n if (candidates.length === 0) {\n logWarn(\"No published assets matched — nothing to yank.\");\n return;\n }\n\n const yanked: string[] = [];\n for (const c of candidates) {\n try {\n await pub.assetUnpublish(c.id);\n yanked.push(`${c.kind}:${c.name}`);\n } catch (err) {\n logWarn(\n `Failed to yank ${c.kind}:${c.name}: ${err instanceof Error ? err.message : String(err)}`,\n );\n }\n }\n\n logOk(`Yanked ${yanked.length} asset(s):`);\n for (const r of yanked) logInfo(` ${r}`);\n}\n"]}
|
package/dist/transport/index.js
CHANGED
|
@@ -1,8 +1,26 @@
|
|
|
1
1
|
import '../chunk-O7SG5PC2.js';
|
|
2
2
|
import '../chunk-7QBNJTTQ.js';
|
|
3
3
|
export { WebSocketClientTransport } from '../chunk-O2SYFJWP.js';
|
|
4
|
-
export { WebSocketServerTransport } from '../chunk-
|
|
4
|
+
export { WebSocketServerTransport } from '../chunk-LW7ZI6EQ.js';
|
|
5
5
|
import '../chunk-32NA4TVC.js';
|
|
6
|
+
import '../chunk-T2TQAH2X.js';
|
|
7
|
+
import '../chunk-4GY63JU6.js';
|
|
8
|
+
import '../chunk-KC6HGWXN.js';
|
|
9
|
+
import '../chunk-5TBFN46Z.js';
|
|
10
|
+
import '../chunk-5BEFNLOR.js';
|
|
11
|
+
import '../chunk-A2ULN3KX.js';
|
|
12
|
+
import '../chunk-2NOLF7B2.js';
|
|
13
|
+
import '../chunk-L5VSIPQD.js';
|
|
14
|
+
import '../chunk-IG5LZ3WU.js';
|
|
15
|
+
import '../chunk-CKICWXMU.js';
|
|
16
|
+
import '../chunk-RVRB27AN.js';
|
|
17
|
+
import '../chunk-GOCWM7FN.js';
|
|
18
|
+
import '../chunk-WDXZA7QW.js';
|
|
19
|
+
import '../chunk-ICSCSM5D.js';
|
|
20
|
+
import '../chunk-DKXNKFKP.js';
|
|
21
|
+
import '../chunk-MJHSLODD.js';
|
|
22
|
+
import '../chunk-C3CAXQMA.js';
|
|
23
|
+
import '../chunk-BOFL7GIF.js';
|
|
6
24
|
import '../chunk-NSBPE2FW.js';
|
|
7
25
|
//# sourceMappingURL=index.js.map
|
|
8
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* Built on the `ws` package + `node:http`, both of which run under Node and Bun.
|
|
6
6
|
*/
|
|
7
7
|
import type { AgentCommand, AgentEvent, ServerTransport } from "@skaile/workspaces/types";
|
|
8
|
+
/** Moved to `@skaile/workspaces/core` (`core/bind`); re-exported so this subpath keeps it. */
|
|
9
|
+
export { needsWildcardProbe } from "@skaile/workspaces/core";
|
|
8
10
|
/**
|
|
9
11
|
* Options for {@link WebSocketServerTransport}.
|
|
10
12
|
*
|
|
@@ -41,14 +43,6 @@ export interface WebSocketServerOptions {
|
|
|
41
43
|
heartbeatMs?: number;
|
|
42
44
|
maxMissedPongs?: number;
|
|
43
45
|
}
|
|
44
|
-
/**
|
|
45
|
-
* Whether a bind to `host:port` must first probe the wildcard address (p842). Only macOS lets a
|
|
46
|
-
* specific-address bind coexist with a wildcard listener on the same port, so only there does the
|
|
47
|
-
* real bind miss it. On Linux the real bind already fails with EADDRINUSE, and a wildcard probe
|
|
48
|
-
* would wrongly refuse a port that another process holds on a different specific address.
|
|
49
|
-
* A wildcard host or an ephemeral port needs no probe: the real bind covers them.
|
|
50
|
-
*/
|
|
51
|
-
export declare function needsWildcardProbe(host: string | undefined, port: number, platform: NodeJS.Platform): boolean;
|
|
52
46
|
/**
|
|
53
47
|
* `ServerTransport` implementation backed by the `ws` package on top of a
|
|
54
48
|
* `node:http` server.
|
|
@@ -87,14 +81,6 @@ export declare class WebSocketServerTransport implements ServerTransport {
|
|
|
87
81
|
private readonly connectHandlers;
|
|
88
82
|
private readonly disconnectHandlers;
|
|
89
83
|
constructor(options: WebSocketServerOptions);
|
|
90
|
-
/**
|
|
91
|
-
* Whether another process holds `port` on every interface. A specific-address
|
|
92
|
-
* bind coexists with a wildcard listener on some platforms (macOS), so the
|
|
93
|
-
* bind alone would succeed while the other process keeps answering other
|
|
94
|
-
* clients (p842). Only EADDRINUSE counts; any other probe error (no wildcard
|
|
95
|
-
* address, no permission) leaves the decision to the real bind.
|
|
96
|
-
*/
|
|
97
|
-
private static holdsWildcard;
|
|
98
84
|
/** Start the server and accept connections. */
|
|
99
85
|
listen(): Promise<void>;
|
|
100
86
|
private handleConnection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../transport/src/ws/server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAI1F;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,CAAC,I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,IAAI,CAAS;IAC9B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAyB;IAC7C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;IACrC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAS;IAExC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAwC;IACpE,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA8C;IAC9E,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAyB;IACzD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAyB;gBAEhD,OAAO,EAAE,sBAAsB;IAU3C,+CAA+C;IACzC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAyE7B,OAAO,CAAC,gBAAgB;IAgExB;;;;OAIG;IACH,OAAO,CAAC,cAAc;IA6BtB;;;;;OAKG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAiB5B,IAAI,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAI7B,SAAS,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,GAAG,MAAM,IAAI;IAO/D,SAAS,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAO1C,YAAY,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAO7C,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,kGAAkG;IAClG,IAAI,SAAS,IAAI,MAAM,GAAG,SAAS,CAGlC;IAED,OAAO,CAAC,OAAO;CAUhB"}
|
|
@@ -1,5 +1,23 @@
|
|
|
1
|
-
export { WebSocketServerTransport
|
|
1
|
+
export { WebSocketServerTransport } from '../../chunk-LW7ZI6EQ.js';
|
|
2
2
|
import '../../chunk-32NA4TVC.js';
|
|
3
|
+
export { needsWildcardProbe } from '../../chunk-T2TQAH2X.js';
|
|
4
|
+
import '../../chunk-4GY63JU6.js';
|
|
5
|
+
import '../../chunk-KC6HGWXN.js';
|
|
6
|
+
import '../../chunk-5TBFN46Z.js';
|
|
7
|
+
import '../../chunk-5BEFNLOR.js';
|
|
8
|
+
import '../../chunk-A2ULN3KX.js';
|
|
9
|
+
import '../../chunk-2NOLF7B2.js';
|
|
10
|
+
import '../../chunk-L5VSIPQD.js';
|
|
11
|
+
import '../../chunk-IG5LZ3WU.js';
|
|
12
|
+
import '../../chunk-CKICWXMU.js';
|
|
13
|
+
import '../../chunk-RVRB27AN.js';
|
|
14
|
+
import '../../chunk-GOCWM7FN.js';
|
|
15
|
+
import '../../chunk-WDXZA7QW.js';
|
|
16
|
+
import '../../chunk-ICSCSM5D.js';
|
|
17
|
+
import '../../chunk-DKXNKFKP.js';
|
|
18
|
+
import '../../chunk-MJHSLODD.js';
|
|
19
|
+
import '../../chunk-C3CAXQMA.js';
|
|
20
|
+
import '../../chunk-BOFL7GIF.js';
|
|
3
21
|
import '../../chunk-NSBPE2FW.js';
|
|
4
22
|
//# sourceMappingURL=server.js.map
|
|
5
23
|
//# sourceMappingURL=server.js.map
|
package/dist/transport/ws.js
CHANGED
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
import '../chunk-7QBNJTTQ.js';
|
|
2
2
|
export { WebSocketClientTransport } from '../chunk-O2SYFJWP.js';
|
|
3
|
-
export { WebSocketServerTransport } from '../chunk-
|
|
3
|
+
export { WebSocketServerTransport } from '../chunk-LW7ZI6EQ.js';
|
|
4
4
|
export { BEARER_SUBPROTOCOL_PREFIX, decodeBearerFromHeader, encodeBearerSubprotocol, tokensEqual } from '../chunk-32NA4TVC.js';
|
|
5
|
+
import '../chunk-T2TQAH2X.js';
|
|
6
|
+
import '../chunk-4GY63JU6.js';
|
|
7
|
+
import '../chunk-KC6HGWXN.js';
|
|
8
|
+
import '../chunk-5TBFN46Z.js';
|
|
9
|
+
import '../chunk-5BEFNLOR.js';
|
|
10
|
+
import '../chunk-A2ULN3KX.js';
|
|
11
|
+
import '../chunk-2NOLF7B2.js';
|
|
12
|
+
import '../chunk-L5VSIPQD.js';
|
|
13
|
+
import '../chunk-IG5LZ3WU.js';
|
|
14
|
+
import '../chunk-CKICWXMU.js';
|
|
15
|
+
import '../chunk-RVRB27AN.js';
|
|
16
|
+
import '../chunk-GOCWM7FN.js';
|
|
17
|
+
import '../chunk-WDXZA7QW.js';
|
|
18
|
+
import '../chunk-ICSCSM5D.js';
|
|
19
|
+
import '../chunk-DKXNKFKP.js';
|
|
20
|
+
import '../chunk-MJHSLODD.js';
|
|
21
|
+
import '../chunk-C3CAXQMA.js';
|
|
22
|
+
import '../chunk-BOFL7GIF.js';
|
|
5
23
|
import '../chunk-NSBPE2FW.js';
|
|
6
24
|
//# sourceMappingURL=ws.js.map
|
|
7
25
|
//# sourceMappingURL=ws.js.map
|
package/dist/tui/index.js
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { resolveInstanceAgentDir, instanceSessionOverrides, bootstrapRunnerLogStore, createAgentSession, unresolvedCredentialNotices, createFinalTextFallback } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
1
|
+
import { resolveInstanceAgentDir, instanceSessionOverrides, bootstrapRunnerLogStore, createAgentSession, unresolvedCredentialNotices, createFinalTextFallback } from '../chunk-V4RV2NJF.js';
|
|
2
|
+
import '../chunk-ZNN7ONJX.js';
|
|
3
|
+
import '../chunk-JJ7LDI3S.js';
|
|
4
|
+
import '../chunk-RO2BPKXK.js';
|
|
5
|
+
import '../chunk-RD6N2D7I.js';
|
|
6
6
|
import '../chunk-R6O6YWU7.js';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-CD7SVH6W.js';
|
|
8
|
+
import '../chunk-6Z5KTFJT.js';
|
|
9
9
|
import '../chunk-4ZTPYIBE.js';
|
|
10
10
|
import '../chunk-X5YPJV4N.js';
|
|
11
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-PZ6NF5DE.js';
|
|
12
12
|
import '../chunk-O7SG5PC2.js';
|
|
13
13
|
import '../chunk-7QBNJTTQ.js';
|
|
14
14
|
import '../chunk-O2SYFJWP.js';
|
|
15
|
-
import '../chunk-
|
|
15
|
+
import '../chunk-LW7ZI6EQ.js';
|
|
16
16
|
import '../chunk-32NA4TVC.js';
|
|
17
17
|
import '../chunk-W3UDISS2.js';
|
|
18
18
|
import '../chunk-PHRNUTSG.js';
|
|
19
|
-
import '../chunk-
|
|
20
|
-
import '../chunk-
|
|
19
|
+
import '../chunk-GRKU3S5V.js';
|
|
20
|
+
import '../chunk-ODDATIII.js';
|
|
21
21
|
import '../chunk-4R6DROGN.js';
|
|
22
|
-
import '../chunk-
|
|
23
|
-
import '../chunk-
|
|
24
|
-
import '../chunk-
|
|
25
|
-
import '../chunk-V5CDPKDA.js';
|
|
22
|
+
import '../chunk-FKU57Q5Q.js';
|
|
23
|
+
import '../chunk-H6UVIKQ2.js';
|
|
24
|
+
import '../chunk-EELKR2WP.js';
|
|
26
25
|
import '../chunk-YIF2IJUA.js';
|
|
27
|
-
import { loadConnectorDeclarations } from '../chunk-
|
|
28
|
-
import '../chunk-
|
|
29
|
-
import { approvalCardOf, APPROVE_ONCE, DENY } from '../chunk-
|
|
30
|
-
import '../chunk-
|
|
26
|
+
import { loadConnectorDeclarations } from '../chunk-WJCQFNF6.js';
|
|
27
|
+
import '../chunk-L6IFN6ER.js';
|
|
28
|
+
import { approvalCardOf, APPROVE_ONCE, DENY } from '../chunk-3KMREAR2.js';
|
|
29
|
+
import '../chunk-6HK6RUFM.js';
|
|
31
30
|
import '../chunk-LOO5CB5M.js';
|
|
32
31
|
import '../chunk-AJ7EGIFR.js';
|
|
33
|
-
import '../chunk-
|
|
32
|
+
import '../chunk-L5XUEC2W.js';
|
|
34
33
|
import '../chunk-B4X2N7JQ.js';
|
|
35
34
|
import '../chunk-YROR332M.js';
|
|
36
|
-
import '../chunk-
|
|
37
|
-
import '../chunk-
|
|
35
|
+
import '../chunk-YU6AURJY.js';
|
|
36
|
+
import '../chunk-X54YR4AW.js';
|
|
38
37
|
import '../chunk-6E6PKKAD.js';
|
|
39
38
|
import '../chunk-IFGTRL2I.js';
|
|
40
|
-
import '../chunk-
|
|
41
|
-
import '../chunk-LNFKL23K.js';
|
|
42
|
-
import '../chunk-X3RMRJNR.js';
|
|
39
|
+
import '../chunk-D6UBEYQH.js';
|
|
43
40
|
import '../chunk-M3WPBTGJ.js';
|
|
44
41
|
import '../chunk-7RGTAEG6.js';
|
|
45
|
-
import '../chunk-NUELZWCF.js';
|
|
46
42
|
import '../chunk-Y56YIT6J.js';
|
|
47
|
-
import '../chunk-
|
|
48
|
-
import '../chunk-
|
|
49
|
-
import '../chunk-
|
|
43
|
+
import '../chunk-VKPBUPH7.js';
|
|
44
|
+
import '../chunk-HPVMTX6M.js';
|
|
45
|
+
import '../chunk-U2FI547Z.js';
|
|
50
46
|
import '../chunk-BFMYYNDT.js';
|
|
51
47
|
import '../chunk-3TXEJN4W.js';
|
|
52
|
-
import '../chunk-
|
|
53
|
-
import
|
|
48
|
+
import '../chunk-ISHJITXJ.js';
|
|
49
|
+
import '../chunk-LNFKL23K.js';
|
|
50
|
+
import '../chunk-X3RMRJNR.js';
|
|
51
|
+
import '../chunk-NUELZWCF.js';
|
|
52
|
+
import '../chunk-CKNIYIV2.js';
|
|
53
|
+
import { resolveSettings } from '../chunk-T2TQAH2X.js';
|
|
54
54
|
import '../chunk-4GY63JU6.js';
|
|
55
|
-
import '../chunk-
|
|
56
|
-
import { deployedBase } from '../chunk-
|
|
55
|
+
import '../chunk-KC6HGWXN.js';
|
|
56
|
+
import { deployedBase } from '../chunk-5TBFN46Z.js';
|
|
57
57
|
import { DEFAULT_DRIVER_ID } from '../chunk-5BEFNLOR.js';
|
|
58
58
|
import '../chunk-A2ULN3KX.js';
|
|
59
|
-
import { resolveSkWorkspaceConfig, resolveAgentDir } from '../chunk-
|
|
59
|
+
import { resolveSkWorkspaceConfig, resolveAgentDir } from '../chunk-2NOLF7B2.js';
|
|
60
60
|
import '../chunk-L5VSIPQD.js';
|
|
61
61
|
import { driverTargetForDriver } from '../chunk-IG5LZ3WU.js';
|
|
62
|
-
import '../chunk-
|
|
62
|
+
import '../chunk-CKICWXMU.js';
|
|
63
63
|
import '../chunk-RVRB27AN.js';
|
|
64
|
-
import '../chunk-
|
|
65
|
-
import '../chunk-
|
|
64
|
+
import '../chunk-GOCWM7FN.js';
|
|
65
|
+
import '../chunk-WDXZA7QW.js';
|
|
66
66
|
import '../chunk-ICSCSM5D.js';
|
|
67
67
|
import '../chunk-DKXNKFKP.js';
|
|
68
68
|
import '../chunk-MJHSLODD.js';
|
|
@@ -421,9 +421,14 @@ async function injectOmpExtension(resolvedDriver, projectDir, agentCwd) {
|
|
|
421
421
|
const fsAsync = await import('fs/promises');
|
|
422
422
|
const pathMod = await import('path');
|
|
423
423
|
const { WorkspacePlugin } = await import('../workspace-plugin/index.js');
|
|
424
|
-
const plugin = new WorkspacePlugin({ projectDir });
|
|
425
|
-
const src = await plugin.buildOmpExtensionSource();
|
|
426
424
|
const extPath = pathMod.default.join(agentCwd, ".omp", "extensions", "skaile.ts");
|
|
425
|
+
if (await fsAsync.default.stat(extPath).then(
|
|
426
|
+
() => true,
|
|
427
|
+
() => false
|
|
428
|
+
))
|
|
429
|
+
return void 0;
|
|
430
|
+
const plugin = new WorkspacePlugin({ projectDir });
|
|
431
|
+
const src = await plugin.buildOmpExtensionSource({ pinProjectDir: agentCwd !== projectDir });
|
|
427
432
|
await fsAsync.default.mkdir(pathMod.default.dirname(extPath), { recursive: true });
|
|
428
433
|
await fsAsync.default.writeFile(extPath, src);
|
|
429
434
|
return () => {
|
|
@@ -471,7 +476,12 @@ function printBanner(args) {
|
|
|
471
476
|
const agentName = agentDir ? basename(agentDir) : deployed.length > 0 ? `${deployed.join(", ")} (deployed)` : "default";
|
|
472
477
|
p.intro(`${pc.bold("skaile repl")} ${pc.dim(`\u2014 ${displayDriver} / ${displayModel}`)}`);
|
|
473
478
|
p.log.info(pc.dim(`Project: ${projectDir}`));
|
|
474
|
-
|
|
479
|
+
const counted = (n, noun) => `${n} ${noun}${n === 1 ? "" : "s"}`;
|
|
480
|
+
p.log.info(
|
|
481
|
+
pc.dim(
|
|
482
|
+
`Agent: ${agentName} \xB7 ${counted(skillCount, "skill")} \xB7 ${counted(connectorCount, "connector")}`
|
|
483
|
+
)
|
|
484
|
+
);
|
|
475
485
|
if (resumeSessionId) p.log.info(pc.dim(`Resumed: ${resumeSessionId.slice(0, 12)}...`));
|
|
476
486
|
p.log.info(pc.dim("Type /help for commands, Ctrl+C to quit."));
|
|
477
487
|
}
|
|
@@ -507,8 +517,10 @@ function makeStderrLog(onError) {
|
|
|
507
517
|
};
|
|
508
518
|
}
|
|
509
519
|
function unreportedErrors(held, shown) {
|
|
510
|
-
const messages = [...shown];
|
|
511
|
-
return held.filter(
|
|
520
|
+
const messages = [...shown].filter((m) => m);
|
|
521
|
+
return held.filter(
|
|
522
|
+
(line) => !messages.some((m) => line.includes(m)) && !(messages.length > 0 && line.startsWith("[error] [bridge:"))
|
|
523
|
+
);
|
|
512
524
|
}
|
|
513
525
|
async function startRepl(opts) {
|
|
514
526
|
const projectDir = resolve(opts.projectDir);
|