@vibesdotdev/cli 0.0.2 → 1.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -0
- package/README.md +261 -1
- package/dist/boot/action-lifetime.d.ts +16 -0
- package/dist/boot/action-lifetime.d.ts.map +1 -0
- package/dist/boot/action-lifetime.js +80 -0
- package/dist/boot/action-lifetime.js.map +1 -0
- package/dist/boot/bootstrap.d.ts +190 -0
- package/dist/boot/bootstrap.d.ts.map +1 -0
- package/dist/boot/bootstrap.js +737 -0
- package/dist/boot/bootstrap.js.map +1 -0
- package/dist/boot/cli-flags.d.ts +45 -0
- package/dist/boot/cli-flags.d.ts.map +1 -0
- package/dist/boot/cli-flags.js +113 -0
- package/dist/boot/cli-flags.js.map +1 -0
- package/dist/boot/config.d.ts +25 -0
- package/dist/boot/config.d.ts.map +1 -0
- package/dist/{config.js → boot/config.js} +1 -1
- package/dist/boot/config.js.map +1 -0
- package/dist/boot/external-url.d.ts +13 -0
- package/dist/boot/external-url.d.ts.map +1 -0
- package/dist/boot/external-url.js +66 -0
- package/dist/boot/external-url.js.map +1 -0
- package/dist/boot/host-argv.d.ts +7 -0
- package/dist/boot/host-argv.d.ts.map +1 -0
- package/dist/boot/host-argv.js +8 -0
- package/dist/boot/host-argv.js.map +1 -0
- package/dist/boot/host-bootstrap.d.ts +37 -0
- package/dist/boot/host-bootstrap.d.ts.map +1 -0
- package/dist/boot/host-bootstrap.js +60 -0
- package/dist/boot/host-bootstrap.js.map +1 -0
- package/dist/boot/providers.d.ts +35 -0
- package/dist/boot/providers.d.ts.map +1 -0
- package/dist/boot/providers.js +155 -0
- package/dist/boot/providers.js.map +1 -0
- package/dist/boot/schemas/external-url.d.ts +11 -0
- package/dist/boot/schemas/external-url.d.ts.map +1 -0
- package/dist/boot/schemas/external-url.js +3 -0
- package/dist/boot/schemas/external-url.js.map +1 -0
- package/dist/boot/schemas/host-bootstrap.d.ts +7 -0
- package/dist/boot/schemas/host-bootstrap.d.ts.map +1 -0
- package/dist/boot/schemas/host-bootstrap.js +3 -0
- package/dist/boot/schemas/host-bootstrap.js.map +1 -0
- package/dist/boot/schemas/providers.d.ts +23 -0
- package/dist/boot/schemas/providers.d.ts.map +1 -0
- package/dist/boot/schemas/providers.js +3 -0
- package/dist/boot/schemas/providers.js.map +1 -0
- package/dist/boot/schemas/types.d.ts +4 -0
- package/dist/boot/schemas/types.d.ts.map +1 -0
- package/dist/{api → boot}/schemas/types.js.map +1 -1
- package/dist/boot/tui-plugin-policy.d.ts +8 -0
- package/dist/boot/tui-plugin-policy.d.ts.map +1 -0
- package/dist/boot/tui-plugin-policy.js +26 -0
- package/dist/boot/tui-plugin-policy.js.map +1 -0
- package/dist/boot/version.d.ts +13 -0
- package/dist/boot/version.d.ts.map +1 -0
- package/dist/boot/version.js +14 -0
- package/dist/boot/version.js.map +1 -0
- package/dist/bun/index.d.ts +2 -0
- package/dist/bun/index.d.ts.map +1 -0
- package/dist/bun/index.js +2 -0
- package/dist/bun/index.js.map +1 -0
- package/dist/bun/interactive-host.d.ts +9 -0
- package/dist/bun/interactive-host.d.ts.map +1 -0
- package/dist/bun/interactive-host.js +18 -0
- package/dist/bun/interactive-host.js.map +1 -0
- package/dist/commands/cli.kinds.d.ts +1239 -0
- package/dist/commands/cli.kinds.d.ts.map +1 -0
- package/dist/commands/cli.kinds.js +138 -0
- package/dist/commands/cli.kinds.js.map +1 -0
- package/dist/commands/cli.plugin.d.ts +22 -0
- package/dist/commands/cli.plugin.d.ts.map +1 -0
- package/dist/commands/cli.plugin.js +138 -0
- package/dist/commands/cli.plugin.js.map +1 -0
- package/dist/commands/completion/bash.d.ts +1 -1
- package/dist/commands/completion/bash.d.ts.map +1 -1
- package/dist/commands/completion/bash.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/bash.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/bash.impl.consumer.js +6 -0
- package/dist/commands/completion/bash.impl.consumer.js.map +1 -0
- package/dist/commands/completion/bash.js +4 -2
- package/dist/commands/completion/bash.js.map +1 -1
- package/dist/commands/completion/completion.consumer.plugin.d.ts +3 -0
- package/dist/commands/completion/completion.consumer.plugin.d.ts.map +1 -0
- package/dist/commands/completion/completion.consumer.plugin.js +19 -0
- package/dist/commands/completion/completion.consumer.plugin.js.map +1 -0
- package/dist/commands/completion/completion.descriptor.d.ts +1 -2
- package/dist/commands/completion/completion.descriptor.d.ts.map +1 -1
- package/dist/commands/completion/completion.descriptor.js +11 -4
- package/dist/commands/completion/completion.descriptor.js.map +1 -1
- package/dist/commands/completion/completion.descriptors.d.ts +3 -0
- package/dist/commands/completion/completion.descriptors.d.ts.map +1 -0
- package/dist/commands/completion/completion.descriptors.js +56 -0
- package/dist/commands/completion/completion.descriptors.js.map +1 -0
- package/dist/commands/completion/completion.impl.d.ts +5 -4
- package/dist/commands/completion/completion.impl.d.ts.map +1 -1
- package/dist/commands/completion/completion.impl.js +104 -145
- package/dist/commands/completion/completion.impl.js.map +1 -1
- package/dist/commands/completion/completion.install.impl.consumer.d.ts +4 -0
- package/dist/commands/completion/completion.install.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/completion.install.impl.consumer.js +102 -0
- package/dist/commands/completion/completion.install.impl.consumer.js.map +1 -0
- package/dist/commands/completion/completion.kinds.d.ts +43 -0
- package/dist/commands/completion/completion.kinds.d.ts.map +1 -0
- package/dist/commands/completion/completion.kinds.js +17 -0
- package/dist/commands/completion/completion.kinds.js.map +1 -0
- package/dist/commands/completion/fig.d.ts +1 -1
- package/dist/commands/completion/fig.d.ts.map +1 -1
- package/dist/commands/completion/fig.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/fig.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/fig.impl.consumer.js +6 -0
- package/dist/commands/completion/fig.impl.consumer.js.map +1 -0
- package/dist/commands/completion/fish.d.ts +1 -1
- package/dist/commands/completion/fish.d.ts.map +1 -1
- package/dist/commands/completion/fish.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/fish.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/fish.impl.consumer.js +6 -0
- package/dist/commands/completion/fish.impl.consumer.js.map +1 -0
- package/dist/commands/completion/tree.d.ts +5 -26
- package/dist/commands/completion/tree.d.ts.map +1 -1
- package/dist/commands/completion/tree.js +26 -25
- package/dist/commands/completion/tree.js.map +1 -1
- package/dist/commands/completion/zsh-widget.js +4 -4
- package/dist/commands/completion/zsh.d.ts +1 -1
- package/dist/commands/completion/zsh.d.ts.map +1 -1
- package/dist/commands/completion/zsh.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/zsh.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/zsh.impl.consumer.js +6 -0
- package/dist/commands/completion/zsh.impl.consumer.js.map +1 -0
- package/dist/commands/completion/zsh.js +1 -1
- package/dist/commands/completion/zsh.js.map +1 -1
- package/dist/commands/docs/cli.commands.docs.descriptor.d.ts +8 -0
- package/dist/commands/docs/cli.commands.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.commands.docs.descriptor.js +55 -0
- package/dist/commands/docs/cli.commands.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/cli.docs.descriptor.d.ts +4 -0
- package/dist/commands/docs/cli.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.docs.descriptor.js +44 -0
- package/dist/commands/docs/cli.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.d.ts +4 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.js +40 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/cli.output.docs.descriptor.d.ts +4 -0
- package/dist/commands/docs/cli.output.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.output.docs.descriptor.js +45 -0
- package/dist/commands/docs/cli.output.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/content/cli-commands.json +1 -0
- package/dist/commands/docs/content/cli-groups.json +1 -0
- package/dist/commands/docs/content/cli-output.json +1 -0
- package/dist/commands/docs/doc-paths.d.ts +11 -0
- package/dist/commands/docs/doc-paths.d.ts.map +1 -0
- package/dist/commands/docs/doc-paths.js +32 -0
- package/dist/commands/docs/doc-paths.js.map +1 -0
- package/dist/commands/docs/generate.d.ts +48 -0
- package/dist/commands/docs/generate.d.ts.map +1 -0
- package/dist/commands/docs/generate.js +121 -0
- package/dist/commands/docs/generate.js.map +1 -0
- package/dist/commands/docs/render-command.d.ts +5 -0
- package/dist/commands/docs/render-command.d.ts.map +1 -0
- package/dist/commands/docs/render-command.js +117 -0
- package/dist/commands/docs/render-command.js.map +1 -0
- package/dist/commands/docs/render-group.d.ts +5 -0
- package/dist/commands/docs/render-group.d.ts.map +1 -0
- package/dist/commands/docs/render-group.js +62 -0
- package/dist/commands/docs/render-group.js.map +1 -0
- package/dist/commands/docs/schemas/generate.d.ts +14 -0
- package/dist/commands/docs/schemas/generate.d.ts.map +1 -0
- package/dist/commands/docs/schemas/generate.js +3 -0
- package/dist/commands/docs/schemas/generate.js.map +1 -0
- package/dist/commands/output.d.ts +27 -0
- package/dist/commands/output.d.ts.map +1 -0
- package/dist/commands/output.js +104 -0
- package/dist/commands/output.js.map +1 -0
- package/dist/commands/profile/_utils.d.ts +34 -9
- package/dist/commands/profile/_utils.d.ts.map +1 -1
- package/dist/commands/profile/_utils.js +65 -37
- package/dist/commands/profile/_utils.js.map +1 -1
- package/dist/commands/profile/profile-env.d.ts +42 -0
- package/dist/commands/profile/profile-env.d.ts.map +1 -0
- package/dist/commands/profile/profile-env.js +56 -0
- package/dist/commands/profile/profile-env.js.map +1 -0
- package/dist/commands/profile/profile-group.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile-group.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.create.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.create.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.create.descriptor.js +12 -1
- package/dist/commands/profile/profile.create.descriptor.js.map +1 -1
- package/dist/commands/profile/profile.create.impl.d.ts +2 -6
- package/dist/commands/profile/profile.create.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.create.impl.js +32 -9
- package/dist/commands/profile/profile.create.impl.js.map +1 -1
- package/dist/commands/profile/profile.delete.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.delete.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.delete.impl.d.ts +2 -7
- package/dist/commands/profile/profile.delete.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.delete.impl.js +33 -16
- package/dist/commands/profile/profile.delete.impl.js.map +1 -1
- package/dist/commands/profile/profile.environment.descriptor.d.ts +4 -0
- package/dist/commands/profile/profile.environment.descriptor.d.ts.map +1 -0
- package/dist/commands/profile/profile.environment.descriptor.js +26 -0
- package/dist/commands/profile/profile.environment.descriptor.js.map +1 -0
- package/dist/commands/profile/profile.environment.impl.d.ts +14 -0
- package/dist/commands/profile/profile.environment.impl.d.ts.map +1 -0
- package/dist/commands/profile/profile.environment.impl.js +33 -0
- package/dist/commands/profile/profile.environment.impl.js.map +1 -0
- package/dist/commands/profile/profile.info.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.info.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.info.descriptor.js +5 -1
- package/dist/commands/profile/profile.info.descriptor.js.map +1 -1
- package/dist/commands/profile/profile.info.impl.d.ts +5 -2
- package/dist/commands/profile/profile.info.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.info.impl.js +31 -14
- package/dist/commands/profile/profile.info.impl.js.map +1 -1
- package/dist/commands/profile/profile.list.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.list.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.list.descriptor.js +5 -1
- package/dist/commands/profile/profile.list.descriptor.js.map +1 -1
- package/dist/commands/profile/profile.list.impl.d.ts +17 -2
- package/dist/commands/profile/profile.list.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.list.impl.js +52 -25
- package/dist/commands/profile/profile.list.impl.js.map +1 -1
- package/dist/commands/profile/profile.use.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.use.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.use.impl.d.ts +2 -6
- package/dist/commands/profile/profile.use.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.use.impl.js +40 -10
- package/dist/commands/profile/profile.use.impl.js.map +1 -1
- package/dist/commands/runtime/codegen.command.descriptor.d.ts +26 -12
- package/dist/commands/runtime/codegen.command.descriptor.d.ts.map +1 -1
- package/dist/commands/runtime/codegen.command.descriptor.js +24 -6
- package/dist/commands/runtime/codegen.command.descriptor.js.map +1 -1
- package/dist/commands/runtime/codegen.command.impl.d.ts +15 -2
- package/dist/commands/runtime/codegen.command.impl.d.ts.map +1 -1
- package/dist/commands/runtime/codegen.command.impl.js +17 -30
- package/dist/commands/runtime/codegen.command.impl.js.map +1 -1
- package/dist/commands/runtime/codegen.d.ts +10 -14
- package/dist/commands/runtime/codegen.d.ts.map +1 -1
- package/dist/commands/runtime/codegen.declarations.d.ts +6 -0
- package/dist/commands/runtime/codegen.declarations.d.ts.map +1 -0
- package/dist/commands/runtime/codegen.declarations.js +6 -0
- package/dist/commands/runtime/codegen.declarations.js.map +1 -0
- package/dist/commands/runtime/codegen.js +85 -58
- package/dist/commands/runtime/codegen.js.map +1 -1
- package/dist/commands/runtime/export/markdown-document.d.ts +25 -0
- package/dist/commands/runtime/export/markdown-document.d.ts.map +1 -0
- package/dist/commands/runtime/export/markdown-document.js +38 -0
- package/dist/commands/runtime/export/markdown-document.js.map +1 -0
- package/dist/commands/runtime/export/markdown.d.ts +17 -0
- package/dist/commands/runtime/export/markdown.d.ts.map +1 -0
- package/dist/commands/runtime/export/markdown.js +141 -0
- package/dist/commands/runtime/export/markdown.js.map +1 -0
- package/dist/commands/runtime/export/read.d.ts +27 -0
- package/dist/commands/runtime/export/read.d.ts.map +1 -0
- package/dist/commands/runtime/export/read.js +128 -0
- package/dist/commands/runtime/export/read.js.map +1 -0
- package/dist/commands/runtime/export/reading-notes.d.ts +11 -0
- package/dist/commands/runtime/export/reading-notes.d.ts.map +1 -0
- package/dist/commands/runtime/export/reading-notes.js +45 -0
- package/dist/commands/runtime/export/reading-notes.js.map +1 -0
- package/dist/commands/runtime/export/register.d.ts +34 -0
- package/dist/commands/runtime/export/register.d.ts.map +1 -0
- package/dist/commands/runtime/export/register.js +57 -0
- package/dist/commands/runtime/export/register.js.map +1 -0
- package/dist/commands/runtime/export/schemas.d.ts +104 -0
- package/dist/commands/runtime/export/schemas.d.ts.map +1 -0
- package/dist/commands/runtime/export/schemas.js +38 -0
- package/dist/commands/runtime/export/schemas.js.map +1 -0
- package/dist/commands/runtime/export/write.d.ts +16 -0
- package/dist/commands/runtime/export/write.d.ts.map +1 -0
- package/dist/commands/runtime/export/write.js +36 -0
- package/dist/commands/runtime/export/write.js.map +1 -0
- package/dist/commands/runtime/export.command.impl.d.ts +18 -0
- package/dist/commands/runtime/export.command.impl.d.ts.map +1 -0
- package/dist/commands/runtime/export.command.impl.js +39 -0
- package/dist/commands/runtime/export.command.impl.js.map +1 -0
- package/dist/commands/runtime/export.d.ts +28 -0
- package/dist/commands/runtime/export.d.ts.map +1 -0
- package/dist/commands/runtime/export.descriptor.d.ts +55 -0
- package/dist/commands/runtime/export.descriptor.d.ts.map +1 -0
- package/dist/commands/runtime/export.descriptor.js +58 -0
- package/dist/commands/runtime/export.descriptor.js.map +1 -0
- package/dist/commands/runtime/export.js +28 -0
- package/dist/commands/runtime/export.js.map +1 -0
- package/dist/commands/runtime/index.d.ts +2 -2
- package/dist/commands/runtime/index.d.ts.map +1 -1
- package/dist/commands/runtime/index.js +3 -3
- package/dist/commands/runtime/index.js.map +1 -1
- package/dist/commands/runtime/plugin.d.ts +1 -1
- package/dist/commands/runtime/plugin.d.ts.map +1 -1
- package/dist/commands/runtime/plugin.js +1 -1
- package/dist/commands/runtime/plugin.js.map +1 -1
- package/dist/commands/runtime/runtime-group.descriptor.d.ts +1 -1
- package/dist/commands/runtime/runtime-group.descriptor.d.ts.map +1 -1
- package/dist/commands/schemas/output.d.ts +26 -0
- package/dist/commands/schemas/output.d.ts.map +1 -0
- package/dist/commands/schemas/output.js +14 -0
- package/dist/commands/schemas/output.js.map +1 -0
- package/dist/commands/schemas/profile-environment.d.ts +6 -0
- package/dist/commands/schemas/profile-environment.d.ts.map +1 -0
- package/dist/commands/schemas/profile-environment.js +3 -0
- package/dist/commands/schemas/profile-environment.js.map +1 -0
- package/dist/commands/schemas/profile-list.d.ts +22 -0
- package/dist/commands/schemas/profile-list.d.ts.map +1 -0
- package/dist/commands/schemas/profile-list.js +3 -0
- package/dist/commands/schemas/profile-list.js.map +1 -0
- package/dist/commands/skills/_skills.d.ts +98 -0
- package/dist/commands/skills/_skills.d.ts.map +1 -0
- package/dist/commands/skills/_skills.js +183 -0
- package/dist/commands/skills/_skills.js.map +1 -0
- package/dist/commands/skills/skills-group.descriptor.d.ts +4 -0
- package/dist/commands/skills/skills-group.descriptor.d.ts.map +1 -0
- package/dist/commands/skills/skills-group.descriptor.js +12 -0
- package/dist/commands/skills/skills-group.descriptor.js.map +1 -0
- package/dist/commands/skills/skills.install.descriptor.d.ts +4 -0
- package/dist/commands/skills/skills.install.descriptor.d.ts.map +1 -0
- package/dist/commands/skills/skills.install.descriptor.js +37 -0
- package/dist/commands/skills/skills.install.descriptor.js.map +1 -0
- package/dist/commands/skills/skills.install.impl.d.ts +12 -0
- package/dist/commands/skills/skills.install.impl.d.ts.map +1 -0
- package/dist/commands/skills/skills.install.impl.js +65 -0
- package/dist/commands/skills/skills.install.impl.js.map +1 -0
- package/dist/commands/skills/skills.list.descriptor.d.ts +4 -0
- package/dist/commands/skills/skills.list.descriptor.d.ts.map +1 -0
- package/dist/commands/skills/skills.list.descriptor.js +23 -0
- package/dist/commands/skills/skills.list.descriptor.js.map +1 -0
- package/dist/commands/skills/skills.list.impl.d.ts +11 -0
- package/dist/commands/skills/skills.list.impl.d.ts.map +1 -0
- package/dist/commands/skills/skills.list.impl.js +69 -0
- package/dist/commands/skills/skills.list.impl.js.map +1 -0
- package/dist/core/runtime/shared/context.d.ts +16 -16
- package/dist/core/runtime/shared/context.d.ts.map +1 -1
- package/dist/core/runtime/shared/context.js +20 -35
- package/dist/core/runtime/shared/context.js.map +1 -1
- package/dist/core/runtime/shared/options.d.ts +5 -19
- package/dist/core/runtime/shared/options.d.ts.map +1 -1
- package/dist/core/runtime/shared/options.js +87 -42
- package/dist/core/runtime/shared/options.js.map +1 -1
- package/dist/design-inventory.d.ts +23 -0
- package/dist/design-inventory.d.ts.map +1 -0
- package/dist/design-inventory.js +66 -0
- package/dist/design-inventory.js.map +1 -0
- package/dist/index.d.ts +12 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -25
- package/dist/index.js.map +1 -1
- package/dist/invocation/client.d.ts +20 -0
- package/dist/invocation/client.d.ts.map +1 -0
- package/dist/invocation/client.js +25 -0
- package/dist/invocation/client.js.map +1 -0
- package/dist/invocation/state.d.ts +10 -0
- package/dist/invocation/state.d.ts.map +1 -0
- package/dist/invocation/state.js +32 -0
- package/dist/invocation/state.js.map +1 -0
- package/dist/patterns/builtins/config-namespace-commands.d.ts +10 -0
- package/dist/patterns/builtins/config-namespace-commands.d.ts.map +1 -0
- package/dist/patterns/builtins/config-namespace-commands.js +132 -0
- package/dist/patterns/builtins/config-namespace-commands.js.map +1 -0
- package/dist/patterns/builtins/config-namespace-output.d.ts +9 -0
- package/dist/patterns/builtins/config-namespace-output.d.ts.map +1 -0
- package/dist/patterns/builtins/config-namespace-output.js +31 -0
- package/dist/patterns/builtins/config-namespace-output.js.map +1 -0
- package/dist/patterns/builtins/config-namespace.d.ts +23 -0
- package/dist/patterns/builtins/config-namespace.d.ts.map +1 -0
- package/dist/patterns/builtins/config-namespace.js +70 -0
- package/dist/patterns/builtins/config-namespace.js.map +1 -0
- package/dist/patterns/builtins/crud-commands.d.ts +11 -0
- package/dist/patterns/builtins/crud-commands.d.ts.map +1 -0
- package/dist/patterns/builtins/crud-commands.js +105 -0
- package/dist/patterns/builtins/crud-commands.js.map +1 -0
- package/dist/patterns/builtins/crud-output.d.ts +7 -0
- package/dist/patterns/builtins/crud-output.d.ts.map +1 -0
- package/dist/patterns/builtins/crud-output.js +21 -0
- package/dist/patterns/builtins/crud-output.js.map +1 -0
- package/dist/patterns/builtins/crud.d.ts +16 -0
- package/dist/patterns/builtins/crud.d.ts.map +1 -0
- package/dist/patterns/builtins/crud.js +38 -0
- package/dist/patterns/builtins/crud.js.map +1 -0
- package/dist/patterns/{log-viewer.d.ts → builtins/log-viewer.d.ts} +5 -5
- package/dist/patterns/builtins/log-viewer.d.ts.map +1 -0
- package/dist/patterns/{log-viewer.js → builtins/log-viewer.js} +31 -9
- package/dist/patterns/builtins/log-viewer.js.map +1 -0
- package/dist/patterns/builtins/output.d.ts +5 -0
- package/dist/patterns/builtins/output.d.ts.map +1 -0
- package/dist/patterns/builtins/output.js +25 -0
- package/dist/patterns/builtins/output.js.map +1 -0
- package/dist/patterns/{process-manager.d.ts → builtins/process-manager.d.ts} +9 -4
- package/dist/patterns/builtins/process-manager.d.ts.map +1 -0
- package/dist/patterns/{process-manager.js → builtins/process-manager.js} +46 -29
- package/dist/patterns/builtins/process-manager.js.map +1 -0
- package/dist/patterns/builtins/tool-wrapper.d.ts +18 -0
- package/dist/patterns/builtins/tool-wrapper.d.ts.map +1 -0
- package/dist/patterns/builtins/tool-wrapper.js +124 -0
- package/dist/patterns/builtins/tool-wrapper.js.map +1 -0
- package/dist/patterns/cli-value.d.ts +3 -0
- package/dist/patterns/cli-value.d.ts.map +1 -0
- package/dist/patterns/cli-value.js +42 -0
- package/dist/patterns/cli-value.js.map +1 -0
- package/dist/patterns/index.d.ts +5 -9
- package/dist/patterns/index.d.ts.map +1 -1
- package/dist/patterns/index.js +5 -9
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/pattern.kinds.d.ts +30 -0
- package/dist/patterns/pattern.kinds.d.ts.map +1 -0
- package/dist/patterns/pattern.kinds.js +8 -0
- package/dist/patterns/pattern.kinds.js.map +1 -0
- package/dist/patterns/resolver.d.ts +11 -32
- package/dist/patterns/resolver.d.ts.map +1 -1
- package/dist/patterns/resolver.js +14 -45
- package/dist/patterns/resolver.js.map +1 -1
- package/dist/patterns/schemas.d.ts +9 -492
- package/dist/patterns/schemas.d.ts.map +1 -1
- package/dist/patterns/schemas.js +5 -94
- package/dist/patterns/schemas.js.map +1 -1
- package/dist/schemas/bootstrap.d.ts +242 -0
- package/dist/schemas/bootstrap.d.ts.map +1 -0
- package/dist/schemas/bootstrap.js +7 -0
- package/dist/schemas/bootstrap.js.map +1 -0
- package/dist/schemas/command-implementation.d.ts +34 -0
- package/dist/schemas/command-implementation.d.ts.map +1 -0
- package/dist/schemas/command-implementation.js +31 -0
- package/dist/schemas/command-implementation.js.map +1 -0
- package/dist/schemas/command-recommendations.d.ts +9 -0
- package/dist/schemas/command-recommendations.d.ts.map +1 -0
- package/dist/schemas/command-recommendations.js +14 -0
- package/dist/schemas/command-recommendations.js.map +1 -0
- package/dist/schemas/completion.d.ts +118 -0
- package/dist/schemas/completion.d.ts.map +1 -0
- package/dist/schemas/completion.js +63 -0
- package/dist/schemas/completion.js.map +1 -0
- package/dist/schemas/descriptors.d.ts +1 -129
- package/dist/schemas/descriptors.d.ts.map +1 -1
- package/dist/schemas/descriptors.js +1 -95
- package/dist/schemas/descriptors.js.map +1 -1
- package/dist/schemas/design-inventory.d.ts +20 -0
- package/dist/schemas/design-inventory.d.ts.map +1 -0
- package/dist/schemas/design-inventory.js +10 -0
- package/dist/schemas/design-inventory.js.map +1 -0
- package/dist/schemas/discovery.d.ts +17 -0
- package/dist/schemas/discovery.d.ts.map +1 -0
- package/dist/schemas/discovery.js +15 -0
- package/dist/schemas/discovery.js.map +1 -0
- package/dist/schemas/exit.d.ts +33 -0
- package/dist/schemas/exit.d.ts.map +1 -0
- package/dist/schemas/exit.js +20 -0
- package/dist/schemas/exit.js.map +1 -0
- package/dist/schemas/interactive-host.d.ts +10 -0
- package/dist/schemas/interactive-host.d.ts.map +1 -0
- package/dist/schemas/interactive-host.js +11 -0
- package/dist/schemas/interactive-host.js.map +1 -0
- package/dist/schemas/output-format.d.ts +61 -0
- package/dist/schemas/output-format.d.ts.map +1 -0
- package/dist/schemas/output-format.js +26 -0
- package/dist/schemas/output-format.js.map +1 -0
- package/dist/schemas/pattern-implementation.d.ts +1572 -0
- package/dist/schemas/pattern-implementation.d.ts.map +1 -0
- package/dist/schemas/pattern-implementation.js +12 -0
- package/dist/schemas/pattern-implementation.js.map +1 -0
- package/dist/schemas/pattern-input.d.ts +152 -0
- package/dist/schemas/pattern-input.d.ts.map +1 -0
- package/dist/schemas/pattern-input.js +194 -0
- package/dist/schemas/pattern-input.js.map +1 -0
- package/dist/schemas/pm-context.d.ts +17 -0
- package/dist/schemas/pm-context.d.ts.map +1 -0
- package/dist/schemas/pm-context.js +13 -0
- package/dist/schemas/pm-context.js.map +1 -0
- package/dist/schemas/prompts.d.ts +61 -0
- package/dist/schemas/prompts.d.ts.map +1 -0
- package/dist/schemas/prompts.js +43 -0
- package/dist/schemas/prompts.js.map +1 -0
- package/dist/schemas/runtime-codegen.d.ts +191 -0
- package/dist/schemas/runtime-codegen.d.ts.map +1 -0
- package/dist/schemas/runtime-codegen.js +83 -0
- package/dist/schemas/runtime-codegen.js.map +1 -0
- package/dist/schemas/surface.d.ts +33 -20
- package/dist/schemas/surface.d.ts.map +1 -1
- package/dist/schemas/surface.js +2 -1
- package/dist/schemas/surface.js.map +1 -1
- package/dist/schemas/terminal-input.d.ts +15 -0
- package/dist/schemas/terminal-input.d.ts.map +1 -0
- package/dist/schemas/terminal-input.js +13 -0
- package/dist/schemas/terminal-input.js.map +1 -0
- package/dist/schemas/types.d.ts +1 -201
- package/dist/schemas/types.d.ts.map +1 -1
- package/dist/support/cli-inventory.generated.d.ts +4 -0
- package/dist/support/cli-inventory.generated.d.ts.map +1 -0
- package/dist/support/cli-inventory.generated.js +31 -0
- package/dist/support/cli-inventory.generated.js.map +1 -0
- package/dist/support/logging/cli-startup.logger.descriptor.d.ts.map +1 -0
- package/dist/support/logging/cli-startup.logger.descriptor.js.map +1 -0
- package/dist/support/logging/logging.d.ts +8 -0
- package/dist/support/logging/logging.d.ts.map +1 -0
- package/dist/support/logging/logging.js +13 -0
- package/dist/support/logging/logging.js.map +1 -0
- package/dist/support/terminal-input.d.ts +11 -0
- package/dist/support/terminal-input.d.ts.map +1 -0
- package/dist/support/terminal-input.js +39 -0
- package/dist/support/terminal-input.js.map +1 -0
- package/dist/support/ui/context.descriptor.d.ts +35 -0
- package/dist/support/ui/context.descriptor.d.ts.map +1 -0
- package/dist/{ui.context.descriptor.js → support/ui/context.descriptor.js} +2 -2
- package/dist/support/ui/context.descriptor.js.map +1 -0
- package/dist/support/ui/format.client.d.ts +42 -0
- package/dist/support/ui/format.client.d.ts.map +1 -0
- package/dist/support/ui/format.client.js +92 -0
- package/dist/support/ui/format.client.js.map +1 -0
- package/dist/support/ui/format.kinds.d.ts +30 -0
- package/dist/support/ui/format.kinds.d.ts.map +1 -0
- package/dist/support/ui/format.kinds.js +8 -0
- package/dist/support/ui/format.kinds.js.map +1 -0
- package/dist/support/ui/format.plugin.d.ts +7 -0
- package/dist/support/ui/format.plugin.d.ts.map +1 -0
- package/dist/support/ui/format.plugin.js +23 -0
- package/dist/support/ui/format.plugin.js.map +1 -0
- package/dist/support/ui/formats.d.ts +4 -0
- package/dist/support/ui/formats.d.ts.map +1 -0
- package/dist/support/ui/formats.js +34 -0
- package/dist/support/ui/formats.js.map +1 -0
- package/dist/support/ui/prompts.d.ts +9 -0
- package/dist/support/ui/prompts.d.ts.map +1 -0
- package/dist/support/ui/prompts.js +99 -0
- package/dist/support/ui/prompts.js.map +1 -0
- package/dist/support/ui/schemas/types.d.ts +2 -0
- package/dist/support/ui/schemas/types.d.ts.map +1 -0
- package/dist/support/ui/schemas/types.js.map +1 -0
- package/dist/support/ui/schemas/ui-toolkit.d.ts +45 -0
- package/dist/support/ui/schemas/ui-toolkit.d.ts.map +1 -0
- package/dist/support/ui/schemas/ui-toolkit.js +2 -0
- package/dist/support/ui/schemas/ui-toolkit.js.map +1 -0
- package/dist/support/ui/showcase.d.ts +18 -0
- package/dist/support/ui/showcase.d.ts.map +1 -0
- package/dist/support/ui/showcase.js +101 -0
- package/dist/support/ui/showcase.js.map +1 -0
- package/dist/support/ui/table.d.ts +28 -0
- package/dist/support/ui/table.d.ts.map +1 -0
- package/dist/support/ui/table.js +74 -0
- package/dist/support/ui/table.js.map +1 -0
- package/dist/support/ui/toolkit.d.ts +56 -0
- package/dist/support/ui/toolkit.d.ts.map +1 -0
- package/dist/support/ui/toolkit.js +130 -0
- package/dist/support/ui/toolkit.js.map +1 -0
- package/dist/support/vibesdev/index.d.ts +2 -0
- package/dist/support/vibesdev/index.d.ts.map +1 -0
- package/dist/support/vibesdev/index.js +3 -0
- package/dist/support/vibesdev/index.js.map +1 -0
- package/dist/surface/CLISurface.d.ts +77 -3
- package/dist/surface/CLISurface.d.ts.map +1 -1
- package/dist/surface/CLISurface.js +642 -98
- package/dist/surface/CLISurface.js.map +1 -1
- package/dist/surface/argument-name.d.ts +14 -0
- package/dist/surface/argument-name.d.ts.map +1 -0
- package/dist/surface/argument-name.js +23 -0
- package/dist/surface/argument-name.js.map +1 -0
- package/dist/surface/attach-tui-action.d.ts +35 -9
- package/dist/surface/attach-tui-action.d.ts.map +1 -1
- package/dist/surface/attach-tui-action.js +50 -43
- package/dist/surface/attach-tui-action.js.map +1 -1
- package/dist/surface/build-context.d.ts +2 -2
- package/dist/surface/build-context.d.ts.map +1 -1
- package/dist/surface/build-context.js +26 -44
- package/dist/surface/build-context.js.map +1 -1
- package/dist/surface/command-group-policy.d.ts +2 -3
- package/dist/surface/command-group-policy.d.ts.map +1 -1
- package/dist/surface/command-group-policy.js +1 -11
- package/dist/surface/command-group-policy.js.map +1 -1
- package/dist/surface/command-implementation.d.ts +9 -0
- package/dist/surface/command-implementation.d.ts.map +1 -0
- package/dist/surface/command-implementation.js +19 -0
- package/dist/surface/command-implementation.js.map +1 -0
- package/dist/surface/command-options.d.ts +29 -0
- package/dist/surface/command-options.d.ts.map +1 -0
- package/dist/surface/command-options.js +57 -0
- package/dist/surface/command-options.js.map +1 -0
- package/dist/surface/commander-action.d.ts +25 -0
- package/dist/surface/commander-action.d.ts.map +1 -0
- package/dist/surface/commander-action.js +38 -0
- package/dist/surface/commander-action.js.map +1 -0
- package/dist/surface/discovery-cache.d.ts +3 -15
- package/dist/surface/discovery-cache.d.ts.map +1 -1
- package/dist/surface/discovery-cache.js +6 -33
- package/dist/surface/discovery-cache.js.map +1 -1
- package/dist/surface/exit.d.ts +10 -0
- package/dist/surface/exit.d.ts.map +1 -0
- package/dist/surface/exit.js +33 -0
- package/dist/surface/exit.js.map +1 -0
- package/dist/surface/failure-of.d.ts +9 -0
- package/dist/surface/failure-of.d.ts.map +1 -0
- package/dist/surface/failure-of.js +17 -0
- package/dist/surface/failure-of.js.map +1 -0
- package/dist/surface/failure-output.d.ts +50 -0
- package/dist/surface/failure-output.d.ts.map +1 -0
- package/dist/surface/failure-output.js +84 -0
- package/dist/surface/failure-output.js.map +1 -0
- package/dist/surface/failure-report.d.ts +78 -0
- package/dist/surface/failure-report.d.ts.map +1 -0
- package/dist/surface/failure-report.js +229 -0
- package/dist/surface/failure-report.js.map +1 -0
- package/dist/surface/group-fallback.d.ts +32 -0
- package/dist/surface/group-fallback.d.ts.map +1 -0
- package/dist/surface/group-fallback.js +78 -0
- package/dist/surface/group-fallback.js.map +1 -0
- package/dist/surface/index.d.ts +10 -0
- package/dist/surface/index.d.ts.map +1 -0
- package/dist/surface/index.js +8 -0
- package/dist/surface/index.js.map +1 -0
- package/dist/surface/inherited-options.d.ts +28 -0
- package/dist/surface/inherited-options.d.ts.map +1 -0
- package/dist/surface/inherited-options.js +108 -0
- package/dist/surface/inherited-options.js.map +1 -0
- package/dist/surface/interactive-gate.d.ts +41 -0
- package/dist/surface/interactive-gate.d.ts.map +1 -0
- package/dist/surface/interactive-gate.js +112 -0
- package/dist/surface/interactive-gate.js.map +1 -0
- package/dist/surface/invocation-actions.d.ts +40 -0
- package/dist/surface/invocation-actions.d.ts.map +1 -0
- package/dist/surface/invocation-actions.js +78 -0
- package/dist/surface/invocation-actions.js.map +1 -0
- package/dist/surface/invocation-effects.d.ts +11 -0
- package/dist/surface/invocation-effects.d.ts.map +1 -0
- package/dist/surface/invocation-effects.js +52 -0
- package/dist/surface/invocation-effects.js.map +1 -0
- package/dist/surface/invocation-lifecycle.d.ts +49 -0
- package/dist/surface/invocation-lifecycle.d.ts.map +1 -0
- package/dist/surface/invocation-lifecycle.js +127 -0
- package/dist/surface/invocation-lifecycle.js.map +1 -0
- package/dist/surface/output-format-request.d.ts +23 -0
- package/dist/surface/output-format-request.d.ts.map +1 -0
- package/dist/surface/output-format-request.js +116 -0
- package/dist/surface/output-format-request.js.map +1 -0
- package/dist/surface/pm-context.d.ts +5 -0
- package/dist/surface/pm-context.d.ts.map +1 -0
- package/dist/surface/pm-context.js +69 -0
- package/dist/surface/pm-context.js.map +1 -0
- package/dist/surface/register-commands.d.ts +24 -4
- package/dist/surface/register-commands.d.ts.map +1 -1
- package/dist/surface/register-commands.js +156 -63
- package/dist/surface/register-commands.js.map +1 -1
- package/dist/surface/register-groups.d.ts +4 -4
- package/dist/surface/register-groups.d.ts.map +1 -1
- package/dist/surface/register-groups.js +71 -9
- package/dist/surface/register-groups.js.map +1 -1
- package/dist/surface/schemas/CLISurface.d.ts +31 -0
- package/dist/surface/schemas/CLISurface.d.ts.map +1 -0
- package/dist/surface/schemas/CLISurface.js +2 -0
- package/dist/surface/schemas/CLISurface.js.map +1 -0
- package/dist/surface/schemas/command-implementation.d.ts +20 -0
- package/dist/surface/schemas/command-implementation.d.ts.map +1 -0
- package/dist/surface/schemas/command-implementation.js +2 -0
- package/dist/surface/schemas/command-implementation.js.map +1 -0
- package/dist/surface/schemas/interactive-gate.d.ts +29 -0
- package/dist/surface/schemas/interactive-gate.d.ts.map +1 -0
- package/dist/surface/schemas/interactive-gate.js +2 -0
- package/dist/surface/schemas/interactive-gate.js.map +1 -0
- package/package.json +273 -136
- package/bin/vibes.ts +0 -26
- package/dist/api/client/factory.d.ts +0 -29
- package/dist/api/client/factory.d.ts.map +0 -1
- package/dist/api/client/factory.js +0 -189
- package/dist/api/client/factory.js.map +0 -1
- package/dist/api/schemas/common.d.ts +0 -58
- package/dist/api/schemas/common.d.ts.map +0 -1
- package/dist/api/schemas/common.js +0 -48
- package/dist/api/schemas/common.js.map +0 -1
- package/dist/api/schemas/types.d.ts +0 -30
- package/dist/api/schemas/types.d.ts.map +0 -1
- package/dist/api/services/api.d.ts +0 -14
- package/dist/api/services/api.d.ts.map +0 -1
- package/dist/api/services/api.js +0 -110
- package/dist/api/services/api.js.map +0 -1
- package/dist/api/types.d.ts +0 -6
- package/dist/api/types.d.ts.map +0 -1
- package/dist/api/types.js +0 -5
- package/dist/api/types.js.map +0 -1
- package/dist/bin.d.ts +0 -28
- package/dist/bin.d.ts.map +0 -1
- package/dist/bin.js +0 -73
- package/dist/bin.js.map +0 -1
- package/dist/bootstrap.d.ts +0 -14
- package/dist/bootstrap.d.ts.map +0 -1
- package/dist/bootstrap.js +0 -14
- package/dist/bootstrap.js.map +0 -1
- package/dist/cli.plugin.d.ts +0 -20
- package/dist/cli.plugin.d.ts.map +0 -1
- package/dist/cli.plugin.js +0 -170
- package/dist/cli.plugin.js.map +0 -1
- package/dist/commands/runtime/_logging.d.ts +0 -11
- package/dist/commands/runtime/_logging.d.ts.map +0 -1
- package/dist/commands/runtime/_logging.js +0 -40
- package/dist/commands/runtime/_logging.js.map +0 -1
- package/dist/config.d.ts +0 -17
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/core/index.d.ts +0 -9
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -5
- package/dist/core/index.js.map +0 -1
- package/dist/core/namespace/hook.d.ts +0 -12
- package/dist/core/namespace/hook.d.ts.map +0 -1
- package/dist/core/namespace/hook.js +0 -15
- package/dist/core/namespace/hook.js.map +0 -1
- package/dist/core/namespace/index.d.ts +0 -18
- package/dist/core/namespace/index.d.ts.map +0 -1
- package/dist/core/namespace/index.js +0 -214
- package/dist/core/namespace/index.js.map +0 -1
- package/dist/core/namespace/schemas/index.d.ts +0 -25
- package/dist/core/namespace/schemas/index.d.ts.map +0 -1
- package/dist/core/namespace/schemas/index.js +0 -2
- package/dist/core/namespace/schemas/index.js.map +0 -1
- package/dist/core/plugins/types.d.ts +0 -81
- package/dist/core/plugins/types.d.ts.map +0 -1
- package/dist/core/plugins/types.js +0 -6
- package/dist/core/plugins/types.js.map +0 -1
- package/dist/core/runtime/context.d.ts +0 -25
- package/dist/core/runtime/context.d.ts.map +0 -1
- package/dist/core/runtime/context.js +0 -30
- package/dist/core/runtime/context.js.map +0 -1
- package/dist/core/runtime/hooks.d.ts +0 -12
- package/dist/core/runtime/hooks.d.ts.map +0 -1
- package/dist/core/runtime/hooks.js +0 -2
- package/dist/core/runtime/hooks.js.map +0 -1
- package/dist/core/schemas/manifest.d.ts +0 -24
- package/dist/core/schemas/manifest.d.ts.map +0 -1
- package/dist/core/schemas/manifest.js +0 -6
- package/dist/core/schemas/manifest.js.map +0 -1
- package/dist/core/schemas/types.d.ts +0 -7
- package/dist/core/schemas/types.d.ts.map +0 -1
- package/dist/core/schemas/types.js.map +0 -1
- package/dist/core/ui/interface.d.ts +0 -12
- package/dist/core/ui/interface.d.ts.map +0 -1
- package/dist/core/ui/interface.js +0 -6
- package/dist/core/ui/interface.js.map +0 -1
- package/dist/docs/cli.commands.docs.descriptor.d.ts +0 -4
- package/dist/docs/cli.commands.docs.descriptor.d.ts.map +0 -1
- package/dist/docs/cli.commands.docs.descriptor.js +0 -207
- package/dist/docs/cli.commands.docs.descriptor.js.map +0 -1
- package/dist/docs/cli.groups.docs.descriptor.d.ts +0 -4
- package/dist/docs/cli.groups.docs.descriptor.d.ts.map +0 -1
- package/dist/docs/cli.groups.docs.descriptor.js +0 -330
- package/dist/docs/cli.groups.docs.descriptor.js.map +0 -1
- package/dist/docs/cli.output.docs.descriptor.d.ts +0 -4
- package/dist/docs/cli.output.docs.descriptor.d.ts.map +0 -1
- package/dist/docs/cli.output.docs.descriptor.js +0 -442
- package/dist/docs/cli.output.docs.descriptor.js.map +0 -1
- package/dist/docs/types.d.ts +0 -19
- package/dist/docs/types.d.ts.map +0 -1
- package/dist/docs/types.js +0 -2
- package/dist/docs/types.js.map +0 -1
- package/dist/errors.d.ts +0 -74
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -113
- package/dist/errors.js.map +0 -1
- package/dist/logging/cli-startup.logger.descriptor.d.ts.map +0 -1
- package/dist/logging/cli-startup.logger.descriptor.js.map +0 -1
- package/dist/logging.d.ts +0 -4
- package/dist/logging.d.ts.map +0 -1
- package/dist/logging.js +0 -21
- package/dist/logging.js.map +0 -1
- package/dist/patterns/config-namespace.d.ts +0 -23
- package/dist/patterns/config-namespace.d.ts.map +0 -1
- package/dist/patterns/config-namespace.js +0 -218
- package/dist/patterns/config-namespace.js.map +0 -1
- package/dist/patterns/crud.d.ts +0 -23
- package/dist/patterns/crud.d.ts.map +0 -1
- package/dist/patterns/crud.js +0 -164
- package/dist/patterns/crud.js.map +0 -1
- package/dist/patterns/log-viewer.d.ts.map +0 -1
- package/dist/patterns/log-viewer.js.map +0 -1
- package/dist/patterns/pattern-types.d.ts +0 -21
- package/dist/patterns/pattern-types.d.ts.map +0 -1
- package/dist/patterns/pattern-types.js +0 -7
- package/dist/patterns/pattern-types.js.map +0 -1
- package/dist/patterns/process-manager.d.ts.map +0 -1
- package/dist/patterns/process-manager.js.map +0 -1
- package/dist/patterns/resolver.contracts.d.ts +0 -14
- package/dist/patterns/resolver.contracts.d.ts.map +0 -1
- package/dist/patterns/resolver.contracts.js +0 -9
- package/dist/patterns/resolver.contracts.js.map +0 -1
- package/dist/patterns/tool-wrapper.d.ts +0 -18
- package/dist/patterns/tool-wrapper.d.ts.map +0 -1
- package/dist/patterns/tool-wrapper.js +0 -130
- package/dist/patterns/tool-wrapper.js.map +0 -1
- package/dist/providers.d.ts +0 -105
- package/dist/providers.d.ts.map +0 -1
- package/dist/providers.js +0 -164
- package/dist/providers.js.map +0 -1
- package/dist/support/ui-toolkit.d.ts +0 -62
- package/dist/support/ui-toolkit.d.ts.map +0 -1
- package/dist/support/ui-toolkit.js +0 -172
- package/dist/support/ui-toolkit.js.map +0 -1
- package/dist/surface.d.ts +0 -9
- package/dist/surface.d.ts.map +0 -1
- package/dist/surface.js +0 -8
- package/dist/surface.js.map +0 -1
- package/dist/types.d.ts +0 -4
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/ui/schemas/types.d.ts +0 -2
- package/dist/ui/schemas/types.d.ts.map +0 -1
- package/dist/ui/schemas/types.js +0 -2
- package/dist/ui/schemas/types.js.map +0 -1
- package/dist/ui/toolkit/VibesUIToolkit.d.ts +0 -2
- package/dist/ui/toolkit/VibesUIToolkit.d.ts.map +0 -1
- package/dist/ui/toolkit/VibesUIToolkit.js +0 -2
- package/dist/ui/toolkit/VibesUIToolkit.js.map +0 -1
- package/dist/ui.context.descriptor.d.ts +0 -21
- package/dist/ui.context.descriptor.d.ts.map +0 -1
- package/dist/ui.context.descriptor.js.map +0 -1
- package/dist/utils/open.d.ts +0 -2
- package/dist/utils/open.d.ts.map +0 -1
- package/dist/utils/open.js +0 -30
- package/dist/utils/open.js.map +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -2
- package/dist/version.js.map +0 -1
- package/src/api/client/factory.ts +0 -265
- package/src/api/schemas/common.ts +0 -50
- package/src/api/schemas/types.ts +0 -32
- package/src/api/services/api.ts +0 -129
- package/src/api/types.ts +0 -12
- package/src/bin.ts +0 -84
- package/src/bootstrap.ts +0 -19
- package/src/cli.plugin.d.ts +0 -19
- package/src/cli.plugin.ts +0 -202
- package/src/commands/completion/bash.ts +0 -68
- package/src/commands/completion/completion.descriptor.ts +0 -48
- package/src/commands/completion/completion.impl.ts +0 -188
- package/src/commands/completion/fig.ts +0 -78
- package/src/commands/completion/fish.ts +0 -52
- package/src/commands/completion/tree.ts +0 -115
- package/src/commands/completion/zsh-widget.ts +0 -39
- package/src/commands/completion/zsh.ts +0 -165
- package/src/commands/profile/_utils.ts +0 -72
- package/src/commands/profile/profile-group.descriptor.ts +0 -14
- package/src/commands/profile/profile.create.descriptor.ts +0 -24
- package/src/commands/profile/profile.create.impl.ts +0 -44
- package/src/commands/profile/profile.delete.descriptor.ts +0 -31
- package/src/commands/profile/profile.delete.impl.ts +0 -71
- package/src/commands/profile/profile.info.descriptor.ts +0 -25
- package/src/commands/profile/profile.info.impl.ts +0 -51
- package/src/commands/profile/profile.list.descriptor.ts +0 -18
- package/src/commands/profile/profile.list.impl.ts +0 -46
- package/src/commands/profile/profile.use.descriptor.ts +0 -25
- package/src/commands/profile/profile.use.impl.ts +0 -39
- package/src/commands/runtime/_logging.ts +0 -47
- package/src/commands/runtime/codegen.command.descriptor.ts +0 -18
- package/src/commands/runtime/codegen.command.impl.ts +0 -44
- package/src/commands/runtime/codegen.ts +0 -84
- package/src/commands/runtime/index.ts +0 -14
- package/src/commands/runtime/plugin.ts +0 -7
- package/src/commands/runtime/runtime-group.descriptor.ts +0 -12
- package/src/config.ts +0 -22
- package/src/core/index.ts +0 -9
- package/src/core/namespace/hook.ts +0 -25
- package/src/core/namespace/index.ts +0 -298
- package/src/core/namespace/schemas/index.ts +0 -25
- package/src/core/plugins/types.ts +0 -87
- package/src/core/runtime/context.ts +0 -50
- package/src/core/runtime/hooks.ts +0 -12
- package/src/core/runtime/shared/context.ts +0 -65
- package/src/core/runtime/shared/options.ts +0 -60
- package/src/core/schemas/manifest.ts +0 -26
- package/src/core/schemas/types.ts +0 -6
- package/src/core/ui/interface.ts +0 -12
- package/src/docs/cli.commands.docs.descriptor.ts +0 -210
- package/src/docs/cli.groups.docs.descriptor.ts +0 -333
- package/src/docs/cli.output.docs.descriptor.ts +0 -445
- package/src/docs/types.ts +0 -18
- package/src/errors.ts +0 -123
- package/src/index.ts +0 -76
- package/src/logging/cli-startup.logger.descriptor.ts +0 -16
- package/src/logging.ts +0 -35
- package/src/patterns/config-namespace.ts +0 -251
- package/src/patterns/crud.ts +0 -217
- package/src/patterns/index.ts +0 -24
- package/src/patterns/log-viewer.ts +0 -118
- package/src/patterns/pattern-types.ts +0 -22
- package/src/patterns/process-manager.ts +0 -180
- package/src/patterns/resolver.contracts.ts +0 -15
- package/src/patterns/resolver.ts +0 -86
- package/src/patterns/schemas.ts +0 -146
- package/src/patterns/tool-wrapper.ts +0 -165
- package/src/providers.ts +0 -282
- package/src/schemas/descriptors.d.ts +0 -119
- package/src/schemas/descriptors.ts +0 -136
- package/src/schemas/surface.ts +0 -52
- package/src/schemas/types.d.ts +0 -195
- package/src/schemas/types.ts +0 -225
- package/src/support/ui-toolkit.ts +0 -224
- package/src/surface/CLISurface.ts +0 -193
- package/src/surface/attach-tui-action.ts +0 -76
- package/src/surface/build-context.ts +0 -49
- package/src/surface/command-group-policy.ts +0 -52
- package/src/surface/discovery-cache.ts +0 -143
- package/src/surface/register-commands.ts +0 -266
- package/src/surface/register-groups.ts +0 -84
- package/src/surface.ts +0 -9
- package/src/types.ts +0 -3
- package/src/ui/schemas/types.ts +0 -1
- package/src/ui/toolkit/VibesUIToolkit.ts +0 -1
- package/src/ui.context.descriptor.ts +0 -13
- package/src/utils/open.ts +0 -36
- package/src/version.ts +0 -10
- /package/dist/{api → boot}/schemas/types.js +0 -0
- /package/dist/{logging → support/logging}/cli-startup.logger.descriptor.d.ts +0 -0
- /package/dist/{logging → support/logging}/cli-startup.logger.descriptor.js +0 -0
- /package/dist/{core → support/ui}/schemas/types.js +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** Generated by @vibesdotdev/cli/design-inventory. Do not edit. */
|
|
2
|
+
export const CLI_TOOLKIT_METHODS = [
|
|
3
|
+
"confirm",
|
|
4
|
+
"createSync",
|
|
5
|
+
"error",
|
|
6
|
+
"info",
|
|
7
|
+
"json",
|
|
8
|
+
"keyValue",
|
|
9
|
+
"log",
|
|
10
|
+
"multiselect",
|
|
11
|
+
"password",
|
|
12
|
+
"progress",
|
|
13
|
+
"prompt",
|
|
14
|
+
"render",
|
|
15
|
+
"select",
|
|
16
|
+
"setFormat",
|
|
17
|
+
"success",
|
|
18
|
+
"table",
|
|
19
|
+
"warn",
|
|
20
|
+
"warning",
|
|
21
|
+
"withCommand",
|
|
22
|
+
"withInteractiveCommand",
|
|
23
|
+
"yaml"
|
|
24
|
+
];
|
|
25
|
+
export const CLI_UI_FORMATS = [
|
|
26
|
+
"json",
|
|
27
|
+
"yaml",
|
|
28
|
+
"table",
|
|
29
|
+
"markdown"
|
|
30
|
+
];
|
|
31
|
+
//# sourceMappingURL=cli-inventory.generated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-inventory.generated.js","sourceRoot":"","sources":["../../src/support/cli-inventory.generated.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAClC,SAAS;IACT,YAAY;IACZ,OAAO;IACP,MAAM;IACN,MAAM;IACN,UAAU;IACV,KAAK;IACL,aAAa;IACb,UAAU;IACV,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,SAAS;IACT,OAAO;IACP,MAAM;IACN,SAAS;IACT,aAAa;IACb,wBAAwB;IACxB,MAAM;CACG,CAAC;AACX,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B,MAAM;IACN,MAAM;IACN,OAAO;IACP,UAAU;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-startup.logger.descriptor.d.ts","sourceRoot":"","sources":["../../../src/support/logging/cli-startup.logger.descriptor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,QAAA,MAAM,UAAU,EAAE,gBAOjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-startup.logger.descriptor.js","sourceRoot":"","sources":["../../../src/support/logging/cli-startup.logger.descriptor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,MAAM,UAAU,GAAqB;IACpC,IAAI,EAAE,gBAAgB;IACtB,EAAE,EAAE,aAAa;IACjB,SAAS,EAAE,aAAa;IACxB,OAAO,EAAE,KAAK;IACd,KAAK,EAAE,CAAC,QAAQ,CAAC;IACjB,KAAK,EAAE,MAAM;CACb,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { getLogger as getRuntimeLogger } from '@vibesdotdev/logging';
|
|
2
|
+
import type { RuntimeRef } from '@vibesdotdev/kernel';
|
|
3
|
+
/**
|
|
4
|
+
* The CLI's logger on `runtime`, the runtime the CLI code was handed. Held by
|
|
5
|
+
* the logging package, never by module state here (D8).
|
|
6
|
+
*/
|
|
7
|
+
export declare function getLogger(runtime: RuntimeRef, child?: Parameters<ReturnType<typeof getRuntimeLogger>['child']>[0]): ReturnType<typeof getRuntimeLogger>;
|
|
8
|
+
//# sourceMappingURL=logging.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../../src/support/logging/logging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;;GAGG;AACH,wBAAgB,SAAS,CACxB,OAAO,EAAE,UAAU,EACnB,KAAK,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,GACjE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAMrC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { getLogger as getRuntimeLogger } from '@vibesdotdev/logging';
|
|
2
|
+
/**
|
|
3
|
+
* The CLI's logger on `runtime`, the runtime the CLI code was handed. Held by
|
|
4
|
+
* the logging package, never by module state here (D8).
|
|
5
|
+
*/
|
|
6
|
+
export function getLogger(runtime, child) {
|
|
7
|
+
const baseLogger = getRuntimeLogger('cli', runtime);
|
|
8
|
+
if (!child) {
|
|
9
|
+
return baseLogger;
|
|
10
|
+
}
|
|
11
|
+
return baseLogger.child(child);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=logging.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logging.js","sourceRoot":"","sources":["../../../src/support/logging/logging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGrE;;;GAGG;AACH,MAAM,UAAU,SAAS,CACxB,OAAmB,EACnB,KAAmE;IAEnE,MAAM,UAAU,GAAG,gBAAgB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACpD,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,OAAO,UAAU,CAAC;IACnB,CAAC;IACD,OAAO,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAChC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Resolve prompt input only through the runtime-selected terminal contract. */
|
|
2
|
+
import { type VibesRuntime } from '@vibesdotdev/kernel';
|
|
3
|
+
import { type TerminalPromptTransport } from '../schemas/terminal-input.ts';
|
|
4
|
+
export type { TerminalPromptTransport } from '../schemas/terminal-input.ts';
|
|
5
|
+
/** Resolve an override or production host transport; propagate provider refusals. */
|
|
6
|
+
export declare function tryResolveTerminalTransport(runtime: Pick<VibesRuntime, 'hasContext' | 'context'>): Promise<TerminalPromptTransport | undefined>;
|
|
7
|
+
/** Read one untrimmed line through the transport owned by this invocation. */
|
|
8
|
+
export declare function readTerminalLine(question: string, transport: TerminalPromptTransport | undefined): Promise<string>;
|
|
9
|
+
/** Hidden input with masking, cancellation, EOF and paste handling at the host. */
|
|
10
|
+
export declare function readHiddenTerminalLine(label: string, maskChar: string, transport: TerminalPromptTransport | undefined): Promise<string | null>;
|
|
11
|
+
//# sourceMappingURL=terminal-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal-input.d.ts","sourceRoot":"","sources":["../../src/support/terminal-input.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,OAAO,EAA8B,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,EAAiC,KAAK,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC3G,YAAY,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAE5E,qFAAqF;AACrF,wBAAsB,2BAA2B,CAChD,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,YAAY,GAAG,SAAS,CAAC,GACnD,OAAO,CAAC,uBAAuB,GAAG,SAAS,CAAC,CAe9C;AAED,8EAA8E;AAC9E,wBAAsB,gBAAgB,CACrC,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,uBAAuB,GAAG,SAAS,GAC5C,OAAO,CAAC,MAAM,CAAC,CASjB;AAED,mFAAmF;AACnF,wBAAsB,sBAAsB,CAC3C,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,uBAAuB,GAAG,SAAS,GAC5C,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CASxB"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** Resolve prompt input only through the runtime-selected terminal contract. */
|
|
2
|
+
import { CapabilityError, settleNow } from '@vibesdotdev/kernel';
|
|
3
|
+
import { TerminalPromptTransportSchema } from "../schemas/terminal-input.js";
|
|
4
|
+
/** Resolve an override or production host transport; propagate provider refusals. */
|
|
5
|
+
export async function tryResolveTerminalTransport(runtime) {
|
|
6
|
+
if (!runtime.hasContext('cli/terminal-input'))
|
|
7
|
+
return undefined;
|
|
8
|
+
const candidate = await runtime.context('cli/terminal-input');
|
|
9
|
+
const parsed = settleNow(() => TerminalPromptTransportSchema.safeParse(candidate));
|
|
10
|
+
if (!parsed.ok || !parsed.value.success) {
|
|
11
|
+
throw new CapabilityError('The terminal input transport is invalid or unreadable.', 'INVALID_INPUT', {
|
|
12
|
+
reason: 'cli-terminal-input-invalid',
|
|
13
|
+
retryable: false
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
// SAFETY: the owner schema admitted both callable members; preserve identity and receivers.
|
|
17
|
+
return candidate;
|
|
18
|
+
}
|
|
19
|
+
/** Read one untrimmed line through the transport owned by this invocation. */
|
|
20
|
+
export async function readTerminalLine(question, transport) {
|
|
21
|
+
if (!transport) {
|
|
22
|
+
throw new CapabilityError('The runtime has no terminal input transport.', 'UNAVAILABLE', {
|
|
23
|
+
reason: 'cli-terminal-input-unavailable',
|
|
24
|
+
retryable: false
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return transport.readLine(question);
|
|
28
|
+
}
|
|
29
|
+
/** Hidden input with masking, cancellation, EOF and paste handling at the host. */
|
|
30
|
+
export async function readHiddenTerminalLine(label, maskChar, transport) {
|
|
31
|
+
if (!transport) {
|
|
32
|
+
throw new CapabilityError('The runtime has no terminal input transport.', 'UNAVAILABLE', {
|
|
33
|
+
reason: 'cli-terminal-input-unavailable',
|
|
34
|
+
retryable: false
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return transport.readHidden(label, maskChar);
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=terminal-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal-input.js","sourceRoot":"","sources":["../../src/support/terminal-input.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,OAAO,EAAE,eAAe,EAAE,SAAS,EAAqB,MAAM,qBAAqB,CAAC;AACpF,OAAO,EAAE,6BAA6B,EAAgC,MAAM,8BAA8B,CAAC;AAG3G,qFAAqF;AACrF,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAChD,OAAqD;IAErD,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;QAAE,OAAO,SAAS,CAAC;IAEhE,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC9D,MAAM,MAAM,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IAEnF,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;QACzC,MAAM,IAAI,eAAe,CAAC,wDAAwD,EAAE,eAAe,EAAE;YACpG,MAAM,EAAE,4BAA4B;YACpC,SAAS,EAAE,KAAK;SAChB,CAAC,CAAC;IACJ,CAAC;IAED,4FAA4F;IAC5F,OAAO,SAAoC,CAAC;AAC7C,CAAC;AAED,8EAA8E;AAC9E,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACrC,QAAgB,EAChB,SAA8C;IAE9C,IAAI,CAAC,SAAS,EAAE,CAAC;QAChB,MAAM,IAAI,eAAe,CAAC,8CAA8C,EAAE,aAAa,EAAE;YACxF,MAAM,EAAE,gCAAgC;YACxC,SAAS,EAAE,KAAK;SAChB,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AACrC,CAAC;AAED,mFAAmF;AACnF,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC3C,KAAa,EACb,QAAgB,EAChB,SAA8C;IAE9C,IAAI,CAAC,SAAS,EAAE,CAAC;QAChB,MAAM,IAAI,eAAe,CAAC,8CAA8C,EAAE,aAAa,EAAE;YACxF,MAAM,EAAE,gCAAgC;YACxC,SAAS,EAAE,KAAK;SAChB,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI UI Context Descriptor
|
|
3
|
+
*
|
|
4
|
+
* Provides UI toolkit for terminal output (CLI surface only).
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: {
|
|
7
|
+
id: string;
|
|
8
|
+
kind: "context";
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
description?: string | undefined;
|
|
11
|
+
tags?: string[] | undefined;
|
|
12
|
+
hardware?: string[] | undefined;
|
|
13
|
+
enabled?: boolean | undefined;
|
|
14
|
+
priority?: number | undefined;
|
|
15
|
+
capabilityId?: string | undefined;
|
|
16
|
+
requiredContext?: string[] | undefined;
|
|
17
|
+
optionalContext?: string[] | undefined;
|
|
18
|
+
retention?: string | {
|
|
19
|
+
reason: string;
|
|
20
|
+
maxAgeDays?: number | undefined;
|
|
21
|
+
maxEntries?: number | undefined;
|
|
22
|
+
maxBytes?: number | undefined;
|
|
23
|
+
cascadeFrom?: string | undefined;
|
|
24
|
+
ageField?: string | undefined;
|
|
25
|
+
enforcedBy?: string | undefined;
|
|
26
|
+
} | undefined;
|
|
27
|
+
valueKind?: "data" | "service" | undefined;
|
|
28
|
+
valueSchema?: unknown;
|
|
29
|
+
config?: {
|
|
30
|
+
sources: ("literal" | "workspace" | "floor")[];
|
|
31
|
+
subset?: true | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
};
|
|
34
|
+
export default _default;
|
|
35
|
+
//# sourceMappingURL=context.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.descriptor.d.ts","sourceRoot":"","sources":["../../../src/support/ui/context.descriptor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,wBAIG"}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provides UI toolkit for terminal output (CLI surface only).
|
|
5
5
|
*/
|
|
6
|
-
import { createContextDescriptor } from '@vibesdotdev/
|
|
6
|
+
import { createContextDescriptor } from '@vibesdotdev/kernel/factory/context';
|
|
7
7
|
export default createContextDescriptor({
|
|
8
8
|
id: 'cli/ui',
|
|
9
9
|
description: 'UI toolkit for terminal output and user interaction.',
|
|
10
10
|
hardware: ['consumer']
|
|
11
11
|
});
|
|
12
|
-
//# sourceMappingURL=
|
|
12
|
+
//# sourceMappingURL=context.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.descriptor.js","sourceRoot":"","sources":["../../../src/support/ui/context.descriptor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,eAAe,uBAAuB,CAAC;IACtC,EAAE,EAAE,QAAQ;IACZ,WAAW,EAAE,sDAAsD;IACnE,QAAQ,EAAE,CAAC,UAAU,CAAC;CACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { BaseRuntimeClient } from '@vibesdotdev/kernel/client';
|
|
2
|
+
import { type OutputFormatter, type OutputFormatterRenderOptions } from '../../schemas/output-format.ts';
|
|
3
|
+
/** The kernel retains implementations; this client owns no parallel registry. */
|
|
4
|
+
export default class CLIFormatClient extends BaseRuntimeClient {
|
|
5
|
+
protected onLoad(): Promise<void>;
|
|
6
|
+
/**
|
|
7
|
+
* Activate every format this runtime declares, now and later. A format
|
|
8
|
+
* contributed after this client loaded is activated by the same pass, so a
|
|
9
|
+
* synchronous render always reads the implementation the kernel selected rather
|
|
10
|
+
* than silently falling back to another format.
|
|
11
|
+
*/
|
|
12
|
+
prepare(): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Activate one format the kernel can answer, and say whether this runtime can
|
|
15
|
+
* render it. The kernel answers the identifier through the descriptors it holds
|
|
16
|
+
* — a format contributed after this client loaded included — and retains an
|
|
17
|
+
* implementation only once it has been resolved. Only a missing descriptor or
|
|
18
|
+
* a resolver-confirmed absence of this exact format answers `false`.
|
|
19
|
+
*/
|
|
20
|
+
activate(format: string): Promise<boolean>;
|
|
21
|
+
/**
|
|
22
|
+
* The formatter selected for an identifier, activating it when this client has
|
|
23
|
+
* not yet seen it. An unavailable format refuses before any output is produced.
|
|
24
|
+
*/
|
|
25
|
+
selected(format: string): Promise<OutputFormatter>;
|
|
26
|
+
/**
|
|
27
|
+
* The formatter selected for an identifier, read from the kernel's retention
|
|
28
|
+
* without resolving anything. A format this runtime has not activated refuses;
|
|
29
|
+
* use {@link selected} when activation may still be owed.
|
|
30
|
+
*/
|
|
31
|
+
formatter(format: string): OutputFormatter;
|
|
32
|
+
/** The implementation the kernel retains for an identifier, if any. */
|
|
33
|
+
private retained;
|
|
34
|
+
/**
|
|
35
|
+
* Render one value in a named format through the selected formatter, activating
|
|
36
|
+
* the format when this runtime has not yet done so.
|
|
37
|
+
*/
|
|
38
|
+
render<TData>(data: TData, format: string, options?: OutputFormatterRenderOptions): Promise<string>;
|
|
39
|
+
/** Render through an already-activated formatter; refuses when it is not activated. */
|
|
40
|
+
renderSync<TData>(data: TData, format: string, options?: OutputFormatterRenderOptions): string;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=format.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.client.d.ts","sourceRoot":"","sources":["../../../src/support/ui/format.client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAGN,KAAK,eAAe,EACpB,KAAK,4BAA4B,EACjC,MAAM,gCAAgC,CAAC;AAGxC,iFAAiF;AACjF,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,iBAAiB;cACpC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAEhD;;;;;OAKG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAO9B;;;;;;OAMG;IACG,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAkBhD;;;OAGG;IACG,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAOxD;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe;IAM1C,uEAAuE;IACvE,OAAO,CAAC,QAAQ;IAKhB;;;OAGG;IACG,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,MAAM,CAAC;IAMzG,uFAAuF;IACvF,UAAU,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,4BAA4B,GAAG,MAAM;CAG9F"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { BaseRuntimeClient } from '@vibesdotdev/kernel/client';
|
|
2
|
+
import { CapabilityError, CaughtFailureSchema } from '@vibesdotdev/kernel';
|
|
3
|
+
import { OutputFormatterRenderOptionsSchema } from "../../schemas/output-format.js";
|
|
4
|
+
import { renderWithFormatter } from "./formats.js";
|
|
5
|
+
/** The kernel retains implementations; this client owns no parallel registry. */
|
|
6
|
+
export default class CLIFormatClient extends BaseRuntimeClient {
|
|
7
|
+
async onLoad() { await this.prepare(); }
|
|
8
|
+
/**
|
|
9
|
+
* Activate every format this runtime declares, now and later. A format
|
|
10
|
+
* contributed after this client loaded is activated by the same pass, so a
|
|
11
|
+
* synchronous render always reads the implementation the kernel selected rather
|
|
12
|
+
* than silently falling back to another format.
|
|
13
|
+
*/
|
|
14
|
+
async prepare() {
|
|
15
|
+
const formats = this.runtime.query('cli/output-format');
|
|
16
|
+
for (const descriptor of formats.descriptors()) {
|
|
17
|
+
await formats.withId(descriptor.id).resolve();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Activate one format the kernel can answer, and say whether this runtime can
|
|
22
|
+
* render it. The kernel answers the identifier through the descriptors it holds
|
|
23
|
+
* — a format contributed after this client loaded included — and retains an
|
|
24
|
+
* implementation only once it has been resolved. Only a missing descriptor or
|
|
25
|
+
* a resolver-confirmed absence of this exact format answers `false`.
|
|
26
|
+
*/
|
|
27
|
+
async activate(format) {
|
|
28
|
+
const formats = this.runtime.query('cli/output-format');
|
|
29
|
+
if (!formats.descriptors().some((descriptor) => descriptor.id === format))
|
|
30
|
+
return false;
|
|
31
|
+
try {
|
|
32
|
+
await formats.withId(format).resolve();
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
const caught = CaughtFailureSchema.parse(error);
|
|
36
|
+
if (CapabilityError.isAbsenceOf(caught, 'cli/output-format', format))
|
|
37
|
+
return false;
|
|
38
|
+
throw error;
|
|
39
|
+
}
|
|
40
|
+
if (this.retained(format) === undefined) {
|
|
41
|
+
throw new CapabilityError('The output formatter resolved without retaining an implementation.', 'INTERNAL', {
|
|
42
|
+
reason: 'cli-output-format-implementation-invalid'
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The formatter selected for an identifier, activating it when this client has
|
|
49
|
+
* not yet seen it. An unavailable format refuses before any output is produced.
|
|
50
|
+
*/
|
|
51
|
+
async selected(format) {
|
|
52
|
+
if (!(await this.activate(format)))
|
|
53
|
+
throw unavailableFormat();
|
|
54
|
+
const retained = this.retained(format);
|
|
55
|
+
if (!retained)
|
|
56
|
+
throw unavailableFormat();
|
|
57
|
+
return retained;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* The formatter selected for an identifier, read from the kernel's retention
|
|
61
|
+
* without resolving anything. A format this runtime has not activated refuses;
|
|
62
|
+
* use {@link selected} when activation may still be owed.
|
|
63
|
+
*/
|
|
64
|
+
formatter(format) {
|
|
65
|
+
const retained = this.retained(format);
|
|
66
|
+
if (!retained)
|
|
67
|
+
throw unavailableFormat();
|
|
68
|
+
return retained;
|
|
69
|
+
}
|
|
70
|
+
/** The implementation the kernel retains for an identifier, if any. */
|
|
71
|
+
retained(format) {
|
|
72
|
+
return this.runtime.query('cli/output-format')
|
|
73
|
+
.withId(format).peek?.();
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Render one value in a named format through the selected formatter, activating
|
|
77
|
+
* the format when this runtime has not yet done so.
|
|
78
|
+
*/
|
|
79
|
+
async render(data, format, options) {
|
|
80
|
+
await this.load();
|
|
81
|
+
const renderOptions = OutputFormatterRenderOptionsSchema.parse(options ?? {});
|
|
82
|
+
return renderWithFormatter(data, await this.selected(format), renderOptions);
|
|
83
|
+
}
|
|
84
|
+
/** Render through an already-activated formatter; refuses when it is not activated. */
|
|
85
|
+
renderSync(data, format, options) {
|
|
86
|
+
return renderWithFormatter(data, this.formatter(format), OutputFormatterRenderOptionsSchema.parse(options ?? {}));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function unavailableFormat() {
|
|
90
|
+
return new CapabilityError('Output format is unavailable or has not been activated.', 'NOT_FOUND', { reason: 'cli-output-format-unavailable' });
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=format.client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.client.js","sourceRoot":"","sources":["../../../src/support/ui/format.client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EA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ED,uFAAuF;IACvF,UAAU,CAAQ,IAAW,EAAE,MAAc,EAAE,OAAsC;QACpF,OAAO,mBAAmB,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,kCAAkC,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC;IACnH,CAAC;CACD;AAED,SAAS,iBAAiB;IACzB,OAAO,IAAI,eAAe,CAAC,yDAAyD,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,+BAA+B,EAAE,CAAC,CAAC;AACjJ,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type OutputFormatter } from '../../schemas/output-format.ts';
|
|
2
|
+
export declare const cliOutputFormatKind: {
|
|
3
|
+
id: string;
|
|
4
|
+
descriptorSchema: import("zod").ZodObject<{
|
|
5
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
8
|
+
hardware: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
9
|
+
enabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
10
|
+
priority: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
11
|
+
capabilityId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12
|
+
requiredContext: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
13
|
+
optionalContext: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
14
|
+
config: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
15
|
+
retention: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
|
|
16
|
+
maxAgeDays: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
17
|
+
maxEntries: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
18
|
+
maxBytes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
19
|
+
cascadeFrom: import("zod").ZodOptional<import("zod").ZodString>;
|
|
20
|
+
ageField: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
|
+
reason: import("zod").ZodString;
|
|
22
|
+
enforcedBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
|
+
}, import("zod/v4/core").$strip>]>>;
|
|
24
|
+
id: import("zod").ZodString;
|
|
25
|
+
kind: import("zod").ZodLiteral<"cli/output-format">;
|
|
26
|
+
}, import("zod/v4/core").$strip>;
|
|
27
|
+
validateImplementation: (value: OutputFormatter) => boolean;
|
|
28
|
+
contexts: never[];
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=format.kinds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.kinds.d.ts","sourceRoot":"","sources":["../../../src/support/ui/format.kinds.ts"],"names":[],"mappings":"AACA,OAAO,EAAuD,KAAK,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAE3H,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;oCAGC,eAAe;;CAEQ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OutputFormatDescriptorSchema, OutputFormatterSchema } from "../../schemas/output-format.js";
|
|
2
|
+
export const cliOutputFormatKind = {
|
|
3
|
+
id: 'cli/output-format',
|
|
4
|
+
descriptorSchema: OutputFormatDescriptorSchema,
|
|
5
|
+
validateImplementation: (value) => OutputFormatterSchema.safeParse(value).success,
|
|
6
|
+
contexts: []
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=format.kinds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.kinds.js","sourceRoot":"","sources":["../../../src/support/ui/format.kinds.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,qBAAqB,EAAwB,MAAM,gCAAgC,CAAC;AAE3H,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAClC,EAAE,EAAE,mBAAmB;IACvB,gBAAgB,EAAE,4BAA4B;IAC9C,sBAAsB,EAAE,CAAC,KAAsB,EAAE,EAAE,CAAC,qBAAqB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO;IAClG,QAAQ,EAAE,EAAE;CAC2C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const cliOutputFormatPlugin: import("@vibesdotdev/kernel").RuntimePlugin;
|
|
2
|
+
export { cliOutputFormatKind } from './format.kinds.ts';
|
|
3
|
+
export { OutputFormatSchema, OutputFormatDescriptorSchema, OutputFormatterSchema } from '../../schemas/output-format.ts';
|
|
4
|
+
export type { OutputFormatId, OutputFormatDescriptor, OutputFormatter } from '../../schemas/output-format.ts';
|
|
5
|
+
export type { default as CLIFormatClient } from './format.client.ts';
|
|
6
|
+
export default cliOutputFormatPlugin;
|
|
7
|
+
//# sourceMappingURL=format.plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.plugin.d.ts","sourceRoot":"","sources":["../../../src/support/ui/format.plugin.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB,6CAgBhC,CAAC;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACzH,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAC9G,YAAY,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrE,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createRuntimePlugin, loader } from '@vibesdotdev/kernel';
|
|
2
|
+
import { runtimeClientPlugin } from '@vibesdotdev/kernel/client';
|
|
3
|
+
import { cliOutputFormatKind } from "./format.kinds.js";
|
|
4
|
+
export const cliOutputFormatPlugin = createRuntimePlugin({
|
|
5
|
+
id: 'cli-output-formats',
|
|
6
|
+
kinds: [cliOutputFormatKind],
|
|
7
|
+
descriptors: [
|
|
8
|
+
{ id: 'cli-output-formats', kind: 'runtime/client' },
|
|
9
|
+
...['json', 'yaml', 'table', 'markdown', 'text', 'raw'].map(id => ({ id, kind: 'cli/output-format' }))
|
|
10
|
+
],
|
|
11
|
+
loaders: [
|
|
12
|
+
loader('cli-output-formats', () => import("./format.client.js")),
|
|
13
|
+
...['json', 'yaml', 'table', 'markdown', 'text', 'raw'].map(id => loader(id, { kind: 'cli/output-format' }, async () => {
|
|
14
|
+
const { builtinFormats } = await import("./formats.js");
|
|
15
|
+
return { default: builtinFormats[id] };
|
|
16
|
+
}))
|
|
17
|
+
],
|
|
18
|
+
async onRegister(runtime) { await runtime.registerPlugin(runtimeClientPlugin); }
|
|
19
|
+
});
|
|
20
|
+
export { cliOutputFormatKind } from "./format.kinds.js";
|
|
21
|
+
export { OutputFormatSchema, OutputFormatDescriptorSchema, OutputFormatterSchema } from "../../schemas/output-format.js";
|
|
22
|
+
export default cliOutputFormatPlugin;
|
|
23
|
+
//# sourceMappingURL=format.plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.plugin.js","sourceRoot":"","sources":["../../../src/support/ui/format.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,MAAM,qBAAqB,GAAG,mBAAmB,CAAC;IACxD,EAAE,EAAE,oBAAoB;IACxB,KAAK,EAAE,CAAC,mBAAmB,CAAC;IAC5B,WAAW,EAAE;QACZ,EAAE,EAAE,EAAE,oBAAoB,EAAE,IAAI,EAAE,gBAAgB,EAAE;QACpD,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC,CAAC;KACtG;IACD,OAAO,EAAE;QACR,MAAM,CAAC,oBAAoB,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;QAChE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAChE,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,EAAE,KAAK,IAAI,EAAE;YACpD,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,CAAC;YACxD,OAAO,EAAE,OAAO,EAAE,cAAc,CAAC,EAAE,CAAC,EAAE,CAAC;QACxC,CAAC,CAAC,CAAC;KACJ;IACD,KAAK,CAAC,UAAU,CAAC,OAAO,IAAI,MAAM,OAAO,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC;CAChF,CAAC,CAAC;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAGzH,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { OutputFormatter, OutputFormatterRenderOptions, OutputFormats } from '../../schemas/output-format.ts';
|
|
2
|
+
export declare const builtinFormats: Readonly<OutputFormats>;
|
|
3
|
+
export declare function renderWithFormatter<TData>(data: TData, formatter: OutputFormatter, options?: OutputFormatterRenderOptions): string;
|
|
4
|
+
//# sourceMappingURL=formats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formats.d.ts","sourceRoot":"","sources":["../../../src/support/ui/formats.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,4BAA4B,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAqBnH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,aAAa,CAOlD,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,KAAK,EACxC,IAAI,EAAE,KAAK,EACX,SAAS,EAAE,eAAe,EAC1B,OAAO,CAAC,EAAE,4BAA4B,GACpC,MAAM,CAKR"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import YAML from 'yaml';
|
|
3
|
+
import { formatTable, projectColumns } from "./table.js";
|
|
4
|
+
function json(data) { return JSON.stringify(data, null, 2); }
|
|
5
|
+
function yaml(data) { return YAML.stringify(data); }
|
|
6
|
+
function text(data) {
|
|
7
|
+
const parsed = z.string().safeParse(data);
|
|
8
|
+
return parsed.success ? parsed.data : json(data);
|
|
9
|
+
}
|
|
10
|
+
function table(data, options) {
|
|
11
|
+
const tableOptions = options?.table;
|
|
12
|
+
const source = tableOptions && Object.hasOwn(tableOptions, 'data') ? tableOptions.data : data;
|
|
13
|
+
const rows = Array.isArray(source) ? source : [source];
|
|
14
|
+
const projected = tableOptions?.columns?.length
|
|
15
|
+
? rows.map((row) => projectColumns(row, tableOptions.columns ?? []))
|
|
16
|
+
: rows;
|
|
17
|
+
const rendered = formatTable(projected);
|
|
18
|
+
return tableOptions?.title ? `${tableOptions.title}\n${rendered}` : rendered;
|
|
19
|
+
}
|
|
20
|
+
export const builtinFormats = {
|
|
21
|
+
json: { render: json, table: json },
|
|
22
|
+
yaml: { render: yaml, table: yaml },
|
|
23
|
+
table: { render: table, table },
|
|
24
|
+
markdown: { render: text },
|
|
25
|
+
text: { render: text },
|
|
26
|
+
raw: { render: text }
|
|
27
|
+
};
|
|
28
|
+
export function renderWithFormatter(data, formatter, options) {
|
|
29
|
+
const renderOptions = options;
|
|
30
|
+
return renderOptions?.table && formatter.table
|
|
31
|
+
? formatter.table(data, renderOptions)
|
|
32
|
+
: formatter.render(data, renderOptions);
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=formats.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formats.js","sourceRoot":"","sources":["../../../src/support/ui/formats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGzD,SAAS,IAAI,CAAQ,IAAW,IAAY,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AACnF,SAAS,IAAI,CAAQ,IAAW,IAAY,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAE1E,SAAS,IAAI,CAAQ,IAAW;IAC/B,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC1C,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAClD,CAAC;AAED,SAAS,KAAK,CAAQ,IAAW,EAAE,OAAsC;IACxE,MAAM,YAAY,GAAG,OAAO,EAAE,KAAK,CAAC;IACpC,MAAM,MAAM,GAAG,YAAY,IAAI,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IAC9F,MAAM,IAAI,GAAuB,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CA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ptions } from '@vibesdotdev/cli-contracts/context';
|
|
2
|
+
import { type PromptOptions, type ConfirmMessage, type SelectionEntry } from '../../schemas/prompts.ts';
|
|
3
|
+
import type { PromptIO } from './schemas/ui-toolkit.ts';
|
|
4
|
+
export declare function promptValue(io: PromptIO, message: string, options?: PromptOptions): Promise<string | null>;
|
|
5
|
+
export declare function promptPassword(io: PromptIO, message: string, options?: PasswordPromptOptions): Promise<string | null>;
|
|
6
|
+
export declare function promptConfirm(io: PromptIO, message: ConfirmMessage, defaultValue?: boolean): Promise<boolean>;
|
|
7
|
+
export declare function promptSelect<T>(io: PromptIO, message: string, options: SelectionEntry<T>[], defaultValue?: T): Promise<T | null>;
|
|
8
|
+
export declare function promptMultiselect<T>(io: PromptIO, message: string, options: SelectionEntry<T>[], required?: boolean): Promise<T[]>;
|
|
9
|
+
//# sourceMappingURL=prompts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/support/ui/prompts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAGN,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAC5D,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,QAAQ,EAAmB,MAAM,yBAAyB,CAAC;AAuBzE,wBAAsB,WAAW,CAAC,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAGpH;AAcD,wBAAsB,cAAc,CACnC,EAAE,EAAE,QAAQ,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,qBAA0B,GACjC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA0BxB;AAED,wBAAsB,aAAa,CAClC,EAAE,EAAE,QAAQ,EACZ,OAAO,EAAE,cAAc,EACvB,YAAY,UAAQ,GAClB,OAAO,CAAC,OAAO,CAAC,CAMlB;AAED,wBAAsB,YAAY,CAAC,CAAC,EACnC,EAAE,EAAE,QAAQ,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,EAC5B,YAAY,CAAC,EAAE,CAAC,GACd,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAanB;AAED,wBAAsB,iBAAiB,CAAC,CAAC,EACxC,EAAE,EAAE,QAAQ,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,EAC5B,QAAQ,UAAQ,GACd,OAAO,CAAC,CAAC,EAAE,CAAC,CAoBd"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { PromptRequestSchema, PasswordRequestSchema, ConfirmRequestSchema, SelectRequestSchema, MultiselectRequestSchema, parsePromptRequest } from "../../schemas/prompts.js";
|
|
2
|
+
import { readHiddenTerminalLine, readTerminalLine } from "../terminal-input.js";
|
|
3
|
+
/** The facts prompts decide on; an absent runtime observation is non-interactive. */
|
|
4
|
+
function terminalFacts(terminal) {
|
|
5
|
+
const facts = terminal?.();
|
|
6
|
+
return {
|
|
7
|
+
stdinIsTerminal: facts?.stdinIsTerminal === true,
|
|
8
|
+
stdoutIsTerminal: facts?.stdoutIsTerminal === true,
|
|
9
|
+
stdinCanHideInput: facts?.stdinCanHideInput === true
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function isInteractive(terminal) {
|
|
13
|
+
const facts = terminalFacts(terminal);
|
|
14
|
+
return facts.stdinIsTerminal && facts.stdoutIsTerminal;
|
|
15
|
+
}
|
|
16
|
+
/** One line to the prompt's output channel. */
|
|
17
|
+
function writeLine(output, channel, message) {
|
|
18
|
+
output.write(channel, `${message}\n`);
|
|
19
|
+
}
|
|
20
|
+
export async function promptValue(io, message, options = {}) {
|
|
21
|
+
({ message, options } = parsePromptRequest(PromptRequestSchema, { message, options }));
|
|
22
|
+
return readValue(io, message, options);
|
|
23
|
+
}
|
|
24
|
+
async function readValue(io, message, options = {}) {
|
|
25
|
+
if (!isInteractive(io.terminal)) {
|
|
26
|
+
return options.default ?? null;
|
|
27
|
+
}
|
|
28
|
+
const suffix = options.default ? ` [${options.default}]` : '';
|
|
29
|
+
const trimmed = (await readTerminalLine(`${message}${suffix}: `, io.terminalInput)).trim();
|
|
30
|
+
if (trimmed.length > 0) {
|
|
31
|
+
return trimmed;
|
|
32
|
+
}
|
|
33
|
+
return options.default ?? null;
|
|
34
|
+
}
|
|
35
|
+
export async function promptPassword(io, message, options = {}) {
|
|
36
|
+
({ message, options } = parsePromptRequest(PasswordRequestSchema, { message, options }));
|
|
37
|
+
if (!terminalFacts(io.terminal).stdinCanHideInput) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
const maskChar = options.mask === false ? '' : options.mask === true || options.mask === undefined ? '*' : options.mask;
|
|
41
|
+
const readSingle = (promptLabel) => readHiddenTerminalLine(promptLabel.replace(/:\s*$/, '') + ': ', maskChar, io.terminalInput);
|
|
42
|
+
const result = await readSingle(message);
|
|
43
|
+
if (result === null)
|
|
44
|
+
return null;
|
|
45
|
+
if (options.confirm) {
|
|
46
|
+
const confirmMsg = options.confirmMessage ?? `Confirm ${message}`;
|
|
47
|
+
const confirmation = await readSingle(confirmMsg);
|
|
48
|
+
if (confirmation === null)
|
|
49
|
+
return null;
|
|
50
|
+
if (result !== confirmation) {
|
|
51
|
+
writeLine(io.output, 'stderr', 'Values do not match.');
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return result;
|
|
56
|
+
}
|
|
57
|
+
export async function promptConfirm(io, message, defaultValue = false) {
|
|
58
|
+
const request = parsePromptRequest(ConfirmRequestSchema, { message, defaultValue });
|
|
59
|
+
const promptText = request.message.message;
|
|
60
|
+
const initial = request.message.defaultValue ?? request.defaultValue;
|
|
61
|
+
const response = await readValue(io, `${promptText} [y/N]`, { default: initial ? 'y' : 'n' });
|
|
62
|
+
return response?.toLowerCase().startsWith('y') ?? initial;
|
|
63
|
+
}
|
|
64
|
+
export async function promptSelect(io, message, options, defaultValue) {
|
|
65
|
+
({ message, options, defaultValue } = parsePromptRequest(SelectRequestSchema(), { message, options, defaultValue }));
|
|
66
|
+
if (options.length === 0) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
if (!isInteractive(io.terminal)) {
|
|
70
|
+
return defaultValue ?? options[0]?.value ?? null;
|
|
71
|
+
}
|
|
72
|
+
writeLine(io.output, 'stdout', message);
|
|
73
|
+
options.forEach((option, index) => writeLine(io.output, 'stdout', `${index + 1}. ${option.label}`));
|
|
74
|
+
const response = await readValue(io, 'Select option number', { default: '1' });
|
|
75
|
+
const index = Math.max(1, Number(response || '1')) - 1;
|
|
76
|
+
return options[index]?.value ?? defaultValue ?? null;
|
|
77
|
+
}
|
|
78
|
+
export async function promptMultiselect(io, message, options, required = false) {
|
|
79
|
+
({ message, options, required } = parsePromptRequest(MultiselectRequestSchema(), { message, options, required }));
|
|
80
|
+
if (options.length === 0) {
|
|
81
|
+
return [];
|
|
82
|
+
}
|
|
83
|
+
if (!isInteractive(io.terminal)) {
|
|
84
|
+
return required ? [options[0].value] : [];
|
|
85
|
+
}
|
|
86
|
+
writeLine(io.output, 'stdout', message);
|
|
87
|
+
options.forEach((option, index) => writeLine(io.output, 'stdout', `${index + 1}. ${option.label}`));
|
|
88
|
+
const response = await readValue(io, 'Select comma-separated option numbers');
|
|
89
|
+
if (!response) {
|
|
90
|
+
return required ? [options[0].value] : [];
|
|
91
|
+
}
|
|
92
|
+
const values = response
|
|
93
|
+
.split(',')
|
|
94
|
+
.map((part) => Number(part.trim()) - 1)
|
|
95
|
+
.filter((index) => Number.isInteger(index) && index >= 0 && index < options.length)
|
|
96
|
+
.map((index) => options[index].value);
|
|
97
|
+
return values.length > 0 || !required ? values : [options[0].value];
|
|
98
|
+
}
|
|
99
|
+
//# sourceMapping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