@vibesdotdev/cli 0.0.2 → 1.0.0-rc.3
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
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import type { DocsTopicDescriptor } from './types.ts';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Descriptor for cli.commands
|
|
5
|
-
* Auto-generated by `vibes docs generate`
|
|
6
|
-
*/
|
|
7
|
-
const cli_commandsMarkdown = `---
|
|
8
|
-
title: CLI Commands
|
|
9
|
-
summary: Complete reference for vibes CLI commands and groups
|
|
10
|
-
tags: [cli, commands, reference, man-pages]
|
|
11
|
-
parent: cli
|
|
12
|
-
order: 1
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
# CLI Commands
|
|
16
|
-
|
|
17
|
-
The vibes CLI provides command-line access to runtime features, documentation, and development tools.
|
|
18
|
-
|
|
19
|
-
## Overview
|
|
20
|
-
|
|
21
|
-
The CLI is organized into **groups** and **commands**:
|
|
22
|
-
|
|
23
|
-
\`\`\`
|
|
24
|
-
vibes <group> <command> [options]
|
|
25
|
-
\`\`\`
|
|
26
|
-
|
|
27
|
-
## Available groups
|
|
28
|
-
|
|
29
|
-
### \`vibes tools\`
|
|
30
|
-
|
|
31
|
-
Tool management and invocation:
|
|
32
|
-
|
|
33
|
-
- \`vibes tools list\` — List all registered tools
|
|
34
|
-
- \`vibes tools invoke <id>\` — Invoke a tool by id
|
|
35
|
-
- \`vibes tools info <id>\` — Show tool metadata
|
|
36
|
-
|
|
37
|
-
### \`vibes docs\`
|
|
38
|
-
|
|
39
|
-
Documentation browsing:
|
|
40
|
-
|
|
41
|
-
- \`vibes docs show <topic>\` — Render a topic to stdout
|
|
42
|
-
- \`vibes docs list\` — List all topics
|
|
43
|
-
- \`vibes docs search <query>\` — Search topics
|
|
44
|
-
- \`vibes docs open <topic>\` — Open topic in browser
|
|
45
|
-
- \`vibes docs generate <package> <topic>\` — Scaffold new descriptor
|
|
46
|
-
|
|
47
|
-
### \`vibes man\`
|
|
48
|
-
|
|
49
|
-
Manual pages (alias for \`vibes docs show\`):
|
|
50
|
-
|
|
51
|
-
- \`vibes man <topic>\` — Show man-page for topic
|
|
52
|
-
- \`vibes man <kind> <id>\` — Show by subject reference
|
|
53
|
-
|
|
54
|
-
### \`vibes dev\`
|
|
55
|
-
|
|
56
|
-
Development commands:
|
|
57
|
-
|
|
58
|
-
- \`vibes dev start\` — Start development server
|
|
59
|
-
- \`vibes dev build\` — Build for production
|
|
60
|
-
- \`vibes dev test\` — Run tests
|
|
61
|
-
- \`vibes dev lint\` — Run linter
|
|
62
|
-
|
|
63
|
-
### \`vibes workspace\`
|
|
64
|
-
|
|
65
|
-
Workspace management:
|
|
66
|
-
|
|
67
|
-
- \`vibes workspace info\` — Show workspace metadata
|
|
68
|
-
- \`vibes workspace list\` — List workspace slices
|
|
69
|
-
- \`vibes workspace switch <slice>\` — Switch active slice
|
|
70
|
-
|
|
71
|
-
## Common options
|
|
72
|
-
|
|
73
|
-
These options are available across most commands:
|
|
74
|
-
|
|
75
|
-
| Option | Description | Example |
|
|
76
|
-
|--------|-------------|---------|
|
|
77
|
-
| \`--help\` | Show help for command | \`vibes tools list --help\` |
|
|
78
|
-
| \`--json\` | Output as JSON | \`vibes tools list --json\` |
|
|
79
|
-
| \`--verbose\` | Enable verbose logging | \`vibes dev start --verbose\` |
|
|
80
|
-
| \`--no-color\` | Disable ANSI colors | \`vibes man tools.list --no-color\` |
|
|
81
|
-
| \`--bare\` | Skip envelope/formatting | \`vibes man tools.list --bare\` |
|
|
82
|
-
|
|
83
|
-
## Examples
|
|
84
|
-
|
|
85
|
-
### List all tools as JSON
|
|
86
|
-
|
|
87
|
-
\`\`\`bash
|
|
88
|
-
vibes tools list --json | jq '.[] | { id: .id, description: .description }'
|
|
89
|
-
\`\`\`
|
|
90
|
-
|
|
91
|
-
### View documentation
|
|
92
|
-
|
|
93
|
-
\`\`\`bash
|
|
94
|
-
# By topic id
|
|
95
|
-
vibes man tools.list
|
|
96
|
-
|
|
97
|
-
# By subject reference
|
|
98
|
-
vibes man tools/tool tools.list
|
|
99
|
-
|
|
100
|
-
# Open in browser
|
|
101
|
-
vibes docs open tools.list
|
|
102
|
-
\`\`\`
|
|
103
|
-
|
|
104
|
-
### Search documentation
|
|
105
|
-
|
|
106
|
-
\`\`\`bash
|
|
107
|
-
# Search by keyword
|
|
108
|
-
vibes docs search "runtime query"
|
|
109
|
-
|
|
110
|
-
# Filter by tag
|
|
111
|
-
vibes docs list --tag=tools
|
|
112
|
-
|
|
113
|
-
# Filter by parent
|
|
114
|
-
vibes docs list --parent=runtime
|
|
115
|
-
\`\`\`
|
|
116
|
-
|
|
117
|
-
### Generate new descriptor
|
|
118
|
-
|
|
119
|
-
\`\`\`bash
|
|
120
|
-
# Inline pattern (default)
|
|
121
|
-
vibes docs generate ai providers.anthropic
|
|
122
|
-
|
|
123
|
-
# Package-sourced pattern
|
|
124
|
-
vibes docs generate storage adapters.drizzle --pattern package
|
|
125
|
-
|
|
126
|
-
# With custom metadata
|
|
127
|
-
vibes docs generate tools my-tool \\
|
|
128
|
-
--parent tools \\
|
|
129
|
-
--title "My Custom Tool" \\
|
|
130
|
-
--dry-run
|
|
131
|
-
\`\`\`
|
|
132
|
-
|
|
133
|
-
## Exit codes
|
|
134
|
-
|
|
135
|
-
| Code | Meaning |
|
|
136
|
-
|------|---------|
|
|
137
|
-
| 0 | Success |
|
|
138
|
-
| 1 | General error |
|
|
139
|
-
| 2 | Invalid arguments |
|
|
140
|
-
| 3 | Topic not found |
|
|
141
|
-
| 4 | Permission denied |
|
|
142
|
-
|
|
143
|
-
## Environment variables
|
|
144
|
-
|
|
145
|
-
| Variable | Description | Default |
|
|
146
|
-
|----------|-------------|---------|
|
|
147
|
-
| \`VIBES_HOME\` | Vibes configuration directory | \`~/.vibes\` |
|
|
148
|
-
| \`VIBES_LOG_LEVEL\` | Logging level | \`info\` |
|
|
149
|
-
| \`VIBES_NO_COLOR\` | Disable colors | \`false\` |
|
|
150
|
-
| \`VIBES_HARDWARE\` | Hardware surface | \`consumer\` |
|
|
151
|
-
|
|
152
|
-
## Related
|
|
153
|
-
|
|
154
|
-
:::card{title="See also"}
|
|
155
|
-
- [\`cli.groups\`](cli.groups) — Command group structure
|
|
156
|
-
- [\`runtime.query\`](runtime.query) — Runtime discovery API
|
|
157
|
-
- [\`docs.topic\`](docs.topic) — Descriptor schema
|
|
158
|
-
:::
|
|
159
|
-
`;
|
|
160
|
-
|
|
161
|
-
const descriptor: DocsTopicDescriptor = {
|
|
162
|
-
kind: 'docs/topic',
|
|
163
|
-
id: 'cli.commands',
|
|
164
|
-
title: 'CLI Commands',
|
|
165
|
-
summary: 'Complete reference for vibes CLI commands and groups',
|
|
166
|
-
body: {
|
|
167
|
-
type: 'markdown',
|
|
168
|
-
sourceType: 'raw',
|
|
169
|
-
source: cli_commandsMarkdown
|
|
170
|
-
},
|
|
171
|
-
parent: 'cli',
|
|
172
|
-
order: 1,
|
|
173
|
-
tags: ['cli', 'commands', 'reference', 'man-pages'],
|
|
174
|
-
surfaces: ['cli', 'web', 'in-app'],
|
|
175
|
-
hardware: ['consumer'],
|
|
176
|
-
enabled: true,
|
|
177
|
-
man: {
|
|
178
|
-
name: 'vibes — CLI command reference',
|
|
179
|
-
section: 1,
|
|
180
|
-
synopsis: 'vibes <group> <command> [options]',
|
|
181
|
-
options: [
|
|
182
|
-
{ flag: '--help', description: 'Show help for command' },
|
|
183
|
-
{ flag: '--json', description: 'Output as JSON' },
|
|
184
|
-
{ flag: '--verbose', description: 'Enable verbose logging' },
|
|
185
|
-
{ flag: '--no-color', description: 'Disable ANSI colors' },
|
|
186
|
-
{ flag: '--bare', description: 'Skip envelope/formatting' }
|
|
187
|
-
],
|
|
188
|
-
examples: [
|
|
189
|
-
{
|
|
190
|
-
description: 'List all tools',
|
|
191
|
-
command: 'vibes tools list'
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
description: 'View man-page for a topic',
|
|
195
|
-
command: 'vibes man tools.list'
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
description: 'Search documentation',
|
|
199
|
-
command: 'vibes docs search "runtime query"'
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
description: 'Generate new descriptor',
|
|
203
|
-
command: 'vibes docs generate ai providers.anthropic'
|
|
204
|
-
}
|
|
205
|
-
],
|
|
206
|
-
seeAlso: ['cli.groups', 'runtime.query', 'docs.topic']
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
export default descriptor;
|
|
@@ -1,333 +0,0 @@
|
|
|
1
|
-
import type { DocsTopicDescriptor } from './types.ts';
|
|
2
|
-
|
|
3
|
-
const cli_groupsMarkdown = `---
|
|
4
|
-
title: CLI Groups
|
|
5
|
-
summary: Command group structure, nesting, and help display
|
|
6
|
-
tags: [cli, groups, commands, organization, help]
|
|
7
|
-
parent: cli
|
|
8
|
-
order: 2
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
# CLI Groups
|
|
12
|
-
|
|
13
|
-
Command groups organize CLI commands into logical subcommand trees. Groups provide structure, discoverability, and consistent help display across the vibes CLI.
|
|
14
|
-
|
|
15
|
-
## Overview
|
|
16
|
-
|
|
17
|
-
Groups are registered as \`cli/group\` runtime assets. Each group can contain commands or nested subgroups, forming a hierarchical command tree.
|
|
18
|
-
|
|
19
|
-
\`\`\`
|
|
20
|
-
vibes <group> <subgroup> <command> [options]
|
|
21
|
-
\`\`\`
|
|
22
|
-
|
|
23
|
-
## Group descriptor structure
|
|
24
|
-
|
|
25
|
-
Groups are defined with a descriptor that specifies metadata:
|
|
26
|
-
|
|
27
|
-
\`\`\`ts
|
|
28
|
-
import type { CLIGroupAssetDescriptor } from '@vibesdotdev/cli/schemas/descriptors';
|
|
29
|
-
|
|
30
|
-
const profileGroup: CLIGroupAssetDescriptor = {
|
|
31
|
-
kind: 'cli/group',
|
|
32
|
-
id: 'profile',
|
|
33
|
-
name: 'profile',
|
|
34
|
-
description: 'Manage configuration profiles',
|
|
35
|
-
parent: 'config', // optional — creates 'vibes config profile'
|
|
36
|
-
aliases: ['prof'], // optional aliases
|
|
37
|
-
surfaces: ['cli'],
|
|
38
|
-
order: 2, // sort order within parent
|
|
39
|
-
internal: false // if true, hidden unless --internal flag
|
|
40
|
-
};
|
|
41
|
-
\`\`\`
|
|
42
|
-
|
|
43
|
-
### Fields
|
|
44
|
-
|
|
45
|
-
| Field | Type | Required | Description |
|
|
46
|
-
|-------|------|----------|-------------|
|
|
47
|
-
| \`id\` | string | ✅ | Unique identifier (dot-separated for nesting) |
|
|
48
|
-
| \`name\` | string | ✅ | Command name as typed |
|
|
49
|
-
| \`description\` | string | ✅ | Help text shown in parent's help |
|
|
50
|
-
| \`parent\` | string | ❌ | Parent group id for nesting |
|
|
51
|
-
| \`aliases\` | string[] | ❌ | Alternative names |
|
|
52
|
-
| \`surfaces\` | \`'cli' | 'web' | 'worker' | 'bridge'\`[] | ❌ | Where group appears |
|
|
53
|
-
| \`order\` | number | ❌ | Sibling sort order (lower = earlier) |
|
|
54
|
-
| \`internal\` | boolean | ❌ | If true, hidden by default |
|
|
55
|
-
|
|
56
|
-
## Group registration
|
|
57
|
-
|
|
58
|
-
Groups are registered via the runtime plugin:
|
|
59
|
-
|
|
60
|
-
\`\`\`ts
|
|
61
|
-
// packages/cli/src/cli.plugin.ts
|
|
62
|
-
import profileGroup from './commands/profile/profile-group.descriptor';
|
|
63
|
-
|
|
64
|
-
export default createRuntimePlugin({
|
|
65
|
-
id: 'cli',
|
|
66
|
-
kinds: [cliGroupKind, cliCommandKind],
|
|
67
|
-
descriptors: [
|
|
68
|
-
profileGroup,
|
|
69
|
-
// ... other groups and commands
|
|
70
|
-
]
|
|
71
|
-
});
|
|
72
|
-
\`\`\`
|
|
73
|
-
|
|
74
|
-
## Nested groups
|
|
75
|
-
|
|
76
|
-
Groups can nest by referencing a parent:
|
|
77
|
-
|
|
78
|
-
\`\`\`ts
|
|
79
|
-
// Parent group
|
|
80
|
-
const configGroup: CLIGroupAssetDescriptor = {
|
|
81
|
-
kind: 'cli/group',
|
|
82
|
-
id: 'config',
|
|
83
|
-
name: 'config',
|
|
84
|
-
description: 'Configuration management'
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
// Child group
|
|
88
|
-
const profileGroup: CLIGroupAssetDescriptor = {
|
|
89
|
-
kind: 'cli/group',
|
|
90
|
-
id: 'config.profile',
|
|
91
|
-
name: 'profile',
|
|
92
|
-
description: 'Manage configuration profiles',
|
|
93
|
-
parent: 'config' // → 'vibes config profile'
|
|
94
|
-
};
|
|
95
|
-
\`\`\`
|
|
96
|
-
|
|
97
|
-
**Result:**
|
|
98
|
-
|
|
99
|
-
\`\`\`bash
|
|
100
|
-
vibes config # parent group
|
|
101
|
-
vibes config profile # nested group
|
|
102
|
-
vibes config profile list
|
|
103
|
-
vibes config profile create
|
|
104
|
-
\`\`\`
|
|
105
|
-
|
|
106
|
-
## Help display
|
|
107
|
-
|
|
108
|
-
Groups automatically generate help text:
|
|
109
|
-
|
|
110
|
-
\`\`\`bash
|
|
111
|
-
# Parent group help — shows subgroups and commands
|
|
112
|
-
$ vibes config --help
|
|
113
|
-
|
|
114
|
-
Usage: vibes config [options] [command]
|
|
115
|
-
|
|
116
|
-
Configuration management
|
|
117
|
-
|
|
118
|
-
Commands:
|
|
119
|
-
profile Manage configuration profiles
|
|
120
|
-
env Environment variable management
|
|
121
|
-
help [command] display help for command
|
|
122
|
-
|
|
123
|
-
# Nested group help
|
|
124
|
-
$ vibes config profile --help
|
|
125
|
-
|
|
126
|
-
Usage: vibes config profile [options] [command]
|
|
127
|
-
|
|
128
|
-
Manage configuration profiles
|
|
129
|
-
|
|
130
|
-
Commands:
|
|
131
|
-
list List all profiles
|
|
132
|
-
create Create a new profile
|
|
133
|
-
use Switch active profile
|
|
134
|
-
delete Delete a profile
|
|
135
|
-
info Show profile details
|
|
136
|
-
help [command] display help for command
|
|
137
|
-
\`\`\`
|
|
138
|
-
|
|
139
|
-
## Group resolution
|
|
140
|
-
|
|
141
|
-
The CLI surface resolves groups at runtime:
|
|
142
|
-
|
|
143
|
-
1. **Discovery** — Query \`runtime.assets('cli/group')\` for all group descriptors
|
|
144
|
-
2. **Filtering** — Apply surface and hardware filters
|
|
145
|
-
3. **Sorting** — Order by \`descriptor.order\`
|
|
146
|
-
4. **Registration** — Attach to Commander.js parent command
|
|
147
|
-
|
|
148
|
-
\`\`\`ts
|
|
149
|
-
// packages/cli/src/surface/register-groups.ts
|
|
150
|
-
const discovery = getCLIDiscovery(runtime, options);
|
|
151
|
-
const groups = discovery.sortedGroups;
|
|
152
|
-
|
|
153
|
-
for (const group of groups) {
|
|
154
|
-
await registerGroup(params, group);
|
|
155
|
-
}
|
|
156
|
-
\`\`\`
|
|
157
|
-
|
|
158
|
-
### Parent resolution
|
|
159
|
-
|
|
160
|
-
If a group references a missing parent:
|
|
161
|
-
|
|
162
|
-
- **Strict mode** (\`VIBES_CLI_STRICT=1\` or \`CLISurfaceOptions.strictGroupParents\`): throws error
|
|
163
|
-
- **Lenient mode** (default): logs warning, attaches to root
|
|
164
|
-
|
|
165
|
-
## Pattern-based groups
|
|
166
|
-
|
|
167
|
-
Groups can use patterns for dynamic behavior:
|
|
168
|
-
|
|
169
|
-
\`\`\`ts
|
|
170
|
-
const runtimeGroup: CLIPatternDescriptor = {
|
|
171
|
-
kind: 'cli/group',
|
|
172
|
-
id: 'runtime',
|
|
173
|
-
name: 'runtime',
|
|
174
|
-
description: 'Runtime management',
|
|
175
|
-
pattern: 'crud', // auto-generates list/create/delete commands
|
|
176
|
-
patternConfig: {
|
|
177
|
-
entityType: 'runtime/plugin',
|
|
178
|
-
listFields: ['id', 'name', 'version']
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
\`\`\`
|
|
182
|
-
|
|
183
|
-
Patterns are resolved by the pattern resolver:
|
|
184
|
-
|
|
185
|
-
\`\`\`ts
|
|
186
|
-
// packages/cli/src/surface/register-groups.ts
|
|
187
|
-
if (params.patternResolver && isPatternDescriptor(descriptor)) {
|
|
188
|
-
const ctx = await params.buildContext();
|
|
189
|
-
await params.patternResolver.resolve(
|
|
190
|
-
descriptor as CLIPatternDescriptor,
|
|
191
|
-
groupCmd,
|
|
192
|
-
ctx
|
|
193
|
-
);
|
|
194
|
-
}
|
|
195
|
-
\`\`\`
|
|
196
|
-
|
|
197
|
-
## Common patterns
|
|
198
|
-
|
|
199
|
-
### Flat structure
|
|
200
|
-
|
|
201
|
-
Simple commands without nesting:
|
|
202
|
-
|
|
203
|
-
\`\`\`ts
|
|
204
|
-
const completionGroup: CLIGroupAssetDescriptor = {
|
|
205
|
-
kind: 'cli/group',
|
|
206
|
-
id: 'shell-integration',
|
|
207
|
-
name: 'shell-integration',
|
|
208
|
-
description: 'Shell completions and integrations'
|
|
209
|
-
};
|
|
210
|
-
\`\`\`
|
|
211
|
-
|
|
212
|
-
### Deep nesting
|
|
213
|
-
|
|
214
|
-
Multi-level command trees:
|
|
215
|
-
|
|
216
|
-
\`\`\`ts
|
|
217
|
-
// vibes → dev → server → start
|
|
218
|
-
const serverGroup: CLIGroupAssetDescriptor = {
|
|
219
|
-
kind: 'cli/group',
|
|
220
|
-
id: 'dev.server',
|
|
221
|
-
name: 'server',
|
|
222
|
-
description: 'Development server',
|
|
223
|
-
parent: 'dev'
|
|
224
|
-
};
|
|
225
|
-
\`\`\`
|
|
226
|
-
|
|
227
|
-
### Aliased groups
|
|
228
|
-
|
|
229
|
-
Multiple access paths:
|
|
230
|
-
|
|
231
|
-
\`\`\`ts
|
|
232
|
-
const profileGroup: CLIGroupAssetDescriptor = {
|
|
233
|
-
kind: 'cli/group',
|
|
234
|
-
id: 'profile',
|
|
235
|
-
name: 'profile',
|
|
236
|
-
description: 'Manage profiles',
|
|
237
|
-
aliases: ['prof', 'p']
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
// All equivalent:
|
|
241
|
-
vibes profile list
|
|
242
|
-
vibes prof list
|
|
243
|
-
vibes p list
|
|
244
|
-
\`\`\`
|
|
245
|
-
|
|
246
|
-
## WRONG patterns
|
|
247
|
-
|
|
248
|
-
### ❌ Missing description
|
|
249
|
-
|
|
250
|
-
\`\`\`ts
|
|
251
|
-
// BAD — help text is empty
|
|
252
|
-
const group = {
|
|
253
|
-
kind: 'cli/group',
|
|
254
|
-
id: 'mystery',
|
|
255
|
-
name: 'mystery',
|
|
256
|
-
description: '' // ← shows as blank in help
|
|
257
|
-
};
|
|
258
|
-
\`\`\`
|
|
259
|
-
|
|
260
|
-
### ❌ Circular parent references
|
|
261
|
-
|
|
262
|
-
\`\`\`ts
|
|
263
|
-
// BAD — creates infinite loop
|
|
264
|
-
const groupA = { id: 'a', parent: 'b' };
|
|
265
|
-
const groupB = { id: 'b', parent: 'a' }; // ← circular!
|
|
266
|
-
\`\`\`
|
|
267
|
-
|
|
268
|
-
### ❌ Duplicate IDs
|
|
269
|
-
|
|
270
|
-
\`\`\`ts
|
|
271
|
-
// BAD — second registration overwrites first
|
|
272
|
-
const group1 = { id: 'profile', name: 'profile' };
|
|
273
|
-
const group2 = { id: 'profile', name: 'prof' }; // ← conflict!
|
|
274
|
-
\`\`\`
|
|
275
|
-
|
|
276
|
-
### ❌ Non-existent parent
|
|
277
|
-
|
|
278
|
-
\`\`\`ts
|
|
279
|
-
// BAD — parent 'config' doesn't exist
|
|
280
|
-
const profileGroup = {
|
|
281
|
-
id: 'profile',
|
|
282
|
-
parent: 'config' // ← warning in lenient mode, error in strict
|
|
283
|
-
};
|
|
284
|
-
\`\`\`
|
|
285
|
-
|
|
286
|
-
## Related
|
|
287
|
-
|
|
288
|
-
:::card{title="See also"}
|
|
289
|
-
- [\`cli.commands\`](cli.commands) — Command structure and execution
|
|
290
|
-
- [\`cli.output\`](cli.output) — Output formatting and display
|
|
291
|
-
- [\`runtime.assets\`](runtime.assets) — Asset discovery API
|
|
292
|
-
:::
|
|
293
|
-
`;
|
|
294
|
-
|
|
295
|
-
const descriptor: DocsTopicDescriptor = {
|
|
296
|
-
kind: 'docs/topic',
|
|
297
|
-
id: 'cli.groups',
|
|
298
|
-
title: 'CLI Groups',
|
|
299
|
-
summary: 'Command group structure, nesting, and help display',
|
|
300
|
-
body: {
|
|
301
|
-
type: 'markdown',
|
|
302
|
-
sourceType: 'raw',
|
|
303
|
-
source: cli_groupsMarkdown
|
|
304
|
-
},
|
|
305
|
-
parent: 'cli',
|
|
306
|
-
order: 2,
|
|
307
|
-
tags: ['cli', 'groups', 'commands', 'organization', 'help'],
|
|
308
|
-
surfaces: ['cli', 'web', 'in-app'],
|
|
309
|
-
hardware: ['consumer'],
|
|
310
|
-
enabled: true,
|
|
311
|
-
man: {
|
|
312
|
-
name: 'cli.groups — CLI command group structure',
|
|
313
|
-
section: 1,
|
|
314
|
-
synopsis: 'vibes man cli.groups',
|
|
315
|
-
examples: [
|
|
316
|
-
{
|
|
317
|
-
description: 'View group structure documentation',
|
|
318
|
-
command: 'vibes man cli.groups'
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
description: 'List all registered groups',
|
|
322
|
-
command: 'vibes runtime assets cli/group'
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
description: 'Show help for a group',
|
|
326
|
-
command: 'vibes profile --help'
|
|
327
|
-
}
|
|
328
|
-
],
|
|
329
|
-
seeAlso: ['cli.commands', 'cli.output', 'runtime.assets']
|
|
330
|
-
}
|
|
331
|
-
};
|
|
332
|
-
|
|
333
|
-
export default descriptor;
|