@skaile/workspaces 5.16.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 +57 -0
- package/dist/app-sdk/index.js +1 -1
- package/dist/{asset-feeds-BELBSJEE.js → asset-feeds-WAKBHGEV.js} +21 -21
- package/dist/{asset-feeds-BELBSJEE.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 +287 -104
- package/dist/bridge/drivers/claude-sdk.js.map +1 -1
- package/dist/bridge/drivers/codex.js +12 -12
- package/dist/bridge/drivers/continue.js +11 -11
- package/dist/bridge/drivers/echo.js +4 -4
- package/dist/bridge/drivers/gemini.js +7 -7
- package/dist/bridge/drivers/goose.js +11 -11
- package/dist/bridge/drivers/omp.js +34 -8
- 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 +16 -16
- 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/claude-sdk.d.ts +74 -20
- package/dist/bridge/src/drivers/claude-sdk.d.ts.map +1 -1
- package/dist/bridge/src/drivers/claude-self-turns.d.ts +25 -6
- package/dist/bridge/src/drivers/claude-self-turns.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/drivers/sanitize-assistant-text.d.ts +10 -0
- package/dist/bridge/src/drivers/sanitize-assistant-text.d.ts.map +1 -1
- package/dist/bridge/src/drivers/scrub-transcript.d.ts +20 -0
- package/dist/bridge/src/drivers/scrub-transcript.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-FWAJUWXQ.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-NSNM2ZXF.js → chunk-3KMREAR2.js} +45 -5
- package/dist/chunk-3KMREAR2.js.map +1 -0
- package/dist/{chunk-D54T2F54.js → chunk-5TBFN46Z.js} +4 -4
- package/dist/chunk-5TBFN46Z.js.map +1 -0
- package/dist/{chunk-6RTEUWXX.js → chunk-6HK6RUFM.js} +3 -3
- package/dist/{chunk-6RTEUWXX.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-PW3TYWOI.js → chunk-AJ7EGIFR.js} +3 -3
- package/dist/{chunk-PW3TYWOI.js.map → chunk-AJ7EGIFR.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-5CE6J4DB.js → chunk-DA2MCPFN.js} +53 -16
- package/dist/chunk-DA2MCPFN.js.map +1 -0
- package/dist/{chunk-A26MUUN7.js → chunk-DJD36HC5.js} +7 -7
- package/dist/{chunk-A26MUUN7.js.map → chunk-DJD36HC5.js.map} +1 -1
- package/dist/{chunk-Y25V2MW2.js → chunk-E5YNGE3I.js} +4 -4
- package/dist/{chunk-Y25V2MW2.js.map → chunk-E5YNGE3I.js.map} +1 -1
- package/dist/{chunk-OJHPG6HK.js → chunk-EELKR2WP.js} +45 -28
- package/dist/chunk-EELKR2WP.js.map +1 -0
- package/dist/{chunk-YIDZJHY6.js → chunk-EFLKSMCO.js} +3 -3
- package/dist/{chunk-YIDZJHY6.js.map → chunk-EFLKSMCO.js.map} +1 -1
- package/dist/{chunk-SMUIYYCH.js → chunk-EZVZDCHZ.js} +24 -15
- package/dist/chunk-EZVZDCHZ.js.map +1 -0
- package/dist/{chunk-SAGBVBY2.js → chunk-FHIMIXT3.js} +5 -5
- package/dist/{chunk-SAGBVBY2.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-J4RRH2NP.js → chunk-FV2MSBVA.js} +4 -4
- package/dist/{chunk-J4RRH2NP.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-TXGVG7VH.js → chunk-GRKU3S5V.js} +3 -3
- package/dist/{chunk-TXGVG7VH.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-A7AZ3RL5.js → chunk-JJ7LDI3S.js} +7 -7
- package/dist/{chunk-A7AZ3RL5.js.map → chunk-JJ7LDI3S.js.map} +1 -1
- package/dist/{chunk-OHNNCXMB.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-VJ2DZLDM.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-X5O56UO4.js → chunk-L2AMXONH.js} +3 -3
- package/dist/chunk-L2AMXONH.js.map +1 -0
- package/dist/{chunk-RTNWU2UD.js → chunk-L5XUEC2W.js} +4 -4
- package/dist/{chunk-RTNWU2UD.js.map → chunk-L5XUEC2W.js.map} +1 -1
- package/dist/{chunk-TKI7YDWE.js → chunk-L6IFN6ER.js} +54 -9
- 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-XGR7IDTY.js → chunk-MQIRRN76.js} +3 -3
- package/dist/{chunk-XGR7IDTY.js.map → chunk-MQIRRN76.js.map} +1 -1
- package/dist/{chunk-ISSYT5AZ.js → chunk-N5P2WBUL.js} +3 -3
- package/dist/{chunk-ISSYT5AZ.js.map → chunk-N5P2WBUL.js.map} +1 -1
- package/dist/{chunk-E634MBP6.js → chunk-ODDATIII.js} +8 -8
- package/dist/{chunk-E634MBP6.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-72KZJE3G.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-TADJCATD.js → chunk-RO2BPKXK.js} +3 -3
- package/dist/{chunk-TADJCATD.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-DADAZLFW.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-CQFVKN6S.js → chunk-V4RV2NJF.js} +240 -84
- 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-6Q7NKTDG.js → chunk-X54YR4AW.js} +2 -2
- package/dist/{chunk-6Q7NKTDG.js.map → chunk-X54YR4AW.js.map} +1 -1
- package/dist/{chunk-D5WTOVLG.js → chunk-Y56YIT6J.js} +2 -2
- package/dist/chunk-Y56YIT6J.js.map +1 -0
- package/dist/{chunk-ZIW34FGO.js → chunk-YIF2IJUA.js} +3 -3
- package/dist/{chunk-ZIW34FGO.js.map → chunk-YIF2IJUA.js.map} +1 -1
- package/dist/{chunk-HG52NGAV.js → chunk-YU6AURJY.js} +3 -3
- package/dist/{chunk-HG52NGAV.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-DQOAPR4M.js → chunk-ZNN7ONJX.js} +8 -4
- package/dist/chunk-ZNN7ONJX.js.map +1 -0
- package/dist/cli/index.js +349 -150
- 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 +22 -22
- 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-44RE2QEM.js → connectors-QL4GBMH3.js} +25 -25
- package/dist/{connectors-44RE2QEM.js.map → connectors-QL4GBMH3.js.map} +1 -1
- package/dist/connectors-shared/index.js +2 -2
- 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-R6AHZ7RV.js → ensure-sources-CEFODJCE.js} +21 -17
- package/dist/ensure-sources-CEFODJCE.js.map +1 -0
- package/dist/factory-assets/connectors/box.js +22 -22
- package/dist/factory-assets/connectors/deploy.js +22 -22
- package/dist/factory-assets/connectors/devserver.js +22 -22
- package/dist/factory-assets/connectors/flow/adapter.js +22 -22
- package/dist/factory-assets/connectors/flow/engine.js +9 -9
- package/dist/factory-assets/connectors/flow/run-flow.js +24 -24
- package/dist/factory-assets/connectors/flow.js +22 -22
- package/dist/factory-assets/connectors/git.js +22 -22
- package/dist/factory-assets/connectors/gmail.js +22 -22
- package/dist/factory-assets/connectors/googledrive.js +22 -22
- package/dist/factory-assets/connectors/local.js +22 -22
- package/dist/factory-assets/connectors/mattermost.js +22 -22
- package/dist/factory-assets/connectors/memory.js +22 -22
- package/dist/factory-assets/connectors/minio.js +22 -22
- package/dist/factory-assets/connectors/postgres.js +22 -22
- package/dist/factory-assets/connectors/s3.js +22 -22
- package/dist/factory-assets/connectors/sharepoint.js +22 -22
- package/dist/factory-assets/connectors/sqlite.js +22 -22
- package/dist/factory-assets/connectors/static-server.js +22 -22
- package/dist/factory-assets/connectors/tunnel.js +22 -22
- package/dist/factory-assets/connectors/webdav.js +22 -22
- 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 +22 -22
- package/dist/factory-assets/connectors/xstate.js +22 -22
- 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-FNQL5PI7.js → helpers-R22QNPFN.js} +21 -17
- package/dist/{helpers-FNQL5PI7.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-GHPVY42Y.js → library-publish-VBE3X2TH.js} +63 -66
- 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-YSUGNP36.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-NDSLXERO.js → project-6ETXGQWD.js} +48 -48
- package/dist/{project-NDSLXERO.js.map → project-6ETXGQWD.js.map} +1 -1
- package/dist/resolver/index.js +8 -8
- package/dist/runner/index.js +40 -40
- package/dist/runner/src/agent.d.ts.map +1 -1
- package/dist/runner/src/capability-roundtrip.d.ts.map +1 -1
- package/dist/runner/src/coalesced-restart.d.ts +41 -0
- package/dist/runner/src/coalesced-restart.d.ts.map +1 -0
- package/dist/runner/src/compaction/prompt.d.ts.map +1 -1
- package/dist/runner/src/mcp-runtime-handlers.d.ts +27 -0
- package/dist/runner/src/mcp-runtime-handlers.d.ts.map +1 -1
- package/dist/runner/src/runner-capabilities.d.ts +7 -0
- package/dist/runner/src/runner-capabilities.d.ts.map +1 -1
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/runner/src/session-capability-wiring.d.ts +2 -0
- package/dist/runner/src/session-capability-wiring.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +18 -14
- package/dist/sdk/bridge.js +16 -16
- package/dist/sdk/core.js +7 -7
- package/dist/sdk/flow.js +9 -9
- package/dist/sdk/index.js +40 -40
- package/dist/sdk/resolver.js +8 -8
- package/dist/sdk/runner.js +40 -40
- package/dist/sdk/session.js +2 -2
- 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/sdk/types.js +1 -1
- package/dist/{serve-preflight-ON2LS3SD.js → serve-preflight-BTGTZUDN.js} +9 -9
- package/dist/{serve-preflight-ON2LS3SD.js.map → serve-preflight-BTGTZUDN.js.map} +1 -1
- package/dist/session/index.js +2 -2
- package/dist/{setup-MFPEQS2I.js → setup-JQDTYPSD.js} +30 -26
- 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-4QVRD5NV.js → source-FPLHY3DP.js} +50 -50
- package/dist/{source-4QVRD5NV.js.map → source-FPLHY3DP.js.map} +1 -1
- package/dist/{source-manifest-publish-ZIO24GUM.js → source-manifest-publish-LY4H63VA.js} +52 -52
- package/dist/{source-manifest-publish-ZIO24GUM.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 +57 -45
- 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/index.js +1 -1
- package/dist/types/manifests.js +1 -1
- package/dist/types/src/events.d.ts +7 -4
- package/dist/types/src/events.d.ts.map +1 -1
- package/dist/types/src/manifests/index.d.ts +1 -1
- package/dist/types/src/manifests/index.d.ts.map +1 -1
- package/dist/types/src/manifests/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 +29 -29
- 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-5CE6J4DB.js.map +0 -1
- package/dist/chunk-6GSE63K2.js.map +0 -1
- package/dist/chunk-72KZJE3G.js.map +0 -1
- package/dist/chunk-CQFVKN6S.js.map +0 -1
- package/dist/chunk-D3PU3C6F.js.map +0 -1
- package/dist/chunk-D54T2F54.js.map +0 -1
- package/dist/chunk-D5WTOVLG.js.map +0 -1
- package/dist/chunk-DADAZLFW.js.map +0 -1
- package/dist/chunk-DQOAPR4M.js.map +0 -1
- package/dist/chunk-ES6ARJPQ.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-FWAJUWXQ.js.map +0 -1
- package/dist/chunk-H7R7R5BN.js.map +0 -1
- package/dist/chunk-HUKUYWBJ.js.map +0 -1
- package/dist/chunk-L6UMSKDF.js.map +0 -1
- package/dist/chunk-NSNM2ZXF.js.map +0 -1
- package/dist/chunk-OHNNCXMB.js.map +0 -1
- package/dist/chunk-OJHPG6HK.js.map +0 -1
- package/dist/chunk-PIC23DDE.js.map +0 -1
- package/dist/chunk-SMUIYYCH.js.map +0 -1
- package/dist/chunk-TKI7YDWE.js.map +0 -1
- package/dist/chunk-VJ2DZLDM.js.map +0 -1
- package/dist/chunk-X5O56UO4.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/ensure-sources-R6AHZ7RV.js.map +0 -1
- package/dist/library-publish-GHPVY42Y.js.map +0 -1
- package/dist/open-library-YSUGNP36.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-MFPEQS2I.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,62 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1092](https://github.com/skaile-ai/workspaces/pull/1092) [`611bf2b`](https://github.com/skaile-ai/workspaces/commit/611bf2bb36f146f9959053bdbccc73fce61b5dba) Thanks [@mortegro](https://github.com/mortegro)! - Authoring: one verdict for secrets, symlinks, flows and kinds (5.16.0 critique, p1040, p1041, p411, p1042, p135, p871, p873, p1193, p1194, p926, p915, p486, p743, p875).
|
|
8
|
+
|
|
9
|
+
- `add` and `install` withhold every file the publish plan calls a secret (`.npmrc`, `.netrc`, `.envrc`, `credentials`, `token.json`, private keys, certificates, `.pypirc`, `.htpasswd`, `secrets.yaml`, `service-account.json`, `terraform.tfstate`, not only `.env*`) and warn once per file. The list is `isSecretFileName`, shared with the publish plan and the `.gitignore` scaffold. `onEnvFile` / `listEnvFiles` are now `onSecretFile` / `listSecretFiles`.
|
|
10
|
+
- A symlink in an asset folder refuses the deploy (`add`, `install`, `update`: exit 1, `Nothing was added`), as `library index`, `validate` and the publish plan refuse the library. The `! skipped symlink` line and `DeployOptions.onSkippedSymlink` are gone.
|
|
11
|
+
- A hand-written `RULESET.md` or `PERSONA.md` is a supported library asset: `library index` writes it to the manifest, `validate` checks it, `show`, `asset show`, `add` and an agent's `composes:` resolve it.
|
|
12
|
+
- `metadata.requires` of a SKILL.md and the `items[].ref` of a preset are checked with the one ref rule `dependencies:` uses, in `validate`, `library index` and the publish plan; `add` says `invalid publisher "Bad!"` instead of `publisher required`.
|
|
13
|
+
- `asset show` prints the same not-semver cause as `show` and `info` for an asset `library index` skipped; the 15-digit hint covers a numeric pre-release identifier too.
|
|
14
|
+
- `library index` drops the old entry of a flow whose `id:` was renamed but whose file was not; the message names the real rule (a deployed flow is loaded as `<id>/<id>.flow.yaml`).
|
|
15
|
+
- `validate` and the publish plan fail an asset directory the manifest does not list; `validate versions` in a directory with no asset exits 1; `validate` warns on `reads_from:` / `writes_to:` (no release reads them; they left the skill schema).
|
|
16
|
+
- `add`, `install` and `update` name a placeholder `description:` next to a placeholder body (`description and body are still the scaffold placeholder`).
|
|
17
|
+
- `library init --path` refuses a folder with deployed copies (`.claude/`, `.skaile/`, `.codex/`, `.omp/`) also without a `skaile.yaml` unless `--force`, and refuses a tree with an asset file that does not parse before anything is registered.
|
|
18
|
+
- A symlink in an asset folder is refused before the first copy is written and before `install` removes a stale asset, for every kind including `agent` (an agent with a symlink used to deploy with its source cache dropped). A credential file that an older release deployed is listed as extra by `check`, `doctor` and `diff` and deleted by the next `install` or `update` (`.env*` stays). `validate` and the publish plan skip deployed copies under `.claude/`, `.codex/`, `.omp/`, `.skaile/` and `dist/`; `library init --path` refuses only the deploy folders, not `settings.local.json` or `.omp/plans`; `validate versions` says `no versioned asset` for a library without versioned kinds.
|
|
19
|
+
|
|
20
|
+
- [#1092](https://github.com/skaile-ai/workspaces/pull/1092) [`611bf2b`](https://github.com/skaile-ai/workspaces/commit/611bf2bb36f146f9959053bdbccc73fce61b5dba) Thanks [@mortegro](https://github.com/mortegro)! - Harnesses: the omp extension file that `integration install --driver omp` writes holds no host path and is committed, not gitignored (omp skips an ignored extension; install removes the old ignore line and says when another rule still ignores it); `integration uninstall --driver codex|all` removes the trust entry install added to the user's codex config; a `--model <provider>/<model>` whose provider is not in the registry is refused by `run` and `repl` (also with `--dry-run`); a driver failure points at a real session id or at nothing, never at a literal `<session-id>`; a plugin that fails to install prints one `!` line with the installer's last error; the codex delegate warning is printed when files are written, not on every install; `config unset <driver|model> [--global]` exists and the `config set driver` warning in a project that names another harness names it; the omp home sweep removes the `standalone-*` homes of older releases; `integration install --driver claude-code --full` copies the installed skills into the plugin; a REPL failed turn is printed once, not again as the driver's own record (p345, p598, p1110, p1111, p1112, p1113, p1114, p1115, p1151, p1190).
|
|
21
|
+
|
|
22
|
+
- [#1092](https://github.com/skaile-ai/workspaces/pull/1092) [`611bf2b`](https://github.com/skaile-ai/workspaces/commit/611bf2bb36f146f9959053bdbccc73fce61b5dba) Thanks [@mortegro](https://github.com/mortegro)! - `add`, `remove` and `source` no longer touch what the project does not own, and the status commands say more. `add --force` replaces a symlink at an agent file (claude-code, codex, omp) instead of writing through it into the file it points at (p1060). A dangling symlink where a locked asset should be is drift for `check`, `doctor`, `outdated` and `diff` (p1061). `source remove` refuses while a locked asset comes from the source (`--force` overrides), and `check`, `doctor` and `outdated` report an asset whose source is gone or now publishes it under another publisher (p1062). `source add --publisher` on a source registered without one is guarded like a declared publisher (p722). `remove` with the library gone prunes the dependencies the lock recorded, `#range` forms included (p95). `add` refuses a flow the flow engine cannot parse (p1192). `install` keeps an agent that an `agents.<id>.ref` or `agent.definition` binds (p982). The `check` line for an agent binding whose library is gone reads as one sentence (p1152).
|
|
23
|
+
|
|
24
|
+
- [#1092](https://github.com/skaile-ai/workspaces/pull/1092) [`611bf2b`](https://github.com/skaile-ai/workspaces/commit/611bf2bb36f146f9959053bdbccc73fce61b5dba) Thanks [@mortegro](https://github.com/mortegro)! - `mcp-server` assets of the store are project state. The payload under `.skaile/assets/mcp-server/<name>/` and the entry skaile wrote to `.mcp.json` count as files of the locked asset: a deleted, edited or extra file, or a missing or changed entry, is drift for `check`, `doctor`, `outdated`, `diff` and `verify`, and `install --locked` writes them back and prints `Restored …` (p1130). `skaile diff mcp-server:<ref>` shows the payload and entry differences instead of `not deployed` (p1132). `verify` of a source asset compares the store's hash with the lock's hash and ignores the commit: the same bytes at another commit are `verified` (p1131). A server skaile does not write to `.mcp.json` shows as `skipped: <reason>` in `list` and `info` and as a `!` line in `check` and `doctor` (p1133). `add` names every required `MCP.md` field nothing sets (`SQL_MCP_DSN`) and says to set it with an `mcp_servers` entry in `skaile.yaml`; `doctor` and `check` keep listing it (p1134). A hand-written `mcp_servers` entry of `skaile.yaml` is configuration, not a locked asset, and is never drift.
|
|
25
|
+
|
|
26
|
+
- [#1092](https://github.com/skaile-ai/workspaces/pull/1092) [`611bf2b`](https://github.com/skaile-ai/workspaces/commit/611bf2bb36f146f9959053bdbccc73fce61b5dba) Thanks [@mortegro](https://github.com/mortegro)! - Serve and mounts: the model endpoint port uses the same bind check as the websocket port (a port held on every interface is refused), a mount watcher does not follow a symlink out of its mount, `@xstate/store` is looked up in the project first and its miss names the add command, a registry no longer replaces the user's own omp default model that only their `models.yml` serves, `serve` refuses an empty `--host` and a padded `--port`, and a `mountPath` that is a symlink leaving the project fails `validate` and is not mounted (p833, p1006, p1170, p1171, p1172, p1173).
|
|
27
|
+
|
|
28
|
+
- [#1092](https://github.com/skaile-ai/workspaces/pull/1092) [`611bf2b`](https://github.com/skaile-ai/workspaces/commit/611bf2bb36f146f9959053bdbccc73fce61b5dba) Thanks [@mortegro](https://github.com/mortegro)! - `install` and `install --locked` keep a locked library asset at its locked version when the library holds a newer one and the deployed copy is intact; only `update` moves a lock. A library re-registered under another name is found by publisher and content hash, and `update`/`install` re-lock the new name for git libraries too. `check`, `doctor`, `outdated` and `diff` print one line for an invalid library asset version. `validate .` checks publisher slugs in `skaile.yaml`. A never-held `#pin` names the pin in `skaile.yaml`. `add` prints one collision summary (`--verbose` lists each). `install --locked` fails on an unresolvable agent instance ref without a lock. `remove` of the last asset of a repo drops its `sources:` row.
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- [#1092](https://github.com/skaile-ai/workspaces/pull/1092) [`611bf2b`](https://github.com/skaile-ai/workspaces/commit/611bf2bb36f146f9959053bdbccc73fce61b5dba) Thanks [@mortegro](https://github.com/mortegro)! - Docs match 5.16 behaviour: `sources[]` is `{url, pin?, publisher?}` (also in the `repositories:` migration error text), `run` refuses a one-word prompt that matches no flow (quote more words), `skaile session logs` is named for the log database, the `skaile-ai` publisher in `asset` examples, and the other doc defects of the 5.16.0 critique. `WORKSPACE_IDEAS.md` moved to `docs/superpowers/` so the docs site no longer builds it.
|
|
33
|
+
|
|
34
|
+
## 5.17.0
|
|
35
|
+
|
|
36
|
+
### Minor Changes
|
|
37
|
+
|
|
38
|
+
- [#1087](https://github.com/skaile-ai/workspaces/pull/1087) [`204fd67`](https://github.com/skaile-ai/workspaces/commit/204fd6723a9a36fd1784fc12b6cfa8b63ca6cdcf) Thanks [@Frozen666](https://github.com/Frozen666)! - `runner.detach_instance` now takes `kind: "mcp-server"`. It removes the server's tools from the live session, drops its `mcp:<name>` credential, deletes its materialized asset under `.skaile/assets/mcp-server/<name>/`, and forgets it so a later session rebuild does not bring it back, then emits `resources_available`. The reply is `{ ok: true, id, removed, live }`: `removed: false` means no server of that name was connected, and `live: false` means the driver bakes its tools and a restart was queued. Tool-change driver restarts are now coalesced: a burst of detaches (or attaches), one call per server, restarts the driver once ([#1069](https://github.com/skaile-ai/workspaces/issues/1069)).
|
|
39
|
+
|
|
40
|
+
### Patch Changes
|
|
41
|
+
|
|
42
|
+
- [#1090](https://github.com/skaile-ai/workspaces/pull/1090) [`b1dce19`](https://github.com/skaile-ai/workspaces/commit/b1dce1949d47593afa24e72f6c508756d6cb366a) Thanks [@peteralbert](https://github.com/peteralbert)! - Claude SDK driver: the capability MCP server now advertises the properties and descriptions of array items and nested objects, instead of `items: {}` and an opaque record. Agents can see the field names a capability expects inside a list (for example the node and edge fields of `platform.kg_write`, skaile-ai/platform#8715). Nested objects pass unknown keys through, so the registry's own validation still sees and refuses them; a nested key the Claude API would reject keeps that subtree opaque.
|
|
43
|
+
|
|
44
|
+
- [#1091](https://github.com/skaile-ai/workspaces/pull/1091) [`b03ddba`](https://github.com/skaile-ai/workspaces/commit/b03ddba92a3aa044d03319b8c2f0eef4b89c99ce) Thanks [@Frozen666](https://github.com/Frozen666)! - claude-sdk driver: a reply with an unclosed `[` is no longer cut off at that `[` ([#1039](https://github.com/skaile-ai/workspaces/issues/1039)).
|
|
45
|
+
|
|
46
|
+
The streaming sanitizer treated any `[` with no later `]` as the start of a leaked marker and held back everything after it, and nothing sent the held-back part when the message ended, so the stored and displayed reply stopped just before the `[` (for example a LogsQL range `_time:[2026-10-13T20:30:00Z, now)` or a half-open interval `[0, 1)`). The driver now sends any held-back tail as a final text delta before `message_start`, and the sanitizer holds back only what can still become a marker (a bare `[`, a tag-name prefix, a namespace being written, or a `[User]` label waiting for its colon), so an ordinary `[` streams live.
|
|
47
|
+
|
|
48
|
+
- [#1086](https://github.com/skaile-ai/workspaces/pull/1086) [`b14e6ea`](https://github.com/skaile-ai/workspaces/commit/b14e6ea772f8551f9eabf2dfbaa7024a643b1e75) Thanks [@Frozen666](https://github.com/Frozen666)! - runner: the compaction summary is written in the conversation's language and records that language ([#1070](https://github.com/skaile-ai/workspaces/issues/1070)).
|
|
49
|
+
|
|
50
|
+
The default compaction prompt had no rule about language, so the summary that a resumed session starts from came out in English even when the user wrote German, and agents then drifted into English after a resume (skaile-ai/platform#7804). The prompt now asks for the summary in the language the user writes in, also when merging an English previous summary forward, keeps paths, code and quotes untranslated, and adds an always-present "Conversation Language" section to the summary. Agent-supplied compaction prompts are unchanged.
|
|
51
|
+
|
|
52
|
+
- [#1083](https://github.com/skaile-ai/workspaces/pull/1083) [`2dd0486`](https://github.com/skaile-ai/workspaces/commit/2dd0486410798807cc3c9163bcea761a98204f3b) Thanks [@Frozen666](https://github.com/Frozen666)! - claude-sdk driver: the first result after a `--resume` respawn books only its own cost and per-model usage ([#1044](https://github.com/skaile-ai/workspaces/issues/1044)).
|
|
53
|
+
|
|
54
|
+
On `--resume` the Claude Code CLI restores the session's run-cumulative `total_cost_usd` and `modelUsage` from the transcript's last `cost-state` entry, so the first `result` of a resumed spawn restated everything booked before. The driver diffed it against zero and emitted the restored totals again as the turn's `costUsd` and `modelUsage`, which inflated usage ledgers after every max-turns recycle and every wake with native resume. The restored totals are now the baseline: a respawn that resumes the same session in the same driver keeps the last booked totals, and a new driver that resumes a session (a wake) reads the `cost-state` entry during the preventive transcript scrub. If the respawned CLI restored an older stamp than was booked (the CLI writes `cost-state` only at exit), the first result is diffed against that stamp instead. Rows written before this fix are not corrected.
|
|
55
|
+
|
|
56
|
+
- [#1088](https://github.com/skaile-ai/workspaces/pull/1088) [`53d960b`](https://github.com/skaile-ai/workspaces/commit/53d960b301bab45ffbb8090cab1fc1280fa88864) Thanks [@peteralbert](https://github.com/peteralbert)! - claude-sdk driver: a self-started turn no longer reads "origin unknown" on the platform in two cases ([#1085](https://github.com/skaile-ai/workspaces/issues/1085)).
|
|
57
|
+
|
|
58
|
+
A wake's `self_turn_started.taskIds` now lists only tasks the runner announced with `background_task_started`. Before, a background subagent's own foreground tool calls (and any shell it backgrounded between turns) were listed too; the host never saw those start, so it could not vouch for the wake. And a prompt pushed while a self-started turn runs now joins that turn only once the CLI stamps the prompt's uuid on the turn's output. If the wake ends without taking it, the wake's `finished` carries `selfStarted: true` and the prompted turn ends on the result of the turn that answers it, instead of the answering turn being announced as a wake with no tasks. Prompts now carry a uuid; a CLI that does not stamp consumed prompts keeps the old behaviour.
|
|
59
|
+
|
|
3
60
|
## 5.16.0
|
|
4
61
|
|
|
5
62
|
### Minor Changes
|
package/dist/app-sdk/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { storeNotInstallableReason } from './chunk-
|
|
2
|
-
import { getKnownKinds } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-X3RMRJNR.js';
|
|
1
|
+
import { storeNotInstallableReason } from './chunk-PUK7TQT4.js';
|
|
2
|
+
import { getKnownKinds } from './chunk-WJLYL6RY.js';
|
|
3
|
+
import './chunk-D6UBEYQH.js';
|
|
5
4
|
import './chunk-7RGTAEG6.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-SXWGLW23.js';
|
|
5
|
+
import './chunk-VKPBUPH7.js';
|
|
6
|
+
import './chunk-HPVMTX6M.js';
|
|
7
|
+
import './chunk-U2FI547Z.js';
|
|
10
8
|
import './chunk-BFMYYNDT.js';
|
|
11
9
|
import './chunk-3TXEJN4W.js';
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
10
|
+
import './chunk-X3RMRJNR.js';
|
|
11
|
+
import './chunk-NUELZWCF.js';
|
|
12
|
+
import './chunk-CKNIYIV2.js';
|
|
13
|
+
import './chunk-T2TQAH2X.js';
|
|
14
14
|
import './chunk-4GY63JU6.js';
|
|
15
|
-
import { factoryAssetRoots } from './chunk-
|
|
16
|
-
import './chunk-
|
|
15
|
+
import { factoryAssetRoots } from './chunk-KC6HGWXN.js';
|
|
16
|
+
import './chunk-5TBFN46Z.js';
|
|
17
17
|
import './chunk-5BEFNLOR.js';
|
|
18
18
|
import './chunk-A2ULN3KX.js';
|
|
19
|
-
import { scanRepo } from './chunk-
|
|
19
|
+
import { scanRepo } from './chunk-2NOLF7B2.js';
|
|
20
20
|
import './chunk-L5VSIPQD.js';
|
|
21
21
|
import './chunk-IG5LZ3WU.js';
|
|
22
|
-
import './chunk-
|
|
22
|
+
import './chunk-CKICWXMU.js';
|
|
23
23
|
import './chunk-RVRB27AN.js';
|
|
24
|
-
import { parseRequires } from './chunk-
|
|
25
|
-
import './chunk-
|
|
24
|
+
import { parseRequires } from './chunk-GOCWM7FN.js';
|
|
25
|
+
import './chunk-WDXZA7QW.js';
|
|
26
26
|
import './chunk-ICSCSM5D.js';
|
|
27
27
|
import './chunk-DKXNKFKP.js';
|
|
28
28
|
import './chunk-MJHSLODD.js';
|
|
@@ -52,8 +52,8 @@ function libraryEntryOf(asset) {
|
|
|
52
52
|
async function libraryAssets() {
|
|
53
53
|
const notes = [];
|
|
54
54
|
try {
|
|
55
|
-
const { openLibraryManager } = await import('./open-library-
|
|
56
|
-
const { getKindRegistry } = await import('./open-registry-
|
|
55
|
+
const { openLibraryManager } = await import('./open-library-JP5TC5UX.js');
|
|
56
|
+
const { getKindRegistry } = await import('./open-registry-RBELV5YH.js');
|
|
57
57
|
const { scanAuthoringLibraries } = await import('./library/index.js');
|
|
58
58
|
const { library: index, close } = await openLibraryManager();
|
|
59
59
|
try {
|
|
@@ -86,7 +86,7 @@ async function libraryAssets() {
|
|
|
86
86
|
async function storeAssets(projectDir) {
|
|
87
87
|
const notes = [];
|
|
88
88
|
try {
|
|
89
|
-
const { resolveCatalogSource } = await import('./open-library-
|
|
89
|
+
const { resolveCatalogSource } = await import('./open-library-JP5TC5UX.js');
|
|
90
90
|
const { source, close } = await resolveCatalogSource({ projectDir });
|
|
91
91
|
try {
|
|
92
92
|
const assets = (await source.listAssets()).filter(
|
|
@@ -167,5 +167,5 @@ async function gatherAssetFeeds(am, projectDir) {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
export { gatherAssetFeeds };
|
|
170
|
-
//# sourceMappingURL=asset-feeds-
|
|
171
|
-
//# sourceMappingURL=asset-fe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,gBAAA,CACpB,IACA,UAAA,EAC0B;AAC1B,EAAA,MAAM,CAAC,IAAA,EAAM,KAAK,CAAA,GAAI,MAAM,OAAA,CAAQ,GAAA,CAAI,CAAC,aAAA,EAAc,EAAG,WAAA,CAAY,UAAU,CAAC,CAAC,CAAA;AAClF,EAAA,MAAM,OAAA,GAAU,MAAM,aAAA,EAAc;AACpC,EAAA,MAAM,GAAA,GAAM,MAAM,YAAA,CAAa,EAAE,CAAA;AACjC,EAAA,OAAO;AAAA,IACL,OAAA,EAAS;AAAA,MACP,GAAG,GAAA;AAAA,MACH,GAAG,IAAA,CAAK,OAAA;AAAA,MACR,GAAG,GAAA,CAAI,SAAA,EAAW,OAAA,CAAQ,OAAO,CAAA;AAAA,MACjC,GAAG,GAAA,CAAI,OAAA,EAAS,KAAA,CAAM,OAAO;AAAA,KAC/B;AAAA,IACA,KAAA,EAAO,CAAC,GAAG,IAAA,CAAK,KAAA,EAAO,GAAG,KAAA,CAAM,KAAA,EAAO,GAAG,OAAA,CAAQ,KAAK;AAAA,GACzD;AACF","file":"asset-feeds-BELBSJEE.js","sourcesContent":["/**\n * asset-feeds.ts — gather installable assets from every feed the manage TUI\n * surfaces.\n *\n * Four feeds, normalized into `CatalogEntry`:\n * - **Project sources** — `skaile.yaml` `sources:` entries (scanned via\n * `AssetManager.search()`; the new `sources:` field is merged into the\n * legacy repositories map in `AssetManager.loadConfig`).\n * - **Local libraries** — user authoring places from `LocalIndex`, read through\n * `scanAuthoringLibraries` (`@skaile/workspaces/library`): the same scan\n * `library index` / `search --local` use, so publishers and refs match them\n * (per-asset `publisher_overrides` honoured), `dev_paths` assets are left out,\n * and a library that fails to scan becomes one note while the rest stay listed.\n * - **Factory assets** — the bundled first-party `factory-assets` tree\n * (`factoryAssetRoots()`), scanned from disk. Always present; no network.\n * - **Remote store** — the configured catalog source when `catalog.url` is\n * not `local`. Failures are non-fatal — they surface as notes.\n */\n\nimport * as path from \"node:path\";\nimport {\n type AssetKind,\n type CatalogEntry,\n factoryAssetRoots,\n parseRequires,\n scanRepo,\n} from \"@skaile/workspaces/core\";\nimport { getKnownKinds } from \"./open-registry.ts\";\nimport { storeNotInstallableReason } from \"./store-addable.ts\";\nimport type { DiscoveredAsset } from \"@skaile/workspaces/discovery\";\n\n/** One non-fatal note returned to the caller for surfacing in the UI. */\nexport interface FeedNote {\n feed: \"sources\" | \"libraries\" | \"store\" | \"factory\";\n message: string;\n}\n\n/**\n * Which feed an asset came from. This is the top-level grouping axis in the\n * manage TUI (\"where is this skill coming from?\") and is intentionally distinct\n * from `publisher` (asset-intrinsic identity): the same publisher can legitimately\n * appear under more than one origin (e.g. a github repo you added as a `source`\n * that is also listed in the remote `store`).\n */\nexport type AssetOrigin = \"source\" | \"library\" | \"factory\" | \"store\";\n\n/** A catalog entry tagged with the feed it was gathered from. */\nexport interface OriginEntry {\n origin: AssetOrigin;\n entry: CatalogEntry;\n /**\n * Second-level grouping label for the manage tree. Defaults (when unset) to the\n * entry's `publisher`; the source feed sets it to the source's short repo name\n * so the Sources band groups by source — \"which repo did this come from\" — not\n * by the asset-intrinsic publisher.\n */\n group?: string;\n}\n\nexport interface AssetFeedResult {\n entries: OriginEntry[];\n notes: FeedNote[];\n}\n\n/**\n * Map one discovered library asset to the `CatalogEntry` the manage rows read.\n * `publisher` is the bare per-asset publisher (what `search --local` prints),\n * `source` the manifest path. `repo` is left unset: it only feeds the Sources-tree\n * org grouping. `requires` / `dependencies` come from the manifest the way the\n * scanner fills them — string `requires:` refs parsed to `{kind, name}`, a bundle's\n * string `dependencies:` list verbatim.\n */\nfunction libraryEntryOf(asset: DiscoveredAsset): CatalogEntry {\n const { manifest } = asset;\n const nested = (manifest.metadata as Record<string, unknown> | undefined)?.requires;\n const rawRequires = manifest.requires ?? nested;\n const requireRefs =\n typeof rawRequires === \"string\"\n ? rawRequires\n : Array.isArray(rawRequires)\n ? rawRequires.filter((r): r is string => typeof r === \"string\")\n : undefined;\n const deps = manifest.dependencies;\n return {\n name: asset.name,\n kind: asset.kind as AssetKind,\n description: typeof manifest.description === \"string\" ? manifest.description : \"\",\n source: asset.manifestPath,\n publisher: asset.publisher,\n ...(asset.plugin ? { plugin: asset.plugin } : {}),\n version: asset.version,\n requires: requireRefs === undefined ? [] : parseRequires({ requires: requireRefs }),\n dependencies:\n asset.kind === \"bundle\" && Array.isArray(deps)\n ? deps.filter((d): d is string => typeof d === \"string\" && d.length > 0)\n : [],\n };\n}\n\n/**\n * Pull assets from local libraries (the authoring places under\n * `~/.skaile/libraries/<name>/`, not the `~/.skaile/cache/sources/` cache) through\n * `scanAuthoringLibraries`, grouped under the bare library name\n * (`group: <name>`) so the manage TUI shows a clean `<name>` band — no\n * `library:` prefix (mirrors the source feed). Plugin grouping (`entry.plugin`)\n * comes from `DiscoveredAsset.plugin`. A library whose scan fails becomes one\n * `FeedNote`; the outer `catch` covers only opening the index.\n */\nasync function libraryAssets(): Promise<{\n entries: OriginEntry[];\n notes: FeedNote[];\n}> {\n const notes: FeedNote[] = [];\n try {\n // Lazy: the library subpath pulls in SQLite, which the other feeds never need.\n const { openLibraryManager } = await import(\"./open-library.ts\");\n const { getKindRegistry } = await import(\"./open-registry.ts\");\n const { scanAuthoringLibraries } = await import(\"@skaile/workspaces/library\");\n const { library: index, close } = await openLibraryManager();\n try {\n const entries: OriginEntry[] = [];\n for (const scan of await scanAuthoringLibraries(index, getKindRegistry())) {\n if (scan.error !== undefined) {\n notes.push({ feed: \"libraries\", message: `${scan.library.name}: ${scan.error}` });\n continue;\n }\n for (const asset of scan.assets) {\n entries.push({\n origin: \"library\",\n entry: libraryEntryOf(asset),\n group: scan.library.name,\n });\n }\n }\n return { entries, notes };\n } finally {\n close();\n }\n } catch (err) {\n notes.push({\n feed: \"libraries\",\n message: err instanceof Error ? err.message : String(err),\n });\n return { entries: [], notes };\n }\n}\n\n/**\n * Pull a (best-effort) snapshot of the connected remote store catalog.\n *\n * - Returns no entries when the resolved catalog is local-only or the host\n * is unreachable (the failure becomes a note, not an exception).\n * - Maps `CatalogAsset` → `CatalogEntry`, carrying `publisher`, `repo`, and\n * `category` straight through and using `source = \"store://<id>\"`; per-file\n * `source` paths are not available for remote assets so the canonical ref is\n * a stable placeholder.\n */\nasync function storeAssets(projectDir: string): Promise<{\n entries: CatalogEntry[];\n notes: FeedNote[];\n}> {\n const notes: FeedNote[] = [];\n try {\n const { resolveCatalogSource } = await import(\"./open-library.ts\");\n const { source, close } = await resolveCatalogSource({ projectDir });\n try {\n // The store lists only what `skaile add` can install (see store-addable.ts).\n const assets = (await source.listAssets()).filter(\n (a) => storeNotInstallableReason(a) === undefined,\n );\n const entries: CatalogEntry[] = assets.map((a) => ({\n name: a.name,\n kind: (a.kind as AssetKind) ?? \"skill\",\n description: a.description ?? \"\",\n source: `store://${a.id}`,\n publisher: a.publisher,\n repo: a.repo,\n plugin: a.plugin,\n category: a.category,\n version: a.version,\n requires: [],\n dependencies: [],\n }));\n return { entries, notes };\n } finally {\n close();\n }\n } catch (err) {\n const msg = err instanceof Error ? err.message : String(err);\n // Local-only catalog throws a recognizable message — silence it; absence\n // is the user's choice, not an error.\n if (!/local/i.test(msg)) {\n notes.push({ feed: \"store\", message: msg });\n }\n return { entries: [], notes };\n }\n}\n\n/** The slice of `AssetManager` the source feed needs (kept narrow for tests). */\ninterface AssetManagerLike {\n search: () => Promise<CatalogEntry[]>;\n searchRepoRoots: () => { repoName: string; root: string }[];\n}\n\n/**\n * Project-source feed: leans on `AssetManager.search()`, which merges\n * `skaile.yaml`'s `sources:` field into the repositories map. Plugin grouping\n * (`entry.plugin`) is stamped by the scanner, so entries pass through as-is.\n */\nasync function sourceAssets(am: AssetManagerLike): Promise<OriginEntry[]> {\n // The bundled factory tree is injected into the repositories map as an implicit\n // source, so `am.search()` returns it too. It has its own `factory` origin band,\n // so drop it here — otherwise the same first-party skills list twice under Sources.\n const factoryPrefixes = factoryAssetRoots().map((r) => (r.endsWith(path.sep) ? r : r + path.sep));\n const isFactoryPath = (p: string) =>\n factoryPrefixes.some((fp) => p === fp.slice(0, -1) || p.startsWith(fp));\n\n const all = (await am.search()).filter((e) => !isFactoryPath(e.source));\n const entries: OriginEntry[] = [];\n // Group each source's entries under the source node (its short repo name), not\n // the publisher: under Sources the navigational question is \"which repo did\n // this come from\". Each entry's `source` (absolute manifest path) lives under\n // exactly one declared root, so group by prefix. The cache slug is\n // URL-keyed `github.com/<org>/<repo>` — take the trailing segment.\n for (const { repoName, root } of am.searchRepoRoots()) {\n if (isFactoryPath(root)) continue;\n const prefix = root.endsWith(path.sep) ? root : root + path.sep;\n const owned = all.filter((e) => e.source === root || e.source.startsWith(prefix));\n if (owned.length === 0) continue;\n const sourceName = repoName.split(\"/\").pop() || repoName;\n for (const entry of owned) entries.push({ origin: \"source\", entry, group: sourceName });\n }\n return entries;\n}\n\n/**\n * Factory-asset feed: scan the bundled first-party `factory-assets` tree(s)\n * resolved by `factoryAssetRoots()` (the `SKAILE_FACTORY_ASSETS_DIR` override\n * layer ahead of the bundled tree). Local disk only, no network — the entries are\n * the built-in skills / connectors / bundles that ship with `@skaile/workspaces`.\n * `factoryAssetRoots()` already dedupes, so the env override pointing at the\n * bundled dir collapses to one root.\n */\nasync function factoryAssets(): Promise<{\n entries: CatalogEntry[];\n notes: FeedNote[];\n}> {\n const notes: FeedNote[] = [];\n try {\n const entries: CatalogEntry[] = [];\n for (const root of factoryAssetRoots()) {\n entries.push(...(await scanRepo(root, \"skaile-factory\", { knownKinds: getKnownKinds() })));\n }\n return { entries, notes };\n } catch (err) {\n notes.push({\n feed: \"factory\",\n message: err instanceof Error ? err.message : String(err),\n });\n return { entries: [], notes };\n }\n}\n\n/** Tag a flat entry list with a single origin. */\nfunction tag(origin: AssetOrigin, entries: CatalogEntry[]): OriginEntry[] {\n return entries.map((entry) => ({ origin, entry }));\n}\n\n/**\n * Run all feeds and return a single normalized result.\n *\n * Feeds run in parallel where possible — the store fetch is the slow one\n * (one HTTP call) and is fired alongside the local library walk. The factory\n * scan is local disk only, so it runs inline.\n */\nexport async function gatherAssetFeeds(\n am: AssetManagerLike,\n projectDir: string,\n): Promise<AssetFeedResult> {\n const [libs, store] = await Promise.all([libraryAssets(), storeAssets(projectDir)]);\n const factory = await factoryAssets();\n const src = await sourceAssets(am);\n return {\n entries: [\n ...src,\n ...libs.entries,\n ...tag(\"factory\", factory.entries),\n ...tag(\"store\", store.entries),\n ],\n notes: [...libs.notes, ...store.notes, ...factory.notes],\n };\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../cli/src/asset-feeds.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEA,SAAS,eAAe,KAAA,EAAsC;AAC5D,EAAA,MAAM,EAAE,UAAS,GAAI,KAAA;AACrB,EAAA,MAAM,MAAA,GAAU,SAAS,QAAA,EAAkD,QAAA;AAC3E,EAAA,MAAM,WAAA,GAAc,SAAS,QAAA,IAAY,MAAA;AACzC,EAAA,MAAM,cACJ,OAAO,WAAA,KAAgB,QAAA,GACnB,WAAA,GACA,MAAM,OAAA,CAAQ,WAAW,CAAA,GACvB,WAAA,CAAY,OAAO,CAAC,CAAA,KAAmB,OAAO,CAAA,KAAM,QAAQ,CAAA,GAC5D,MAAA;AACR,EAAA,MAAM,OAAO,QAAA,CAAS,YAAA;AACtB,EAAA,OAAO;AAAA,IACL,MAAM,KAAA,CAAM,IAAA;AAAA,IACZ,MAAM,KAAA,CAAM,IAAA;AAAA,IACZ,aAAa,OAAO,QAAA,CAAS,WAAA,KAAgB,QAAA,GAAW,SAAS,WAAA,GAAc,EAAA;AAAA,IAC/E,QAAQ,KAAA,CAAM,YAAA;AAAA,IACd,WAAW,KAAA,CAAM,SAAA;AAAA,IACjB,GAAI,MAAM,MAAA,GAAS,EAAE,QAAQ,KAAA,CAAM,MAAA,KAAW,EAAC;AAAA,IAC/C,SAAS,KAAA,CAAM,OAAA;AAAA,IACf,QAAA,EAAU,gBAAgB,MAAA,GAAY,KAAK,aAAA,CAAc,EAAE,QAAA,EAAU,WAA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;AAGA,SAAS,GAAA,CAAI,QAAqB,OAAA,EAAwC;AACxE,EAAA,OAAO,QAAQ,GAAA,CAAI,CAAC,WAAW,EAAE,MAAA,EAAQ,OAAM,CAAE,CAAA;AACnD;AASA,eAAsB,gBAAA,CACpB,IACA,UAAA,EAC0B;AAC1B,EAAA,MAAM,CAAC,IAAA,EAAM,KAAK,CAAA,GAAI,MAAM,OAAA,CAAQ,GAAA,CAAI,CAAC,aAAA,EAAc,EAAG,WAAA,CAAY,UAAU,CAAC,CAAC,CAAA;AAClF,EAAA,MAAM,OAAA,GAAU,MAAM,aAAA,EAAc;AACpC,EAAA,MAAM,GAAA,GAAM,MAAM,YAAA,CAAa,EAAE,CAAA;AACjC,EAAA,OAAO;AAAA,IACL,OAAA,EAAS;AAAA,MACP,GAAG,GAAA;AAAA,MACH,GAAG,IAAA,CAAK,OAAA;AAAA,MACR,GAAG,GAAA,CAAI,SAAA,EAAW,OAAA,CAAQ,OAAO,CAAA;AAAA,MACjC,GAAG,GAAA,CAAI,OAAA,EAAS,KAAA,CAAM,OAAO;AAAA,KAC/B;AAAA,IACA,KAAA,EAAO,CAAC,GAAG,IAAA,CAAK,KAAA,EAAO,GAAG,KAAA,CAAM,KAAA,EAAO,GAAG,OAAA,CAAQ,KAAK;AAAA,GACzD;AACF","file":"asset-feeds-WAKBHGEV.js","sourcesContent":["/**\n * asset-feeds.ts — gather installable assets from every feed the manage TUI\n * surfaces.\n *\n * Four feeds, normalized into `CatalogEntry`:\n * - **Project sources** — `skaile.yaml` `sources:` entries (scanned via\n * `AssetManager.search()`; the new `sources:` field is merged into the\n * legacy repositories map in `AssetManager.loadConfig`).\n * - **Local libraries** — user authoring places from `LocalIndex`, read through\n * `scanAuthoringLibraries` (`@skaile/workspaces/library`): the same scan\n * `library index` / `search --local` use, so publishers and refs match them\n * (per-asset `publisher_overrides` honoured), `dev_paths` assets are left out,\n * and a library that fails to scan becomes one note while the rest stay listed.\n * - **Factory assets** — the bundled first-party `factory-assets` tree\n * (`factoryAssetRoots()`), scanned from disk. Always present; no network.\n * - **Remote store** — the configured catalog source when `catalog.url` is\n * not `local`. Failures are non-fatal — they surface as notes.\n */\n\nimport * as path from \"node:path\";\nimport {\n type AssetKind,\n type CatalogEntry,\n factoryAssetRoots,\n parseRequires,\n scanRepo,\n} from \"@skaile/workspaces/core\";\nimport { getKnownKinds } from \"./open-registry.ts\";\nimport { storeNotInstallableReason } from \"./store-addable.ts\";\nimport type { DiscoveredAsset } from \"@skaile/workspaces/discovery\";\n\n/** One non-fatal note returned to the caller for surfacing in the UI. */\nexport interface FeedNote {\n feed: \"sources\" | \"libraries\" | \"store\" | \"factory\";\n message: string;\n}\n\n/**\n * Which feed an asset came from. This is the top-level grouping axis in the\n * manage TUI (\"where is this skill coming from?\") and is intentionally distinct\n * from `publisher` (asset-intrinsic identity): the same publisher can legitimately\n * appear under more than one origin (e.g. a github repo you added as a `source`\n * that is also listed in the remote `store`).\n */\nexport type AssetOrigin = \"source\" | \"library\" | \"factory\" | \"store\";\n\n/** A catalog entry tagged with the feed it was gathered from. */\nexport interface OriginEntry {\n origin: AssetOrigin;\n entry: CatalogEntry;\n /**\n * Second-level grouping label for the manage tree. Defaults (when unset) to the\n * entry's `publisher`; the source feed sets it to the source's short repo name\n * so the Sources band groups by source — \"which repo did this come from\" — not\n * by the asset-intrinsic publisher.\n */\n group?: string;\n}\n\nexport interface AssetFeedResult {\n entries: OriginEntry[];\n notes: FeedNote[];\n}\n\n/**\n * Map one discovered library asset to the `CatalogEntry` the manage rows read.\n * `publisher` is the bare per-asset publisher (what `search --local` prints),\n * `source` the manifest path. `repo` is left unset: it only feeds the Sources-tree\n * org grouping. `requires` / `dependencies` come from the manifest the way the\n * scanner fills them — string `requires:` refs parsed to `{kind, name}`, a bundle's\n * string `dependencies:` list verbatim.\n */\nfunction libraryEntryOf(asset: DiscoveredAsset): CatalogEntry {\n const { manifest } = asset;\n const nested = (manifest.metadata as Record<string, unknown> | undefined)?.requires;\n const rawRequires = manifest.requires ?? nested;\n const requireRefs =\n typeof rawRequires === \"string\"\n ? rawRequires\n : Array.isArray(rawRequires)\n ? rawRequires.filter((r): r is string => typeof r === \"string\")\n : undefined;\n const deps = manifest.dependencies;\n return {\n name: asset.name,\n kind: asset.kind as AssetKind,\n description: typeof manifest.description === \"string\" ? manifest.description : \"\",\n source: asset.manifestPath,\n publisher: asset.publisher,\n ...(asset.plugin ? { plugin: asset.plugin } : {}),\n version: asset.version,\n requires: requireRefs === undefined ? [] : parseRequires({ requires: requireRefs }),\n dependencies:\n asset.kind === \"bundle\" && Array.isArray(deps)\n ? deps.filter((d): d is string => typeof d === \"string\" && d.length > 0)\n : [],\n };\n}\n\n/**\n * Pull assets from local libraries (the authoring places under\n * `~/.skaile/libraries/<name>/`, not the `~/.skaile/cache/sources/` cache) through\n * `scanAuthoringLibraries`, grouped under the bare library name\n * (`group: <name>`) so the manage TUI shows a clean `<name>` band — no\n * `library:` prefix (mirrors the source feed). Plugin grouping (`entry.plugin`)\n * comes from `DiscoveredAsset.plugin`. A library whose scan fails becomes one\n * `FeedNote`; the outer `catch` covers only opening the index.\n */\nasync function libraryAssets(): Promise<{\n entries: OriginEntry[];\n notes: FeedNote[];\n}> {\n const notes: FeedNote[] = [];\n try {\n // Lazy: the library subpath pulls in SQLite, which the other feeds never need.\n const { openLibraryManager } = await import(\"./open-library.ts\");\n const { getKindRegistry } = await import(\"./open-registry.ts\");\n const { scanAuthoringLibraries } = await import(\"@skaile/workspaces/library\");\n const { library: index, close } = await openLibraryManager();\n try {\n const entries: OriginEntry[] = [];\n for (const scan of await scanAuthoringLibraries(index, getKindRegistry())) {\n if (scan.error !== undefined) {\n notes.push({ feed: \"libraries\", message: `${scan.library.name}: ${scan.error}` });\n continue;\n }\n for (const asset of scan.assets) {\n entries.push({\n origin: \"library\",\n entry: libraryEntryOf(asset),\n group: scan.library.name,\n });\n }\n }\n return { entries, notes };\n } finally {\n close();\n }\n } catch (err) {\n notes.push({\n feed: \"libraries\",\n message: err instanceof Error ? err.message : String(err),\n });\n return { entries: [], notes };\n }\n}\n\n/**\n * Pull a (best-effort) snapshot of the connected remote store catalog.\n *\n * - Returns no entries when the resolved catalog is local-only or the host\n * is unreachable (the failure becomes a note, not an exception).\n * - Maps `CatalogAsset` → `CatalogEntry`, carrying `publisher`, `repo`, and\n * `category` straight through and using `source = \"store://<id>\"`; per-file\n * `source` paths are not available for remote assets so the canonical ref is\n * a stable placeholder.\n */\nasync function storeAssets(projectDir: string): Promise<{\n entries: CatalogEntry[];\n notes: FeedNote[];\n}> {\n const notes: FeedNote[] = [];\n try {\n const { resolveCatalogSource } = await import(\"./open-library.ts\");\n const { source, close } = await resolveCatalogSource({ projectDir });\n try {\n // The store lists only what `skaile add` can install (see store-addable.ts).\n const assets = (await source.listAssets()).filter(\n (a) => storeNotInstallableReason(a) === undefined,\n );\n const entries: CatalogEntry[] = assets.map((a) => ({\n name: a.name,\n kind: (a.kind as AssetKind) ?? \"skill\",\n description: a.description ?? \"\",\n source: `store://${a.id}`,\n publisher: a.publisher,\n repo: a.repo,\n plugin: a.plugin,\n category: a.category,\n version: a.version,\n requires: [],\n dependencies: [],\n }));\n return { entries, notes };\n } finally {\n close();\n }\n } catch (err) {\n const msg = err instanceof Error ? err.message : String(err);\n // Local-only catalog throws a recognizable message — silence it; absence\n // is the user's choice, not an error.\n if (!/local/i.test(msg)) {\n notes.push({ feed: \"store\", message: msg });\n }\n return { entries: [], notes };\n }\n}\n\n/** The slice of `AssetManager` the source feed needs (kept narrow for tests). */\ninterface AssetManagerLike {\n search: () => Promise<CatalogEntry[]>;\n searchRepoRoots: () => { repoName: string; root: string }[];\n}\n\n/**\n * Project-source feed: leans on `AssetManager.search()`, which merges\n * `skaile.yaml`'s `sources:` field into the repositories map. Plugin grouping\n * (`entry.plugin`) is stamped by the scanner, so entries pass through as-is.\n */\nasync function sourceAssets(am: AssetManagerLike): Promise<OriginEntry[]> {\n // The bundled factory tree is injected into the repositories map as an implicit\n // source, so `am.search()` returns it too. It has its own `factory` origin band,\n // so drop it here — otherwise the same first-party skills list twice under Sources.\n const factoryPrefixes = factoryAssetRoots().map((r) => (r.endsWith(path.sep) ? r : r + path.sep));\n const isFactoryPath = (p: string) =>\n factoryPrefixes.some((fp) => p === fp.slice(0, -1) || p.startsWith(fp));\n\n const all = (await am.search()).filter((e) => !isFactoryPath(e.source));\n const entries: OriginEntry[] = [];\n // Group each source's entries under the source node (its short repo name), not\n // the publisher: under Sources the navigational question is \"which repo did\n // this come from\". Each entry's `source` (absolute manifest path) lives under\n // exactly one declared root, so group by prefix. The cache slug is\n // URL-keyed `github.com/<org>/<repo>` — take the trailing segment.\n for (const { repoName, root } of am.searchRepoRoots()) {\n if (isFactoryPath(root)) continue;\n const prefix = root.endsWith(path.sep) ? root : root + path.sep;\n const owned = all.filter((e) => e.source === root || e.source.startsWith(prefix));\n if (owned.length === 0) continue;\n const sourceName = repoName.split(\"/\").pop() || repoName;\n for (const entry of owned) entries.push({ origin: \"source\", entry, group: sourceName });\n }\n return entries;\n}\n\n/**\n * Factory-asset feed: scan the bundled first-party `factory-assets` tree(s)\n * resolved by `factoryAssetRoots()` (the `SKAILE_FACTORY_ASSETS_DIR` override\n * layer ahead of the bundled tree). Local disk only, no network — the entries are\n * the built-in skills / connectors / bundles that ship with `@skaile/workspaces`.\n * `factoryAssetRoots()` already dedupes, so the env override pointing at the\n * bundled dir collapses to one root.\n */\nasync function factoryAssets(): Promise<{\n entries: CatalogEntry[];\n notes: FeedNote[];\n}> {\n const notes: FeedNote[] = [];\n try {\n const entries: CatalogEntry[] = [];\n for (const root of factoryAssetRoots()) {\n entries.push(...(await scanRepo(root, \"skaile-factory\", { knownKinds: getKnownKinds() })));\n }\n return { entries, notes };\n } catch (err) {\n notes.push({\n feed: \"factory\",\n message: err instanceof Error ? err.message : String(err),\n });\n return { entries: [], notes };\n }\n}\n\n/** Tag a flat entry list with a single origin. */\nfunction tag(origin: AssetOrigin, entries: CatalogEntry[]): OriginEntry[] {\n return entries.map((entry) => ({ origin, entry }));\n}\n\n/**\n * Run all feeds and return a single normalized result.\n *\n * Feeds run in parallel where possible — the store fetch is the slow one\n * (one HTTP call) and is fired alongside the local library walk. The factory\n * scan is local disk only, so it runs inline.\n */\nexport async function gatherAssetFeeds(\n am: AssetManagerLike,\n projectDir: string,\n): Promise<AssetFeedResult> {\n const [libs, store] = await Promise.all([libraryAssets(), storeAssets(projectDir)]);\n const factory = await factoryAssets();\n const src = await sourceAssets(am);\n return {\n entries: [\n ...src,\n ...libs.entries,\n ...tag(\"factory\", factory.entries),\n ...tag(\"store\", store.entries),\n ],\n notes: [...libs.notes, ...store.notes, ...factory.notes],\n };\n}\n"]}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { WORKSPACE_MOUNT_ENV_VAR, deployAll, deployCatalogEntry, findAiAssetsRoot, isUnderWorkspaceMount, resolveFlowSkills, undeployCatalogEntry, workspaceMountDirs } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { WORKSPACE_MOUNT_ENV_VAR, deployAll, deployCatalogEntry, findAiAssetsRoot, isUnderWorkspaceMount, resolveFlowSkills, undeployCatalogEntry, workspaceMountDirs } from '../chunk-H6UVIKQ2.js';
|
|
2
|
+
import '../chunk-T2TQAH2X.js';
|
|
3
3
|
import '../chunk-4GY63JU6.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-KC6HGWXN.js';
|
|
5
|
+
import '../chunk-5TBFN46Z.js';
|
|
6
6
|
import '../chunk-5BEFNLOR.js';
|
|
7
7
|
import '../chunk-A2ULN3KX.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-2NOLF7B2.js';
|
|
9
9
|
import '../chunk-L5VSIPQD.js';
|
|
10
10
|
import '../chunk-IG5LZ3WU.js';
|
|
11
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-CKICWXMU.js';
|
|
12
12
|
import '../chunk-RVRB27AN.js';
|
|
13
|
-
import '../chunk-
|
|
14
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-GOCWM7FN.js';
|
|
14
|
+
import '../chunk-WDXZA7QW.js';
|
|
15
15
|
import '../chunk-ICSCSM5D.js';
|
|
16
16
|
import '../chunk-DKXNKFKP.js';
|
|
17
17
|
import '../chunk-MJHSLODD.js';
|
|
@@ -1,28 +1,32 @@
|
|
|
1
|
-
export { AssetManager, FACTORY_SOURCE_URL, MissingManifestError, installAgentInstances, normalizeRepoUrl, parseCanonicalLockKey, parseRefTolerant, renderMcpServerConfig, softDepName } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { AssetManager, FACTORY_SOURCE_URL, LibraryEntryError, MissingManifestError, installAgentInstances, normalizeRepoUrl, parseCanonicalLockKey, parseRefTolerant, renderMcpServerConfig, softDepName } from '../chunk-TDQ2ERCM.js';
|
|
2
|
+
import '../chunk-VKPBUPH7.js';
|
|
3
|
+
import '../chunk-HPVMTX6M.js';
|
|
4
|
+
import '../chunk-U2FI547Z.js';
|
|
5
5
|
import '../chunk-BFMYYNDT.js';
|
|
6
6
|
import '../chunk-3TXEJN4W.js';
|
|
7
|
-
|
|
7
|
+
import '../chunk-ISHJITXJ.js';
|
|
8
|
+
import '../chunk-LNFKL23K.js';
|
|
9
|
+
import '../chunk-X3RMRJNR.js';
|
|
10
|
+
import '../chunk-NUELZWCF.js';
|
|
11
|
+
export { SCAFFOLD_KINDS, createScaffold, deployAll, installAgent, installTargetOf, removeAsset } from '../chunk-YZ3N7IUU.js';
|
|
8
12
|
export { BUILT_IN_FRAGMENTS, loadPromptExtensions, resolveFragments } from '../chunk-NOA6EJXE.js';
|
|
9
13
|
export { appendHistory, clearHistory, getRecentHistory, loadHistory } from '../chunk-KTBKW2FI.js';
|
|
10
14
|
import '../chunk-UQ6LFBPZ.js';
|
|
11
|
-
export { AGENT_RENDERERS, claudeCodeRenderer, codexRenderer, driverTargetSupportsAgents, ompRenderer, renderAgentToFramework } from '../chunk-
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
15
|
+
export { AGENT_RENDERERS, claudeCodeRenderer, codexRenderer, driverTargetSupportsAgents, ompRenderer, renderAgentToFramework } from '../chunk-SRNCN4X2.js';
|
|
16
|
+
import '../chunk-CKNIYIV2.js';
|
|
17
|
+
import '../chunk-T2TQAH2X.js';
|
|
14
18
|
import '../chunk-4GY63JU6.js';
|
|
15
|
-
import '../chunk-
|
|
16
|
-
import '../chunk-
|
|
19
|
+
import '../chunk-KC6HGWXN.js';
|
|
20
|
+
import '../chunk-5TBFN46Z.js';
|
|
17
21
|
import '../chunk-5BEFNLOR.js';
|
|
18
22
|
import '../chunk-A2ULN3KX.js';
|
|
19
|
-
import '../chunk-
|
|
23
|
+
import '../chunk-2NOLF7B2.js';
|
|
20
24
|
import '../chunk-L5VSIPQD.js';
|
|
21
25
|
import '../chunk-IG5LZ3WU.js';
|
|
22
|
-
import '../chunk-
|
|
26
|
+
import '../chunk-CKICWXMU.js';
|
|
23
27
|
import '../chunk-RVRB27AN.js';
|
|
24
|
-
import '../chunk-
|
|
25
|
-
import '../chunk-
|
|
28
|
+
import '../chunk-GOCWM7FN.js';
|
|
29
|
+
import '../chunk-WDXZA7QW.js';
|
|
26
30
|
import '../chunk-ICSCSM5D.js';
|
|
27
31
|
import '../chunk-DKXNKFKP.js';
|
|
28
32
|
import '../chunk-MJHSLODD.js';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { SCAFFOLD_KINDS, canonicalEntryRef, createScaffold, deployAll, deployAsset, deployedAssetDrift, diffDeployedAgent, installTargetOf, readKeptLegacyCopies, removeAsset, writeKeptLegacyCopies } from '../chunk-
|
|
1
|
+
export { SCAFFOLD_KINDS, assertNoLibrarySymlinks, canonicalEntryRef, createScaffold, deployAll, deployAsset, deployedAssetDrift, diffDeployedAgent, installTargetOf, readKeptLegacyCopies, removeAsset, writeKeptLegacyCopies } from '../chunk-YZ3N7IUU.js';
|
|
2
2
|
import '../chunk-NOA6EJXE.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-SRNCN4X2.js';
|
|
4
|
+
import '../chunk-CKNIYIV2.js';
|
|
5
|
+
import '../chunk-T2TQAH2X.js';
|
|
6
6
|
import '../chunk-4GY63JU6.js';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-KC6HGWXN.js';
|
|
8
|
+
import '../chunk-5TBFN46Z.js';
|
|
9
9
|
import '../chunk-5BEFNLOR.js';
|
|
10
10
|
import '../chunk-A2ULN3KX.js';
|
|
11
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-2NOLF7B2.js';
|
|
12
12
|
import '../chunk-L5VSIPQD.js';
|
|
13
13
|
import '../chunk-IG5LZ3WU.js';
|
|
14
|
-
import '../chunk-
|
|
14
|
+
import '../chunk-CKICWXMU.js';
|
|
15
15
|
import '../chunk-RVRB27AN.js';
|
|
16
|
-
import '../chunk-
|
|
17
|
-
import '../chunk-
|
|
16
|
+
import '../chunk-GOCWM7FN.js';
|
|
17
|
+
import '../chunk-WDXZA7QW.js';
|
|
18
18
|
import '../chunk-ICSCSM5D.js';
|
|
19
19
|
import '../chunk-DKXNKFKP.js';
|
|
20
20
|
import '../chunk-MJHSLODD.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { AGENT_RENDERERS, CODEX_IDENTITY_DIR, claudeCodeRenderer, codexRenderer, driverTargetSupportsAgents, ompRenderer, renderAgentToFramework } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { AGENT_RENDERERS, CODEX_IDENTITY_DIR, claudeCodeRenderer, codexRenderer, driverTargetSupportsAgents, ompRenderer, renderAgentToFramework } from '../chunk-SRNCN4X2.js';
|
|
2
|
+
import '../chunk-CKNIYIV2.js';
|
|
3
|
+
import '../chunk-T2TQAH2X.js';
|
|
4
4
|
import '../chunk-4GY63JU6.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-KC6HGWXN.js';
|
|
6
|
+
import '../chunk-5TBFN46Z.js';
|
|
7
7
|
import '../chunk-5BEFNLOR.js';
|
|
8
8
|
import '../chunk-A2ULN3KX.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-2NOLF7B2.js';
|
|
10
10
|
import '../chunk-L5VSIPQD.js';
|
|
11
11
|
import '../chunk-IG5LZ3WU.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-CKICWXMU.js';
|
|
13
13
|
import '../chunk-RVRB27AN.js';
|
|
14
|
-
import '../chunk-
|
|
15
|
-
import '../chunk-
|
|
14
|
+
import '../chunk-GOCWM7FN.js';
|
|
15
|
+
import '../chunk-WDXZA7QW.js';
|
|
16
16
|
import '../chunk-ICSCSM5D.js';
|
|
17
17
|
import '../chunk-DKXNKFKP.js';
|
|
18
18
|
import '../chunk-MJHSLODD.js';
|