@vibesdotdev/cli 0.0.1 → 1.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -0
- package/README.md +265 -24
- package/dist/boot/action-lifetime.d.ts +16 -0
- package/dist/boot/action-lifetime.d.ts.map +1 -0
- package/dist/boot/action-lifetime.js +80 -0
- package/dist/boot/action-lifetime.js.map +1 -0
- package/dist/boot/bootstrap.d.ts +190 -0
- package/dist/boot/bootstrap.d.ts.map +1 -0
- package/dist/boot/bootstrap.js +737 -0
- package/dist/boot/bootstrap.js.map +1 -0
- package/dist/boot/cli-flags.d.ts +45 -0
- package/dist/boot/cli-flags.d.ts.map +1 -0
- package/dist/boot/cli-flags.js +113 -0
- package/dist/boot/cli-flags.js.map +1 -0
- package/dist/boot/config.d.ts +25 -0
- package/dist/boot/config.d.ts.map +1 -0
- package/dist/{config.js → boot/config.js} +1 -1
- package/dist/boot/config.js.map +1 -0
- package/dist/boot/external-url.d.ts +13 -0
- package/dist/boot/external-url.d.ts.map +1 -0
- package/dist/boot/external-url.js +66 -0
- package/dist/boot/external-url.js.map +1 -0
- package/dist/boot/host-argv.d.ts +7 -0
- package/dist/boot/host-argv.d.ts.map +1 -0
- package/dist/boot/host-argv.js +8 -0
- package/dist/boot/host-argv.js.map +1 -0
- package/dist/boot/host-bootstrap.d.ts +37 -0
- package/dist/boot/host-bootstrap.d.ts.map +1 -0
- package/dist/boot/host-bootstrap.js +60 -0
- package/dist/boot/host-bootstrap.js.map +1 -0
- package/dist/boot/providers.d.ts +35 -0
- package/dist/boot/providers.d.ts.map +1 -0
- package/dist/boot/providers.js +155 -0
- package/dist/boot/providers.js.map +1 -0
- package/dist/boot/schemas/external-url.d.ts +11 -0
- package/dist/boot/schemas/external-url.d.ts.map +1 -0
- package/dist/boot/schemas/external-url.js +3 -0
- package/dist/boot/schemas/external-url.js.map +1 -0
- package/dist/boot/schemas/host-bootstrap.d.ts +7 -0
- package/dist/boot/schemas/host-bootstrap.d.ts.map +1 -0
- package/dist/boot/schemas/host-bootstrap.js +3 -0
- package/dist/boot/schemas/host-bootstrap.js.map +1 -0
- package/dist/boot/schemas/providers.d.ts +23 -0
- package/dist/boot/schemas/providers.d.ts.map +1 -0
- package/dist/boot/schemas/providers.js +3 -0
- package/dist/boot/schemas/providers.js.map +1 -0
- package/dist/boot/schemas/types.d.ts +4 -0
- package/dist/boot/schemas/types.d.ts.map +1 -0
- package/dist/{api → boot}/schemas/types.js.map +1 -1
- package/dist/boot/tui-plugin-policy.d.ts +8 -0
- package/dist/boot/tui-plugin-policy.d.ts.map +1 -0
- package/dist/boot/tui-plugin-policy.js +26 -0
- package/dist/boot/tui-plugin-policy.js.map +1 -0
- package/dist/boot/version.d.ts +13 -0
- package/dist/boot/version.d.ts.map +1 -0
- package/dist/boot/version.js +14 -0
- package/dist/boot/version.js.map +1 -0
- package/dist/bun/index.d.ts +2 -0
- package/dist/bun/index.d.ts.map +1 -0
- package/dist/bun/index.js +2 -0
- package/dist/bun/index.js.map +1 -0
- package/dist/bun/interactive-host.d.ts +9 -0
- package/dist/bun/interactive-host.d.ts.map +1 -0
- package/dist/bun/interactive-host.js +18 -0
- package/dist/bun/interactive-host.js.map +1 -0
- package/dist/commands/cli.kinds.d.ts +1239 -0
- package/dist/commands/cli.kinds.d.ts.map +1 -0
- package/dist/commands/cli.kinds.js +138 -0
- package/dist/commands/cli.kinds.js.map +1 -0
- package/dist/commands/cli.plugin.d.ts +22 -0
- package/dist/commands/cli.plugin.d.ts.map +1 -0
- package/dist/commands/cli.plugin.js +138 -0
- package/dist/commands/cli.plugin.js.map +1 -0
- package/dist/commands/completion/bash.d.ts +1 -1
- package/dist/commands/completion/bash.d.ts.map +1 -1
- package/dist/commands/completion/bash.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/bash.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/bash.impl.consumer.js +6 -0
- package/dist/commands/completion/bash.impl.consumer.js.map +1 -0
- package/dist/commands/completion/bash.js +4 -2
- package/dist/commands/completion/bash.js.map +1 -1
- package/dist/commands/completion/completion.consumer.plugin.d.ts +3 -0
- package/dist/commands/completion/completion.consumer.plugin.d.ts.map +1 -0
- package/dist/commands/completion/completion.consumer.plugin.js +19 -0
- package/dist/commands/completion/completion.consumer.plugin.js.map +1 -0
- package/dist/commands/completion/completion.descriptor.d.ts +1 -2
- package/dist/commands/completion/completion.descriptor.d.ts.map +1 -1
- package/dist/commands/completion/completion.descriptor.js +11 -4
- package/dist/commands/completion/completion.descriptor.js.map +1 -1
- package/dist/commands/completion/completion.descriptors.d.ts +3 -0
- package/dist/commands/completion/completion.descriptors.d.ts.map +1 -0
- package/dist/commands/completion/completion.descriptors.js +56 -0
- package/dist/commands/completion/completion.descriptors.js.map +1 -0
- package/dist/commands/completion/completion.impl.d.ts +5 -4
- package/dist/commands/completion/completion.impl.d.ts.map +1 -1
- package/dist/commands/completion/completion.impl.js +104 -145
- package/dist/commands/completion/completion.impl.js.map +1 -1
- package/dist/commands/completion/completion.install.impl.consumer.d.ts +4 -0
- package/dist/commands/completion/completion.install.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/completion.install.impl.consumer.js +102 -0
- package/dist/commands/completion/completion.install.impl.consumer.js.map +1 -0
- package/dist/commands/completion/completion.kinds.d.ts +43 -0
- package/dist/commands/completion/completion.kinds.d.ts.map +1 -0
- package/dist/commands/completion/completion.kinds.js +17 -0
- package/dist/commands/completion/completion.kinds.js.map +1 -0
- package/dist/commands/completion/fig.d.ts +1 -1
- package/dist/commands/completion/fig.d.ts.map +1 -1
- package/dist/commands/completion/fig.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/fig.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/fig.impl.consumer.js +6 -0
- package/dist/commands/completion/fig.impl.consumer.js.map +1 -0
- package/dist/commands/completion/fish.d.ts +1 -1
- package/dist/commands/completion/fish.d.ts.map +1 -1
- package/dist/commands/completion/fish.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/fish.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/fish.impl.consumer.js +6 -0
- package/dist/commands/completion/fish.impl.consumer.js.map +1 -0
- package/dist/commands/completion/tree.d.ts +5 -26
- package/dist/commands/completion/tree.d.ts.map +1 -1
- package/dist/commands/completion/tree.js +26 -25
- package/dist/commands/completion/tree.js.map +1 -1
- package/dist/commands/completion/zsh-widget.js +4 -4
- package/dist/commands/completion/zsh.d.ts +1 -1
- package/dist/commands/completion/zsh.d.ts.map +1 -1
- package/dist/commands/completion/zsh.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/zsh.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/zsh.impl.consumer.js +6 -0
- package/dist/commands/completion/zsh.impl.consumer.js.map +1 -0
- package/dist/commands/completion/zsh.js +1 -1
- package/dist/commands/completion/zsh.js.map +1 -1
- package/dist/commands/docs/cli.commands.docs.descriptor.d.ts +8 -0
- package/dist/commands/docs/cli.commands.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.commands.docs.descriptor.js +55 -0
- package/dist/commands/docs/cli.commands.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/cli.docs.descriptor.d.ts +4 -0
- package/dist/commands/docs/cli.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.docs.descriptor.js +44 -0
- package/dist/commands/docs/cli.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.d.ts +4 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.js +40 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/cli.output.docs.descriptor.d.ts +4 -0
- package/dist/commands/docs/cli.output.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.output.docs.descriptor.js +45 -0
- package/dist/commands/docs/cli.output.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/content/cli-commands.json +1 -0
- package/dist/commands/docs/content/cli-groups.json +1 -0
- package/dist/commands/docs/content/cli-output.json +1 -0
- package/dist/commands/docs/doc-paths.d.ts +11 -0
- package/dist/commands/docs/doc-paths.d.ts.map +1 -0
- package/dist/commands/docs/doc-paths.js +32 -0
- package/dist/commands/docs/doc-paths.js.map +1 -0
- package/dist/commands/docs/generate.d.ts +48 -0
- package/dist/commands/docs/generate.d.ts.map +1 -0
- package/dist/commands/docs/generate.js +121 -0
- package/dist/commands/docs/generate.js.map +1 -0
- package/dist/commands/docs/render-command.d.ts +5 -0
- package/dist/commands/docs/render-command.d.ts.map +1 -0
- package/dist/commands/docs/render-command.js +117 -0
- package/dist/commands/docs/render-command.js.map +1 -0
- package/dist/commands/docs/render-group.d.ts +5 -0
- package/dist/commands/docs/render-group.d.ts.map +1 -0
- package/dist/commands/docs/render-group.js +62 -0
- package/dist/commands/docs/render-group.js.map +1 -0
- package/dist/commands/docs/schemas/generate.d.ts +14 -0
- package/dist/commands/docs/schemas/generate.d.ts.map +1 -0
- package/dist/commands/docs/schemas/generate.js +3 -0
- package/dist/commands/docs/schemas/generate.js.map +1 -0
- package/dist/commands/output.d.ts +27 -0
- package/dist/commands/output.d.ts.map +1 -0
- package/dist/commands/output.js +104 -0
- package/dist/commands/output.js.map +1 -0
- package/dist/commands/profile/_utils.d.ts +34 -9
- package/dist/commands/profile/_utils.d.ts.map +1 -1
- package/dist/commands/profile/_utils.js +65 -37
- package/dist/commands/profile/_utils.js.map +1 -1
- package/dist/commands/profile/profile-env.d.ts +42 -0
- package/dist/commands/profile/profile-env.d.ts.map +1 -0
- package/dist/commands/profile/profile-env.js +56 -0
- package/dist/commands/profile/profile-env.js.map +1 -0
- package/dist/commands/profile/profile-group.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile-group.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.create.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.create.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.create.descriptor.js +12 -1
- package/dist/commands/profile/profile.create.descriptor.js.map +1 -1
- package/dist/commands/profile/profile.create.impl.d.ts +2 -6
- package/dist/commands/profile/profile.create.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.create.impl.js +32 -9
- package/dist/commands/profile/profile.create.impl.js.map +1 -1
- package/dist/commands/profile/profile.delete.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.delete.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.delete.impl.d.ts +2 -7
- package/dist/commands/profile/profile.delete.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.delete.impl.js +33 -16
- package/dist/commands/profile/profile.delete.impl.js.map +1 -1
- package/dist/commands/profile/profile.environment.descriptor.d.ts +4 -0
- package/dist/commands/profile/profile.environment.descriptor.d.ts.map +1 -0
- package/dist/commands/profile/profile.environment.descriptor.js +26 -0
- package/dist/commands/profile/profile.environment.descriptor.js.map +1 -0
- package/dist/commands/profile/profile.environment.impl.d.ts +14 -0
- package/dist/commands/profile/profile.environment.impl.d.ts.map +1 -0
- package/dist/commands/profile/profile.environment.impl.js +33 -0
- package/dist/commands/profile/profile.environment.impl.js.map +1 -0
- package/dist/commands/profile/profile.info.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.info.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.info.descriptor.js +5 -1
- package/dist/commands/profile/profile.info.descriptor.js.map +1 -1
- package/dist/commands/profile/profile.info.impl.d.ts +5 -2
- package/dist/commands/profile/profile.info.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.info.impl.js +31 -14
- package/dist/commands/profile/profile.info.impl.js.map +1 -1
- package/dist/commands/profile/profile.list.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.list.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.list.descriptor.js +5 -1
- package/dist/commands/profile/profile.list.descriptor.js.map +1 -1
- package/dist/commands/profile/profile.list.impl.d.ts +17 -2
- package/dist/commands/profile/profile.list.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.list.impl.js +52 -25
- package/dist/commands/profile/profile.list.impl.js.map +1 -1
- package/dist/commands/profile/profile.use.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.use.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.use.impl.d.ts +2 -6
- package/dist/commands/profile/profile.use.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.use.impl.js +40 -10
- package/dist/commands/profile/profile.use.impl.js.map +1 -1
- package/dist/commands/runtime/codegen.command.descriptor.d.ts +26 -12
- package/dist/commands/runtime/codegen.command.descriptor.d.ts.map +1 -1
- package/dist/commands/runtime/codegen.command.descriptor.js +24 -6
- package/dist/commands/runtime/codegen.command.descriptor.js.map +1 -1
- package/dist/commands/runtime/codegen.command.impl.d.ts +15 -2
- package/dist/commands/runtime/codegen.command.impl.d.ts.map +1 -1
- package/dist/commands/runtime/codegen.command.impl.js +17 -30
- package/dist/commands/runtime/codegen.command.impl.js.map +1 -1
- package/dist/commands/runtime/codegen.d.ts +10 -14
- package/dist/commands/runtime/codegen.d.ts.map +1 -1
- package/dist/commands/runtime/codegen.declarations.d.ts +6 -0
- package/dist/commands/runtime/codegen.declarations.d.ts.map +1 -0
- package/dist/commands/runtime/codegen.declarations.js +6 -0
- package/dist/commands/runtime/codegen.declarations.js.map +1 -0
- package/dist/commands/runtime/codegen.js +85 -58
- package/dist/commands/runtime/codegen.js.map +1 -1
- package/dist/commands/runtime/export/markdown-document.d.ts +25 -0
- package/dist/commands/runtime/export/markdown-document.d.ts.map +1 -0
- package/dist/commands/runtime/export/markdown-document.js +38 -0
- package/dist/commands/runtime/export/markdown-document.js.map +1 -0
- package/dist/commands/runtime/export/markdown.d.ts +17 -0
- package/dist/commands/runtime/export/markdown.d.ts.map +1 -0
- package/dist/commands/runtime/export/markdown.js +141 -0
- package/dist/commands/runtime/export/markdown.js.map +1 -0
- package/dist/commands/runtime/export/read.d.ts +27 -0
- package/dist/commands/runtime/export/read.d.ts.map +1 -0
- package/dist/commands/runtime/export/read.js +128 -0
- package/dist/commands/runtime/export/read.js.map +1 -0
- package/dist/commands/runtime/export/reading-notes.d.ts +11 -0
- package/dist/commands/runtime/export/reading-notes.d.ts.map +1 -0
- package/dist/commands/runtime/export/reading-notes.js +45 -0
- package/dist/commands/runtime/export/reading-notes.js.map +1 -0
- package/dist/commands/runtime/export/register.d.ts +34 -0
- package/dist/commands/runtime/export/register.d.ts.map +1 -0
- package/dist/commands/runtime/export/register.js +57 -0
- package/dist/commands/runtime/export/register.js.map +1 -0
- package/dist/commands/runtime/export/schemas.d.ts +104 -0
- package/dist/commands/runtime/export/schemas.d.ts.map +1 -0
- package/dist/commands/runtime/export/schemas.js +38 -0
- package/dist/commands/runtime/export/schemas.js.map +1 -0
- package/dist/commands/runtime/export/write.d.ts +16 -0
- package/dist/commands/runtime/export/write.d.ts.map +1 -0
- package/dist/commands/runtime/export/write.js +36 -0
- package/dist/commands/runtime/export/write.js.map +1 -0
- package/dist/commands/runtime/export.command.impl.d.ts +18 -0
- package/dist/commands/runtime/export.command.impl.d.ts.map +1 -0
- package/dist/commands/runtime/export.command.impl.js +39 -0
- package/dist/commands/runtime/export.command.impl.js.map +1 -0
- package/dist/commands/runtime/export.d.ts +28 -0
- package/dist/commands/runtime/export.d.ts.map +1 -0
- package/dist/commands/runtime/export.descriptor.d.ts +55 -0
- package/dist/commands/runtime/export.descriptor.d.ts.map +1 -0
- package/dist/commands/runtime/export.descriptor.js +58 -0
- package/dist/commands/runtime/export.descriptor.js.map +1 -0
- package/dist/commands/runtime/export.js +28 -0
- package/dist/commands/runtime/export.js.map +1 -0
- package/dist/commands/runtime/index.d.ts +2 -2
- package/dist/commands/runtime/index.d.ts.map +1 -1
- package/dist/commands/runtime/index.js +3 -3
- package/dist/commands/runtime/index.js.map +1 -1
- package/dist/commands/runtime/plugin.d.ts +1 -1
- package/dist/commands/runtime/plugin.d.ts.map +1 -1
- package/dist/commands/runtime/plugin.js +1 -1
- package/dist/commands/runtime/plugin.js.map +1 -1
- package/dist/commands/runtime/runtime-group.descriptor.d.ts +1 -1
- package/dist/commands/runtime/runtime-group.descriptor.d.ts.map +1 -1
- package/dist/commands/schemas/output.d.ts +26 -0
- package/dist/commands/schemas/output.d.ts.map +1 -0
- package/dist/commands/schemas/output.js +14 -0
- package/dist/commands/schemas/output.js.map +1 -0
- package/dist/commands/schemas/profile-environment.d.ts +6 -0
- package/dist/commands/schemas/profile-environment.d.ts.map +1 -0
- package/dist/commands/schemas/profile-environment.js +3 -0
- package/dist/commands/schemas/profile-environment.js.map +1 -0
- package/dist/commands/schemas/profile-list.d.ts +22 -0
- package/dist/commands/schemas/profile-list.d.ts.map +1 -0
- package/dist/commands/schemas/profile-list.js +3 -0
- package/dist/commands/schemas/profile-list.js.map +1 -0
- package/dist/commands/skills/_skills.d.ts +98 -0
- package/dist/commands/skills/_skills.d.ts.map +1 -0
- package/dist/commands/skills/_skills.js +183 -0
- package/dist/commands/skills/_skills.js.map +1 -0
- package/dist/commands/skills/skills-group.descriptor.d.ts +4 -0
- package/dist/commands/skills/skills-group.descriptor.d.ts.map +1 -0
- package/dist/commands/skills/skills-group.descriptor.js +12 -0
- package/dist/commands/skills/skills-group.descriptor.js.map +1 -0
- package/dist/commands/skills/skills.install.descriptor.d.ts +4 -0
- package/dist/commands/skills/skills.install.descriptor.d.ts.map +1 -0
- package/dist/commands/skills/skills.install.descriptor.js +37 -0
- package/dist/commands/skills/skills.install.descriptor.js.map +1 -0
- package/dist/commands/skills/skills.install.impl.d.ts +12 -0
- package/dist/commands/skills/skills.install.impl.d.ts.map +1 -0
- package/dist/commands/skills/skills.install.impl.js +65 -0
- package/dist/commands/skills/skills.install.impl.js.map +1 -0
- package/dist/commands/skills/skills.list.descriptor.d.ts +4 -0
- package/dist/commands/skills/skills.list.descriptor.d.ts.map +1 -0
- package/dist/commands/skills/skills.list.descriptor.js +23 -0
- package/dist/commands/skills/skills.list.descriptor.js.map +1 -0
- package/dist/commands/skills/skills.list.impl.d.ts +11 -0
- package/dist/commands/skills/skills.list.impl.d.ts.map +1 -0
- package/dist/commands/skills/skills.list.impl.js +69 -0
- package/dist/commands/skills/skills.list.impl.js.map +1 -0
- package/dist/core/runtime/shared/context.d.ts +16 -16
- package/dist/core/runtime/shared/context.d.ts.map +1 -1
- package/dist/core/runtime/shared/context.js +20 -35
- package/dist/core/runtime/shared/context.js.map +1 -1
- package/dist/core/runtime/shared/options.d.ts +5 -19
- package/dist/core/runtime/shared/options.d.ts.map +1 -1
- package/dist/core/runtime/shared/options.js +87 -42
- package/dist/core/runtime/shared/options.js.map +1 -1
- package/dist/design-inventory.d.ts +23 -0
- package/dist/design-inventory.d.ts.map +1 -0
- package/dist/design-inventory.js +66 -0
- package/dist/design-inventory.js.map +1 -0
- package/dist/index.d.ts +12 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -25
- package/dist/index.js.map +1 -1
- package/dist/invocation/client.d.ts +20 -0
- package/dist/invocation/client.d.ts.map +1 -0
- package/dist/invocation/client.js +25 -0
- package/dist/invocation/client.js.map +1 -0
- package/dist/invocation/state.d.ts +10 -0
- package/dist/invocation/state.d.ts.map +1 -0
- package/dist/invocation/state.js +32 -0
- package/dist/invocation/state.js.map +1 -0
- package/dist/patterns/builtins/config-namespace-commands.d.ts +10 -0
- package/dist/patterns/builtins/config-namespace-commands.d.ts.map +1 -0
- package/dist/patterns/builtins/config-namespace-commands.js +132 -0
- package/dist/patterns/builtins/config-namespace-commands.js.map +1 -0
- package/dist/patterns/builtins/config-namespace-output.d.ts +9 -0
- package/dist/patterns/builtins/config-namespace-output.d.ts.map +1 -0
- package/dist/patterns/builtins/config-namespace-output.js +31 -0
- package/dist/patterns/builtins/config-namespace-output.js.map +1 -0
- package/dist/patterns/builtins/config-namespace.d.ts +23 -0
- package/dist/patterns/builtins/config-namespace.d.ts.map +1 -0
- package/dist/patterns/builtins/config-namespace.js +70 -0
- package/dist/patterns/builtins/config-namespace.js.map +1 -0
- package/dist/patterns/builtins/crud-commands.d.ts +11 -0
- package/dist/patterns/builtins/crud-commands.d.ts.map +1 -0
- package/dist/patterns/builtins/crud-commands.js +105 -0
- package/dist/patterns/builtins/crud-commands.js.map +1 -0
- package/dist/patterns/builtins/crud-output.d.ts +7 -0
- package/dist/patterns/builtins/crud-output.d.ts.map +1 -0
- package/dist/patterns/builtins/crud-output.js +21 -0
- package/dist/patterns/builtins/crud-output.js.map +1 -0
- package/dist/patterns/builtins/crud.d.ts +16 -0
- package/dist/patterns/builtins/crud.d.ts.map +1 -0
- package/dist/patterns/builtins/crud.js +38 -0
- package/dist/patterns/builtins/crud.js.map +1 -0
- package/dist/patterns/{log-viewer.d.ts → builtins/log-viewer.d.ts} +5 -5
- package/dist/patterns/builtins/log-viewer.d.ts.map +1 -0
- package/dist/patterns/{log-viewer.js → builtins/log-viewer.js} +31 -9
- package/dist/patterns/builtins/log-viewer.js.map +1 -0
- package/dist/patterns/builtins/output.d.ts +5 -0
- package/dist/patterns/builtins/output.d.ts.map +1 -0
- package/dist/patterns/builtins/output.js +25 -0
- package/dist/patterns/builtins/output.js.map +1 -0
- package/dist/patterns/{process-manager.d.ts → builtins/process-manager.d.ts} +9 -4
- package/dist/patterns/builtins/process-manager.d.ts.map +1 -0
- package/dist/patterns/{process-manager.js → builtins/process-manager.js} +46 -29
- package/dist/patterns/builtins/process-manager.js.map +1 -0
- package/dist/patterns/builtins/tool-wrapper.d.ts +18 -0
- package/dist/patterns/builtins/tool-wrapper.d.ts.map +1 -0
- package/dist/patterns/builtins/tool-wrapper.js +124 -0
- package/dist/patterns/builtins/tool-wrapper.js.map +1 -0
- package/dist/patterns/cli-value.d.ts +3 -0
- package/dist/patterns/cli-value.d.ts.map +1 -0
- package/dist/patterns/cli-value.js +42 -0
- package/dist/patterns/cli-value.js.map +1 -0
- package/dist/patterns/index.d.ts +5 -9
- package/dist/patterns/index.d.ts.map +1 -1
- package/dist/patterns/index.js +5 -9
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/pattern.kinds.d.ts +30 -0
- package/dist/patterns/pattern.kinds.d.ts.map +1 -0
- package/dist/patterns/pattern.kinds.js +8 -0
- package/dist/patterns/pattern.kinds.js.map +1 -0
- package/dist/patterns/resolver.d.ts +11 -32
- package/dist/patterns/resolver.d.ts.map +1 -1
- package/dist/patterns/resolver.js +14 -45
- package/dist/patterns/resolver.js.map +1 -1
- package/dist/patterns/schemas.d.ts +9 -492
- package/dist/patterns/schemas.d.ts.map +1 -1
- package/dist/patterns/schemas.js +5 -94
- package/dist/patterns/schemas.js.map +1 -1
- package/dist/schemas/bootstrap.d.ts +242 -0
- package/dist/schemas/bootstrap.d.ts.map +1 -0
- package/dist/schemas/bootstrap.js +7 -0
- package/dist/schemas/bootstrap.js.map +1 -0
- package/dist/schemas/command-implementation.d.ts +34 -0
- package/dist/schemas/command-implementation.d.ts.map +1 -0
- package/dist/schemas/command-implementation.js +31 -0
- package/dist/schemas/command-implementation.js.map +1 -0
- package/dist/schemas/command-recommendations.d.ts +9 -0
- package/dist/schemas/command-recommendations.d.ts.map +1 -0
- package/dist/schemas/command-recommendations.js +14 -0
- package/dist/schemas/command-recommendations.js.map +1 -0
- package/dist/schemas/completion.d.ts +118 -0
- package/dist/schemas/completion.d.ts.map +1 -0
- package/dist/schemas/completion.js +63 -0
- package/dist/schemas/completion.js.map +1 -0
- package/dist/schemas/descriptors.d.ts +1 -129
- package/dist/schemas/descriptors.d.ts.map +1 -1
- package/dist/schemas/descriptors.js +1 -95
- package/dist/schemas/descriptors.js.map +1 -1
- package/dist/schemas/design-inventory.d.ts +20 -0
- package/dist/schemas/design-inventory.d.ts.map +1 -0
- package/dist/schemas/design-inventory.js +10 -0
- package/dist/schemas/design-inventory.js.map +1 -0
- package/dist/schemas/discovery.d.ts +17 -0
- package/dist/schemas/discovery.d.ts.map +1 -0
- package/dist/schemas/discovery.js +15 -0
- package/dist/schemas/discovery.js.map +1 -0
- package/dist/schemas/exit.d.ts +33 -0
- package/dist/schemas/exit.d.ts.map +1 -0
- package/dist/schemas/exit.js +20 -0
- package/dist/schemas/exit.js.map +1 -0
- package/dist/schemas/interactive-host.d.ts +10 -0
- package/dist/schemas/interactive-host.d.ts.map +1 -0
- package/dist/schemas/interactive-host.js +11 -0
- package/dist/schemas/interactive-host.js.map +1 -0
- package/dist/schemas/output-format.d.ts +61 -0
- package/dist/schemas/output-format.d.ts.map +1 -0
- package/dist/schemas/output-format.js +26 -0
- package/dist/schemas/output-format.js.map +1 -0
- package/dist/schemas/pattern-implementation.d.ts +1572 -0
- package/dist/schemas/pattern-implementation.d.ts.map +1 -0
- package/dist/schemas/pattern-implementation.js +12 -0
- package/dist/schemas/pattern-implementation.js.map +1 -0
- package/dist/schemas/pattern-input.d.ts +152 -0
- package/dist/schemas/pattern-input.d.ts.map +1 -0
- package/dist/schemas/pattern-input.js +194 -0
- package/dist/schemas/pattern-input.js.map +1 -0
- package/dist/schemas/pm-context.d.ts +17 -0
- package/dist/schemas/pm-context.d.ts.map +1 -0
- package/dist/schemas/pm-context.js +13 -0
- package/dist/schemas/pm-context.js.map +1 -0
- package/dist/schemas/prompts.d.ts +61 -0
- package/dist/schemas/prompts.d.ts.map +1 -0
- package/dist/schemas/prompts.js +43 -0
- package/dist/schemas/prompts.js.map +1 -0
- package/dist/schemas/runtime-codegen.d.ts +191 -0
- package/dist/schemas/runtime-codegen.d.ts.map +1 -0
- package/dist/schemas/runtime-codegen.js +83 -0
- package/dist/schemas/runtime-codegen.js.map +1 -0
- package/dist/schemas/surface.d.ts +33 -20
- package/dist/schemas/surface.d.ts.map +1 -1
- package/dist/schemas/surface.js +2 -1
- package/dist/schemas/surface.js.map +1 -1
- package/dist/schemas/terminal-input.d.ts +15 -0
- package/dist/schemas/terminal-input.d.ts.map +1 -0
- package/dist/schemas/terminal-input.js +13 -0
- package/dist/schemas/terminal-input.js.map +1 -0
- package/dist/schemas/types.d.ts +1 -201
- package/dist/schemas/types.d.ts.map +1 -1
- package/dist/support/cli-inventory.generated.d.ts +4 -0
- package/dist/support/cli-inventory.generated.d.ts.map +1 -0
- package/dist/support/cli-inventory.generated.js +31 -0
- package/dist/support/cli-inventory.generated.js.map +1 -0
- package/dist/support/logging/cli-startup.logger.descriptor.d.ts.map +1 -0
- package/dist/support/logging/cli-startup.logger.descriptor.js.map +1 -0
- package/dist/support/logging/logging.d.ts +8 -0
- package/dist/support/logging/logging.d.ts.map +1 -0
- package/dist/support/logging/logging.js +13 -0
- package/dist/support/logging/logging.js.map +1 -0
- package/dist/support/terminal-input.d.ts +11 -0
- package/dist/support/terminal-input.d.ts.map +1 -0
- package/dist/support/terminal-input.js +39 -0
- package/dist/support/terminal-input.js.map +1 -0
- package/dist/support/ui/context.descriptor.d.ts +35 -0
- package/dist/support/ui/context.descriptor.d.ts.map +1 -0
- package/dist/{ui.context.descriptor.js → support/ui/context.descriptor.js} +2 -2
- package/dist/support/ui/context.descriptor.js.map +1 -0
- package/dist/support/ui/format.client.d.ts +42 -0
- package/dist/support/ui/format.client.d.ts.map +1 -0
- package/dist/support/ui/format.client.js +92 -0
- package/dist/support/ui/format.client.js.map +1 -0
- package/dist/support/ui/format.kinds.d.ts +30 -0
- package/dist/support/ui/format.kinds.d.ts.map +1 -0
- package/dist/support/ui/format.kinds.js +8 -0
- package/dist/support/ui/format.kinds.js.map +1 -0
- package/dist/support/ui/format.plugin.d.ts +7 -0
- package/dist/support/ui/format.plugin.d.ts.map +1 -0
- package/dist/support/ui/format.plugin.js +23 -0
- package/dist/support/ui/format.plugin.js.map +1 -0
- package/dist/support/ui/formats.d.ts +4 -0
- package/dist/support/ui/formats.d.ts.map +1 -0
- package/dist/support/ui/formats.js +34 -0
- package/dist/support/ui/formats.js.map +1 -0
- package/dist/support/ui/prompts.d.ts +9 -0
- package/dist/support/ui/prompts.d.ts.map +1 -0
- package/dist/support/ui/prompts.js +99 -0
- package/dist/support/ui/prompts.js.map +1 -0
- package/dist/support/ui/schemas/types.d.ts +2 -0
- package/dist/support/ui/schemas/types.d.ts.map +1 -0
- package/dist/support/ui/schemas/types.js.map +1 -0
- package/dist/support/ui/schemas/ui-toolkit.d.ts +45 -0
- package/dist/support/ui/schemas/ui-toolkit.d.ts.map +1 -0
- package/dist/support/ui/schemas/ui-toolkit.js +2 -0
- package/dist/support/ui/schemas/ui-toolkit.js.map +1 -0
- package/dist/support/ui/showcase.d.ts +18 -0
- package/dist/support/ui/showcase.d.ts.map +1 -0
- package/dist/support/ui/showcase.js +101 -0
- package/dist/support/ui/showcase.js.map +1 -0
- package/dist/support/ui/table.d.ts +28 -0
- package/dist/support/ui/table.d.ts.map +1 -0
- package/dist/support/ui/table.js +74 -0
- package/dist/support/ui/table.js.map +1 -0
- package/dist/support/ui/toolkit.d.ts +56 -0
- package/dist/support/ui/toolkit.d.ts.map +1 -0
- package/dist/support/ui/toolkit.js +130 -0
- package/dist/support/ui/toolkit.js.map +1 -0
- package/dist/support/vibesdev/index.d.ts +2 -0
- package/dist/support/vibesdev/index.d.ts.map +1 -0
- package/dist/support/vibesdev/index.js +3 -0
- package/dist/support/vibesdev/index.js.map +1 -0
- package/dist/surface/CLISurface.d.ts +77 -3
- package/dist/surface/CLISurface.d.ts.map +1 -1
- package/dist/surface/CLISurface.js +642 -98
- package/dist/surface/CLISurface.js.map +1 -1
- package/dist/surface/argument-name.d.ts +14 -0
- package/dist/surface/argument-name.d.ts.map +1 -0
- package/dist/surface/argument-name.js +23 -0
- package/dist/surface/argument-name.js.map +1 -0
- package/dist/surface/attach-tui-action.d.ts +35 -9
- package/dist/surface/attach-tui-action.d.ts.map +1 -1
- package/dist/surface/attach-tui-action.js +50 -43
- package/dist/surface/attach-tui-action.js.map +1 -1
- package/dist/surface/build-context.d.ts +2 -2
- package/dist/surface/build-context.d.ts.map +1 -1
- package/dist/surface/build-context.js +26 -44
- package/dist/surface/build-context.js.map +1 -1
- package/dist/surface/command-group-policy.d.ts +2 -3
- package/dist/surface/command-group-policy.d.ts.map +1 -1
- package/dist/surface/command-group-policy.js +1 -11
- package/dist/surface/command-group-policy.js.map +1 -1
- package/dist/surface/command-implementation.d.ts +9 -0
- package/dist/surface/command-implementation.d.ts.map +1 -0
- package/dist/surface/command-implementation.js +19 -0
- package/dist/surface/command-implementation.js.map +1 -0
- package/dist/surface/command-options.d.ts +29 -0
- package/dist/surface/command-options.d.ts.map +1 -0
- package/dist/surface/command-options.js +57 -0
- package/dist/surface/command-options.js.map +1 -0
- package/dist/surface/commander-action.d.ts +25 -0
- package/dist/surface/commander-action.d.ts.map +1 -0
- package/dist/surface/commander-action.js +38 -0
- package/dist/surface/commander-action.js.map +1 -0
- package/dist/surface/discovery-cache.d.ts +3 -15
- package/dist/surface/discovery-cache.d.ts.map +1 -1
- package/dist/surface/discovery-cache.js +6 -33
- package/dist/surface/discovery-cache.js.map +1 -1
- package/dist/surface/exit.d.ts +10 -0
- package/dist/surface/exit.d.ts.map +1 -0
- package/dist/surface/exit.js +33 -0
- package/dist/surface/exit.js.map +1 -0
- package/dist/surface/failure-of.d.ts +9 -0
- package/dist/surface/failure-of.d.ts.map +1 -0
- package/dist/surface/failure-of.js +17 -0
- package/dist/surface/failure-of.js.map +1 -0
- package/dist/surface/failure-output.d.ts +50 -0
- package/dist/surface/failure-output.d.ts.map +1 -0
- package/dist/surface/failure-output.js +84 -0
- package/dist/surface/failure-output.js.map +1 -0
- package/dist/surface/failure-report.d.ts +78 -0
- package/dist/surface/failure-report.d.ts.map +1 -0
- package/dist/surface/failure-report.js +229 -0
- package/dist/surface/failure-report.js.map +1 -0
- package/dist/surface/group-fallback.d.ts +32 -0
- package/dist/surface/group-fallback.d.ts.map +1 -0
- package/dist/surface/group-fallback.js +78 -0
- package/dist/surface/group-fallback.js.map +1 -0
- package/dist/surface/index.d.ts +10 -0
- package/dist/surface/index.d.ts.map +1 -0
- package/dist/surface/index.js +8 -0
- package/dist/surface/index.js.map +1 -0
- package/dist/surface/inherited-options.d.ts +28 -0
- package/dist/surface/inherited-options.d.ts.map +1 -0
- package/dist/surface/inherited-options.js +108 -0
- package/dist/surface/inherited-options.js.map +1 -0
- package/dist/surface/interactive-gate.d.ts +41 -0
- package/dist/surface/interactive-gate.d.ts.map +1 -0
- package/dist/surface/interactive-gate.js +112 -0
- package/dist/surface/interactive-gate.js.map +1 -0
- package/dist/surface/invocation-actions.d.ts +40 -0
- package/dist/surface/invocation-actions.d.ts.map +1 -0
- package/dist/surface/invocation-actions.js +78 -0
- package/dist/surface/invocation-actions.js.map +1 -0
- package/dist/surface/invocation-effects.d.ts +11 -0
- package/dist/surface/invocation-effects.d.ts.map +1 -0
- package/dist/surface/invocation-effects.js +52 -0
- package/dist/surface/invocation-effects.js.map +1 -0
- package/dist/surface/invocation-lifecycle.d.ts +49 -0
- package/dist/surface/invocation-lifecycle.d.ts.map +1 -0
- package/dist/surface/invocation-lifecycle.js +127 -0
- package/dist/surface/invocation-lifecycle.js.map +1 -0
- package/dist/surface/output-format-request.d.ts +23 -0
- package/dist/surface/output-format-request.d.ts.map +1 -0
- package/dist/surface/output-format-request.js +116 -0
- package/dist/surface/output-format-request.js.map +1 -0
- package/dist/surface/pm-context.d.ts +5 -0
- package/dist/surface/pm-context.d.ts.map +1 -0
- package/dist/surface/pm-context.js +69 -0
- package/dist/surface/pm-context.js.map +1 -0
- package/dist/surface/register-commands.d.ts +24 -4
- package/dist/surface/register-commands.d.ts.map +1 -1
- package/dist/surface/register-commands.js +156 -63
- package/dist/surface/register-commands.js.map +1 -1
- package/dist/surface/register-groups.d.ts +4 -4
- package/dist/surface/register-groups.d.ts.map +1 -1
- package/dist/surface/register-groups.js +71 -9
- package/dist/surface/register-groups.js.map +1 -1
- package/dist/surface/schemas/CLISurface.d.ts +31 -0
- package/dist/surface/schemas/CLISurface.d.ts.map +1 -0
- package/dist/surface/schemas/CLISurface.js +2 -0
- package/dist/surface/schemas/CLISurface.js.map +1 -0
- package/dist/surface/schemas/command-implementation.d.ts +20 -0
- package/dist/surface/schemas/command-implementation.d.ts.map +1 -0
- package/dist/surface/schemas/command-implementation.js +2 -0
- package/dist/surface/schemas/command-implementation.js.map +1 -0
- package/dist/surface/schemas/interactive-gate.d.ts +29 -0
- package/dist/surface/schemas/interactive-gate.d.ts.map +1 -0
- package/dist/surface/schemas/interactive-gate.js +2 -0
- package/dist/surface/schemas/interactive-gate.js.map +1 -0
- package/package.json +276 -140
- package/SPEC.md +0 -97
- package/bin/vibes.ts +0 -26
- package/dist/api/client/factory.d.ts +0 -29
- package/dist/api/client/factory.d.ts.map +0 -1
- package/dist/api/client/factory.js +0 -189
- package/dist/api/client/factory.js.map +0 -1
- package/dist/api/schemas/common.d.ts +0 -58
- package/dist/api/schemas/common.d.ts.map +0 -1
- package/dist/api/schemas/common.js +0 -48
- package/dist/api/schemas/common.js.map +0 -1
- package/dist/api/schemas/types.d.ts +0 -30
- package/dist/api/schemas/types.d.ts.map +0 -1
- package/dist/api/services/api.d.ts +0 -14
- package/dist/api/services/api.d.ts.map +0 -1
- package/dist/api/services/api.js +0 -110
- package/dist/api/services/api.js.map +0 -1
- package/dist/api/types.d.ts +0 -6
- package/dist/api/types.d.ts.map +0 -1
- package/dist/api/types.js +0 -5
- package/dist/api/types.js.map +0 -1
- package/dist/bin.d.ts +0 -28
- package/dist/bin.d.ts.map +0 -1
- package/dist/bin.js +0 -73
- package/dist/bin.js.map +0 -1
- package/dist/bootstrap.d.ts +0 -14
- package/dist/bootstrap.d.ts.map +0 -1
- package/dist/bootstrap.js +0 -14
- package/dist/bootstrap.js.map +0 -1
- package/dist/cli.plugin.d.ts +0 -20
- package/dist/cli.plugin.d.ts.map +0 -1
- package/dist/cli.plugin.js +0 -170
- package/dist/cli.plugin.js.map +0 -1
- package/dist/commands/runtime/_logging.d.ts +0 -11
- package/dist/commands/runtime/_logging.d.ts.map +0 -1
- package/dist/commands/runtime/_logging.js +0 -40
- package/dist/commands/runtime/_logging.js.map +0 -1
- package/dist/config.d.ts +0 -17
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/core/index.d.ts +0 -9
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -5
- package/dist/core/index.js.map +0 -1
- package/dist/core/namespace/hook.d.ts +0 -12
- package/dist/core/namespace/hook.d.ts.map +0 -1
- package/dist/core/namespace/hook.js +0 -15
- package/dist/core/namespace/hook.js.map +0 -1
- package/dist/core/namespace/index.d.ts +0 -18
- package/dist/core/namespace/index.d.ts.map +0 -1
- package/dist/core/namespace/index.js +0 -214
- package/dist/core/namespace/index.js.map +0 -1
- package/dist/core/namespace/schemas/index.d.ts +0 -25
- package/dist/core/namespace/schemas/index.d.ts.map +0 -1
- package/dist/core/namespace/schemas/index.js +0 -2
- package/dist/core/namespace/schemas/index.js.map +0 -1
- package/dist/core/plugins/types.d.ts +0 -81
- package/dist/core/plugins/types.d.ts.map +0 -1
- package/dist/core/plugins/types.js +0 -6
- package/dist/core/plugins/types.js.map +0 -1
- package/dist/core/runtime/context.d.ts +0 -25
- package/dist/core/runtime/context.d.ts.map +0 -1
- package/dist/core/runtime/context.js +0 -30
- package/dist/core/runtime/context.js.map +0 -1
- package/dist/core/runtime/hooks.d.ts +0 -12
- package/dist/core/runtime/hooks.d.ts.map +0 -1
- package/dist/core/runtime/hooks.js +0 -2
- package/dist/core/runtime/hooks.js.map +0 -1
- package/dist/core/schemas/manifest.d.ts +0 -24
- package/dist/core/schemas/manifest.d.ts.map +0 -1
- package/dist/core/schemas/manifest.js +0 -6
- package/dist/core/schemas/manifest.js.map +0 -1
- package/dist/core/schemas/types.d.ts +0 -7
- package/dist/core/schemas/types.d.ts.map +0 -1
- package/dist/core/schemas/types.js.map +0 -1
- package/dist/core/ui/interface.d.ts +0 -12
- package/dist/core/ui/interface.d.ts.map +0 -1
- package/dist/core/ui/interface.js +0 -6
- package/dist/core/ui/interface.js.map +0 -1
- package/dist/docs/cli.commands.docs.descriptor.d.ts +0 -4
- package/dist/docs/cli.commands.docs.descriptor.d.ts.map +0 -1
- package/dist/docs/cli.commands.docs.descriptor.js +0 -207
- package/dist/docs/cli.commands.docs.descriptor.js.map +0 -1
- package/dist/docs/cli.groups.docs.descriptor.d.ts +0 -4
- package/dist/docs/cli.groups.docs.descriptor.d.ts.map +0 -1
- package/dist/docs/cli.groups.docs.descriptor.js +0 -330
- package/dist/docs/cli.groups.docs.descriptor.js.map +0 -1
- package/dist/docs/cli.output.docs.descriptor.d.ts +0 -4
- package/dist/docs/cli.output.docs.descriptor.d.ts.map +0 -1
- package/dist/docs/cli.output.docs.descriptor.js +0 -442
- package/dist/docs/cli.output.docs.descriptor.js.map +0 -1
- package/dist/docs/types.d.ts +0 -19
- package/dist/docs/types.d.ts.map +0 -1
- package/dist/docs/types.js +0 -2
- package/dist/docs/types.js.map +0 -1
- package/dist/errors.d.ts +0 -74
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -113
- package/dist/errors.js.map +0 -1
- package/dist/logging/cli-startup.logger.descriptor.d.ts.map +0 -1
- package/dist/logging/cli-startup.logger.descriptor.js.map +0 -1
- package/dist/logging.d.ts +0 -4
- package/dist/logging.d.ts.map +0 -1
- package/dist/logging.js +0 -21
- package/dist/logging.js.map +0 -1
- package/dist/patterns/config-namespace.d.ts +0 -23
- package/dist/patterns/config-namespace.d.ts.map +0 -1
- package/dist/patterns/config-namespace.js +0 -218
- package/dist/patterns/config-namespace.js.map +0 -1
- package/dist/patterns/crud.d.ts +0 -23
- package/dist/patterns/crud.d.ts.map +0 -1
- package/dist/patterns/crud.js +0 -164
- package/dist/patterns/crud.js.map +0 -1
- package/dist/patterns/log-viewer.d.ts.map +0 -1
- package/dist/patterns/log-viewer.js.map +0 -1
- package/dist/patterns/pattern-types.d.ts +0 -21
- package/dist/patterns/pattern-types.d.ts.map +0 -1
- package/dist/patterns/pattern-types.js +0 -7
- package/dist/patterns/pattern-types.js.map +0 -1
- package/dist/patterns/process-manager.d.ts.map +0 -1
- package/dist/patterns/process-manager.js.map +0 -1
- package/dist/patterns/resolver.contracts.d.ts +0 -14
- package/dist/patterns/resolver.contracts.d.ts.map +0 -1
- package/dist/patterns/resolver.contracts.js +0 -9
- package/dist/patterns/resolver.contracts.js.map +0 -1
- package/dist/patterns/tool-wrapper.d.ts +0 -18
- package/dist/patterns/tool-wrapper.d.ts.map +0 -1
- package/dist/patterns/tool-wrapper.js +0 -130
- package/dist/patterns/tool-wrapper.js.map +0 -1
- package/dist/providers.d.ts +0 -105
- package/dist/providers.d.ts.map +0 -1
- package/dist/providers.js +0 -164
- package/dist/providers.js.map +0 -1
- package/dist/support/ui-toolkit.d.ts +0 -62
- package/dist/support/ui-toolkit.d.ts.map +0 -1
- package/dist/support/ui-toolkit.js +0 -172
- package/dist/support/ui-toolkit.js.map +0 -1
- package/dist/surface.d.ts +0 -9
- package/dist/surface.d.ts.map +0 -1
- package/dist/surface.js +0 -8
- package/dist/surface.js.map +0 -1
- package/dist/types.d.ts +0 -4
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/ui/schemas/types.d.ts +0 -2
- package/dist/ui/schemas/types.d.ts.map +0 -1
- package/dist/ui/schemas/types.js +0 -2
- package/dist/ui/schemas/types.js.map +0 -1
- package/dist/ui/toolkit/VibesUIToolkit.d.ts +0 -2
- package/dist/ui/toolkit/VibesUIToolkit.d.ts.map +0 -1
- package/dist/ui/toolkit/VibesUIToolkit.js +0 -2
- package/dist/ui/toolkit/VibesUIToolkit.js.map +0 -1
- package/dist/ui.context.descriptor.d.ts +0 -21
- package/dist/ui.context.descriptor.d.ts.map +0 -1
- package/dist/ui.context.descriptor.js.map +0 -1
- package/dist/utils/open.d.ts +0 -2
- package/dist/utils/open.d.ts.map +0 -1
- package/dist/utils/open.js +0 -30
- package/dist/utils/open.js.map +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -2
- package/dist/version.js.map +0 -1
- package/src/api/client/factory.ts +0 -265
- package/src/api/schemas/common.ts +0 -50
- package/src/api/schemas/types.ts +0 -32
- package/src/api/services/api.ts +0 -129
- package/src/api/types.ts +0 -12
- package/src/bin.ts +0 -84
- package/src/bootstrap.ts +0 -19
- package/src/cli.plugin.d.ts +0 -19
- package/src/cli.plugin.ts +0 -202
- package/src/commands/completion/bash.ts +0 -68
- package/src/commands/completion/completion.descriptor.ts +0 -48
- package/src/commands/completion/completion.impl.ts +0 -188
- package/src/commands/completion/fig.ts +0 -78
- package/src/commands/completion/fish.ts +0 -52
- package/src/commands/completion/tree.ts +0 -115
- package/src/commands/completion/zsh-widget.ts +0 -39
- package/src/commands/completion/zsh.ts +0 -165
- package/src/commands/profile/_utils.ts +0 -72
- package/src/commands/profile/profile-group.descriptor.ts +0 -14
- package/src/commands/profile/profile.create.descriptor.ts +0 -24
- package/src/commands/profile/profile.create.impl.ts +0 -44
- package/src/commands/profile/profile.delete.descriptor.ts +0 -31
- package/src/commands/profile/profile.delete.impl.ts +0 -71
- package/src/commands/profile/profile.info.descriptor.ts +0 -25
- package/src/commands/profile/profile.info.impl.ts +0 -51
- package/src/commands/profile/profile.list.descriptor.ts +0 -18
- package/src/commands/profile/profile.list.impl.ts +0 -46
- package/src/commands/profile/profile.use.descriptor.ts +0 -25
- package/src/commands/profile/profile.use.impl.ts +0 -39
- package/src/commands/runtime/_logging.ts +0 -47
- package/src/commands/runtime/codegen.command.descriptor.ts +0 -18
- package/src/commands/runtime/codegen.command.impl.ts +0 -44
- package/src/commands/runtime/codegen.ts +0 -84
- package/src/commands/runtime/index.ts +0 -14
- package/src/commands/runtime/plugin.ts +0 -7
- package/src/commands/runtime/runtime-group.descriptor.ts +0 -12
- package/src/config.ts +0 -22
- package/src/core/index.ts +0 -9
- package/src/core/namespace/hook.ts +0 -25
- package/src/core/namespace/index.ts +0 -298
- package/src/core/namespace/schemas/index.ts +0 -25
- package/src/core/plugins/types.ts +0 -87
- package/src/core/runtime/context.ts +0 -50
- package/src/core/runtime/hooks.ts +0 -12
- package/src/core/runtime/shared/context.ts +0 -65
- package/src/core/runtime/shared/options.ts +0 -60
- package/src/core/schemas/manifest.ts +0 -26
- package/src/core/schemas/types.ts +0 -6
- package/src/core/ui/interface.ts +0 -12
- package/src/docs/cli.commands.docs.descriptor.ts +0 -210
- package/src/docs/cli.groups.docs.descriptor.ts +0 -333
- package/src/docs/cli.output.docs.descriptor.ts +0 -445
- package/src/docs/types.ts +0 -18
- package/src/errors.ts +0 -123
- package/src/index.ts +0 -76
- package/src/logging/cli-startup.logger.descriptor.ts +0 -16
- package/src/logging.ts +0 -35
- package/src/patterns/config-namespace.ts +0 -251
- package/src/patterns/crud.ts +0 -217
- package/src/patterns/index.ts +0 -24
- package/src/patterns/log-viewer.ts +0 -118
- package/src/patterns/pattern-types.ts +0 -22
- package/src/patterns/process-manager.ts +0 -180
- package/src/patterns/resolver.contracts.ts +0 -15
- package/src/patterns/resolver.ts +0 -86
- package/src/patterns/schemas.ts +0 -146
- package/src/patterns/tool-wrapper.ts +0 -165
- package/src/providers.ts +0 -282
- package/src/schemas/descriptors.d.ts +0 -119
- package/src/schemas/descriptors.ts +0 -136
- package/src/schemas/surface.ts +0 -52
- package/src/schemas/types.d.ts +0 -195
- package/src/schemas/types.ts +0 -225
- package/src/support/ui-toolkit.ts +0 -224
- package/src/surface/CLISurface.ts +0 -193
- package/src/surface/attach-tui-action.ts +0 -76
- package/src/surface/build-context.ts +0 -49
- package/src/surface/command-group-policy.ts +0 -52
- package/src/surface/discovery-cache.ts +0 -143
- package/src/surface/register-commands.ts +0 -266
- package/src/surface/register-groups.ts +0 -84
- package/src/surface.ts +0 -9
- package/src/types.ts +0 -3
- package/src/ui/schemas/types.ts +0 -1
- package/src/ui/toolkit/VibesUIToolkit.ts +0 -1
- package/src/ui.context.descriptor.ts +0 -13
- package/src/utils/open.ts +0 -36
- package/src/version.ts +0 -10
- /package/dist/{api → boot}/schemas/types.js +0 -0
- /package/dist/{logging → support/logging}/cli-startup.logger.descriptor.d.ts +0 -0
- /package/dist/{logging → support/logging}/cli-startup.logger.descriptor.js +0 -0
- /package/dist/{core → support/ui}/schemas/types.js +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 VIBES DEV LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
|
6
|
+
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
|
7
|
+
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
|
|
9
|
+
following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
12
|
+
portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
15
|
+
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
|
16
|
+
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
17
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
18
|
+
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,41 +1,282 @@
|
|
|
1
1
|
# @vibesdotdev/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Descriptor-driven CLI framework for composing Vibes command groups and commands.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This package is part of the public Vibes framework package set. The source repository is private while the public repository split is being prepared, so package documentation is published on the Vibes docs site.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Install
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
```sh
|
|
10
|
+
bun add @vibesdotdev/cli
|
|
11
|
+
# or
|
|
12
|
+
npm install @vibesdotdev/cli
|
|
13
|
+
```
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
- The published npm wrapper → `packages/cli-bin`.
|
|
13
|
-
- Any specific command's behavior — domain logic lives in the feature package that registered it.
|
|
15
|
+
## Documentation
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
- Package guide: https://docs.vibes.dev/cli
|
|
18
|
+
- Vibes docs: https://docs.vibes.dev
|
|
19
|
+
- Generated CLI reference: [`docs-generated/README.md`](./docs-generated/README.md)
|
|
16
20
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
## Reference docs (generated)
|
|
22
|
+
|
|
23
|
+
The `docs-generated/` tree is produced from the live `cli/group` and `cli/command` descriptor registry — never edit it by hand. The renderer (`generateCliDocs`, `readGeneratedDocs`, `defaultOutDir`) lives here at `src/commands/docs/generate.ts` and takes a booted runtime. The runtime-bootstrap that loads the full aggregator plugin set and the standalone `[--out <dir>]` entrypoint belong to the cli-bin app repository (which depends on `@vibesdotdev/plugins`), so this package keeps no dependency edge to the aggregator. Two invariants keep the tree honest:
|
|
24
|
+
|
|
25
|
+
- **Idempotency** — running the generator twice on a clean tree produces a byte-identical result. The cli-bin app's docs-generation suite re-generates into a temp dir and asserts no diff against this checked-in tree.
|
|
26
|
+
- **Examples are executable** — any `examples[]` entry that sets `expectExit` and/or `expectStdoutContains` opts into the cli-bin app's docs-example suite, which runs the documented command via the real `vibes` binary and asserts the contract.
|
|
27
|
+
|
|
28
|
+
Workflow:
|
|
20
29
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
```sh
|
|
31
|
+
# From the cli-bin app repository (the app tier boots the full plugin set)
|
|
32
|
+
bun run docs:generate # regenerate cli/docs-generated/
|
|
33
|
+
git diff --exit-code -- cli/docs-generated/ # CI invariant — exit 0 on a clean run
|
|
34
|
+
bun test src/__tests__/docs-generation.test.ts # idempotency + structural checks
|
|
35
|
+
bun test src/__tests__/docs-examples.test.ts # executes opted-in examples
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
To opt a command into the example-execution test, add fields on the descriptor's `examples[]`:
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
examples: [
|
|
42
|
+
{
|
|
43
|
+
command: 'vibes foo bar',
|
|
44
|
+
description: 'What this example shows the user',
|
|
45
|
+
expectExit: 0,
|
|
46
|
+
expectStdoutContains: 'expected substring',
|
|
47
|
+
// Optional. Gate behind VIBES_DOCS_TEST_SLOW=1 if the example boots a
|
|
48
|
+
// server, hits the network, etc.
|
|
49
|
+
slow: true
|
|
50
|
+
}
|
|
51
|
+
]
|
|
25
52
|
```
|
|
26
53
|
|
|
27
|
-
|
|
54
|
+
The generator owns reference material (synopsis, options, examples). Hand-authored prose (HOW-TO, concepts) lives elsewhere and is not touched by `docs:generate`.
|
|
55
|
+
|
|
56
|
+
## Design inventory
|
|
57
|
+
|
|
58
|
+
Import `readCliDesignInventory` and `generateCliDesignInventory` from
|
|
59
|
+
`@vibesdotdev/cli/design-inventory`. Pass a runtime with filesystem and paths
|
|
60
|
+
owners plus an absolute `{ root }`. Reading
|
|
61
|
+
returns live toolkit methods, formats and observed showcase coverage. The canonical showcase lives at `src/support/ui/showcase.ts`; coverage awaits real toolkit calls and reports omissions. Generation owns `src/support/cli-inventory.generated.ts`
|
|
62
|
+
and returns owner-relative `written` and `stale` paths; `check: true` reports
|
|
63
|
+
drift without writing. This narrow entrypoint requires no CLI bootstrap.
|
|
64
|
+
|
|
65
|
+
## Host composition
|
|
66
|
+
|
|
67
|
+
`createVibesCliApp` uses the executable host declarations for package selection,
|
|
68
|
+
root fallback groups, host output and captured environment. Hosts provide
|
|
69
|
+
`rootFallbackGroups` and may add `headlessPluginSelectionPolicy` for their
|
|
70
|
+
command graph. Every headless workspace composition sets
|
|
71
|
+
`omitSurfaces: ['tui']`; the kernel reads each selected export's owning
|
|
72
|
+
package.json `vibes.exportSurfaces`, reports matching exports as
|
|
73
|
+
`not-composed` with reason `surface-omitted`, and does not import them. A host
|
|
74
|
+
selection policy applies in addition to this declared surface selection.
|
|
75
|
+
The TUI launcher and command palette remain runtime contributions from the
|
|
76
|
+
selected plugin graph. CLI's `shouldLoadTuiPluginGraph` uses argv and captured
|
|
77
|
+
terminal facts to decide whether to load the TUI-capable graph. Hosts admit
|
|
78
|
+
`shell-integration` through `rootFallbackGroups` when composing CLI completion.
|
|
79
|
+
The descriptor keeps its group, and strict orphan-group validation remains
|
|
80
|
+
enabled.
|
|
81
|
+
|
|
82
|
+
`cliPlugin` composes completion's consumer plugin and the output-format
|
|
83
|
+
capability. The `./completion/kinds` subpath exposes metadata; `./completion/plugin`
|
|
84
|
+
exposes the lazy consumer composition. Root exports remain the primary CLI
|
|
85
|
+
contract. Global `--format <id>` resolves the selected runtime formatter before
|
|
86
|
+
command work. Returned-data commands render once through the selected formatter and use
|
|
87
|
+
the inherited table format by default. `--json` uses the selected JSON
|
|
88
|
+
formatter, including host replacements. Runtime-UI output uses the selected
|
|
89
|
+
formatter. An
|
|
90
|
+
implementation that declares `outputBoundary: 'direct'` owns its bytes and
|
|
91
|
+
refuses global non-JSON formats as
|
|
92
|
+
`INVALID_INPUT / cli-output-format-boundary-unsupported` before execution.
|
|
93
|
+
Malformed ids refuse `INVALID_INPUT / cli-output-format-invalid`; missing
|
|
94
|
+
formatters refuse `NOT_FOUND / cli-output-format-unavailable`.
|
|
95
|
+
`--json` wins over `--format`, and a command's declared `--format` option remains
|
|
96
|
+
command-owned.
|
|
97
|
+
|
|
98
|
+
Selected plugin failures report by default so unrelated and repair commands
|
|
99
|
+
remain available. Kernel currently uses one workspace `failurePolicy` for both
|
|
100
|
+
selected-plugin and descriptor-discovery failures; hosts can select `abort` for
|
|
101
|
+
a complete graph, and the mandatory host floor always aborts. A separate default
|
|
102
|
+
requires a kernel contract change; CLI exposes no discovery-only policy. `@vibesdotdev/workspace`
|
|
103
|
+
is a devDependency only: no production CLI module imports it; codegen tests
|
|
104
|
+
use its canonical schema and plugin. The `cli` plugin composes no Workspace plugin. `vibes runtime codegen` resolves the `workspace/static-loader` kind
|
|
105
|
+
through the runtime at call time. A host that wants generation composes
|
|
106
|
+
`@vibesdotdev/workspace/static-loader/plugin`; a host that did not refuses
|
|
107
|
+
`UNAVAILABLE / static-loader-generator-unavailable` before writing. CLI carries no
|
|
108
|
+
production dependency edge back to Workspace, so the package graph stays acyclic.
|
|
109
|
+
|
|
110
|
+
`--hmr` and `--no-hmr` use the canonical `VIBES_HMR` handoff.
|
|
111
|
+
|
|
112
|
+
## Runtime ownership
|
|
113
|
+
|
|
114
|
+
Keep-alive decisions and JSON-output accounting belong to the executing
|
|
115
|
+
runtime's `cli-invocation` client (`runtime/client`), and every reader names the
|
|
116
|
+
runtime it reads. Each invocation and serve transition starts fresh; another
|
|
117
|
+
runtime's reset or disposal leaves it intact. Command discovery reads the live
|
|
118
|
+
descriptor graph on each query; there is no cache or invalidation adapter.
|
|
119
|
+
|
|
120
|
+
Every `./output` writer names the runtime it writes through: `writeStdout`,
|
|
121
|
+
`writeStdoutLine` and `writeJson` use that runtime for stdio, output-plane flush
|
|
122
|
+
and the invocation ledger, and write/flush failure never records successful JSON
|
|
123
|
+
delivery. There is no runtime-free overload and no CLI native stdout writer or
|
|
124
|
+
client cache; pre-bootstrap native text output comes from the public
|
|
125
|
+
`@vibesdotdev/host-node/stdio` owner (`createNodeRuntimeStdio`).
|
|
126
|
+
|
|
127
|
+
`runtime export PATH` preserves absolute paths. Relative paths use the bound
|
|
128
|
+
workspace root first, then `requireRuntimeCwd(runtime)`; without either they
|
|
129
|
+
refuse `UNAVAILABLE / cwd-unavailable`. Export never borrows process cwd.
|
|
130
|
+
Composed-runtime tests record output and filesystem writes with isolated
|
|
131
|
+
destinations.
|
|
132
|
+
|
|
133
|
+
`requestCLIExit` synchronously stops the action. Catch sites identify its
|
|
134
|
+
signal with `isCLIExitSignal`; `CLIExitSignal` is a type-only contract, not a
|
|
135
|
+
constructable public adapter. Nonzero exits carry a kernel settled outcome,
|
|
136
|
+
while successful exits stay silent, including under `--json`.
|
|
137
|
+
|
|
138
|
+
The CLI hands explicit workspace selection to `host-bun`; otherwise the host
|
|
139
|
+
selects from cwd. Profile environment ids are admitted through Config before
|
|
140
|
+
profile mutation or activation output. This binds `runtime/workspace-path`.
|
|
141
|
+
Kernel composition separately merges root and nested workspace settings toward cwd; a bound
|
|
142
|
+
`workspace.role: 'nested'` also inherits ancestor composition. More specific
|
|
143
|
+
settings win, objects merge deeply, and arrays/scalars replace. The host floor
|
|
144
|
+
remains available. Nested workspace string plugin selections append without
|
|
145
|
+
duplicates; nested embedded app settings and function-loader selections stay
|
|
146
|
+
out of workspace composition. Selected modules are still imported and validated:
|
|
147
|
+
throwing or invalid configs refuse `INVALID_INPUT / config-invalid` and name
|
|
148
|
+
the selected file, including under the plugin repair policy. Deleted
|
|
149
|
+
`postBootstrap` remains refused and retired config-handoff variables have no
|
|
150
|
+
authority. Both bootstrap suites prove this through `createVibesCliApp` with
|
|
151
|
+
disposable fixtures. CLI adds no config resolver.
|
|
152
|
+
|
|
153
|
+
Kernel composition binds `config['runtime.host'].environmentTier` from workspace
|
|
154
|
+
settings over the executable's `hostConfig` floor. Without either declaration,
|
|
155
|
+
credential reads refuse `tier-undeclared`; build flavor supplies no tier.
|
|
156
|
+
A host at its declared user home can boot unbound; workspace reads alone refuse
|
|
157
|
+
`NOT_FOUND / workspace-unbound`. Caller environment factories declare fresh hosts
|
|
158
|
+
for MCP, worker, relay and transport re-entry. The CLI preserves their captured
|
|
159
|
+
argv and environment, validates serving scope before activation, and keeps deferred
|
|
160
|
+
relay activation, transport isolation and disposal under runtime ownership.
|
|
161
|
+
|
|
162
|
+
## Flags and prompts
|
|
163
|
+
|
|
164
|
+
Explicit `--non-interactive` / `--no-interactive` and JSON output
|
|
165
|
+
(`--json`, `--format json`, `--format=json`) always disable interactivity.
|
|
166
|
+
Captured `forceInteractive` and `forceTty` override only terminal autodetection
|
|
167
|
+
in the interactive action gate. Runtime observations and normalized Commander
|
|
168
|
+
options decide launch; JSON and explicit noninteractive options always select
|
|
169
|
+
the supported fallback.
|
|
170
|
+
Supplied runtime facts are authoritative: missing observations mean no terminal.
|
|
171
|
+
`resolveCliFlags(argv, terminalFacts)` uses only the explicitly supplied
|
|
172
|
+
terminal facts; callers pass `null` when the runtime has no observation.
|
|
173
|
+
|
|
174
|
+
Prompt, password, confirm, select and multiselect validate their requests once
|
|
175
|
+
through `src/schemas/prompts.ts` before terminal observation, reads or output.
|
|
176
|
+
Malformed or unreadable requests refuse `INVALID_INPUT / cli-prompt-invalid`
|
|
177
|
+
with a fixed message and no caller values or native exception details.
|
|
178
|
+
Selection values remain opaque caller-owned references. Defaults, cancellation,
|
|
179
|
+
empty choices, password masks/confirmation and required multiselect retain their
|
|
180
|
+
existing behavior.
|
|
181
|
+
|
|
182
|
+
Interactive terminal input uses the public `@vibesdotdev/host-node/terminal-input`
|
|
183
|
+
owner. Production `createCliHostPlugin` composes its runtime-owned semantic
|
|
184
|
+
client and a default `cli/terminal-input` context at priority -1. Explicit
|
|
185
|
+
context overrides retain priority. `cli/ui` and profile confirmation resolve
|
|
186
|
+
that context through `hasContext`/`context`; malformed or unreadable values
|
|
187
|
+
refuse `INVALID_INPUT / cli-terminal-input-invalid`, and owner refusals propagate.
|
|
188
|
+
The CLI context schema validates the transport's callable members and preserves
|
|
189
|
+
its identity and method receivers.
|
|
190
|
+
|
|
191
|
+
`readTerminalLine` and `readHiddenTerminalLine` use the explicitly resolved
|
|
192
|
+
transport. With no registered transport, terminal reads refuse
|
|
193
|
+
`UNAVAILABLE / cli-terminal-input-unavailable`; CLI does not create a
|
|
194
|
+
runtime-free host transport. The host owns line/hidden input, masks, cancellation, EOF,
|
|
195
|
+
paste handling, output completion, stream listeners and raw/flow restoration.
|
|
196
|
+
CLI contains no native input implementation. Profile cancellation and input
|
|
197
|
+
refusals preserve the target; piped confirmation still uses only the first
|
|
198
|
+
line of a runtime stdin read bounded to 4096 bytes.
|
|
199
|
+
|
|
200
|
+
## Implementation resolution and verification
|
|
201
|
+
|
|
202
|
+
The kernel validates command implementations against the CLI-owned schema:
|
|
203
|
+
callable `execute` and optional `transportPlugins`. Resolution preserves
|
|
204
|
+
the receiver and transport plugins, reports the default stub as absent, and
|
|
205
|
+
propagates loader failures. Invalid implementations refuse
|
|
206
|
+
`INVALID_INPUT / implementation-invalid` with value-free `{ kind, id }` facts.
|
|
207
|
+
|
|
208
|
+
`bun run check` checks all source and test TypeScript/TSX without emission.
|
|
209
|
+
`bun run build` emits production
|
|
210
|
+
JavaScript, declarations and declaration maps through `tsconfig.build.json`,
|
|
211
|
+
excluding tests, specs, stubs and Svelte sources. `bun run test` provides
|
|
212
|
+
in-process source/runtime and manifest proof. Bootstrap tests call
|
|
213
|
+
`createVibesCliApp` and `CLISurface.run` with declared caller environments;
|
|
214
|
+
failure-envelope tests call `reportBootstrapFailure` with recording host output.
|
|
215
|
+
They preserve scope admission, disposal, output, flush and exit assertions
|
|
216
|
+
without child CLI harnesses. Native execution and completion syntax tests
|
|
217
|
+
exercise the actual host/shell boundary. These checks do not verify
|
|
218
|
+
distributed artifacts or establish overall package acceptance.
|
|
219
|
+
|
|
220
|
+
Run canonical lint with
|
|
221
|
+
`node ../node_modules/@vibesdotdev/internal-oxlint-toolchain/ratchet.mjs`
|
|
222
|
+
from this package; `package.json` has no `lint` script. Run the runtime
|
|
223
|
+
`workspace-rules` tool with `action: "check"` and this package path.
|
|
224
|
+
|
|
225
|
+
The check uses the `bun` export condition, so it also follows public sibling
|
|
226
|
+
exports into their TypeScript sources. The real process-pattern fixture composes
|
|
227
|
+
`@vibesdotdev/pm/plugin`, which loads PM's builtin resource-provider graph.
|
|
228
|
+
PM provider errors are sibling-owner failures; the CLI keeps all tests in its
|
|
229
|
+
typecheck and uses no direct PM internal imports. See
|
|
230
|
+
[the kernel boundaries](./SPEC.md#kernel-boundaries).
|
|
231
|
+
|
|
232
|
+
The explicit `@vibesdotdev/cli/plugin` entrypoint contributes five lazy
|
|
233
|
+
`cli/pattern` implementations. `./kinds` registers metadata only.
|
|
234
|
+
`PatternResolver` and `createPatternResolver(runtime)` query that runtime;
|
|
235
|
+
`registerPattern` replaces through kernel registration before or after activation,
|
|
236
|
+
and `getPatternTypes` reads live descriptors without loading implementations.
|
|
237
|
+
Custom registrations are runtime-local. Missing patterns refuse
|
|
238
|
+
`NOT_FOUND / not-registered`; malformed implementations refuse
|
|
239
|
+
`INVALID_INPUT / implementation-invalid`, with only `{ kind, id }` facts.
|
|
240
|
+
Loader failures propagate and register methods retain their receiver.
|
|
241
|
+
|
|
242
|
+
The primary root exports CLI contracts, registration and public helpers.
|
|
243
|
+
Use `./bootstrap` for `createVibesCliApp`, `./surface` for `CLISurface`,
|
|
244
|
+
and `./kinds` for the default command implementation. The surface entrypoint
|
|
245
|
+
has its own barrel; `@vibesdotdev/surface-cli` keeps using `./bootstrap`.
|
|
28
246
|
|
|
29
|
-
|
|
30
|
-
|
|
247
|
+
Generated process commands resolve the handed runtime's real `pm/client`.
|
|
248
|
+
Declared start preserves PM's daemon graph, stop retains timeout/force, and
|
|
249
|
+
status retains state/pid. Tail selects structured levels and the exact top-level
|
|
250
|
+
fields named by descriptor filter flags, such as `--namespace svc`.
|
|
31
251
|
|
|
32
|
-
|
|
252
|
+
Environment overrides and continuous follow require PM client extensions
|
|
253
|
+
detailed in SPEC.md. Until those exist, `--env` and `--follow` report explicit
|
|
254
|
+
`UNAVAILABLE` refusals instead of silently losing overrides or presenting a
|
|
255
|
+
snapshot as a stream. PM's own `vibes pm logs <id> --follow` continues to follow.
|
|
256
|
+
Without PM, generated commands print their documented unavailable messages
|
|
257
|
+
and return. This convergence is incomplete pending the owner extensions.
|
|
33
258
|
|
|
34
|
-
|
|
259
|
+
Generate an executable static loader with `vibes runtime codegen [destination]`.
|
|
260
|
+
The default is `dist/runtime-loader.generated.ts`; relative paths use the
|
|
261
|
+
workspace root, then the runtime's declared cwd. The CLI resolves the
|
|
262
|
+
host-composed `workspace/static-loader` generator through the runtime and writes
|
|
263
|
+
through the runtime filesystem.
|
|
35
264
|
|
|
36
|
-
|
|
37
|
-
|
|
265
|
+
Hosts supply optional generation input and the required canonical owner result
|
|
266
|
+
schema through `cli/runtime-codegen-input`, using the context descriptor exported
|
|
267
|
+
from `@vibesdotdev/cli/commands/runtime/codegen`. Workspace hosts provide
|
|
268
|
+
`StaticLoaderResultSchema` from `@vibesdotdev/workspace/static-loader`. Direct
|
|
269
|
+
`generate` calls can supply `input` explicitly; they still require the host
|
|
270
|
+
context's result schema. Compose importable plugins for unfiltered generation, or
|
|
271
|
+
declare kinds, descriptors and constrained lazy loaders to use `--scope` and
|
|
272
|
+
`--hardware`. Missing declarations refuse explicitly; runtime closures are never
|
|
273
|
+
serialized. The complete owner result is validated before writing. CLI uses its source
|
|
274
|
+
for the generated file and omits it from the returned value; remaining owner
|
|
275
|
+
fields stay flat beside destination, filters, counts and structured diagnostics. Invalid
|
|
276
|
+
results refuse `INTERNAL / runtime-codegen-result-invalid`; a missing schema
|
|
277
|
+
refuses `UNAVAILABLE / runtime-codegen-result-schema-unavailable`. The `options` and `generate` APIs remain available. Command composition is descriptor-driven through `./codegen/declarations` and `./codegen/command`, registered by `CLISurface`.
|
|
278
|
+
See [runtime codegen](./SPEC.md#runtime-codegen).
|
|
38
279
|
|
|
39
|
-
##
|
|
280
|
+
## License
|
|
40
281
|
|
|
41
|
-
|
|
282
|
+
MIT
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Action lifetime: own the lifetime of a long-running CLI action.
|
|
3
|
+
*
|
|
4
|
+
* Signal and transport callbacks request shutdown; the action itself awaits
|
|
5
|
+
* wait(). CLISurface therefore closes invocation observers only after cleanup
|
|
6
|
+
* has genuinely completed, with no hard process exit racing a live action.
|
|
7
|
+
*/
|
|
8
|
+
import { type RuntimeRef } from '@vibesdotdev/kernel';
|
|
9
|
+
import type { CLIActionLifetime } from '@vibesdotdev/cli-contracts/context';
|
|
10
|
+
/**
|
|
11
|
+
* Own the lifetime of a long-running CLI action (see the module note): the
|
|
12
|
+
* handed runtime's host signals are selected before the action starts, so
|
|
13
|
+
* an absent capability refuses before any cleanup or subscription exists.
|
|
14
|
+
*/
|
|
15
|
+
export declare function createCLIActionLifetime(runtime: RuntimeRef, cleanup: (reason: string) => void | Promise<void>): Promise<CLIActionLifetime>;
|
|
16
|
+
//# sourceMappingURL=action-lifetime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-lifetime.d.ts","sourceRoot":"","sources":["../../src/boot/action-lifetime.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAyB,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAwB5E;;;;GAIG;AACH,wBAAsB,uBAAuB,CAC5C,OAAO,EAAE,UAAU,EACnB,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAC/C,OAAO,CAAC,iBAAiB,CAAC,CA2C5B"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Action lifetime: own the lifetime of a long-running CLI action.
|
|
3
|
+
*
|
|
4
|
+
* Signal and transport callbacks request shutdown; the action itself awaits
|
|
5
|
+
* wait(). CLISurface therefore closes invocation observers only after cleanup
|
|
6
|
+
* has genuinely completed, with no hard process exit racing a live action.
|
|
7
|
+
*/
|
|
8
|
+
import { getRuntimeHostSignals } from '@vibesdotdev/kernel';
|
|
9
|
+
/** Run one owned step; its failure is returned as a value, exactly as thrown. */
|
|
10
|
+
function carry(step) {
|
|
11
|
+
try {
|
|
12
|
+
step();
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
catch (thrown) {
|
|
16
|
+
return { thrown };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
/** One failure stays itself; several travel together in their order. */
|
|
20
|
+
function joined(failures, message) {
|
|
21
|
+
if (failures.length === 0)
|
|
22
|
+
return null;
|
|
23
|
+
if (failures.length === 1)
|
|
24
|
+
return failures[0];
|
|
25
|
+
return { thrown: new AggregateError(failures.map((failure) => failure.thrown), message) };
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Own the lifetime of a long-running CLI action (see the module note): the
|
|
29
|
+
* handed runtime's host signals are selected before the action starts, so
|
|
30
|
+
* an absent capability refuses before any cleanup or subscription exists.
|
|
31
|
+
*/
|
|
32
|
+
export async function createCLIActionLifetime(runtime, cleanup) {
|
|
33
|
+
const signals = await getRuntimeHostSignals(runtime);
|
|
34
|
+
let requested = false;
|
|
35
|
+
const { promise: done, resolve: resolveDone, reject: rejectDone } = Promise.withResolvers();
|
|
36
|
+
// Observe a fired request at once; wait() retains the exact cleanup failure.
|
|
37
|
+
const outcome = done.then(() => null, (thrown) => ({ thrown }));
|
|
38
|
+
const subscriptions = new Map();
|
|
39
|
+
const request = (reason) => {
|
|
40
|
+
if (!requested) {
|
|
41
|
+
requested = true;
|
|
42
|
+
Promise.resolve().then(() => cleanup(reason)).then(resolveDone, rejectDone);
|
|
43
|
+
}
|
|
44
|
+
return done;
|
|
45
|
+
};
|
|
46
|
+
// Every owned subscription is detached; each failure is kept in order.
|
|
47
|
+
const detachAll = () => {
|
|
48
|
+
const owned = [...subscriptions.values()];
|
|
49
|
+
subscriptions.clear();
|
|
50
|
+
return joined(owned.map(carry).filter((failure) => failure !== null), 'CLI signal subscriptions failed to detach.');
|
|
51
|
+
};
|
|
52
|
+
return {
|
|
53
|
+
request,
|
|
54
|
+
bindProcessSignals() {
|
|
55
|
+
const bound = carry(() => {
|
|
56
|
+
for (const signal of ['SIGINT', 'SIGTERM']) {
|
|
57
|
+
if (!subscriptions.has(signal))
|
|
58
|
+
subscriptions.set(signal, signals.subscribe(signal, () => { void request(signal); }));
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
if (bound === null)
|
|
62
|
+
return;
|
|
63
|
+
const rollback = detachAll();
|
|
64
|
+
if (rollback !== null)
|
|
65
|
+
throw new AggregateError([bound.thrown, rollback.thrown], 'CLI signal binding and rollback failed.');
|
|
66
|
+
throw bound.thrown;
|
|
67
|
+
},
|
|
68
|
+
async wait() {
|
|
69
|
+
const failure = await outcome;
|
|
70
|
+
const detached = detachAll();
|
|
71
|
+
if (failure !== null && detached !== null) {
|
|
72
|
+
throw new AggregateError([failure.thrown, detached.thrown], 'CLI cleanup and signal detachment failed.');
|
|
73
|
+
}
|
|
74
|
+
const only = failure ?? detached;
|
|
75
|
+
if (only !== null)
|
|
76
|
+
throw only.thrown;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=action-lifetime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-lifetime.js","sourceRoot":"","sources":["../../src/boot/action-lifetime.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI Bootstrap
|
|
3
|
+
*
|
|
4
|
+
* Composition function for initializing the Vibes CLI application.
|
|
5
|
+
* Handles runtime initialization, plugin loading, and CLISurface setup.
|
|
6
|
+
*
|
|
7
|
+
* Public hosts import this factory from `@vibesdotdev/cli/bootstrap` or
|
|
8
|
+
* `@vibesdotdev/surface-cli`, which re-exports it. The executable belongs to
|
|
9
|
+
* cli-bin; this package supplies composition and the command surface.
|
|
10
|
+
*
|
|
11
|
+
* Usage:
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import { createVibesCliApp } from '@vibesdotdev/surface-cli';
|
|
14
|
+
*
|
|
15
|
+
* import type { VibesCliAppOptions } from '@vibesdotdev/cli/bootstrap';
|
|
16
|
+
*
|
|
17
|
+
* // The executable supplies its environment, host declaration, output and argv.
|
|
18
|
+
* export async function runHost({ environment, host, hostOutput, argv }: VibesCliAppOptions) {
|
|
19
|
+
* const app = await createVibesCliApp({ environment, host, hostOutput, argv });
|
|
20
|
+
* await app.cli.run([...argv]);
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
import { type BuildSurface, type RuntimePlugin, type RuntimePurpose } from "@vibesdotdev/kernel";
|
|
25
|
+
import { Command } from "commander";
|
|
26
|
+
import type { CLIServeEffect } from "../schemas/types.ts";
|
|
27
|
+
import type { VibesCliAppOptions, VibesCliApp, CliHostScopeInput, CliHostWorkspace, CliHostQualifiers, HmrInvocationKind, DeclaredHotReload, CliHostFacts } from "../schemas/bootstrap.ts";
|
|
28
|
+
export type { CliPluginLoader, CliPluginSelection, CliEnvironmentFactory, VibesCliAppOptions, VibesCliApp, CliServeDeclaration, CliHostScopeInput, CliHostWorkspace, CliHostQualifiers, CliHostConfig, CliExecutionComposition, HmrInvocationKind, DeclaredHotReload, CliHostFacts, } from "../schemas/bootstrap.ts";
|
|
29
|
+
/**
|
|
30
|
+
* The hidden global flag a canonical help lookup child carries, so it never
|
|
31
|
+
* delegates again. It travels in argv, never the environment.
|
|
32
|
+
*/
|
|
33
|
+
export declare const CANONICAL_COMMAND_HELP_LOOKUP_FLAG = "--canonical-help-lookup";
|
|
34
|
+
/** Shared declarations for the actual command tree and pre-activation routing. */
|
|
35
|
+
export declare function registerGlobalOptions(program: Command, options?: Omit<VibesCliAppOptions, 'hostOutput' | 'argv'>): Command;
|
|
36
|
+
/**
|
|
37
|
+
* Pre-parse `vibes tools run <tool> --purpose <p>` and return the purpose this
|
|
38
|
+
* host declares (rc02-rc03 C7). Like `--profile` and `--workspace-root`, it is
|
|
39
|
+
* read before any runtime exists: the declaration states it once, at boot, and
|
|
40
|
+
* nothing patches the scope afterwards. Only `tools run` declares a purpose
|
|
41
|
+
* this way; every other command declares `direct`. The command path comes from
|
|
42
|
+
* the global option declarations; the flag is read only before a `--`.
|
|
43
|
+
*
|
|
44
|
+
* An unknown purpose is `INVALID_INPUT` `scope-invalid`, the same refusal the
|
|
45
|
+
* command gives it; a blank or missing value declares none.
|
|
46
|
+
*/
|
|
47
|
+
export declare function readToolsRunPurposeFromArgv(argv: readonly string[]): RuntimePurpose | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the global `--finite` flag was passed, parsed against the global
|
|
50
|
+
* declarations only (an option after `--` is not the flag). Every command,
|
|
51
|
+
* serve included, declares `--finite ? finite : persistent` from this, once,
|
|
52
|
+
* before boot (rc02-rc03 §2.3); nothing patches it afterwards.
|
|
53
|
+
*/
|
|
54
|
+
export declare function isFiniteInvocation(argv: readonly string[]): boolean;
|
|
55
|
+
/** Whether this invocation is a canonical help lookup child ({@link CANONICAL_COMMAND_HELP_LOOKUP_FLAG}). */
|
|
56
|
+
export declare function isCanonicalHelpLookup(argv: readonly string[]): boolean;
|
|
57
|
+
/** Where the consumer CLI runs; also the venue a host-credentials manifest is judged against. */
|
|
58
|
+
export declare const CLI_HOSTING: Readonly<{
|
|
59
|
+
readonly mode: "local";
|
|
60
|
+
readonly owner: "consumer";
|
|
61
|
+
readonly venue: "user-device";
|
|
62
|
+
}>;
|
|
63
|
+
/** Where a serve host runs: the same machine, serving other processes over IPC (rc01 §2.4; N1). */
|
|
64
|
+
export declare const SERVE_HOSTING: Readonly<{
|
|
65
|
+
readonly mode: "local";
|
|
66
|
+
readonly owner: "consumer";
|
|
67
|
+
readonly venue: "ipc-worker";
|
|
68
|
+
}>;
|
|
69
|
+
export declare function declareCliHostScope(input: CliHostScopeInput): {
|
|
70
|
+
readonly surface: "cli" | "worker" | "mcp";
|
|
71
|
+
readonly hardware: "consumer" | "cloud";
|
|
72
|
+
readonly purpose: "agent" | "worker" | "mcp" | "direct" | "projection";
|
|
73
|
+
readonly lifecycle: "finite" | "persistent";
|
|
74
|
+
readonly hosting: Readonly<{
|
|
75
|
+
readonly mode: "local";
|
|
76
|
+
readonly owner: "consumer";
|
|
77
|
+
readonly venue: "user-device";
|
|
78
|
+
}> | Readonly<{
|
|
79
|
+
readonly mode: "local";
|
|
80
|
+
readonly owner: "consumer";
|
|
81
|
+
readonly venue: "ipc-worker";
|
|
82
|
+
}>;
|
|
83
|
+
readonly capabilities: {
|
|
84
|
+
requestPrincipals: boolean;
|
|
85
|
+
sharedHost: boolean;
|
|
86
|
+
hostCredentials?: undefined;
|
|
87
|
+
interactiveSession?: undefined;
|
|
88
|
+
} | {
|
|
89
|
+
hostCredentials: boolean;
|
|
90
|
+
requestPrincipals?: undefined;
|
|
91
|
+
sharedHost?: undefined;
|
|
92
|
+
interactiveSession?: undefined;
|
|
93
|
+
} | {
|
|
94
|
+
interactiveSession: boolean;
|
|
95
|
+
requestPrincipals?: undefined;
|
|
96
|
+
sharedHost?: undefined;
|
|
97
|
+
hostCredentials?: undefined;
|
|
98
|
+
};
|
|
99
|
+
readonly workspace: CliHostWorkspace;
|
|
100
|
+
readonly qualifiers: CliHostQualifiers;
|
|
101
|
+
};
|
|
102
|
+
export declare function isCanonicalCliHostPlugin(plugin: RuntimePlugin): boolean;
|
|
103
|
+
export declare function createCliHostPlugin(buildSurface: BuildSurface): RuntimePlugin;
|
|
104
|
+
/** The original executable floor, retained as data for an opt-in execution owner. */
|
|
105
|
+
export declare const CLI_EXECUTION_COMPOSITION_CONTEXT_ID = "cli/execution-composition";
|
|
106
|
+
/**
|
|
107
|
+
* Create the Vibes CLI application: one boot through the entry
|
|
108
|
+
* (`bootstrapVibesRuntime`, rc02-rc03 §2.1), a workspace composition bound as
|
|
109
|
+
* the host's default runtime, deferred until a command is selected. Workspace
|
|
110
|
+
* binding is host-owned; root/nested config layering and embedded app exclusion
|
|
111
|
+
* remain kernel-owned. The CLI forwards the real cwd and selected loader.
|
|
112
|
+
*/
|
|
113
|
+
export declare function createVibesCliApp(options: VibesCliAppOptions): Promise<VibesCliApp>;
|
|
114
|
+
/**
|
|
115
|
+
* What will the selected command actually do with `--hmr`? A serve command
|
|
116
|
+
* that declares `hotReload` arms it; any other serve command is a long-running
|
|
117
|
+
* service that does not; everything else exits before a source can change.
|
|
118
|
+
* The command's descriptor (`effects.serve`) is the one source; no argv table.
|
|
119
|
+
*/
|
|
120
|
+
export declare function classifyHmrInvocation(serve: CLIServeEffect | undefined): HmrInvocationKind;
|
|
121
|
+
/**
|
|
122
|
+
* The one stderr line `--hmr` owes this invocation, or null when the selected
|
|
123
|
+
* command arms hot reload and will report for itself.
|
|
124
|
+
*/
|
|
125
|
+
export declare function describeHmrInvocation(serve: CLIServeEffect | undefined, commandPath: readonly string[]): string | null;
|
|
126
|
+
/**
|
|
127
|
+
* Pre-parse `--hmr` / `--no-hmr` and return what it asks for: `"1"` (on), `"0"`
|
|
128
|
+
* (an explicit veto) or `undefined` (absent).
|
|
129
|
+
*
|
|
130
|
+
* A boolean sibling of {@link readProfileFromArgv}, and for the same reason:
|
|
131
|
+
* the flag has to be readable BEFORE Commander parses anything, because
|
|
132
|
+
* `startHostHotReload` runs inside the service command that Commander is on its
|
|
133
|
+
* way to dispatching.
|
|
134
|
+
*
|
|
135
|
+
* `--no-hmr` explicitly turns it OFF (`"0"`), so a child of a `--hmr` parent
|
|
136
|
+
* can opt out without unsetting an inherited variable.
|
|
137
|
+
*
|
|
138
|
+
* ONLY the two spellings Commander declares (see {@link registerHmrOptions}).
|
|
139
|
+
* `--hmr=true` / `--hmr=false` were once honoured here, but Commander rejects
|
|
140
|
+
* `--flag=value` on a boolean option, so those two spellings used to set the
|
|
141
|
+
* flag and then die with `unknown option` before any command ran.
|
|
142
|
+
*
|
|
143
|
+
* LAST FLAG WINS, because that is what Commander does. An earlier revision
|
|
144
|
+
* returned on the FIRST recognized token, so `vibes --hmr --no-hmr runtime
|
|
145
|
+
* daemon serve` came out on while `program.parse` of the same argv yielded
|
|
146
|
+
* `{hmr: false}` — and since nothing reads Commander's `hmr` option, the
|
|
147
|
+
* pre-parser is the half that decides.
|
|
148
|
+
*/
|
|
149
|
+
export declare function readHmrFromArgv(argv: ReadonlyArray<string>): "1" | "0" | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* Every argv spelling {@link readHmrFromArgv} honours. Exported so the test
|
|
152
|
+
* can assert that the shipping Commander declaration accepts each of them —
|
|
153
|
+
* the pre-parser and the parser drifting apart is invisible to a unit test that
|
|
154
|
+
* only calls the pure function.
|
|
155
|
+
*/
|
|
156
|
+
export declare const HMR_ARGV_SPELLINGS: readonly ["--hmr", "--no-hmr"];
|
|
157
|
+
/**
|
|
158
|
+
* Declare the `--hmr` / `--no-hmr` global pair on a program.
|
|
159
|
+
*
|
|
160
|
+
* ONE declaration site, called by `createVibesCliApp` and exercised directly by
|
|
161
|
+
* `hmr-global-flag.test.ts`, so "the pre-parser accepts it" and "the shipping
|
|
162
|
+
* command accepts it" cannot diverge without turning a test red.
|
|
163
|
+
*/
|
|
164
|
+
export declare function registerHmrOptions(program: Command): Command;
|
|
165
|
+
/** The channel key `--hmr` / `--no-hmr` publish to this host's readers and its children. */
|
|
166
|
+
export declare const HMR_CHANNEL_KEY = "VIBES_HMR";
|
|
167
|
+
/** Declare hot reload from the canonical channel captured by this host. */
|
|
168
|
+
export declare function declaredHotReload(captured: Readonly<Record<string, string | undefined>>): DeclaredHotReload;
|
|
169
|
+
/**
|
|
170
|
+
* Pre-parse `--profile <name>` / `--profile=<name>` and return the name.
|
|
171
|
+
*
|
|
172
|
+
* Commander parses the same flag later when `program.parseAsync` runs, but
|
|
173
|
+
* by then `loadConfig` and `registerCorePlugins` have already chosen
|
|
174
|
+
* profile-scoped paths, so the host needs it before the environment exists.
|
|
175
|
+
*
|
|
176
|
+
* Strict: ignores anything that looks like another flag (`--profile --foo`).
|
|
177
|
+
*/
|
|
178
|
+
export declare function readProfileFromArgv(argv: ReadonlyArray<string>): string | undefined;
|
|
179
|
+
export declare function declareCliHost(host: VibesCliAppOptions["host"], facts: CliHostFacts): NonNullable<VibesCliAppOptions["host"]>;
|
|
180
|
+
/**
|
|
181
|
+
* Pre-parse `--workspace-root <dir>` / `--workspace-root=<dir>` and return the
|
|
182
|
+
* directory as written. Commander parses the same global flag later, but the
|
|
183
|
+
* environment captures its workspace binding when it is constructed, before
|
|
184
|
+
* any command exists. The kernel's workspace-root policy resolves a relative
|
|
185
|
+
* directory against the environment's captured cwd and validates it: an
|
|
186
|
+
* existing directory that is neither `/` nor home, else `INVALID_INPUT`
|
|
187
|
+
* `workspace-invalid`.
|
|
188
|
+
*/
|
|
189
|
+
export declare function readWorkspaceRootFromArgv(argv: ReadonlyArray<string>): string | undefined;
|
|
190
|
+
//# sourceMappingURL=bootstrap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../src/boot/bootstrap.ts"],"names":[],"mappings":"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"}
|