@vibesdotdev/cli 0.0.2 → 1.0.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -0
- package/README.md +261 -1
- package/dist/boot/action-lifetime.d.ts +16 -0
- package/dist/boot/action-lifetime.d.ts.map +1 -0
- package/dist/boot/action-lifetime.js +80 -0
- package/dist/boot/action-lifetime.js.map +1 -0
- package/dist/boot/bootstrap.d.ts +190 -0
- package/dist/boot/bootstrap.d.ts.map +1 -0
- package/dist/boot/bootstrap.js +737 -0
- package/dist/boot/bootstrap.js.map +1 -0
- package/dist/boot/cli-flags.d.ts +45 -0
- package/dist/boot/cli-flags.d.ts.map +1 -0
- package/dist/boot/cli-flags.js +113 -0
- package/dist/boot/cli-flags.js.map +1 -0
- package/dist/boot/config.d.ts +25 -0
- package/dist/boot/config.d.ts.map +1 -0
- package/dist/{config.js → boot/config.js} +1 -1
- package/dist/boot/config.js.map +1 -0
- package/dist/boot/external-url.d.ts +13 -0
- package/dist/boot/external-url.d.ts.map +1 -0
- package/dist/boot/external-url.js +66 -0
- package/dist/boot/external-url.js.map +1 -0
- package/dist/boot/host-argv.d.ts +7 -0
- package/dist/boot/host-argv.d.ts.map +1 -0
- package/dist/boot/host-argv.js +8 -0
- package/dist/boot/host-argv.js.map +1 -0
- package/dist/boot/host-bootstrap.d.ts +37 -0
- package/dist/boot/host-bootstrap.d.ts.map +1 -0
- package/dist/boot/host-bootstrap.js +60 -0
- package/dist/boot/host-bootstrap.js.map +1 -0
- package/dist/boot/providers.d.ts +35 -0
- package/dist/boot/providers.d.ts.map +1 -0
- package/dist/boot/providers.js +155 -0
- package/dist/boot/providers.js.map +1 -0
- package/dist/boot/schemas/external-url.d.ts +11 -0
- package/dist/boot/schemas/external-url.d.ts.map +1 -0
- package/dist/boot/schemas/external-url.js +3 -0
- package/dist/boot/schemas/external-url.js.map +1 -0
- package/dist/boot/schemas/host-bootstrap.d.ts +7 -0
- package/dist/boot/schemas/host-bootstrap.d.ts.map +1 -0
- package/dist/boot/schemas/host-bootstrap.js +3 -0
- package/dist/boot/schemas/host-bootstrap.js.map +1 -0
- package/dist/boot/schemas/providers.d.ts +23 -0
- package/dist/boot/schemas/providers.d.ts.map +1 -0
- package/dist/boot/schemas/providers.js +3 -0
- package/dist/boot/schemas/providers.js.map +1 -0
- package/dist/boot/schemas/types.d.ts +4 -0
- package/dist/boot/schemas/types.d.ts.map +1 -0
- package/dist/{api → boot}/schemas/types.js.map +1 -1
- package/dist/boot/tui-plugin-policy.d.ts +8 -0
- package/dist/boot/tui-plugin-policy.d.ts.map +1 -0
- package/dist/boot/tui-plugin-policy.js +26 -0
- package/dist/boot/tui-plugin-policy.js.map +1 -0
- package/dist/boot/version.d.ts +13 -0
- package/dist/boot/version.d.ts.map +1 -0
- package/dist/boot/version.js +14 -0
- package/dist/boot/version.js.map +1 -0
- package/dist/bun/index.d.ts +2 -0
- package/dist/bun/index.d.ts.map +1 -0
- package/dist/bun/index.js +2 -0
- package/dist/bun/index.js.map +1 -0
- package/dist/bun/interactive-host.d.ts +9 -0
- package/dist/bun/interactive-host.d.ts.map +1 -0
- package/dist/bun/interactive-host.js +18 -0
- package/dist/bun/interactive-host.js.map +1 -0
- package/dist/commands/cli.kinds.d.ts +1239 -0
- package/dist/commands/cli.kinds.d.ts.map +1 -0
- package/dist/commands/cli.kinds.js +138 -0
- package/dist/commands/cli.kinds.js.map +1 -0
- package/dist/commands/cli.plugin.d.ts +22 -0
- package/dist/commands/cli.plugin.d.ts.map +1 -0
- package/dist/commands/cli.plugin.js +138 -0
- package/dist/commands/cli.plugin.js.map +1 -0
- package/dist/commands/completion/bash.d.ts +1 -1
- package/dist/commands/completion/bash.d.ts.map +1 -1
- package/dist/commands/completion/bash.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/bash.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/bash.impl.consumer.js +6 -0
- package/dist/commands/completion/bash.impl.consumer.js.map +1 -0
- package/dist/commands/completion/bash.js +4 -2
- package/dist/commands/completion/bash.js.map +1 -1
- package/dist/commands/completion/completion.consumer.plugin.d.ts +3 -0
- package/dist/commands/completion/completion.consumer.plugin.d.ts.map +1 -0
- package/dist/commands/completion/completion.consumer.plugin.js +19 -0
- package/dist/commands/completion/completion.consumer.plugin.js.map +1 -0
- package/dist/commands/completion/completion.descriptor.d.ts +1 -2
- package/dist/commands/completion/completion.descriptor.d.ts.map +1 -1
- package/dist/commands/completion/completion.descriptor.js +11 -4
- package/dist/commands/completion/completion.descriptor.js.map +1 -1
- package/dist/commands/completion/completion.descriptors.d.ts +3 -0
- package/dist/commands/completion/completion.descriptors.d.ts.map +1 -0
- package/dist/commands/completion/completion.descriptors.js +56 -0
- package/dist/commands/completion/completion.descriptors.js.map +1 -0
- package/dist/commands/completion/completion.impl.d.ts +5 -4
- package/dist/commands/completion/completion.impl.d.ts.map +1 -1
- package/dist/commands/completion/completion.impl.js +104 -145
- package/dist/commands/completion/completion.impl.js.map +1 -1
- package/dist/commands/completion/completion.install.impl.consumer.d.ts +4 -0
- package/dist/commands/completion/completion.install.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/completion.install.impl.consumer.js +102 -0
- package/dist/commands/completion/completion.install.impl.consumer.js.map +1 -0
- package/dist/commands/completion/completion.kinds.d.ts +43 -0
- package/dist/commands/completion/completion.kinds.d.ts.map +1 -0
- package/dist/commands/completion/completion.kinds.js +17 -0
- package/dist/commands/completion/completion.kinds.js.map +1 -0
- package/dist/commands/completion/fig.d.ts +1 -1
- package/dist/commands/completion/fig.d.ts.map +1 -1
- package/dist/commands/completion/fig.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/fig.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/fig.impl.consumer.js +6 -0
- package/dist/commands/completion/fig.impl.consumer.js.map +1 -0
- package/dist/commands/completion/fish.d.ts +1 -1
- package/dist/commands/completion/fish.d.ts.map +1 -1
- package/dist/commands/completion/fish.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/fish.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/fish.impl.consumer.js +6 -0
- package/dist/commands/completion/fish.impl.consumer.js.map +1 -0
- package/dist/commands/completion/tree.d.ts +5 -26
- package/dist/commands/completion/tree.d.ts.map +1 -1
- package/dist/commands/completion/tree.js +26 -25
- package/dist/commands/completion/tree.js.map +1 -1
- package/dist/commands/completion/zsh-widget.js +4 -4
- package/dist/commands/completion/zsh.d.ts +1 -1
- package/dist/commands/completion/zsh.d.ts.map +1 -1
- package/dist/commands/completion/zsh.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/zsh.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/zsh.impl.consumer.js +6 -0
- package/dist/commands/completion/zsh.impl.consumer.js.map +1 -0
- package/dist/commands/completion/zsh.js +1 -1
- package/dist/commands/completion/zsh.js.map +1 -1
- package/dist/commands/docs/cli.commands.docs.descriptor.d.ts +8 -0
- package/dist/commands/docs/cli.commands.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.commands.docs.descriptor.js +55 -0
- package/dist/commands/docs/cli.commands.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/cli.docs.descriptor.d.ts +4 -0
- package/dist/commands/docs/cli.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.docs.descriptor.js +44 -0
- package/dist/commands/docs/cli.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.d.ts +4 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.js +40 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/cli.output.docs.descriptor.d.ts +4 -0
- package/dist/commands/docs/cli.output.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.output.docs.descriptor.js +45 -0
- package/dist/commands/docs/cli.output.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/content/cli-commands.json +1 -0
- package/dist/commands/docs/content/cli-groups.json +1 -0
- package/dist/commands/docs/content/cli-output.json +1 -0
- package/dist/commands/docs/doc-paths.d.ts +11 -0
- package/dist/commands/docs/doc-paths.d.ts.map +1 -0
- package/dist/commands/docs/doc-paths.js +32 -0
- package/dist/commands/docs/doc-paths.js.map +1 -0
- package/dist/commands/docs/generate.d.ts +48 -0
- package/dist/commands/docs/generate.d.ts.map +1 -0
- package/dist/commands/docs/generate.js +121 -0
- package/dist/commands/docs/generate.js.map +1 -0
- package/dist/commands/docs/render-command.d.ts +5 -0
- package/dist/commands/docs/render-command.d.ts.map +1 -0
- package/dist/commands/docs/render-command.js +117 -0
- package/dist/commands/docs/render-command.js.map +1 -0
- package/dist/commands/docs/render-group.d.ts +5 -0
- package/dist/commands/docs/render-group.d.ts.map +1 -0
- package/dist/commands/docs/render-group.js +62 -0
- package/dist/commands/docs/render-group.js.map +1 -0
- package/dist/commands/docs/schemas/generate.d.ts +14 -0
- package/dist/commands/docs/schemas/generate.d.ts.map +1 -0
- package/dist/commands/docs/schemas/generate.js +3 -0
- package/dist/commands/docs/schemas/generate.js.map +1 -0
- package/dist/commands/output.d.ts +27 -0
- package/dist/commands/output.d.ts.map +1 -0
- package/dist/commands/output.js +104 -0
- package/dist/commands/output.js.map +1 -0
- package/dist/commands/profile/_utils.d.ts +34 -9
- package/dist/commands/profile/_utils.d.ts.map +1 -1
- package/dist/commands/profile/_utils.js +65 -37
- package/dist/commands/profile/_utils.js.map +1 -1
- package/dist/commands/profile/profile-env.d.ts +42 -0
- package/dist/commands/profile/profile-env.d.ts.map +1 -0
- package/dist/commands/profile/profile-env.js +56 -0
- package/dist/commands/profile/profile-env.js.map +1 -0
- package/dist/commands/profile/profile-group.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile-group.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.create.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.create.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.create.descriptor.js +12 -1
- package/dist/commands/profile/profile.create.descriptor.js.map +1 -1
- package/dist/commands/profile/profile.create.impl.d.ts +2 -6
- package/dist/commands/profile/profile.create.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.create.impl.js +32 -9
- package/dist/commands/profile/profile.create.impl.js.map +1 -1
- package/dist/commands/profile/profile.delete.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.delete.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.delete.impl.d.ts +2 -7
- package/dist/commands/profile/profile.delete.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.delete.impl.js +33 -16
- package/dist/commands/profile/profile.delete.impl.js.map +1 -1
- package/dist/commands/profile/profile.environment.descriptor.d.ts +4 -0
- package/dist/commands/profile/profile.environment.descriptor.d.ts.map +1 -0
- package/dist/commands/profile/profile.environment.descriptor.js +26 -0
- package/dist/commands/profile/profile.environment.descriptor.js.map +1 -0
- package/dist/commands/profile/profile.environment.impl.d.ts +14 -0
- package/dist/commands/profile/profile.environment.impl.d.ts.map +1 -0
- package/dist/commands/profile/profile.environment.impl.js +33 -0
- package/dist/commands/profile/profile.environment.impl.js.map +1 -0
- package/dist/commands/profile/profile.info.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.info.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.info.descriptor.js +5 -1
- package/dist/commands/profile/profile.info.descriptor.js.map +1 -1
- package/dist/commands/profile/profile.info.impl.d.ts +5 -2
- package/dist/commands/profile/profile.info.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.info.impl.js +31 -14
- package/dist/commands/profile/profile.info.impl.js.map +1 -1
- package/dist/commands/profile/profile.list.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.list.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.list.descriptor.js +5 -1
- package/dist/commands/profile/profile.list.descriptor.js.map +1 -1
- package/dist/commands/profile/profile.list.impl.d.ts +17 -2
- package/dist/commands/profile/profile.list.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.list.impl.js +52 -25
- package/dist/commands/profile/profile.list.impl.js.map +1 -1
- package/dist/commands/profile/profile.use.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.use.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.use.impl.d.ts +2 -6
- package/dist/commands/profile/profile.use.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.use.impl.js +40 -10
- package/dist/commands/profile/profile.use.impl.js.map +1 -1
- package/dist/commands/runtime/codegen.command.descriptor.d.ts +26 -12
- package/dist/commands/runtime/codegen.command.descriptor.d.ts.map +1 -1
- package/dist/commands/runtime/codegen.command.descriptor.js +24 -6
- package/dist/commands/runtime/codegen.command.descriptor.js.map +1 -1
- package/dist/commands/runtime/codegen.command.impl.d.ts +15 -2
- package/dist/commands/runtime/codegen.command.impl.d.ts.map +1 -1
- package/dist/commands/runtime/codegen.command.impl.js +17 -30
- package/dist/commands/runtime/codegen.command.impl.js.map +1 -1
- package/dist/commands/runtime/codegen.d.ts +10 -14
- package/dist/commands/runtime/codegen.d.ts.map +1 -1
- package/dist/commands/runtime/codegen.declarations.d.ts +6 -0
- package/dist/commands/runtime/codegen.declarations.d.ts.map +1 -0
- package/dist/commands/runtime/codegen.declarations.js +6 -0
- package/dist/commands/runtime/codegen.declarations.js.map +1 -0
- package/dist/commands/runtime/codegen.js +85 -58
- package/dist/commands/runtime/codegen.js.map +1 -1
- package/dist/commands/runtime/export/markdown-document.d.ts +25 -0
- package/dist/commands/runtime/export/markdown-document.d.ts.map +1 -0
- package/dist/commands/runtime/export/markdown-document.js +38 -0
- package/dist/commands/runtime/export/markdown-document.js.map +1 -0
- package/dist/commands/runtime/export/markdown.d.ts +17 -0
- package/dist/commands/runtime/export/markdown.d.ts.map +1 -0
- package/dist/commands/runtime/export/markdown.js +141 -0
- package/dist/commands/runtime/export/markdown.js.map +1 -0
- package/dist/commands/runtime/export/read.d.ts +27 -0
- package/dist/commands/runtime/export/read.d.ts.map +1 -0
- package/dist/commands/runtime/export/read.js +128 -0
- package/dist/commands/runtime/export/read.js.map +1 -0
- package/dist/commands/runtime/export/reading-notes.d.ts +11 -0
- package/dist/commands/runtime/export/reading-notes.d.ts.map +1 -0
- package/dist/commands/runtime/export/reading-notes.js +45 -0
- package/dist/commands/runtime/export/reading-notes.js.map +1 -0
- package/dist/commands/runtime/export/register.d.ts +34 -0
- package/dist/commands/runtime/export/register.d.ts.map +1 -0
- package/dist/commands/runtime/export/register.js +57 -0
- package/dist/commands/runtime/export/register.js.map +1 -0
- package/dist/commands/runtime/export/schemas.d.ts +104 -0
- package/dist/commands/runtime/export/schemas.d.ts.map +1 -0
- package/dist/commands/runtime/export/schemas.js +38 -0
- package/dist/commands/runtime/export/schemas.js.map +1 -0
- package/dist/commands/runtime/export/write.d.ts +16 -0
- package/dist/commands/runtime/export/write.d.ts.map +1 -0
- package/dist/commands/runtime/export/write.js +36 -0
- package/dist/commands/runtime/export/write.js.map +1 -0
- package/dist/commands/runtime/export.command.impl.d.ts +18 -0
- package/dist/commands/runtime/export.command.impl.d.ts.map +1 -0
- package/dist/commands/runtime/export.command.impl.js +39 -0
- package/dist/commands/runtime/export.command.impl.js.map +1 -0
- package/dist/commands/runtime/export.d.ts +28 -0
- package/dist/commands/runtime/export.d.ts.map +1 -0
- package/dist/commands/runtime/export.descriptor.d.ts +55 -0
- package/dist/commands/runtime/export.descriptor.d.ts.map +1 -0
- package/dist/commands/runtime/export.descriptor.js +58 -0
- package/dist/commands/runtime/export.descriptor.js.map +1 -0
- package/dist/commands/runtime/export.js +28 -0
- package/dist/commands/runtime/export.js.map +1 -0
- package/dist/commands/runtime/index.d.ts +2 -2
- package/dist/commands/runtime/index.d.ts.map +1 -1
- package/dist/commands/runtime/index.js +3 -3
- package/dist/commands/runtime/index.js.map +1 -1
- package/dist/commands/runtime/plugin.d.ts +1 -1
- package/dist/commands/runtime/plugin.d.ts.map +1 -1
- package/dist/commands/runtime/plugin.js +1 -1
- package/dist/commands/runtime/plugin.js.map +1 -1
- package/dist/commands/runtime/runtime-group.descriptor.d.ts +1 -1
- package/dist/commands/runtime/runtime-group.descriptor.d.ts.map +1 -1
- package/dist/commands/schemas/output.d.ts +26 -0
- package/dist/commands/schemas/output.d.ts.map +1 -0
- package/dist/commands/schemas/output.js +14 -0
- package/dist/commands/schemas/output.js.map +1 -0
- package/dist/commands/schemas/profile-environment.d.ts +6 -0
- package/dist/commands/schemas/profile-environment.d.ts.map +1 -0
- package/dist/commands/schemas/profile-environment.js +3 -0
- package/dist/commands/schemas/profile-environment.js.map +1 -0
- package/dist/commands/schemas/profile-list.d.ts +22 -0
- package/dist/commands/schemas/profile-list.d.ts.map +1 -0
- package/dist/commands/schemas/profile-list.js +3 -0
- package/dist/commands/schemas/profile-list.js.map +1 -0
- package/dist/commands/skills/_skills.d.ts +98 -0
- package/dist/commands/skills/_skills.d.ts.map +1 -0
- package/dist/commands/skills/_skills.js +183 -0
- package/dist/commands/skills/_skills.js.map +1 -0
- package/dist/commands/skills/skills-group.descriptor.d.ts +4 -0
- package/dist/commands/skills/skills-group.descriptor.d.ts.map +1 -0
- package/dist/commands/skills/skills-group.descriptor.js +12 -0
- package/dist/commands/skills/skills-group.descriptor.js.map +1 -0
- package/dist/commands/skills/skills.install.descriptor.d.ts +4 -0
- package/dist/commands/skills/skills.install.descriptor.d.ts.map +1 -0
- package/dist/commands/skills/skills.install.descriptor.js +37 -0
- package/dist/commands/skills/skills.install.descriptor.js.map +1 -0
- package/dist/commands/skills/skills.install.impl.d.ts +12 -0
- package/dist/commands/skills/skills.install.impl.d.ts.map +1 -0
- package/dist/commands/skills/skills.install.impl.js +65 -0
- package/dist/commands/skills/skills.install.impl.js.map +1 -0
- package/dist/commands/skills/skills.list.descriptor.d.ts +4 -0
- package/dist/commands/skills/skills.list.descriptor.d.ts.map +1 -0
- package/dist/commands/skills/skills.list.descriptor.js +23 -0
- package/dist/commands/skills/skills.list.descriptor.js.map +1 -0
- package/dist/commands/skills/skills.list.impl.d.ts +11 -0
- package/dist/commands/skills/skills.list.impl.d.ts.map +1 -0
- package/dist/commands/skills/skills.list.impl.js +69 -0
- package/dist/commands/skills/skills.list.impl.js.map +1 -0
- package/dist/core/runtime/shared/context.d.ts +16 -16
- package/dist/core/runtime/shared/context.d.ts.map +1 -1
- package/dist/core/runtime/shared/context.js +20 -35
- package/dist/core/runtime/shared/context.js.map +1 -1
- package/dist/core/runtime/shared/options.d.ts +5 -19
- package/dist/core/runtime/shared/options.d.ts.map +1 -1
- package/dist/core/runtime/shared/options.js +87 -42
- package/dist/core/runtime/shared/options.js.map +1 -1
- package/dist/design-inventory.d.ts +23 -0
- package/dist/design-inventory.d.ts.map +1 -0
- package/dist/design-inventory.js +66 -0
- package/dist/design-inventory.js.map +1 -0
- package/dist/index.d.ts +12 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -25
- package/dist/index.js.map +1 -1
- package/dist/invocation/client.d.ts +20 -0
- package/dist/invocation/client.d.ts.map +1 -0
- package/dist/invocation/client.js +25 -0
- package/dist/invocation/client.js.map +1 -0
- package/dist/invocation/state.d.ts +10 -0
- package/dist/invocation/state.d.ts.map +1 -0
- package/dist/invocation/state.js +32 -0
- package/dist/invocation/state.js.map +1 -0
- package/dist/patterns/builtins/config-namespace-commands.d.ts +10 -0
- package/dist/patterns/builtins/config-namespace-commands.d.ts.map +1 -0
- package/dist/patterns/builtins/config-namespace-commands.js +132 -0
- package/dist/patterns/builtins/config-namespace-commands.js.map +1 -0
- package/dist/patterns/builtins/config-namespace-output.d.ts +9 -0
- package/dist/patterns/builtins/config-namespace-output.d.ts.map +1 -0
- package/dist/patterns/builtins/config-namespace-output.js +31 -0
- package/dist/patterns/builtins/config-namespace-output.js.map +1 -0
- package/dist/patterns/builtins/config-namespace.d.ts +23 -0
- package/dist/patterns/builtins/config-namespace.d.ts.map +1 -0
- package/dist/patterns/builtins/config-namespace.js +70 -0
- package/dist/patterns/builtins/config-namespace.js.map +1 -0
- package/dist/patterns/builtins/crud-commands.d.ts +11 -0
- package/dist/patterns/builtins/crud-commands.d.ts.map +1 -0
- package/dist/patterns/builtins/crud-commands.js +105 -0
- package/dist/patterns/builtins/crud-commands.js.map +1 -0
- package/dist/patterns/builtins/crud-output.d.ts +7 -0
- package/dist/patterns/builtins/crud-output.d.ts.map +1 -0
- package/dist/patterns/builtins/crud-output.js +21 -0
- package/dist/patterns/builtins/crud-output.js.map +1 -0
- package/dist/patterns/builtins/crud.d.ts +16 -0
- package/dist/patterns/builtins/crud.d.ts.map +1 -0
- package/dist/patterns/builtins/crud.js +38 -0
- package/dist/patterns/builtins/crud.js.map +1 -0
- package/dist/patterns/{log-viewer.d.ts → builtins/log-viewer.d.ts} +5 -5
- package/dist/patterns/builtins/log-viewer.d.ts.map +1 -0
- package/dist/patterns/{log-viewer.js → builtins/log-viewer.js} +31 -9
- package/dist/patterns/builtins/log-viewer.js.map +1 -0
- package/dist/patterns/builtins/output.d.ts +5 -0
- package/dist/patterns/builtins/output.d.ts.map +1 -0
- package/dist/patterns/builtins/output.js +25 -0
- package/dist/patterns/builtins/output.js.map +1 -0
- package/dist/patterns/{process-manager.d.ts → builtins/process-manager.d.ts} +9 -4
- package/dist/patterns/builtins/process-manager.d.ts.map +1 -0
- package/dist/patterns/{process-manager.js → builtins/process-manager.js} +46 -29
- package/dist/patterns/builtins/process-manager.js.map +1 -0
- package/dist/patterns/builtins/tool-wrapper.d.ts +18 -0
- package/dist/patterns/builtins/tool-wrapper.d.ts.map +1 -0
- package/dist/patterns/builtins/tool-wrapper.js +124 -0
- package/dist/patterns/builtins/tool-wrapper.js.map +1 -0
- package/dist/patterns/cli-value.d.ts +3 -0
- package/dist/patterns/cli-value.d.ts.map +1 -0
- package/dist/patterns/cli-value.js +42 -0
- package/dist/patterns/cli-value.js.map +1 -0
- package/dist/patterns/index.d.ts +5 -9
- package/dist/patterns/index.d.ts.map +1 -1
- package/dist/patterns/index.js +5 -9
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/pattern.kinds.d.ts +30 -0
- package/dist/patterns/pattern.kinds.d.ts.map +1 -0
- package/dist/patterns/pattern.kinds.js +8 -0
- package/dist/patterns/pattern.kinds.js.map +1 -0
- package/dist/patterns/resolver.d.ts +11 -32
- package/dist/patterns/resolver.d.ts.map +1 -1
- package/dist/patterns/resolver.js +14 -45
- package/dist/patterns/resolver.js.map +1 -1
- package/dist/patterns/schemas.d.ts +9 -492
- package/dist/patterns/schemas.d.ts.map +1 -1
- package/dist/patterns/schemas.js +5 -94
- package/dist/patterns/schemas.js.map +1 -1
- package/dist/schemas/bootstrap.d.ts +242 -0
- package/dist/schemas/bootstrap.d.ts.map +1 -0
- package/dist/schemas/bootstrap.js +7 -0
- package/dist/schemas/bootstrap.js.map +1 -0
- package/dist/schemas/command-implementation.d.ts +34 -0
- package/dist/schemas/command-implementation.d.ts.map +1 -0
- package/dist/schemas/command-implementation.js +31 -0
- package/dist/schemas/command-implementation.js.map +1 -0
- package/dist/schemas/command-recommendations.d.ts +9 -0
- package/dist/schemas/command-recommendations.d.ts.map +1 -0
- package/dist/schemas/command-recommendations.js +14 -0
- package/dist/schemas/command-recommendations.js.map +1 -0
- package/dist/schemas/completion.d.ts +118 -0
- package/dist/schemas/completion.d.ts.map +1 -0
- package/dist/schemas/completion.js +63 -0
- package/dist/schemas/completion.js.map +1 -0
- package/dist/schemas/descriptors.d.ts +1 -129
- package/dist/schemas/descriptors.d.ts.map +1 -1
- package/dist/schemas/descriptors.js +1 -95
- package/dist/schemas/descriptors.js.map +1 -1
- package/dist/schemas/design-inventory.d.ts +20 -0
- package/dist/schemas/design-inventory.d.ts.map +1 -0
- package/dist/schemas/design-inventory.js +10 -0
- package/dist/schemas/design-inventory.js.map +1 -0
- package/dist/schemas/discovery.d.ts +17 -0
- package/dist/schemas/discovery.d.ts.map +1 -0
- package/dist/schemas/discovery.js +15 -0
- package/dist/schemas/discovery.js.map +1 -0
- package/dist/schemas/exit.d.ts +33 -0
- package/dist/schemas/exit.d.ts.map +1 -0
- package/dist/schemas/exit.js +20 -0
- package/dist/schemas/exit.js.map +1 -0
- package/dist/schemas/interactive-host.d.ts +10 -0
- package/dist/schemas/interactive-host.d.ts.map +1 -0
- package/dist/schemas/interactive-host.js +11 -0
- package/dist/schemas/interactive-host.js.map +1 -0
- package/dist/schemas/output-format.d.ts +61 -0
- package/dist/schemas/output-format.d.ts.map +1 -0
- package/dist/schemas/output-format.js +26 -0
- package/dist/schemas/output-format.js.map +1 -0
- package/dist/schemas/pattern-implementation.d.ts +1572 -0
- package/dist/schemas/pattern-implementation.d.ts.map +1 -0
- package/dist/schemas/pattern-implementation.js +12 -0
- package/dist/schemas/pattern-implementation.js.map +1 -0
- package/dist/schemas/pattern-input.d.ts +152 -0
- package/dist/schemas/pattern-input.d.ts.map +1 -0
- package/dist/schemas/pattern-input.js +194 -0
- package/dist/schemas/pattern-input.js.map +1 -0
- package/dist/schemas/pm-context.d.ts +17 -0
- package/dist/schemas/pm-context.d.ts.map +1 -0
- package/dist/schemas/pm-context.js +13 -0
- package/dist/schemas/pm-context.js.map +1 -0
- package/dist/schemas/prompts.d.ts +61 -0
- package/dist/schemas/prompts.d.ts.map +1 -0
- package/dist/schemas/prompts.js +43 -0
- package/dist/schemas/prompts.js.map +1 -0
- package/dist/schemas/runtime-codegen.d.ts +191 -0
- package/dist/schemas/runtime-codegen.d.ts.map +1 -0
- package/dist/schemas/runtime-codegen.js +83 -0
- package/dist/schemas/runtime-codegen.js.map +1 -0
- package/dist/schemas/surface.d.ts +33 -20
- package/dist/schemas/surface.d.ts.map +1 -1
- package/dist/schemas/surface.js +2 -1
- package/dist/schemas/surface.js.map +1 -1
- package/dist/schemas/terminal-input.d.ts +15 -0
- package/dist/schemas/terminal-input.d.ts.map +1 -0
- package/dist/schemas/terminal-input.js +13 -0
- package/dist/schemas/terminal-input.js.map +1 -0
- package/dist/schemas/types.d.ts +1 -201
- package/dist/schemas/types.d.ts.map +1 -1
- package/dist/support/cli-inventory.generated.d.ts +4 -0
- package/dist/support/cli-inventory.generated.d.ts.map +1 -0
- package/dist/support/cli-inventory.generated.js +31 -0
- package/dist/support/cli-inventory.generated.js.map +1 -0
- package/dist/support/logging/cli-startup.logger.descriptor.d.ts.map +1 -0
- package/dist/support/logging/cli-startup.logger.descriptor.js.map +1 -0
- package/dist/support/logging/logging.d.ts +8 -0
- package/dist/support/logging/logging.d.ts.map +1 -0
- package/dist/support/logging/logging.js +13 -0
- package/dist/support/logging/logging.js.map +1 -0
- package/dist/support/terminal-input.d.ts +11 -0
- package/dist/support/terminal-input.d.ts.map +1 -0
- package/dist/support/terminal-input.js +39 -0
- package/dist/support/terminal-input.js.map +1 -0
- package/dist/support/ui/context.descriptor.d.ts +35 -0
- package/dist/support/ui/context.descriptor.d.ts.map +1 -0
- package/dist/{ui.context.descriptor.js → support/ui/context.descriptor.js} +2 -2
- package/dist/support/ui/context.descriptor.js.map +1 -0
- package/dist/support/ui/format.client.d.ts +42 -0
- package/dist/support/ui/format.client.d.ts.map +1 -0
- package/dist/support/ui/format.client.js +92 -0
- package/dist/support/ui/format.client.js.map +1 -0
- package/dist/support/ui/format.kinds.d.ts +30 -0
- package/dist/support/ui/format.kinds.d.ts.map +1 -0
- package/dist/support/ui/format.kinds.js +8 -0
- package/dist/support/ui/format.kinds.js.map +1 -0
- package/dist/support/ui/format.plugin.d.ts +7 -0
- package/dist/support/ui/format.plugin.d.ts.map +1 -0
- package/dist/support/ui/format.plugin.js +23 -0
- package/dist/support/ui/format.plugin.js.map +1 -0
- package/dist/support/ui/formats.d.ts +4 -0
- package/dist/support/ui/formats.d.ts.map +1 -0
- package/dist/support/ui/formats.js +34 -0
- package/dist/support/ui/formats.js.map +1 -0
- package/dist/support/ui/prompts.d.ts +9 -0
- package/dist/support/ui/prompts.d.ts.map +1 -0
- package/dist/support/ui/prompts.js +99 -0
- package/dist/support/ui/prompts.js.map +1 -0
- package/dist/support/ui/schemas/types.d.ts +2 -0
- package/dist/support/ui/schemas/types.d.ts.map +1 -0
- package/dist/support/ui/schemas/types.js.map +1 -0
- package/dist/support/ui/schemas/ui-toolkit.d.ts +45 -0
- package/dist/support/ui/schemas/ui-toolkit.d.ts.map +1 -0
- package/dist/support/ui/schemas/ui-toolkit.js +2 -0
- package/dist/support/ui/schemas/ui-toolkit.js.map +1 -0
- package/dist/support/ui/showcase.d.ts +18 -0
- package/dist/support/ui/showcase.d.ts.map +1 -0
- package/dist/support/ui/showcase.js +101 -0
- package/dist/support/ui/showcase.js.map +1 -0
- package/dist/support/ui/table.d.ts +28 -0
- package/dist/support/ui/table.d.ts.map +1 -0
- package/dist/support/ui/table.js +74 -0
- package/dist/support/ui/table.js.map +1 -0
- package/dist/support/ui/toolkit.d.ts +56 -0
- package/dist/support/ui/toolkit.d.ts.map +1 -0
- package/dist/support/ui/toolkit.js +130 -0
- package/dist/support/ui/toolkit.js.map +1 -0
- package/dist/support/vibesdev/index.d.ts +2 -0
- package/dist/support/vibesdev/index.d.ts.map +1 -0
- package/dist/support/vibesdev/index.js +3 -0
- package/dist/support/vibesdev/index.js.map +1 -0
- package/dist/surface/CLISurface.d.ts +77 -3
- package/dist/surface/CLISurface.d.ts.map +1 -1
- package/dist/surface/CLISurface.js +642 -98
- package/dist/surface/CLISurface.js.map +1 -1
- package/dist/surface/argument-name.d.ts +14 -0
- package/dist/surface/argument-name.d.ts.map +1 -0
- package/dist/surface/argument-name.js +23 -0
- package/dist/surface/argument-name.js.map +1 -0
- package/dist/surface/attach-tui-action.d.ts +35 -9
- package/dist/surface/attach-tui-action.d.ts.map +1 -1
- package/dist/surface/attach-tui-action.js +50 -43
- package/dist/surface/attach-tui-action.js.map +1 -1
- package/dist/surface/build-context.d.ts +2 -2
- package/dist/surface/build-context.d.ts.map +1 -1
- package/dist/surface/build-context.js +26 -44
- package/dist/surface/build-context.js.map +1 -1
- package/dist/surface/command-group-policy.d.ts +2 -3
- package/dist/surface/command-group-policy.d.ts.map +1 -1
- package/dist/surface/command-group-policy.js +1 -11
- package/dist/surface/command-group-policy.js.map +1 -1
- package/dist/surface/command-implementation.d.ts +9 -0
- package/dist/surface/command-implementation.d.ts.map +1 -0
- package/dist/surface/command-implementation.js +19 -0
- package/dist/surface/command-implementation.js.map +1 -0
- package/dist/surface/command-options.d.ts +29 -0
- package/dist/surface/command-options.d.ts.map +1 -0
- package/dist/surface/command-options.js +57 -0
- package/dist/surface/command-options.js.map +1 -0
- package/dist/surface/commander-action.d.ts +25 -0
- package/dist/surface/commander-action.d.ts.map +1 -0
- package/dist/surface/commander-action.js +38 -0
- package/dist/surface/commander-action.js.map +1 -0
- package/dist/surface/discovery-cache.d.ts +3 -15
- package/dist/surface/discovery-cache.d.ts.map +1 -1
- package/dist/surface/discovery-cache.js +6 -33
- package/dist/surface/discovery-cache.js.map +1 -1
- package/dist/surface/exit.d.ts +10 -0
- package/dist/surface/exit.d.ts.map +1 -0
- package/dist/surface/exit.js +33 -0
- package/dist/surface/exit.js.map +1 -0
- package/dist/surface/failure-of.d.ts +9 -0
- package/dist/surface/failure-of.d.ts.map +1 -0
- package/dist/surface/failure-of.js +17 -0
- package/dist/surface/failure-of.js.map +1 -0
- package/dist/surface/failure-output.d.ts +50 -0
- package/dist/surface/failure-output.d.ts.map +1 -0
- package/dist/surface/failure-output.js +84 -0
- package/dist/surface/failure-output.js.map +1 -0
- package/dist/surface/failure-report.d.ts +78 -0
- package/dist/surface/failure-report.d.ts.map +1 -0
- package/dist/surface/failure-report.js +229 -0
- package/dist/surface/failure-report.js.map +1 -0
- package/dist/surface/group-fallback.d.ts +32 -0
- package/dist/surface/group-fallback.d.ts.map +1 -0
- package/dist/surface/group-fallback.js +78 -0
- package/dist/surface/group-fallback.js.map +1 -0
- package/dist/surface/index.d.ts +10 -0
- package/dist/surface/index.d.ts.map +1 -0
- package/dist/surface/index.js +8 -0
- package/dist/surface/index.js.map +1 -0
- package/dist/surface/inherited-options.d.ts +28 -0
- package/dist/surface/inherited-options.d.ts.map +1 -0
- package/dist/surface/inherited-options.js +108 -0
- package/dist/surface/inherited-options.js.map +1 -0
- package/dist/surface/interactive-gate.d.ts +41 -0
- package/dist/surface/interactive-gate.d.ts.map +1 -0
- package/dist/surface/interactive-gate.js +112 -0
- package/dist/surface/interactive-gate.js.map +1 -0
- package/dist/surface/invocation-actions.d.ts +40 -0
- package/dist/surface/invocation-actions.d.ts.map +1 -0
- package/dist/surface/invocation-actions.js +78 -0
- package/dist/surface/invocation-actions.js.map +1 -0
- package/dist/surface/invocation-effects.d.ts +11 -0
- package/dist/surface/invocation-effects.d.ts.map +1 -0
- package/dist/surface/invocation-effects.js +52 -0
- package/dist/surface/invocation-effects.js.map +1 -0
- package/dist/surface/invocation-lifecycle.d.ts +49 -0
- package/dist/surface/invocation-lifecycle.d.ts.map +1 -0
- package/dist/surface/invocation-lifecycle.js +127 -0
- package/dist/surface/invocation-lifecycle.js.map +1 -0
- package/dist/surface/output-format-request.d.ts +23 -0
- package/dist/surface/output-format-request.d.ts.map +1 -0
- package/dist/surface/output-format-request.js +116 -0
- package/dist/surface/output-format-request.js.map +1 -0
- package/dist/surface/pm-context.d.ts +5 -0
- package/dist/surface/pm-context.d.ts.map +1 -0
- package/dist/surface/pm-context.js +69 -0
- package/dist/surface/pm-context.js.map +1 -0
- package/dist/surface/register-commands.d.ts +24 -4
- package/dist/surface/register-commands.d.ts.map +1 -1
- package/dist/surface/register-commands.js +156 -63
- package/dist/surface/register-commands.js.map +1 -1
- package/dist/surface/register-groups.d.ts +4 -4
- package/dist/surface/register-groups.d.ts.map +1 -1
- package/dist/surface/register-groups.js +71 -9
- package/dist/surface/register-groups.js.map +1 -1
- package/dist/surface/schemas/CLISurface.d.ts +31 -0
- package/dist/surface/schemas/CLISurface.d.ts.map +1 -0
- package/dist/surface/schemas/CLISurface.js +2 -0
- package/dist/surface/schemas/CLISurface.js.map +1 -0
- package/dist/surface/schemas/command-implementation.d.ts +20 -0
- package/dist/surface/schemas/command-implementation.d.ts.map +1 -0
- package/dist/surface/schemas/command-implementation.js +2 -0
- package/dist/surface/schemas/command-implementation.js.map +1 -0
- package/dist/surface/schemas/interactive-gate.d.ts +29 -0
- package/dist/surface/schemas/interactive-gate.d.ts.map +1 -0
- package/dist/surface/schemas/interactive-gate.js +2 -0
- package/dist/surface/schemas/interactive-gate.js.map +1 -0
- package/package.json +273 -136
- package/bin/vibes.ts +0 -26
- package/dist/api/client/factory.d.ts +0 -29
- package/dist/api/client/factory.d.ts.map +0 -1
- package/dist/api/client/factory.js +0 -189
- package/dist/api/client/factory.js.map +0 -1
- package/dist/api/schemas/common.d.ts +0 -58
- package/dist/api/schemas/common.d.ts.map +0 -1
- package/dist/api/schemas/common.js +0 -48
- package/dist/api/schemas/common.js.map +0 -1
- package/dist/api/schemas/types.d.ts +0 -30
- package/dist/api/schemas/types.d.ts.map +0 -1
- package/dist/api/services/api.d.ts +0 -14
- package/dist/api/services/api.d.ts.map +0 -1
- package/dist/api/services/api.js +0 -110
- package/dist/api/services/api.js.map +0 -1
- package/dist/api/types.d.ts +0 -6
- package/dist/api/types.d.ts.map +0 -1
- package/dist/api/types.js +0 -5
- package/dist/api/types.js.map +0 -1
- package/dist/bin.d.ts +0 -28
- package/dist/bin.d.ts.map +0 -1
- package/dist/bin.js +0 -73
- package/dist/bin.js.map +0 -1
- package/dist/bootstrap.d.ts +0 -14
- package/dist/bootstrap.d.ts.map +0 -1
- package/dist/bootstrap.js +0 -14
- package/dist/bootstrap.js.map +0 -1
- package/dist/cli.plugin.d.ts +0 -20
- package/dist/cli.plugin.d.ts.map +0 -1
- package/dist/cli.plugin.js +0 -170
- package/dist/cli.plugin.js.map +0 -1
- package/dist/commands/runtime/_logging.d.ts +0 -11
- package/dist/commands/runtime/_logging.d.ts.map +0 -1
- package/dist/commands/runtime/_logging.js +0 -40
- package/dist/commands/runtime/_logging.js.map +0 -1
- package/dist/config.d.ts +0 -17
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/core/index.d.ts +0 -9
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -5
- package/dist/core/index.js.map +0 -1
- package/dist/core/namespace/hook.d.ts +0 -12
- package/dist/core/namespace/hook.d.ts.map +0 -1
- package/dist/core/namespace/hook.js +0 -15
- package/dist/core/namespace/hook.js.map +0 -1
- package/dist/core/namespace/index.d.ts +0 -18
- package/dist/core/namespace/index.d.ts.map +0 -1
- package/dist/core/namespace/index.js +0 -214
- package/dist/core/namespace/index.js.map +0 -1
- package/dist/core/namespace/schemas/index.d.ts +0 -25
- package/dist/core/namespace/schemas/index.d.ts.map +0 -1
- package/dist/core/namespace/schemas/index.js +0 -2
- package/dist/core/namespace/schemas/index.js.map +0 -1
- package/dist/core/plugins/types.d.ts +0 -81
- package/dist/core/plugins/types.d.ts.map +0 -1
- package/dist/core/plugins/types.js +0 -6
- package/dist/core/plugins/types.js.map +0 -1
- package/dist/core/runtime/context.d.ts +0 -25
- package/dist/core/runtime/context.d.ts.map +0 -1
- package/dist/core/runtime/context.js +0 -30
- package/dist/core/runtime/context.js.map +0 -1
- package/dist/core/runtime/hooks.d.ts +0 -12
- package/dist/core/runtime/hooks.d.ts.map +0 -1
- package/dist/core/runtime/hooks.js +0 -2
- package/dist/core/runtime/hooks.js.map +0 -1
- package/dist/core/schemas/manifest.d.ts +0 -24
- package/dist/core/schemas/manifest.d.ts.map +0 -1
- package/dist/core/schemas/manifest.js +0 -6
- package/dist/core/schemas/manifest.js.map +0 -1
- package/dist/core/schemas/types.d.ts +0 -7
- package/dist/core/schemas/types.d.ts.map +0 -1
- package/dist/core/schemas/types.js.map +0 -1
- package/dist/core/ui/interface.d.ts +0 -12
- package/dist/core/ui/interface.d.ts.map +0 -1
- package/dist/core/ui/interface.js +0 -6
- package/dist/core/ui/interface.js.map +0 -1
- package/dist/docs/cli.commands.docs.descriptor.d.ts +0 -4
- package/dist/docs/cli.commands.docs.descriptor.d.ts.map +0 -1
- package/dist/docs/cli.commands.docs.descriptor.js +0 -207
- package/dist/docs/cli.commands.docs.descriptor.js.map +0 -1
- package/dist/docs/cli.groups.docs.descriptor.d.ts +0 -4
- package/dist/docs/cli.groups.docs.descriptor.d.ts.map +0 -1
- package/dist/docs/cli.groups.docs.descriptor.js +0 -330
- package/dist/docs/cli.groups.docs.descriptor.js.map +0 -1
- package/dist/docs/cli.output.docs.descriptor.d.ts +0 -4
- package/dist/docs/cli.output.docs.descriptor.d.ts.map +0 -1
- package/dist/docs/cli.output.docs.descriptor.js +0 -442
- package/dist/docs/cli.output.docs.descriptor.js.map +0 -1
- package/dist/docs/types.d.ts +0 -19
- package/dist/docs/types.d.ts.map +0 -1
- package/dist/docs/types.js +0 -2
- package/dist/docs/types.js.map +0 -1
- package/dist/errors.d.ts +0 -74
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -113
- package/dist/errors.js.map +0 -1
- package/dist/logging/cli-startup.logger.descriptor.d.ts.map +0 -1
- package/dist/logging/cli-startup.logger.descriptor.js.map +0 -1
- package/dist/logging.d.ts +0 -4
- package/dist/logging.d.ts.map +0 -1
- package/dist/logging.js +0 -21
- package/dist/logging.js.map +0 -1
- package/dist/patterns/config-namespace.d.ts +0 -23
- package/dist/patterns/config-namespace.d.ts.map +0 -1
- package/dist/patterns/config-namespace.js +0 -218
- package/dist/patterns/config-namespace.js.map +0 -1
- package/dist/patterns/crud.d.ts +0 -23
- package/dist/patterns/crud.d.ts.map +0 -1
- package/dist/patterns/crud.js +0 -164
- package/dist/patterns/crud.js.map +0 -1
- package/dist/patterns/log-viewer.d.ts.map +0 -1
- package/dist/patterns/log-viewer.js.map +0 -1
- package/dist/patterns/pattern-types.d.ts +0 -21
- package/dist/patterns/pattern-types.d.ts.map +0 -1
- package/dist/patterns/pattern-types.js +0 -7
- package/dist/patterns/pattern-types.js.map +0 -1
- package/dist/patterns/process-manager.d.ts.map +0 -1
- package/dist/patterns/process-manager.js.map +0 -1
- package/dist/patterns/resolver.contracts.d.ts +0 -14
- package/dist/patterns/resolver.contracts.d.ts.map +0 -1
- package/dist/patterns/resolver.contracts.js +0 -9
- package/dist/patterns/resolver.contracts.js.map +0 -1
- package/dist/patterns/tool-wrapper.d.ts +0 -18
- package/dist/patterns/tool-wrapper.d.ts.map +0 -1
- package/dist/patterns/tool-wrapper.js +0 -130
- package/dist/patterns/tool-wrapper.js.map +0 -1
- package/dist/providers.d.ts +0 -105
- package/dist/providers.d.ts.map +0 -1
- package/dist/providers.js +0 -164
- package/dist/providers.js.map +0 -1
- package/dist/support/ui-toolkit.d.ts +0 -62
- package/dist/support/ui-toolkit.d.ts.map +0 -1
- package/dist/support/ui-toolkit.js +0 -172
- package/dist/support/ui-toolkit.js.map +0 -1
- package/dist/surface.d.ts +0 -9
- package/dist/surface.d.ts.map +0 -1
- package/dist/surface.js +0 -8
- package/dist/surface.js.map +0 -1
- package/dist/types.d.ts +0 -4
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/ui/schemas/types.d.ts +0 -2
- package/dist/ui/schemas/types.d.ts.map +0 -1
- package/dist/ui/schemas/types.js +0 -2
- package/dist/ui/schemas/types.js.map +0 -1
- package/dist/ui/toolkit/VibesUIToolkit.d.ts +0 -2
- package/dist/ui/toolkit/VibesUIToolkit.d.ts.map +0 -1
- package/dist/ui/toolkit/VibesUIToolkit.js +0 -2
- package/dist/ui/toolkit/VibesUIToolkit.js.map +0 -1
- package/dist/ui.context.descriptor.d.ts +0 -21
- package/dist/ui.context.descriptor.d.ts.map +0 -1
- package/dist/ui.context.descriptor.js.map +0 -1
- package/dist/utils/open.d.ts +0 -2
- package/dist/utils/open.d.ts.map +0 -1
- package/dist/utils/open.js +0 -30
- package/dist/utils/open.js.map +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -2
- package/dist/version.js.map +0 -1
- package/src/api/client/factory.ts +0 -265
- package/src/api/schemas/common.ts +0 -50
- package/src/api/schemas/types.ts +0 -32
- package/src/api/services/api.ts +0 -129
- package/src/api/types.ts +0 -12
- package/src/bin.ts +0 -84
- package/src/bootstrap.ts +0 -19
- package/src/cli.plugin.d.ts +0 -19
- package/src/cli.plugin.ts +0 -202
- package/src/commands/completion/bash.ts +0 -68
- package/src/commands/completion/completion.descriptor.ts +0 -48
- package/src/commands/completion/completion.impl.ts +0 -188
- package/src/commands/completion/fig.ts +0 -78
- package/src/commands/completion/fish.ts +0 -52
- package/src/commands/completion/tree.ts +0 -115
- package/src/commands/completion/zsh-widget.ts +0 -39
- package/src/commands/completion/zsh.ts +0 -165
- package/src/commands/profile/_utils.ts +0 -72
- package/src/commands/profile/profile-group.descriptor.ts +0 -14
- package/src/commands/profile/profile.create.descriptor.ts +0 -24
- package/src/commands/profile/profile.create.impl.ts +0 -44
- package/src/commands/profile/profile.delete.descriptor.ts +0 -31
- package/src/commands/profile/profile.delete.impl.ts +0 -71
- package/src/commands/profile/profile.info.descriptor.ts +0 -25
- package/src/commands/profile/profile.info.impl.ts +0 -51
- package/src/commands/profile/profile.list.descriptor.ts +0 -18
- package/src/commands/profile/profile.list.impl.ts +0 -46
- package/src/commands/profile/profile.use.descriptor.ts +0 -25
- package/src/commands/profile/profile.use.impl.ts +0 -39
- package/src/commands/runtime/_logging.ts +0 -47
- package/src/commands/runtime/codegen.command.descriptor.ts +0 -18
- package/src/commands/runtime/codegen.command.impl.ts +0 -44
- package/src/commands/runtime/codegen.ts +0 -84
- package/src/commands/runtime/index.ts +0 -14
- package/src/commands/runtime/plugin.ts +0 -7
- package/src/commands/runtime/runtime-group.descriptor.ts +0 -12
- package/src/config.ts +0 -22
- package/src/core/index.ts +0 -9
- package/src/core/namespace/hook.ts +0 -25
- package/src/core/namespace/index.ts +0 -298
- package/src/core/namespace/schemas/index.ts +0 -25
- package/src/core/plugins/types.ts +0 -87
- package/src/core/runtime/context.ts +0 -50
- package/src/core/runtime/hooks.ts +0 -12
- package/src/core/runtime/shared/context.ts +0 -65
- package/src/core/runtime/shared/options.ts +0 -60
- package/src/core/schemas/manifest.ts +0 -26
- package/src/core/schemas/types.ts +0 -6
- package/src/core/ui/interface.ts +0 -12
- package/src/docs/cli.commands.docs.descriptor.ts +0 -210
- package/src/docs/cli.groups.docs.descriptor.ts +0 -333
- package/src/docs/cli.output.docs.descriptor.ts +0 -445
- package/src/docs/types.ts +0 -18
- package/src/errors.ts +0 -123
- package/src/index.ts +0 -76
- package/src/logging/cli-startup.logger.descriptor.ts +0 -16
- package/src/logging.ts +0 -35
- package/src/patterns/config-namespace.ts +0 -251
- package/src/patterns/crud.ts +0 -217
- package/src/patterns/index.ts +0 -24
- package/src/patterns/log-viewer.ts +0 -118
- package/src/patterns/pattern-types.ts +0 -22
- package/src/patterns/process-manager.ts +0 -180
- package/src/patterns/resolver.contracts.ts +0 -15
- package/src/patterns/resolver.ts +0 -86
- package/src/patterns/schemas.ts +0 -146
- package/src/patterns/tool-wrapper.ts +0 -165
- package/src/providers.ts +0 -282
- package/src/schemas/descriptors.d.ts +0 -119
- package/src/schemas/descriptors.ts +0 -136
- package/src/schemas/surface.ts +0 -52
- package/src/schemas/types.d.ts +0 -195
- package/src/schemas/types.ts +0 -225
- package/src/support/ui-toolkit.ts +0 -224
- package/src/surface/CLISurface.ts +0 -193
- package/src/surface/attach-tui-action.ts +0 -76
- package/src/surface/build-context.ts +0 -49
- package/src/surface/command-group-policy.ts +0 -52
- package/src/surface/discovery-cache.ts +0 -143
- package/src/surface/register-commands.ts +0 -266
- package/src/surface/register-groups.ts +0 -84
- package/src/surface.ts +0 -9
- package/src/types.ts +0 -3
- package/src/ui/schemas/types.ts +0 -1
- package/src/ui/toolkit/VibesUIToolkit.ts +0 -1
- package/src/ui.context.descriptor.ts +0 -13
- package/src/utils/open.ts +0 -36
- package/src/version.ts +0 -10
- /package/dist/{api → boot}/schemas/types.js +0 -0
- /package/dist/{logging → support/logging}/cli-startup.logger.descriptor.d.ts +0 -0
- /package/dist/{logging → support/logging}/cli-startup.logger.descriptor.js +0 -0
- /package/dist/{core → support/ui}/schemas/types.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pattern-implementation.d.ts","sourceRoot":"","sources":["../../src/schemas/pattern-implementation.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,iBAAS,2BAA2B,CAAC,WAAW,SAAS,oBAAoB;uCAE/D,WAAW,UACf,OAAO,WACN,cAAc,KACnB,OAAO,CAAC,IAAI,GAAG,OAAO,GAAG,SAAS,OAAO,EAAE,CAAC,eAHpC,WAAW,UACf,OAAO,WACN,cAAc,KACnB,OAAO,CAAC,IAAI,GAAG,OAAO,GAAG,SAAS,OAAO,EAAE,CAAC;kBAKjD;AAED,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAFxC,OAAO,WACN,cAAc,KACnB,OAAO,CAAC,IAAI,GAAG,OAAO,GAAG,SAAS,OAAO,EAAE,CAAC;iBAO4C,CAAC;AAC/F,MAAM,MAAM,qBAAqB,CAAC,WAAW,SAAS,oBAAoB,GAAG,oBAAoB,IAChG,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,2BAA2B,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;AAEtE,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;iBAEnD,CAAC;AACH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** CLI-owned, metadata-safe pattern admission contracts. */
|
|
2
|
+
import * as z from 'zod/v4';
|
|
3
|
+
import { RuntimeDescriptorSchema } from '@vibesdotdev/kernel/schemas/descriptor';
|
|
4
|
+
function patternImplementationSchema() {
|
|
5
|
+
const register = z.custom((value) => z.function().safeParse(value).success);
|
|
6
|
+
return z.object({ register });
|
|
7
|
+
}
|
|
8
|
+
export const PatternImplementationSchema = patternImplementationSchema();
|
|
9
|
+
export const CLIPatternImplementationDescriptorSchema = RuntimeDescriptorSchema.extend({
|
|
10
|
+
kind: z.literal('cli/pattern')
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=pattern-implementation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pattern-implementation.js","sourceRoot":"","sources":["../../src/schemas/pattern-implementation.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAKjF,SAAS,2BAA2B;IACnC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAKxB,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAChD,CAAC;IAEF,OAAO,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC/B,CAAC;AAED,MAAM,CAAC,MAAM,2BAA2B,GAAG,2BAA2B,EAAwB,CAAC;AAI/F,MAAM,CAAC,MAAM,wCAAwC,GAAG,uBAAuB,CAAC,MAAM,CAAC;IACtF,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;CAC9B,CAAC,CAAC"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/** Schemas for operands generated by CLI patterns. */
|
|
2
|
+
import * as z from 'zod/v4';
|
|
3
|
+
import { type JsonValue } from '@vibesdotdev/kernel/schemas/json';
|
|
4
|
+
export declare function parsePatternInput<TSchema extends z.ZodType>(schema: TSchema, input: unknown): z.output<TSchema>;
|
|
5
|
+
export declare const JsonTextValueSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string | number | boolean | import("@vibesdotdev/kernel/schemas/json").JsonObject | import("@vibesdotdev/kernel/schemas/json").JsonArray | null, string>>;
|
|
6
|
+
export type JsonTextValue = z.infer<typeof JsonTextValueSchema>;
|
|
7
|
+
export declare const CRUDListInputSchema: z.ZodObject<{
|
|
8
|
+
format: z.ZodString;
|
|
9
|
+
limit: z.ZodCoercedNumber<unknown>;
|
|
10
|
+
offset: z.ZodCoercedNumber<unknown>;
|
|
11
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type CRUDListInput = z.infer<typeof CRUDListInputSchema>;
|
|
14
|
+
export declare const CRUDGetInputSchema: z.ZodObject<{
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
format: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type CRUDGetInput = z.infer<typeof CRUDGetInputSchema>;
|
|
19
|
+
export declare const CRUDCreateInputSchema: z.ZodObject<{
|
|
20
|
+
format: z.ZodString;
|
|
21
|
+
json: z.ZodPipe<z.ZodString, z.ZodTransform<string | number | boolean | import("@vibesdotdev/kernel/schemas/json").JsonObject | import("@vibesdotdev/kernel/schemas/json").JsonArray | null, string>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type CRUDCreateInput = z.infer<typeof CRUDCreateInputSchema>;
|
|
24
|
+
export declare const CRUDSetPairSchema: z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
25
|
+
key: string;
|
|
26
|
+
value: string;
|
|
27
|
+
}, string>>;
|
|
28
|
+
export type CRUDSetPair = z.infer<typeof CRUDSetPairSchema>;
|
|
29
|
+
export declare const CRUDUpdateInputSchema: z.ZodObject<{
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
format: z.ZodString;
|
|
32
|
+
json: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | number | boolean | import("@vibesdotdev/kernel/schemas/json").JsonObject | import("@vibesdotdev/kernel/schemas/json").JsonArray | null, string>>>;
|
|
33
|
+
set: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
34
|
+
key: string;
|
|
35
|
+
value: string;
|
|
36
|
+
}, string>>>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export type CRUDUpdateInput = z.infer<typeof CRUDUpdateInputSchema>;
|
|
39
|
+
export declare const CRUDDeleteInputSchema: z.ZodObject<{
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
yes: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type CRUDDeleteInput = z.infer<typeof CRUDDeleteInputSchema>;
|
|
44
|
+
export declare const ConfigGetInputSchema: z.ZodObject<{
|
|
45
|
+
key: z.ZodOptional<z.ZodString>;
|
|
46
|
+
format: z.ZodString;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export type ConfigGetInput = z.infer<typeof ConfigGetInputSchema>;
|
|
49
|
+
export declare const ConfigSetInputSchema: z.ZodObject<{
|
|
50
|
+
key: z.ZodString;
|
|
51
|
+
value: z.ZodString;
|
|
52
|
+
json: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export type ConfigSetInput = z.infer<typeof ConfigSetInputSchema>;
|
|
55
|
+
export declare const ConfigResetInputSchema: z.ZodObject<{
|
|
56
|
+
key: z.ZodOptional<z.ZodString>;
|
|
57
|
+
all: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
yes: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
export type ConfigResetInput = z.infer<typeof ConfigResetInputSchema>;
|
|
61
|
+
export declare const ConfigListInputSchema: z.ZodObject<{
|
|
62
|
+
withValues: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
+
withDefaults: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export type ConfigListInput = z.infer<typeof ConfigListInputSchema>;
|
|
66
|
+
export declare const ToolWrapperCommandInputSchema: z.ZodObject<{
|
|
67
|
+
positionals: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodUndefined]>>;
|
|
68
|
+
options: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>>>;
|
|
69
|
+
format: z.ZodString;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export type ToolWrapperCommandInput = z.infer<typeof ToolWrapperCommandInputSchema>;
|
|
72
|
+
export declare const ToolInputSchema: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>>>;
|
|
73
|
+
export type ToolInput = z.infer<typeof ToolInputSchema>;
|
|
74
|
+
export declare const ToolWrapperToolInputSchema: z.ZodPipe<z.ZodObject<{
|
|
75
|
+
input: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>>>;
|
|
76
|
+
choices: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
77
|
+
}, z.core.$strip>, z.ZodTransform<Record<string, JsonValue | undefined>, {
|
|
78
|
+
input: Record<string, JsonValue | undefined>;
|
|
79
|
+
choices: Record<string, string[]>;
|
|
80
|
+
}>>;
|
|
81
|
+
export type ToolWrapperToolInput = z.infer<typeof ToolWrapperToolInputSchema>;
|
|
82
|
+
export declare const ToolOutputSchema: z.ZodOptional<z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>>;
|
|
83
|
+
export type ToolOutput = z.infer<typeof ToolOutputSchema>;
|
|
84
|
+
export declare const ProcessManagerStartInputSchema: z.ZodObject<{
|
|
85
|
+
detach: z.ZodBoolean;
|
|
86
|
+
env: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<{
|
|
87
|
+
[k: string]: string;
|
|
88
|
+
}, string[]>>>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export type ProcessManagerStartInput = z.infer<typeof ProcessManagerStartInputSchema>;
|
|
91
|
+
export declare const ProcessManagerStopInputSchema: z.ZodPipe<z.ZodObject<{
|
|
92
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
timeout: z.ZodCoercedNumber<unknown>;
|
|
94
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
95
|
+
force: boolean | undefined;
|
|
96
|
+
timeoutMilliseconds: number;
|
|
97
|
+
}, {
|
|
98
|
+
timeout: number;
|
|
99
|
+
force?: boolean | undefined;
|
|
100
|
+
}>>;
|
|
101
|
+
export type ProcessManagerStopInput = z.infer<typeof ProcessManagerStopInputSchema>;
|
|
102
|
+
export declare const ProcessManagerRestartInputSchema: z.ZodObject<{
|
|
103
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
export type ProcessManagerRestartInput = z.infer<typeof ProcessManagerRestartInputSchema>;
|
|
106
|
+
export declare const ProcessManagerStatusInputSchema: z.ZodObject<{
|
|
107
|
+
format: z.ZodString;
|
|
108
|
+
health: z.ZodOptional<z.ZodBoolean>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export type ProcessManagerStatusInput = z.infer<typeof ProcessManagerStatusInputSchema>;
|
|
111
|
+
export declare const ProcessManagerLogsInputSchema: z.ZodObject<{
|
|
112
|
+
lines: z.ZodCoercedNumber<unknown>;
|
|
113
|
+
follow: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
export type ProcessManagerLogsInput = z.infer<typeof ProcessManagerLogsInputSchema>;
|
|
116
|
+
export declare const LogViewerTailInputSchema: z.ZodObject<{
|
|
117
|
+
lines: z.ZodCoercedNumber<unknown>;
|
|
118
|
+
levels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
119
|
+
follow: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
+
filters: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
export type LogViewerTailInput = z.infer<typeof LogViewerTailInputSchema>;
|
|
123
|
+
export declare const LogViewerSearchInputSchema: z.ZodObject<{
|
|
124
|
+
pattern: z.ZodString;
|
|
125
|
+
lines: z.ZodCoercedNumber<unknown>;
|
|
126
|
+
levels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
127
|
+
since: z.ZodOptional<z.ZodString>;
|
|
128
|
+
until: z.ZodOptional<z.ZodString>;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
export type LogViewerSearchInput = z.infer<typeof LogViewerSearchInputSchema>;
|
|
131
|
+
declare const StorageListOptionsSchema: z.ZodObject<{
|
|
132
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
133
|
+
offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
134
|
+
sortBy: z.ZodOptional<z.ZodString>;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
export type StorageListOptions = z.infer<typeof StorageListOptionsSchema>;
|
|
137
|
+
export declare const StorageAdapterSchema: z.ZodObject<{
|
|
138
|
+
list: z.ZodCustom<(options?: StorageListOptions) => Promise<JsonValue[]>, (options?: StorageListOptions) => Promise<JsonValue[]>>;
|
|
139
|
+
get: z.ZodCustom<(id: string) => Promise<JsonValue | null>, (id: string) => Promise<JsonValue | null>>;
|
|
140
|
+
create: z.ZodCustom<(data: JsonValue) => Promise<JsonValue>, (data: JsonValue) => Promise<JsonValue>>;
|
|
141
|
+
update: z.ZodCustom<(id: string, data: JsonValue) => Promise<JsonValue>, (id: string, data: JsonValue) => Promise<JsonValue>>;
|
|
142
|
+
delete: z.ZodCustom<(id: string) => Promise<void>, (id: string) => Promise<void>>;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
export type StorageAdapter = z.infer<typeof StorageAdapterSchema>;
|
|
145
|
+
export declare const ConfigListRowSchema: z.ZodObject<{
|
|
146
|
+
key: z.ZodString;
|
|
147
|
+
value: z.ZodOptional<z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>>;
|
|
148
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
export type ConfigListRow = z.infer<typeof ConfigListRowSchema>;
|
|
151
|
+
export {};
|
|
152
|
+
//# sourceMappingURL=pattern-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pattern-input.d.ts","sourceRoot":"","sources":["../../src/schemas/pattern-input.ts"],"names":[],"mappings":"AAA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AAC;iBAUhE,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,mBAAmB;;;;iBAI9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
/** Schemas for operands generated by CLI patterns. */
|
|
2
|
+
import * as z from 'zod/v4';
|
|
3
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
4
|
+
import { JsonValueSchema } from '@vibesdotdev/kernel/schemas/json';
|
|
5
|
+
import { OutputFormatSchema } from "./output-format.js";
|
|
6
|
+
const PositiveIntegerSchema = z.coerce.number().int().positive();
|
|
7
|
+
const NonNegativeIntegerSchema = z.coerce.number().int().nonnegative();
|
|
8
|
+
const MaximumTimeoutSeconds = Math.floor(Number.MAX_SAFE_INTEGER / 1000);
|
|
9
|
+
export function parsePatternInput(schema, input) {
|
|
10
|
+
const parsed = schema.safeParse(input);
|
|
11
|
+
if (!parsed.success) {
|
|
12
|
+
throw new CapabilityError('Pattern command input is invalid.', 'INVALID_INPUT', {
|
|
13
|
+
reason: 'cli-pattern-input-invalid',
|
|
14
|
+
retryable: false,
|
|
15
|
+
cause: parsed.error
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return parsed.data;
|
|
19
|
+
}
|
|
20
|
+
function parseJsonText(text) {
|
|
21
|
+
let decoded;
|
|
22
|
+
try {
|
|
23
|
+
decoded = JSON.parse(text);
|
|
24
|
+
}
|
|
25
|
+
catch (cause) {
|
|
26
|
+
if (!(cause instanceof SyntaxError))
|
|
27
|
+
throw cause;
|
|
28
|
+
throw new CapabilityError('Pattern command input is invalid.', 'INVALID_INPUT', {
|
|
29
|
+
reason: 'cli-pattern-input-invalid',
|
|
30
|
+
retryable: false,
|
|
31
|
+
cause
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
const parsed = JsonValueSchema.safeParse(decoded);
|
|
35
|
+
if (!parsed.success) {
|
|
36
|
+
throw new CapabilityError('Pattern command input is invalid.', 'INVALID_INPUT', {
|
|
37
|
+
reason: 'cli-pattern-input-invalid',
|
|
38
|
+
retryable: false,
|
|
39
|
+
cause: parsed.error
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return parsed.data;
|
|
43
|
+
}
|
|
44
|
+
export const JsonTextValueSchema = z.string().transform(parseJsonText);
|
|
45
|
+
export const CRUDListInputSchema = z.object({
|
|
46
|
+
format: OutputFormatSchema,
|
|
47
|
+
limit: PositiveIntegerSchema,
|
|
48
|
+
offset: NonNegativeIntegerSchema,
|
|
49
|
+
sort: z.string().optional()
|
|
50
|
+
});
|
|
51
|
+
export const CRUDGetInputSchema = z.object({
|
|
52
|
+
id: z.string().min(1),
|
|
53
|
+
format: OutputFormatSchema
|
|
54
|
+
});
|
|
55
|
+
export const CRUDCreateInputSchema = z.object({
|
|
56
|
+
format: OutputFormatSchema,
|
|
57
|
+
json: JsonTextValueSchema
|
|
58
|
+
});
|
|
59
|
+
export const CRUDSetPairSchema = z.string().transform((pair, context) => {
|
|
60
|
+
const separator = pair.indexOf('=');
|
|
61
|
+
if (separator <= 0) {
|
|
62
|
+
context.addIssue({ code: 'custom', message: 'Expected key=value.' });
|
|
63
|
+
return z.NEVER;
|
|
64
|
+
}
|
|
65
|
+
return { key: pair.slice(0, separator), value: pair.slice(separator + 1) };
|
|
66
|
+
});
|
|
67
|
+
export const CRUDUpdateInputSchema = z.object({
|
|
68
|
+
id: z.string().min(1),
|
|
69
|
+
format: OutputFormatSchema,
|
|
70
|
+
json: JsonTextValueSchema.optional(),
|
|
71
|
+
set: z.array(CRUDSetPairSchema).optional()
|
|
72
|
+
}).refine(({ json, set }) => json !== undefined || set !== undefined);
|
|
73
|
+
export const CRUDDeleteInputSchema = z.object({
|
|
74
|
+
id: z.string().min(1),
|
|
75
|
+
yes: z.boolean().optional()
|
|
76
|
+
});
|
|
77
|
+
export const ConfigGetInputSchema = z.object({
|
|
78
|
+
key: z.string().min(1).optional(),
|
|
79
|
+
format: OutputFormatSchema
|
|
80
|
+
});
|
|
81
|
+
export const ConfigSetInputSchema = z.object({
|
|
82
|
+
key: z.string().min(1),
|
|
83
|
+
value: z.string(),
|
|
84
|
+
json: z.boolean().optional()
|
|
85
|
+
});
|
|
86
|
+
export const ConfigResetInputSchema = z.object({
|
|
87
|
+
key: z.string().min(1).optional(),
|
|
88
|
+
all: z.boolean().optional(),
|
|
89
|
+
yes: z.boolean().optional()
|
|
90
|
+
}).refine(({ key, all }) => key !== undefined || all === true);
|
|
91
|
+
export const ConfigListInputSchema = z.object({
|
|
92
|
+
withValues: z.boolean().optional(),
|
|
93
|
+
withDefaults: z.boolean().optional()
|
|
94
|
+
});
|
|
95
|
+
/**
|
|
96
|
+
* One generated command positional: text, a variadic list of text (Commander
|
|
97
|
+
* hands a variadic argument as its own array), or absent because an optional
|
|
98
|
+
* operand was not typed.
|
|
99
|
+
*/
|
|
100
|
+
const PositionalValueSchema = z.union([z.string(), z.array(z.string()), z.undefined()]);
|
|
101
|
+
export const ToolWrapperCommandInputSchema = z.object({
|
|
102
|
+
positionals: z.array(PositionalValueSchema),
|
|
103
|
+
options: z.record(z.string(), JsonValueSchema.optional()),
|
|
104
|
+
format: OutputFormatSchema
|
|
105
|
+
});
|
|
106
|
+
export const ToolInputSchema = z.record(z.string(), JsonValueSchema.optional());
|
|
107
|
+
export const ToolWrapperToolInputSchema = z.object({
|
|
108
|
+
input: ToolInputSchema,
|
|
109
|
+
choices: z.record(z.string(), z.array(z.string()))
|
|
110
|
+
}).superRefine(({ input, choices }, context) => {
|
|
111
|
+
for (const [parameter, allowed] of Object.entries(choices)) {
|
|
112
|
+
const value = input[parameter];
|
|
113
|
+
const stringValue = z.string().safeParse(value);
|
|
114
|
+
if (value !== undefined && (!stringValue.success || !allowed.includes(stringValue.data))) {
|
|
115
|
+
context.addIssue({ code: 'custom', message: 'Tool option is outside its declared choices.' });
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}).transform(({ input }) => input);
|
|
119
|
+
export const ToolOutputSchema = JsonValueSchema.optional();
|
|
120
|
+
const EnvironmentAssignmentsSchema = z.array(z.string()).transform((assignments, context) => {
|
|
121
|
+
const entries = [];
|
|
122
|
+
for (const assignment of assignments) {
|
|
123
|
+
const separator = assignment.indexOf('=');
|
|
124
|
+
if (separator <= 0) {
|
|
125
|
+
context.addIssue({ code: 'custom', message: 'Expected NAME=value.' });
|
|
126
|
+
return z.NEVER;
|
|
127
|
+
}
|
|
128
|
+
entries.push([assignment.slice(0, separator), assignment.slice(separator + 1)]);
|
|
129
|
+
}
|
|
130
|
+
return Object.fromEntries(entries);
|
|
131
|
+
});
|
|
132
|
+
export const ProcessManagerStartInputSchema = z.object({
|
|
133
|
+
detach: z.boolean(),
|
|
134
|
+
env: EnvironmentAssignmentsSchema.optional()
|
|
135
|
+
});
|
|
136
|
+
export const ProcessManagerStopInputSchema = z.object({
|
|
137
|
+
force: z.boolean().optional(),
|
|
138
|
+
timeout: z.coerce.number().int().nonnegative().max(MaximumTimeoutSeconds)
|
|
139
|
+
}).transform(({ force, timeout }) => ({
|
|
140
|
+
force,
|
|
141
|
+
timeoutMilliseconds: timeout * 1000
|
|
142
|
+
}));
|
|
143
|
+
export const ProcessManagerRestartInputSchema = z.object({
|
|
144
|
+
force: z.boolean().optional()
|
|
145
|
+
});
|
|
146
|
+
export const ProcessManagerStatusInputSchema = z.object({
|
|
147
|
+
format: OutputFormatSchema,
|
|
148
|
+
health: z.boolean().optional()
|
|
149
|
+
});
|
|
150
|
+
export const ProcessManagerLogsInputSchema = z.object({
|
|
151
|
+
lines: PositiveIntegerSchema,
|
|
152
|
+
follow: z.boolean().optional()
|
|
153
|
+
});
|
|
154
|
+
const LogFilterValueSchema = z.union([
|
|
155
|
+
z.string(),
|
|
156
|
+
z.boolean(),
|
|
157
|
+
z.array(z.string())
|
|
158
|
+
]);
|
|
159
|
+
export const LogViewerTailInputSchema = z.object({
|
|
160
|
+
lines: PositiveIntegerSchema,
|
|
161
|
+
levels: z.array(z.string().min(1)).optional(),
|
|
162
|
+
follow: z.boolean().optional(),
|
|
163
|
+
filters: z.record(z.string(), LogFilterValueSchema)
|
|
164
|
+
});
|
|
165
|
+
export const LogViewerSearchInputSchema = z.object({
|
|
166
|
+
pattern: z.string().min(1),
|
|
167
|
+
lines: PositiveIntegerSchema,
|
|
168
|
+
levels: z.array(z.string().min(1)).optional(),
|
|
169
|
+
since: z.string().optional(),
|
|
170
|
+
until: z.string().optional()
|
|
171
|
+
});
|
|
172
|
+
const StorageListOptionsSchema = z.object({
|
|
173
|
+
limit: NonNegativeIntegerSchema.optional(),
|
|
174
|
+
offset: NonNegativeIntegerSchema.optional(),
|
|
175
|
+
sortBy: z.string().optional()
|
|
176
|
+
});
|
|
177
|
+
const StorageListSchema = z.custom((value) => z.function().safeParse(value).success);
|
|
178
|
+
const StorageGetSchema = z.custom((value) => z.function().safeParse(value).success);
|
|
179
|
+
const StorageWriteSchema = z.custom((value) => z.function().safeParse(value).success);
|
|
180
|
+
const StorageUpdateSchema = z.custom((value) => z.function().safeParse(value).success);
|
|
181
|
+
const StorageDeleteSchema = z.custom((value) => z.function().safeParse(value).success);
|
|
182
|
+
export const StorageAdapterSchema = z.object({
|
|
183
|
+
list: StorageListSchema,
|
|
184
|
+
get: StorageGetSchema,
|
|
185
|
+
create: StorageWriteSchema,
|
|
186
|
+
update: StorageUpdateSchema,
|
|
187
|
+
delete: StorageDeleteSchema
|
|
188
|
+
});
|
|
189
|
+
export const ConfigListRowSchema = z.object({
|
|
190
|
+
key: z.string(),
|
|
191
|
+
value: JsonValueSchema.optional(),
|
|
192
|
+
default: z.unknown().optional()
|
|
193
|
+
});
|
|
194
|
+
//# sourceMappingURL=pattern-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pattern-input.js","sourceRoot":"","sources":["../../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mB,GAAG,CAAC,CAAC,MAAM,CACnC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAChD,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,iBAAiB;IACvB,GAAG,EAAE,gBAAgB;IACrB,MAAM,EAAE,kBAAkB;IAC1B,MAAM,EAAE,mBAAmB;IAC3B,MAAM,EAAE,mBAAmB;CAC3B,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,eAAe,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
/** Local extension until cli-contracts admits structured log selectors. */
|
|
3
|
+
export declare const CLIProcessLogOptionsSchema: z.ZodObject<{
|
|
4
|
+
lines: z.ZodNumber;
|
|
5
|
+
follow: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
levels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
/** Structured fields remain owner data; selectors compare exact field values. */
|
|
10
|
+
export declare const LogRecordSchema: z.ZodObject<{
|
|
11
|
+
level: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
12
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
13
|
+
/** Compatibility schema for consumers selecting only structured levels. */
|
|
14
|
+
export declare const LogLevelSchema: z.ZodObject<{
|
|
15
|
+
level: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
//# sourceMappingURL=pm-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pm-context.d.ts","sourceRoot":"","sources":["../../src/schemas/pm-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,2EAA2E;AAC3E,eAAO,MAAM,0BAA0B;;;;;iBAErC,CAAC;AAEH,iFAAiF;AACjF,eAAO,MAAM,eAAe;;kCAEJ,CAAC;AAEzB,2EAA2E;AAC3E,eAAO,MAAM,cAAc;;iBAAkC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import { CLIProcessLogOptionsSchema as ProcessLogOptionsSchema } from '@vibesdotdev/cli-contracts/context';
|
|
3
|
+
/** Local extension until cli-contracts admits structured log selectors. */
|
|
4
|
+
export const CLIProcessLogOptionsSchema = ProcessLogOptionsSchema.extend({
|
|
5
|
+
filters: z.record(z.string(), z.union([z.string(), z.boolean(), z.array(z.string())])).optional()
|
|
6
|
+
});
|
|
7
|
+
/** Structured fields remain owner data; selectors compare exact field values. */
|
|
8
|
+
export const LogRecordSchema = z.object({
|
|
9
|
+
level: z.string().optional().catch(undefined)
|
|
10
|
+
}).catchall(z.unknown());
|
|
11
|
+
/** Compatibility schema for consumers selecting only structured levels. */
|
|
12
|
+
export const LogLevelSchema = z.object({ level: z.string() });
|
|
13
|
+
//# sourceMappingURL=pm-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pm-context.js","sourceRoot":"","sources":["../../src/schemas/pm-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,0BAA0B,IAAI,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAE3G,2EAA2E;AAC3E,MAAM,CAAC,MAAM,0BAA0B,GAAG,uBAAuB,CAAC,MAAM,CAAC;IACxE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACjG,CAAC,CAAC;AAEH,iFAAiF;AACjF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;CAC7C,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;AAEzB,2EAA2E;AAC3E,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
export declare const PromptOptionsSchema: z.ZodObject<{
|
|
3
|
+
default: z.ZodOptional<z.ZodString>;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export type PromptOptions = z.infer<typeof PromptOptionsSchema>;
|
|
6
|
+
export declare const PromptRequestSchema: z.ZodObject<{
|
|
7
|
+
message: z.ZodString;
|
|
8
|
+
options: z.ZodObject<{
|
|
9
|
+
default: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const PasswordRequestSchema: z.ZodObject<{
|
|
13
|
+
message: z.ZodString;
|
|
14
|
+
options: z.ZodObject<{
|
|
15
|
+
mask: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
|
|
16
|
+
confirm: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
confirmMessage: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export declare const ConfirmMessageSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
21
|
+
message: string;
|
|
22
|
+
defaultValue: undefined;
|
|
23
|
+
}, string>>, z.ZodObject<{
|
|
24
|
+
message: z.ZodString;
|
|
25
|
+
defaultValue: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
}, z.core.$strip>]>;
|
|
27
|
+
export type ConfirmMessage = z.input<typeof ConfirmMessageSchema>;
|
|
28
|
+
export declare const ConfirmRequestSchema: z.ZodObject<{
|
|
29
|
+
message: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
30
|
+
message: string;
|
|
31
|
+
defaultValue: undefined;
|
|
32
|
+
}, string>>, z.ZodObject<{
|
|
33
|
+
message: z.ZodString;
|
|
34
|
+
defaultValue: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
}, z.core.$strip>]>;
|
|
36
|
+
defaultValue: z.ZodBoolean;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export declare function SelectionEntrySchema<T>(): z.ZodObject<{
|
|
39
|
+
label: z.ZodString;
|
|
40
|
+
value: z.ZodCustom<T, T>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export type SelectionEntry<T> = z.infer<ReturnType<typeof SelectionEntrySchema<T>>>;
|
|
43
|
+
export declare function SelectRequestSchema<T>(): z.ZodObject<{
|
|
44
|
+
message: z.ZodString;
|
|
45
|
+
options: z.ZodArray<z.ZodObject<{
|
|
46
|
+
label: z.ZodString;
|
|
47
|
+
value: z.ZodCustom<T, T>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
defaultValue: z.ZodOptional<z.ZodCustom<T, T>>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export declare function MultiselectRequestSchema<T>(): z.ZodObject<{
|
|
52
|
+
message: z.ZodString;
|
|
53
|
+
options: z.ZodArray<z.ZodObject<{
|
|
54
|
+
label: z.ZodString;
|
|
55
|
+
value: z.ZodCustom<T, T>;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
required: z.ZodBoolean;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
/** No Zod issue, caller value or native exception crosses this public boundary. */
|
|
60
|
+
export declare function parsePromptRequest<S extends z.ZodType>(schema: S, input: z.input<S>): z.output<S>;
|
|
61
|
+
//# sourceMappingURL=prompts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/schemas/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,eAAO,MAAM,mBAAmB;;iBAA+C,CAAC;AAChF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,eAAO,MAAM,mBAAmB;;;;;iBAE9B,CAAC;AACH,eAAO,MAAM,qBAAqB;;;;;;;iBAEhC,CAAC;AACH,eAAO,MAAM,oBAAoB;;;;;;mBAG/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,eAAO,MAAM,oBAAoB;;;;;;;;;iBAE/B,CAAC;AAGH,wBAAgB,oBAAoB,CAAC,CAAC;;;kBAGrC;AACD,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACpF,wBAAgB,mBAAmB,CAAC,CAAC;;;;;;;kBAKpC;AACD,wBAAgB,wBAAwB,CAAC,CAAC;;;;;;;kBAIzC;AAED,mFAAmF;AACnF,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAOjG"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import { CapabilityError, settleNow } from '@vibesdotdev/kernel';
|
|
3
|
+
import { PasswordPromptOptionsSchema } from '@vibesdotdev/cli-contracts/context';
|
|
4
|
+
export const PromptOptionsSchema = z.object({ default: z.string().optional() });
|
|
5
|
+
export const PromptRequestSchema = z.object({
|
|
6
|
+
message: z.string(), options: PromptOptionsSchema
|
|
7
|
+
});
|
|
8
|
+
export const PasswordRequestSchema = z.object({
|
|
9
|
+
message: z.string(), options: PasswordPromptOptionsSchema
|
|
10
|
+
});
|
|
11
|
+
export const ConfirmMessageSchema = z.union([
|
|
12
|
+
z.string().transform((message) => ({ message, defaultValue: undefined })),
|
|
13
|
+
z.object({ message: z.string(), defaultValue: z.boolean().optional() })
|
|
14
|
+
]);
|
|
15
|
+
export const ConfirmRequestSchema = z.object({
|
|
16
|
+
message: ConfirmMessageSchema, defaultValue: z.boolean()
|
|
17
|
+
});
|
|
18
|
+
// Values belong to callers: validate the envelope without traversing or cloning them.
|
|
19
|
+
export function SelectionEntrySchema() {
|
|
20
|
+
return z.object({ label: z.string(), value: z.custom(() => true) })
|
|
21
|
+
.refine((entry) => Object.hasOwn(entry, 'value'));
|
|
22
|
+
}
|
|
23
|
+
export function SelectRequestSchema() {
|
|
24
|
+
return z.object({
|
|
25
|
+
message: z.string(), options: z.array(SelectionEntrySchema()),
|
|
26
|
+
defaultValue: z.custom(() => true).optional()
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
export function MultiselectRequestSchema() {
|
|
30
|
+
return z.object({
|
|
31
|
+
message: z.string(), options: z.array(SelectionEntrySchema()), required: z.boolean()
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/** No Zod issue, caller value or native exception crosses this public boundary. */
|
|
35
|
+
export function parsePromptRequest(schema, input) {
|
|
36
|
+
const parsed = settleNow(() => schema.safeParse(input));
|
|
37
|
+
if (parsed.ok && parsed.value.success)
|
|
38
|
+
return parsed.value.data;
|
|
39
|
+
throw new CapabilityError('The prompt request is invalid or unreadable.', 'INVALID_INPUT', {
|
|
40
|
+
reason: 'cli-prompt-invalid'
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=prompts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/schemas/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AAEjF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAEhF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,mBAAmB;CACjD,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,2BAA2B;CACzD,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC;IAC3C,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,EA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