@skaile/workspaces 5.13.0 → 5.15.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 +108 -0
- package/README.md +1 -1
- package/dist/app-sdk/index.js +1 -1
- package/dist/{asset-feeds-ALMTHLPV.js → asset-feeds-LIDC7547.js} +19 -19
- package/dist/{asset-feeds-ALMTHLPV.js.map → asset-feeds-LIDC7547.js.map} +1 -1
- package/dist/asset-manager/catalog-deployer.js +7 -7
- package/dist/asset-manager/index.js +14 -14
- package/dist/asset-manager/installer.js +9 -9
- package/dist/asset-manager/renderers.js +8 -8
- package/dist/asset-manager/src/index.d.ts +128 -6
- package/dist/asset-manager/src/index.d.ts.map +1 -1
- package/dist/asset-manager/src/install-instances.d.ts +19 -0
- package/dist/asset-manager/src/install-instances.d.ts.map +1 -1
- package/dist/asset-manager/src/installer.d.ts.map +1 -1
- package/dist/asset-manager/src/mcp-config.d.ts +5 -0
- package/dist/asset-manager/src/mcp-config.d.ts.map +1 -1
- package/dist/bridge/drivers/claude-sdk.js +162 -27
- package/dist/bridge/drivers/claude-sdk.js.map +1 -1
- package/dist/bridge/drivers/codex.js +80 -15
- package/dist/bridge/drivers/codex.js.map +1 -1
- package/dist/bridge/drivers/continue.js +10 -9
- package/dist/bridge/drivers/continue.js.map +1 -1
- package/dist/bridge/drivers/echo.js +4 -3
- package/dist/bridge/drivers/echo.js.map +1 -1
- package/dist/bridge/drivers/gemini.js +7 -6
- package/dist/bridge/drivers/goose.js +10 -9
- package/dist/bridge/drivers/goose.js.map +1 -1
- package/dist/bridge/drivers/omp.js +113 -40
- package/dist/bridge/drivers/omp.js.map +1 -1
- package/dist/bridge/drivers/opencode.js +10 -9
- package/dist/bridge/drivers/opencode.js.map +1 -1
- package/dist/bridge/drivers/qwen.js +7 -6
- package/dist/bridge/drivers/qwen.js.map +1 -1
- package/dist/bridge/index.js +14 -13
- package/dist/bridge/src/codex/friendly-error.d.ts +19 -0
- package/dist/bridge/src/codex/friendly-error.d.ts.map +1 -0
- package/dist/bridge/src/drivers/claude-sdk.d.ts +2 -0
- package/dist/bridge/src/drivers/claude-sdk.d.ts.map +1 -1
- package/dist/bridge/src/drivers/claude-self-turns.d.ts +72 -0
- package/dist/bridge/src/drivers/claude-self-turns.d.ts.map +1 -0
- package/dist/bridge/src/drivers/codex.d.ts.map +1 -1
- package/dist/bridge/src/drivers/omp-models-yml.d.ts +17 -7
- package/dist/bridge/src/drivers/omp-models-yml.d.ts.map +1 -1
- package/dist/bridge/src/drivers/omp.d.ts +7 -0
- package/dist/bridge/src/drivers/omp.d.ts.map +1 -1
- package/dist/bridge/src/normalizer.d.ts.map +1 -1
- package/dist/bridge/src/types.d.ts +12 -0
- package/dist/bridge/src/types.d.ts.map +1 -1
- package/dist/{chunk-VLBIME5L.js → chunk-2LTF2ZHH.js} +4 -4
- package/dist/{chunk-VLBIME5L.js.map → chunk-2LTF2ZHH.js.map} +1 -1
- package/dist/chunk-4AKR4XPQ.js +273 -0
- package/dist/chunk-4AKR4XPQ.js.map +1 -0
- package/dist/{chunk-BF422IDP.js → chunk-4QINFQ27.js} +159 -20
- package/dist/chunk-4QINFQ27.js.map +1 -0
- package/dist/{chunk-V5JHD4I2.js → chunk-54TVXZP3.js} +3 -3
- package/dist/{chunk-V5JHD4I2.js.map → chunk-54TVXZP3.js.map} +1 -1
- package/dist/{chunk-XJYBCDY2.js → chunk-74THIMZV.js} +3 -3
- package/dist/{chunk-XJYBCDY2.js.map → chunk-74THIMZV.js.map} +1 -1
- package/dist/{chunk-IY5E7Y5W.js → chunk-ANSZULXH.js} +32 -9
- package/dist/chunk-ANSZULXH.js.map +1 -0
- package/dist/{chunk-J4DB5G36.js → chunk-AVUJBSFA.js} +2 -2
- package/dist/{chunk-J4DB5G36.js.map → chunk-AVUJBSFA.js.map} +1 -1
- package/dist/{chunk-FB3NREF7.js → chunk-AXNX2SKZ.js} +483 -32
- package/dist/chunk-AXNX2SKZ.js.map +1 -0
- package/dist/{chunk-H5U7LNTJ.js → chunk-BFMYYNDT.js} +25 -3
- package/dist/chunk-BFMYYNDT.js.map +1 -0
- package/dist/{chunk-4L4R5LV3.js → chunk-BV7NLPI6.js} +4 -4
- package/dist/{chunk-4L4R5LV3.js.map → chunk-BV7NLPI6.js.map} +1 -1
- package/dist/{chunk-FHDK3BFD.js → chunk-D2MZZ2KB.js} +3 -3
- package/dist/{chunk-FHDK3BFD.js.map → chunk-D2MZZ2KB.js.map} +1 -1
- package/dist/{chunk-F4NJDSR7.js → chunk-D5WTOVLG.js} +7 -4
- package/dist/chunk-D5WTOVLG.js.map +1 -0
- package/dist/{chunk-Y4Z7LGSH.js → chunk-DP6YRAPZ.js} +67 -23
- package/dist/chunk-DP6YRAPZ.js.map +1 -0
- package/dist/{chunk-AHCI4V5L.js → chunk-DPCEQOIZ.js} +3 -3
- package/dist/{chunk-AHCI4V5L.js.map → chunk-DPCEQOIZ.js.map} +1 -1
- package/dist/{chunk-U27JRO5L.js → chunk-ESXZJP4M.js} +3 -3
- package/dist/{chunk-U27JRO5L.js.map → chunk-ESXZJP4M.js.map} +1 -1
- package/dist/{chunk-B7CZYFB2.js → chunk-GLMKS6V6.js} +4 -4
- package/dist/{chunk-B7CZYFB2.js.map → chunk-GLMKS6V6.js.map} +1 -1
- package/dist/{chunk-BVJU2GKE.js → chunk-GQ5OYFVD.js} +4 -271
- package/dist/chunk-GQ5OYFVD.js.map +1 -0
- package/dist/{chunk-PZOO7L26.js → chunk-I3JO3NIZ.js} +4 -4
- package/dist/{chunk-PZOO7L26.js.map → chunk-I3JO3NIZ.js.map} +1 -1
- package/dist/{chunk-L3ZGYSWY.js → chunk-J76LDUDS.js} +91 -18
- package/dist/chunk-J76LDUDS.js.map +1 -0
- package/dist/{chunk-6GICC4RJ.js → chunk-JHP6MIW2.js} +56 -19
- package/dist/chunk-JHP6MIW2.js.map +1 -0
- package/dist/{chunk-PXDWTJ3P.js → chunk-KRRHADE7.js} +5 -5
- package/dist/{chunk-PXDWTJ3P.js.map → chunk-KRRHADE7.js.map} +1 -1
- package/dist/{chunk-NDUYFYJB.js → chunk-KUB4HFGK.js} +12 -7
- package/dist/chunk-KUB4HFGK.js.map +1 -0
- package/dist/{chunk-ZU24LWBI.js → chunk-LEOXPIC6.js} +3 -3
- package/dist/{chunk-ZU24LWBI.js.map → chunk-LEOXPIC6.js.map} +1 -1
- package/dist/{chunk-57SF6W6E.js → chunk-MGM5EJQQ.js} +3 -3
- package/dist/chunk-MGM5EJQQ.js.map +1 -0
- package/dist/{chunk-5SKVCMRC.js → chunk-MKTJZLQM.js} +6 -11
- package/dist/chunk-MKTJZLQM.js.map +1 -0
- package/dist/{chunk-XBYSURMK.js → chunk-N36S36OZ.js} +3 -3
- package/dist/{chunk-XBYSURMK.js.map → chunk-N36S36OZ.js.map} +1 -1
- package/dist/{chunk-NVO6WECE.js → chunk-NKDSU4Q7.js} +6 -6
- package/dist/{chunk-NVO6WECE.js.map → chunk-NKDSU4Q7.js.map} +1 -1
- package/dist/{chunk-OQ5MKDS3.js → chunk-NOF73BUH.js} +27 -6
- package/dist/chunk-NOF73BUH.js.map +1 -0
- package/dist/{chunk-4DLQESIY.js → chunk-O673TBWJ.js} +3 -3
- package/dist/{chunk-4DLQESIY.js.map → chunk-O673TBWJ.js.map} +1 -1
- package/dist/{chunk-DKGEV6SQ.js → chunk-OOQ5Q75W.js} +111 -20
- package/dist/chunk-OOQ5Q75W.js.map +1 -0
- package/dist/{chunk-PYTTF754.js → chunk-PIDMOE7R.js} +4 -4
- package/dist/{chunk-PYTTF754.js.map → chunk-PIDMOE7R.js.map} +1 -1
- package/dist/{chunk-6JKIOPT3.js → chunk-PK5XQBOC.js} +4 -4
- package/dist/{chunk-6JKIOPT3.js.map → chunk-PK5XQBOC.js.map} +1 -1
- package/dist/{chunk-6NQDDCIL.js → chunk-PQF5QHVS.js} +15 -7
- package/dist/chunk-PQF5QHVS.js.map +1 -0
- package/dist/{chunk-HWGYJMME.js → chunk-PV47EEHD.js} +4 -4
- package/dist/{chunk-HWGYJMME.js.map → chunk-PV47EEHD.js.map} +1 -1
- package/dist/{chunk-2H73V6XR.js → chunk-PW3TYWOI.js} +3 -3
- package/dist/{chunk-2H73V6XR.js.map → chunk-PW3TYWOI.js.map} +1 -1
- package/dist/{chunk-ZSMMX3JD.js → chunk-QR7W5JV4.js} +66 -16
- package/dist/chunk-QR7W5JV4.js.map +1 -0
- package/dist/chunk-RTYDYSUV.js +1336 -0
- package/dist/chunk-RTYDYSUV.js.map +1 -0
- package/dist/{chunk-7SMP4GNW.js → chunk-SAKVAG23.js} +7 -6
- package/dist/chunk-SAKVAG23.js.map +1 -0
- package/dist/{chunk-GMDSRSGI.js → chunk-SCUEPCSJ.js} +12 -9
- package/dist/chunk-SCUEPCSJ.js.map +1 -0
- package/dist/{chunk-M3P4BYRK.js → chunk-SP5NGNBV.js} +6 -3
- package/dist/chunk-SP5NGNBV.js.map +1 -0
- package/dist/{chunk-HBZD3MIW.js → chunk-SRKU7QUG.js} +233 -51
- package/dist/chunk-SRKU7QUG.js.map +1 -0
- package/dist/{chunk-2BIESC6S.js → chunk-SZPE55SB.js} +3 -3
- package/dist/{chunk-2BIESC6S.js.map → chunk-SZPE55SB.js.map} +1 -1
- package/dist/{chunk-YTZFSKWL.js → chunk-TCWECSEB.js} +3 -3
- package/dist/{chunk-YTZFSKWL.js.map → chunk-TCWECSEB.js.map} +1 -1
- package/dist/{chunk-J4OYIYFQ.js → chunk-VY6NTFE7.js} +2 -2
- package/dist/{chunk-J4OYIYFQ.js.map → chunk-VY6NTFE7.js.map} +1 -1
- package/dist/{chunk-5FYOM4RF.js → chunk-WWUWMOX2.js} +15 -11
- package/dist/chunk-WWUWMOX2.js.map +1 -0
- package/dist/{chunk-USHB5KEY.js → chunk-WXKNM2JJ.js} +3 -3
- package/dist/{chunk-USHB5KEY.js.map → chunk-WXKNM2JJ.js.map} +1 -1
- package/dist/{chunk-QO7CR3KB.js → chunk-X7DIT65W.js} +4 -4
- package/dist/{chunk-QO7CR3KB.js.map → chunk-X7DIT65W.js.map} +1 -1
- package/dist/{chunk-Y7WKXPWS.js → chunk-XX4C72CC.js} +544 -68
- package/dist/chunk-XX4C72CC.js.map +1 -0
- package/dist/{chunk-VMKMFS2Q.js → chunk-YIDZJHY6.js} +3 -3
- package/dist/{chunk-VMKMFS2Q.js.map → chunk-YIDZJHY6.js.map} +1 -1
- package/dist/{chunk-R6QHJEHE.js → chunk-YL23KWBX.js} +5 -5
- package/dist/{chunk-R6QHJEHE.js.map → chunk-YL23KWBX.js.map} +1 -1
- package/dist/{chunk-4NJ3QQHZ.js → chunk-YUURCZWY.js} +5 -5
- package/dist/{chunk-4NJ3QQHZ.js.map → chunk-YUURCZWY.js.map} +1 -1
- package/dist/{chunk-X4BAYGMT.js → chunk-ZIW34FGO.js} +3 -3
- package/dist/{chunk-X4BAYGMT.js.map → chunk-ZIW34FGO.js.map} +1 -1
- package/dist/cli/index.js +4324 -4078
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/src/agent-checks.d.ts +21 -0
- package/dist/cli/src/agent-checks.d.ts.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/library-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/library-index.d.ts +25 -5
- package/dist/cli/src/commands/library-index.d.ts.map +1 -1
- package/dist/cli/src/commands/library-publish.d.ts.map +1 -1
- package/dist/cli/src/commands/outdated.d.ts.map +1 -1
- package/dist/cli/src/commands/plugin-registry-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/preset-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/project.d.ts +16 -1
- package/dist/cli/src/commands/project.d.ts.map +1 -1
- package/dist/cli/src/commands/rebuild.d.ts.map +1 -1
- package/dist/cli/src/commands/run.d.ts.map +1 -1
- package/dist/cli/src/commands/serve-preflight.d.ts +5 -6
- package/dist/cli/src/commands/serve-preflight.d.ts.map +1 -1
- package/dist/cli/src/commands/serve.d.ts +19 -0
- package/dist/cli/src/commands/serve.d.ts.map +1 -1
- package/dist/cli/src/commands/session.d.ts.map +1 -1
- package/dist/cli/src/commands/source.d.ts +7 -0
- package/dist/cli/src/commands/source.d.ts.map +1 -1
- package/dist/cli/src/commands/update.d.ts.map +1 -1
- package/dist/cli/src/commands/validate.d.ts +0 -9
- package/dist/cli/src/commands/validate.d.ts.map +1 -1
- package/dist/cli/src/skill-checks.d.ts +8 -1
- package/dist/cli/src/skill-checks.d.ts.map +1 -1
- package/dist/connectors/config.js +5 -5
- package/dist/connectors/index.js +18 -17
- package/dist/connectors/src/config.d.ts.map +1 -1
- package/dist/connectors/src/connector-manager.d.ts +8 -1
- package/dist/connectors/src/connector-manager.d.ts.map +1 -1
- package/dist/connectors/src/connector-prompt.d.ts +9 -0
- package/dist/connectors/src/connector-prompt.d.ts.map +1 -1
- package/dist/{connectors-GFKMKAXV.js → connectors-JQR5RAMC.js} +21 -20
- package/dist/{connectors-GFKMKAXV.js.map → connectors-JQR5RAMC.js.map} +1 -1
- package/dist/connectors-shared/index.js +2 -2
- package/dist/core/index.js +6 -6
- 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/driver-sdk.d.ts +31 -0
- package/dist/core/src/driver-sdk.d.ts.map +1 -0
- package/dist/core/src/index.d.ts +3 -2
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/core/src/lock.d.ts.map +1 -1
- package/dist/core/src/manifest-yaml-editor.d.ts +5 -0
- package/dist/core/src/manifest-yaml-editor.d.ts.map +1 -1
- package/dist/core/src/manifest.d.ts.map +1 -1
- package/dist/core/src/models.d.ts +8 -0
- package/dist/core/src/models.d.ts.map +1 -1
- package/dist/core/src/publish-manifest.d.ts +28 -7
- package/dist/core/src/publish-manifest.d.ts.map +1 -1
- package/dist/core/src/repo-manager.d.ts.map +1 -1
- package/dist/core/src/walker.d.ts +4 -0
- package/dist/core/src/walker.d.ts.map +1 -1
- package/dist/core/src/workspace-config.d.ts +44 -0
- package/dist/core/src/workspace-config.d.ts.map +1 -1
- package/dist/core/workspace-config.js +4 -4
- package/dist/deploy/index.js +6 -6
- package/dist/discovery/index.js +5 -5
- package/dist/{ensure-sources-VUKHL65L.js → ensure-sources-NAGBSMJE.js} +17 -17
- package/dist/{ensure-sources-VUKHL65L.js.map → ensure-sources-NAGBSMJE.js.map} +1 -1
- package/dist/factory-assets/connectors/box.js +18 -17
- package/dist/factory-assets/connectors/deploy.js +18 -17
- package/dist/factory-assets/connectors/devserver.js +18 -17
- package/dist/factory-assets/connectors/flow/adapter.js +18 -17
- package/dist/factory-assets/connectors/flow/engine.js +7 -7
- package/dist/factory-assets/connectors/flow/run-flow.d.ts +5 -0
- package/dist/factory-assets/connectors/flow/run-flow.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/run-flow.js +20 -19
- package/dist/factory-assets/connectors/flow.js +18 -17
- package/dist/factory-assets/connectors/git.js +18 -17
- package/dist/factory-assets/connectors/gmail.js +18 -17
- package/dist/factory-assets/connectors/googledrive.js +18 -17
- package/dist/factory-assets/connectors/local.js +18 -17
- package/dist/factory-assets/connectors/mattermost.js +18 -17
- package/dist/factory-assets/connectors/memory.js +18 -17
- package/dist/factory-assets/connectors/minio.js +18 -17
- package/dist/factory-assets/connectors/postgres.js +18 -17
- package/dist/factory-assets/connectors/s3.js +18 -17
- package/dist/factory-assets/connectors/sharepoint.js +18 -17
- package/dist/factory-assets/connectors/sqlite.js +18 -17
- package/dist/factory-assets/connectors/static-server.js +18 -17
- package/dist/factory-assets/connectors/tunnel.js +18 -17
- package/dist/factory-assets/connectors/webdav.js +18 -17
- package/dist/factory-assets/connectors/xstate-store.js +18 -17
- package/dist/factory-assets/connectors/xstate.js +18 -17
- package/dist/{flows-A4YALSZY.js → flows-CYJI3URW.js} +11 -11
- package/dist/{flows-A4YALSZY.js.map → flows-CYJI3URW.js.map} +1 -1
- package/dist/{helpers-53XZW7KF.js → helpers-XFHJDJOA.js} +17 -17
- package/dist/{helpers-53XZW7KF.js.map → helpers-XFHJDJOA.js.map} +1 -1
- package/dist/library/index.js +11 -11
- package/dist/library/install.js +5 -5
- package/dist/library/src/index.d.ts +1 -1
- package/dist/library/src/index.d.ts.map +1 -1
- package/dist/library/src/install/source-fetch-github.d.ts.map +1 -1
- package/dist/library/src/manifest-writer.d.ts +15 -0
- package/dist/library/src/manifest-writer.d.ts.map +1 -1
- package/dist/library/src/remote/remote-catalog-source.d.ts +6 -1
- package/dist/library/src/remote/remote-catalog-source.d.ts.map +1 -1
- package/dist/library/src/remote/rest-catalog-source.d.ts +6 -1
- package/dist/library/src/remote/rest-catalog-source.d.ts.map +1 -1
- package/dist/{library-publish-FFIPWIRM.js → library-publish-FC3ZABR2.js} +91 -29
- package/dist/library-publish-FC3ZABR2.js.map +1 -0
- package/dist/model-endpoint/index.d.ts +2 -0
- package/dist/model-endpoint/index.js +9 -0
- package/dist/model-endpoint/index.js.map +1 -0
- package/dist/model-endpoint/src/index.d.ts +4 -0
- package/dist/model-endpoint/src/index.d.ts.map +1 -0
- package/dist/model-endpoint/src/openai-chat.d.ts +105 -0
- package/dist/model-endpoint/src/openai-chat.d.ts.map +1 -0
- package/dist/model-endpoint/src/openai-responses.d.ts +106 -0
- package/dist/model-endpoint/src/openai-responses.d.ts.map +1 -0
- package/dist/model-endpoint/src/openai-shared.d.ts +77 -0
- package/dist/model-endpoint/src/openai-shared.d.ts.map +1 -0
- package/dist/model-endpoint/src/resolve.d.ts +36 -0
- package/dist/model-endpoint/src/resolve.d.ts.map +1 -0
- package/dist/model-endpoint/src/server.d.ts +16 -0
- package/dist/model-endpoint/src/server.d.ts.map +1 -0
- package/dist/model-endpoint/src/types.d.ts +78 -0
- package/dist/model-endpoint/src/types.d.ts.map +1 -0
- package/dist/open-library-5ET7SAJC.js +40 -0
- package/dist/{open-library-PZAT3TJA.js.map → open-library-5ET7SAJC.js.map} +1 -1
- package/dist/open-registry-X6YQVP7V.js +32 -0
- package/dist/{open-registry-W46UXZ3I.js.map → open-registry-X6YQVP7V.js.map} +1 -1
- package/dist/{paths-KKY3NSBZ.js → paths-NXWIBZCX.js} +9 -9
- package/dist/{paths-KKY3NSBZ.js.map → paths-NXWIBZCX.js.map} +1 -1
- package/dist/{plugin-store-CK7YWRIC.js → plugin-store-BIITCNOZ.js} +8 -8
- package/dist/{plugin-store-CK7YWRIC.js.map → plugin-store-BIITCNOZ.js.map} +1 -1
- package/dist/project-2UXHSVVA.js +82 -0
- package/dist/{project-EZUH7PUJ.js.map → project-2UXHSVVA.js.map} +1 -1
- package/dist/resolver/index.js +7 -7
- package/dist/runner/index.js +35 -32
- package/dist/runner/src/event-gap-buffer.d.ts.map +1 -1
- package/dist/runner/src/model-endpoint-discovery.d.ts +64 -0
- package/dist/runner/src/model-endpoint-discovery.d.ts.map +1 -0
- package/dist/runner/src/resources.d.ts.map +1 -1
- package/dist/runner/src/serve.d.ts +14 -0
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/runner/src/session-builder.d.ts +8 -0
- package/dist/runner/src/session-builder.d.ts.map +1 -1
- package/dist/runner/src/session.d.ts +15 -0
- package/dist/runner/src/session.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +14 -14
- package/dist/sdk/bridge.js +14 -13
- package/dist/sdk/core.js +6 -6
- package/dist/sdk/flow.js +7 -7
- package/dist/sdk/index.js +35 -32
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/resolver.js +7 -7
- package/dist/sdk/runner.js +35 -32
- package/dist/sdk/session.js +2 -2
- package/dist/sdk/transport/ws/server.js +1 -1
- package/dist/sdk/transport/ws.js +1 -1
- package/dist/sdk/transport.js +1 -1
- package/dist/sdk/types.js +1 -1
- package/dist/serve-preflight-GD7IQFA3.js +54 -0
- package/dist/serve-preflight-GD7IQFA3.js.map +1 -0
- package/dist/session/index.js +2 -2
- package/dist/{setup-L632QIHV.js → setup-IKH4R7UN.js} +25 -24
- package/dist/setup-IKH4R7UN.js.map +1 -0
- package/dist/{skills-OY3Y5GKA.js → skills-XVHOXOOH.js} +12 -12
- package/dist/{skills-OY3Y5GKA.js.map → skills-XVHOXOOH.js.map} +1 -1
- package/dist/source-M6IARYNO.js +83 -0
- package/dist/{source-36FHMN5V.js.map → source-M6IARYNO.js.map} +1 -1
- package/dist/source-fetch-github-ST4MFL3D.js +4 -0
- package/dist/{source-fetch-github-PIO6EMMF.js.map → source-fetch-github-ST4MFL3D.js.map} +1 -1
- package/dist/{source-manifest-publish-NIXJSJ22.js → source-manifest-publish-UP2IS2QW.js} +65 -24
- package/dist/source-manifest-publish-UP2IS2QW.js.map +1 -0
- package/dist/transport/index.js +1 -1
- package/dist/transport/src/ws/server.d.ts +16 -0
- package/dist/transport/src/ws/server.d.ts.map +1 -1
- package/dist/transport/ws/server.js +1 -1
- package/dist/transport/ws.js +1 -1
- package/dist/tui/index.js +35 -32
- package/dist/tui/index.js.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/manifests.js +1 -1
- package/dist/types/src/delivery.d.ts.map +1 -1
- package/dist/types/src/events.d.ts +55 -1
- package/dist/types/src/events.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/manifests/mcp-server.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +11 -1
- package/dist/types/src/version.d.ts.map +1 -1
- package/dist/workspace-plugin/adapters/mcp.js +25 -24
- package/dist/workspace-plugin/adapters/omp.js +14 -14
- package/dist/workspace-plugin/index.js +1 -1
- package/dist/workspace-plugin/src/adapters/mcp.d.ts.map +1 -1
- package/package.json +14 -3
- package/dist/chunk-57SF6W6E.js.map +0 -1
- package/dist/chunk-5FYOM4RF.js.map +0 -1
- package/dist/chunk-5SKVCMRC.js.map +0 -1
- package/dist/chunk-6GICC4RJ.js.map +0 -1
- package/dist/chunk-6NQDDCIL.js.map +0 -1
- package/dist/chunk-7SMP4GNW.js.map +0 -1
- package/dist/chunk-BF422IDP.js.map +0 -1
- package/dist/chunk-BVJU2GKE.js.map +0 -1
- package/dist/chunk-DKGEV6SQ.js.map +0 -1
- package/dist/chunk-F4NJDSR7.js.map +0 -1
- package/dist/chunk-FB3NREF7.js.map +0 -1
- package/dist/chunk-GMDSRSGI.js.map +0 -1
- package/dist/chunk-H5U7LNTJ.js.map +0 -1
- package/dist/chunk-HBZD3MIW.js.map +0 -1
- package/dist/chunk-IY5E7Y5W.js.map +0 -1
- package/dist/chunk-L3ZGYSWY.js.map +0 -1
- package/dist/chunk-M3P4BYRK.js.map +0 -1
- package/dist/chunk-NDUYFYJB.js.map +0 -1
- package/dist/chunk-OQ5MKDS3.js.map +0 -1
- package/dist/chunk-PN44DOGP.js +0 -345
- package/dist/chunk-PN44DOGP.js.map +0 -1
- package/dist/chunk-Y4Z7LGSH.js.map +0 -1
- package/dist/chunk-Y7WKXPWS.js.map +0 -1
- package/dist/chunk-ZSMMX3JD.js.map +0 -1
- package/dist/library-publish-FFIPWIRM.js.map +0 -1
- package/dist/open-library-PZAT3TJA.js +0 -40
- package/dist/open-registry-W46UXZ3I.js +0 -32
- package/dist/project-EZUH7PUJ.js +0 -79
- package/dist/serve-preflight-F7MYF747.js +0 -64
- package/dist/serve-preflight-F7MYF747.js.map +0 -1
- package/dist/setup-L632QIHV.js.map +0 -1
- package/dist/source-36FHMN5V.js +0 -42
- package/dist/source-fetch-github-PIO6EMMF.js +0 -4
- package/dist/source-manifest-publish-NIXJSJ22.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,113 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1073](https://github.com/skaile-ai/workspaces/pull/1073) [`b4631ac`](https://github.com/skaile-ai/workspaces/commit/b4631acb6071f5730732ff487062b300908960da) Thanks [@mortegro](https://github.com/mortegro)! - A hand edit of an agent instance file (`.claude/agents/default.md`, `.claude/agents/<id>.md`, and the omp and Codex files of the same instances) is drift: it is listed in the lock `rendered:` list of the agent the instance binds to, `check`, `doctor` and `outdated` exit 1, and `install --locked` prints `Restored <file>` (p812, p304).
|
|
8
|
+
|
|
9
|
+
`skaile rebuild <name>` takes an `agent:` ref, an instance id, an agent name or a path. A name that matches nothing exits 1 and rebuilds nothing (p814).
|
|
10
|
+
|
|
11
|
+
`skaile show` no longer lists the instance renderings as assets of publisher `unknown` (p813).
|
|
12
|
+
|
|
13
|
+
The connector prompt of a session without `connector_*` tools (omp) names the `skaile connector` CLI, not the tools (p810). `buildConnectorPromptSection` takes the option `toolsMounted`.
|
|
14
|
+
|
|
15
|
+
Docs: `drivers.md` says that Codex 0.159 does not load `.codex/agents/*.toml` as sub-agents (p428).
|
|
16
|
+
|
|
17
|
+
- [#1073](https://github.com/skaile-ai/workspaces/pull/1073) [`b4631ac`](https://github.com/skaile-ai/workspaces/commit/b4631acb6071f5730732ff487062b300908960da) Thanks [@mortegro](https://github.com/mortegro)! - `validate`, `library index`, `library publish` and `add` give one verdict for a library.
|
|
18
|
+
|
|
19
|
+
A symlink anywhere in a library is refused, also at the root level and a symlinked asset directory (p520). A manifest `root:` that leaves the library (`..`, absolute, through a symlink) is refused (p701). An asset renamed in its own file is renamed in place by `library index`; `validate` and the publish plan refuse a stale entry (p700). `library index` and the plan run the agent checks of `validate` (p415).
|
|
20
|
+
|
|
21
|
+
`library create --dir` refuses a path through a symlink inside the library (p702). `library init <name> --path <dir>` refuses a directory that holds a symlink and registers nothing (p703). The publish plan names a `.env`, a private key or a certificate as a secret, and the scaffolded `.gitignore` covers `.env`, `*.swp`, `*~`, `*.bak`, `*.log` (p704, p224).
|
|
22
|
+
|
|
23
|
+
`add` and `install` refuse an asset whose version is not semver, with the `validate` message (p743). The 15-digit limit of a version number is documented (p705).
|
|
24
|
+
|
|
25
|
+
`validate <file>` and `validate <empty directory>` exit 1 without `All manifests valid` (p745). A project `validate .` skips `.claude`, `.codex` and `.omp` (p853). `skaile create` is documented (p854).
|
|
26
|
+
|
|
27
|
+
`asset import` and `asset migrate` leave out `*.log`, `*.bak`, `*.swp` and `*~`. `asset migrate --mode link` is removed; `--mode move` refuses a source that holds a symlink (p224).
|
|
28
|
+
|
|
29
|
+
- [#1073](https://github.com/skaile-ai/workspaces/pull/1073) [`b4631ac`](https://github.com/skaile-ai/workspaces/commit/b4631acb6071f5730732ff487062b300908960da) Thanks [@mortegro](https://github.com/mortegro)! - Consume fixes from the 5.13.0 critique (p220, p544, p720, p721, p722, p723, p755, p756, p757, p758, p793, p855).
|
|
30
|
+
|
|
31
|
+
- `remove` no longer deletes a folder that no lock entry owns. It keeps it, prints why, and exits 1. `remove --force` deletes it. `install` refuses such a folder like `add` does. `install --force` replaces it (p720, p721).
|
|
32
|
+
- `update` skips the catalog refresh when no locked asset comes from the catalog. When the refresh is needed and fails, `update` exits 1 at once after 5 s, for a REST-framed catalog (any URL but `https://skaile.store`) as well as the store (p544).
|
|
33
|
+
- `source add --publisher` on a registered URL with another publisher exits 1 and names the declared refs it breaks. `--force` changes it (p722).
|
|
34
|
+
- `library link` says when the remote already has commits and names the `pull --rebase` command (p723).
|
|
35
|
+
- `install` and `install --locked` print `Restored <file>` for a deleted file they write back, and `check` advises `install --locked` (p755).
|
|
36
|
+
- `outdated` lists an asset that `update` would move to another library as `origin changes <old> → <new>` (p756).
|
|
37
|
+
- `search --local` re-registers a source reader library that another project's `source remove` dropped (p757).
|
|
38
|
+
- The publish plan lists the modified and deleted tracked files that `git add -A` also publishes (p758).
|
|
39
|
+
- A source asset is locked with the version of its asset file, as `search` and `info` list it (p793, p855).
|
|
40
|
+
- An agent instance whose locked library is not registered names the library fix, not `install --locked` (p220).
|
|
41
|
+
|
|
42
|
+
- [#1073](https://github.com/skaile-ai/workspaces/pull/1073) [`b4631ac`](https://github.com/skaile-ai/workspaces/commit/b4631acb6071f5730732ff487062b300908960da) Thanks [@mortegro](https://github.com/mortegro)! - `skaile session show`, `switch`, `delete` and `skaile resume --session` accept the 8-character run id that `skaile session list` prints (p851). A prefix that matches two sessions exits 1 and lists the matches. The runner exports `resolveSessionId`.
|
|
43
|
+
|
|
44
|
+
Docs: tutorial 01 step 3 says that `owner/repo` expands to the SSH URL (p858). Tutorial 02 says to skip `providers add anthropic` after tutorial 01 (p852). The flow example in `concepts/flow-execution.md` says that the skills it names must exist (p856). `serve.md` has the real loopback warning (p843). `protocol-v2.md` no longer prints a fixed `capabilitySignature` (p844). `client-server-architecture.md` no longer lists `configure` and `state_action` as live commands (p837). The bridge READMEs show `npm i` (p845). `migration-v2-to-v3.md` and `manifest-schema.md` say how to get the `migrate-skaile-manifest` skill (p674). `install <ref>` is described as a store install (docs defect).
|
|
45
|
+
|
|
46
|
+
- [#1073](https://github.com/skaile-ai/workspaces/pull/1073) [`b4631ac`](https://github.com/skaile-ai/workspaces/commit/b4631acb6071f5730732ff487062b300908960da) Thanks [@mortegro](https://github.com/mortegro)! - Harnesses and drivers (5.13.0 critique: p590, p598, p637, p770, p771, p772, p773, p811, p850).
|
|
47
|
+
|
|
48
|
+
- The `claude-sdk` and `codex` drivers (and `skaile serve`) load their SDK from the project's `node_modules` first, then from next to the skaile install. A missing SDK is one line that names both places and the install command (p770). The connector tool servers use the same lookup.
|
|
49
|
+
- The supported `@openai/codex-sdk` range is `>=0.160.0 <0.170.0` (was `^0.133.0`). A ChatGPT-login run with a model the login cannot use ends with one sentence, and a rejected key reads `codex driver: the API key was rejected (401).` instead of `Reconnecting... n/5` (p771, p598).
|
|
50
|
+
- The codex driver warns about a registry entry it cannot address only when that entry is the selected one, and logs the others at debug level (p773).
|
|
51
|
+
- The omp private home links only the login files and copies `config.yml`; sessions, history, `mcp.json` and extensions stay private, and the home is deleted when the run ends; each run gets its own home directory, so one run's cleanup cannot remove another's (p811).
|
|
52
|
+
- The omp credential hint (`skaile providers add <id> --credential env:<ID>_API_KEY`) is applied on every error path: start failure, response errors, turn errors and nested `agent_run` (p637).
|
|
53
|
+
- `check` and `doctor` test every rendered file of a locked agent (`.codex/skaile-agents/<name>.md`, `.omp/agents/<name>/agent.yaml` and `SOUL.md`), not only the primary one (p590).
|
|
54
|
+
- A project reads `dependencies:` only from its own `skaile.yaml`; what `add --global` declared no longer shows up in a project's `list`, `check`, `outdated` or `install` (p772).
|
|
55
|
+
- `skaile resume` prints the same one `✗` line as `run` when the driver cannot start, and continues the session it was given: same run id, driver thread resumed, no second session (p850).
|
|
56
|
+
|
|
57
|
+
- [#1073](https://github.com/skaile-ai/workspaces/pull/1073) [`b4631ac`](https://github.com/skaile-ai/workspaces/commit/b4631acb6071f5730732ff487062b300908960da) Thanks [@mortegro](https://github.com/mortegro)! - `skaile serve` with a bad `--port` (`abc`, `99999`, `-1`), a `--host` this machine does not have or cannot resolve, or a missing or empty `SKAILE_WS_AUTH_TOKEN_FILE` prints one line and exits 1, with no Node stack trace (p830, p832).
|
|
58
|
+
|
|
59
|
+
`serve` exits 1 after it sent `incompatible_protocol` (p835). On macOS, `serve --host <address>` also probes the port on all interfaces, so it no longer starts on a port that another process holds on `*` (p842); Linux needs no probe, as its bind already fails.
|
|
60
|
+
|
|
61
|
+
A `local` connector with a `mountPath` that does not exist fails to connect and the runner no longer creates the directory; a path outside the project logs a warning (p833). `skaile validate` fails on a connector with a missing or duplicate `id`, an unknown `access`, or a missing `mountPath`. The decoder reports an unknown `access` as `connector_invalid_access` (p834).
|
|
62
|
+
|
|
63
|
+
A `prompt` without a string `prompt`, or a message that is not a JSON object, gets a non-fatal validation `error` event instead of silence (p839). A reconnect no longer replays `status idle` twice (p831). `--session-id` help says it only labels the session; `--resume-session-id` restores it (p838).
|
|
64
|
+
|
|
65
|
+
`skaile plugin install` without a `skaile.yaml` exits 1 with `run skaile init first` and creates no file; `plugin remove` says there is no project. Installing a spec that is already declared prints `already declared` instead of `Updated` (p840, p841).
|
|
66
|
+
|
|
67
|
+
- [#1073](https://github.com/skaile-ai/workspaces/pull/1073) [`b4631ac`](https://github.com/skaile-ai/workspaces/commit/b4631acb6071f5730732ff487062b300908960da) Thanks [@mortegro](https://github.com/mortegro)! - `skaile install <ref>` without `#<version>` exits 1 before any call and says the version is missing. A versioned ref the store does not hold says `<ref> is not in the store`. The raw `400 Bad Request` and `404 Not Found` are gone (p740).
|
|
68
|
+
|
|
69
|
+
`skaile update` prints `Lock file written` whenever it rewrites `skaile.lock.yaml`, also when it only adds `rendered:` entries after an upgrade (p741).
|
|
70
|
+
|
|
71
|
+
A lock that locks a flow by the old slug of its `name:` gets a rename hint from `check`, `install`, `install --locked` and `update`: the library holds it as `flow:@pub/<id>` now, run `skaile remove` and `skaile add` (p742).
|
|
72
|
+
|
|
73
|
+
`skaile remove --global` of an omp asset also removes the copies that 5.12.0 wrote to `~/.omp/skills/` and `~/.omp/agents/` (p744).
|
|
74
|
+
|
|
75
|
+
`check` and `doctor` exit 1 when a skill that a flow names in `run.assets` (or a bundle `dependencies:` entry) was removed with `--force`, with `<flow> requires <skill> (run skaile install)`. Tutorial 03 says the same (p857).
|
|
76
|
+
|
|
77
|
+
`install`, `install --locked` and `update` print `Rewrote <file> (agent render changed)` when they rewrite a rendered agent file that a lock without `rendered:` did not cover and whose bytes change (p561).
|
|
78
|
+
|
|
79
|
+
Assets of one source locked at different commits (store assets added one by one) write the same `sources:` row from `add` and `install`, so the first `install` after the `add`s no longer prints `Lock file written` for a lock that did not change (p790).
|
|
80
|
+
|
|
81
|
+
- [#1073](https://github.com/skaile-ai/workspaces/pull/1073) [`b4631ac`](https://github.com/skaile-ai/workspaces/commit/b4631acb6071f5730732ff487062b300908960da) Thanks [@mortegro](https://github.com/mortegro)! - `install` and `update` no longer call a locked store asset `Missing` when the store cannot be asked. With `catalog.cache_ttl: 0` and with `update --no-catalog` the deployed copy is kept and the line says `kept as locked`, exit 0. A store that is down ends `Failed` with `store unreachable: could not check <ref> for updates`, exit 1. `update --no-catalog` never asks the store, also in the re-deploy (p792, p799).
|
|
82
|
+
|
|
83
|
+
`add <ref>#<version>` for a version the store does not hold lists the versions it has (p791).
|
|
84
|
+
|
|
85
|
+
A `SKAILE_GITHUB_PAT` that GitHub rejects no longer breaks a public repo: it is read anonymously. For a private repo the error says the token was rejected, and the raw `GET … 401` log line is gone (p794).
|
|
86
|
+
|
|
87
|
+
A store `mcp-server` with a `payload` has it downloaded, checked against its sha256 and written to `.skaile/assets/mcp-server/<name>/` before the entry goes into `.mcp.json`; bytes that miss the pin skip the entry with the reason. An entry whose url still holds a `<slug>` placeholder is skipped with a warning that names it (p795, p797).
|
|
88
|
+
|
|
89
|
+
The `requires` of a store agent are locked (`requires:` on the lock entry), so `why` names the agent, `remove` of a skill the agent requires is refused without `--force`, and `remove` of the agent prunes the skills only it required (p796).
|
|
90
|
+
|
|
91
|
+
`info` of a deployed agent prints its description and the locked version, without the asset scan warning (p798).
|
|
92
|
+
|
|
93
|
+
## 5.14.0
|
|
94
|
+
|
|
95
|
+
### Minor Changes
|
|
96
|
+
|
|
97
|
+
- [#1063](https://github.com/skaile-ai/workspaces/pull/1063) [`4a10dc1`](https://github.com/skaile-ai/workspaces/commit/4a10dc1046a287abf91941fbe24b7d6a1d46365c) Thanks [@mortegro](https://github.com/mortegro)! - `skaile serve` can serve an OpenAI-compatible model endpoint on loopback, so an app next to the session makes plain model calls without a vendor key. Turn it on with `skaile serve --model-endpoint [port]` or `skaile.yaml` `model_endpoint: {enabled, port, host}`. It serves `/v1/models`, `/v1/chat/completions`, `/v1/responses` and `/v1/embeddings` behind a bearer token, resolved against the session's AI provider registry, and is found through `SKAILE_MODEL_ENDPOINT_URL` / `_TOKEN` in the harness env, `.skaile/model-endpoint.json` (mode 0600, gitignored by `skaile init`) and the `skaile-endpoint` registry entry.
|
|
98
|
+
|
|
99
|
+
Provider translation comes from `@earendil-works/pi-ai`, a new optional peer (`npm i @earendil-works/pi-ai`, Node ≥22.19) loaded only when a request arrives. The endpoint is off by default and not started on a managed Codex host.
|
|
100
|
+
|
|
101
|
+
- [#1066](https://github.com/skaile-ai/workspaces/pull/1066) [`d38e089`](https://github.com/skaile-ai/workspaces/commit/d38e08940490fe0a23942cb8f178a37a81b9d37a) Thanks [@peteralbert](https://github.com/peteralbert)! - The runner now says which turns the agent started by itself, and which earlier work they continue (protocol 4.19.0).
|
|
102
|
+
|
|
103
|
+
A Claude Code agent kept alive between turns wakes on its own when a background task it launched settles (a backgrounded shell command, a background subagent, a monitor). The host saw that turn's output with no prompt behind it, so it could not tell who the turn acts for. The claude-sdk driver now sends:
|
|
104
|
+
|
|
105
|
+
- `background_task_started` (`taskId`) while a turn runs, when a task starts in the background in it (or a foreground task moves there);
|
|
106
|
+
- `self_turn_started` (`taskIds`) before any output of a turn the runner did not dispatch, naming the tasks whose completion it reads (empty when it cannot tell);
|
|
107
|
+
- `selfStarted: true` on that turn's `finished` or `error`.
|
|
108
|
+
|
|
109
|
+
All three are additive and transient. A host keeps working without reading them.
|
|
110
|
+
|
|
3
111
|
## 5.13.0
|
|
4
112
|
|
|
5
113
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -83,7 +83,7 @@ first `run` or `repl`:
|
|
|
83
83
|
| Driver | Install |
|
|
84
84
|
|---|---|
|
|
85
85
|
| `claude-sdk` (default) | `npm i @anthropic-ai/claude-agent-sdk` (with Bun: `bun add @anthropic-ai/claude-agent-sdk`) |
|
|
86
|
-
| `codex` | `npm i @openai/codex-sdk` (with Bun: `bun add @openai/codex-sdk`) |
|
|
86
|
+
| `codex` | `npm i @openai/codex-sdk` (0.160 or newer; with Bun: `bun add @openai/codex-sdk`) |
|
|
87
87
|
| `omp` | none; needs the `omp` binary on your `PATH` and a configured model |
|
|
88
88
|
|
|
89
89
|
Without the SDK, `skaile run` exits 1 with `Claude Agent SDK not installed` (or `Codex SDK not installed`).
|
package/dist/app-sdk/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { storeNotInstallableReason } from './chunk-
|
|
2
|
-
import { getKnownKinds } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { storeNotInstallableReason } from './chunk-ESXZJP4M.js';
|
|
2
|
+
import { getKnownKinds } from './chunk-YUURCZWY.js';
|
|
3
|
+
import './chunk-N36S36OZ.js';
|
|
4
4
|
import './chunk-X3RMRJNR.js';
|
|
5
5
|
import './chunk-7RGTAEG6.js';
|
|
6
6
|
import './chunk-NUELZWCF.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
7
|
+
import './chunk-OOQ5Q75W.js';
|
|
8
|
+
import './chunk-NKDSU4Q7.js';
|
|
9
|
+
import './chunk-KRRHADE7.js';
|
|
10
|
+
import './chunk-BFMYYNDT.js';
|
|
11
11
|
import './chunk-3TXEJN4W.js';
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
12
|
+
import './chunk-MGM5EJQQ.js';
|
|
13
|
+
import './chunk-4QINFQ27.js';
|
|
14
14
|
import './chunk-4GY63JU6.js';
|
|
15
|
-
import { factoryAssetRoots } from './chunk-
|
|
15
|
+
import { factoryAssetRoots } from './chunk-X7DIT65W.js';
|
|
16
16
|
import './chunk-D54T2F54.js';
|
|
17
17
|
import './chunk-5BEFNLOR.js';
|
|
18
18
|
import './chunk-A2ULN3KX.js';
|
|
19
|
-
import { scanRepo } from './chunk-
|
|
19
|
+
import { scanRepo } from './chunk-J76LDUDS.js';
|
|
20
20
|
import './chunk-L5VSIPQD.js';
|
|
21
21
|
import './chunk-IG5LZ3WU.js';
|
|
22
|
-
import './chunk-
|
|
22
|
+
import './chunk-ANSZULXH.js';
|
|
23
23
|
import './chunk-RVRB27AN.js';
|
|
24
|
-
import { parseRequires } from './chunk-
|
|
25
|
-
import './chunk-
|
|
24
|
+
import { parseRequires } from './chunk-SP5NGNBV.js';
|
|
25
|
+
import './chunk-VY6NTFE7.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-5ET7SAJC.js');
|
|
56
|
+
const { getKindRegistry } = await import('./open-registry-X6YQVP7V.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-5ET7SAJC.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-feeds-
|
|
170
|
+
//# sourceMappingURL=asset-feeds-LIDC7547.js.map
|
|
171
|
+
//# sourceMappingURL=asset-feeds-LIDC7547.js.map
|
|
@@ -1 +1 @@
|
|
|
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,G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AAS;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-ALMTHLPV.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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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-LIDC7547.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-LEOXPIC6.js';
|
|
2
|
+
import '../chunk-4QINFQ27.js';
|
|
3
3
|
import '../chunk-4GY63JU6.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-X7DIT65W.js';
|
|
5
5
|
import '../chunk-D54T2F54.js';
|
|
6
6
|
import '../chunk-5BEFNLOR.js';
|
|
7
7
|
import '../chunk-A2ULN3KX.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-J76LDUDS.js';
|
|
9
9
|
import '../chunk-L5VSIPQD.js';
|
|
10
10
|
import '../chunk-IG5LZ3WU.js';
|
|
11
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-ANSZULXH.js';
|
|
12
12
|
import '../chunk-RVRB27AN.js';
|
|
13
|
-
import '../chunk-
|
|
14
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-SP5NGNBV.js';
|
|
14
|
+
import '../chunk-VY6NTFE7.js';
|
|
15
15
|
import '../chunk-ICSCSM5D.js';
|
|
16
16
|
import '../chunk-DKXNKFKP.js';
|
|
17
17
|
import '../chunk-MJHSLODD.js';
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export { AssetManager, FACTORY_SOURCE_URL, MissingManifestError, installAgentInstances, normalizeRepoUrl, parseCanonicalLockKey, parseRefTolerant, renderMcpServerConfig, softDepName } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
1
|
+
export { AssetManager, FACTORY_SOURCE_URL, MissingManifestError, installAgentInstances, normalizeRepoUrl, parseCanonicalLockKey, parseRefTolerant, renderMcpServerConfig, softDepName } from '../chunk-XX4C72CC.js';
|
|
2
|
+
import '../chunk-OOQ5Q75W.js';
|
|
3
|
+
import '../chunk-NKDSU4Q7.js';
|
|
4
|
+
import '../chunk-KRRHADE7.js';
|
|
5
|
+
import '../chunk-BFMYYNDT.js';
|
|
6
6
|
import '../chunk-3TXEJN4W.js';
|
|
7
|
-
export { SCAFFOLD_KINDS, createScaffold, deployAll, installAgent, installTargetOf, removeAsset } from '../chunk-
|
|
7
|
+
export { SCAFFOLD_KINDS, createScaffold, deployAll, installAgent, installTargetOf, removeAsset } from '../chunk-WWUWMOX2.js';
|
|
8
8
|
export { BUILT_IN_FRAGMENTS, loadPromptExtensions, resolveFragments } from '../chunk-NOA6EJXE.js';
|
|
9
9
|
export { appendHistory, clearHistory, getRecentHistory, loadHistory } from '../chunk-KTBKW2FI.js';
|
|
10
10
|
import '../chunk-UQ6LFBPZ.js';
|
|
11
|
-
export { AGENT_RENDERERS, claudeCodeRenderer, codexRenderer, driverTargetSupportsAgents, ompRenderer, renderAgentToFramework } from '../chunk-
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
11
|
+
export { AGENT_RENDERERS, claudeCodeRenderer, codexRenderer, driverTargetSupportsAgents, ompRenderer, renderAgentToFramework } from '../chunk-BV7NLPI6.js';
|
|
12
|
+
import '../chunk-MGM5EJQQ.js';
|
|
13
|
+
import '../chunk-4QINFQ27.js';
|
|
14
14
|
import '../chunk-4GY63JU6.js';
|
|
15
|
-
import '../chunk-
|
|
15
|
+
import '../chunk-X7DIT65W.js';
|
|
16
16
|
import '../chunk-D54T2F54.js';
|
|
17
17
|
import '../chunk-5BEFNLOR.js';
|
|
18
18
|
import '../chunk-A2ULN3KX.js';
|
|
19
|
-
import '../chunk-
|
|
19
|
+
import '../chunk-J76LDUDS.js';
|
|
20
20
|
import '../chunk-L5VSIPQD.js';
|
|
21
21
|
import '../chunk-IG5LZ3WU.js';
|
|
22
|
-
import '../chunk-
|
|
22
|
+
import '../chunk-ANSZULXH.js';
|
|
23
23
|
import '../chunk-RVRB27AN.js';
|
|
24
|
-
import '../chunk-
|
|
25
|
-
import '../chunk-
|
|
24
|
+
import '../chunk-SP5NGNBV.js';
|
|
25
|
+
import '../chunk-VY6NTFE7.js';
|
|
26
26
|
import '../chunk-ICSCSM5D.js';
|
|
27
27
|
import '../chunk-DKXNKFKP.js';
|
|
28
28
|
import '../chunk-MJHSLODD.js';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { SCAFFOLD_KINDS, canonicalEntryRef, createScaffold, deployAll, deployAsset, deployedAssetDrift, diffDeployedAgent, installTargetOf, removeAsset } from '../chunk-
|
|
1
|
+
export { SCAFFOLD_KINDS, canonicalEntryRef, createScaffold, deployAll, deployAsset, deployedAssetDrift, diffDeployedAgent, installTargetOf, removeAsset } from '../chunk-WWUWMOX2.js';
|
|
2
2
|
import '../chunk-NOA6EJXE.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-BV7NLPI6.js';
|
|
4
|
+
import '../chunk-MGM5EJQQ.js';
|
|
5
|
+
import '../chunk-4QINFQ27.js';
|
|
6
6
|
import '../chunk-4GY63JU6.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-X7DIT65W.js';
|
|
8
8
|
import '../chunk-D54T2F54.js';
|
|
9
9
|
import '../chunk-5BEFNLOR.js';
|
|
10
10
|
import '../chunk-A2ULN3KX.js';
|
|
11
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-J76LDUDS.js';
|
|
12
12
|
import '../chunk-L5VSIPQD.js';
|
|
13
13
|
import '../chunk-IG5LZ3WU.js';
|
|
14
|
-
import '../chunk-
|
|
14
|
+
import '../chunk-ANSZULXH.js';
|
|
15
15
|
import '../chunk-RVRB27AN.js';
|
|
16
|
-
import '../chunk-
|
|
17
|
-
import '../chunk-
|
|
16
|
+
import '../chunk-SP5NGNBV.js';
|
|
17
|
+
import '../chunk-VY6NTFE7.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-BV7NLPI6.js';
|
|
2
|
+
import '../chunk-MGM5EJQQ.js';
|
|
3
|
+
import '../chunk-4QINFQ27.js';
|
|
4
4
|
import '../chunk-4GY63JU6.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-X7DIT65W.js';
|
|
6
6
|
import '../chunk-D54T2F54.js';
|
|
7
7
|
import '../chunk-5BEFNLOR.js';
|
|
8
8
|
import '../chunk-A2ULN3KX.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-J76LDUDS.js';
|
|
10
10
|
import '../chunk-L5VSIPQD.js';
|
|
11
11
|
import '../chunk-IG5LZ3WU.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-ANSZULXH.js';
|
|
13
13
|
import '../chunk-RVRB27AN.js';
|
|
14
|
-
import '../chunk-
|
|
15
|
-
import '../chunk-
|
|
14
|
+
import '../chunk-SP5NGNBV.js';
|
|
15
|
+
import '../chunk-VY6NTFE7.js';
|
|
16
16
|
import '../chunk-ICSCSM5D.js';
|
|
17
17
|
import '../chunk-DKXNKFKP.js';
|
|
18
18
|
import '../chunk-MJHSLODD.js';
|