@skaile/workspaces 5.5.0 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +84 -0
- package/dist/app-sdk/index.js +1 -1
- package/dist/{asset-feeds-KTFUB7EX.js → asset-feeds-4O2JK5S4.js} +27 -14
- package/dist/asset-feeds-4O2JK5S4.js.map +1 -0
- package/dist/asset-manager/catalog-deployer.js +9 -9
- package/dist/asset-manager/index.js +18 -18
- package/dist/asset-manager/installer.js +11 -11
- package/dist/asset-manager/renderers.js +20 -2
- package/dist/asset-manager/src/index.d.ts +66 -24
- package/dist/asset-manager/src/index.d.ts.map +1 -1
- package/dist/asset-manager/src/install-agent.d.ts +22 -14
- package/dist/asset-manager/src/install-agent.d.ts.map +1 -1
- package/dist/asset-manager/src/install-instances.d.ts +55 -0
- package/dist/asset-manager/src/install-instances.d.ts.map +1 -0
- package/dist/asset-manager/src/installer.d.ts +30 -7
- package/dist/asset-manager/src/installer.d.ts.map +1 -1
- package/dist/asset-manager/src/renderers.d.ts +29 -8
- package/dist/asset-manager/src/renderers.d.ts.map +1 -1
- package/dist/bridge/drivers/claude-sdk.js +14 -14
- package/dist/bridge/drivers/codex.js +20 -14
- package/dist/bridge/drivers/codex.js.map +1 -1
- package/dist/bridge/drivers/continue.js +11 -11
- package/dist/bridge/drivers/echo.js +3 -3
- package/dist/bridge/drivers/gemini.js +6 -6
- package/dist/bridge/drivers/goose.js +11 -11
- package/dist/bridge/drivers/omp.js +4 -4
- package/dist/bridge/drivers/opencode.js +11 -11
- package/dist/bridge/drivers/qwen.js +6 -6
- package/dist/bridge/index.js +15 -15
- package/dist/bridge/src/codex/native-policy.d.ts +1 -1
- package/dist/bridge/src/drivers/codex.d.ts +2 -1
- package/dist/bridge/src/drivers/codex.d.ts.map +1 -1
- package/dist/{chunk-LCULZ4ED.js → chunk-27HS2DHB.js} +4 -4
- package/dist/{chunk-LCULZ4ED.js.map → chunk-27HS2DHB.js.map} +1 -1
- package/dist/{chunk-X4GO3GJZ.js → chunk-2GRB5ITE.js} +4 -4
- package/dist/{chunk-X4GO3GJZ.js.map → chunk-2GRB5ITE.js.map} +1 -1
- package/dist/{chunk-ES2FXWQ4.js → chunk-2NYXQYHN.js} +4 -4
- package/dist/{chunk-ES2FXWQ4.js.map → chunk-2NYXQYHN.js.map} +1 -1
- package/dist/{chunk-ORUHADS6.js → chunk-2W4LBLIN.js} +386 -60
- package/dist/chunk-2W4LBLIN.js.map +1 -0
- package/dist/{chunk-SNVOASTL.js → chunk-2XFUXGV6.js} +3 -3
- package/dist/{chunk-SNVOASTL.js.map → chunk-2XFUXGV6.js.map} +1 -1
- package/dist/{chunk-ZDKJHQY2.js → chunk-3TXEJN4W.js} +2 -2
- package/dist/{chunk-ZDKJHQY2.js.map → chunk-3TXEJN4W.js.map} +1 -1
- package/dist/{chunk-5Y3L7XWH.js → chunk-436GRQC2.js} +15 -15
- package/dist/chunk-436GRQC2.js.map +1 -0
- package/dist/{chunk-JELTQ4H7.js → chunk-45VFGT7A.js} +3 -3
- package/dist/{chunk-JELTQ4H7.js.map → chunk-45VFGT7A.js.map} +1 -1
- package/dist/{chunk-XGIS325V.js → chunk-46OVMT76.js} +3 -3
- package/dist/{chunk-XGIS325V.js.map → chunk-46OVMT76.js.map} +1 -1
- package/dist/{chunk-37GBJLF5.js → chunk-47ZD34KB.js} +3 -3
- package/dist/{chunk-37GBJLF5.js.map → chunk-47ZD34KB.js.map} +1 -1
- package/dist/{chunk-MMC24L2W.js → chunk-4CTGEEN6.js} +274 -121
- package/dist/chunk-4CTGEEN6.js.map +1 -0
- package/dist/{chunk-LFEGIZTW.js → chunk-4GNJELPH.js} +2 -2
- package/dist/{chunk-LFEGIZTW.js.map → chunk-4GNJELPH.js.map} +1 -1
- package/dist/{chunk-V7VDSFPS.js → chunk-5B5IZVEP.js} +2 -2
- package/dist/{chunk-V7VDSFPS.js.map → chunk-5B5IZVEP.js.map} +1 -1
- package/dist/{chunk-CODXK5L5.js → chunk-6NPINANG.js} +6 -6
- package/dist/{chunk-CODXK5L5.js.map → chunk-6NPINANG.js.map} +1 -1
- package/dist/{chunk-XBM5ND55.js → chunk-7KLC4LZO.js} +8 -8
- package/dist/{chunk-XBM5ND55.js.map → chunk-7KLC4LZO.js.map} +1 -1
- package/dist/{chunk-SR4RFKHM.js → chunk-7ZHLYXTI.js} +3 -3
- package/dist/{chunk-SR4RFKHM.js.map → chunk-7ZHLYXTI.js.map} +1 -1
- package/dist/{chunk-WX74MVNA.js → chunk-AO7VJ6G6.js} +3 -24
- package/dist/chunk-AO7VJ6G6.js.map +1 -0
- package/dist/{chunk-DPMKI26Y.js → chunk-AOAZCSDI.js} +4 -3
- package/dist/chunk-AOAZCSDI.js.map +1 -0
- package/dist/{chunk-YK7WJSTD.js → chunk-BF33SCLY.js} +10 -5
- package/dist/chunk-BF33SCLY.js.map +1 -0
- package/dist/{chunk-VKSA2CDJ.js → chunk-BTISGSK4.js} +4 -4
- package/dist/{chunk-VKSA2CDJ.js.map → chunk-BTISGSK4.js.map} +1 -1
- package/dist/{chunk-TOSHZX4C.js → chunk-CPSIPIX7.js} +2 -2
- package/dist/chunk-CPSIPIX7.js.map +1 -0
- package/dist/{chunk-K2K7OF4P.js → chunk-DMLDYFDS.js} +23 -6
- package/dist/chunk-DMLDYFDS.js.map +1 -0
- package/dist/{chunk-EJYZ3MKJ.js → chunk-DZM73WDN.js} +4 -4
- package/dist/{chunk-EJYZ3MKJ.js.map → chunk-DZM73WDN.js.map} +1 -1
- package/dist/{chunk-QMWMSZQ4.js → chunk-FK6HPLQA.js} +3 -3
- package/dist/{chunk-QMWMSZQ4.js.map → chunk-FK6HPLQA.js.map} +1 -1
- package/dist/chunk-FRHE7FFB.js +655 -0
- package/dist/chunk-FRHE7FFB.js.map +1 -0
- package/dist/{chunk-75EX5GY4.js → chunk-IPWR33AW.js} +181 -111
- package/dist/chunk-IPWR33AW.js.map +1 -0
- package/dist/{chunk-C4GF7RSQ.js → chunk-KUFNKVBM.js} +3 -3
- package/dist/{chunk-C4GF7RSQ.js.map → chunk-KUFNKVBM.js.map} +1 -1
- package/dist/{chunk-GCYD4EGY.js → chunk-KYXOGHY6.js} +4 -4
- package/dist/{chunk-GCYD4EGY.js.map → chunk-KYXOGHY6.js.map} +1 -1
- package/dist/{chunk-G474PBUQ.js → chunk-LLKKLKZJ.js} +3 -3
- package/dist/{chunk-G474PBUQ.js.map → chunk-LLKKLKZJ.js.map} +1 -1
- package/dist/{chunk-AC2N5BRP.js → chunk-MX3UQXLU.js} +18 -30
- package/dist/chunk-MX3UQXLU.js.map +1 -0
- package/dist/{chunk-N3Y43LMZ.js → chunk-MX6LZE2C.js} +34 -11
- package/dist/chunk-MX6LZE2C.js.map +1 -0
- package/dist/{chunk-BNUZEYC3.js → chunk-NARITJS2.js} +3 -3
- package/dist/{chunk-BNUZEYC3.js.map → chunk-NARITJS2.js.map} +1 -1
- package/dist/{chunk-3665M43C.js → chunk-NLXIALVO.js} +5 -5
- package/dist/{chunk-3665M43C.js.map → chunk-NLXIALVO.js.map} +1 -1
- package/dist/{chunk-UFS3FEBA.js → chunk-O5GDKC5I.js} +3 -3
- package/dist/{chunk-UFS3FEBA.js.map → chunk-O5GDKC5I.js.map} +1 -1
- package/dist/{chunk-Y4QWHIHB.js → chunk-OGLDAJFL.js} +4 -4
- package/dist/{chunk-Y4QWHIHB.js.map → chunk-OGLDAJFL.js.map} +1 -1
- package/dist/chunk-OLLAQLFJ.js +17 -0
- package/dist/chunk-OLLAQLFJ.js.map +1 -0
- package/dist/{chunk-LFMX2UEF.js → chunk-PA7WLID3.js} +86 -69
- package/dist/chunk-PA7WLID3.js.map +1 -0
- package/dist/{chunk-K2NUT3HO.js → chunk-PJS2YWGG.js} +6 -6
- package/dist/{chunk-K2NUT3HO.js.map → chunk-PJS2YWGG.js.map} +1 -1
- package/dist/{chunk-G2O2AARG.js → chunk-RGXVQZOV.js} +6021 -3099
- package/dist/chunk-RGXVQZOV.js.map +1 -0
- package/dist/{chunk-R4G7XI7A.js → chunk-S7QXEXKY.js} +4 -5
- package/dist/chunk-S7QXEXKY.js.map +1 -0
- package/dist/{chunk-JKWU6ULI.js → chunk-SDFROXSA.js} +3 -3
- package/dist/{chunk-JKWU6ULI.js.map → chunk-SDFROXSA.js.map} +1 -1
- package/dist/{chunk-WHSQSVN2.js → chunk-SX4UIDKT.js} +3 -3
- package/dist/{chunk-WHSQSVN2.js.map → chunk-SX4UIDKT.js.map} +1 -1
- package/dist/{chunk-3JHFFIQ6.js → chunk-TZCQ7ZWQ.js} +83 -9
- package/dist/chunk-TZCQ7ZWQ.js.map +1 -0
- package/dist/{chunk-UHLBDAJR.js → chunk-UAP2XHRF.js} +10 -10
- package/dist/{chunk-UHLBDAJR.js.map → chunk-UAP2XHRF.js.map} +1 -1
- package/dist/{chunk-P6KFWTGP.js → chunk-V7NN3HXR.js} +7 -12
- package/dist/chunk-V7NN3HXR.js.map +1 -0
- package/dist/{chunk-LAI7X6I2.js → chunk-VBBBZDI7.js} +3 -3
- package/dist/{chunk-LAI7X6I2.js.map → chunk-VBBBZDI7.js.map} +1 -1
- package/dist/{chunk-TNWXGHLD.js → chunk-VKSXST23.js} +51 -42
- package/dist/chunk-VKSXST23.js.map +1 -0
- package/dist/{chunk-HTKZ4AOW.js → chunk-VSQFGU5D.js} +3 -3
- package/dist/{chunk-HTKZ4AOW.js.map → chunk-VSQFGU5D.js.map} +1 -1
- package/dist/{chunk-JBPG5KQC.js → chunk-VX3INFBA.js} +4 -4
- package/dist/{chunk-JBPG5KQC.js.map → chunk-VX3INFBA.js.map} +1 -1
- package/dist/{chunk-Y7UBRRKG.js → chunk-XOGG7VDZ.js} +40 -31
- package/dist/chunk-XOGG7VDZ.js.map +1 -0
- package/dist/{chunk-JAJG4G5E.js → chunk-ZBBM6O6P.js} +3 -3
- package/dist/{chunk-JAJG4G5E.js.map → chunk-ZBBM6O6P.js.map} +1 -1
- package/dist/cli/index.js +4997 -3410
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/src/asset-feeds.d.ts.map +1 -1
- package/dist/cli/src/commands/catalog.d.ts +7 -7
- package/dist/cli/src/commands/catalog.d.ts.map +1 -1
- package/dist/cli/src/commands/connector.d.ts +2 -2
- package/dist/cli/src/commands/connector.d.ts.map +1 -1
- package/dist/cli/src/commands/diff.d.ts.map +1 -1
- package/dist/cli/src/commands/history.d.ts.map +1 -1
- package/dist/cli/src/commands/library-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/manage.d.ts.map +1 -1
- package/dist/cli/src/commands/migrate-agents.d.ts +131 -0
- package/dist/cli/src/commands/migrate-agents.d.ts.map +1 -0
- package/dist/cli/src/commands/migrate-assets.d.ts +54 -0
- package/dist/cli/src/commands/migrate-assets.d.ts.map +1 -0
- package/dist/cli/src/commands/migrate-files.d.ts +52 -0
- package/dist/cli/src/commands/migrate-files.d.ts.map +1 -0
- package/dist/cli/src/commands/migrate-providers.d.ts +5 -8
- package/dist/cli/src/commands/migrate-providers.d.ts.map +1 -1
- package/dist/cli/src/commands/migrate.d.ts +21 -0
- package/dist/cli/src/commands/migrate.d.ts.map +1 -0
- package/dist/cli/src/commands/npx.d.ts.map +1 -1
- package/dist/cli/src/commands/outdated.d.ts.map +1 -1
- package/dist/cli/src/commands/patch.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 +13 -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/show.d.ts.map +1 -1
- package/dist/cli/src/commands/tree.d.ts.map +1 -1
- package/dist/cli/src/commands/update.d.ts.map +1 -1
- package/dist/cli/src/commands/validate-instances.d.ts +17 -0
- package/dist/cli/src/commands/validate-instances.d.ts.map +1 -0
- package/dist/cli/src/commands/validate.d.ts +14 -0
- package/dist/cli/src/commands/validate.d.ts.map +1 -1
- package/dist/cli/src/commands/why.d.ts.map +1 -1
- package/dist/cli/src/helpers.d.ts.map +1 -1
- package/dist/cli/src/open-library.d.ts.map +1 -1
- package/dist/cli/src/open-registry.d.ts +13 -16
- package/dist/cli/src/open-registry.d.ts.map +1 -1
- package/dist/cli/src/type-guards.d.ts +3 -0
- package/dist/cli/src/type-guards.d.ts.map +1 -0
- package/dist/connectors/config.js +6 -6
- package/dist/connectors/index.js +19 -19
- package/dist/{connectors-MPYCSQNG.js → connectors-HWENZFKW.js} +22 -22
- package/dist/{connectors-MPYCSQNG.js.map → connectors-HWENZFKW.js.map} +1 -1
- package/dist/connectors-shared/index.js +2 -2
- package/dist/core/driver-targets.js +1 -1
- package/dist/core/index.js +8 -8
- package/dist/core/manifest.js +2 -2
- package/dist/core/models.js +1 -1
- package/dist/core/publish-manifest.js +2 -2
- package/dist/core/ref.js +1 -1
- package/dist/core/runtime-assets.js +6 -6
- package/dist/core/src/agent-instances.d.ts +93 -0
- package/dist/core/src/agent-instances.d.ts.map +1 -0
- package/dist/core/src/agent-prompt-sections.d.ts +90 -0
- package/dist/core/src/agent-prompt-sections.d.ts.map +1 -0
- package/dist/core/src/driver-targets.d.ts +4 -2
- package/dist/core/src/driver-targets.d.ts.map +1 -1
- package/dist/core/src/index.d.ts +12 -8
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/core/src/manifest.d.ts +71 -27
- package/dist/core/src/manifest.d.ts.map +1 -1
- package/dist/core/src/models.d.ts +6 -92
- package/dist/core/src/models.d.ts.map +1 -1
- package/dist/core/src/repo-manager.d.ts +47 -3
- package/dist/core/src/repo-manager.d.ts.map +1 -1
- package/dist/core/src/type-guards.d.ts +3 -0
- package/dist/core/src/type-guards.d.ts.map +1 -0
- package/dist/core/src/walker.d.ts +7 -3
- package/dist/core/src/walker.d.ts.map +1 -1
- package/dist/core/src/workspace-config.d.ts +19 -15
- package/dist/core/src/workspace-config.d.ts.map +1 -1
- package/dist/core/store.js +2 -2
- package/dist/core/workspace-config.js +5 -5
- package/dist/deploy/index.js +8 -8
- package/dist/discovery/index.js +6 -6
- package/dist/discovery/src/builtin-providers.d.ts +5 -4
- package/dist/discovery/src/builtin-providers.d.ts.map +1 -1
- package/dist/discovery/src/default-registry.d.ts +23 -0
- package/dist/discovery/src/default-registry.d.ts.map +1 -0
- package/dist/discovery/src/discover.d.ts +0 -6
- package/dist/discovery/src/discover.d.ts.map +1 -1
- package/dist/discovery/src/index.d.ts +2 -1
- package/dist/discovery/src/index.d.ts.map +1 -1
- package/dist/discovery/src/tree-entries.d.ts +1 -1
- package/dist/discovery/src/tree-entries.d.ts.map +1 -1
- package/dist/{ensure-sources-QFRA46DJ.js → ensure-sources-VCPKNPK2.js} +21 -21
- package/dist/{ensure-sources-QFRA46DJ.js.map → ensure-sources-VCPKNPK2.js.map} +1 -1
- package/dist/factory-assets/README.md +3 -3
- package/dist/factory-assets/connectors/box.js +19 -19
- package/dist/factory-assets/connectors/deploy.js +19 -19
- package/dist/factory-assets/connectors/devserver.js +19 -19
- package/dist/factory-assets/connectors/flow/adapter.js +19 -19
- package/dist/factory-assets/connectors/flow/engine/flow-kind-provider.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine.js +9 -9
- package/dist/factory-assets/connectors/flow/run-flow.js +21 -21
- package/dist/factory-assets/connectors/flow.js +19 -19
- package/dist/factory-assets/connectors/git.js +19 -19
- package/dist/factory-assets/connectors/gmail.js +19 -19
- package/dist/factory-assets/connectors/googledrive.js +19 -19
- package/dist/factory-assets/connectors/local.js +19 -19
- package/dist/factory-assets/connectors/mattermost.js +19 -19
- package/dist/factory-assets/connectors/memory.js +19 -19
- package/dist/factory-assets/connectors/minio.js +19 -19
- package/dist/factory-assets/connectors/postgres.js +19 -19
- package/dist/factory-assets/connectors/s3.js +19 -19
- package/dist/factory-assets/connectors/sharepoint.js +19 -19
- package/dist/factory-assets/connectors/sqlite.js +19 -19
- package/dist/factory-assets/connectors/static-server.js +19 -19
- package/dist/factory-assets/connectors/tunnel.js +19 -19
- package/dist/factory-assets/connectors/webdav.js +19 -19
- package/dist/factory-assets/connectors/xstate-store.js +19 -19
- package/dist/factory-assets/connectors/xstate.js +19 -19
- package/dist/factory-assets/index.js.map +1 -1
- package/dist/factory-assets/presets/workspaces-authoring/workspaces-authoring.preset.yaml +9 -0
- package/dist/factory-assets/skaile.manifest.yaml +2 -2
- package/dist/factory-assets/skills/authoring-skaile-assets/SKILL.md +16 -12
- package/dist/factory-assets/skills/authoring-skaile-manifests/SKILL.md +8 -8
- package/dist/factory-assets/skills/authoring-skaile-manifests/references/dependency-standard.md +13 -11
- package/dist/factory-assets/skills/skaile-manage-workspace/SKILL.md +1 -1
- package/dist/{flows-KCARGXRT.js → flows-ENQY2DV7.js} +13 -13
- package/dist/{flows-KCARGXRT.js.map → flows-ENQY2DV7.js.map} +1 -1
- package/dist/{helpers-PSROT7CU.js → helpers-IW36CEJX.js} +21 -21
- package/dist/{helpers-PSROT7CU.js.map → helpers-IW36CEJX.js.map} +1 -1
- package/dist/library/index.js +13 -13
- package/dist/library/install.js +3 -3
- package/dist/library/src/index.d.ts +2 -2
- package/dist/library/src/index.d.ts.map +1 -1
- package/dist/library/src/library.d.ts +2 -12
- package/dist/library/src/library.d.ts.map +1 -1
- package/dist/library/src/local/local-catalog-source.d.ts +2 -2
- package/dist/library/src/local/local-catalog-source.d.ts.map +1 -1
- package/dist/library/src/manifest-writer.d.ts +4 -1
- package/dist/library/src/manifest-writer.d.ts.map +1 -1
- package/dist/library/src/sync/manifest-writeback.d.ts.map +1 -1
- package/dist/{library-publish-YAI7WOXC.js → library-publish-R3DQLMTD.js} +27 -27
- package/dist/{library-publish-YAI7WOXC.js.map → library-publish-R3DQLMTD.js.map} +1 -1
- package/dist/open-library-FAJZRDKE.js +40 -0
- package/dist/{open-library-Z5NJU4Z5.js.map → open-library-FAJZRDKE.js.map} +1 -1
- package/dist/open-registry-NVPCQPND.js +32 -0
- package/dist/{open-registry-TYUVN5SG.js.map → open-registry-NVPCQPND.js.map} +1 -1
- package/dist/paths-YUCP7K6U.js +22 -0
- package/dist/{paths-HKAXUR3W.js.map → paths-YUCP7K6U.js.map} +1 -1
- package/dist/{plugin-store-N6SI2TYM.js → plugin-store-66QFBNEO.js} +10 -10
- package/dist/{plugin-store-N6SI2TYM.js.map → plugin-store-66QFBNEO.js.map} +1 -1
- package/dist/plugins/index.js +1 -1
- package/dist/plugins/src/asset-kind-provider.d.ts +14 -2
- package/dist/plugins/src/asset-kind-provider.d.ts.map +1 -1
- package/dist/plugins/src/index.d.ts +1 -1
- package/dist/plugins/src/index.d.ts.map +1 -1
- package/dist/project-ALJIVFHI.js +41 -0
- package/dist/{project-SVS4UMGL.js.map → project-ALJIVFHI.js.map} +1 -1
- package/dist/resolver/index.js +9 -9
- package/dist/runner/index.js +34 -29
- package/dist/runner/src/agent-capabilities.d.ts +101 -0
- package/dist/runner/src/agent-capabilities.d.ts.map +1 -0
- package/dist/runner/src/agent.d.ts.map +1 -1
- package/dist/runner/src/agents/in-process-host.d.ts +56 -0
- package/dist/runner/src/agents/in-process-host.d.ts.map +1 -0
- package/dist/runner/src/agents/instances.d.ts +62 -0
- package/dist/runner/src/agents/instances.d.ts.map +1 -0
- package/dist/runner/src/agents/json-schema.d.ts +16 -0
- package/dist/runner/src/agents/json-schema.d.ts.map +1 -0
- package/dist/runner/src/agents/memory-run-store.d.ts +19 -0
- package/dist/runner/src/agents/memory-run-store.d.ts.map +1 -0
- package/dist/runner/src/agents/run-controller.d.ts +208 -0
- package/dist/runner/src/agents/run-controller.d.ts.map +1 -0
- package/dist/runner/src/agents/standalone-surface.d.ts +30 -0
- package/dist/runner/src/agents/standalone-surface.d.ts.map +1 -0
- package/dist/runner/src/capability-registry.d.ts.map +1 -1
- package/dist/runner/src/composition/bootstrap.d.ts +13 -51
- package/dist/runner/src/composition/bootstrap.d.ts.map +1 -1
- package/dist/runner/src/composition/compile.d.ts +43 -27
- package/dist/runner/src/composition/compile.d.ts.map +1 -1
- package/dist/runner/src/composition/content-source.d.ts +94 -0
- package/dist/runner/src/composition/content-source.d.ts.map +1 -0
- package/dist/runner/src/composition/dry-run.d.ts +34 -0
- package/dist/runner/src/composition/dry-run.d.ts.map +1 -0
- package/dist/runner/src/composition/errors.d.ts +41 -0
- package/dist/runner/src/composition/errors.d.ts.map +1 -0
- package/dist/runner/src/composition/index.d.ts +10 -3
- package/dist/runner/src/composition/index.d.ts.map +1 -1
- package/dist/runner/src/composition/prompt-sections.d.ts +31 -0
- package/dist/runner/src/composition/prompt-sections.d.ts.map +1 -0
- package/dist/runner/src/composition/resolve-instance.d.ts +140 -0
- package/dist/runner/src/composition/resolve-instance.d.ts.map +1 -0
- package/dist/runner/src/composition/resolve.d.ts +43 -25
- package/dist/runner/src/composition/resolve.d.ts.map +1 -1
- package/dist/runner/src/composition/revision-hash.d.ts +58 -0
- package/dist/runner/src/composition/revision-hash.d.ts.map +1 -0
- package/dist/runner/src/composition/run-snapshot.d.ts +37 -0
- package/dist/runner/src/composition/run-snapshot.d.ts.map +1 -0
- package/dist/runner/src/composition/types.d.ts +79 -12
- package/dist/runner/src/composition/types.d.ts.map +1 -1
- package/dist/runner/src/index.d.ts +2 -0
- package/dist/runner/src/index.d.ts.map +1 -1
- package/dist/runner/src/manifest.d.ts +1 -1
- package/dist/runner/src/manifest.d.ts.map +1 -1
- package/dist/runner/src/mixin-resolver.d.ts +14 -15
- package/dist/runner/src/mixin-resolver.d.ts.map +1 -1
- package/dist/runner/src/serve.d.ts +6 -0
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/runner/src/session-builder.d.ts +35 -6
- package/dist/runner/src/session-builder.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +18 -18
- package/dist/sdk/bridge.js +15 -15
- package/dist/sdk/core.js +8 -8
- package/dist/sdk/flow.js +9 -9
- package/dist/sdk/index.js +34 -29
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/resolver.js +9 -9
- package/dist/sdk/runner.js +34 -29
- package/dist/sdk/session.js +2 -2
- package/dist/sdk/types.js +1 -1
- package/dist/secrets/index.js +2 -2
- package/dist/session/index.js +2 -2
- package/dist/{setup-IOEZGJNC.js → setup-35JXIA3N.js} +28 -28
- package/dist/{setup-IOEZGJNC.js.map → setup-35JXIA3N.js.map} +1 -1
- package/dist/skills-CS7NE5TT.js +26 -0
- package/dist/{skills-HW6I6ZZ7.js.map → skills-CS7NE5TT.js.map} +1 -1
- package/dist/source-ISR4KRZV.js +41 -0
- package/dist/{source-OKRJT53H.js.map → source-ISR4KRZV.js.map} +1 -1
- package/dist/{source-manifest-publish-MILEQDRD.js → source-manifest-publish-P22IPK5F.js} +27 -27
- package/dist/{source-manifest-publish-MILEQDRD.js.map → source-manifest-publish-P22IPK5F.js.map} +1 -1
- package/dist/tui/index.js +34 -29
- 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/agent-lifecycle.d.ts +402 -0
- package/dist/types/src/agent-lifecycle.d.ts.map +1 -0
- package/dist/types/src/capabilities.d.ts +0 -4
- package/dist/types/src/capabilities.d.ts.map +1 -1
- package/dist/types/src/delivery.d.ts.map +1 -1
- package/dist/types/src/events.d.ts +66 -4
- package/dist/types/src/events.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/lifecycle.d.ts +21 -3
- package/dist/types/src/lifecycle.d.ts.map +1 -1
- package/dist/types/src/manifests/_shared.d.ts +1 -16
- package/dist/types/src/manifests/_shared.d.ts.map +1 -1
- package/dist/types/src/manifests/agent-composition.d.ts +44 -0
- package/dist/types/src/manifests/agent-composition.d.ts.map +1 -0
- package/dist/types/src/manifests/agent.d.ts +184 -6
- package/dist/types/src/manifests/agent.d.ts.map +1 -1
- package/dist/types/src/manifests/index.d.ts +6 -15
- package/dist/types/src/manifests/index.d.ts.map +1 -1
- package/dist/types/src/manifests/preset.d.ts +5 -5
- package/dist/types/src/version.d.ts +16 -1
- package/dist/types/src/version.d.ts.map +1 -1
- package/dist/workspace-plugin/adapters/mcp.js +26 -26
- package/dist/workspace-plugin/adapters/omp.js +14 -14
- package/dist/workspace-plugin/index.js +1 -1
- package/package.json +1 -1
- package/dist/asset-feeds-KTFUB7EX.js.map +0 -1
- package/dist/chunk-2D2P7HSR.js +0 -15
- package/dist/chunk-2D2P7HSR.js.map +0 -1
- package/dist/chunk-3JHFFIQ6.js.map +0 -1
- package/dist/chunk-5CYEWBPB.js +0 -440
- package/dist/chunk-5CYEWBPB.js.map +0 -1
- package/dist/chunk-5Y3L7XWH.js.map +0 -1
- package/dist/chunk-75EX5GY4.js.map +0 -1
- package/dist/chunk-AC2N5BRP.js.map +0 -1
- package/dist/chunk-DPMKI26Y.js.map +0 -1
- package/dist/chunk-G2O2AARG.js.map +0 -1
- package/dist/chunk-K2K7OF4P.js.map +0 -1
- package/dist/chunk-LFMX2UEF.js.map +0 -1
- package/dist/chunk-MMC24L2W.js.map +0 -1
- package/dist/chunk-N3Y43LMZ.js.map +0 -1
- package/dist/chunk-ORUHADS6.js.map +0 -1
- package/dist/chunk-P6KFWTGP.js.map +0 -1
- package/dist/chunk-R4G7XI7A.js.map +0 -1
- package/dist/chunk-TNWXGHLD.js.map +0 -1
- package/dist/chunk-TOSHZX4C.js.map +0 -1
- package/dist/chunk-WX74MVNA.js.map +0 -1
- package/dist/chunk-Y7UBRRKG.js.map +0 -1
- package/dist/chunk-YK7WJSTD.js.map +0 -1
- package/dist/factory-assets/bundles/workspaces-authoring/workspaces-authoring.bundle.yaml +0 -9
- package/dist/open-library-Z5NJU4Z5.js +0 -40
- package/dist/open-registry-TYUVN5SG.js +0 -32
- package/dist/paths-HKAXUR3W.js +0 -22
- package/dist/project-SVS4UMGL.js +0 -36
- package/dist/skills-HW6I6ZZ7.js +0 -26
- package/dist/source-OKRJT53H.js +0 -41
- package/dist/types/src/manifests/mount.d.ts +0 -21
- package/dist/types/src/manifests/mount.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-feeds.d.ts","sourceRoot":"","sources":["../../../cli/src/asset-feeds.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAEL,KAAK,YAAY,EAGlB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"asset-feeds.d.ts","sourceRoot":"","sources":["../../../cli/src/asset-feeds.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAEL,KAAK,YAAY,EAGlB,MAAM,yBAAyB,CAAC;AAGjC,yEAAyE;AACzE,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,SAAS,CAAC;IACpD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAErE,iEAAiE;AACjE,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,YAAY,CAAC;IACpB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB;AA0FD,iFAAiF;AACjF,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IACtC,eAAe,EAAE,MAAM;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC7D;AAkED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACpC,EAAE,EAAE,gBAAgB,EACpB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,eAAe,CAAC,CAa1B"}
|
|
@@ -113,12 +113,12 @@ export declare function promptSoftDepAdds(am: Pick<AssetManager, "reportSoftDeps
|
|
|
113
113
|
onHint: (line: string) => void;
|
|
114
114
|
}): Promise<void>;
|
|
115
115
|
/**
|
|
116
|
-
* Discoverability hint for `skaile add`: when the added asset is
|
|
117
|
-
* or more
|
|
118
|
-
* Hint only —
|
|
119
|
-
* several
|
|
116
|
+
* Discoverability hint for `skaile add`: when the added asset is an item of one
|
|
117
|
+
* or more presets, name each preset and the command that adds the whole set.
|
|
118
|
+
* Hint only — an item-to-preset link is not a dependency (an asset can sit in
|
|
119
|
+
* several presets), so nothing extra is added.
|
|
120
120
|
*/
|
|
121
|
-
export declare function
|
|
121
|
+
export declare function reportPresetMembership(am: Pick<AssetManager, "presetsContaining">, ref: string, onHint: (line: string) => void): Promise<void>;
|
|
122
122
|
/**
|
|
123
123
|
* The `remove` counterpart to {@link promptSoftDepAdds}: after removing `ref`,
|
|
124
124
|
* offer to also remove each soft-dep target of `ref` that is now orphaned (no
|
|
@@ -138,7 +138,7 @@ export declare function promptSoftDepRemovals(am: Pick<AssetManager, "orphanedSo
|
|
|
138
138
|
/**
|
|
139
139
|
* Create the `skaile add` command.
|
|
140
140
|
*
|
|
141
|
-
* Installs a skill, agent, flow, or
|
|
141
|
+
* Installs a skill, agent, flow, or preset from the catalog into the current
|
|
142
142
|
* workspace. Resolves transitive dependencies declared in the asset's manifest
|
|
143
143
|
* and deploys all files to the driver target directory (default: `claude-code`).
|
|
144
144
|
* Accepts `--global` to deploy to `~/.claude` instead of the project directory.
|
|
@@ -242,7 +242,7 @@ export declare function makeInfoCommand(): Command;
|
|
|
242
242
|
/**
|
|
243
243
|
* Create the `skaile create` command.
|
|
244
244
|
*
|
|
245
|
-
* Scaffolds a new skill, agent, flow, or
|
|
245
|
+
* Scaffolds a new skill, agent, flow, or preset in the target directory using
|
|
246
246
|
* the AI skill builder via {@link AssetManager.create}. Accepts `-k`/`--kind`
|
|
247
247
|
* to specify the asset type (default: `skill`) and `-d`/`--dir` to set the
|
|
248
248
|
* destination directory (default: current working directory).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/catalog.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EACL,YAAY,EAOb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/catalog.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EACL,YAAY,EAOb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,KAAK,YAAY,EAOlB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAqB5C;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC,GAC/D,MAAM,CAER;AAWD,8FAA8F;AAC9F,wBAAgB,aAAa,IAAI,MAAM,CAGtC;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAK9D;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC,GAAG,MAAM,CAE1F;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,YAAY,EAAE,EACtB,KAAK,EAAE,MAAM,GAAG,SAAS,GACxB,YAAY,EAAE,CAShB;AA2ND,qDAAqD;AACrD,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,6EAA6E;IAC7E,OAAO,EAAE,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AM,CAAA;CAAE,KAAK,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;AAErF,iFAAiF;AACjF,UAAU,eAAe;IACvB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;IAChD,YAAY,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,YAAY,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,YAAY,GAAG,IAAI,CAAC;IAC3B,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAyBD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,gBAAgB,CACpC,EAAE,EAAE,eAAe,EACnB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,eAAe,CAAA;CAAE,GAC1D,OAAO,CAAC,gBAAgB,CAAC,CA4D3B;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,IAAI,CAAC,gBAAgB,EAAE,WAAW,GAAG,eAAe,CAAC,GAC5D,MAAM,CAOR;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAsCzC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAoB3C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CA8B3C"}
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
* skaile connector delete <id> <path> [--project-dir]
|
|
17
17
|
* skaile connector run <id> <op> [--key value ...] [--project-dir]
|
|
18
18
|
*/
|
|
19
|
-
import type { CatalogEntry } from "@skaile/workspaces/core";
|
|
19
|
+
import type { CatalogEntry, ScanOptions } from "@skaile/workspaces/core";
|
|
20
20
|
import { Command } from "commander";
|
|
21
21
|
/**
|
|
22
22
|
* Scan every factory-assets root for connector catalog entries, de-duplicated by
|
|
23
23
|
* name. Roots are override-first (the `SKAILE_FACTORY_ASSETS_DIR` layer ahead of
|
|
24
24
|
* the bundled tree), so an env-supplied manifest shadows the bundled one.
|
|
25
25
|
*/
|
|
26
|
-
export declare function scanFactoryConnectors(scanDirectory: (dir: string, repoName: string) => Promise<CatalogEntry[]>, roots: string[]): Promise<CatalogEntry[]>;
|
|
26
|
+
export declare function scanFactoryConnectors(scanDirectory: (dir: string, repoName: string, options: ScanOptions) => Promise<CatalogEntry[]>, roots: string[]): Promise<CatalogEntry[]>;
|
|
27
27
|
/**
|
|
28
28
|
* Creates the `skaile connector` command group.
|
|
29
29
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/connector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/connector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoBpC;;;;GAIG;AACH,wBAAsB,qBAAqB,CACzC,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,YAAY,EAAE,CAAC,EAC/F,KAAK,EAAE,MAAM,EAAE,GACd,OAAO,CAAC,YAAY,EAAE,CAAC,CAQzB;AAoHD;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAyX9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/diff.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/diff.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,IAAI,OAAO,CA2BzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/history.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/history.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IAAI,OAAO,CA4C5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library-cmd.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/library-cmd.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"library-cmd.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/library-cmd.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AA0BH,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAkJ5C,wBAAgB,kBAAkB,IAAI,OAAO,CAktB5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manage.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/manage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAIH,OAAO,EAAiB,KAAK,YAAY,EAAe,M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AQ,EAAE,EAChB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb,MAAM,EAAE,CAWV;AASD;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,QAAQ,EAAE,EAAE,UAAU,GAAE,MAAM,EAAO,GAAG,QAAQ,EAAE,CA2BjG;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,QAAQ,EAAE,EAChB,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,EAC5B,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,GAC5B,QAAQ,EAAE,CAaZ;AAED,sEAAsE;AACtE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAI1E;AA6ZD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,QAAQ,EAAE,CA6CzF;AA8xCD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAO3C"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `skaile migrate agents` — rewrite deprecated 0.1 agent inputs into the 0.2
|
|
3
|
+
* composition model.
|
|
4
|
+
*
|
|
5
|
+
* Per `agent.yaml` (edited through the `yaml` Document API, so comments and key
|
|
6
|
+
* order survive):
|
|
7
|
+
*
|
|
8
|
+
* | 0.1 input | 0.2 result |
|
|
9
|
+
* |-----------------------------------|------------------------------------------------------|
|
|
10
|
+
* | `skills: [x]`, `abilities: [x]` | `composes: [{ kind: skill, ref }]` (`./skills/x` when the agent dir ships it, else `skill:x`) |
|
|
11
|
+
* | `contracts: [x]` | `{ kind: contract, ref }` |
|
|
12
|
+
* | `persona: [path]` | `{ kind: persona, ref: path }` |
|
|
13
|
+
* | `rules: [path]` | `{ kind: ruleset, ref: path }` |
|
|
14
|
+
* | `knowledge: [x]` | `{ kind: knowledge, ref }` |
|
|
15
|
+
* | `requires: [{name, source}]`, `dependencies: [kind:x]` | `{ kind: agent, ref, as: name, binding: delegate }` (a `kind:` prefix on a string picks the kind) |
|
|
16
|
+
* | `metadata.orchestrates: [skill:x]`| `{ kind: skill, ref }` (prefix picks the kind) |
|
|
17
|
+
* | `metadata.routes_to: [agent:x]` | `{ kind: agent, ref, binding: delegate }` |
|
|
18
|
+
* | `metadata.knows: [knowledge:x]` | `{ kind: knowledge, ref }` |
|
|
19
|
+
* | `metadata.soul: path` | dropped when it names `SOUL.md` (the convention file), else `{ kind: persona, ref }` |
|
|
20
|
+
* | `spec_version` | `"0.2"` |
|
|
21
|
+
*
|
|
22
|
+
* `routes_to` / `knows` entries that are prose ("skaile-dev monorepo structure
|
|
23
|
+
* (…)") rather than an explicit ref (`kind:` prefix, path, or `@publisher/name`)
|
|
24
|
+
* cannot be resolved; they move to `metadata.routing_notes` /
|
|
25
|
+
* `metadata.knowledge_notes` unchanged, so no information is lost.
|
|
26
|
+
*
|
|
27
|
+
* Per workspace `skaile.yaml`: `agent.subagents.<name>` becomes a local role
|
|
28
|
+
* asset `.skaile/agents/<name>/{agent.yaml,SOUL.md}` (prompt → SOUL.md) plus an
|
|
29
|
+
* `agents.<name>: { ref: ./.skaile/agents/<name>, lifecycle: role }` instance.
|
|
30
|
+
*/
|
|
31
|
+
import type { IAssetKindRegistry } from "@skaile/workspaces/plugins";
|
|
32
|
+
import { type FileChange } from "./migrate-files.ts";
|
|
33
|
+
/** The spec version the migrator targets. */
|
|
34
|
+
export declare const TARGET_SPEC_VERSION = "0.2";
|
|
35
|
+
/** Options of {@link migrateAgentYaml}. */
|
|
36
|
+
export interface AgentYamlMigrationOptions {
|
|
37
|
+
/** Directory holding the `agent.yaml` — relative refs and `./skills/<name>` detection resolve against it. */
|
|
38
|
+
agentDir: string;
|
|
39
|
+
/** Registered kind names; a `kind:` prefix is only honoured for these. */
|
|
40
|
+
knownKinds: ReadonlySet<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Restrict the rewrite to these deprecated top-level fields (`persona`,
|
|
43
|
+
* `rules`, …) and leave `metadata.*` and `spec_version` alone. Default: every
|
|
44
|
+
* deprecated field, plus the `spec_version` bump.
|
|
45
|
+
*/
|
|
46
|
+
fields?: readonly string[];
|
|
47
|
+
/** Rewrites the `ref` of every `persona` / `ruleset` item (used when files move). */
|
|
48
|
+
refRewrite?: (kind: string, ref: string) => string;
|
|
49
|
+
}
|
|
50
|
+
/** Result of {@link migrateAgentYaml}. */
|
|
51
|
+
export interface AgentYamlMigration {
|
|
52
|
+
/** The migrated text; byte-identical to the input when nothing changed. */
|
|
53
|
+
output: string;
|
|
54
|
+
/** Human-readable list of the rewrites that were applied. */
|
|
55
|
+
notes: string[];
|
|
56
|
+
/** Things the migrator could not (or deliberately did not) rewrite. */
|
|
57
|
+
manual: string[];
|
|
58
|
+
}
|
|
59
|
+
/** Thrown when the input is not YAML or not a mapping. */
|
|
60
|
+
export declare class AgentMigrationError extends Error {
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Migrate one `agent.yaml` text to spec 0.2. Pure: no filesystem writes (reads
|
|
64
|
+
* only the agent directory to detect shipped `skills/<name>` dirs).
|
|
65
|
+
*
|
|
66
|
+
* @throws {AgentMigrationError} when the text is not a YAML mapping.
|
|
67
|
+
*/
|
|
68
|
+
export declare function migrateAgentYaml(source: string, options: AgentYamlMigrationOptions): AgentYamlMigration;
|
|
69
|
+
/** Result of {@link migrateSubagents}. */
|
|
70
|
+
export interface SubagentMigration {
|
|
71
|
+
/** The rewritten skaile.yaml, plus the generated asset files. */
|
|
72
|
+
changes: FileChange[];
|
|
73
|
+
notes: string[];
|
|
74
|
+
manual: string[];
|
|
75
|
+
/** Absolute paths of generated `agent.yaml` files (for validation). */
|
|
76
|
+
assetManifests: Array<{
|
|
77
|
+
file: string;
|
|
78
|
+
text: string;
|
|
79
|
+
}>;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Turn `agent.subagents` of a `skaile.yaml` into local agent assets under
|
|
83
|
+
* `<dir>/.skaile/agents/<id>/` and `agents.<id>` role instances. Returns
|
|
84
|
+
* `undefined` when the file has no `agent.subagents`.
|
|
85
|
+
*
|
|
86
|
+
* A subagent whose target directory already exists, or whose id already is an
|
|
87
|
+
* `agents:` instance, stays in `subagents:` and is reported under `manual`
|
|
88
|
+
* (the config keeps failing to load until it is resolved by hand).
|
|
89
|
+
*/
|
|
90
|
+
export declare function migrateSubagents(skaileYamlPath: string, source: string): SubagentMigration | undefined;
|
|
91
|
+
/** Outcome of {@link validateMigratedAgent}. */
|
|
92
|
+
export interface AgentValidation {
|
|
93
|
+
errors: string[];
|
|
94
|
+
warnings: string[];
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The checks `skaile validate` runs on an `agent.yaml`: the 0.2 manifest schema,
|
|
98
|
+
* registered compose kinds, slot-id uniqueness and the remaining deprecation
|
|
99
|
+
* warnings.
|
|
100
|
+
*/
|
|
101
|
+
export declare function validateMigratedAgent(text: string, registry: IAssetKindRegistry): AgentValidation;
|
|
102
|
+
/** One migrated (or inspected) file in a plan. */
|
|
103
|
+
export interface AgentFileReport {
|
|
104
|
+
file: string;
|
|
105
|
+
/** `agent` (agent.yaml), `workspace` (skaile.yaml subagents) or `skipped`. */
|
|
106
|
+
kind: "agent" | "workspace" | "skipped";
|
|
107
|
+
changed: boolean;
|
|
108
|
+
notes: string[];
|
|
109
|
+
manual: string[];
|
|
110
|
+
validation?: AgentValidation;
|
|
111
|
+
}
|
|
112
|
+
/** The whole plan of `skaile migrate agents`. */
|
|
113
|
+
export interface AgentMigrationPlan {
|
|
114
|
+
changes: FileChange[];
|
|
115
|
+
reports: AgentFileReport[];
|
|
116
|
+
}
|
|
117
|
+
/** Options of {@link planAgentMigration}. */
|
|
118
|
+
export interface PlanAgentMigrationOptions {
|
|
119
|
+
/** Files or directories; `agent.yaml` and `skaile.yaml` files are collected. */
|
|
120
|
+
paths: readonly string[];
|
|
121
|
+
registry: IAssetKindRegistry;
|
|
122
|
+
}
|
|
123
|
+
/** Collect `agent.yaml` / `skaile.yaml` files from files and directories. */
|
|
124
|
+
export declare function collectAgentFiles(paths: readonly string[]): string[];
|
|
125
|
+
/**
|
|
126
|
+
* Plan the migration of every `agent.yaml` / `skaile.yaml` under `paths`.
|
|
127
|
+
* Output that does not pass the 0.2 checks is reported in `validation.errors`
|
|
128
|
+
* and its change is withheld, so `--write` never lands an invalid manifest.
|
|
129
|
+
*/
|
|
130
|
+
export declare function planAgentMigration(options: PlanAgentMigrationOptions): AgentMigrationPlan;
|
|
131
|
+
//# sourceMappingURL=migrate-agents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate-agents.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/migrate-agents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAIH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAoBrE,OAAO,EAAE,KAAK,UAAU,EAAuB,MAAM,oBAAoB,CAAC;AAG1E,6CAA6C;AAC7C,eAAO,MAAM,mBAAmB,QAAQ,CAAC;AAwFzC,2CAA2C;AAC3C,MAAM,WAAW,yBAAyB;IACxC,6GAA6G;IAC7G,QAAQ,EAAE,MAAM,CAAC;IACjB,0EAA0E;IAC1E,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,qFAAqF;IACrF,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CACpD;AAED,0CAA0C;AAC1C,MAAM,WAAW,kBAAkB;IACjC,2EAA2E;IAC3E,MAAM,E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DAAiD;AACjD,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,OAAO,EAAE,eAAe,EAAE,CAAC;CAC5B;AAED,6CAA6C;AAC7C,MAAM,WAAW,yBAAyB;IACxC,gFAAgF;IAChF,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,QAAQ,EAAE,kBAAkB,CAAC;CAC9B;AAED,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAapE;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,kBAAkB,CAwEzF"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `skaile migrate assets` — move a repo of AI assets onto the registry-derived
|
|
3
|
+
* kind model.
|
|
4
|
+
*
|
|
5
|
+
* (a) `type: persona` / `type: ruleset` markdown (`_agent-parts/personas/<n>.md`)
|
|
6
|
+
* moves to `<n>/PERSONA.md` / `<n>/RULESET.md` (the kind is file-derived,
|
|
7
|
+
* `type:` is dropped); `persona:` / `rules:` refs of agents that pointed at
|
|
8
|
+
* the old path become `composes[{ kind: persona|ruleset, ref: <new path> }]`.
|
|
9
|
+
* (b) every `*.bundle.yaml` becomes `<name>.preset.yaml` beside it
|
|
10
|
+
* (`name`, `description`, `version: 1.0.0`, `items: [{ ref: kind:@publisher/name }]`);
|
|
11
|
+
* `bundle:@…` refs in `skaile.yaml#dependencies` become `preset:@…`.
|
|
12
|
+
* (c) a `skaile.yaml` that still carries the publication half (`publisher`,
|
|
13
|
+
* `version`, `assets`) gets a publisher-only `skaile.manifest.yaml`
|
|
14
|
+
* (publisher normalised to its bare form, no `@`; `version` carried over),
|
|
15
|
+
* and the three keys are removed from it. The old `assets:` inventory is
|
|
16
|
+
* DROPPED, not converted: a manifest with `assets:` switches discovery
|
|
17
|
+
* into manifest mode where only listed assets exist, and the old list
|
|
18
|
+
* never covered the whole tree. Without it discovery walks the tree. A
|
|
19
|
+
* `skaile.yaml` left without any key is deleted. An existing
|
|
20
|
+
* `skaile.manifest.yaml` is never overwritten.
|
|
21
|
+
* (d) `type:` frontmatter that names no registered kind (in `SKILL.md` files and
|
|
22
|
+
* under `_agent-parts/`) is reported, never rewritten.
|
|
23
|
+
*
|
|
24
|
+
* The manifest text is produced by core's `encodeSkaileManifest` — the same
|
|
25
|
+
* writer behind `skaile source manifest init`/`rebuild`.
|
|
26
|
+
*/
|
|
27
|
+
import type { IAssetKindRegistry } from "@skaile/workspaces/plugins";
|
|
28
|
+
import { type FileChange } from "./migrate-files.ts";
|
|
29
|
+
/** A `type:` frontmatter value that names no registered kind. */
|
|
30
|
+
export interface UnknownType {
|
|
31
|
+
file: string;
|
|
32
|
+
type: string;
|
|
33
|
+
}
|
|
34
|
+
/** The plan of `skaile migrate assets`. */
|
|
35
|
+
export interface AssetMigrationPlan {
|
|
36
|
+
changes: FileChange[];
|
|
37
|
+
/** What each applied rewrite did, one line each. */
|
|
38
|
+
notes: string[];
|
|
39
|
+
/** Findings the migrator reports but does not rewrite. */
|
|
40
|
+
manual: string[];
|
|
41
|
+
unknownTypes: UnknownType[];
|
|
42
|
+
}
|
|
43
|
+
/** Options of {@link planAssetMigration}. */
|
|
44
|
+
export interface PlanAssetMigrationOptions {
|
|
45
|
+
/** Repo root to scan. */
|
|
46
|
+
root: string;
|
|
47
|
+
registry: IAssetKindRegistry;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Plan the asset migration of the repo at `options.root`. Pure with respect to
|
|
51
|
+
* the filesystem: nothing is written, the caller applies the returned changes.
|
|
52
|
+
*/
|
|
53
|
+
export declare function planAssetMigration(options: PlanAssetMigrationOptions): AssetMigrationPlan;
|
|
54
|
+
//# sourceMappingURL=migrate-assets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate-assets.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/migrate-assets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAKH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAWrE,OAAO,EAAE,KAAK,UAAU,EAAuB,MAAM,oBAAoB,CAAC;AAO1E,iEAAiE;AACjE,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,2CAA2C;AAC3C,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,oDAAoD;IACpD,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,0DAA0D;IAC1D,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B;AAED,6CAA6C;AAC7C,MAAM,WAAW,yBAAyB;IACxC,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,kBAAkB,CAAC;CAC9B;AAuXD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,kBAAkB,CAuCzF"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared plumbing of the file-rewriting `skaile migrate` subcommands
|
|
3
|
+
* (`agents`, `assets`): a planned-change model, a dependency-free unified diff
|
|
4
|
+
* and the one place that touches the disk.
|
|
5
|
+
*
|
|
6
|
+
* A migrator is a pure planner that returns {@link FileChange}s. The command
|
|
7
|
+
* layer prints them ({@link renderChange}) and only writes them with `--write`
|
|
8
|
+
* ({@link applyChanges}), so a dry run cannot write by construction.
|
|
9
|
+
*/
|
|
10
|
+
/** One planned filesystem change. Paths are absolute. */
|
|
11
|
+
export type FileChange = {
|
|
12
|
+
type: "write";
|
|
13
|
+
path: string;
|
|
14
|
+
before: string;
|
|
15
|
+
after: string;
|
|
16
|
+
} | {
|
|
17
|
+
type: "create";
|
|
18
|
+
path: string;
|
|
19
|
+
after: string;
|
|
20
|
+
} | {
|
|
21
|
+
type: "delete";
|
|
22
|
+
path: string;
|
|
23
|
+
before: string;
|
|
24
|
+
} | {
|
|
25
|
+
type: "move";
|
|
26
|
+
from: string;
|
|
27
|
+
to: string;
|
|
28
|
+
before: string;
|
|
29
|
+
after: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Recursively list files under `root` whose basename satisfies `match`.
|
|
33
|
+
* Skips VCS/build directories and `.skaile/cache`; symlinks are not followed.
|
|
34
|
+
* Results are sorted for a stable plan.
|
|
35
|
+
*/
|
|
36
|
+
export declare function walkFiles(root: string, match: (basename: string) => boolean): string[];
|
|
37
|
+
/** Read a UTF-8 file. */
|
|
38
|
+
export declare function readText(file: string): string;
|
|
39
|
+
/** Write all changes to disk. Parent directories are created; deletes tolerate missing files. */
|
|
40
|
+
export declare function applyChanges(changes: readonly FileChange[]): void;
|
|
41
|
+
/**
|
|
42
|
+
* Unified diff (`--- a`, `+++ b`, `@@` hunks with 3 lines of context) between two
|
|
43
|
+
* texts. Returns `""` when they are identical.
|
|
44
|
+
*/
|
|
45
|
+
export declare function unifiedDiff(before: string, after: string, oldLabel: string, newLabel: string, context?: number): string;
|
|
46
|
+
/** Colour a unified-diff text (headers dim, `-` red, `+` green). */
|
|
47
|
+
export declare function colorizeDiff(diff: string): string;
|
|
48
|
+
/** The unified diff of one change, labelled relative to `base`. */
|
|
49
|
+
export declare function renderChange(change: FileChange, base: string): string;
|
|
50
|
+
/** Paths a change touches, relative to `base`, for summaries. */
|
|
51
|
+
export declare function changeLabel(change: FileChange, base: string): string;
|
|
52
|
+
//# sourceMappingURL=migrate-files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate-files.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/migrate-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH,yDAAyD;AACzD,MAAM,MAAM,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AAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAYpE"}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* @see PROVIDER-CONFIG-PLAN.md §1.6, §2.5, §9.6
|
|
21
21
|
*/
|
|
22
22
|
import { type AIProviderEntry, type AIProviderRegistry } from "@skaile/workspaces/core";
|
|
23
|
-
import { Command } from "commander";
|
|
23
|
+
import type { Command } from "commander";
|
|
24
24
|
/** One profile's move from the legacy axis to a registry entry. */
|
|
25
25
|
export interface ProviderMigrationEntry {
|
|
26
26
|
/** `skaile.yaml` the profile lives in. */
|
|
@@ -82,12 +82,9 @@ export declare function applyProviderMigration(plan: ProviderMigrationPlan, opti
|
|
|
82
82
|
written: string[];
|
|
83
83
|
};
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
* rewrite described at the top of this module.
|
|
89
|
-
*
|
|
90
|
-
* @returns Configured {@link Command} ready for `program.addCommand()`.
|
|
85
|
+
* Register the `providers` subcommand — the `skaile.yaml` → provider registry
|
|
86
|
+
* rewrite described at the top of this module — on the `skaile migrate` group
|
|
87
|
+
* (assembled in `migrate.ts`).
|
|
91
88
|
*/
|
|
92
|
-
export declare function
|
|
89
|
+
export declare function addMigrateProvidersCommand(group: Command): void;
|
|
93
90
|
//# sourceMappingURL=migrate-providers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-providers.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/migrate-providers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAKH,OAAO,EAEL,KAAK,eAAe,EAEpB,KAAK,kBAAkB,EAKxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"migrate-providers.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/migrate-providers.ts"],"names":[],"mappings":"AAAA;;;;;;;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AACpE,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,qBAAqB,EAC3B,OAAO,EAAE,wBAAwB,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,GACtD;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAiC7C;AAiGD;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAS/D"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `skaile migrate` — one-time migrations.
|
|
3
|
+
*
|
|
4
|
+
* providers `skaile.yaml` → AI provider registry (migrate-providers.ts)
|
|
5
|
+
* agents deprecated 0.1 agent inputs → 0.2 `composes:` (migrate-agents.ts)
|
|
6
|
+
* assets persona/ruleset files, bundles, publication manifest (migrate-assets.ts)
|
|
7
|
+
*
|
|
8
|
+
* `agents` and `assets` plan every change first and print it as a unified diff;
|
|
9
|
+
* nothing is written unless `--write` is given.
|
|
10
|
+
*/
|
|
11
|
+
import { Command } from "commander";
|
|
12
|
+
/**
|
|
13
|
+
* Create the `skaile migrate` command group.
|
|
14
|
+
*
|
|
15
|
+
* Subcommands: `providers` (provider registry), `agents` (agent 0.2 composition),
|
|
16
|
+
* `assets` (kind model: personas/rulesets, bundles, publication manifest).
|
|
17
|
+
*
|
|
18
|
+
* @returns Configured {@link Command} ready for `program.addCommand()`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function makeMigrateCommand(): Command;
|
|
21
|
+
//# sourceMappingURL=migrate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/migrate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmJpC;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,IAAI,OAAO,CA4B5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"npx.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/npx.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"npx.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/npx.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,IAAI,OAAO,CAqGxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outdated.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/outdated.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEpF,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"outdated.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/outdated.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEpF,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAK5C,iGAAiG;AACjG,wBAAgB,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC,GAAG,MAAM,CAGzF;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC,EACrD,MAAM,EAAE,MAAM,GACb,OAAO,CAYT;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAmD7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patch.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/patch.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"patch.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/patch.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CA8E1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset-cmd.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/preset-cmd.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH,OAAO,EACL,KAAK,WAAW,EAGjB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"preset-cmd.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/preset-cmd.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH,OAAO,EACL,KAAK,WAAW,EAGjB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsBpC;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CA0E3C;AAwhBD;;;GAGG;AACH,wBAAsB,uBAAuB,CAAC,eAAe,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAqB9F"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AssetManager } from "@skaile/workspaces/asset-manager";
|
|
1
|
+
import { AssetManager, type InstalledAgentInstance } from "@skaile/workspaces/asset-manager";
|
|
2
|
+
import { type PresetExpansion } from "@skaile/workspaces/core";
|
|
2
3
|
import type { InstallManifest } from "@skaile/workspaces/types";
|
|
3
4
|
import { Command } from "commander";
|
|
4
5
|
/**
|
|
@@ -62,6 +63,17 @@ export declare function runPointerOnlyInstall(ref: string, deps: {
|
|
|
62
63
|
catalog: InstallManifestSource;
|
|
63
64
|
library: InstallLibrary;
|
|
64
65
|
}): Promise<PointerOnlyInstallResult>;
|
|
66
|
+
/**
|
|
67
|
+
* Print one summary line per `preset:` dependency `skaile install` expanded: how many
|
|
68
|
+
* asset items joined the install set and how many instance items (`library://`,
|
|
69
|
+
* placeholders) were skipped, which only `skaile preset apply` materialises.
|
|
70
|
+
*/
|
|
71
|
+
export declare function reportPresetExpansions(presets: readonly PresetExpansion[] | undefined, onLine?: (line: string) => void): void;
|
|
72
|
+
/**
|
|
73
|
+
* Print one line per agent instance `skaile install` rendered (with the files
|
|
74
|
+
* written) and one per native agent file removed because its instance left `skaile.yaml`.
|
|
75
|
+
*/
|
|
76
|
+
export declare function reportAgentInstances(instances: readonly InstalledAgentInstance[] | undefined, removedFiles: readonly string[] | undefined, onLine?: (line: string) => void, onRemoved?: (line: string) => void): void;
|
|
65
77
|
/**
|
|
66
78
|
* Creates the `skaile install` command.
|
|
67
79
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/project.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/project.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,KAAK,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC7F,OAAO,EAEL,KAAK,eAAe,EAKrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkCpC;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CAC3D;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,MAAM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A+B,GACxD,OAAO,CAAC,IAAI,CAAC,CASf;AAmDD;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAgC1C;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAyE1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rebuild.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/rebuild.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"rebuild.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/rebuild.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAaH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,IAAI,OAAO,CAyF5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/run.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/run.ts"],"names":[],"mappings":"AA6BA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoJpC;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,IAAI,OAAO,CAqJxC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAqC3C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAoC3C;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAS1C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAuEzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"show.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/show.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"show.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/show.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgFpC;;;;;;;;;GASG;AACH,wBAAgB,eAAe,IAAI,OAAO,CA8BzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/tree.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/tree.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAcpC;;;;;;;;GAQG;AACH,wBAAgB,eAAe,IAAI,OAAO,CA4BzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/update.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/update.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOpC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAqF3C"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `skaile validate` rules for the root `agents:` map of one `skaile.yaml`.
|
|
3
|
+
*
|
|
4
|
+
* Normalisation errors, the `agent:` + `agents.default` conflict, and the
|
|
5
|
+
* asset-dependent rules: every `ref` resolves to an `agent.yaml`, role
|
|
6
|
+
* instances need the asset's `io`, `connectors` bind real connector slots to
|
|
7
|
+
* real `connectors[]` ids, and trigger ids are unique and known.
|
|
8
|
+
*/
|
|
9
|
+
import { type Diagnostic } from "@skaile/workspaces/core";
|
|
10
|
+
/**
|
|
11
|
+
* Diagnostics for the `agents:` map of a parsed `skaile.yaml`.
|
|
12
|
+
*
|
|
13
|
+
* @param projectDir - Directory of the `skaile.yaml`; local and catalog refs resolve against it.
|
|
14
|
+
* @param parsed - The raw YAML document.
|
|
15
|
+
*/
|
|
16
|
+
export declare function checkAgentInstances(projectDir: string, parsed: Record<string, unknown>): Diagnostic[];
|
|
17
|
+
//# sourceMappingURL=validate-instances.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-instances.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/validate-instances.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAKL,KAAK,UAAU,EAGhB,MAAM,yBAAyB,CAAC;AAsMjC;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,UAAU,EAAE,CA0Dd"}
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Validate asset versions, changelogs, and manifest schemas across asset repos.
|
|
3
3
|
*/
|
|
4
|
+
import { type Diagnostic } from "@skaile/workspaces/core";
|
|
5
|
+
import type { IAssetKindRegistry } from "@skaile/workspaces/plugins";
|
|
4
6
|
import { Command } from "commander";
|
|
7
|
+
/**
|
|
8
|
+
* Check every `composes[].kind` of a parsed `agent.yaml` against the registry
|
|
9
|
+
* (plus the `soul` pseudo-kind). One `unknown_asset_kind` error diagnostic per
|
|
10
|
+
* offending item, pathed `composes[<i>].kind`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function checkComposeKinds(parsed: unknown, registry: IAssetKindRegistry): Diagnostic[];
|
|
13
|
+
/** Validate all manifest files in a directory tree using the kind registry. */
|
|
14
|
+
export declare function validateManifests(rootPath: string, strictConformance: boolean): {
|
|
15
|
+
total: number;
|
|
16
|
+
errors: number;
|
|
17
|
+
warnings: number;
|
|
18
|
+
};
|
|
5
19
|
/** Outcome of {@link checkChangelogUnits}. All paths are root-relative posix. */
|
|
6
20
|
export interface ChangelogCheck {
|
|
7
21
|
/** Changelog units whose `CHANGELOG.md` is among the modified files. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/validate.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/validate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAEL,KAAK,UAAU,EAOhB,MAAM,yBAAyB,CAAC;AAOjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAOrE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA+HpC;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,kBAAkB,GAAG,UAAU,EAAE,CAkB7F;AAmFD,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,OAAO,GACzB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAgCrD;AAqRD,iFAAiF;AACjF,MAAM,WAAW,cAAc;IAC7B,wEAAwE;IACxE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,sFAAsF;IACtF,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,6EAA6E;IAC7E,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,cAAc,CAczF;AAqKD;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CA8E7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"why.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/why.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"why.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/why.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA2BpC;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,GAC9C,MAAM,CASR;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,IAAI,OAAO,CA0CxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../cli/src/helpers.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,CAAC;eACD,MAAM;aACR,MAAM;iBACF,MAAM;cACT,MAAM;aACP,MAAM;YACP,MAAM;cACJ,MAAM;aACP,MAAM;eACJ,MAAM;;CAElB,CAAC;
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../cli/src/helpers.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,CAAC;eACD,MAAM;aACR,MAAM;iBACF,MAAM;cACT,MAAM;aACP,MAAM;YACP,MAAM;cACJ,MAAM;aACP,MAAM;eACJ,MAAM;;CAElB,CAAC;AAgBF;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAIzD;AAED,uCAAuC;AACvC,wBAAgB,SAAS,CAAC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