@vibesdotdev/cli 0.0.1 → 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 +265 -24
- 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 +276 -140
- package/SPEC.md +0 -97
- 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
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { CommandContext, CommandOptions } from '../../schemas/surface.ts';
|
|
2
|
+
/**
|
|
3
|
+
* `runtime codegen`: the request parses through the owning schema, generation
|
|
4
|
+
* runs against the live runtime, and a failure is the typed refusal `generate`
|
|
5
|
+
* throws, which the CLI surface reports once (message, recovery, exit code).
|
|
6
|
+
*
|
|
7
|
+
* The command returns flat delivery metadata through the `data` boundary.
|
|
8
|
+
* The CLI renders it once in the inherited table format by default or through
|
|
9
|
+
* the selected runtime formatter when requested. `--json` uses the selected
|
|
10
|
+
* JSON formatter; the command writes no separate success line.
|
|
11
|
+
*/
|
|
12
|
+
export declare const runtimeCodegenCommandImpl: import("@vibesdotdev/kernel").RuntimeImplementationWrapper<{
|
|
13
|
+
outputBoundary: string;
|
|
14
|
+
execute: (args: CommandOptions, opts: CommandOptions, context: CommandContext) => Promise<import("./codegen.ts").RuntimeCodegenResult>;
|
|
3
15
|
}>;
|
|
16
|
+
export default runtimeCodegenCommandImpl;
|
|
4
17
|
//# sourceMappingURL=codegen.command.impl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codegen.command.impl.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.command.impl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"codegen.command.impl.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.command.impl.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAI/E;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB;;oBAKd,cAAc,QAAQ,cAAc,WAAW,cAAc;EAKnF,CAAC;AAEH,eAAe,yBAAyB,CAAC"}
|
|
@@ -1,39 +1,26 @@
|
|
|
1
|
-
import { createRuntimeImplementation } from '@vibesdotdev/
|
|
1
|
+
import { createRuntimeImplementation } from '@vibesdotdev/kernel';
|
|
2
2
|
import { generate } from "./codegen.js";
|
|
3
|
+
import { runtimeCodegenRequest } from "../../schemas/runtime-codegen.js";
|
|
4
|
+
/**
|
|
5
|
+
* `runtime codegen`: the request parses through the owning schema, generation
|
|
6
|
+
* runs against the live runtime, and a failure is the typed refusal `generate`
|
|
7
|
+
* throws, which the CLI surface reports once (message, recovery, exit code).
|
|
8
|
+
*
|
|
9
|
+
* The command returns flat delivery metadata through the `data` boundary.
|
|
10
|
+
* The CLI renders it once in the inherited table format by default or through
|
|
11
|
+
* the selected runtime formatter when requested. `--json` uses the selected
|
|
12
|
+
* JSON formatter; the command writes no separate success line.
|
|
13
|
+
*/
|
|
3
14
|
export const runtimeCodegenCommandImpl = createRuntimeImplementation({
|
|
4
15
|
id: 'runtime-codegen',
|
|
5
16
|
kind: 'cli/command',
|
|
6
17
|
implementation: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const mockCommand = {
|
|
12
|
-
command: () => ({
|
|
13
|
-
description: () => ({
|
|
14
|
-
option: () => ({
|
|
15
|
-
action: (handler) => handler()
|
|
16
|
-
})
|
|
17
|
-
})
|
|
18
|
-
})
|
|
19
|
-
};
|
|
20
|
-
const mockContext = {
|
|
21
|
-
ui: {
|
|
22
|
-
success: (msg) => process.stdout.write(`✅ ${msg}\n`),
|
|
23
|
-
error: (msg) => {
|
|
24
|
-
process.stderr.write(`❌ ${msg}\n`);
|
|
25
|
-
throw new Error(msg);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
try {
|
|
30
|
-
await generate();
|
|
31
|
-
mockContext.ui.success('Runtime codegen completed successfully');
|
|
32
|
-
}
|
|
33
|
-
catch (error) {
|
|
34
|
-
mockContext.ui.error(`Runtime codegen failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
35
|
-
}
|
|
18
|
+
outputBoundary: 'data',
|
|
19
|
+
execute: async (args, opts, context) => {
|
|
20
|
+
const result = await generate(context.runtime, runtimeCodegenRequest(opts, args.destination ?? opts.destination));
|
|
21
|
+
return result;
|
|
36
22
|
}
|
|
37
23
|
}
|
|
38
24
|
});
|
|
25
|
+
export default runtimeCodegenCommandImpl;
|
|
39
26
|
//# sourceMappingURL=codegen.command.impl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codegen.command.impl.js","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.command.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"codegen.command.impl.js","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.command.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,2BAA2B,CAAC;IACpE,EAAE,EAAE,iBAAiB;IACrB,IAAI,EAAE,aAAa;IACnB,cAAc,EAAE;QACf,cAAc,EAAE,MAAM;QACtB,OAAO,EAAE,KAAK,EAAE,IAAoB,EAAE,IAAoB,EAAE,OAAuB,EAAE,EAAE;YACtF,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,qBAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;YAClH,OAAO,MAAM,CAAC;QACf,CAAC;KACD;CACD,CAAC,CAAC;AAEH,eAAe,yBAAyB,CAAC"}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import type { VibesRuntime } from '@vibesdotdev/kernel/api/runtime';
|
|
2
|
+
import type { CommandOptions } from '../../schemas/surface.ts';
|
|
3
|
+
import { type RuntimeCodegenInput, type RuntimeCodegenResult } from '../../schemas/runtime-codegen.ts';
|
|
4
|
+
export * from '../../schemas/runtime-codegen.ts';
|
|
2
5
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
6
|
+
* The host supplies import/composition declarations and its owner's result schema
|
|
7
|
+
* through cli/runtime-codegen-input, or a direct caller supplies input. The
|
|
8
|
+
* `workspace/static-loader` generator the kernel resolves from the host's
|
|
9
|
+
* composition validates and renders executable registration; the selected filesystem
|
|
10
|
+
* owns destination resolution and writing.
|
|
7
11
|
*/
|
|
8
|
-
|
|
9
|
-
import type { RuntimeContext } from '../../core/runtime/context.ts';
|
|
10
|
-
export interface RuntimeCodegenOptions {
|
|
11
|
-
scope?: string;
|
|
12
|
-
hardware?: string;
|
|
13
|
-
verbose?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare function generate(options?: RuntimeCodegenOptions): Promise<void>;
|
|
16
|
-
export declare function registerRuntimeCodegenCommand(parent: Command, context: RuntimeContext): Promise<void>;
|
|
12
|
+
export declare function generate(runtime: VibesRuntime, options?: RuntimeCodegenInput | CommandOptions): Promise<RuntimeCodegenResult>;
|
|
17
13
|
//# sourceMappingURL=codegen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAGpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAWN,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,MAAM,kCAAkC,CAAC;AAE1C,cAAc,kCAAkC,CAAC;AAmBjD;;;;;;GAMG;AACH,wBAAsB,QAAQ,CAC7B,OAAO,EAAE,YAAY,EACrB,OAAO,GAAE,mBAAmB,GAAG,cAAmB,GAChD,OAAO,CAAC,oBAAoB,CAAC,CAoF/B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Pure declarations for hosts producing static CLI loaders. */
|
|
2
|
+
export { cliCommandKind, cliGroupKind } from '../cli.kinds.ts';
|
|
3
|
+
export { runtimeCodegenCommandDescriptor } from './codegen.command.descriptor.ts';
|
|
4
|
+
export { runtimeExportCommandDescriptor } from './export.descriptor.ts';
|
|
5
|
+
export { default as runtimeGroup } from './runtime-group.descriptor.ts';
|
|
6
|
+
//# sourceMappingURL=codegen.declarations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codegen.declarations.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.declarations.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Pure declarations for hosts producing static CLI loaders. */
|
|
2
|
+
export { cliCommandKind, cliGroupKind } from "../cli.kinds.js";
|
|
3
|
+
export { runtimeCodegenCommandDescriptor } from "./codegen.command.descriptor.js";
|
|
4
|
+
export { runtimeExportCommandDescriptor } from "./export.descriptor.js";
|
|
5
|
+
export { default as runtimeGroup } from "./runtime-group.descriptor.js";
|
|
6
|
+
//# sourceMappingURL=codegen.declarations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codegen.declarations.js","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.declarations.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -1,65 +1,92 @@
|
|
|
1
|
-
|
|
1
|
+
/** CLI delivery for the host-composed static-loader generator. */
|
|
2
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
3
|
+
import { writeRuntimeExport } from "./export/write.js";
|
|
4
|
+
import { RUNTIME_CODEGEN_DEFAULT_DESTINATION, RUNTIME_CODEGEN_INPUT_CONTEXT, STATIC_LOADER_KIND, RuntimeCodegenDeclarationObjectSchema, RuntimeCodegenDeliveryFieldsSchema, RuntimeCodegenOptionsSchema, runtimeCodegenRequest } from "../../schemas/runtime-codegen.js";
|
|
5
|
+
export * from "../../schemas/runtime-codegen.js";
|
|
6
|
+
function missingStaticLoaderGenerator() {
|
|
7
|
+
return new CapabilityError(`No generator is composed for ${STATIC_LOADER_KIND}; the host must compose a generator plugin.`, 'UNAVAILABLE', { reason: 'static-loader-generator-unavailable', retryable: false });
|
|
8
|
+
}
|
|
2
9
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
10
|
+
* The host supplies import/composition declarations and its owner's result schema
|
|
11
|
+
* through cli/runtime-codegen-input, or a direct caller supplies input. The
|
|
12
|
+
* `workspace/static-loader` generator the kernel resolves from the host's
|
|
13
|
+
* composition validates and renders executable registration; the selected filesystem
|
|
14
|
+
* owns destination resolution and writing.
|
|
7
15
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
function resolveBunBinary() {
|
|
14
|
-
const whichBun = typeof Bun.which === 'function' ? Bun.which('bun') : null;
|
|
15
|
-
if (whichBun)
|
|
16
|
-
return whichBun;
|
|
17
|
-
return process.execPath || 'bun';
|
|
18
|
-
}
|
|
19
|
-
async function runRuntimeCodegenScript(options = {}) {
|
|
20
|
-
const scriptExists = await Bun.file(CODEGEN_SCRIPT).exists();
|
|
21
|
-
if (!scriptExists) {
|
|
22
|
-
throw new Error(`Runtime codegen script not found: ${CODEGEN_SCRIPT}`);
|
|
16
|
+
export async function generate(runtime, options = {}) {
|
|
17
|
+
const request = runtimeCodegenRequest(options);
|
|
18
|
+
let hostContext;
|
|
19
|
+
if (runtime.hasContext(RUNTIME_CODEGEN_INPUT_CONTEXT)) {
|
|
20
|
+
hostContext = await runtime.context(RUNTIME_CODEGEN_INPUT_CONTEXT) ?? undefined;
|
|
23
21
|
}
|
|
24
|
-
const
|
|
25
|
-
if (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
cwd: ROOT_DIR,
|
|
31
|
-
stdout: 'inherit',
|
|
32
|
-
stderr: 'inherit',
|
|
33
|
-
stdin: 'inherit',
|
|
34
|
-
env: process.env
|
|
35
|
-
});
|
|
36
|
-
const exitCode = await proc.exited;
|
|
37
|
-
if (exitCode !== 0) {
|
|
38
|
-
throw new Error(`Runtime codegen script failed with exit code ${exitCode}`);
|
|
22
|
+
const input = request.input ?? hostContext?.input ?? undefined;
|
|
23
|
+
if (input === undefined) {
|
|
24
|
+
throw new CapabilityError('The host must declare static-loader imports through cli/runtime-codegen-input.', 'UNAVAILABLE', {
|
|
25
|
+
reason: 'runtime-codegen-input-unavailable',
|
|
26
|
+
retryable: false
|
|
27
|
+
});
|
|
39
28
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
.
|
|
47
|
-
.
|
|
48
|
-
.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
29
|
+
if (!runtime.hasKind(STATIC_LOADER_KIND)) {
|
|
30
|
+
throw missingStaticLoaderGenerator();
|
|
31
|
+
}
|
|
32
|
+
// The kernel selects among composed generators by descriptor; none composed
|
|
33
|
+
// is absence. A composed loader that fails keeps its own classification.
|
|
34
|
+
const generator = await runtime
|
|
35
|
+
.query(STATIC_LOADER_KIND)
|
|
36
|
+
.enabled()
|
|
37
|
+
.first();
|
|
38
|
+
if (!generator)
|
|
39
|
+
throw missingStaticLoaderGenerator();
|
|
40
|
+
if (!hostContext) {
|
|
41
|
+
throw new CapabilityError('The host must supply the static-loader result schema through cli/runtime-codegen-input.', 'UNAVAILABLE', {
|
|
42
|
+
reason: 'runtime-codegen-result-schema-unavailable',
|
|
43
|
+
retryable: false
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
const declaration = RuntimeCodegenDeclarationObjectSchema.safeParse(input);
|
|
47
|
+
let generationInput;
|
|
48
|
+
if (!declaration.success) {
|
|
49
|
+
generationInput = input;
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
const mergedDeclaration = { ...declaration.data };
|
|
53
|
+
if (request.scope !== undefined)
|
|
54
|
+
mergedDeclaration.scope = request.scope;
|
|
55
|
+
if (request.hardware !== undefined)
|
|
56
|
+
mergedDeclaration.hardware = request.hardware;
|
|
57
|
+
generationInput = mergedDeclaration;
|
|
58
|
+
}
|
|
59
|
+
const inputOptions = RuntimeCodegenOptionsSchema
|
|
60
|
+
.pick({ scope: true, hardware: true })
|
|
61
|
+
.partial()
|
|
62
|
+
.safeParse(generationInput);
|
|
63
|
+
const scope = request.scope ?? (inputOptions.success ? inputOptions.data.scope : undefined);
|
|
64
|
+
const hardware = request.hardware ?? (inputOptions.success ? inputOptions.data.hardware : undefined);
|
|
65
|
+
const delivery = RuntimeCodegenDeliveryFieldsSchema.parse({
|
|
66
|
+
destination: request.destination ?? RUNTIME_CODEGEN_DEFAULT_DESTINATION,
|
|
67
|
+
scope,
|
|
68
|
+
hardware
|
|
63
69
|
});
|
|
70
|
+
// Keep generator failures in their original classification. Only a result the
|
|
71
|
+
// supplied owner schema refuses becomes runtime-codegen-result-invalid.
|
|
72
|
+
const rawGenerated = await generator.generate(generationInput);
|
|
73
|
+
const generated = hostContext.resultSchema.safeParse(rawGenerated);
|
|
74
|
+
if (!generated.success) {
|
|
75
|
+
throw new CapabilityError("Runtime codegen produced a result outside its owner's declared contract.", 'INTERNAL', {
|
|
76
|
+
reason: 'runtime-codegen-result-invalid',
|
|
77
|
+
retryable: false,
|
|
78
|
+
cause: generated.error
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
const { source, ...ownerMetadata } = generated.data;
|
|
82
|
+
const result = {
|
|
83
|
+
...ownerMetadata,
|
|
84
|
+
...delivery
|
|
85
|
+
};
|
|
86
|
+
const destination = await writeRuntimeExport(runtime, delivery.destination, source);
|
|
87
|
+
return {
|
|
88
|
+
...result,
|
|
89
|
+
destination
|
|
90
|
+
};
|
|
64
91
|
}
|
|
65
92
|
//# sourceMappingURL=codegen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codegen.js","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"codegen.js","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EACN,mCAAmC,EACnC,6BAA6B,EAC7B,kBAAkB,EAClB,qCAAqC,EACrC,kCAAkC,EAClC,2BAA2B,EAC3B,qBAAqB,EAMrB,MAAM,kCAAkC,CAAC;AAE1C,cAAc,kCAAkC,CAAC;AAWjD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CAAC,eAAe,CAAC,CAAC;IAC/D,MAAM,SAAS,GAAG,WAAW,CAAC,YAAY,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAEnE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;QACxB,MAAM,IAAI,eAAe,CAAC,0EAA0E,EAAE,UAAU,EAAE;YACjH,MAAM,EAAE,gCAAgC;YACxC,SAAS,EAAE,KAAK;YAChB,KAAK,EAAE,SAAS,CAAC,KAAK;SACtB,CAAC,CAAC;IACJ,CAAC;IAED,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,GAAG,SAAS,CAAC,IAAI,CAAC;IACpD,MAAM,MAAM,GAAG;QACd,GAAG,aAAa;QAChB,GAAG,QAAQ;KACX,CAAC;IACF,MAAM,WAAW,GAAG,MAAM,kBAAkB,CAAC,OAAO,EAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAEpF,OAAO;QACN,GAAG,MAAM;QACT,WAAW;KACX,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The markdown being written, and the two rules that make it correct.
|
|
3
|
+
*
|
|
4
|
+
* Markdown is whitespace-significant in exactly the way a generator gets it
|
|
5
|
+
* wrong: runs of blank lines, and table cells that carry a pipe or a newline. Both
|
|
6
|
+
* are handled here rather than at each call site, so a section can end its own
|
|
7
|
+
* lines without knowing what the next section starts with, and no table can be
|
|
8
|
+
* broken by the text it holds.
|
|
9
|
+
*/
|
|
10
|
+
/** A pipe or a newline would break a markdown table row. */
|
|
11
|
+
/** A structured value a document shows verbatim: what `JSON.stringify` accepts. */
|
|
12
|
+
type JsonValue = Parameters<typeof JSON.stringify>[0];
|
|
13
|
+
export declare function escapeCell(value: string): string;
|
|
14
|
+
/** The document being written. */
|
|
15
|
+
export declare class MarkdownDocument {
|
|
16
|
+
private readonly parts;
|
|
17
|
+
line(text: string): this;
|
|
18
|
+
lines(texts: readonly string[]): this;
|
|
19
|
+
blank(): this;
|
|
20
|
+
/** A fenced JSON block, which is how a document shows a structured value verbatim. */
|
|
21
|
+
json(value: JsonValue): this;
|
|
22
|
+
text(): string;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=markdown-document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-document.d.ts","sourceRoot":"","sources":["../../../../src/commands/runtime/export/markdown-document.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,4DAA4D;AAC5D,mFAAmF;AACnF,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AAEtD,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED,kCAAkC;AAClC,qBAAa,gBAAgB;IAC5B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IAEtC,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKxB,KAAK,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI;IAKrC,KAAK,IAAI,IAAI;IAKb,sFAAsF;IACtF,IAAI,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAK5B,IAAI,IAAI,MAAM;CAGd"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The markdown being written, and the two rules that make it correct.
|
|
3
|
+
*
|
|
4
|
+
* Markdown is whitespace-significant in exactly the way a generator gets it
|
|
5
|
+
* wrong: runs of blank lines, and table cells that carry a pipe or a newline. Both
|
|
6
|
+
* are handled here rather than at each call site, so a section can end its own
|
|
7
|
+
* lines without knowing what the next section starts with, and no table can be
|
|
8
|
+
* broken by the text it holds.
|
|
9
|
+
*/
|
|
10
|
+
export function escapeCell(value) {
|
|
11
|
+
return value.replace(/\s+/g, ' ').replace(/\|/g, '\\|').trim();
|
|
12
|
+
}
|
|
13
|
+
/** The document being written. */
|
|
14
|
+
export class MarkdownDocument {
|
|
15
|
+
parts = [];
|
|
16
|
+
line(text) {
|
|
17
|
+
this.parts.push(text);
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
lines(texts) {
|
|
21
|
+
for (const text of texts)
|
|
22
|
+
this.line(text);
|
|
23
|
+
return this;
|
|
24
|
+
}
|
|
25
|
+
blank() {
|
|
26
|
+
this.parts.push('');
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
/** A fenced JSON block, which is how a document shows a structured value verbatim. */
|
|
30
|
+
json(value) {
|
|
31
|
+
this.parts.push('```json', JSON.stringify(value, null, '\t'), '```', '');
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
text() {
|
|
35
|
+
return `${this.parts.join('\n').replace(/\n{3,}/g, '\n\n')}\n`;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=markdown-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-document.js","sourceRoot":"","sources":["../../../../src/commands/runtime/export/markdown-document.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,MAAM,UAAU,UAAU,CAAC,KAAa;IACvC,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC;AAChE,CAAC;AAED,kCAAkC;AAClC,MAAM,OAAO,gBAAgB;IACX,KAAK,GAAa,EAAE,CAAC;IAEtC,IAAI,CAAC,IAAY;QAChB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtB,OAAO,IAAI,CAAC;IACb,CAAC;IAED,KAAK,CAAC,KAAwB;QAC7B,KAAK,MAAM,IAAI,IAAI,KAAK;YAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1C,OAAO,IAAI,CAAC;IACb,CAAC;IAED,KAAK;QACJ,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACpB,OAAO,IAAI,CAAC;IACb,CAAC;IAED,sFAAsF;IACtF,IAAI,CAAC,KAAgB;QACpB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QACzE,OAAO,IAAI,CAAC;IACb,CAAC;IAED,IAAI;QACH,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC;IAChE,CAAC;CACD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The markdown a reader and an agent share.
|
|
3
|
+
*
|
|
4
|
+
* Markdown groups the export's facts the way a reader needs them — the summary
|
|
5
|
+
* first, then scope, then composition, then the tables — while JSON preserves the
|
|
6
|
+
* exact shape. Both carry the same facts; neither adds one. So the renderer only
|
|
7
|
+
* decides order and wording, and every number it prints came from the reader.
|
|
8
|
+
*
|
|
9
|
+
* It also says what the document is before it shows what it says. A reader who
|
|
10
|
+
* assumes these counts are a catalogue will draw the wrong conclusion from a
|
|
11
|
+
* perfectly correct document.
|
|
12
|
+
*/
|
|
13
|
+
import type { VibesRuntime } from '@vibesdotdev/kernel/api/runtime';
|
|
14
|
+
import type { RuntimeExport, RuntimeExportOptions } from './schemas.ts';
|
|
15
|
+
/** The document. */
|
|
16
|
+
export declare function renderRuntimeExportMarkdown(exported: RuntimeExport, runtime: VibesRuntime, options?: RuntimeExportOptions): string;
|
|
17
|
+
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../../src/commands/runtime/export/markdown.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAIpE,OAAO,KAAK,EAAsB,aAAa,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAI5F,oBAAoB;AACpB,wBAAgB,2BAA2B,CAC1C,QAAQ,EAAE,aAAa,EACvB,OAAO,EAAE,YAAY,EACrB,OAAO,GAAE,oBAAyB,GAChC,MAAM,CAUR"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The markdown a reader and an agent share.
|
|
3
|
+
*
|
|
4
|
+
* Markdown groups the export's facts the way a reader needs them — the summary
|
|
5
|
+
* first, then scope, then composition, then the tables — while JSON preserves the
|
|
6
|
+
* exact shape. Both carry the same facts; neither adds one. So the renderer only
|
|
7
|
+
* decides order and wording, and every number it prints came from the reader.
|
|
8
|
+
*
|
|
9
|
+
* It also says what the document is before it shows what it says. A reader who
|
|
10
|
+
* assumes these counts are a catalogue will draw the wrong conclusion from a
|
|
11
|
+
* perfectly correct document.
|
|
12
|
+
*/
|
|
13
|
+
import { READING_NOTES } from "./reading-notes.js";
|
|
14
|
+
import { exportDescriptors } from "./read.js";
|
|
15
|
+
import { MarkdownDocument, escapeCell } from "./markdown-document.js";
|
|
16
|
+
const DEFAULT_DESCRIPTORS_PER_KIND = 12;
|
|
17
|
+
/** The document. */
|
|
18
|
+
export function renderRuntimeExportMarkdown(exported, runtime, options = {}) {
|
|
19
|
+
const document = new MarkdownDocument();
|
|
20
|
+
header(exported, document);
|
|
21
|
+
summary(exported, document);
|
|
22
|
+
scopes(exported, document);
|
|
23
|
+
composition(exported, document);
|
|
24
|
+
plugins(exported, document, options);
|
|
25
|
+
kinds(exported, document, options);
|
|
26
|
+
descriptors(exported, runtime, document, options);
|
|
27
|
+
return document.text();
|
|
28
|
+
}
|
|
29
|
+
function header(exported, document) {
|
|
30
|
+
document.line('# Vibes runtime reference').blank();
|
|
31
|
+
document
|
|
32
|
+
.line(`Exported by \`vibes runtime export\` at ${exported.generatedAt} from a live runtime in phase ` +
|
|
33
|
+
`\`${exported.phase}\`. Every fact below was read from that runtime by querying it; nothing is ` +
|
|
34
|
+
'inferred from a package manifest or a source tree.')
|
|
35
|
+
.blank()
|
|
36
|
+
.lines(READING_NOTES);
|
|
37
|
+
}
|
|
38
|
+
function summary(exported, document) {
|
|
39
|
+
document.line('## Summary').blank();
|
|
40
|
+
document.lines(['| Fact | Value |', '| --- | --- |']);
|
|
41
|
+
document.line(`| Phase | \`${exported.phase}\` |`);
|
|
42
|
+
document.line(`| Plugins composed | ${exported.pluginCount} |`);
|
|
43
|
+
document.line(`| Kinds registered | ${exported.kindCount} |`);
|
|
44
|
+
document.line(`| Descriptors held | ${exported.descriptorCount} |`);
|
|
45
|
+
document.line(`| Loaders attached | ${exported.loaderCount} |`);
|
|
46
|
+
document.line(`| Disposed | ${exported.disposed} |`).blank();
|
|
47
|
+
}
|
|
48
|
+
function scopes(exported, document) {
|
|
49
|
+
document.line('## Declared scope').blank();
|
|
50
|
+
document.line('What the host declared before composition.').blank();
|
|
51
|
+
document.json(exported.declaredScope);
|
|
52
|
+
document.line('## Effective scope').blank();
|
|
53
|
+
document.line('What resolution sees, after composition bound any tier or qualifier.').blank();
|
|
54
|
+
document.json(exported.effectiveScope);
|
|
55
|
+
}
|
|
56
|
+
function composition(exported, document) {
|
|
57
|
+
document.line('## Composition').blank();
|
|
58
|
+
document.line('Which plane selected which plugin. A plane that selected nothing is `[]`.').blank();
|
|
59
|
+
document.lines(['| Plane | Plugins |', '| --- | --- |']);
|
|
60
|
+
for (const [plane, ids] of Object.entries(exported.compositionSelections)) {
|
|
61
|
+
document.line(`| ${plane} | ${ids.length === 0 ? '_(none)_' : ids.map((id) => `\`${id}\``).join(', ')} |`);
|
|
62
|
+
}
|
|
63
|
+
document.blank();
|
|
64
|
+
}
|
|
65
|
+
function plugins(exported, document, options) {
|
|
66
|
+
if (options.noPlugins === true || options.includePlugins === false)
|
|
67
|
+
return;
|
|
68
|
+
if (exported.plugins.length === 0)
|
|
69
|
+
return;
|
|
70
|
+
document.line('## Plugins').blank();
|
|
71
|
+
document.line(`${exported.pluginCount} plugins composed into this runtime.`).blank();
|
|
72
|
+
for (const id of exported.plugins)
|
|
73
|
+
document.line(`- \`${id}\``);
|
|
74
|
+
document.blank();
|
|
75
|
+
}
|
|
76
|
+
function kinds(exported, document, options) {
|
|
77
|
+
if (options.noKinds === true || options.includeKinds === false)
|
|
78
|
+
return;
|
|
79
|
+
document.line('## Kinds').blank();
|
|
80
|
+
document
|
|
81
|
+
.line('A kind is a category of asset with its own descriptor schema and resolution rules. ' +
|
|
82
|
+
'`Default` says the kind can answer for a descriptor with no loader of its own; `Resolver` says ' +
|
|
83
|
+
'it encodes a selection policy; `Ownership` says whether a second registration of the same id is ' +
|
|
84
|
+
'permitted or refused.')
|
|
85
|
+
.blank()
|
|
86
|
+
.lines(['| Kind | Descriptors | Contexts | Default | Resolver | Ownership | Schema |', '| --- | ---: | --- | :---: | :---: | --- | --- |']);
|
|
87
|
+
for (const kind of exported.kinds) {
|
|
88
|
+
const contexts = kind.contexts.length === 0 ? '—' : kind.contexts.map((id) => `\`${id}\``).join(', ');
|
|
89
|
+
document.line(`| \`${kind.id}\` | ${kind.descriptorCount} | ${contexts} | ${kind.hasDefault ? 'yes' : 'no'} | ` +
|
|
90
|
+
`${kind.hasResolver ? 'yes' : 'no'} | ${kind.descriptorOwnership} | ${kind.schemaName ? `\`${kind.schemaName}\`` : '—'} |`);
|
|
91
|
+
}
|
|
92
|
+
document.blank();
|
|
93
|
+
}
|
|
94
|
+
function descriptors(exported, runtime, document, options) {
|
|
95
|
+
if (options.noDescriptors === true || options.includeDescriptors === false)
|
|
96
|
+
return;
|
|
97
|
+
document.line('## Descriptors').blank();
|
|
98
|
+
document
|
|
99
|
+
.line('One row per descriptor this runtime holds. Descriptors are declarative identity — the owner ' +
|
|
100
|
+
'declares them; the runtime resolves them. Loading an implementation is never required to read ' +
|
|
101
|
+
'this table.')
|
|
102
|
+
.blank();
|
|
103
|
+
if (options.kind !== undefined) {
|
|
104
|
+
for (const descriptor of exportDescriptors(runtime, options.kind))
|
|
105
|
+
document.line(descriptorRow(descriptor));
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
for (const kind of exported.kinds) {
|
|
109
|
+
if (kind.descriptorCount === 0)
|
|
110
|
+
continue;
|
|
111
|
+
const listed = exportDescriptors(runtime, kind.id, DEFAULT_DESCRIPTORS_PER_KIND);
|
|
112
|
+
if (listed.length === 0)
|
|
113
|
+
continue;
|
|
114
|
+
descriptorTable(kind.id, listed, document);
|
|
115
|
+
if (kind.descriptorCount > listed.length) {
|
|
116
|
+
document
|
|
117
|
+
.blank()
|
|
118
|
+
.line(`_Showing ${listed.length} of ${kind.descriptorCount}. Re-run with \`--kind ${kind.id}\` for all of them._`);
|
|
119
|
+
}
|
|
120
|
+
document.blank();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function descriptorTable(kind, listed, document) {
|
|
124
|
+
document.line(`### \`${kind}\``).blank();
|
|
125
|
+
document.lines(['| Id | Name | Hardware | Enabled | Description |', '| --- | --- | --- | :---: | --- |']);
|
|
126
|
+
for (const descriptor of listed) {
|
|
127
|
+
const name = descriptor.name ? escapeCell(descriptor.name) : '—';
|
|
128
|
+
const hardware = descriptor.hardware.length === 0 ? '—' : descriptor.hardware.join(', ');
|
|
129
|
+
document.line(`| \`${descriptor.id}\` | ${name} | ${hardware} | ${descriptor.enabled ? 'yes' : 'no'} | ` +
|
|
130
|
+
`${escapeCell(descriptor.description ?? '')} |`);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
/** One descriptor as the list form, for a reader scanning rather than comparing. */
|
|
134
|
+
function descriptorRow(descriptor) {
|
|
135
|
+
return (`- \`${descriptor.id}\`` +
|
|
136
|
+
`${descriptor.name ? ` — ${escapeCell(descriptor.name)}` : ''}` +
|
|
137
|
+
`${descriptor.hardware.length > 0 ? ` (${descriptor.hardware.join(', ')})` : ''}` +
|
|
138
|
+
`${descriptor.enabled ? '' : ' _(disabled)_'}` +
|
|
139
|
+
`${descriptor.description ? `\n ${escapeCell(descriptor.description)}` : ''}`);
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=markdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown.js","sourceRoot":"","sources":["../../../../src/commands/runtime/export/markdown.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGtE,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAExC,oBAAoB;AACpB,MAAM,UAAU,2BAA2B,CAC1C,QAAuB,EACvB,OAAqB,EACrB,UAAgC,EAAE;IAElC,MAAM,QAAQ,GAAG,IAAI,gBAAgB,EAAE,CAAC;IACxC,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC3B,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC5B,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC3B,WAAW,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAChC,OAAO,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IACrC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IACnC,WAAW,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAClD,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;AACxB,CAAC;AAED,SAAS,MAAM,CAAC,QAAuB,EAAE,QAA0B;IAClE,QAAQ,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC,KAA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EAAE;QAC9C,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAC9E,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 type { VibesRuntime } from '@vibesdotdev/kernel/api/runtime';
|
|
16
|
+
import type { ExportedDescriptor, RuntimeExport } from './schemas.ts';
|
|
17
|
+
/**
|
|
18
|
+
* Read this runtime into the export shape.
|
|
19
|
+
*
|
|
20
|
+
* A kind with no descriptors is still listed. An empty catalog is evidence about
|
|
21
|
+
* this boot, and a document that hid it would read as an absence the reader
|
|
22
|
+
* cannot tell apart from one the export chose not to report.
|
|
23
|
+
*/
|
|
24
|
+
export declare function exportRuntime(runtime: VibesRuntime, kind?: string): RuntimeExport;
|
|
25
|
+
/** Descriptors for `kind`, read without loading any implementation. */
|
|
26
|
+
export declare function exportDescriptors(runtime: VibesRuntime, kind: string, limit?: number): ExportedDescriptor[];
|
|
27
|
+
//# sourceMappingURL=read.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../src/commands/runtime/export/read.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAGpE,OAAO,KAAK,EAAE,kBAAkB,EAA+B,aAAa,EAAE,MAAM,cAAc,CAAC;AAEnG;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,aAAa,CAsCjF;AAoBD,uEAAuE;AACvE,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,SAAW,GAAG,kBAAkB,EAAE,CAiB7G"}
|