@vibesdotdev/cli 0.0.2 → 1.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -0
- package/README.md +261 -1
- package/dist/boot/action-lifetime.d.ts +16 -0
- package/dist/boot/action-lifetime.d.ts.map +1 -0
- package/dist/boot/action-lifetime.js +80 -0
- package/dist/boot/action-lifetime.js.map +1 -0
- package/dist/boot/bootstrap.d.ts +190 -0
- package/dist/boot/bootstrap.d.ts.map +1 -0
- package/dist/boot/bootstrap.js +737 -0
- package/dist/boot/bootstrap.js.map +1 -0
- package/dist/boot/cli-flags.d.ts +45 -0
- package/dist/boot/cli-flags.d.ts.map +1 -0
- package/dist/boot/cli-flags.js +113 -0
- package/dist/boot/cli-flags.js.map +1 -0
- package/dist/boot/config.d.ts +25 -0
- package/dist/boot/config.d.ts.map +1 -0
- package/dist/{config.js → boot/config.js} +1 -1
- package/dist/boot/config.js.map +1 -0
- package/dist/boot/external-url.d.ts +13 -0
- package/dist/boot/external-url.d.ts.map +1 -0
- package/dist/boot/external-url.js +66 -0
- package/dist/boot/external-url.js.map +1 -0
- package/dist/boot/host-argv.d.ts +7 -0
- package/dist/boot/host-argv.d.ts.map +1 -0
- package/dist/boot/host-argv.js +8 -0
- package/dist/boot/host-argv.js.map +1 -0
- package/dist/boot/host-bootstrap.d.ts +37 -0
- package/dist/boot/host-bootstrap.d.ts.map +1 -0
- package/dist/boot/host-bootstrap.js +60 -0
- package/dist/boot/host-bootstrap.js.map +1 -0
- package/dist/boot/providers.d.ts +35 -0
- package/dist/boot/providers.d.ts.map +1 -0
- package/dist/boot/providers.js +155 -0
- package/dist/boot/providers.js.map +1 -0
- package/dist/boot/schemas/external-url.d.ts +11 -0
- package/dist/boot/schemas/external-url.d.ts.map +1 -0
- package/dist/boot/schemas/external-url.js +3 -0
- package/dist/boot/schemas/external-url.js.map +1 -0
- package/dist/boot/schemas/host-bootstrap.d.ts +7 -0
- package/dist/boot/schemas/host-bootstrap.d.ts.map +1 -0
- package/dist/boot/schemas/host-bootstrap.js +3 -0
- package/dist/boot/schemas/host-bootstrap.js.map +1 -0
- package/dist/boot/schemas/providers.d.ts +23 -0
- package/dist/boot/schemas/providers.d.ts.map +1 -0
- package/dist/boot/schemas/providers.js +3 -0
- package/dist/boot/schemas/providers.js.map +1 -0
- package/dist/boot/schemas/types.d.ts +4 -0
- package/dist/boot/schemas/types.d.ts.map +1 -0
- package/dist/{api → boot}/schemas/types.js.map +1 -1
- package/dist/boot/tui-plugin-policy.d.ts +8 -0
- package/dist/boot/tui-plugin-policy.d.ts.map +1 -0
- package/dist/boot/tui-plugin-policy.js +26 -0
- package/dist/boot/tui-plugin-policy.js.map +1 -0
- package/dist/boot/version.d.ts +13 -0
- package/dist/boot/version.d.ts.map +1 -0
- package/dist/boot/version.js +14 -0
- package/dist/boot/version.js.map +1 -0
- package/dist/bun/index.d.ts +2 -0
- package/dist/bun/index.d.ts.map +1 -0
- package/dist/bun/index.js +2 -0
- package/dist/bun/index.js.map +1 -0
- package/dist/bun/interactive-host.d.ts +9 -0
- package/dist/bun/interactive-host.d.ts.map +1 -0
- package/dist/bun/interactive-host.js +18 -0
- package/dist/bun/interactive-host.js.map +1 -0
- package/dist/commands/cli.kinds.d.ts +1239 -0
- package/dist/commands/cli.kinds.d.ts.map +1 -0
- package/dist/commands/cli.kinds.js +138 -0
- package/dist/commands/cli.kinds.js.map +1 -0
- package/dist/commands/cli.plugin.d.ts +22 -0
- package/dist/commands/cli.plugin.d.ts.map +1 -0
- package/dist/commands/cli.plugin.js +138 -0
- package/dist/commands/cli.plugin.js.map +1 -0
- package/dist/commands/completion/bash.d.ts +1 -1
- package/dist/commands/completion/bash.d.ts.map +1 -1
- package/dist/commands/completion/bash.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/bash.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/bash.impl.consumer.js +6 -0
- package/dist/commands/completion/bash.impl.consumer.js.map +1 -0
- package/dist/commands/completion/bash.js +4 -2
- package/dist/commands/completion/bash.js.map +1 -1
- package/dist/commands/completion/completion.consumer.plugin.d.ts +3 -0
- package/dist/commands/completion/completion.consumer.plugin.d.ts.map +1 -0
- package/dist/commands/completion/completion.consumer.plugin.js +19 -0
- package/dist/commands/completion/completion.consumer.plugin.js.map +1 -0
- package/dist/commands/completion/completion.descriptor.d.ts +1 -2
- package/dist/commands/completion/completion.descriptor.d.ts.map +1 -1
- package/dist/commands/completion/completion.descriptor.js +11 -4
- package/dist/commands/completion/completion.descriptor.js.map +1 -1
- package/dist/commands/completion/completion.descriptors.d.ts +3 -0
- package/dist/commands/completion/completion.descriptors.d.ts.map +1 -0
- package/dist/commands/completion/completion.descriptors.js +56 -0
- package/dist/commands/completion/completion.descriptors.js.map +1 -0
- package/dist/commands/completion/completion.impl.d.ts +5 -4
- package/dist/commands/completion/completion.impl.d.ts.map +1 -1
- package/dist/commands/completion/completion.impl.js +104 -145
- package/dist/commands/completion/completion.impl.js.map +1 -1
- package/dist/commands/completion/completion.install.impl.consumer.d.ts +4 -0
- package/dist/commands/completion/completion.install.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/completion.install.impl.consumer.js +102 -0
- package/dist/commands/completion/completion.install.impl.consumer.js.map +1 -0
- package/dist/commands/completion/completion.kinds.d.ts +43 -0
- package/dist/commands/completion/completion.kinds.d.ts.map +1 -0
- package/dist/commands/completion/completion.kinds.js +17 -0
- package/dist/commands/completion/completion.kinds.js.map +1 -0
- package/dist/commands/completion/fig.d.ts +1 -1
- package/dist/commands/completion/fig.d.ts.map +1 -1
- package/dist/commands/completion/fig.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/fig.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/fig.impl.consumer.js +6 -0
- package/dist/commands/completion/fig.impl.consumer.js.map +1 -0
- package/dist/commands/completion/fish.d.ts +1 -1
- package/dist/commands/completion/fish.d.ts.map +1 -1
- package/dist/commands/completion/fish.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/fish.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/fish.impl.consumer.js +6 -0
- package/dist/commands/completion/fish.impl.consumer.js.map +1 -0
- package/dist/commands/completion/tree.d.ts +5 -26
- package/dist/commands/completion/tree.d.ts.map +1 -1
- package/dist/commands/completion/tree.js +26 -25
- package/dist/commands/completion/tree.js.map +1 -1
- package/dist/commands/completion/zsh-widget.js +4 -4
- package/dist/commands/completion/zsh.d.ts +1 -1
- package/dist/commands/completion/zsh.d.ts.map +1 -1
- package/dist/commands/completion/zsh.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/zsh.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/zsh.impl.consumer.js +6 -0
- package/dist/commands/completion/zsh.impl.consumer.js.map +1 -0
- package/dist/commands/completion/zsh.js +1 -1
- package/dist/commands/completion/zsh.js.map +1 -1
- package/dist/commands/docs/cli.commands.docs.descriptor.d.ts +8 -0
- package/dist/commands/docs/cli.commands.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.commands.docs.descriptor.js +55 -0
- package/dist/commands/docs/cli.commands.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/cli.docs.descriptor.d.ts +4 -0
- package/dist/commands/docs/cli.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.docs.descriptor.js +44 -0
- package/dist/commands/docs/cli.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.d.ts +4 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.js +40 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/cli.output.docs.descriptor.d.ts +4 -0
- package/dist/commands/docs/cli.output.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.output.docs.descriptor.js +45 -0
- package/dist/commands/docs/cli.output.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/content/cli-commands.json +1 -0
- package/dist/commands/docs/content/cli-groups.json +1 -0
- package/dist/commands/docs/content/cli-output.json +1 -0
- package/dist/commands/docs/doc-paths.d.ts +11 -0
- package/dist/commands/docs/doc-paths.d.ts.map +1 -0
- package/dist/commands/docs/doc-paths.js +32 -0
- package/dist/commands/docs/doc-paths.js.map +1 -0
- package/dist/commands/docs/generate.d.ts +48 -0
- package/dist/commands/docs/generate.d.ts.map +1 -0
- package/dist/commands/docs/generate.js +121 -0
- package/dist/commands/docs/generate.js.map +1 -0
- package/dist/commands/docs/render-command.d.ts +5 -0
- package/dist/commands/docs/render-command.d.ts.map +1 -0
- package/dist/commands/docs/render-command.js +117 -0
- package/dist/commands/docs/render-command.js.map +1 -0
- package/dist/commands/docs/render-group.d.ts +5 -0
- package/dist/commands/docs/render-group.d.ts.map +1 -0
- package/dist/commands/docs/render-group.js +62 -0
- package/dist/commands/docs/render-group.js.map +1 -0
- package/dist/commands/docs/schemas/generate.d.ts +14 -0
- package/dist/commands/docs/schemas/generate.d.ts.map +1 -0
- package/dist/commands/docs/schemas/generate.js +3 -0
- package/dist/commands/docs/schemas/generate.js.map +1 -0
- package/dist/commands/output.d.ts +27 -0
- package/dist/commands/output.d.ts.map +1 -0
- package/dist/commands/output.js +104 -0
- package/dist/commands/output.js.map +1 -0
- package/dist/commands/profile/_utils.d.ts +34 -9
- package/dist/commands/profile/_utils.d.ts.map +1 -1
- package/dist/commands/profile/_utils.js +65 -37
- package/dist/commands/profile/_utils.js.map +1 -1
- package/dist/commands/profile/profile-env.d.ts +42 -0
- package/dist/commands/profile/profile-env.d.ts.map +1 -0
- package/dist/commands/profile/profile-env.js +56 -0
- package/dist/commands/profile/profile-env.js.map +1 -0
- package/dist/commands/profile/profile-group.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile-group.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.create.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.create.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.create.descriptor.js +12 -1
- package/dist/commands/profile/profile.create.descriptor.js.map +1 -1
- package/dist/commands/profile/profile.create.impl.d.ts +2 -6
- package/dist/commands/profile/profile.create.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.create.impl.js +32 -9
- package/dist/commands/profile/profile.create.impl.js.map +1 -1
- package/dist/commands/profile/profile.delete.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.delete.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.delete.impl.d.ts +2 -7
- package/dist/commands/profile/profile.delete.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.delete.impl.js +33 -16
- package/dist/commands/profile/profile.delete.impl.js.map +1 -1
- package/dist/commands/profile/profile.environment.descriptor.d.ts +4 -0
- package/dist/commands/profile/profile.environment.descriptor.d.ts.map +1 -0
- package/dist/commands/profile/profile.environment.descriptor.js +26 -0
- package/dist/commands/profile/profile.environment.descriptor.js.map +1 -0
- package/dist/commands/profile/profile.environment.impl.d.ts +14 -0
- package/dist/commands/profile/profile.environment.impl.d.ts.map +1 -0
- package/dist/commands/profile/profile.environment.impl.js +33 -0
- package/dist/commands/profile/profile.environment.impl.js.map +1 -0
- package/dist/commands/profile/profile.info.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.info.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.info.descriptor.js +5 -1
- package/dist/commands/profile/profile.info.descriptor.js.map +1 -1
- package/dist/commands/profile/profile.info.impl.d.ts +5 -2
- package/dist/commands/profile/profile.info.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.info.impl.js +31 -14
- package/dist/commands/profile/profile.info.impl.js.map +1 -1
- package/dist/commands/profile/profile.list.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.list.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.list.descriptor.js +5 -1
- package/dist/commands/profile/profile.list.descriptor.js.map +1 -1
- package/dist/commands/profile/profile.list.impl.d.ts +17 -2
- package/dist/commands/profile/profile.list.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.list.impl.js +52 -25
- package/dist/commands/profile/profile.list.impl.js.map +1 -1
- package/dist/commands/profile/profile.use.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.use.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.use.impl.d.ts +2 -6
- package/dist/commands/profile/profile.use.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.use.impl.js +40 -10
- package/dist/commands/profile/profile.use.impl.js.map +1 -1
- package/dist/commands/runtime/codegen.command.descriptor.d.ts +26 -12
- package/dist/commands/runtime/codegen.command.descriptor.d.ts.map +1 -1
- package/dist/commands/runtime/codegen.command.descriptor.js +24 -6
- package/dist/commands/runtime/codegen.command.descriptor.js.map +1 -1
- package/dist/commands/runtime/codegen.command.impl.d.ts +15 -2
- package/dist/commands/runtime/codegen.command.impl.d.ts.map +1 -1
- package/dist/commands/runtime/codegen.command.impl.js +17 -30
- package/dist/commands/runtime/codegen.command.impl.js.map +1 -1
- package/dist/commands/runtime/codegen.d.ts +10 -14
- package/dist/commands/runtime/codegen.d.ts.map +1 -1
- package/dist/commands/runtime/codegen.declarations.d.ts +6 -0
- package/dist/commands/runtime/codegen.declarations.d.ts.map +1 -0
- package/dist/commands/runtime/codegen.declarations.js +6 -0
- package/dist/commands/runtime/codegen.declarations.js.map +1 -0
- package/dist/commands/runtime/codegen.js +85 -58
- package/dist/commands/runtime/codegen.js.map +1 -1
- package/dist/commands/runtime/export/markdown-document.d.ts +25 -0
- package/dist/commands/runtime/export/markdown-document.d.ts.map +1 -0
- package/dist/commands/runtime/export/markdown-document.js +38 -0
- package/dist/commands/runtime/export/markdown-document.js.map +1 -0
- package/dist/commands/runtime/export/markdown.d.ts +17 -0
- package/dist/commands/runtime/export/markdown.d.ts.map +1 -0
- package/dist/commands/runtime/export/markdown.js +141 -0
- package/dist/commands/runtime/export/markdown.js.map +1 -0
- package/dist/commands/runtime/export/read.d.ts +27 -0
- package/dist/commands/runtime/export/read.d.ts.map +1 -0
- package/dist/commands/runtime/export/read.js +128 -0
- package/dist/commands/runtime/export/read.js.map +1 -0
- package/dist/commands/runtime/export/reading-notes.d.ts +11 -0
- package/dist/commands/runtime/export/reading-notes.d.ts.map +1 -0
- package/dist/commands/runtime/export/reading-notes.js +45 -0
- package/dist/commands/runtime/export/reading-notes.js.map +1 -0
- package/dist/commands/runtime/export/register.d.ts +34 -0
- package/dist/commands/runtime/export/register.d.ts.map +1 -0
- package/dist/commands/runtime/export/register.js +57 -0
- package/dist/commands/runtime/export/register.js.map +1 -0
- package/dist/commands/runtime/export/schemas.d.ts +104 -0
- package/dist/commands/runtime/export/schemas.d.ts.map +1 -0
- package/dist/commands/runtime/export/schemas.js +38 -0
- package/dist/commands/runtime/export/schemas.js.map +1 -0
- package/dist/commands/runtime/export/write.d.ts +16 -0
- package/dist/commands/runtime/export/write.d.ts.map +1 -0
- package/dist/commands/runtime/export/write.js +36 -0
- package/dist/commands/runtime/export/write.js.map +1 -0
- package/dist/commands/runtime/export.command.impl.d.ts +18 -0
- package/dist/commands/runtime/export.command.impl.d.ts.map +1 -0
- package/dist/commands/runtime/export.command.impl.js +39 -0
- package/dist/commands/runtime/export.command.impl.js.map +1 -0
- package/dist/commands/runtime/export.d.ts +28 -0
- package/dist/commands/runtime/export.d.ts.map +1 -0
- package/dist/commands/runtime/export.descriptor.d.ts +55 -0
- package/dist/commands/runtime/export.descriptor.d.ts.map +1 -0
- package/dist/commands/runtime/export.descriptor.js +58 -0
- package/dist/commands/runtime/export.descriptor.js.map +1 -0
- package/dist/commands/runtime/export.js +28 -0
- package/dist/commands/runtime/export.js.map +1 -0
- package/dist/commands/runtime/index.d.ts +2 -2
- package/dist/commands/runtime/index.d.ts.map +1 -1
- package/dist/commands/runtime/index.js +3 -3
- package/dist/commands/runtime/index.js.map +1 -1
- package/dist/commands/runtime/plugin.d.ts +1 -1
- package/dist/commands/runtime/plugin.d.ts.map +1 -1
- package/dist/commands/runtime/plugin.js +1 -1
- package/dist/commands/runtime/plugin.js.map +1 -1
- package/dist/commands/runtime/runtime-group.descriptor.d.ts +1 -1
- package/dist/commands/runtime/runtime-group.descriptor.d.ts.map +1 -1
- package/dist/commands/schemas/output.d.ts +26 -0
- package/dist/commands/schemas/output.d.ts.map +1 -0
- package/dist/commands/schemas/output.js +14 -0
- package/dist/commands/schemas/output.js.map +1 -0
- package/dist/commands/schemas/profile-environment.d.ts +6 -0
- package/dist/commands/schemas/profile-environment.d.ts.map +1 -0
- package/dist/commands/schemas/profile-environment.js +3 -0
- package/dist/commands/schemas/profile-environment.js.map +1 -0
- package/dist/commands/schemas/profile-list.d.ts +22 -0
- package/dist/commands/schemas/profile-list.d.ts.map +1 -0
- package/dist/commands/schemas/profile-list.js +3 -0
- package/dist/commands/schemas/profile-list.js.map +1 -0
- package/dist/commands/skills/_skills.d.ts +98 -0
- package/dist/commands/skills/_skills.d.ts.map +1 -0
- package/dist/commands/skills/_skills.js +183 -0
- package/dist/commands/skills/_skills.js.map +1 -0
- package/dist/commands/skills/skills-group.descriptor.d.ts +4 -0
- package/dist/commands/skills/skills-group.descriptor.d.ts.map +1 -0
- package/dist/commands/skills/skills-group.descriptor.js +12 -0
- package/dist/commands/skills/skills-group.descriptor.js.map +1 -0
- package/dist/commands/skills/skills.install.descriptor.d.ts +4 -0
- package/dist/commands/skills/skills.install.descriptor.d.ts.map +1 -0
- package/dist/commands/skills/skills.install.descriptor.js +37 -0
- package/dist/commands/skills/skills.install.descriptor.js.map +1 -0
- package/dist/commands/skills/skills.install.impl.d.ts +12 -0
- package/dist/commands/skills/skills.install.impl.d.ts.map +1 -0
- package/dist/commands/skills/skills.install.impl.js +65 -0
- package/dist/commands/skills/skills.install.impl.js.map +1 -0
- package/dist/commands/skills/skills.list.descriptor.d.ts +4 -0
- package/dist/commands/skills/skills.list.descriptor.d.ts.map +1 -0
- package/dist/commands/skills/skills.list.descriptor.js +23 -0
- package/dist/commands/skills/skills.list.descriptor.js.map +1 -0
- package/dist/commands/skills/skills.list.impl.d.ts +11 -0
- package/dist/commands/skills/skills.list.impl.d.ts.map +1 -0
- package/dist/commands/skills/skills.list.impl.js +69 -0
- package/dist/commands/skills/skills.list.impl.js.map +1 -0
- package/dist/core/runtime/shared/context.d.ts +16 -16
- package/dist/core/runtime/shared/context.d.ts.map +1 -1
- package/dist/core/runtime/shared/context.js +20 -35
- package/dist/core/runtime/shared/context.js.map +1 -1
- package/dist/core/runtime/shared/options.d.ts +5 -19
- package/dist/core/runtime/shared/options.d.ts.map +1 -1
- package/dist/core/runtime/shared/options.js +87 -42
- package/dist/core/runtime/shared/options.js.map +1 -1
- package/dist/design-inventory.d.ts +23 -0
- package/dist/design-inventory.d.ts.map +1 -0
- package/dist/design-inventory.js +66 -0
- package/dist/design-inventory.js.map +1 -0
- package/dist/index.d.ts +12 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -25
- package/dist/index.js.map +1 -1
- package/dist/invocation/client.d.ts +20 -0
- package/dist/invocation/client.d.ts.map +1 -0
- package/dist/invocation/client.js +25 -0
- package/dist/invocation/client.js.map +1 -0
- package/dist/invocation/state.d.ts +10 -0
- package/dist/invocation/state.d.ts.map +1 -0
- package/dist/invocation/state.js +32 -0
- package/dist/invocation/state.js.map +1 -0
- package/dist/patterns/builtins/config-namespace-commands.d.ts +10 -0
- package/dist/patterns/builtins/config-namespace-commands.d.ts.map +1 -0
- package/dist/patterns/builtins/config-namespace-commands.js +132 -0
- package/dist/patterns/builtins/config-namespace-commands.js.map +1 -0
- package/dist/patterns/builtins/config-namespace-output.d.ts +9 -0
- package/dist/patterns/builtins/config-namespace-output.d.ts.map +1 -0
- package/dist/patterns/builtins/config-namespace-output.js +31 -0
- package/dist/patterns/builtins/config-namespace-output.js.map +1 -0
- package/dist/patterns/builtins/config-namespace.d.ts +23 -0
- package/dist/patterns/builtins/config-namespace.d.ts.map +1 -0
- package/dist/patterns/builtins/config-namespace.js +70 -0
- package/dist/patterns/builtins/config-namespace.js.map +1 -0
- package/dist/patterns/builtins/crud-commands.d.ts +11 -0
- package/dist/patterns/builtins/crud-commands.d.ts.map +1 -0
- package/dist/patterns/builtins/crud-commands.js +105 -0
- package/dist/patterns/builtins/crud-commands.js.map +1 -0
- package/dist/patterns/builtins/crud-output.d.ts +7 -0
- package/dist/patterns/builtins/crud-output.d.ts.map +1 -0
- package/dist/patterns/builtins/crud-output.js +21 -0
- package/dist/patterns/builtins/crud-output.js.map +1 -0
- package/dist/patterns/builtins/crud.d.ts +16 -0
- package/dist/patterns/builtins/crud.d.ts.map +1 -0
- package/dist/patterns/builtins/crud.js +38 -0
- package/dist/patterns/builtins/crud.js.map +1 -0
- package/dist/patterns/{log-viewer.d.ts → builtins/log-viewer.d.ts} +5 -5
- package/dist/patterns/builtins/log-viewer.d.ts.map +1 -0
- package/dist/patterns/{log-viewer.js → builtins/log-viewer.js} +31 -9
- package/dist/patterns/builtins/log-viewer.js.map +1 -0
- package/dist/patterns/builtins/output.d.ts +5 -0
- package/dist/patterns/builtins/output.d.ts.map +1 -0
- package/dist/patterns/builtins/output.js +25 -0
- package/dist/patterns/builtins/output.js.map +1 -0
- package/dist/patterns/{process-manager.d.ts → builtins/process-manager.d.ts} +9 -4
- package/dist/patterns/builtins/process-manager.d.ts.map +1 -0
- package/dist/patterns/{process-manager.js → builtins/process-manager.js} +46 -29
- package/dist/patterns/builtins/process-manager.js.map +1 -0
- package/dist/patterns/builtins/tool-wrapper.d.ts +18 -0
- package/dist/patterns/builtins/tool-wrapper.d.ts.map +1 -0
- package/dist/patterns/builtins/tool-wrapper.js +124 -0
- package/dist/patterns/builtins/tool-wrapper.js.map +1 -0
- package/dist/patterns/cli-value.d.ts +3 -0
- package/dist/patterns/cli-value.d.ts.map +1 -0
- package/dist/patterns/cli-value.js +42 -0
- package/dist/patterns/cli-value.js.map +1 -0
- package/dist/patterns/index.d.ts +5 -9
- package/dist/patterns/index.d.ts.map +1 -1
- package/dist/patterns/index.js +5 -9
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/pattern.kinds.d.ts +30 -0
- package/dist/patterns/pattern.kinds.d.ts.map +1 -0
- package/dist/patterns/pattern.kinds.js +8 -0
- package/dist/patterns/pattern.kinds.js.map +1 -0
- package/dist/patterns/resolver.d.ts +11 -32
- package/dist/patterns/resolver.d.ts.map +1 -1
- package/dist/patterns/resolver.js +14 -45
- package/dist/patterns/resolver.js.map +1 -1
- package/dist/patterns/schemas.d.ts +9 -492
- package/dist/patterns/schemas.d.ts.map +1 -1
- package/dist/patterns/schemas.js +5 -94
- package/dist/patterns/schemas.js.map +1 -1
- package/dist/schemas/bootstrap.d.ts +242 -0
- package/dist/schemas/bootstrap.d.ts.map +1 -0
- package/dist/schemas/bootstrap.js +7 -0
- package/dist/schemas/bootstrap.js.map +1 -0
- package/dist/schemas/command-implementation.d.ts +34 -0
- package/dist/schemas/command-implementation.d.ts.map +1 -0
- package/dist/schemas/command-implementation.js +31 -0
- package/dist/schemas/command-implementation.js.map +1 -0
- package/dist/schemas/command-recommendations.d.ts +9 -0
- package/dist/schemas/command-recommendations.d.ts.map +1 -0
- package/dist/schemas/command-recommendations.js +14 -0
- package/dist/schemas/command-recommendations.js.map +1 -0
- package/dist/schemas/completion.d.ts +118 -0
- package/dist/schemas/completion.d.ts.map +1 -0
- package/dist/schemas/completion.js +63 -0
- package/dist/schemas/completion.js.map +1 -0
- package/dist/schemas/descriptors.d.ts +1 -129
- package/dist/schemas/descriptors.d.ts.map +1 -1
- package/dist/schemas/descriptors.js +1 -95
- package/dist/schemas/descriptors.js.map +1 -1
- package/dist/schemas/design-inventory.d.ts +20 -0
- package/dist/schemas/design-inventory.d.ts.map +1 -0
- package/dist/schemas/design-inventory.js +10 -0
- package/dist/schemas/design-inventory.js.map +1 -0
- package/dist/schemas/discovery.d.ts +17 -0
- package/dist/schemas/discovery.d.ts.map +1 -0
- package/dist/schemas/discovery.js +15 -0
- package/dist/schemas/discovery.js.map +1 -0
- package/dist/schemas/exit.d.ts +33 -0
- package/dist/schemas/exit.d.ts.map +1 -0
- package/dist/schemas/exit.js +20 -0
- package/dist/schemas/exit.js.map +1 -0
- package/dist/schemas/interactive-host.d.ts +10 -0
- package/dist/schemas/interactive-host.d.ts.map +1 -0
- package/dist/schemas/interactive-host.js +11 -0
- package/dist/schemas/interactive-host.js.map +1 -0
- package/dist/schemas/output-format.d.ts +61 -0
- package/dist/schemas/output-format.d.ts.map +1 -0
- package/dist/schemas/output-format.js +26 -0
- package/dist/schemas/output-format.js.map +1 -0
- package/dist/schemas/pattern-implementation.d.ts +1572 -0
- package/dist/schemas/pattern-implementation.d.ts.map +1 -0
- package/dist/schemas/pattern-implementation.js +12 -0
- package/dist/schemas/pattern-implementation.js.map +1 -0
- package/dist/schemas/pattern-input.d.ts +152 -0
- package/dist/schemas/pattern-input.d.ts.map +1 -0
- package/dist/schemas/pattern-input.js +194 -0
- package/dist/schemas/pattern-input.js.map +1 -0
- package/dist/schemas/pm-context.d.ts +17 -0
- package/dist/schemas/pm-context.d.ts.map +1 -0
- package/dist/schemas/pm-context.js +13 -0
- package/dist/schemas/pm-context.js.map +1 -0
- package/dist/schemas/prompts.d.ts +61 -0
- package/dist/schemas/prompts.d.ts.map +1 -0
- package/dist/schemas/prompts.js +43 -0
- package/dist/schemas/prompts.js.map +1 -0
- package/dist/schemas/runtime-codegen.d.ts +191 -0
- package/dist/schemas/runtime-codegen.d.ts.map +1 -0
- package/dist/schemas/runtime-codegen.js +83 -0
- package/dist/schemas/runtime-codegen.js.map +1 -0
- package/dist/schemas/surface.d.ts +33 -20
- package/dist/schemas/surface.d.ts.map +1 -1
- package/dist/schemas/surface.js +2 -1
- package/dist/schemas/surface.js.map +1 -1
- package/dist/schemas/terminal-input.d.ts +15 -0
- package/dist/schemas/terminal-input.d.ts.map +1 -0
- package/dist/schemas/terminal-input.js +13 -0
- package/dist/schemas/terminal-input.js.map +1 -0
- package/dist/schemas/types.d.ts +1 -201
- package/dist/schemas/types.d.ts.map +1 -1
- package/dist/support/cli-inventory.generated.d.ts +4 -0
- package/dist/support/cli-inventory.generated.d.ts.map +1 -0
- package/dist/support/cli-inventory.generated.js +31 -0
- package/dist/support/cli-inventory.generated.js.map +1 -0
- package/dist/support/logging/cli-startup.logger.descriptor.d.ts.map +1 -0
- package/dist/support/logging/cli-startup.logger.descriptor.js.map +1 -0
- package/dist/support/logging/logging.d.ts +8 -0
- package/dist/support/logging/logging.d.ts.map +1 -0
- package/dist/support/logging/logging.js +13 -0
- package/dist/support/logging/logging.js.map +1 -0
- package/dist/support/terminal-input.d.ts +11 -0
- package/dist/support/terminal-input.d.ts.map +1 -0
- package/dist/support/terminal-input.js +39 -0
- package/dist/support/terminal-input.js.map +1 -0
- package/dist/support/ui/context.descriptor.d.ts +35 -0
- package/dist/support/ui/context.descriptor.d.ts.map +1 -0
- package/dist/{ui.context.descriptor.js → support/ui/context.descriptor.js} +2 -2
- package/dist/support/ui/context.descriptor.js.map +1 -0
- package/dist/support/ui/format.client.d.ts +42 -0
- package/dist/support/ui/format.client.d.ts.map +1 -0
- package/dist/support/ui/format.client.js +92 -0
- package/dist/support/ui/format.client.js.map +1 -0
- package/dist/support/ui/format.kinds.d.ts +30 -0
- package/dist/support/ui/format.kinds.d.ts.map +1 -0
- package/dist/support/ui/format.kinds.js +8 -0
- package/dist/support/ui/format.kinds.js.map +1 -0
- package/dist/support/ui/format.plugin.d.ts +7 -0
- package/dist/support/ui/format.plugin.d.ts.map +1 -0
- package/dist/support/ui/format.plugin.js +23 -0
- package/dist/support/ui/format.plugin.js.map +1 -0
- package/dist/support/ui/formats.d.ts +4 -0
- package/dist/support/ui/formats.d.ts.map +1 -0
- package/dist/support/ui/formats.js +34 -0
- package/dist/support/ui/formats.js.map +1 -0
- package/dist/support/ui/prompts.d.ts +9 -0
- package/dist/support/ui/prompts.d.ts.map +1 -0
- package/dist/support/ui/prompts.js +99 -0
- package/dist/support/ui/prompts.js.map +1 -0
- package/dist/support/ui/schemas/types.d.ts +2 -0
- package/dist/support/ui/schemas/types.d.ts.map +1 -0
- package/dist/support/ui/schemas/types.js.map +1 -0
- package/dist/support/ui/schemas/ui-toolkit.d.ts +45 -0
- package/dist/support/ui/schemas/ui-toolkit.d.ts.map +1 -0
- package/dist/support/ui/schemas/ui-toolkit.js +2 -0
- package/dist/support/ui/schemas/ui-toolkit.js.map +1 -0
- package/dist/support/ui/showcase.d.ts +18 -0
- package/dist/support/ui/showcase.d.ts.map +1 -0
- package/dist/support/ui/showcase.js +101 -0
- package/dist/support/ui/showcase.js.map +1 -0
- package/dist/support/ui/table.d.ts +28 -0
- package/dist/support/ui/table.d.ts.map +1 -0
- package/dist/support/ui/table.js +74 -0
- package/dist/support/ui/table.js.map +1 -0
- package/dist/support/ui/toolkit.d.ts +56 -0
- package/dist/support/ui/toolkit.d.ts.map +1 -0
- package/dist/support/ui/toolkit.js +130 -0
- package/dist/support/ui/toolkit.js.map +1 -0
- package/dist/support/vibesdev/index.d.ts +2 -0
- package/dist/support/vibesdev/index.d.ts.map +1 -0
- package/dist/support/vibesdev/index.js +3 -0
- package/dist/support/vibesdev/index.js.map +1 -0
- package/dist/surface/CLISurface.d.ts +77 -3
- package/dist/surface/CLISurface.d.ts.map +1 -1
- package/dist/surface/CLISurface.js +642 -98
- package/dist/surface/CLISurface.js.map +1 -1
- package/dist/surface/argument-name.d.ts +14 -0
- package/dist/surface/argument-name.d.ts.map +1 -0
- package/dist/surface/argument-name.js +23 -0
- package/dist/surface/argument-name.js.map +1 -0
- package/dist/surface/attach-tui-action.d.ts +35 -9
- package/dist/surface/attach-tui-action.d.ts.map +1 -1
- package/dist/surface/attach-tui-action.js +50 -43
- package/dist/surface/attach-tui-action.js.map +1 -1
- package/dist/surface/build-context.d.ts +2 -2
- package/dist/surface/build-context.d.ts.map +1 -1
- package/dist/surface/build-context.js +26 -44
- package/dist/surface/build-context.js.map +1 -1
- package/dist/surface/command-group-policy.d.ts +2 -3
- package/dist/surface/command-group-policy.d.ts.map +1 -1
- package/dist/surface/command-group-policy.js +1 -11
- package/dist/surface/command-group-policy.js.map +1 -1
- package/dist/surface/command-implementation.d.ts +9 -0
- package/dist/surface/command-implementation.d.ts.map +1 -0
- package/dist/surface/command-implementation.js +19 -0
- package/dist/surface/command-implementation.js.map +1 -0
- package/dist/surface/command-options.d.ts +29 -0
- package/dist/surface/command-options.d.ts.map +1 -0
- package/dist/surface/command-options.js +57 -0
- package/dist/surface/command-options.js.map +1 -0
- package/dist/surface/commander-action.d.ts +25 -0
- package/dist/surface/commander-action.d.ts.map +1 -0
- package/dist/surface/commander-action.js +38 -0
- package/dist/surface/commander-action.js.map +1 -0
- package/dist/surface/discovery-cache.d.ts +3 -15
- package/dist/surface/discovery-cache.d.ts.map +1 -1
- package/dist/surface/discovery-cache.js +6 -33
- package/dist/surface/discovery-cache.js.map +1 -1
- package/dist/surface/exit.d.ts +10 -0
- package/dist/surface/exit.d.ts.map +1 -0
- package/dist/surface/exit.js +33 -0
- package/dist/surface/exit.js.map +1 -0
- package/dist/surface/failure-of.d.ts +9 -0
- package/dist/surface/failure-of.d.ts.map +1 -0
- package/dist/surface/failure-of.js +17 -0
- package/dist/surface/failure-of.js.map +1 -0
- package/dist/surface/failure-output.d.ts +50 -0
- package/dist/surface/failure-output.d.ts.map +1 -0
- package/dist/surface/failure-output.js +84 -0
- package/dist/surface/failure-output.js.map +1 -0
- package/dist/surface/failure-report.d.ts +78 -0
- package/dist/surface/failure-report.d.ts.map +1 -0
- package/dist/surface/failure-report.js +229 -0
- package/dist/surface/failure-report.js.map +1 -0
- package/dist/surface/group-fallback.d.ts +32 -0
- package/dist/surface/group-fallback.d.ts.map +1 -0
- package/dist/surface/group-fallback.js +78 -0
- package/dist/surface/group-fallback.js.map +1 -0
- package/dist/surface/index.d.ts +10 -0
- package/dist/surface/index.d.ts.map +1 -0
- package/dist/surface/index.js +8 -0
- package/dist/surface/index.js.map +1 -0
- package/dist/surface/inherited-options.d.ts +28 -0
- package/dist/surface/inherited-options.d.ts.map +1 -0
- package/dist/surface/inherited-options.js +108 -0
- package/dist/surface/inherited-options.js.map +1 -0
- package/dist/surface/interactive-gate.d.ts +41 -0
- package/dist/surface/interactive-gate.d.ts.map +1 -0
- package/dist/surface/interactive-gate.js +112 -0
- package/dist/surface/interactive-gate.js.map +1 -0
- package/dist/surface/invocation-actions.d.ts +40 -0
- package/dist/surface/invocation-actions.d.ts.map +1 -0
- package/dist/surface/invocation-actions.js +78 -0
- package/dist/surface/invocation-actions.js.map +1 -0
- package/dist/surface/invocation-effects.d.ts +11 -0
- package/dist/surface/invocation-effects.d.ts.map +1 -0
- package/dist/surface/invocation-effects.js +52 -0
- package/dist/surface/invocation-effects.js.map +1 -0
- package/dist/surface/invocation-lifecycle.d.ts +49 -0
- package/dist/surface/invocation-lifecycle.d.ts.map +1 -0
- package/dist/surface/invocation-lifecycle.js +127 -0
- package/dist/surface/invocation-lifecycle.js.map +1 -0
- package/dist/surface/output-format-request.d.ts +23 -0
- package/dist/surface/output-format-request.d.ts.map +1 -0
- package/dist/surface/output-format-request.js +116 -0
- package/dist/surface/output-format-request.js.map +1 -0
- package/dist/surface/pm-context.d.ts +5 -0
- package/dist/surface/pm-context.d.ts.map +1 -0
- package/dist/surface/pm-context.js +69 -0
- package/dist/surface/pm-context.js.map +1 -0
- package/dist/surface/register-commands.d.ts +24 -4
- package/dist/surface/register-commands.d.ts.map +1 -1
- package/dist/surface/register-commands.js +156 -63
- package/dist/surface/register-commands.js.map +1 -1
- package/dist/surface/register-groups.d.ts +4 -4
- package/dist/surface/register-groups.d.ts.map +1 -1
- package/dist/surface/register-groups.js +71 -9
- package/dist/surface/register-groups.js.map +1 -1
- package/dist/surface/schemas/CLISurface.d.ts +31 -0
- package/dist/surface/schemas/CLISurface.d.ts.map +1 -0
- package/dist/surface/schemas/CLISurface.js +2 -0
- package/dist/surface/schemas/CLISurface.js.map +1 -0
- package/dist/surface/schemas/command-implementation.d.ts +20 -0
- package/dist/surface/schemas/command-implementation.d.ts.map +1 -0
- package/dist/surface/schemas/command-implementation.js +2 -0
- package/dist/surface/schemas/command-implementation.js.map +1 -0
- package/dist/surface/schemas/interactive-gate.d.ts +29 -0
- package/dist/surface/schemas/interactive-gate.d.ts.map +1 -0
- package/dist/surface/schemas/interactive-gate.js +2 -0
- package/dist/surface/schemas/interactive-gate.js.map +1 -0
- package/package.json +273 -136
- package/bin/vibes.ts +0 -26
- package/dist/api/client/factory.d.ts +0 -29
- package/dist/api/client/factory.d.ts.map +0 -1
- package/dist/api/client/factory.js +0 -189
- package/dist/api/client/factory.js.map +0 -1
- package/dist/api/schemas/common.d.ts +0 -58
- package/dist/api/schemas/common.d.ts.map +0 -1
- package/dist/api/schemas/common.js +0 -48
- package/dist/api/schemas/common.js.map +0 -1
- package/dist/api/schemas/types.d.ts +0 -30
- package/dist/api/schemas/types.d.ts.map +0 -1
- package/dist/api/services/api.d.ts +0 -14
- package/dist/api/services/api.d.ts.map +0 -1
- package/dist/api/services/api.js +0 -110
- package/dist/api/services/api.js.map +0 -1
- package/dist/api/types.d.ts +0 -6
- package/dist/api/types.d.ts.map +0 -1
- package/dist/api/types.js +0 -5
- package/dist/api/types.js.map +0 -1
- package/dist/bin.d.ts +0 -28
- package/dist/bin.d.ts.map +0 -1
- package/dist/bin.js +0 -73
- package/dist/bin.js.map +0 -1
- package/dist/bootstrap.d.ts +0 -14
- package/dist/bootstrap.d.ts.map +0 -1
- package/dist/bootstrap.js +0 -14
- package/dist/bootstrap.js.map +0 -1
- package/dist/cli.plugin.d.ts +0 -20
- package/dist/cli.plugin.d.ts.map +0 -1
- package/dist/cli.plugin.js +0 -170
- package/dist/cli.plugin.js.map +0 -1
- package/dist/commands/runtime/_logging.d.ts +0 -11
- package/dist/commands/runtime/_logging.d.ts.map +0 -1
- package/dist/commands/runtime/_logging.js +0 -40
- package/dist/commands/runtime/_logging.js.map +0 -1
- package/dist/config.d.ts +0 -17
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/core/index.d.ts +0 -9
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -5
- package/dist/core/index.js.map +0 -1
- package/dist/core/namespace/hook.d.ts +0 -12
- package/dist/core/namespace/hook.d.ts.map +0 -1
- package/dist/core/namespace/hook.js +0 -15
- package/dist/core/namespace/hook.js.map +0 -1
- package/dist/core/namespace/index.d.ts +0 -18
- package/dist/core/namespace/index.d.ts.map +0 -1
- package/dist/core/namespace/index.js +0 -214
- package/dist/core/namespace/index.js.map +0 -1
- package/dist/core/namespace/schemas/index.d.ts +0 -25
- package/dist/core/namespace/schemas/index.d.ts.map +0 -1
- package/dist/core/namespace/schemas/index.js +0 -2
- package/dist/core/namespace/schemas/index.js.map +0 -1
- package/dist/core/plugins/types.d.ts +0 -81
- package/dist/core/plugins/types.d.ts.map +0 -1
- package/dist/core/plugins/types.js +0 -6
- package/dist/core/plugins/types.js.map +0 -1
- package/dist/core/runtime/context.d.ts +0 -25
- package/dist/core/runtime/context.d.ts.map +0 -1
- package/dist/core/runtime/context.js +0 -30
- package/dist/core/runtime/context.js.map +0 -1
- package/dist/core/runtime/hooks.d.ts +0 -12
- package/dist/core/runtime/hooks.d.ts.map +0 -1
- package/dist/core/runtime/hooks.js +0 -2
- package/dist/core/runtime/hooks.js.map +0 -1
- package/dist/core/schemas/manifest.d.ts +0 -24
- package/dist/core/schemas/manifest.d.ts.map +0 -1
- package/dist/core/schemas/manifest.js +0 -6
- package/dist/core/schemas/manifest.js.map +0 -1
- package/dist/core/schemas/types.d.ts +0 -7
- package/dist/core/schemas/types.d.ts.map +0 -1
- package/dist/core/schemas/types.js.map +0 -1
- package/dist/core/ui/interface.d.ts +0 -12
- package/dist/core/ui/interface.d.ts.map +0 -1
- package/dist/core/ui/interface.js +0 -6
- package/dist/core/ui/interface.js.map +0 -1
- package/dist/docs/cli.commands.docs.descriptor.d.ts +0 -4
- package/dist/docs/cli.commands.docs.descriptor.d.ts.map +0 -1
- package/dist/docs/cli.commands.docs.descriptor.js +0 -207
- package/dist/docs/cli.commands.docs.descriptor.js.map +0 -1
- package/dist/docs/cli.groups.docs.descriptor.d.ts +0 -4
- package/dist/docs/cli.groups.docs.descriptor.d.ts.map +0 -1
- package/dist/docs/cli.groups.docs.descriptor.js +0 -330
- package/dist/docs/cli.groups.docs.descriptor.js.map +0 -1
- package/dist/docs/cli.output.docs.descriptor.d.ts +0 -4
- package/dist/docs/cli.output.docs.descriptor.d.ts.map +0 -1
- package/dist/docs/cli.output.docs.descriptor.js +0 -442
- package/dist/docs/cli.output.docs.descriptor.js.map +0 -1
- package/dist/docs/types.d.ts +0 -19
- package/dist/docs/types.d.ts.map +0 -1
- package/dist/docs/types.js +0 -2
- package/dist/docs/types.js.map +0 -1
- package/dist/errors.d.ts +0 -74
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -113
- package/dist/errors.js.map +0 -1
- package/dist/logging/cli-startup.logger.descriptor.d.ts.map +0 -1
- package/dist/logging/cli-startup.logger.descriptor.js.map +0 -1
- package/dist/logging.d.ts +0 -4
- package/dist/logging.d.ts.map +0 -1
- package/dist/logging.js +0 -21
- package/dist/logging.js.map +0 -1
- package/dist/patterns/config-namespace.d.ts +0 -23
- package/dist/patterns/config-namespace.d.ts.map +0 -1
- package/dist/patterns/config-namespace.js +0 -218
- package/dist/patterns/config-namespace.js.map +0 -1
- package/dist/patterns/crud.d.ts +0 -23
- package/dist/patterns/crud.d.ts.map +0 -1
- package/dist/patterns/crud.js +0 -164
- package/dist/patterns/crud.js.map +0 -1
- package/dist/patterns/log-viewer.d.ts.map +0 -1
- package/dist/patterns/log-viewer.js.map +0 -1
- package/dist/patterns/pattern-types.d.ts +0 -21
- package/dist/patterns/pattern-types.d.ts.map +0 -1
- package/dist/patterns/pattern-types.js +0 -7
- package/dist/patterns/pattern-types.js.map +0 -1
- package/dist/patterns/process-manager.d.ts.map +0 -1
- package/dist/patterns/process-manager.js.map +0 -1
- package/dist/patterns/resolver.contracts.d.ts +0 -14
- package/dist/patterns/resolver.contracts.d.ts.map +0 -1
- package/dist/patterns/resolver.contracts.js +0 -9
- package/dist/patterns/resolver.contracts.js.map +0 -1
- package/dist/patterns/tool-wrapper.d.ts +0 -18
- package/dist/patterns/tool-wrapper.d.ts.map +0 -1
- package/dist/patterns/tool-wrapper.js +0 -130
- package/dist/patterns/tool-wrapper.js.map +0 -1
- package/dist/providers.d.ts +0 -105
- package/dist/providers.d.ts.map +0 -1
- package/dist/providers.js +0 -164
- package/dist/providers.js.map +0 -1
- package/dist/support/ui-toolkit.d.ts +0 -62
- package/dist/support/ui-toolkit.d.ts.map +0 -1
- package/dist/support/ui-toolkit.js +0 -172
- package/dist/support/ui-toolkit.js.map +0 -1
- package/dist/surface.d.ts +0 -9
- package/dist/surface.d.ts.map +0 -1
- package/dist/surface.js +0 -8
- package/dist/surface.js.map +0 -1
- package/dist/types.d.ts +0 -4
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/ui/schemas/types.d.ts +0 -2
- package/dist/ui/schemas/types.d.ts.map +0 -1
- package/dist/ui/schemas/types.js +0 -2
- package/dist/ui/schemas/types.js.map +0 -1
- package/dist/ui/toolkit/VibesUIToolkit.d.ts +0 -2
- package/dist/ui/toolkit/VibesUIToolkit.d.ts.map +0 -1
- package/dist/ui/toolkit/VibesUIToolkit.js +0 -2
- package/dist/ui/toolkit/VibesUIToolkit.js.map +0 -1
- package/dist/ui.context.descriptor.d.ts +0 -21
- package/dist/ui.context.descriptor.d.ts.map +0 -1
- package/dist/ui.context.descriptor.js.map +0 -1
- package/dist/utils/open.d.ts +0 -2
- package/dist/utils/open.d.ts.map +0 -1
- package/dist/utils/open.js +0 -30
- package/dist/utils/open.js.map +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -2
- package/dist/version.js.map +0 -1
- package/src/api/client/factory.ts +0 -265
- package/src/api/schemas/common.ts +0 -50
- package/src/api/schemas/types.ts +0 -32
- package/src/api/services/api.ts +0 -129
- package/src/api/types.ts +0 -12
- package/src/bin.ts +0 -84
- package/src/bootstrap.ts +0 -19
- package/src/cli.plugin.d.ts +0 -19
- package/src/cli.plugin.ts +0 -202
- package/src/commands/completion/bash.ts +0 -68
- package/src/commands/completion/completion.descriptor.ts +0 -48
- package/src/commands/completion/completion.impl.ts +0 -188
- package/src/commands/completion/fig.ts +0 -78
- package/src/commands/completion/fish.ts +0 -52
- package/src/commands/completion/tree.ts +0 -115
- package/src/commands/completion/zsh-widget.ts +0 -39
- package/src/commands/completion/zsh.ts +0 -165
- package/src/commands/profile/_utils.ts +0 -72
- package/src/commands/profile/profile-group.descriptor.ts +0 -14
- package/src/commands/profile/profile.create.descriptor.ts +0 -24
- package/src/commands/profile/profile.create.impl.ts +0 -44
- package/src/commands/profile/profile.delete.descriptor.ts +0 -31
- package/src/commands/profile/profile.delete.impl.ts +0 -71
- package/src/commands/profile/profile.info.descriptor.ts +0 -25
- package/src/commands/profile/profile.info.impl.ts +0 -51
- package/src/commands/profile/profile.list.descriptor.ts +0 -18
- package/src/commands/profile/profile.list.impl.ts +0 -46
- package/src/commands/profile/profile.use.descriptor.ts +0 -25
- package/src/commands/profile/profile.use.impl.ts +0 -39
- package/src/commands/runtime/_logging.ts +0 -47
- package/src/commands/runtime/codegen.command.descriptor.ts +0 -18
- package/src/commands/runtime/codegen.command.impl.ts +0 -44
- package/src/commands/runtime/codegen.ts +0 -84
- package/src/commands/runtime/index.ts +0 -14
- package/src/commands/runtime/plugin.ts +0 -7
- package/src/commands/runtime/runtime-group.descriptor.ts +0 -12
- package/src/config.ts +0 -22
- package/src/core/index.ts +0 -9
- package/src/core/namespace/hook.ts +0 -25
- package/src/core/namespace/index.ts +0 -298
- package/src/core/namespace/schemas/index.ts +0 -25
- package/src/core/plugins/types.ts +0 -87
- package/src/core/runtime/context.ts +0 -50
- package/src/core/runtime/hooks.ts +0 -12
- package/src/core/runtime/shared/context.ts +0 -65
- package/src/core/runtime/shared/options.ts +0 -60
- package/src/core/schemas/manifest.ts +0 -26
- package/src/core/schemas/types.ts +0 -6
- package/src/core/ui/interface.ts +0 -12
- package/src/docs/cli.commands.docs.descriptor.ts +0 -210
- package/src/docs/cli.groups.docs.descriptor.ts +0 -333
- package/src/docs/cli.output.docs.descriptor.ts +0 -445
- package/src/docs/types.ts +0 -18
- package/src/errors.ts +0 -123
- package/src/index.ts +0 -76
- package/src/logging/cli-startup.logger.descriptor.ts +0 -16
- package/src/logging.ts +0 -35
- package/src/patterns/config-namespace.ts +0 -251
- package/src/patterns/crud.ts +0 -217
- package/src/patterns/index.ts +0 -24
- package/src/patterns/log-viewer.ts +0 -118
- package/src/patterns/pattern-types.ts +0 -22
- package/src/patterns/process-manager.ts +0 -180
- package/src/patterns/resolver.contracts.ts +0 -15
- package/src/patterns/resolver.ts +0 -86
- package/src/patterns/schemas.ts +0 -146
- package/src/patterns/tool-wrapper.ts +0 -165
- package/src/providers.ts +0 -282
- package/src/schemas/descriptors.d.ts +0 -119
- package/src/schemas/descriptors.ts +0 -136
- package/src/schemas/surface.ts +0 -52
- package/src/schemas/types.d.ts +0 -195
- package/src/schemas/types.ts +0 -225
- package/src/support/ui-toolkit.ts +0 -224
- package/src/surface/CLISurface.ts +0 -193
- package/src/surface/attach-tui-action.ts +0 -76
- package/src/surface/build-context.ts +0 -49
- package/src/surface/command-group-policy.ts +0 -52
- package/src/surface/discovery-cache.ts +0 -143
- package/src/surface/register-commands.ts +0 -266
- package/src/surface/register-groups.ts +0 -84
- package/src/surface.ts +0 -9
- package/src/types.ts +0 -3
- package/src/ui/schemas/types.ts +0 -1
- package/src/ui/toolkit/VibesUIToolkit.ts +0 -1
- package/src/ui.context.descriptor.ts +0 -13
- package/src/utils/open.ts +0 -36
- package/src/version.ts +0 -10
- /package/dist/{api → boot}/schemas/types.js +0 -0
- /package/dist/{logging → support/logging}/cli-startup.logger.descriptor.d.ts +0 -0
- /package/dist/{logging → support/logging}/cli-startup.logger.descriptor.js +0 -0
- /package/dist/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AAO,MAAM,cAAc,6CAKzB,CAAC;AAEH,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI kinds - pure metadata registration, decoupled from the CLI surface impl.
|
|
3
|
+
*
|
|
4
|
+
* `cli/group` and `cli/command` are metadata kinds (zod schema + a fail-loud
|
|
5
|
+
* default implementation). Nothing here imports a command impl, Commander, or
|
|
6
|
+
* any Node/Bun API - so this module is safe to register in ANY runtime scope
|
|
7
|
+
* (cloud, browser, worker) purely to make CLI descriptors enumerable
|
|
8
|
+
* cross-scope (`runtime.query('cli/command').descriptors()`), without importing
|
|
9
|
+
* a single command implementation.
|
|
10
|
+
*
|
|
11
|
+
* The full CLI surface (`cli.plugin`) re-uses these kind records and adds the
|
|
12
|
+
* command descriptors + lazy impl loaders. A non-CLI scope that only wants to
|
|
13
|
+
* LIST commands registers `cliKindsPlugin` instead - see
|
|
14
|
+
* `@vibesdotdev/tools/cli/descriptors/plugin`.
|
|
15
|
+
*/
|
|
16
|
+
import { cliPatternKind } from "../patterns/pattern.kinds.js";
|
|
17
|
+
import { createRuntimePlugin } from '@vibesdotdev/kernel';
|
|
18
|
+
import { CLIGroupDescriptorSchema, CLICommandDescriptorSchema } from "../schemas/descriptors.js";
|
|
19
|
+
import { CommandImplementationSchema } from "../schemas/command-implementation.js";
|
|
20
|
+
/**
|
|
21
|
+
* CLI Group kind - metadata only, no implementation needed
|
|
22
|
+
*/
|
|
23
|
+
function isCLIGroupAssetDescriptor(descriptor) {
|
|
24
|
+
return descriptor.kind === 'cli/group' && typeof descriptor.id === 'string';
|
|
25
|
+
}
|
|
26
|
+
export class DefaultCLIGroupImplementation {
|
|
27
|
+
descriptor;
|
|
28
|
+
constructor(descriptor) {
|
|
29
|
+
this.descriptor = descriptor;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export const cliGroupKind = {
|
|
33
|
+
id: 'cli/group',
|
|
34
|
+
descriptorSchema: CLIGroupDescriptorSchema,
|
|
35
|
+
defaultImplementation: class {
|
|
36
|
+
descriptor;
|
|
37
|
+
constructor(descriptor) {
|
|
38
|
+
if (!isCLIGroupAssetDescriptor(descriptor)) {
|
|
39
|
+
throw new Error(`Invalid cli/group descriptor '${descriptor.id ?? 'unknown'}'`);
|
|
40
|
+
}
|
|
41
|
+
this.descriptor = descriptor;
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
// Resolution: prefer explicit scope matches
|
|
45
|
+
resolve: (candidates, scope) => {
|
|
46
|
+
const descriptors = candidates.filter(isCLIGroupAssetDescriptor);
|
|
47
|
+
if (descriptors.length === 0)
|
|
48
|
+
return undefined;
|
|
49
|
+
if (descriptors.length === 1)
|
|
50
|
+
return descriptors[0];
|
|
51
|
+
// Filter by surface
|
|
52
|
+
let matches = descriptors.filter((d) => {
|
|
53
|
+
if (!d.surfaces || d.surfaces.length === 0)
|
|
54
|
+
return true;
|
|
55
|
+
return d.surfaces.some((surface) => surface === scope.surface);
|
|
56
|
+
});
|
|
57
|
+
if (matches.length === 0)
|
|
58
|
+
return undefined;
|
|
59
|
+
// Filter by hardware
|
|
60
|
+
matches = matches.filter((d) => {
|
|
61
|
+
if (!d.hardware || d.hardware.length === 0)
|
|
62
|
+
return true;
|
|
63
|
+
return d.hardware.includes(scope.hardware);
|
|
64
|
+
});
|
|
65
|
+
// Sort by order, return first
|
|
66
|
+
matches.sort((a, b) => (a.order ?? 999) - (b.order ?? 999));
|
|
67
|
+
return matches[0];
|
|
68
|
+
},
|
|
69
|
+
contexts: []
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* CLI Command kind - requires implementation with execute()
|
|
73
|
+
*/
|
|
74
|
+
function isCLICommandAssetDescriptor(descriptor) {
|
|
75
|
+
return (descriptor.kind === 'cli/command' && typeof descriptor.id === 'string' && 'group' in descriptor);
|
|
76
|
+
}
|
|
77
|
+
export class DefaultCLICommandImplementation {
|
|
78
|
+
descriptor;
|
|
79
|
+
constructor(descriptor) {
|
|
80
|
+
if (!isCLICommandAssetDescriptor(descriptor)) {
|
|
81
|
+
throw new Error(`Invalid cli/command descriptor '${descriptor.id ?? 'unknown'}'`);
|
|
82
|
+
}
|
|
83
|
+
this.descriptor = descriptor;
|
|
84
|
+
}
|
|
85
|
+
async execute(_args, _opts, _context) {
|
|
86
|
+
throw new Error(`No implementation for command: ${this.descriptor.id}`);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
export const cliCommandKind = {
|
|
90
|
+
id: 'cli/command',
|
|
91
|
+
descriptorSchema: CLICommandDescriptorSchema,
|
|
92
|
+
defaultImplementation: DefaultCLICommandImplementation,
|
|
93
|
+
validateImplementation: (impl) => CommandImplementationSchema.safeParse(impl).success,
|
|
94
|
+
// Resolution: prefer explicit scope matches
|
|
95
|
+
resolve: (candidates, scope) => {
|
|
96
|
+
const descriptors = candidates.filter(isCLICommandAssetDescriptor);
|
|
97
|
+
if (descriptors.length === 0)
|
|
98
|
+
return undefined;
|
|
99
|
+
if (descriptors.length === 1)
|
|
100
|
+
return descriptors[0];
|
|
101
|
+
// Filter by surface
|
|
102
|
+
let matches = descriptors.filter((d) => {
|
|
103
|
+
if (!d.surfaces || d.surfaces.length === 0)
|
|
104
|
+
return true;
|
|
105
|
+
return d.surfaces.some((surface) => surface === scope.surface);
|
|
106
|
+
});
|
|
107
|
+
if (matches.length === 0)
|
|
108
|
+
return undefined;
|
|
109
|
+
// Filter by hardware
|
|
110
|
+
matches = matches.filter((d) => {
|
|
111
|
+
if (!d.hardware || d.hardware.length === 0)
|
|
112
|
+
return true;
|
|
113
|
+
return d.hardware.includes(scope.hardware);
|
|
114
|
+
});
|
|
115
|
+
// Sort by order, return first
|
|
116
|
+
matches.sort((a, b) => (a.order ?? 999) - (b.order ?? 999));
|
|
117
|
+
return matches[0];
|
|
118
|
+
},
|
|
119
|
+
// Commands receive runtime context
|
|
120
|
+
contexts: ['runtime']
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Kinds-only plugin. Registers `cli/group`, `cli/command` and `cli/pattern` with NO command
|
|
124
|
+
* descriptors and NO impl loaders - so a non-CLI scope can register CLI
|
|
125
|
+
* descriptors (via a separate descriptor plugin) and enumerate them without
|
|
126
|
+
* pulling the CLI surface or any command implementation into its bundle.
|
|
127
|
+
*
|
|
128
|
+
* The CLI surface (`cli.plugin`) declares these kinds directly; do NOT compose
|
|
129
|
+
* both in the same runtime or `registerKind` will see a duplicate.
|
|
130
|
+
*/
|
|
131
|
+
export const cliKindsPlugin = createRuntimePlugin({
|
|
132
|
+
id: 'cli-kinds',
|
|
133
|
+
name: 'CLI Kinds',
|
|
134
|
+
description: 'CLI group, command and pattern kinds (metadata only, no loaders)',
|
|
135
|
+
kinds: [cliGroupKind, cliCommandKind, cliPatternKind]
|
|
136
|
+
});
|
|
137
|
+
export default cliKindsPlugin;
|
|
138
|
+
//# sourceMappingURL=cli.kinds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.kinds.js","sourceRoot":"","sources":["../../src/commands/cli.kinds.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAoC,MAAM,qBAAqB,CAAC;AAG5F,OAAO,EACN,wBAAwB,EACxB,0BAA0B,EAG1B,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,2BAA2B,EAA8B,MAAM,sCAAsC,CAAC;AAE/G;;GAEG;AACH,SAAS,yBAAyB,CACjC,UAA6B;IAE7B,OAAO,UAAU,CAAC,IAAI,KAAK,WAAW,IAAI,OAAO,UAAU,CAAC,EAAE,KAAK,QAAQ,CAAC;AAC7E,CAAC;AAED,MAAM,OAAO,6BAA6B;IACb;IAA5B,YAA4B,UAAmC;QAAnC,eAAU,GAAV,UAAU,CAAyB;IAAG,CAAC;CACnE;AAED,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B,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C;IACnB,CAAC;IAED,mCAAmC;IACnC,QAAQ,EAAE,CAAC,SAAS,CAAC;CACwC,CAAC;AAE/D;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,mBAAmB,CAAC;IACjD,EAAE,EAAE,WAAW;IACf,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,kEAAkE;IAC/E,KAAK,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,cAAc,CAAC;CACrD,CAAC,CAAC;AAEH,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI Plugin
|
|
3
|
+
*
|
|
4
|
+
* Registers CLI kinds with the universal runtime:
|
|
5
|
+
* - cli/group: Command groups for organizing commands
|
|
6
|
+
* - cli/command: Executable CLI commands
|
|
7
|
+
*
|
|
8
|
+
* This plugin does NOT create a separate runtime - it extends the universal
|
|
9
|
+
* runtime with CLI-specific asset kinds that CLISurface uses to build
|
|
10
|
+
* the Commander.js command tree.
|
|
11
|
+
*/
|
|
12
|
+
export { DefaultCLICommandImplementation } from './cli.kinds.ts';
|
|
13
|
+
/**
|
|
14
|
+
* CLI Plugin
|
|
15
|
+
*
|
|
16
|
+
* Registers cli/group and cli/command kinds (imported from ./cli.kinds) with the
|
|
17
|
+
* universal runtime, plus the CLI command descriptors and their lazy impl
|
|
18
|
+
* loaders. CLISurface queries these kinds to build the Commander.js command tree.
|
|
19
|
+
*/
|
|
20
|
+
declare const defaultExport: import("@vibesdotdev/kernel").RuntimePlugin;
|
|
21
|
+
export default defaultExport;
|
|
22
|
+
//# sourceMappingURL=cli.plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.plugin.d.ts","sourceRoot":"","sources":["../../src/commands/cli.plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AASH,OAAO,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AA8BjE;;;;;;GAMG;AAEH,QAAA,MAAM,aAAa,6CAqFjB,CAAC;AAEH,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI Plugin
|
|
3
|
+
*
|
|
4
|
+
* Registers CLI kinds with the universal runtime:
|
|
5
|
+
* - cli/group: Command groups for organizing commands
|
|
6
|
+
* - cli/command: Executable CLI commands
|
|
7
|
+
*
|
|
8
|
+
* This plugin does NOT create a separate runtime - it extends the universal
|
|
9
|
+
* runtime with CLI-specific asset kinds that CLISurface uses to build
|
|
10
|
+
* the Commander.js command tree.
|
|
11
|
+
*/
|
|
12
|
+
import { CapabilityError, createRuntimePlugin, loader } from '@vibesdotdev/kernel';
|
|
13
|
+
// cli/group + cli/command kind records - defined in a pure, impl-free module so
|
|
14
|
+
// non-CLI scopes can register them for cross-scope descriptor enumeration.
|
|
15
|
+
import { cliGroupKind, cliCommandKind } from "./cli.kinds.js";
|
|
16
|
+
// Re-exported for `surface/register-commands.ts`, which detects unregistered
|
|
17
|
+
// commands via `impl instanceof DefaultCLICommandImplementation`.
|
|
18
|
+
export { DefaultCLICommandImplementation } from "./cli.kinds.js";
|
|
19
|
+
import { cliPatternKind } from "../patterns/pattern.kinds.js";
|
|
20
|
+
// CLI command descriptors
|
|
21
|
+
import completionConsumerPlugin from "./completion/completion.consumer.plugin.js";
|
|
22
|
+
import completionCommandDescriptor from "./completion/completion.descriptor.js";
|
|
23
|
+
import { cliOutputFormatPlugin } from "../support/ui/format.plugin.js";
|
|
24
|
+
import { runtimeCodegenCommandDescriptor } from "./runtime/codegen.command.descriptor.js";
|
|
25
|
+
import { runtimeExportCommandDescriptor } from "./runtime/export.descriptor.js";
|
|
26
|
+
import uiContextDescriptor from "../support/ui/context.descriptor.js";
|
|
27
|
+
import cliStartupLogger from "../support/logging/cli-startup.logger.descriptor.js";
|
|
28
|
+
import runtimeGroup from "./runtime/runtime-group.descriptor.js";
|
|
29
|
+
import { runtimeCodegenInputDescriptor } from "../schemas/runtime-codegen.js";
|
|
30
|
+
// Profile descriptors
|
|
31
|
+
import profileGroupDescriptor from "./profile/profile-group.descriptor.js";
|
|
32
|
+
import profileListDescriptor from "./profile/profile.list.descriptor.js";
|
|
33
|
+
import profileCreateDescriptor from "./profile/profile.create.descriptor.js";
|
|
34
|
+
import profileUseDescriptor from "./profile/profile.use.descriptor.js";
|
|
35
|
+
import profileDeleteDescriptor from "./profile/profile.delete.descriptor.js";
|
|
36
|
+
import profileInfoDescriptor from "./profile/profile.info.descriptor.js";
|
|
37
|
+
import profileEnvironmentDescriptor from "./profile/profile.environment.descriptor.js";
|
|
38
|
+
// Docs
|
|
39
|
+
import cliDescriptor from "./docs/cli.docs.descriptor.js";
|
|
40
|
+
import cliCommandsDescriptor from "./docs/cli.commands.docs.descriptor.js";
|
|
41
|
+
import cliGroupsDescriptor from "./docs/cli.groups.docs.descriptor.js";
|
|
42
|
+
import cliOutputDescriptor from "./docs/cli.output.docs.descriptor.js";
|
|
43
|
+
/**
|
|
44
|
+
* CLI Plugin
|
|
45
|
+
*
|
|
46
|
+
* Registers cli/group and cli/command kinds (imported from ./cli.kinds) with the
|
|
47
|
+
* universal runtime, plus the CLI command descriptors and their lazy impl
|
|
48
|
+
* loaders. CLISurface queries these kinds to build the Commander.js command tree.
|
|
49
|
+
*/
|
|
50
|
+
// Hoisted const: tsc rewriteRelativeImportExtensions does not rewrite `.ts` specifiers inside `export default <expr>` (TS 6.0.3).
|
|
51
|
+
const defaultExport = createRuntimePlugin({
|
|
52
|
+
id: 'cli',
|
|
53
|
+
name: 'CLI Surface',
|
|
54
|
+
description: 'CLI command system using Commander.js',
|
|
55
|
+
dependencies: ['context'],
|
|
56
|
+
kinds: [cliGroupKind, cliCommandKind, cliPatternKind],
|
|
57
|
+
async onRegister(runtime) {
|
|
58
|
+
if (!runtime.hasPlugin('cli-shell-completions')) {
|
|
59
|
+
await runtime.registerPlugin(completionConsumerPlugin);
|
|
60
|
+
}
|
|
61
|
+
if (!runtime.hasPlugin('cli-output-formats')) {
|
|
62
|
+
await runtime.registerPlugin(cliOutputFormatPlugin);
|
|
63
|
+
}
|
|
64
|
+
// `workspace/static-loader` is not composed here. The host composes the
|
|
65
|
+
// generator owner (`@vibesdotdev/workspace/static-loader/plugin`); this
|
|
66
|
+
// plugin registers no Workspace plugin and imports no Workspace module, so
|
|
67
|
+
// CLI carries no production edge back to Workspace. `runtime codegen`
|
|
68
|
+
// resolves the kind at call time and refuses when the host composed none.
|
|
69
|
+
},
|
|
70
|
+
descriptors: [
|
|
71
|
+
runtimeCodegenInputDescriptor,
|
|
72
|
+
{ kind: 'cli/pattern', id: 'crud' },
|
|
73
|
+
{ kind: 'cli/pattern', id: 'tool-wrapper' },
|
|
74
|
+
{ kind: 'cli/pattern', id: 'log-viewer' },
|
|
75
|
+
{ kind: 'cli/pattern', id: 'process-manager' },
|
|
76
|
+
{ kind: 'cli/pattern', id: 'config-namespace' },
|
|
77
|
+
runtimeCodegenCommandDescriptor,
|
|
78
|
+
runtimeExportCommandDescriptor,
|
|
79
|
+
completionCommandDescriptor,
|
|
80
|
+
uiContextDescriptor,
|
|
81
|
+
cliStartupLogger,
|
|
82
|
+
runtimeGroup,
|
|
83
|
+
profileGroupDescriptor,
|
|
84
|
+
profileListDescriptor,
|
|
85
|
+
profileCreateDescriptor,
|
|
86
|
+
profileUseDescriptor,
|
|
87
|
+
profileDeleteDescriptor,
|
|
88
|
+
profileInfoDescriptor,
|
|
89
|
+
profileEnvironmentDescriptor,
|
|
90
|
+
cliDescriptor,
|
|
91
|
+
cliCommandsDescriptor,
|
|
92
|
+
cliGroupsDescriptor,
|
|
93
|
+
cliOutputDescriptor
|
|
94
|
+
],
|
|
95
|
+
loaders: [
|
|
96
|
+
loader('crud', { kind: 'cli/pattern' }, async (runtime) => {
|
|
97
|
+
if (!runtime)
|
|
98
|
+
throw new CapabilityError('Pattern loading requires a runtime.', 'INTERNAL', { reason: 'pattern-runtime-unavailable' });
|
|
99
|
+
const { CRUDPatternImpl } = await import("../patterns/builtins/crud.js");
|
|
100
|
+
return { default: new CRUDPatternImpl(runtime) };
|
|
101
|
+
}),
|
|
102
|
+
loader('tool-wrapper', { kind: 'cli/pattern' }, async (runtime) => {
|
|
103
|
+
if (!runtime)
|
|
104
|
+
throw new CapabilityError('Pattern loading requires a runtime.', 'INTERNAL', { reason: 'pattern-runtime-unavailable' });
|
|
105
|
+
const { ToolWrapperPatternImpl } = await import("../patterns/builtins/tool-wrapper.js");
|
|
106
|
+
return { default: new ToolWrapperPatternImpl(runtime) };
|
|
107
|
+
}),
|
|
108
|
+
loader('log-viewer', { kind: 'cli/pattern' }, async (runtime) => {
|
|
109
|
+
if (!runtime)
|
|
110
|
+
throw new CapabilityError('Pattern loading requires a runtime.', 'INTERNAL', { reason: 'pattern-runtime-unavailable' });
|
|
111
|
+
const { LogViewerPatternImpl } = await import("../patterns/builtins/log-viewer.js");
|
|
112
|
+
return { default: new LogViewerPatternImpl(runtime) };
|
|
113
|
+
}),
|
|
114
|
+
loader('process-manager', { kind: 'cli/pattern' }, async (runtime) => {
|
|
115
|
+
if (!runtime)
|
|
116
|
+
throw new CapabilityError('Pattern loading requires a runtime.', 'INTERNAL', { reason: 'pattern-runtime-unavailable' });
|
|
117
|
+
const { ProcessManagerPatternImpl } = await import("../patterns/builtins/process-manager.js");
|
|
118
|
+
return { default: new ProcessManagerPatternImpl(runtime) };
|
|
119
|
+
}),
|
|
120
|
+
loader('config-namespace', { kind: 'cli/pattern' }, async (runtime) => {
|
|
121
|
+
if (!runtime)
|
|
122
|
+
throw new CapabilityError('Pattern loading requires a runtime.', 'INTERNAL', { reason: 'pattern-runtime-unavailable' });
|
|
123
|
+
const { ConfigNamespacePatternImpl } = await import("../patterns/builtins/config-namespace.js");
|
|
124
|
+
return { default: new ConfigNamespacePatternImpl(runtime) };
|
|
125
|
+
}),
|
|
126
|
+
loader('runtime-codegen', () => import("./runtime/codegen.command.impl.js")),
|
|
127
|
+
loader('runtime-export', () => import("./runtime/export.command.impl.js")),
|
|
128
|
+
loader('completion', () => import("./completion/completion.impl.js")),
|
|
129
|
+
loader('profile.list', () => import("./profile/profile.list.impl.js")),
|
|
130
|
+
loader('profile.create', () => import("./profile/profile.create.impl.js")),
|
|
131
|
+
loader('profile.use', () => import("./profile/profile.use.impl.js")),
|
|
132
|
+
loader('profile.delete', () => import("./profile/profile.delete.impl.js")),
|
|
133
|
+
loader('profile.info', () => import("./profile/profile.info.impl.js")),
|
|
134
|
+
loader('profile.environment', () => import("./profile/profile.environment.impl.js"))
|
|
135
|
+
]
|
|
136
|
+
});
|
|
137
|
+
export default defaultExport;
|
|
138
|
+
//# sourceMappingURL=cli.plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.plugin.js","sourceRoot":"","sources":["../../src/commands/cli.plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACnF,gFAAgF;AAChF,2EAA2E;AAC3E,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAE9D,6EAA6E;AAC7E,kEAAkE;AAClE,OAAO,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AAEjE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,0BAA0B;AAC1B,OAAO,wBAAwB,MAAM,4CAA4C,CAAC;AAClF,OAAO,2BAA2B,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,mBAAmB,MAAM,qCAAqC,CAAC;AACtE,OAAO,gBAAgB,MAAM,qDAAqD,CAAC;AACnF,OAAO,YAAY,MAAM,uCA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A0B,CAAC,OAAO,CAAC,EAAE,CAAC;QAC7D,CAAC,CAAC;QAEF,MAAM,CAAC,iBAAiB,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,mCAAmC,CAAC,CAAC;QAC5E,MAAM,CAAC,gBAAgB,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,kCAAkC,CAAC,CAAC;QAC1E,MAAM,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,iCAAiC,CAAC,CAAC;QACrE,MAAM,CAAC,cAAc,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,gCAAgC,CAAC,CAAC;QACtE,MAAM,CAAC,gBAAgB,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,kCAAkC,CAAC,CAAC;QAC1E,MAAM,CAAC,aAAa,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,+BAA+B,CAAC,CAAC;QACpE,MAAM,CAAC,gBAAgB,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,kCAAkC,CAAC,CAAC;QAC1E,MAAM,CAAC,cAAc,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,gCAAgC,CAAC,CAAC;QACtE,MAAM,CAAC,qBAAqB,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,uCAAuC,CAAC,CAAC;KACpF;CACD,CAAC,CAAC;AAEH,eAAe,aAAa,CAAC"}
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates a bash completion function from the command tree.
|
|
5
5
|
*/
|
|
6
|
-
import type { CommandNode } from './tree';
|
|
6
|
+
import type { CommandNode } from './tree.ts';
|
|
7
7
|
export declare function generateBashCompletion(tree: CommandNode): string;
|
|
8
8
|
//# sourceMappingURL=bash.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bash.d.ts","sourceRoot":"","sources":["../../../src/commands/completion/bash.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"bash.d.ts","sourceRoot":"","sources":["../../../src/commands/completion/bash.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AA0B7C,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAqChE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bash.impl.consumer.d.ts","sourceRoot":"","sources":["../../../src/commands/completion/bash.impl.consumer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAEnD,QAAA,MAAM,cAAc;;CAEqB,CAAC;AAE1C,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bash.impl.consumer.js","sourceRoot":"","sources":["../../../src/commands/completion/bash.impl.consumer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAEnD,MAAM,cAAc,GAAG;IACtB,QAAQ,EAAE,sBAAsB;CACQ,CAAC;AAE1C,eAAe,cAAc,CAAC"}
|
|
@@ -8,7 +8,9 @@ function generateCaseBlock(path, node, indent) {
|
|
|
8
8
|
if (node.children.length === 0)
|
|
9
9
|
return lines;
|
|
10
10
|
const childNames = node.children.flatMap((c) => [c.name, ...c.aliases]).join(' ');
|
|
11
|
-
|
|
11
|
+
// A multi-word case pattern must be quoted or bash parses `vibes account)`
|
|
12
|
+
// as a syntax error at the space.
|
|
13
|
+
lines.push(`${indent}"${path}")`);
|
|
12
14
|
lines.push(`${indent} COMPREPLY=( $(compgen -W "${childNames}" -- "\${cur}") )`);
|
|
13
15
|
lines.push(`${indent} return 0`);
|
|
14
16
|
lines.push(`${indent} ;;`);
|
|
@@ -44,7 +46,7 @@ ${cases.join('\n')}
|
|
|
44
46
|
${tree.children
|
|
45
47
|
.flatMap((g) => g.children.map((c) => {
|
|
46
48
|
const opts = c.options.map((o) => (o.short ? `-${o.short} --${o.long}` : `--${o.long}`)).join(' ');
|
|
47
|
-
return opts ? ` vibes ${g.name} ${c.name}) opts="${opts}" ;;` : '';
|
|
49
|
+
return opts ? ` "vibes ${g.name} ${c.name}") opts="${opts}" ;;` : '';
|
|
48
50
|
}))
|
|
49
51
|
.filter(Boolean)
|
|
50
52
|
.join('\n')}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bash.js","sourceRoot":"","sources":["../../../src/commands/completion/bash.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,SAAS,iBAAiB,CAAC,IAAY,EAAE,IAAiB,EAAE,MAAc;IACzE,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAE7C,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClF,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"bash.js","sourceRoot":"","sources":["../../../src/commands/completion/bash.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,SAAS,iBAAiB,CAAC,IAAY,EAAE,IAAiB,EAAE,MAAc;IACzE,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAE7C,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAA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AAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACnG,OAAO,IAAI,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,YAAY,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IACjF,CAAC,CAAC,CACF;SACA,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,IAAI,CAAC;;;;;;;;CAQX,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completion.consumer.plugin.d.ts","sourceRoot":"","sources":["../../../src/commands/completion/completion.consumer.plugin.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,aAAa,6CA4BjB,CAAC;AAEH,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createRuntimePlugin, loader } from '@vibesdotdev/kernel';
|
|
2
|
+
import { CLI_SHELL_COMPLETION_KIND } from "../../schemas/completion.js";
|
|
3
|
+
import { shellCompletionDescriptors } from "./completion.descriptors.js";
|
|
4
|
+
import { shellCompletionKind } from "./completion.kinds.js";
|
|
5
|
+
const defaultExport = createRuntimePlugin({
|
|
6
|
+
id: 'cli-shell-completions',
|
|
7
|
+
name: 'CLI Shell Completions',
|
|
8
|
+
description: 'Consumer-scoped bash, zsh, fish and Fig completion contributions',
|
|
9
|
+
kinds: [shellCompletionKind],
|
|
10
|
+
descriptors: shellCompletionDescriptors,
|
|
11
|
+
loaders: [
|
|
12
|
+
loader('bash', { kind: CLI_SHELL_COMPLETION_KIND, scope: { hardware: ['consumer'] } }, () => import("./bash.impl.consumer.js")),
|
|
13
|
+
loader('zsh', { kind: CLI_SHELL_COMPLETION_KIND, scope: { hardware: ['consumer'] } }, () => import("./zsh.impl.consumer.js")),
|
|
14
|
+
loader('fish', { kind: CLI_SHELL_COMPLETION_KIND, scope: { hardware: ['consumer'] } }, () => import("./fish.impl.consumer.js")),
|
|
15
|
+
loader('fig', { kind: CLI_SHELL_COMPLETION_KIND, scope: { hardware: ['consumer'] } }, () => import("./fig.impl.consumer.js"))
|
|
16
|
+
]
|
|
17
|
+
});
|
|
18
|
+
export default defaultExport;
|
|
19
|
+
//# sourceMappingURL=completion.consumer.plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completion.consumer.plugin.js","sourceRoot":"","sources":["../../../src/commands/completion/completion.consumer.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,aAAa,GAAG,mBAAmB,CAAC;IACzC,EAAE,EAAE,uBAAuB;IAC3B,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,kEAAkE;IAC/E,KAAK,EAAE,CAAC,mBAAmB,CAAC;IAC5B,WAAW,EAAE,0BAA0B;IACvC,OAAO,EAAE;QACR,MAAM,CACL,MAAM,EACN,EAAE,IAAI,EAAE,yBAAyB,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE,EACtE,GAAG,EAAE,CAAC,MAAM,CAAC,yBAAyB,CAAC,CACvC;QACD,MAAM,CACL,KAAK,EACL,EAAE,IAAI,EAAE,yBAAyB,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE,EACtE,GAAG,EAAE,CAAC,MAAM,CAAC,wBAAwB,CAAC,CACtC;QACD,MAAM,CACL,MAAM,EACN,EAAE,IAAI,EAAE,yBAAyB,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE,EACtE,GAAG,EAAE,CAAC,MAAM,CAAC,yBAAyB,CAAC,CACvC;QACD,MAAM,CACL,KAAK,EACL,EAAE,IAAI,EAAE,yBAAyB,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE,EACtE,GAAG,EAAE,CAAC,MAAM,CAAC,wBAAwB,CAAC,CACtC;KACD;CACD,CAAC,CAAC;AAEH,eAAe,aAAa,CAAC"}
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
* Shell Completion Generator Command Descriptor
|
|
3
3
|
*
|
|
4
4
|
* Generates shell completions and autosuggestions from runtime descriptors.
|
|
5
|
-
* Supports bash, zsh (with inline autosuggestion widget), fish, and fig specs.
|
|
6
5
|
*/
|
|
7
|
-
import type { CLICommandAssetDescriptor } from '../../schemas/descriptors';
|
|
6
|
+
import type { CLICommandAssetDescriptor } from '../../schemas/descriptors.ts';
|
|
8
7
|
declare const descriptor: CLICommandAssetDescriptor;
|
|
9
8
|
export default descriptor;
|
|
10
9
|
//# sourceMappingURL=completion.descriptor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completion.descriptor.d.ts","sourceRoot":"","sources":["../../../src/commands/completion/completion.descriptor.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"completion.descriptor.d.ts","sourceRoot":"","sources":["../../../src/commands/completion/completion.descriptor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,QAAA,MAAM,UAAU,EAAE,yBA4CjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -2,19 +2,26 @@
|
|
|
2
2
|
* Shell Completion Generator Command Descriptor
|
|
3
3
|
*
|
|
4
4
|
* Generates shell completions and autosuggestions from runtime descriptors.
|
|
5
|
-
* Supports bash, zsh (with inline autosuggestion widget), fish, and fig specs.
|
|
6
5
|
*/
|
|
7
6
|
const descriptor = {
|
|
8
7
|
kind: 'cli/command',
|
|
9
8
|
id: 'completion',
|
|
10
9
|
name: 'completion',
|
|
11
|
-
description: 'Generate shell completions
|
|
10
|
+
description: 'Generate shell completions for a registered shell',
|
|
12
11
|
group: 'shell-integration',
|
|
12
|
+
effects: {
|
|
13
|
+
// Script generation is a pure metadata read. Installation writes the
|
|
14
|
+
// generated file and may update the selected shell profile.
|
|
15
|
+
homeWrite: { whenOption: 'install' }
|
|
16
|
+
},
|
|
17
|
+
// The shell operand is admitted as optional at the command boundary: a
|
|
18
|
+
// shell-free invocation is valid for `--json` (the command tree). The
|
|
19
|
+
// implementation requires a shell only when it generates a script.
|
|
13
20
|
arguments: [
|
|
14
21
|
{
|
|
15
22
|
name: 'shell',
|
|
16
|
-
description: '
|
|
17
|
-
required:
|
|
23
|
+
description: 'Shell id registered by a completion contribution',
|
|
24
|
+
required: false
|
|
18
25
|
}
|
|
19
26
|
],
|
|
20
27
|
options: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completion.descriptor.js","sourceRoot":"","sources":["../../../src/commands/completion/completion.descriptor.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"completion.descriptor.js","sourceRoot":"","sources":["../../../src/commands/completion/completion.descriptor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,UAAU,GAA8B;IAC7C,IAAI,EAAE,aAAa;IACnB,EAAE,EAAE,YAAY;IAChB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,mDAAmD;IAChE,KAAK,EAAE,mBAAmB;IAC1B,OAAO,EAAE;QACR,qEAAqE;QACrE,4DAA4D;QAC5D,SAAS,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE;KACpC;IAED,uEAAuE;IACvE,sEAAsE;IACtE,mEAAmE;IACnE,SAAS,EAAE;QACV;YACC,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,kDAAkD;YAC/D,QAAQ,EAAE,KAAK;SACf;KACD;IAED,OAAO,EAAE;QACR;YACC,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,2CAA2C;SACxD;QACD;YACC,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,gDAAgD;SAC7D;KACD;IAED,QAAQ,EAAE;QACT,EAAE,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,6CAA6C,EAAE;QAC/F,EAAE,OAAO,EAAE,gCAAgC,EAAE,WAAW,EAAE,yBAAyB,EAAE;QACrF,EAAE,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,uCAAuC,EAAE;QACzF,EAAE,OAAO,EAAE,yBAAyB,EAAE,WAAW,EAAE,iCAAiC,EAAE;KACtF;IAED,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,OAAO,EAAE,IAAI;CACb,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completion.descriptors.d.ts","sourceRoot":"","sources":["../../../src/commands/completion/completion.descriptors.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,yBAAyB,EAC9B,MAAM,6BAA6B,CAAC;AAMrC,eAAO,MAAM,0BAA0B,EAAE,yBAAyB,EAmDjE,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { CLI_SHELL_COMPLETION_KIND } from "../../schemas/completion.js";
|
|
2
|
+
const installPath = (...segments) => segments;
|
|
3
|
+
const sourceLine = '[[ -f "{{installPath}}" ]] && source "{{installPath}}"';
|
|
4
|
+
export const shellCompletionDescriptors = [
|
|
5
|
+
{
|
|
6
|
+
kind: CLI_SHELL_COMPLETION_KIND,
|
|
7
|
+
id: 'bash',
|
|
8
|
+
label: 'bash',
|
|
9
|
+
installPath: installPath('.bash_completion.d', 'vibes'),
|
|
10
|
+
profile: {
|
|
11
|
+
candidates: [['.bashrc'], ['.bash_profile']],
|
|
12
|
+
sourceLine
|
|
13
|
+
},
|
|
14
|
+
highlights: [],
|
|
15
|
+
features: ['Tab completion for all vibes commands']
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
kind: CLI_SHELL_COMPLETION_KIND,
|
|
19
|
+
id: 'zsh',
|
|
20
|
+
label: 'zsh',
|
|
21
|
+
installPath: installPath('.zsh', 'completions', '_vibes'),
|
|
22
|
+
profile: {
|
|
23
|
+
candidates: [['.zshrc']],
|
|
24
|
+
sourceLine
|
|
25
|
+
},
|
|
26
|
+
highlights: [
|
|
27
|
+
'zsh-autosuggestions integration (inline ghost-text)',
|
|
28
|
+
'Custom vibes strategy (suggests from {{commandCount}} known commands)'
|
|
29
|
+
],
|
|
30
|
+
features: ['Tab completion for all vibes commands']
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
kind: CLI_SHELL_COMPLETION_KIND,
|
|
34
|
+
id: 'fish',
|
|
35
|
+
label: 'fish',
|
|
36
|
+
installPath: installPath('.config', 'fish', 'completions', 'vibes.fish'),
|
|
37
|
+
profile: null,
|
|
38
|
+
automaticLoadNotice: 'Fish loads completions automatically',
|
|
39
|
+
highlights: [],
|
|
40
|
+
features: ['Tab completion for all vibes commands']
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
kind: CLI_SHELL_COMPLETION_KIND,
|
|
44
|
+
id: 'fig',
|
|
45
|
+
label: 'fig',
|
|
46
|
+
installPath: installPath('.fig', 'autocomplete', 'vibes.ts'),
|
|
47
|
+
profile: null,
|
|
48
|
+
automaticLoadNotice: 'Amazon Q / Inshellisense will load spec automatically',
|
|
49
|
+
highlights: [
|
|
50
|
+
'Rich dropdown UI in supported terminals',
|
|
51
|
+
'Dynamic argument generators'
|
|
52
|
+
],
|
|
53
|
+
features: ['Tab completion for all vibes commands']
|
|
54
|
+
}
|
|
55
|
+
];
|
|
56
|
+
//# sourceMappingURL=completion.descriptors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completion.descriptors.js","sourceRoot":"","sources":["../../../src/commands/completion/completion.descriptors.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,yBAAyB,EAEzB,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,GAAG,CAAC,GAAG,QAAkB,EAAE,EAAE,CAAC,QAAQ,CAAC;AAExD,MAAM,UAAU,GAAG,wDAAwD,CAAC;AAE5E,MAAM,CAAC,MAAM,0BAA0B,GAAgC;IACtE;QACC,IAAI,EAAE,yBAAyB;QAC/B,EAAE,EAAE,MAAM;QACV,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,WAAW,CAAC,oBAAoB,EAAE,OAAO,CAAC;QACvD,OAAO,EAAE;YACR,UAAU,EAAE,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;YAC5C,UAAU;SACV;QACD,UAAU,EAAE,EAAE;QACd,QAAQ,EAAE,CAAC,uCAAuC,CAAC;KACnD;IACD;QACC,IAAI,EAAE,yBAAyB;QAC/B,EAAE,EAAE,KAAK;QACT,KAAK,EAAE,KAAK;QACZ,WAAW,EAAE,WAAW,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,CAAC;QACzD,OAAO,EAAE;YACR,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;YACxB,UAAU;SACV;QACD,UAAU,EAAE;YACX,qDAAqD;YACrD,uEAAuE;SACvE;QACD,QAAQ,EAAE,CAAC,uCAAuC,CAAC;KACnD;IACD;QACC,IAAI,EAAE,yBAAyB;QAC/B,EAAE,EAAE,MAAM;QACV,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY,CAAC;QACxE,OAAO,EAAE,IAAI;QACb,mBAAmB,EAAE,sCAAsC;QAC3D,UAAU,EAAE,EAAE;QACd,QAAQ,EAAE,CAAC,uCAAuC,CAAC;KACnD;IACD;QACC,IAAI,EAAE,yBAAyB;QAC/B,EAAE,EAAE,KAAK;QACT,KAAK,EAAE,KAAK;QACZ,WAAW,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,EAAE,UAAU,CAAC;QAC5D,OAAO,EAAE,IAAI;QACb,mBAAmB,EAAE,uDAAuD;QAC5E,UAAU,EAAE;YACX,yCAAyC;YACzC,6BAA6B;SAC7B;QACD,QAAQ,EAAE,CAAC,uCAAuC,CAAC;KACnD;CACD,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shell Completion Generator Implementation
|
|
3
3
|
*
|
|
4
|
-
* Builds the CLI command tree from runtime descriptors and
|
|
5
|
-
*
|
|
6
|
-
* autosuggestion widget with history-based ranking.
|
|
4
|
+
* Builds the CLI command tree from runtime descriptors and resolves a shell
|
|
5
|
+
* contribution from the open CLI shell-completion kind.
|
|
7
6
|
*/
|
|
7
|
+
import type { CommandContext, CommandOptions } from '../../schemas/surface.ts';
|
|
8
8
|
declare const _default: {
|
|
9
|
-
|
|
9
|
+
outputBoundary: string;
|
|
10
|
+
execute(args: CommandOptions, opts: CommandOptions, context: CommandContext): Promise<void>;
|
|
10
11
|
};
|
|
11
12
|
export default _default;
|
|
12
13
|
//# sourceMappingURL=completion.impl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completion.impl.d.ts","sourceRoot":"","sources":["../../../src/commands/completion/completion.impl.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"completion.impl.d.ts","sourceRoot":"","sources":["../../../src/commands/completion/completion.impl.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;;;kBA2F1D,cAAc,QAAQ,cAAc,WAAW,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;;AAFlG,wBAiDE"}
|