@vibesdotdev/cli 0.0.2 → 1.0.0-rc.2
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/LICENSE +18 -0
- package/README.md +261 -1
- package/dist/boot/action-lifetime.d.ts +16 -0
- package/dist/boot/action-lifetime.d.ts.map +1 -0
- package/dist/boot/action-lifetime.js +80 -0
- package/dist/boot/action-lifetime.js.map +1 -0
- package/dist/boot/bootstrap.d.ts +190 -0
- package/dist/boot/bootstrap.d.ts.map +1 -0
- package/dist/boot/bootstrap.js +737 -0
- package/dist/boot/bootstrap.js.map +1 -0
- package/dist/boot/cli-flags.d.ts +45 -0
- package/dist/boot/cli-flags.d.ts.map +1 -0
- package/dist/boot/cli-flags.js +113 -0
- package/dist/boot/cli-flags.js.map +1 -0
- package/dist/boot/config.d.ts +25 -0
- package/dist/boot/config.d.ts.map +1 -0
- package/dist/{config.js → boot/config.js} +1 -1
- package/dist/boot/config.js.map +1 -0
- package/dist/boot/external-url.d.ts +13 -0
- package/dist/boot/external-url.d.ts.map +1 -0
- package/dist/boot/external-url.js +66 -0
- package/dist/boot/external-url.js.map +1 -0
- package/dist/boot/host-argv.d.ts +7 -0
- package/dist/boot/host-argv.d.ts.map +1 -0
- package/dist/boot/host-argv.js +8 -0
- package/dist/boot/host-argv.js.map +1 -0
- package/dist/boot/host-bootstrap.d.ts +37 -0
- package/dist/boot/host-bootstrap.d.ts.map +1 -0
- package/dist/boot/host-bootstrap.js +60 -0
- package/dist/boot/host-bootstrap.js.map +1 -0
- package/dist/boot/providers.d.ts +35 -0
- package/dist/boot/providers.d.ts.map +1 -0
- package/dist/boot/providers.js +155 -0
- package/dist/boot/providers.js.map +1 -0
- package/dist/boot/schemas/external-url.d.ts +11 -0
- package/dist/boot/schemas/external-url.d.ts.map +1 -0
- package/dist/boot/schemas/external-url.js +3 -0
- package/dist/boot/schemas/external-url.js.map +1 -0
- package/dist/boot/schemas/host-bootstrap.d.ts +7 -0
- package/dist/boot/schemas/host-bootstrap.d.ts.map +1 -0
- package/dist/boot/schemas/host-bootstrap.js +3 -0
- package/dist/boot/schemas/host-bootstrap.js.map +1 -0
- package/dist/boot/schemas/providers.d.ts +23 -0
- package/dist/boot/schemas/providers.d.ts.map +1 -0
- package/dist/boot/schemas/providers.js +3 -0
- package/dist/boot/schemas/providers.js.map +1 -0
- package/dist/boot/schemas/types.d.ts +4 -0
- package/dist/boot/schemas/types.d.ts.map +1 -0
- package/dist/{api → boot}/schemas/types.js.map +1 -1
- package/dist/boot/tui-plugin-policy.d.ts +8 -0
- package/dist/boot/tui-plugin-policy.d.ts.map +1 -0
- package/dist/boot/tui-plugin-policy.js +26 -0
- package/dist/boot/tui-plugin-policy.js.map +1 -0
- package/dist/boot/version.d.ts +13 -0
- package/dist/boot/version.d.ts.map +1 -0
- package/dist/boot/version.js +14 -0
- package/dist/boot/version.js.map +1 -0
- package/dist/bun/index.d.ts +2 -0
- package/dist/bun/index.d.ts.map +1 -0
- package/dist/bun/index.js +2 -0
- package/dist/bun/index.js.map +1 -0
- package/dist/bun/interactive-host.d.ts +9 -0
- package/dist/bun/interactive-host.d.ts.map +1 -0
- package/dist/bun/interactive-host.js +18 -0
- package/dist/bun/interactive-host.js.map +1 -0
- package/dist/commands/cli.kinds.d.ts +1239 -0
- package/dist/commands/cli.kinds.d.ts.map +1 -0
- package/dist/commands/cli.kinds.js +138 -0
- package/dist/commands/cli.kinds.js.map +1 -0
- package/dist/commands/cli.plugin.d.ts +22 -0
- package/dist/commands/cli.plugin.d.ts.map +1 -0
- package/dist/commands/cli.plugin.js +138 -0
- package/dist/commands/cli.plugin.js.map +1 -0
- package/dist/commands/completion/bash.d.ts +1 -1
- package/dist/commands/completion/bash.d.ts.map +1 -1
- package/dist/commands/completion/bash.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/bash.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/bash.impl.consumer.js +6 -0
- package/dist/commands/completion/bash.impl.consumer.js.map +1 -0
- package/dist/commands/completion/bash.js +4 -2
- package/dist/commands/completion/bash.js.map +1 -1
- package/dist/commands/completion/completion.consumer.plugin.d.ts +3 -0
- package/dist/commands/completion/completion.consumer.plugin.d.ts.map +1 -0
- package/dist/commands/completion/completion.consumer.plugin.js +19 -0
- package/dist/commands/completion/completion.consumer.plugin.js.map +1 -0
- package/dist/commands/completion/completion.descriptor.d.ts +1 -2
- package/dist/commands/completion/completion.descriptor.d.ts.map +1 -1
- package/dist/commands/completion/completion.descriptor.js +11 -4
- package/dist/commands/completion/completion.descriptor.js.map +1 -1
- package/dist/commands/completion/completion.descriptors.d.ts +3 -0
- package/dist/commands/completion/completion.descriptors.d.ts.map +1 -0
- package/dist/commands/completion/completion.descriptors.js +56 -0
- package/dist/commands/completion/completion.descriptors.js.map +1 -0
- package/dist/commands/completion/completion.impl.d.ts +5 -4
- package/dist/commands/completion/completion.impl.d.ts.map +1 -1
- package/dist/commands/completion/completion.impl.js +104 -145
- package/dist/commands/completion/completion.impl.js.map +1 -1
- package/dist/commands/completion/completion.install.impl.consumer.d.ts +4 -0
- package/dist/commands/completion/completion.install.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/completion.install.impl.consumer.js +102 -0
- package/dist/commands/completion/completion.install.impl.consumer.js.map +1 -0
- package/dist/commands/completion/completion.kinds.d.ts +43 -0
- package/dist/commands/completion/completion.kinds.d.ts.map +1 -0
- package/dist/commands/completion/completion.kinds.js +17 -0
- package/dist/commands/completion/completion.kinds.js.map +1 -0
- package/dist/commands/completion/fig.d.ts +1 -1
- package/dist/commands/completion/fig.d.ts.map +1 -1
- package/dist/commands/completion/fig.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/fig.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/fig.impl.consumer.js +6 -0
- package/dist/commands/completion/fig.impl.consumer.js.map +1 -0
- package/dist/commands/completion/fish.d.ts +1 -1
- package/dist/commands/completion/fish.d.ts.map +1 -1
- package/dist/commands/completion/fish.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/fish.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/fish.impl.consumer.js +6 -0
- package/dist/commands/completion/fish.impl.consumer.js.map +1 -0
- package/dist/commands/completion/tree.d.ts +5 -26
- package/dist/commands/completion/tree.d.ts.map +1 -1
- package/dist/commands/completion/tree.js +26 -25
- package/dist/commands/completion/tree.js.map +1 -1
- package/dist/commands/completion/zsh-widget.js +4 -4
- package/dist/commands/completion/zsh.d.ts +1 -1
- package/dist/commands/completion/zsh.d.ts.map +1 -1
- package/dist/commands/completion/zsh.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/zsh.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/zsh.impl.consumer.js +6 -0
- package/dist/commands/completion/zsh.impl.consumer.js.map +1 -0
- package/dist/commands/completion/zsh.js +1 -1
- package/dist/commands/completion/zsh.js.map +1 -1
- package/dist/commands/docs/cli.commands.docs.descriptor.d.ts +8 -0
- package/dist/commands/docs/cli.commands.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.commands.docs.descriptor.js +55 -0
- package/dist/commands/docs/cli.commands.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/cli.docs.descriptor.d.ts +4 -0
- package/dist/commands/docs/cli.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.docs.descriptor.js +44 -0
- package/dist/commands/docs/cli.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.d.ts +4 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.js +40 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/cli.output.docs.descriptor.d.ts +4 -0
- package/dist/commands/docs/cli.output.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.output.docs.descriptor.js +45 -0
- package/dist/commands/docs/cli.output.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/content/cli-commands.json +1 -0
- package/dist/commands/docs/content/cli-groups.json +1 -0
- package/dist/commands/docs/content/cli-output.json +1 -0
- package/dist/commands/docs/doc-paths.d.ts +11 -0
- package/dist/commands/docs/doc-paths.d.ts.map +1 -0
- package/dist/commands/docs/doc-paths.js +32 -0
- package/dist/commands/docs/doc-paths.js.map +1 -0
- package/dist/commands/docs/generate.d.ts +48 -0
- package/dist/commands/docs/generate.d.ts.map +1 -0
- package/dist/commands/docs/generate.js +121 -0
- package/dist/commands/docs/generate.js.map +1 -0
- package/dist/commands/docs/render-command.d.ts +5 -0
- package/dist/commands/docs/render-command.d.ts.map +1 -0
- package/dist/commands/docs/render-command.js +117 -0
- package/dist/commands/docs/render-command.js.map +1 -0
- package/dist/commands/docs/render-group.d.ts +5 -0
- package/dist/commands/docs/render-group.d.ts.map +1 -0
- package/dist/commands/docs/render-group.js +62 -0
- package/dist/commands/docs/render-group.js.map +1 -0
- package/dist/commands/docs/schemas/generate.d.ts +14 -0
- package/dist/commands/docs/schemas/generate.d.ts.map +1 -0
- package/dist/commands/docs/schemas/generate.js +3 -0
- package/dist/commands/docs/schemas/generate.js.map +1 -0
- package/dist/commands/output.d.ts +27 -0
- package/dist/commands/output.d.ts.map +1 -0
- package/dist/commands/output.js +104 -0
- package/dist/commands/output.js.map +1 -0
- package/dist/commands/profile/_utils.d.ts +34 -9
- package/dist/commands/profile/_utils.d.ts.map +1 -1
- package/dist/commands/profile/_utils.js +65 -37
- package/dist/commands/profile/_utils.js.map +1 -1
- package/dist/commands/profile/profile-env.d.ts +42 -0
- package/dist/commands/profile/profile-env.d.ts.map +1 -0
- package/dist/commands/profile/profile-env.js +56 -0
- package/dist/commands/profile/profile-env.js.map +1 -0
- package/dist/commands/profile/profile-group.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile-group.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.create.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.create.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.create.descriptor.js +12 -1
- package/dist/commands/profile/profile.create.descriptor.js.map +1 -1
- package/dist/commands/profile/profile.create.impl.d.ts +2 -6
- package/dist/commands/profile/profile.create.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.create.impl.js +32 -9
- package/dist/commands/profile/profile.create.impl.js.map +1 -1
- package/dist/commands/profile/profile.delete.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.delete.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.delete.impl.d.ts +2 -7
- package/dist/commands/profile/profile.delete.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.delete.impl.js +33 -16
- package/dist/commands/profile/profile.delete.impl.js.map +1 -1
- package/dist/commands/profile/profile.environment.descriptor.d.ts +4 -0
- package/dist/commands/profile/profile.environment.descriptor.d.ts.map +1 -0
- package/dist/commands/profile/profile.environment.descriptor.js +26 -0
- package/dist/commands/profile/profile.environment.descriptor.js.map +1 -0
- package/dist/commands/profile/profile.environment.impl.d.ts +14 -0
- package/dist/commands/profile/profile.environment.impl.d.ts.map +1 -0
- package/dist/commands/profile/profile.environment.impl.js +33 -0
- package/dist/commands/profile/profile.environment.impl.js.map +1 -0
- package/dist/commands/profile/profile.info.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.info.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.info.descriptor.js +5 -1
- package/dist/commands/profile/profile.info.descriptor.js.map +1 -1
- package/dist/commands/profile/profile.info.impl.d.ts +5 -2
- package/dist/commands/profile/profile.info.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.info.impl.js +31 -14
- package/dist/commands/profile/profile.info.impl.js.map +1 -1
- package/dist/commands/profile/profile.list.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.list.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.list.descriptor.js +5 -1
- package/dist/commands/profile/profile.list.descriptor.js.map +1 -1
- package/dist/commands/profile/profile.list.impl.d.ts +17 -2
- package/dist/commands/profile/profile.list.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.list.impl.js +52 -25
- package/dist/commands/profile/profile.list.impl.js.map +1 -1
- package/dist/commands/profile/profile.use.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.use.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.use.impl.d.ts +2 -6
- package/dist/commands/profile/profile.use.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.use.impl.js +40 -10
- package/dist/commands/profile/profile.use.impl.js.map +1 -1
- package/dist/commands/runtime/codegen.command.descriptor.d.ts +26 -12
- package/dist/commands/runtime/codegen.command.descriptor.d.ts.map +1 -1
- package/dist/commands/runtime/codegen.command.descriptor.js +24 -6
- package/dist/commands/runtime/codegen.command.descriptor.js.map +1 -1
- package/dist/commands/runtime/codegen.command.impl.d.ts +15 -2
- package/dist/commands/runtime/codegen.command.impl.d.ts.map +1 -1
- package/dist/commands/runtime/codegen.command.impl.js +17 -30
- package/dist/commands/runtime/codegen.command.impl.js.map +1 -1
- package/dist/commands/runtime/codegen.d.ts +10 -14
- package/dist/commands/runtime/codegen.d.ts.map +1 -1
- package/dist/commands/runtime/codegen.declarations.d.ts +6 -0
- package/dist/commands/runtime/codegen.declarations.d.ts.map +1 -0
- package/dist/commands/runtime/codegen.declarations.js +6 -0
- package/dist/commands/runtime/codegen.declarations.js.map +1 -0
- package/dist/commands/runtime/codegen.js +85 -58
- package/dist/commands/runtime/codegen.js.map +1 -1
- package/dist/commands/runtime/export/markdown-document.d.ts +25 -0
- package/dist/commands/runtime/export/markdown-document.d.ts.map +1 -0
- package/dist/commands/runtime/export/markdown-document.js +38 -0
- package/dist/commands/runtime/export/markdown-document.js.map +1 -0
- package/dist/commands/runtime/export/markdown.d.ts +17 -0
- package/dist/commands/runtime/export/markdown.d.ts.map +1 -0
- package/dist/commands/runtime/export/markdown.js +141 -0
- package/dist/commands/runtime/export/markdown.js.map +1 -0
- package/dist/commands/runtime/export/read.d.ts +27 -0
- package/dist/commands/runtime/export/read.d.ts.map +1 -0
- package/dist/commands/runtime/export/read.js +128 -0
- package/dist/commands/runtime/export/read.js.map +1 -0
- package/dist/commands/runtime/export/reading-notes.d.ts +11 -0
- package/dist/commands/runtime/export/reading-notes.d.ts.map +1 -0
- package/dist/commands/runtime/export/reading-notes.js +45 -0
- package/dist/commands/runtime/export/reading-notes.js.map +1 -0
- package/dist/commands/runtime/export/register.d.ts +34 -0
- package/dist/commands/runtime/export/register.d.ts.map +1 -0
- package/dist/commands/runtime/export/register.js +57 -0
- package/dist/commands/runtime/export/register.js.map +1 -0
- package/dist/commands/runtime/export/schemas.d.ts +104 -0
- package/dist/commands/runtime/export/schemas.d.ts.map +1 -0
- package/dist/commands/runtime/export/schemas.js +38 -0
- package/dist/commands/runtime/export/schemas.js.map +1 -0
- package/dist/commands/runtime/export/write.d.ts +16 -0
- package/dist/commands/runtime/export/write.d.ts.map +1 -0
- package/dist/commands/runtime/export/write.js +36 -0
- package/dist/commands/runtime/export/write.js.map +1 -0
- package/dist/commands/runtime/export.command.impl.d.ts +18 -0
- package/dist/commands/runtime/export.command.impl.d.ts.map +1 -0
- package/dist/commands/runtime/export.command.impl.js +39 -0
- package/dist/commands/runtime/export.command.impl.js.map +1 -0
- package/dist/commands/runtime/export.d.ts +28 -0
- package/dist/commands/runtime/export.d.ts.map +1 -0
- package/dist/commands/runtime/export.descriptor.d.ts +55 -0
- package/dist/commands/runtime/export.descriptor.d.ts.map +1 -0
- package/dist/commands/runtime/export.descriptor.js +58 -0
- package/dist/commands/runtime/export.descriptor.js.map +1 -0
- package/dist/commands/runtime/export.js +28 -0
- package/dist/commands/runtime/export.js.map +1 -0
- package/dist/commands/runtime/index.d.ts +2 -2
- package/dist/commands/runtime/index.d.ts.map +1 -1
- package/dist/commands/runtime/index.js +3 -3
- package/dist/commands/runtime/index.js.map +1 -1
- package/dist/commands/runtime/plugin.d.ts +1 -1
- package/dist/commands/runtime/plugin.d.ts.map +1 -1
- package/dist/commands/runtime/plugin.js +1 -1
- package/dist/commands/runtime/plugin.js.map +1 -1
- package/dist/commands/runtime/runtime-group.descriptor.d.ts +1 -1
- package/dist/commands/runtime/runtime-group.descriptor.d.ts.map +1 -1
- package/dist/commands/schemas/output.d.ts +26 -0
- package/dist/commands/schemas/output.d.ts.map +1 -0
- package/dist/commands/schemas/output.js +14 -0
- package/dist/commands/schemas/output.js.map +1 -0
- package/dist/commands/schemas/profile-environment.d.ts +6 -0
- package/dist/commands/schemas/profile-environment.d.ts.map +1 -0
- package/dist/commands/schemas/profile-environment.js +3 -0
- package/dist/commands/schemas/profile-environment.js.map +1 -0
- package/dist/commands/schemas/profile-list.d.ts +22 -0
- package/dist/commands/schemas/profile-list.d.ts.map +1 -0
- package/dist/commands/schemas/profile-list.js +3 -0
- package/dist/commands/schemas/profile-list.js.map +1 -0
- package/dist/commands/skills/_skills.d.ts +98 -0
- package/dist/commands/skills/_skills.d.ts.map +1 -0
- package/dist/commands/skills/_skills.js +183 -0
- package/dist/commands/skills/_skills.js.map +1 -0
- package/dist/commands/skills/skills-group.descriptor.d.ts +4 -0
- package/dist/commands/skills/skills-group.descriptor.d.ts.map +1 -0
- package/dist/commands/skills/skills-group.descriptor.js +12 -0
- package/dist/commands/skills/skills-group.descriptor.js.map +1 -0
- package/dist/commands/skills/skills.install.descriptor.d.ts +4 -0
- package/dist/commands/skills/skills.install.descriptor.d.ts.map +1 -0
- package/dist/commands/skills/skills.install.descriptor.js +37 -0
- package/dist/commands/skills/skills.install.descriptor.js.map +1 -0
- package/dist/commands/skills/skills.install.impl.d.ts +12 -0
- package/dist/commands/skills/skills.install.impl.d.ts.map +1 -0
- package/dist/commands/skills/skills.install.impl.js +65 -0
- package/dist/commands/skills/skills.install.impl.js.map +1 -0
- package/dist/commands/skills/skills.list.descriptor.d.ts +4 -0
- package/dist/commands/skills/skills.list.descriptor.d.ts.map +1 -0
- package/dist/commands/skills/skills.list.descriptor.js +23 -0
- package/dist/commands/skills/skills.list.descriptor.js.map +1 -0
- package/dist/commands/skills/skills.list.impl.d.ts +11 -0
- package/dist/commands/skills/skills.list.impl.d.ts.map +1 -0
- package/dist/commands/skills/skills.list.impl.js +69 -0
- package/dist/commands/skills/skills.list.impl.js.map +1 -0
- package/dist/core/runtime/shared/context.d.ts +16 -16
- package/dist/core/runtime/shared/context.d.ts.map +1 -1
- package/dist/core/runtime/shared/context.js +20 -35
- package/dist/core/runtime/shared/context.js.map +1 -1
- package/dist/core/runtime/shared/options.d.ts +5 -19
- package/dist/core/runtime/shared/options.d.ts.map +1 -1
- package/dist/core/runtime/shared/options.js +87 -42
- package/dist/core/runtime/shared/options.js.map +1 -1
- package/dist/design-inventory.d.ts +23 -0
- package/dist/design-inventory.d.ts.map +1 -0
- package/dist/design-inventory.js +66 -0
- package/dist/design-inventory.js.map +1 -0
- package/dist/index.d.ts +12 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -25
- package/dist/index.js.map +1 -1
- package/dist/invocation/client.d.ts +20 -0
- package/dist/invocation/client.d.ts.map +1 -0
- package/dist/invocation/client.js +25 -0
- package/dist/invocation/client.js.map +1 -0
- package/dist/invocation/state.d.ts +10 -0
- package/dist/invocation/state.d.ts.map +1 -0
- package/dist/invocation/state.js +32 -0
- package/dist/invocation/state.js.map +1 -0
- package/dist/patterns/builtins/config-namespace-commands.d.ts +10 -0
- package/dist/patterns/builtins/config-namespace-commands.d.ts.map +1 -0
- package/dist/patterns/builtins/config-namespace-commands.js +132 -0
- package/dist/patterns/builtins/config-namespace-commands.js.map +1 -0
- package/dist/patterns/builtins/config-namespace-output.d.ts +9 -0
- package/dist/patterns/builtins/config-namespace-output.d.ts.map +1 -0
- package/dist/patterns/builtins/config-namespace-output.js +31 -0
- package/dist/patterns/builtins/config-namespace-output.js.map +1 -0
- package/dist/patterns/builtins/config-namespace.d.ts +23 -0
- package/dist/patterns/builtins/config-namespace.d.ts.map +1 -0
- package/dist/patterns/builtins/config-namespace.js +70 -0
- package/dist/patterns/builtins/config-namespace.js.map +1 -0
- package/dist/patterns/builtins/crud-commands.d.ts +11 -0
- package/dist/patterns/builtins/crud-commands.d.ts.map +1 -0
- package/dist/patterns/builtins/crud-commands.js +105 -0
- package/dist/patterns/builtins/crud-commands.js.map +1 -0
- package/dist/patterns/builtins/crud-output.d.ts +7 -0
- package/dist/patterns/builtins/crud-output.d.ts.map +1 -0
- package/dist/patterns/builtins/crud-output.js +21 -0
- package/dist/patterns/builtins/crud-output.js.map +1 -0
- package/dist/patterns/builtins/crud.d.ts +16 -0
- package/dist/patterns/builtins/crud.d.ts.map +1 -0
- package/dist/patterns/builtins/crud.js +38 -0
- package/dist/patterns/builtins/crud.js.map +1 -0
- package/dist/patterns/{log-viewer.d.ts → builtins/log-viewer.d.ts} +5 -5
- package/dist/patterns/builtins/log-viewer.d.ts.map +1 -0
- package/dist/patterns/{log-viewer.js → builtins/log-viewer.js} +31 -9
- package/dist/patterns/builtins/log-viewer.js.map +1 -0
- package/dist/patterns/builtins/output.d.ts +5 -0
- package/dist/patterns/builtins/output.d.ts.map +1 -0
- package/dist/patterns/builtins/output.js +25 -0
- package/dist/patterns/builtins/output.js.map +1 -0
- package/dist/patterns/{process-manager.d.ts → builtins/process-manager.d.ts} +9 -4
- package/dist/patterns/builtins/process-manager.d.ts.map +1 -0
- package/dist/patterns/{process-manager.js → builtins/process-manager.js} +46 -29
- package/dist/patterns/builtins/process-manager.js.map +1 -0
- package/dist/patterns/builtins/tool-wrapper.d.ts +18 -0
- package/dist/patterns/builtins/tool-wrapper.d.ts.map +1 -0
- package/dist/patterns/builtins/tool-wrapper.js +124 -0
- package/dist/patterns/builtins/tool-wrapper.js.map +1 -0
- package/dist/patterns/cli-value.d.ts +3 -0
- package/dist/patterns/cli-value.d.ts.map +1 -0
- package/dist/patterns/cli-value.js +42 -0
- package/dist/patterns/cli-value.js.map +1 -0
- package/dist/patterns/index.d.ts +5 -9
- package/dist/patterns/index.d.ts.map +1 -1
- package/dist/patterns/index.js +5 -9
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/pattern.kinds.d.ts +30 -0
- package/dist/patterns/pattern.kinds.d.ts.map +1 -0
- package/dist/patterns/pattern.kinds.js +8 -0
- package/dist/patterns/pattern.kinds.js.map +1 -0
- package/dist/patterns/resolver.d.ts +11 -32
- package/dist/patterns/resolver.d.ts.map +1 -1
- package/dist/patterns/resolver.js +14 -45
- package/dist/patterns/resolver.js.map +1 -1
- package/dist/patterns/schemas.d.ts +9 -492
- package/dist/patterns/schemas.d.ts.map +1 -1
- package/dist/patterns/schemas.js +5 -94
- package/dist/patterns/schemas.js.map +1 -1
- package/dist/schemas/bootstrap.d.ts +242 -0
- package/dist/schemas/bootstrap.d.ts.map +1 -0
- package/dist/schemas/bootstrap.js +7 -0
- package/dist/schemas/bootstrap.js.map +1 -0
- package/dist/schemas/command-implementation.d.ts +34 -0
- package/dist/schemas/command-implementation.d.ts.map +1 -0
- package/dist/schemas/command-implementation.js +31 -0
- package/dist/schemas/command-implementation.js.map +1 -0
- package/dist/schemas/command-recommendations.d.ts +9 -0
- package/dist/schemas/command-recommendations.d.ts.map +1 -0
- package/dist/schemas/command-recommendations.js +14 -0
- package/dist/schemas/command-recommendations.js.map +1 -0
- package/dist/schemas/completion.d.ts +118 -0
- package/dist/schemas/completion.d.ts.map +1 -0
- package/dist/schemas/completion.js +63 -0
- package/dist/schemas/completion.js.map +1 -0
- package/dist/schemas/descriptors.d.ts +1 -129
- package/dist/schemas/descriptors.d.ts.map +1 -1
- package/dist/schemas/descriptors.js +1 -95
- package/dist/schemas/descriptors.js.map +1 -1
- package/dist/schemas/design-inventory.d.ts +20 -0
- package/dist/schemas/design-inventory.d.ts.map +1 -0
- package/dist/schemas/design-inventory.js +10 -0
- package/dist/schemas/design-inventory.js.map +1 -0
- package/dist/schemas/discovery.d.ts +17 -0
- package/dist/schemas/discovery.d.ts.map +1 -0
- package/dist/schemas/discovery.js +15 -0
- package/dist/schemas/discovery.js.map +1 -0
- package/dist/schemas/exit.d.ts +33 -0
- package/dist/schemas/exit.d.ts.map +1 -0
- package/dist/schemas/exit.js +20 -0
- package/dist/schemas/exit.js.map +1 -0
- package/dist/schemas/interactive-host.d.ts +10 -0
- package/dist/schemas/interactive-host.d.ts.map +1 -0
- package/dist/schemas/interactive-host.js +11 -0
- package/dist/schemas/interactive-host.js.map +1 -0
- package/dist/schemas/output-format.d.ts +61 -0
- package/dist/schemas/output-format.d.ts.map +1 -0
- package/dist/schemas/output-format.js +26 -0
- package/dist/schemas/output-format.js.map +1 -0
- package/dist/schemas/pattern-implementation.d.ts +1572 -0
- package/dist/schemas/pattern-implementation.d.ts.map +1 -0
- package/dist/schemas/pattern-implementation.js +12 -0
- package/dist/schemas/pattern-implementation.js.map +1 -0
- package/dist/schemas/pattern-input.d.ts +152 -0
- package/dist/schemas/pattern-input.d.ts.map +1 -0
- package/dist/schemas/pattern-input.js +194 -0
- package/dist/schemas/pattern-input.js.map +1 -0
- package/dist/schemas/pm-context.d.ts +17 -0
- package/dist/schemas/pm-context.d.ts.map +1 -0
- package/dist/schemas/pm-context.js +13 -0
- package/dist/schemas/pm-context.js.map +1 -0
- package/dist/schemas/prompts.d.ts +61 -0
- package/dist/schemas/prompts.d.ts.map +1 -0
- package/dist/schemas/prompts.js +43 -0
- package/dist/schemas/prompts.js.map +1 -0
- package/dist/schemas/runtime-codegen.d.ts +191 -0
- package/dist/schemas/runtime-codegen.d.ts.map +1 -0
- package/dist/schemas/runtime-codegen.js +83 -0
- package/dist/schemas/runtime-codegen.js.map +1 -0
- package/dist/schemas/surface.d.ts +33 -20
- package/dist/schemas/surface.d.ts.map +1 -1
- package/dist/schemas/surface.js +2 -1
- package/dist/schemas/surface.js.map +1 -1
- package/dist/schemas/terminal-input.d.ts +15 -0
- package/dist/schemas/terminal-input.d.ts.map +1 -0
- package/dist/schemas/terminal-input.js +13 -0
- package/dist/schemas/terminal-input.js.map +1 -0
- package/dist/schemas/types.d.ts +1 -201
- package/dist/schemas/types.d.ts.map +1 -1
- package/dist/support/cli-inventory.generated.d.ts +4 -0
- package/dist/support/cli-inventory.generated.d.ts.map +1 -0
- package/dist/support/cli-inventory.generated.js +31 -0
- package/dist/support/cli-inventory.generated.js.map +1 -0
- package/dist/support/logging/cli-startup.logger.descriptor.d.ts.map +1 -0
- package/dist/support/logging/cli-startup.logger.descriptor.js.map +1 -0
- package/dist/support/logging/logging.d.ts +8 -0
- package/dist/support/logging/logging.d.ts.map +1 -0
- package/dist/support/logging/logging.js +13 -0
- package/dist/support/logging/logging.js.map +1 -0
- package/dist/support/terminal-input.d.ts +11 -0
- package/dist/support/terminal-input.d.ts.map +1 -0
- package/dist/support/terminal-input.js +39 -0
- package/dist/support/terminal-input.js.map +1 -0
- package/dist/support/ui/context.descriptor.d.ts +35 -0
- package/dist/support/ui/context.descriptor.d.ts.map +1 -0
- package/dist/{ui.context.descriptor.js → support/ui/context.descriptor.js} +2 -2
- package/dist/support/ui/context.descriptor.js.map +1 -0
- package/dist/support/ui/format.client.d.ts +42 -0
- package/dist/support/ui/format.client.d.ts.map +1 -0
- package/dist/support/ui/format.client.js +92 -0
- package/dist/support/ui/format.client.js.map +1 -0
- package/dist/support/ui/format.kinds.d.ts +30 -0
- package/dist/support/ui/format.kinds.d.ts.map +1 -0
- package/dist/support/ui/format.kinds.js +8 -0
- package/dist/support/ui/format.kinds.js.map +1 -0
- package/dist/support/ui/format.plugin.d.ts +7 -0
- package/dist/support/ui/format.plugin.d.ts.map +1 -0
- package/dist/support/ui/format.plugin.js +23 -0
- package/dist/support/ui/format.plugin.js.map +1 -0
- package/dist/support/ui/formats.d.ts +4 -0
- package/dist/support/ui/formats.d.ts.map +1 -0
- package/dist/support/ui/formats.js +34 -0
- package/dist/support/ui/formats.js.map +1 -0
- package/dist/support/ui/prompts.d.ts +9 -0
- package/dist/support/ui/prompts.d.ts.map +1 -0
- package/dist/support/ui/prompts.js +99 -0
- package/dist/support/ui/prompts.js.map +1 -0
- package/dist/support/ui/schemas/types.d.ts +2 -0
- package/dist/support/ui/schemas/types.d.ts.map +1 -0
- package/dist/support/ui/schemas/types.js.map +1 -0
- package/dist/support/ui/schemas/ui-toolkit.d.ts +45 -0
- package/dist/support/ui/schemas/ui-toolkit.d.ts.map +1 -0
- package/dist/support/ui/schemas/ui-toolkit.js +2 -0
- package/dist/support/ui/schemas/ui-toolkit.js.map +1 -0
- package/dist/support/ui/showcase.d.ts +18 -0
- package/dist/support/ui/showcase.d.ts.map +1 -0
- package/dist/support/ui/showcase.js +101 -0
- package/dist/support/ui/showcase.js.map +1 -0
- package/dist/support/ui/table.d.ts +28 -0
- package/dist/support/ui/table.d.ts.map +1 -0
- package/dist/support/ui/table.js +74 -0
- package/dist/support/ui/table.js.map +1 -0
- package/dist/support/ui/toolkit.d.ts +56 -0
- package/dist/support/ui/toolkit.d.ts.map +1 -0
- package/dist/support/ui/toolkit.js +130 -0
- package/dist/support/ui/toolkit.js.map +1 -0
- package/dist/support/vibesdev/index.d.ts +2 -0
- package/dist/support/vibesdev/index.d.ts.map +1 -0
- package/dist/support/vibesdev/index.js +3 -0
- package/dist/support/vibesdev/index.js.map +1 -0
- package/dist/surface/CLISurface.d.ts +77 -3
- package/dist/surface/CLISurface.d.ts.map +1 -1
- package/dist/surface/CLISurface.js +642 -98
- package/dist/surface/CLISurface.js.map +1 -1
- package/dist/surface/argument-name.d.ts +14 -0
- package/dist/surface/argument-name.d.ts.map +1 -0
- package/dist/surface/argument-name.js +23 -0
- package/dist/surface/argument-name.js.map +1 -0
- package/dist/surface/attach-tui-action.d.ts +35 -9
- package/dist/surface/attach-tui-action.d.ts.map +1 -1
- package/dist/surface/attach-tui-action.js +50 -43
- package/dist/surface/attach-tui-action.js.map +1 -1
- package/dist/surface/build-context.d.ts +2 -2
- package/dist/surface/build-context.d.ts.map +1 -1
- package/dist/surface/build-context.js +26 -44
- package/dist/surface/build-context.js.map +1 -1
- package/dist/surface/command-group-policy.d.ts +2 -3
- package/dist/surface/command-group-policy.d.ts.map +1 -1
- package/dist/surface/command-group-policy.js +1 -11
- package/dist/surface/command-group-policy.js.map +1 -1
- package/dist/surface/command-implementation.d.ts +9 -0
- package/dist/surface/command-implementation.d.ts.map +1 -0
- package/dist/surface/command-implementation.js +19 -0
- package/dist/surface/command-implementation.js.map +1 -0
- package/dist/surface/command-options.d.ts +29 -0
- package/dist/surface/command-options.d.ts.map +1 -0
- package/dist/surface/command-options.js +57 -0
- package/dist/surface/command-options.js.map +1 -0
- package/dist/surface/commander-action.d.ts +25 -0
- package/dist/surface/commander-action.d.ts.map +1 -0
- package/dist/surface/commander-action.js +38 -0
- package/dist/surface/commander-action.js.map +1 -0
- package/dist/surface/discovery-cache.d.ts +3 -15
- package/dist/surface/discovery-cache.d.ts.map +1 -1
- package/dist/surface/discovery-cache.js +6 -33
- package/dist/surface/discovery-cache.js.map +1 -1
- package/dist/surface/exit.d.ts +10 -0
- package/dist/surface/exit.d.ts.map +1 -0
- package/dist/surface/exit.js +33 -0
- package/dist/surface/exit.js.map +1 -0
- package/dist/surface/failure-of.d.ts +9 -0
- package/dist/surface/failure-of.d.ts.map +1 -0
- package/dist/surface/failure-of.js +17 -0
- package/dist/surface/failure-of.js.map +1 -0
- package/dist/surface/failure-output.d.ts +50 -0
- package/dist/surface/failure-output.d.ts.map +1 -0
- package/dist/surface/failure-output.js +84 -0
- package/dist/surface/failure-output.js.map +1 -0
- package/dist/surface/failure-report.d.ts +78 -0
- package/dist/surface/failure-report.d.ts.map +1 -0
- package/dist/surface/failure-report.js +229 -0
- package/dist/surface/failure-report.js.map +1 -0
- package/dist/surface/group-fallback.d.ts +32 -0
- package/dist/surface/group-fallback.d.ts.map +1 -0
- package/dist/surface/group-fallback.js +78 -0
- package/dist/surface/group-fallback.js.map +1 -0
- package/dist/surface/index.d.ts +10 -0
- package/dist/surface/index.d.ts.map +1 -0
- package/dist/surface/index.js +8 -0
- package/dist/surface/index.js.map +1 -0
- package/dist/surface/inherited-options.d.ts +28 -0
- package/dist/surface/inherited-options.d.ts.map +1 -0
- package/dist/surface/inherited-options.js +108 -0
- package/dist/surface/inherited-options.js.map +1 -0
- package/dist/surface/interactive-gate.d.ts +41 -0
- package/dist/surface/interactive-gate.d.ts.map +1 -0
- package/dist/surface/interactive-gate.js +112 -0
- package/dist/surface/interactive-gate.js.map +1 -0
- package/dist/surface/invocation-actions.d.ts +40 -0
- package/dist/surface/invocation-actions.d.ts.map +1 -0
- package/dist/surface/invocation-actions.js +78 -0
- package/dist/surface/invocation-actions.js.map +1 -0
- package/dist/surface/invocation-effects.d.ts +11 -0
- package/dist/surface/invocation-effects.d.ts.map +1 -0
- package/dist/surface/invocation-effects.js +52 -0
- package/dist/surface/invocation-effects.js.map +1 -0
- package/dist/surface/invocation-lifecycle.d.ts +49 -0
- package/dist/surface/invocation-lifecycle.d.ts.map +1 -0
- package/dist/surface/invocation-lifecycle.js +127 -0
- package/dist/surface/invocation-lifecycle.js.map +1 -0
- package/dist/surface/output-format-request.d.ts +23 -0
- package/dist/surface/output-format-request.d.ts.map +1 -0
- package/dist/surface/output-format-request.js +116 -0
- package/dist/surface/output-format-request.js.map +1 -0
- package/dist/surface/pm-context.d.ts +5 -0
- package/dist/surface/pm-context.d.ts.map +1 -0
- package/dist/surface/pm-context.js +69 -0
- package/dist/surface/pm-context.js.map +1 -0
- package/dist/surface/register-commands.d.ts +24 -4
- package/dist/surface/register-commands.d.ts.map +1 -1
- package/dist/surface/register-commands.js +156 -63
- package/dist/surface/register-commands.js.map +1 -1
- package/dist/surface/register-groups.d.ts +4 -4
- package/dist/surface/register-groups.d.ts.map +1 -1
- package/dist/surface/register-groups.js +71 -9
- package/dist/surface/register-groups.js.map +1 -1
- package/dist/surface/schemas/CLISurface.d.ts +31 -0
- package/dist/surface/schemas/CLISurface.d.ts.map +1 -0
- package/dist/surface/schemas/CLISurface.js +2 -0
- package/dist/surface/schemas/CLISurface.js.map +1 -0
- package/dist/surface/schemas/command-implementation.d.ts +20 -0
- package/dist/surface/schemas/command-implementation.d.ts.map +1 -0
- package/dist/surface/schemas/command-implementation.js +2 -0
- package/dist/surface/schemas/command-implementation.js.map +1 -0
- package/dist/surface/schemas/interactive-gate.d.ts +29 -0
- package/dist/surface/schemas/interactive-gate.d.ts.map +1 -0
- package/dist/surface/schemas/interactive-gate.js +2 -0
- package/dist/surface/schemas/interactive-gate.js.map +1 -0
- package/package.json +273 -136
- package/bin/vibes.ts +0 -26
- package/dist/api/client/factory.d.ts +0 -29
- package/dist/api/client/factory.d.ts.map +0 -1
- package/dist/api/client/factory.js +0 -189
- package/dist/api/client/factory.js.map +0 -1
- package/dist/api/schemas/common.d.ts +0 -58
- package/dist/api/schemas/common.d.ts.map +0 -1
- package/dist/api/schemas/common.js +0 -48
- package/dist/api/schemas/common.js.map +0 -1
- package/dist/api/schemas/types.d.ts +0 -30
- package/dist/api/schemas/types.d.ts.map +0 -1
- package/dist/api/services/api.d.ts +0 -14
- package/dist/api/services/api.d.ts.map +0 -1
- package/dist/api/services/api.js +0 -110
- package/dist/api/services/api.js.map +0 -1
- package/dist/api/types.d.ts +0 -6
- package/dist/api/types.d.ts.map +0 -1
- package/dist/api/types.js +0 -5
- package/dist/api/types.js.map +0 -1
- package/dist/bin.d.ts +0 -28
- package/dist/bin.d.ts.map +0 -1
- package/dist/bin.js +0 -73
- package/dist/bin.js.map +0 -1
- package/dist/bootstrap.d.ts +0 -14
- package/dist/bootstrap.d.ts.map +0 -1
- package/dist/bootstrap.js +0 -14
- package/dist/bootstrap.js.map +0 -1
- package/dist/cli.plugin.d.ts +0 -20
- package/dist/cli.plugin.d.ts.map +0 -1
- package/dist/cli.plugin.js +0 -170
- package/dist/cli.plugin.js.map +0 -1
- package/dist/commands/runtime/_logging.d.ts +0 -11
- package/dist/commands/runtime/_logging.d.ts.map +0 -1
- package/dist/commands/runtime/_logging.js +0 -40
- package/dist/commands/runtime/_logging.js.map +0 -1
- package/dist/config.d.ts +0 -17
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/core/index.d.ts +0 -9
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -5
- package/dist/core/index.js.map +0 -1
- package/dist/core/namespace/hook.d.ts +0 -12
- package/dist/core/namespace/hook.d.ts.map +0 -1
- package/dist/core/namespace/hook.js +0 -15
- package/dist/core/namespace/hook.js.map +0 -1
- package/dist/core/namespace/index.d.ts +0 -18
- package/dist/core/namespace/index.d.ts.map +0 -1
- package/dist/core/namespace/index.js +0 -214
- package/dist/core/namespace/index.js.map +0 -1
- package/dist/core/namespace/schemas/index.d.ts +0 -25
- package/dist/core/namespace/schemas/index.d.ts.map +0 -1
- package/dist/core/namespace/schemas/index.js +0 -2
- package/dist/core/namespace/schemas/index.js.map +0 -1
- package/dist/core/plugins/types.d.ts +0 -81
- package/dist/core/plugins/types.d.ts.map +0 -1
- package/dist/core/plugins/types.js +0 -6
- package/dist/core/plugins/types.js.map +0 -1
- package/dist/core/runtime/context.d.ts +0 -25
- package/dist/core/runtime/context.d.ts.map +0 -1
- package/dist/core/runtime/context.js +0 -30
- package/dist/core/runtime/context.js.map +0 -1
- package/dist/core/runtime/hooks.d.ts +0 -12
- package/dist/core/runtime/hooks.d.ts.map +0 -1
- package/dist/core/runtime/hooks.js +0 -2
- package/dist/core/runtime/hooks.js.map +0 -1
- package/dist/core/schemas/manifest.d.ts +0 -24
- package/dist/core/schemas/manifest.d.ts.map +0 -1
- package/dist/core/schemas/manifest.js +0 -6
- package/dist/core/schemas/manifest.js.map +0 -1
- package/dist/core/schemas/types.d.ts +0 -7
- package/dist/core/schemas/types.d.ts.map +0 -1
- package/dist/core/schemas/types.js.map +0 -1
- package/dist/core/ui/interface.d.ts +0 -12
- package/dist/core/ui/interface.d.ts.map +0 -1
- package/dist/core/ui/interface.js +0 -6
- package/dist/core/ui/interface.js.map +0 -1
- package/dist/docs/cli.commands.docs.descriptor.d.ts +0 -4
- package/dist/docs/cli.commands.docs.descriptor.d.ts.map +0 -1
- package/dist/docs/cli.commands.docs.descriptor.js +0 -207
- package/dist/docs/cli.commands.docs.descriptor.js.map +0 -1
- package/dist/docs/cli.groups.docs.descriptor.d.ts +0 -4
- package/dist/docs/cli.groups.docs.descriptor.d.ts.map +0 -1
- package/dist/docs/cli.groups.docs.descriptor.js +0 -330
- package/dist/docs/cli.groups.docs.descriptor.js.map +0 -1
- package/dist/docs/cli.output.docs.descriptor.d.ts +0 -4
- package/dist/docs/cli.output.docs.descriptor.d.ts.map +0 -1
- package/dist/docs/cli.output.docs.descriptor.js +0 -442
- package/dist/docs/cli.output.docs.descriptor.js.map +0 -1
- package/dist/docs/types.d.ts +0 -19
- package/dist/docs/types.d.ts.map +0 -1
- package/dist/docs/types.js +0 -2
- package/dist/docs/types.js.map +0 -1
- package/dist/errors.d.ts +0 -74
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -113
- package/dist/errors.js.map +0 -1
- package/dist/logging/cli-startup.logger.descriptor.d.ts.map +0 -1
- package/dist/logging/cli-startup.logger.descriptor.js.map +0 -1
- package/dist/logging.d.ts +0 -4
- package/dist/logging.d.ts.map +0 -1
- package/dist/logging.js +0 -21
- package/dist/logging.js.map +0 -1
- package/dist/patterns/config-namespace.d.ts +0 -23
- package/dist/patterns/config-namespace.d.ts.map +0 -1
- package/dist/patterns/config-namespace.js +0 -218
- package/dist/patterns/config-namespace.js.map +0 -1
- package/dist/patterns/crud.d.ts +0 -23
- package/dist/patterns/crud.d.ts.map +0 -1
- package/dist/patterns/crud.js +0 -164
- package/dist/patterns/crud.js.map +0 -1
- package/dist/patterns/log-viewer.d.ts.map +0 -1
- package/dist/patterns/log-viewer.js.map +0 -1
- package/dist/patterns/pattern-types.d.ts +0 -21
- package/dist/patterns/pattern-types.d.ts.map +0 -1
- package/dist/patterns/pattern-types.js +0 -7
- package/dist/patterns/pattern-types.js.map +0 -1
- package/dist/patterns/process-manager.d.ts.map +0 -1
- package/dist/patterns/process-manager.js.map +0 -1
- package/dist/patterns/resolver.contracts.d.ts +0 -14
- package/dist/patterns/resolver.contracts.d.ts.map +0 -1
- package/dist/patterns/resolver.contracts.js +0 -9
- package/dist/patterns/resolver.contracts.js.map +0 -1
- package/dist/patterns/tool-wrapper.d.ts +0 -18
- package/dist/patterns/tool-wrapper.d.ts.map +0 -1
- package/dist/patterns/tool-wrapper.js +0 -130
- package/dist/patterns/tool-wrapper.js.map +0 -1
- package/dist/providers.d.ts +0 -105
- package/dist/providers.d.ts.map +0 -1
- package/dist/providers.js +0 -164
- package/dist/providers.js.map +0 -1
- package/dist/support/ui-toolkit.d.ts +0 -62
- package/dist/support/ui-toolkit.d.ts.map +0 -1
- package/dist/support/ui-toolkit.js +0 -172
- package/dist/support/ui-toolkit.js.map +0 -1
- package/dist/surface.d.ts +0 -9
- package/dist/surface.d.ts.map +0 -1
- package/dist/surface.js +0 -8
- package/dist/surface.js.map +0 -1
- package/dist/types.d.ts +0 -4
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/ui/schemas/types.d.ts +0 -2
- package/dist/ui/schemas/types.d.ts.map +0 -1
- package/dist/ui/schemas/types.js +0 -2
- package/dist/ui/schemas/types.js.map +0 -1
- package/dist/ui/toolkit/VibesUIToolkit.d.ts +0 -2
- package/dist/ui/toolkit/VibesUIToolkit.d.ts.map +0 -1
- package/dist/ui/toolkit/VibesUIToolkit.js +0 -2
- package/dist/ui/toolkit/VibesUIToolkit.js.map +0 -1
- package/dist/ui.context.descriptor.d.ts +0 -21
- package/dist/ui.context.descriptor.d.ts.map +0 -1
- package/dist/ui.context.descriptor.js.map +0 -1
- package/dist/utils/open.d.ts +0 -2
- package/dist/utils/open.d.ts.map +0 -1
- package/dist/utils/open.js +0 -30
- package/dist/utils/open.js.map +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -2
- package/dist/version.js.map +0 -1
- package/src/api/client/factory.ts +0 -265
- package/src/api/schemas/common.ts +0 -50
- package/src/api/schemas/types.ts +0 -32
- package/src/api/services/api.ts +0 -129
- package/src/api/types.ts +0 -12
- package/src/bin.ts +0 -84
- package/src/bootstrap.ts +0 -19
- package/src/cli.plugin.d.ts +0 -19
- package/src/cli.plugin.ts +0 -202
- package/src/commands/completion/bash.ts +0 -68
- package/src/commands/completion/completion.descriptor.ts +0 -48
- package/src/commands/completion/completion.impl.ts +0 -188
- package/src/commands/completion/fig.ts +0 -78
- package/src/commands/completion/fish.ts +0 -52
- package/src/commands/completion/tree.ts +0 -115
- package/src/commands/completion/zsh-widget.ts +0 -39
- package/src/commands/completion/zsh.ts +0 -165
- package/src/commands/profile/_utils.ts +0 -72
- package/src/commands/profile/profile-group.descriptor.ts +0 -14
- package/src/commands/profile/profile.create.descriptor.ts +0 -24
- package/src/commands/profile/profile.create.impl.ts +0 -44
- package/src/commands/profile/profile.delete.descriptor.ts +0 -31
- package/src/commands/profile/profile.delete.impl.ts +0 -71
- package/src/commands/profile/profile.info.descriptor.ts +0 -25
- package/src/commands/profile/profile.info.impl.ts +0 -51
- package/src/commands/profile/profile.list.descriptor.ts +0 -18
- package/src/commands/profile/profile.list.impl.ts +0 -46
- package/src/commands/profile/profile.use.descriptor.ts +0 -25
- package/src/commands/profile/profile.use.impl.ts +0 -39
- package/src/commands/runtime/_logging.ts +0 -47
- package/src/commands/runtime/codegen.command.descriptor.ts +0 -18
- package/src/commands/runtime/codegen.command.impl.ts +0 -44
- package/src/commands/runtime/codegen.ts +0 -84
- package/src/commands/runtime/index.ts +0 -14
- package/src/commands/runtime/plugin.ts +0 -7
- package/src/commands/runtime/runtime-group.descriptor.ts +0 -12
- package/src/config.ts +0 -22
- package/src/core/index.ts +0 -9
- package/src/core/namespace/hook.ts +0 -25
- package/src/core/namespace/index.ts +0 -298
- package/src/core/namespace/schemas/index.ts +0 -25
- package/src/core/plugins/types.ts +0 -87
- package/src/core/runtime/context.ts +0 -50
- package/src/core/runtime/hooks.ts +0 -12
- package/src/core/runtime/shared/context.ts +0 -65
- package/src/core/runtime/shared/options.ts +0 -60
- package/src/core/schemas/manifest.ts +0 -26
- package/src/core/schemas/types.ts +0 -6
- package/src/core/ui/interface.ts +0 -12
- package/src/docs/cli.commands.docs.descriptor.ts +0 -210
- package/src/docs/cli.groups.docs.descriptor.ts +0 -333
- package/src/docs/cli.output.docs.descriptor.ts +0 -445
- package/src/docs/types.ts +0 -18
- package/src/errors.ts +0 -123
- package/src/index.ts +0 -76
- package/src/logging/cli-startup.logger.descriptor.ts +0 -16
- package/src/logging.ts +0 -35
- package/src/patterns/config-namespace.ts +0 -251
- package/src/patterns/crud.ts +0 -217
- package/src/patterns/index.ts +0 -24
- package/src/patterns/log-viewer.ts +0 -118
- package/src/patterns/pattern-types.ts +0 -22
- package/src/patterns/process-manager.ts +0 -180
- package/src/patterns/resolver.contracts.ts +0 -15
- package/src/patterns/resolver.ts +0 -86
- package/src/patterns/schemas.ts +0 -146
- package/src/patterns/tool-wrapper.ts +0 -165
- package/src/providers.ts +0 -282
- package/src/schemas/descriptors.d.ts +0 -119
- package/src/schemas/descriptors.ts +0 -136
- package/src/schemas/surface.ts +0 -52
- package/src/schemas/types.d.ts +0 -195
- package/src/schemas/types.ts +0 -225
- package/src/support/ui-toolkit.ts +0 -224
- package/src/surface/CLISurface.ts +0 -193
- package/src/surface/attach-tui-action.ts +0 -76
- package/src/surface/build-context.ts +0 -49
- package/src/surface/command-group-policy.ts +0 -52
- package/src/surface/discovery-cache.ts +0 -143
- package/src/surface/register-commands.ts +0 -266
- package/src/surface/register-groups.ts +0 -84
- package/src/surface.ts +0 -9
- package/src/types.ts +0 -3
- package/src/ui/schemas/types.ts +0 -1
- package/src/ui/toolkit/VibesUIToolkit.ts +0 -1
- package/src/ui.context.descriptor.ts +0 -13
- package/src/utils/open.ts +0 -36
- package/src/version.ts +0 -10
- /package/dist/{api → boot}/schemas/types.js +0 -0
- /package/dist/{logging → support/logging}/cli-startup.logger.descriptor.d.ts +0 -0
- /package/dist/{logging → support/logging}/cli-startup.logger.descriptor.js +0 -0
- /package/dist/{core → support/ui}/schemas/types.js +0 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reading a booted runtime into the export shape.
|
|
3
|
+
*
|
|
4
|
+
* Every fact here comes from a live query. `runtime.kindIds()` is the kernel's own
|
|
5
|
+
* list, `runtime.pluginIds()` is what composition actually selected, and
|
|
6
|
+
* descriptors come from the query's synchronous projection, which never loads an
|
|
7
|
+
* implementation. Nothing is recomputed, inferred from a manifest, or read out of
|
|
8
|
+
* a source tree: a descriptor is listed because the runtime holds it.
|
|
9
|
+
*
|
|
10
|
+
* Scope axes use Runtime's JSON reader normalization: optional undefined fields
|
|
11
|
+
* are omitted, and declared facts remain intact. Descriptor stacks are reported
|
|
12
|
+
* by identity — id, depth and dynamic status — rather than by their own values,
|
|
13
|
+
* which may carry private owner data or a live reference.
|
|
14
|
+
*/
|
|
15
|
+
import * as z from 'zod/v4';
|
|
16
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
17
|
+
import { isJsonObject, JsonValueFromReaderSchema } from '@vibesdotdev/kernel/schemas/json';
|
|
18
|
+
/**
|
|
19
|
+
* Read this runtime into the export shape.
|
|
20
|
+
*
|
|
21
|
+
* A kind with no descriptors is still listed. An empty catalog is evidence about
|
|
22
|
+
* this boot, and a document that hid it would read as an absence the reader
|
|
23
|
+
* cannot tell apart from one the export chose not to report.
|
|
24
|
+
*/
|
|
25
|
+
export function exportRuntime(runtime, kind) {
|
|
26
|
+
const kindIds = kind === undefined ? [...runtime.kindIds()].sort() : [requireKind(runtime, kind)];
|
|
27
|
+
const pluginIds = runtime.pluginIds();
|
|
28
|
+
const kinds = [];
|
|
29
|
+
let descriptorTotal = 0;
|
|
30
|
+
let loaderTotal = 0;
|
|
31
|
+
for (const kind of kindIds) {
|
|
32
|
+
const definition = runtime.getKind(kind);
|
|
33
|
+
const accessor = runtime.assets(kind);
|
|
34
|
+
const snapshot = accessor.inventory();
|
|
35
|
+
const count = accessor.descriptors().length;
|
|
36
|
+
descriptorTotal += count;
|
|
37
|
+
loaderTotal += snapshot.loaders.length + snapshot.variantLoaders.length;
|
|
38
|
+
kinds.push({
|
|
39
|
+
id: kind,
|
|
40
|
+
descriptorCount: count,
|
|
41
|
+
schemaName: schemaNameOf(definition?.descriptorSchema),
|
|
42
|
+
contexts: definition?.contexts ?? [],
|
|
43
|
+
hasDefault: definition?.resolveDefault !== undefined || definition?.defaultImplementation !== undefined,
|
|
44
|
+
hasResolver: definition?.resolve !== undefined,
|
|
45
|
+
descriptorOwnership: definition?.descriptorOwnership ?? 'shared',
|
|
46
|
+
snapshot
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
phase: runtime.phase,
|
|
51
|
+
disposed: runtime.disposed,
|
|
52
|
+
declaredScope: exportScope(runtime.declaredScope),
|
|
53
|
+
effectiveScope: exportScope(runtime.scope),
|
|
54
|
+
compositionSelections: runtime.compositionSelections,
|
|
55
|
+
plugins: [...pluginIds].sort(),
|
|
56
|
+
pluginCount: pluginIds.length,
|
|
57
|
+
kinds,
|
|
58
|
+
kindCount: kindIds.length,
|
|
59
|
+
descriptorCount: descriptorTotal,
|
|
60
|
+
loaderCount: loaderTotal,
|
|
61
|
+
generatedAt: new Date().toISOString()
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* The one kind a reader named, or a refusal naming what was asked for.
|
|
66
|
+
*
|
|
67
|
+
* A reader who asks for a kind this runtime does not hold gets told so, rather
|
|
68
|
+
* than a document about a different runtime: an empty section would read as "this
|
|
69
|
+
* runtime holds nothing here", which is the opposite of the answer.
|
|
70
|
+
*/
|
|
71
|
+
function requireKind(runtime, kind) {
|
|
72
|
+
if (!runtime.hasKind(kind)) {
|
|
73
|
+
throw new CapabilityError(`The runtime holds no kind '${kind}'.`, 'NOT_FOUND', {
|
|
74
|
+
reason: 'kind-not-registered',
|
|
75
|
+
retryable: false,
|
|
76
|
+
details: { kind: 'runtime/kind', id: kind }
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
return kind;
|
|
80
|
+
}
|
|
81
|
+
/** Descriptors for `kind`, read without loading any implementation. */
|
|
82
|
+
export function exportDescriptors(runtime, kind, limit = Infinity) {
|
|
83
|
+
if (!runtime.hasKind(kind))
|
|
84
|
+
return [];
|
|
85
|
+
return runtime
|
|
86
|
+
.query(kind)
|
|
87
|
+
.descriptors()
|
|
88
|
+
.slice(0, limit)
|
|
89
|
+
.map((descriptor) => ({
|
|
90
|
+
kind: descriptor.kind,
|
|
91
|
+
id: descriptor.id,
|
|
92
|
+
name: descriptor.name,
|
|
93
|
+
description: descriptor.description,
|
|
94
|
+
tags: descriptor.tags ?? [],
|
|
95
|
+
hardware: descriptor.hardware ?? [],
|
|
96
|
+
enabled: descriptor.enabled ?? true,
|
|
97
|
+
priority: descriptor.priority,
|
|
98
|
+
capabilityId: descriptor.capabilityId
|
|
99
|
+
}));
|
|
100
|
+
}
|
|
101
|
+
/** The owner's declared scope facts, normalized to its JSON wire contract. */
|
|
102
|
+
function exportScope(scope) {
|
|
103
|
+
const value = JsonValueFromReaderSchema.parse(scope);
|
|
104
|
+
if (!isJsonObject(value)) {
|
|
105
|
+
throw new CapabilityError('Runtime export scope must be a JSON object.', 'INVALID_INPUT', {
|
|
106
|
+
reason: 'runtime-export-scope-invalid'
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
return value;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* A zod schema's published name, when it has one.
|
|
113
|
+
*
|
|
114
|
+
* Zod 4 stores the schema's identity under `_zod.def.type`; a schema written by
|
|
115
|
+
* hand may publish a `description` instead. Either is a stable handle for the
|
|
116
|
+
* shape, which is what a reader needs; neither changes the export's facts.
|
|
117
|
+
*/
|
|
118
|
+
function schemaNameOf(schema) {
|
|
119
|
+
const identity = SchemaIdentitySchema.safeParse(schema);
|
|
120
|
+
if (identity.success)
|
|
121
|
+
return identity.data._zod?.def?.type;
|
|
122
|
+
const described = SchemaDescriptionSchema.safeParse(schema);
|
|
123
|
+
return described.success ? described.data.description : undefined;
|
|
124
|
+
}
|
|
125
|
+
/** Zod 4's published identity for a schema. */
|
|
126
|
+
const SchemaIdentitySchema = z.looseObject({ _zod: z.looseObject({ def: z.looseObject({ type: z.string().optional() }) }).optional() });
|
|
127
|
+
const SchemaDescriptionSchema = z.looseObject({ description: z.string().optional() });
|
|
128
|
+
//# sourceMappingURL=read.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../../src/commands/runtime/export/read.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a reader needs to know before trusting the tables.
|
|
3
|
+
*
|
|
4
|
+
* This is prose, not structure, and it is prose on purpose: a reader who assumes
|
|
5
|
+
* these counts are a catalogue will draw the wrong conclusion from a perfectly
|
|
6
|
+
* correct document, so the document says what it is before it shows what it says.
|
|
7
|
+
* It lives apart from the renderer because no code path decides it — only a
|
|
8
|
+
* writer of it does.
|
|
9
|
+
*/
|
|
10
|
+
export declare const READING_NOTES: readonly string[];
|
|
11
|
+
//# sourceMappingURL=reading-notes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reading-notes.d.ts","sourceRoot":"","sources":["../../../../src/commands/runtime/export/reading-notes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,aAAa,EAAE,SAAS,MAAM,EAkC1C,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a reader needs to know before trusting the tables.
|
|
3
|
+
*
|
|
4
|
+
* This is prose, not structure, and it is prose on purpose: a reader who assumes
|
|
5
|
+
* these counts are a catalogue will draw the wrong conclusion from a perfectly
|
|
6
|
+
* correct document, so the document says what it is before it shows what it says.
|
|
7
|
+
* It lives apart from the renderer because no code path decides it — only a
|
|
8
|
+
* writer of it does.
|
|
9
|
+
*/
|
|
10
|
+
export const READING_NOTES = [
|
|
11
|
+
'## How to read this document',
|
|
12
|
+
'',
|
|
13
|
+
'This is a **snapshot of one boot in one workspace**, not a catalogue. Which',
|
|
14
|
+
'plugins composed, which kinds they registered, and how many descriptors each kind',
|
|
15
|
+
'holds are all properties of that particular process. A different workspace, a',
|
|
16
|
+
'different host, or a different day produces a different document.',
|
|
17
|
+
'',
|
|
18
|
+
'Regenerate it with:',
|
|
19
|
+
'',
|
|
20
|
+
'```sh',
|
|
21
|
+
'vibes runtime export RUNTIME-REFERENCE.md # this file, from the workspace root',
|
|
22
|
+
'vibes runtime export -f json # the same facts, for something that diffs them',
|
|
23
|
+
'vibes runtime export --kind tools/tool # one kind and every descriptor it holds',
|
|
24
|
+
'vibes runtime export --no-descriptors # the counts, without the tables',
|
|
25
|
+
'```',
|
|
26
|
+
'',
|
|
27
|
+
'### Reading the tables',
|
|
28
|
+
'',
|
|
29
|
+
'**Plugins** are what the workspace composed, grouped by the composition plane',
|
|
30
|
+
'that selected them (floor, global, workspace, literal). A plugin that appears',
|
|
31
|
+
"under `workspace` came from this workspace's own configuration.",
|
|
32
|
+
'',
|
|
33
|
+
'**Kinds** are the categories of asset the runtime can hold. `Descriptors` is how',
|
|
34
|
+
'many this runtime holds for the kind. `Contexts` are the context ids that kind\'s',
|
|
35
|
+
'implementations receive. `Default` says the kind can answer for a descriptor that',
|
|
36
|
+
'has no loader of its own; `Resolver` says it encodes its own selection policy.',
|
|
37
|
+
'`Ownership` is `single-owner` when a second registration of the same id is',
|
|
38
|
+
'refused, `shared` when candidates layer.',
|
|
39
|
+
'',
|
|
40
|
+
'**Descriptors** are the individual assets. Reading them never loads an',
|
|
41
|
+
'implementation: a descriptor is declarative identity, and resolution is what loads',
|
|
42
|
+
'behaviour. Each kind shows up to 12 rows; `--kind <id>` shows all of them.',
|
|
43
|
+
''
|
|
44
|
+
];
|
|
45
|
+
//# sourceMappingURL=reading-notes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reading-notes.js","sourceRoot":"","sources":["../../../../src/commands/runtime/export/reading-notes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,CAAC,MAAM,aAAa,GAAsB;IAC/C,8BAA8B;IAC9B,EAAE;IACF,6EAA6E;IAC7E,mFAAmF;IACnF,+EAA+E;IAC/E,mEAAmE;IACnE,EAAE;IACF,qBAAqB;IACrB,EAAE;IACF,OAAO;IACP,yFAAyF;IACzF,oGAAoG;IACpG,6FAA6F;IAC7F,sFAAsF;IACtF,KAAK;IACL,EAAE;IACF,wBAAwB;IACxB,EAAE;IACF,+EAA+E;IAC/E,+EAA+E;IAC/E,iEAAiE;IACjE,EAAE;IACF,kFAAkF;IAClF,mFAAmF;IACnF,mFAAmF;IACnF,gFAAgF;IAChF,4EAA4E;IAC5E,0CAA0C;IAC1C,EAAE;IACF,wEAAwE;IACxE,oFAAoF;IACpF,4EAA4E;IAC5E,EAAE;CACF,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `vibes runtime export` Commander binding.
|
|
3
|
+
*
|
|
4
|
+
* Written to a file it reports the path it wrote; with no destination it prints
|
|
5
|
+
* the body to stdout, so it composes in a pipe. The positional argument and
|
|
6
|
+
* `--output` name one destination — the positional is the form a person types,
|
|
7
|
+
* so it is a spelling of the same option, never a second behaviour.
|
|
8
|
+
*/
|
|
9
|
+
import type { Command } from 'commander';
|
|
10
|
+
import type { CommandContext } from '../../../schemas/surface.ts';
|
|
11
|
+
import { type RuntimeExportOptions } from './schemas.ts';
|
|
12
|
+
/**
|
|
13
|
+
* What Commander collects: its flags as typed, before this command's own schema
|
|
14
|
+
* reads them. Commander stores an option exactly as the declaration typed it, so
|
|
15
|
+
* the bag is wider than this command's schema — narrowing it is the schema's job.
|
|
16
|
+
*/
|
|
17
|
+
type FlagBag = Record<string, string | number | boolean | string[] | undefined>;
|
|
18
|
+
/**
|
|
19
|
+
* One declared argument, as Commander collected it: it stores whatever the
|
|
20
|
+
* declaration typed, and this command's schema is what decides what it means.
|
|
21
|
+
*/
|
|
22
|
+
type PositionalArgument = string | number | boolean | string[] | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Read the command's options, letting the positional supply the destination.
|
|
25
|
+
*
|
|
26
|
+
* `raw` is whatever Commander collected — an untyped bag of flags — so it is
|
|
27
|
+
* parsed here rather than trusted, and a malformed flag narrows to absent instead
|
|
28
|
+
* of refusing the whole export.
|
|
29
|
+
*/
|
|
30
|
+
export declare function runtimeExportOptions(raw: FlagBag | undefined, positional: PositionalArgument | undefined): RuntimeExportOptions;
|
|
31
|
+
/** Register the binding under a `runtime` group. */
|
|
32
|
+
export declare function registerRuntimeExportCommand(parent: Command, context: CommandContext): Promise<void>;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=register.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../src/commands/runtime/export/register.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGlE,OAAO,EAAuD,KAAK,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAE9G;;;;GAIG;AACH,KAAK,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;AAEhF;;;GAGG;AACH,KAAK,kBAAkB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;AAG3E;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,kBAAkB,GAAG,SAAS,GAAG,oBAAoB,CAO/H;AAED,oDAAoD;AACpD,wBAAsB,4BAA4B,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CA2B1G"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `vibes runtime export` Commander binding.
|
|
3
|
+
*
|
|
4
|
+
* Written to a file it reports the path it wrote; with no destination it prints
|
|
5
|
+
* the body to stdout, so it composes in a pipe. The positional argument and
|
|
6
|
+
* `--output` name one destination — the positional is the form a person types,
|
|
7
|
+
* so it is a spelling of the same option, never a second behaviour.
|
|
8
|
+
*/
|
|
9
|
+
import { renderRuntimeExportMarkdown } from "./markdown.js";
|
|
10
|
+
import { exportRuntime } from "./read.js";
|
|
11
|
+
import { ExportDestinationSchema, RuntimeExportOptionsSchema } from "./schemas.js";
|
|
12
|
+
import { resolveExportFormat, writeRuntimeExport } from "./write.js";
|
|
13
|
+
/**
|
|
14
|
+
* Read the command's options, letting the positional supply the destination.
|
|
15
|
+
*
|
|
16
|
+
* `raw` is whatever Commander collected — an untyped bag of flags — so it is
|
|
17
|
+
* parsed here rather than trusted, and a malformed flag narrows to absent instead
|
|
18
|
+
* of refusing the whole export.
|
|
19
|
+
*/
|
|
20
|
+
export function runtimeExportOptions(raw, positional) {
|
|
21
|
+
const flags = RuntimeExportOptionsSchema.parse(raw ?? {});
|
|
22
|
+
const destination = ExportDestinationSchema.safeParse(positional);
|
|
23
|
+
// The positional wins because it is the more specific thing a person typed;
|
|
24
|
+
// with none typed, the flags stand on their own.
|
|
25
|
+
if (destination.success && destination.data !== undefined)
|
|
26
|
+
return { ...flags, output: destination.data };
|
|
27
|
+
return flags;
|
|
28
|
+
}
|
|
29
|
+
/** Register the binding under a `runtime` group. */
|
|
30
|
+
export async function registerRuntimeExportCommand(parent, context) {
|
|
31
|
+
parent
|
|
32
|
+
.command('export')
|
|
33
|
+
.description('Export what this runtime holds: plugins, kinds, descriptors, loaders, scope')
|
|
34
|
+
.argument('[path]', 'Destination path; relative paths resolve against the workspace root (same as --output)')
|
|
35
|
+
.option('-o, --output <path>', 'Write to this path (relative paths resolve against the workspace root)')
|
|
36
|
+
.option('-f, --format <format>', 'Output format: markdown | json (default: from the output extension, else markdown)')
|
|
37
|
+
.option('-k, --kind <kind>', 'Restrict the descriptor detail to one kind')
|
|
38
|
+
.option('--no-kinds', 'Omit the kind section')
|
|
39
|
+
.option('--no-plugins', 'Omit the plugin section')
|
|
40
|
+
.option('--no-descriptors', 'Omit the descriptor table, keeping the counts')
|
|
41
|
+
.option('-v, --verbose', 'Enable verbose logging')
|
|
42
|
+
.action(async (positional, raw) => {
|
|
43
|
+
const options = runtimeExportOptions(raw, positional);
|
|
44
|
+
const runtime = context.runtime;
|
|
45
|
+
const exported = exportRuntime(runtime, options.kind);
|
|
46
|
+
const body = resolveExportFormat(options) === 'json'
|
|
47
|
+
? `${JSON.stringify(exported, null, 2)}\n`
|
|
48
|
+
: renderRuntimeExportMarkdown(exported, runtime, options);
|
|
49
|
+
if (options.output === undefined) {
|
|
50
|
+
context.ui?.info(body);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const written = await writeRuntimeExport(runtime, options.output, body);
|
|
54
|
+
context.ui?.success(`Runtime reference written to ${written}`);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=register.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../../src/commands/runtime/export/register.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,0BAA0B,EAA6B,MAAM,cAAc,CAAC;AAc9G,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErE;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,GAAwB,EAAE,UAA0C;IACxG,MAAM,KAAK,GAAG,0BAA0B,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC;IAC1D,MAAM,WAAW,GAAG,uBAAuB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAClE,4EAA4E;IAC5E,iDAAiD;IACjD,IAAI,WAAW,CAAC,OAAO,IAAI,WAAW,CAAC,IAAI,KAAK,SAAS;QAAE,OAAO,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,IAAI,EAAE,CAAC;IACzG,OAAO,KAAK,CAAC;AACd,CAAC;AAED,oDAAoD;AACpD,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAC,MAAe,EAAE,OAAuB;IAC1F,MAAM;SACJ,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,6EAA6E,CAAC;SAC1F,QAAQ,CAAC,QAAQ,EAAE,wFAAwF,CAAC;SAC5G,MAAM,CAAC,qBAAqB,EAAE,wEAAwE,CAAC;SACvG,MAAM,CAAC,uBAAuB,EAAE,oFAAoF,CAAC;SACrH,MAAM,CAAC,mBAAmB,EAAE,4CAA4C,CAAC;SACzE,MAAM,CAAC,YAAY,EAAE,uBAAuB,CAAC;SAC7C,MAAM,CAAC,cAAc,EAAE,yBAAyB,CAAC;SACjD,MAAM,CAAC,kBAAkB,EAAE,+CAA+C,CAAC;SAC3E,MAAM,CAAC,eAAe,EAAE,wBAAwB,CAAC;SACjD,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE;QACjC,MAAM,OAAO,GAAG,oBAAoB,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;QACtD,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QAChC,MAAM,QAAQ,GAAG,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;QACtD,MAAM,IAAI,GACT,mBAAmB,CAAC,OAAO,CAAC,KAAK,MAAM;YACtC,CAAC,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI;YAC1C,CAAC,CAAC,2BAA2B,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5D,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;YAClC,OAAO,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;YACvB,OAAO;QACR,CAAC;QACD,MAAM,OAAO,GAAG,MAAM,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACxE,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,gCAAgC,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What `vibes runtime export` publishes, and the options that shape it.
|
|
3
|
+
*
|
|
4
|
+
* The shapes are here rather than beside the reader because they are the export's
|
|
5
|
+
* contract, not an implementation detail of one renderer: the markdown a person
|
|
6
|
+
* reads and the JSON something diffs carry these same facts, and a third format
|
|
7
|
+
* added later would carry them too. They are all declared facts — ids, counts,
|
|
8
|
+
* names and booleans — because the export describes what a runtime holds, and a
|
|
9
|
+
* descriptor's own value is the owner's, not the document's.
|
|
10
|
+
*/
|
|
11
|
+
import * as z from 'zod/v4';
|
|
12
|
+
import type { AssetAccessorInventory } from '@vibesdotdev/kernel/schemas/asset-accessor';
|
|
13
|
+
/** One kind as this runtime holds it. */
|
|
14
|
+
export type ExportedKind = {
|
|
15
|
+
readonly id: string;
|
|
16
|
+
/** How many descriptors this runtime holds for it. */
|
|
17
|
+
readonly descriptorCount: number;
|
|
18
|
+
/** The schema's own name, when it publishes one; a stable handle for the shape. */
|
|
19
|
+
readonly schemaName: string | undefined;
|
|
20
|
+
/** Context ids this kind's implementations receive. */
|
|
21
|
+
readonly contexts: readonly string[];
|
|
22
|
+
/** True when the kind declares `resolveDefault` or a default implementation. */
|
|
23
|
+
readonly hasDefault: boolean;
|
|
24
|
+
/** True when the kind declares its own `resolve`, i.e. encodes a selection policy. */
|
|
25
|
+
readonly hasResolver: boolean;
|
|
26
|
+
/** `'single-owner'` refuses a second static registration; `'shared'` layers candidates. */
|
|
27
|
+
readonly descriptorOwnership: 'shared' | 'single-owner';
|
|
28
|
+
/** The registry shape this runtime holds for the kind. */
|
|
29
|
+
readonly snapshot: ExportedSnapshot;
|
|
30
|
+
};
|
|
31
|
+
/** One descriptor as this runtime holds it, with only its declared facts. */
|
|
32
|
+
export type ExportedDescriptor = {
|
|
33
|
+
readonly kind: string;
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly name: string | undefined;
|
|
36
|
+
readonly description: string | undefined;
|
|
37
|
+
readonly tags: readonly string[];
|
|
38
|
+
readonly hardware: readonly string[];
|
|
39
|
+
readonly enabled: boolean;
|
|
40
|
+
readonly priority: number | undefined;
|
|
41
|
+
/** Cross-surface operation identity, when the descriptor declares one. */
|
|
42
|
+
readonly capabilityId: string | undefined;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* The registry shape, reduced to what serializes.
|
|
46
|
+
*
|
|
47
|
+
* `depth` is the stack size for an id — one means a single registration, more
|
|
48
|
+
* means a shadowing candidate is layered under it. `dynamic` marks a
|
|
49
|
+
* registration made at runtime rather than declared, and `candidateCount` is how
|
|
50
|
+
* many scoped candidates a loader holds.
|
|
51
|
+
*/
|
|
52
|
+
export type ExportedSnapshot = AssetAccessorInventory;
|
|
53
|
+
/**
|
|
54
|
+
* Runtime's declared scope facts normalized to JSON. Optional undefined object
|
|
55
|
+
* fields are omitted; admitted values are preserved without a nesting marker.
|
|
56
|
+
*/
|
|
57
|
+
export type ExportedScope = Record<string, ScopeValue>;
|
|
58
|
+
/** One admitted scope fact in the JSON wire contract. */
|
|
59
|
+
export declare const ScopeValueSchema: z.ZodType<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue, z.core.$ZodTypeInternals<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue>>;
|
|
60
|
+
export type ScopeValue = z.output<typeof ScopeValueSchema>;
|
|
61
|
+
/** The whole export. Every section is optional-by-absence, never by emptiness. */
|
|
62
|
+
export type RuntimeExport = {
|
|
63
|
+
readonly phase: string;
|
|
64
|
+
readonly disposed: boolean;
|
|
65
|
+
readonly declaredScope: ExportedScope;
|
|
66
|
+
readonly effectiveScope: ExportedScope;
|
|
67
|
+
readonly compositionSelections: Readonly<Record<string, readonly string[]>>;
|
|
68
|
+
readonly plugins: readonly string[];
|
|
69
|
+
readonly pluginCount: number;
|
|
70
|
+
readonly kinds: readonly ExportedKind[];
|
|
71
|
+
readonly kindCount: number;
|
|
72
|
+
readonly descriptorCount: number;
|
|
73
|
+
readonly loaderCount: number;
|
|
74
|
+
/** When the export was taken, as an ISO string. */
|
|
75
|
+
readonly generatedAt: string;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* The command's options.
|
|
79
|
+
*
|
|
80
|
+
* Every field is read on its own and a malformed one becomes absent, so one bad
|
|
81
|
+
* flag narrows the document rather than refusing the whole export: a reader who
|
|
82
|
+
* asked for markdown and mistyped the format still gets a document.
|
|
83
|
+
*/
|
|
84
|
+
export declare const RuntimeExportOptionsSchema: z.ZodObject<{
|
|
85
|
+
output: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
86
|
+
format: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
87
|
+
json: "json";
|
|
88
|
+
markdown: "markdown";
|
|
89
|
+
}>>>;
|
|
90
|
+
kind: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
91
|
+
includeDescriptors: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
|
|
92
|
+
includeKinds: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
|
|
93
|
+
includePlugins: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
|
|
94
|
+
noDescriptors: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
|
|
95
|
+
noKinds: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
|
|
96
|
+
noPlugins: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
|
|
97
|
+
verbose: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
/** The positional destination: a path a person typed, or nothing at all. */
|
|
100
|
+
export declare const ExportDestinationSchema: z.ZodOptional<z.ZodString>;
|
|
101
|
+
export type RuntimeExportOptions = z.infer<typeof RuntimeExportOptionsSchema>;
|
|
102
|
+
/** A workspace root when the runtime declares one. */
|
|
103
|
+
export declare const ExportWorkspaceRootSchema: z.ZodString;
|
|
104
|
+
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/commands/runtime/export/schemas.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What `vibes runtime export` publishes, and the options that shape it.
|
|
3
|
+
*
|
|
4
|
+
* The shapes are here rather than beside the reader because they are the export's
|
|
5
|
+
* contract, not an implementation detail of one renderer: the markdown a person
|
|
6
|
+
* reads and the JSON something diffs carry these same facts, and a third format
|
|
7
|
+
* added later would carry them too. They are all declared facts — ids, counts,
|
|
8
|
+
* names and booleans — because the export describes what a runtime holds, and a
|
|
9
|
+
* descriptor's own value is the owner's, not the document's.
|
|
10
|
+
*/
|
|
11
|
+
import * as z from 'zod/v4';
|
|
12
|
+
import { JsonValueSchema } from '@vibesdotdev/kernel/schemas/json';
|
|
13
|
+
/** One admitted scope fact in the JSON wire contract. */
|
|
14
|
+
export const ScopeValueSchema = JsonValueSchema;
|
|
15
|
+
/**
|
|
16
|
+
* The command's options.
|
|
17
|
+
*
|
|
18
|
+
* Every field is read on its own and a malformed one becomes absent, so one bad
|
|
19
|
+
* flag narrows the document rather than refusing the whole export: a reader who
|
|
20
|
+
* asked for markdown and mistyped the format still gets a document.
|
|
21
|
+
*/
|
|
22
|
+
export const RuntimeExportOptionsSchema = z.object({
|
|
23
|
+
output: z.string().optional().catch(undefined),
|
|
24
|
+
format: z.enum(['markdown', 'json']).optional().catch(undefined),
|
|
25
|
+
kind: z.string().optional().catch(undefined),
|
|
26
|
+
includeDescriptors: z.boolean().optional().catch(undefined),
|
|
27
|
+
includeKinds: z.boolean().optional().catch(undefined),
|
|
28
|
+
includePlugins: z.boolean().optional().catch(undefined),
|
|
29
|
+
noDescriptors: z.boolean().optional().catch(undefined),
|
|
30
|
+
noKinds: z.boolean().optional().catch(undefined),
|
|
31
|
+
noPlugins: z.boolean().optional().catch(undefined),
|
|
32
|
+
verbose: z.boolean().optional().catch(undefined)
|
|
33
|
+
});
|
|
34
|
+
/** The positional destination: a path a person typed, or nothing at all. */
|
|
35
|
+
export const ExportDestinationSchema = z.string().trim().min(1).optional();
|
|
36
|
+
/** A workspace root when the runtime declares one. */
|
|
37
|
+
export const ExportWorkspaceRootSchema = z.string();
|
|
38
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/commands/runtime/export/schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAoDnE,yDAAyD;AACzD,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAoBhD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;IAC9C,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;IAChE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;IAC5C,kBAAkB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;IAC3D,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;IACrD,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;IACvD,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;IACtD,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;IAChD,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;IAClD,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;CAChD,CAAC,CAAC;AAEH,4EAA4E;AAC5E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;AAI3E,sDAAsD;AACtD,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where `vibes runtime export` writes, and in what format.
|
|
3
|
+
*
|
|
4
|
+
* The destination is the workspace root unless the caller names one, so the
|
|
5
|
+
* common case — `vibes runtime export RUNTIME-REFERENCE.md` — lands where a
|
|
6
|
+
* reader will look. Filesystem access goes through the runtime's own adapter
|
|
7
|
+
* rather than the host's, because the command runs inside a runtime that was
|
|
8
|
+
* handed one.
|
|
9
|
+
*/
|
|
10
|
+
import type { VibesRuntime } from '@vibesdotdev/kernel/api/runtime';
|
|
11
|
+
import type { RuntimeExportOptions } from './schemas.ts';
|
|
12
|
+
/** The format written: explicit, else the output extension, else markdown. */
|
|
13
|
+
export declare function resolveExportFormat(options: RuntimeExportOptions): 'markdown' | 'json';
|
|
14
|
+
/** Write the export and return the absolute path it wrote. */
|
|
15
|
+
export declare function writeRuntimeExport(runtime: VibesRuntime, path: string, body: string): Promise<string>;
|
|
16
|
+
//# sourceMappingURL=write.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write.d.ts","sourceRoot":"","sources":["../../../../src/commands/runtime/export/write.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEzD,8EAA8E;AAC9E,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,oBAAoB,GAAG,UAAU,GAAG,MAAM,CAItF;AAED,8DAA8D;AAC9D,wBAAsB,kBAAkB,CACvC,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACV,OAAO,CAAC,MAAM,CAAC,CAOjB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where `vibes runtime export` writes, and in what format.
|
|
3
|
+
*
|
|
4
|
+
* The destination is the workspace root unless the caller names one, so the
|
|
5
|
+
* common case — `vibes runtime export RUNTIME-REFERENCE.md` — lands where a
|
|
6
|
+
* reader will look. Filesystem access goes through the runtime's own adapter
|
|
7
|
+
* rather than the host's, because the command runs inside a runtime that was
|
|
8
|
+
* handed one.
|
|
9
|
+
*/
|
|
10
|
+
import { requireRuntimeCwd } from '@vibesdotdev/kernel';
|
|
11
|
+
import { ExportWorkspaceRootSchema } from "./schemas.js";
|
|
12
|
+
import { getRuntimePath } from '@vibesdotdev/paths';
|
|
13
|
+
import { resolveFileSystemAdapter } from '@vibesdotdev/filesystem/client';
|
|
14
|
+
/** The format written: explicit, else the output extension, else markdown. */
|
|
15
|
+
export function resolveExportFormat(options) {
|
|
16
|
+
if (options.format !== undefined)
|
|
17
|
+
return options.format;
|
|
18
|
+
if (options.output?.toLowerCase().endsWith('.json'))
|
|
19
|
+
return 'json';
|
|
20
|
+
return 'markdown';
|
|
21
|
+
}
|
|
22
|
+
/** Write the export and return the absolute path it wrote. */
|
|
23
|
+
export async function writeRuntimeExport(runtime, path, body) {
|
|
24
|
+
const fs = await resolveFileSystemAdapter(runtime, { binding: false });
|
|
25
|
+
const runtimePath = await getRuntimePath(runtime);
|
|
26
|
+
const absolute = runtimePath.isAbsolute(path) ? path : runtimePath.join(hostWorkspaceRoot(runtime) ?? requireRuntimeCwd(runtime), path);
|
|
27
|
+
await fs.mkdir(runtimePath.dirname(absolute), { recursive: true });
|
|
28
|
+
await fs.writeFile(absolute, body, 'utf8');
|
|
29
|
+
return absolute;
|
|
30
|
+
}
|
|
31
|
+
/** The workspace the runtime bound, which is where a relative export belongs. */
|
|
32
|
+
function hostWorkspaceRoot(runtime) {
|
|
33
|
+
const root = ExportWorkspaceRootSchema.safeParse(runtime.declaredScope.workspace?.root);
|
|
34
|
+
return root.success ? root.data : undefined;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=write.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write.js","sourceRoot":"","sources":["../../../../src/commands/runtime/export/write.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAI1E,8EAA8E;AAC9E,MAAM,UAAU,mBAAmB,CAAC,OAA6B;IAChE,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS;QAAE,OAAO,OAAO,CAAC,MAAM,CAAC;IACxD,IAAI,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;QAAE,OAAO,MAAM,CAAC;IACnE,OAAO,UAAU,CAAC;AACnB,CAAC;AAED,8DAA8D;AAC9D,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACvC,OAAqB,EACrB,IAAY,EACZ,IAAY;IAEZ,MAAM,EAAE,GAAG,MAAM,wBAAwB,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;IACvE,MAAM,WAAW,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC;IAClD,MAAM,QAAQ,GAAG,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,IAAI,iBAAiB,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,CAAC;IACxI,MAAM,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACnE,MAAM,EAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IAC3C,OAAO,QAAQ,CAAC;AACjB,CAAC;AAED,iFAAiF;AACjF,SAAS,iBAAiB,CAAC,OAAqB;IAC/C,MAAM,IAAI,GAAG,yBAAyB,CAAC,SAAS,CAAC,OAAO,CAAC,aAAa,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IACxF,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;AAC7C,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CommandContext, CommandOptions } from '../../schemas/surface.ts';
|
|
2
|
+
/**
|
|
3
|
+
* `runtime export`: the `cli/command` implementation.
|
|
4
|
+
*
|
|
5
|
+
* The export is read from `context.runtime` — the runtime this action runs on,
|
|
6
|
+
* which after a serve transition is the serve host's. A failure is the typed
|
|
7
|
+
* refusal `exportRuntime` throws, which the CLI surface reports once.
|
|
8
|
+
*
|
|
9
|
+
* The destination may be the first positional argument
|
|
10
|
+
* (`vibes runtime export RUNTIME-REFERENCE.md`) or `--output`; the two name one
|
|
11
|
+
* destination, so this reads both and prefers the positional, which is the
|
|
12
|
+
* spelling the descriptor's example documents.
|
|
13
|
+
*/
|
|
14
|
+
export declare const runtimeExportCommandImpl: import("@vibesdotdev/kernel").RuntimeImplementationWrapper<{
|
|
15
|
+
execute: (args: CommandOptions, opts: CommandOptions, context: CommandContext) => Promise<void>;
|
|
16
|
+
}>;
|
|
17
|
+
export default runtimeExportCommandImpl;
|
|
18
|
+
//# sourceMappingURL=export.command.impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export.command.impl.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/export.command.impl.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAU/E;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB;oBAIb,cAAc,QAAQ,cAAc,WAAW,cAAc;EAkBnF,CAAC;AAEH,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { createRuntimeImplementation } from '@vibesdotdev/kernel';
|
|
2
|
+
import { writeStdout } from "../../commands/output.js";
|
|
3
|
+
import { exportRuntime, renderRuntimeExportMarkdown, resolveExportFormat, runtimeExportOptions, writeRuntimeExport } from "./export.js";
|
|
4
|
+
/**
|
|
5
|
+
* `runtime export`: the `cli/command` implementation.
|
|
6
|
+
*
|
|
7
|
+
* The export is read from `context.runtime` — the runtime this action runs on,
|
|
8
|
+
* which after a serve transition is the serve host's. A failure is the typed
|
|
9
|
+
* refusal `exportRuntime` throws, which the CLI surface reports once.
|
|
10
|
+
*
|
|
11
|
+
* The destination may be the first positional argument
|
|
12
|
+
* (`vibes runtime export RUNTIME-REFERENCE.md`) or `--output`; the two name one
|
|
13
|
+
* destination, so this reads both and prefers the positional, which is the
|
|
14
|
+
* spelling the descriptor's example documents.
|
|
15
|
+
*/
|
|
16
|
+
export const runtimeExportCommandImpl = createRuntimeImplementation({
|
|
17
|
+
id: 'runtime-export',
|
|
18
|
+
kind: 'cli/command',
|
|
19
|
+
implementation: {
|
|
20
|
+
execute: async (args, opts, context) => {
|
|
21
|
+
const options = runtimeExportOptions(opts, args.path);
|
|
22
|
+
const runtime = context.runtime;
|
|
23
|
+
const exported = exportRuntime(runtime, options.kind);
|
|
24
|
+
const body = resolveExportFormat(options) === 'json'
|
|
25
|
+
? `${JSON.stringify(exported, null, 2)}\n`
|
|
26
|
+
: renderRuntimeExportMarkdown(exported, runtime, options);
|
|
27
|
+
if (options.output === undefined) {
|
|
28
|
+
// No destination: the body is the answer, so it goes to stdout and
|
|
29
|
+
// nothing else does. A consumer piping this gets the document.
|
|
30
|
+
await writeStdout(runtime, body);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const written = await writeRuntimeExport(runtime, options.output, body);
|
|
34
|
+
await writeStdout(runtime, `Runtime reference written to ${written}\n`);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export default runtimeExportCommandImpl;
|
|
39
|
+
//# sourceMappingURL=export.command.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export.command.impl.js","sourceRoot":"","sources":["../../../src/commands/runtime/export.command.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EACN,aAAa,EACb,2BAA2B,EAC3B,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,MAAM,aAAa,CAAC;AAErB;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,2BAA2B,CAAC;IACnE,EAAE,EAAE,gBAAgB;IACpB,IAAI,EAAE,aAAa;IACnB,cAAc,EAAE;QACf,OAAO,EAAE,KAAK,EAAE,IAAoB,EAAE,IAAoB,EAAE,OAAuB,EAAE,EAAE;YACtF,MAAM,OAAO,GAAG,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;YACtD,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;YAChC,MAAM,QAAQ,GAAG,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;YACtD,MAAM,IAAI,GACT,mBAAmB,CAAC,OAAO,CAAC,KAAK,MAAM;gBACtC,CAAC,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI;gBAC1C,CAAC,CAAC,2BAA2B,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC5D,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;gBAClC,mEAAmE;gBACnE,+DAA+D;gBAC/D,MAAM,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;gBACjC,OAAO;YACR,CAAC;YACD,MAAM,OAAO,GAAG,MAAM,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;YACxE,MAAM,WAAW,CAAC,OAAO,EAAE,gCAAgC,OAAO,IAAI,CAAC,CAAC;QACzE,CAAC;KACD;CACD,CAAC,CAAC;AAEH,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `vibes runtime export [PATH]` — what this runtime actually holds.
|
|
3
|
+
*
|
|
4
|
+
* A runtime is not knowable from its source. Which plugins composed, which kinds
|
|
5
|
+
* those plugins registered, how many descriptors each kind holds, which loaders
|
|
6
|
+
* are attached and where each one came from — all of that is a property of a boot,
|
|
7
|
+
* not of a package manifest. This command reports it from the live runtime the CLI
|
|
8
|
+
* handed it, so the answer describes the process in front of you.
|
|
9
|
+
*
|
|
10
|
+
* It exports to markdown for a document a person or an agent reads, and to JSON
|
|
11
|
+
* for something that diffs. Both carry the same facts; markdown groups them the
|
|
12
|
+
* way a reader needs, JSON preserves the exact shape.
|
|
13
|
+
*
|
|
14
|
+
* Nothing here recomputes or infers. A descriptor is listed because the runtime
|
|
15
|
+
* holds it, a loader because the runtime registered it, a plugin because the
|
|
16
|
+
* runtime composed it. A kind with no descriptors is still listed: an empty
|
|
17
|
+
* catalog is evidence, not an absence.
|
|
18
|
+
*
|
|
19
|
+
* The four parts are one concern each — `schemas.ts` is what the export is,
|
|
20
|
+
* `read.ts` asks the runtime, `markdown.ts` writes the document, `write.ts` puts
|
|
21
|
+
* it on disk — and this module is the one name they are all reachable through.
|
|
22
|
+
*/
|
|
23
|
+
export { renderRuntimeExportMarkdown } from './export/markdown.ts';
|
|
24
|
+
export { exportDescriptors, exportRuntime } from './export/read.ts';
|
|
25
|
+
export { registerRuntimeExportCommand, runtimeExportOptions } from './export/register.ts';
|
|
26
|
+
export { ExportDestinationSchema, RuntimeExportOptionsSchema, ScopeValueSchema, type ExportedDescriptor, type ExportedKind, type ExportedScope, type ExportedSnapshot, type RuntimeExport, type RuntimeExportOptions, type ScopeValue } from './export/schemas.ts';
|
|
27
|
+
export { resolveExportFormat, writeRuntimeExport } from './export/write.ts';
|
|
28
|
+
//# sourceMappingURL=export.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/export.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,EACN,uBAAuB,EACvB,0BAA0B,EAC1B,gBAAgB,EAChB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,UAAU,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC"}
|