@vibesdotdev/cli 0.0.2 → 1.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -0
- package/README.md +261 -1
- package/dist/boot/action-lifetime.d.ts +16 -0
- package/dist/boot/action-lifetime.d.ts.map +1 -0
- package/dist/boot/action-lifetime.js +80 -0
- package/dist/boot/action-lifetime.js.map +1 -0
- package/dist/boot/bootstrap.d.ts +190 -0
- package/dist/boot/bootstrap.d.ts.map +1 -0
- package/dist/boot/bootstrap.js +737 -0
- package/dist/boot/bootstrap.js.map +1 -0
- package/dist/boot/cli-flags.d.ts +45 -0
- package/dist/boot/cli-flags.d.ts.map +1 -0
- package/dist/boot/cli-flags.js +113 -0
- package/dist/boot/cli-flags.js.map +1 -0
- package/dist/boot/config.d.ts +25 -0
- package/dist/boot/config.d.ts.map +1 -0
- package/dist/{config.js → boot/config.js} +1 -1
- package/dist/boot/config.js.map +1 -0
- package/dist/boot/external-url.d.ts +13 -0
- package/dist/boot/external-url.d.ts.map +1 -0
- package/dist/boot/external-url.js +66 -0
- package/dist/boot/external-url.js.map +1 -0
- package/dist/boot/host-argv.d.ts +7 -0
- package/dist/boot/host-argv.d.ts.map +1 -0
- package/dist/boot/host-argv.js +8 -0
- package/dist/boot/host-argv.js.map +1 -0
- package/dist/boot/host-bootstrap.d.ts +37 -0
- package/dist/boot/host-bootstrap.d.ts.map +1 -0
- package/dist/boot/host-bootstrap.js +60 -0
- package/dist/boot/host-bootstrap.js.map +1 -0
- package/dist/boot/providers.d.ts +35 -0
- package/dist/boot/providers.d.ts.map +1 -0
- package/dist/boot/providers.js +155 -0
- package/dist/boot/providers.js.map +1 -0
- package/dist/boot/schemas/external-url.d.ts +11 -0
- package/dist/boot/schemas/external-url.d.ts.map +1 -0
- package/dist/boot/schemas/external-url.js +3 -0
- package/dist/boot/schemas/external-url.js.map +1 -0
- package/dist/boot/schemas/host-bootstrap.d.ts +7 -0
- package/dist/boot/schemas/host-bootstrap.d.ts.map +1 -0
- package/dist/boot/schemas/host-bootstrap.js +3 -0
- package/dist/boot/schemas/host-bootstrap.js.map +1 -0
- package/dist/boot/schemas/providers.d.ts +23 -0
- package/dist/boot/schemas/providers.d.ts.map +1 -0
- package/dist/boot/schemas/providers.js +3 -0
- package/dist/boot/schemas/providers.js.map +1 -0
- package/dist/boot/schemas/types.d.ts +4 -0
- package/dist/boot/schemas/types.d.ts.map +1 -0
- package/dist/{api → boot}/schemas/types.js.map +1 -1
- package/dist/boot/tui-plugin-policy.d.ts +8 -0
- package/dist/boot/tui-plugin-policy.d.ts.map +1 -0
- package/dist/boot/tui-plugin-policy.js +26 -0
- package/dist/boot/tui-plugin-policy.js.map +1 -0
- package/dist/boot/version.d.ts +13 -0
- package/dist/boot/version.d.ts.map +1 -0
- package/dist/boot/version.js +14 -0
- package/dist/boot/version.js.map +1 -0
- package/dist/bun/index.d.ts +2 -0
- package/dist/bun/index.d.ts.map +1 -0
- package/dist/bun/index.js +2 -0
- package/dist/bun/index.js.map +1 -0
- package/dist/bun/interactive-host.d.ts +9 -0
- package/dist/bun/interactive-host.d.ts.map +1 -0
- package/dist/bun/interactive-host.js +18 -0
- package/dist/bun/interactive-host.js.map +1 -0
- package/dist/commands/cli.kinds.d.ts +1239 -0
- package/dist/commands/cli.kinds.d.ts.map +1 -0
- package/dist/commands/cli.kinds.js +138 -0
- package/dist/commands/cli.kinds.js.map +1 -0
- package/dist/commands/cli.plugin.d.ts +22 -0
- package/dist/commands/cli.plugin.d.ts.map +1 -0
- package/dist/commands/cli.plugin.js +138 -0
- package/dist/commands/cli.plugin.js.map +1 -0
- package/dist/commands/completion/bash.d.ts +1 -1
- package/dist/commands/completion/bash.d.ts.map +1 -1
- package/dist/commands/completion/bash.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/bash.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/bash.impl.consumer.js +6 -0
- package/dist/commands/completion/bash.impl.consumer.js.map +1 -0
- package/dist/commands/completion/bash.js +4 -2
- package/dist/commands/completion/bash.js.map +1 -1
- package/dist/commands/completion/completion.consumer.plugin.d.ts +3 -0
- package/dist/commands/completion/completion.consumer.plugin.d.ts.map +1 -0
- package/dist/commands/completion/completion.consumer.plugin.js +19 -0
- package/dist/commands/completion/completion.consumer.plugin.js.map +1 -0
- package/dist/commands/completion/completion.descriptor.d.ts +1 -2
- package/dist/commands/completion/completion.descriptor.d.ts.map +1 -1
- package/dist/commands/completion/completion.descriptor.js +11 -4
- package/dist/commands/completion/completion.descriptor.js.map +1 -1
- package/dist/commands/completion/completion.descriptors.d.ts +3 -0
- package/dist/commands/completion/completion.descriptors.d.ts.map +1 -0
- package/dist/commands/completion/completion.descriptors.js +56 -0
- package/dist/commands/completion/completion.descriptors.js.map +1 -0
- package/dist/commands/completion/completion.impl.d.ts +5 -4
- package/dist/commands/completion/completion.impl.d.ts.map +1 -1
- package/dist/commands/completion/completion.impl.js +104 -145
- package/dist/commands/completion/completion.impl.js.map +1 -1
- package/dist/commands/completion/completion.install.impl.consumer.d.ts +4 -0
- package/dist/commands/completion/completion.install.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/completion.install.impl.consumer.js +102 -0
- package/dist/commands/completion/completion.install.impl.consumer.js.map +1 -0
- package/dist/commands/completion/completion.kinds.d.ts +43 -0
- package/dist/commands/completion/completion.kinds.d.ts.map +1 -0
- package/dist/commands/completion/completion.kinds.js +17 -0
- package/dist/commands/completion/completion.kinds.js.map +1 -0
- package/dist/commands/completion/fig.d.ts +1 -1
- package/dist/commands/completion/fig.d.ts.map +1 -1
- package/dist/commands/completion/fig.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/fig.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/fig.impl.consumer.js +6 -0
- package/dist/commands/completion/fig.impl.consumer.js.map +1 -0
- package/dist/commands/completion/fish.d.ts +1 -1
- package/dist/commands/completion/fish.d.ts.map +1 -1
- package/dist/commands/completion/fish.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/fish.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/fish.impl.consumer.js +6 -0
- package/dist/commands/completion/fish.impl.consumer.js.map +1 -0
- package/dist/commands/completion/tree.d.ts +5 -26
- package/dist/commands/completion/tree.d.ts.map +1 -1
- package/dist/commands/completion/tree.js +26 -25
- package/dist/commands/completion/tree.js.map +1 -1
- package/dist/commands/completion/zsh-widget.js +4 -4
- package/dist/commands/completion/zsh.d.ts +1 -1
- package/dist/commands/completion/zsh.d.ts.map +1 -1
- package/dist/commands/completion/zsh.impl.consumer.d.ts +6 -0
- package/dist/commands/completion/zsh.impl.consumer.d.ts.map +1 -0
- package/dist/commands/completion/zsh.impl.consumer.js +6 -0
- package/dist/commands/completion/zsh.impl.consumer.js.map +1 -0
- package/dist/commands/completion/zsh.js +1 -1
- package/dist/commands/completion/zsh.js.map +1 -1
- package/dist/commands/docs/cli.commands.docs.descriptor.d.ts +8 -0
- package/dist/commands/docs/cli.commands.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.commands.docs.descriptor.js +55 -0
- package/dist/commands/docs/cli.commands.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/cli.docs.descriptor.d.ts +4 -0
- package/dist/commands/docs/cli.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.docs.descriptor.js +44 -0
- package/dist/commands/docs/cli.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.d.ts +4 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.js +40 -0
- package/dist/commands/docs/cli.groups.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/cli.output.docs.descriptor.d.ts +4 -0
- package/dist/commands/docs/cli.output.docs.descriptor.d.ts.map +1 -0
- package/dist/commands/docs/cli.output.docs.descriptor.js +45 -0
- package/dist/commands/docs/cli.output.docs.descriptor.js.map +1 -0
- package/dist/commands/docs/content/cli-commands.json +1 -0
- package/dist/commands/docs/content/cli-groups.json +1 -0
- package/dist/commands/docs/content/cli-output.json +1 -0
- package/dist/commands/docs/doc-paths.d.ts +11 -0
- package/dist/commands/docs/doc-paths.d.ts.map +1 -0
- package/dist/commands/docs/doc-paths.js +32 -0
- package/dist/commands/docs/doc-paths.js.map +1 -0
- package/dist/commands/docs/generate.d.ts +48 -0
- package/dist/commands/docs/generate.d.ts.map +1 -0
- package/dist/commands/docs/generate.js +121 -0
- package/dist/commands/docs/generate.js.map +1 -0
- package/dist/commands/docs/render-command.d.ts +5 -0
- package/dist/commands/docs/render-command.d.ts.map +1 -0
- package/dist/commands/docs/render-command.js +117 -0
- package/dist/commands/docs/render-command.js.map +1 -0
- package/dist/commands/docs/render-group.d.ts +5 -0
- package/dist/commands/docs/render-group.d.ts.map +1 -0
- package/dist/commands/docs/render-group.js +62 -0
- package/dist/commands/docs/render-group.js.map +1 -0
- package/dist/commands/docs/schemas/generate.d.ts +14 -0
- package/dist/commands/docs/schemas/generate.d.ts.map +1 -0
- package/dist/commands/docs/schemas/generate.js +3 -0
- package/dist/commands/docs/schemas/generate.js.map +1 -0
- package/dist/commands/output.d.ts +27 -0
- package/dist/commands/output.d.ts.map +1 -0
- package/dist/commands/output.js +104 -0
- package/dist/commands/output.js.map +1 -0
- package/dist/commands/profile/_utils.d.ts +34 -9
- package/dist/commands/profile/_utils.d.ts.map +1 -1
- package/dist/commands/profile/_utils.js +65 -37
- package/dist/commands/profile/_utils.js.map +1 -1
- package/dist/commands/profile/profile-env.d.ts +42 -0
- package/dist/commands/profile/profile-env.d.ts.map +1 -0
- package/dist/commands/profile/profile-env.js +56 -0
- package/dist/commands/profile/profile-env.js.map +1 -0
- package/dist/commands/profile/profile-group.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile-group.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.create.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.create.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.create.descriptor.js +12 -1
- package/dist/commands/profile/profile.create.descriptor.js.map +1 -1
- package/dist/commands/profile/profile.create.impl.d.ts +2 -6
- package/dist/commands/profile/profile.create.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.create.impl.js +32 -9
- package/dist/commands/profile/profile.create.impl.js.map +1 -1
- package/dist/commands/profile/profile.delete.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.delete.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.delete.impl.d.ts +2 -7
- package/dist/commands/profile/profile.delete.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.delete.impl.js +33 -16
- package/dist/commands/profile/profile.delete.impl.js.map +1 -1
- package/dist/commands/profile/profile.environment.descriptor.d.ts +4 -0
- package/dist/commands/profile/profile.environment.descriptor.d.ts.map +1 -0
- package/dist/commands/profile/profile.environment.descriptor.js +26 -0
- package/dist/commands/profile/profile.environment.descriptor.js.map +1 -0
- package/dist/commands/profile/profile.environment.impl.d.ts +14 -0
- package/dist/commands/profile/profile.environment.impl.d.ts.map +1 -0
- package/dist/commands/profile/profile.environment.impl.js +33 -0
- package/dist/commands/profile/profile.environment.impl.js.map +1 -0
- package/dist/commands/profile/profile.info.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.info.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.info.descriptor.js +5 -1
- package/dist/commands/profile/profile.info.descriptor.js.map +1 -1
- package/dist/commands/profile/profile.info.impl.d.ts +5 -2
- package/dist/commands/profile/profile.info.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.info.impl.js +31 -14
- package/dist/commands/profile/profile.info.impl.js.map +1 -1
- package/dist/commands/profile/profile.list.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.list.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.list.descriptor.js +5 -1
- package/dist/commands/profile/profile.list.descriptor.js.map +1 -1
- package/dist/commands/profile/profile.list.impl.d.ts +17 -2
- package/dist/commands/profile/profile.list.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.list.impl.js +52 -25
- package/dist/commands/profile/profile.list.impl.js.map +1 -1
- package/dist/commands/profile/profile.use.descriptor.d.ts +1 -1
- package/dist/commands/profile/profile.use.descriptor.d.ts.map +1 -1
- package/dist/commands/profile/profile.use.impl.d.ts +2 -6
- package/dist/commands/profile/profile.use.impl.d.ts.map +1 -1
- package/dist/commands/profile/profile.use.impl.js +40 -10
- package/dist/commands/profile/profile.use.impl.js.map +1 -1
- package/dist/commands/runtime/codegen.command.descriptor.d.ts +26 -12
- package/dist/commands/runtime/codegen.command.descriptor.d.ts.map +1 -1
- package/dist/commands/runtime/codegen.command.descriptor.js +24 -6
- package/dist/commands/runtime/codegen.command.descriptor.js.map +1 -1
- package/dist/commands/runtime/codegen.command.impl.d.ts +15 -2
- package/dist/commands/runtime/codegen.command.impl.d.ts.map +1 -1
- package/dist/commands/runtime/codegen.command.impl.js +17 -30
- package/dist/commands/runtime/codegen.command.impl.js.map +1 -1
- package/dist/commands/runtime/codegen.d.ts +10 -14
- package/dist/commands/runtime/codegen.d.ts.map +1 -1
- package/dist/commands/runtime/codegen.declarations.d.ts +6 -0
- package/dist/commands/runtime/codegen.declarations.d.ts.map +1 -0
- package/dist/commands/runtime/codegen.declarations.js +6 -0
- package/dist/commands/runtime/codegen.declarations.js.map +1 -0
- package/dist/commands/runtime/codegen.js +85 -58
- package/dist/commands/runtime/codegen.js.map +1 -1
- package/dist/commands/runtime/export/markdown-document.d.ts +25 -0
- package/dist/commands/runtime/export/markdown-document.d.ts.map +1 -0
- package/dist/commands/runtime/export/markdown-document.js +38 -0
- package/dist/commands/runtime/export/markdown-document.js.map +1 -0
- package/dist/commands/runtime/export/markdown.d.ts +17 -0
- package/dist/commands/runtime/export/markdown.d.ts.map +1 -0
- package/dist/commands/runtime/export/markdown.js +141 -0
- package/dist/commands/runtime/export/markdown.js.map +1 -0
- package/dist/commands/runtime/export/read.d.ts +27 -0
- package/dist/commands/runtime/export/read.d.ts.map +1 -0
- package/dist/commands/runtime/export/read.js +128 -0
- package/dist/commands/runtime/export/read.js.map +1 -0
- package/dist/commands/runtime/export/reading-notes.d.ts +11 -0
- package/dist/commands/runtime/export/reading-notes.d.ts.map +1 -0
- package/dist/commands/runtime/export/reading-notes.js +45 -0
- package/dist/commands/runtime/export/reading-notes.js.map +1 -0
- package/dist/commands/runtime/export/register.d.ts +34 -0
- package/dist/commands/runtime/export/register.d.ts.map +1 -0
- package/dist/commands/runtime/export/register.js +57 -0
- package/dist/commands/runtime/export/register.js.map +1 -0
- package/dist/commands/runtime/export/schemas.d.ts +104 -0
- package/dist/commands/runtime/export/schemas.d.ts.map +1 -0
- package/dist/commands/runtime/export/schemas.js +38 -0
- package/dist/commands/runtime/export/schemas.js.map +1 -0
- package/dist/commands/runtime/export/write.d.ts +16 -0
- package/dist/commands/runtime/export/write.d.ts.map +1 -0
- package/dist/commands/runtime/export/write.js +36 -0
- package/dist/commands/runtime/export/write.js.map +1 -0
- package/dist/commands/runtime/export.command.impl.d.ts +18 -0
- package/dist/commands/runtime/export.command.impl.d.ts.map +1 -0
- package/dist/commands/runtime/export.command.impl.js +39 -0
- package/dist/commands/runtime/export.command.impl.js.map +1 -0
- package/dist/commands/runtime/export.d.ts +28 -0
- package/dist/commands/runtime/export.d.ts.map +1 -0
- package/dist/commands/runtime/export.descriptor.d.ts +55 -0
- package/dist/commands/runtime/export.descriptor.d.ts.map +1 -0
- package/dist/commands/runtime/export.descriptor.js +58 -0
- package/dist/commands/runtime/export.descriptor.js.map +1 -0
- package/dist/commands/runtime/export.js +28 -0
- package/dist/commands/runtime/export.js.map +1 -0
- package/dist/commands/runtime/index.d.ts +2 -2
- package/dist/commands/runtime/index.d.ts.map +1 -1
- package/dist/commands/runtime/index.js +3 -3
- package/dist/commands/runtime/index.js.map +1 -1
- package/dist/commands/runtime/plugin.d.ts +1 -1
- package/dist/commands/runtime/plugin.d.ts.map +1 -1
- package/dist/commands/runtime/plugin.js +1 -1
- package/dist/commands/runtime/plugin.js.map +1 -1
- package/dist/commands/runtime/runtime-group.descriptor.d.ts +1 -1
- package/dist/commands/runtime/runtime-group.descriptor.d.ts.map +1 -1
- package/dist/commands/schemas/output.d.ts +26 -0
- package/dist/commands/schemas/output.d.ts.map +1 -0
- package/dist/commands/schemas/output.js +14 -0
- package/dist/commands/schemas/output.js.map +1 -0
- package/dist/commands/schemas/profile-environment.d.ts +6 -0
- package/dist/commands/schemas/profile-environment.d.ts.map +1 -0
- package/dist/commands/schemas/profile-environment.js +3 -0
- package/dist/commands/schemas/profile-environment.js.map +1 -0
- package/dist/commands/schemas/profile-list.d.ts +22 -0
- package/dist/commands/schemas/profile-list.d.ts.map +1 -0
- package/dist/commands/schemas/profile-list.js +3 -0
- package/dist/commands/schemas/profile-list.js.map +1 -0
- package/dist/commands/skills/_skills.d.ts +98 -0
- package/dist/commands/skills/_skills.d.ts.map +1 -0
- package/dist/commands/skills/_skills.js +183 -0
- package/dist/commands/skills/_skills.js.map +1 -0
- package/dist/commands/skills/skills-group.descriptor.d.ts +4 -0
- package/dist/commands/skills/skills-group.descriptor.d.ts.map +1 -0
- package/dist/commands/skills/skills-group.descriptor.js +12 -0
- package/dist/commands/skills/skills-group.descriptor.js.map +1 -0
- package/dist/commands/skills/skills.install.descriptor.d.ts +4 -0
- package/dist/commands/skills/skills.install.descriptor.d.ts.map +1 -0
- package/dist/commands/skills/skills.install.descriptor.js +37 -0
- package/dist/commands/skills/skills.install.descriptor.js.map +1 -0
- package/dist/commands/skills/skills.install.impl.d.ts +12 -0
- package/dist/commands/skills/skills.install.impl.d.ts.map +1 -0
- package/dist/commands/skills/skills.install.impl.js +65 -0
- package/dist/commands/skills/skills.install.impl.js.map +1 -0
- package/dist/commands/skills/skills.list.descriptor.d.ts +4 -0
- package/dist/commands/skills/skills.list.descriptor.d.ts.map +1 -0
- package/dist/commands/skills/skills.list.descriptor.js +23 -0
- package/dist/commands/skills/skills.list.descriptor.js.map +1 -0
- package/dist/commands/skills/skills.list.impl.d.ts +11 -0
- package/dist/commands/skills/skills.list.impl.d.ts.map +1 -0
- package/dist/commands/skills/skills.list.impl.js +69 -0
- package/dist/commands/skills/skills.list.impl.js.map +1 -0
- package/dist/core/runtime/shared/context.d.ts +16 -16
- package/dist/core/runtime/shared/context.d.ts.map +1 -1
- package/dist/core/runtime/shared/context.js +20 -35
- package/dist/core/runtime/shared/context.js.map +1 -1
- package/dist/core/runtime/shared/options.d.ts +5 -19
- package/dist/core/runtime/shared/options.d.ts.map +1 -1
- package/dist/core/runtime/shared/options.js +87 -42
- package/dist/core/runtime/shared/options.js.map +1 -1
- package/dist/design-inventory.d.ts +23 -0
- package/dist/design-inventory.d.ts.map +1 -0
- package/dist/design-inventory.js +66 -0
- package/dist/design-inventory.js.map +1 -0
- package/dist/index.d.ts +12 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -25
- package/dist/index.js.map +1 -1
- package/dist/invocation/client.d.ts +20 -0
- package/dist/invocation/client.d.ts.map +1 -0
- package/dist/invocation/client.js +25 -0
- package/dist/invocation/client.js.map +1 -0
- package/dist/invocation/state.d.ts +10 -0
- package/dist/invocation/state.d.ts.map +1 -0
- package/dist/invocation/state.js +32 -0
- package/dist/invocation/state.js.map +1 -0
- package/dist/patterns/builtins/config-namespace-commands.d.ts +10 -0
- package/dist/patterns/builtins/config-namespace-commands.d.ts.map +1 -0
- package/dist/patterns/builtins/config-namespace-commands.js +132 -0
- package/dist/patterns/builtins/config-namespace-commands.js.map +1 -0
- package/dist/patterns/builtins/config-namespace-output.d.ts +9 -0
- package/dist/patterns/builtins/config-namespace-output.d.ts.map +1 -0
- package/dist/patterns/builtins/config-namespace-output.js +31 -0
- package/dist/patterns/builtins/config-namespace-output.js.map +1 -0
- package/dist/patterns/builtins/config-namespace.d.ts +23 -0
- package/dist/patterns/builtins/config-namespace.d.ts.map +1 -0
- package/dist/patterns/builtins/config-namespace.js +70 -0
- package/dist/patterns/builtins/config-namespace.js.map +1 -0
- package/dist/patterns/builtins/crud-commands.d.ts +11 -0
- package/dist/patterns/builtins/crud-commands.d.ts.map +1 -0
- package/dist/patterns/builtins/crud-commands.js +105 -0
- package/dist/patterns/builtins/crud-commands.js.map +1 -0
- package/dist/patterns/builtins/crud-output.d.ts +7 -0
- package/dist/patterns/builtins/crud-output.d.ts.map +1 -0
- package/dist/patterns/builtins/crud-output.js +21 -0
- package/dist/patterns/builtins/crud-output.js.map +1 -0
- package/dist/patterns/builtins/crud.d.ts +16 -0
- package/dist/patterns/builtins/crud.d.ts.map +1 -0
- package/dist/patterns/builtins/crud.js +38 -0
- package/dist/patterns/builtins/crud.js.map +1 -0
- package/dist/patterns/{log-viewer.d.ts → builtins/log-viewer.d.ts} +5 -5
- package/dist/patterns/builtins/log-viewer.d.ts.map +1 -0
- package/dist/patterns/{log-viewer.js → builtins/log-viewer.js} +31 -9
- package/dist/patterns/builtins/log-viewer.js.map +1 -0
- package/dist/patterns/builtins/output.d.ts +5 -0
- package/dist/patterns/builtins/output.d.ts.map +1 -0
- package/dist/patterns/builtins/output.js +25 -0
- package/dist/patterns/builtins/output.js.map +1 -0
- package/dist/patterns/{process-manager.d.ts → builtins/process-manager.d.ts} +9 -4
- package/dist/patterns/builtins/process-manager.d.ts.map +1 -0
- package/dist/patterns/{process-manager.js → builtins/process-manager.js} +46 -29
- package/dist/patterns/builtins/process-manager.js.map +1 -0
- package/dist/patterns/builtins/tool-wrapper.d.ts +18 -0
- package/dist/patterns/builtins/tool-wrapper.d.ts.map +1 -0
- package/dist/patterns/builtins/tool-wrapper.js +124 -0
- package/dist/patterns/builtins/tool-wrapper.js.map +1 -0
- package/dist/patterns/cli-value.d.ts +3 -0
- package/dist/patterns/cli-value.d.ts.map +1 -0
- package/dist/patterns/cli-value.js +42 -0
- package/dist/patterns/cli-value.js.map +1 -0
- package/dist/patterns/index.d.ts +5 -9
- package/dist/patterns/index.d.ts.map +1 -1
- package/dist/patterns/index.js +5 -9
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/pattern.kinds.d.ts +30 -0
- package/dist/patterns/pattern.kinds.d.ts.map +1 -0
- package/dist/patterns/pattern.kinds.js +8 -0
- package/dist/patterns/pattern.kinds.js.map +1 -0
- package/dist/patterns/resolver.d.ts +11 -32
- package/dist/patterns/resolver.d.ts.map +1 -1
- package/dist/patterns/resolver.js +14 -45
- package/dist/patterns/resolver.js.map +1 -1
- package/dist/patterns/schemas.d.ts +9 -492
- package/dist/patterns/schemas.d.ts.map +1 -1
- package/dist/patterns/schemas.js +5 -94
- package/dist/patterns/schemas.js.map +1 -1
- package/dist/schemas/bootstrap.d.ts +242 -0
- package/dist/schemas/bootstrap.d.ts.map +1 -0
- package/dist/schemas/bootstrap.js +7 -0
- package/dist/schemas/bootstrap.js.map +1 -0
- package/dist/schemas/command-implementation.d.ts +34 -0
- package/dist/schemas/command-implementation.d.ts.map +1 -0
- package/dist/schemas/command-implementation.js +31 -0
- package/dist/schemas/command-implementation.js.map +1 -0
- package/dist/schemas/command-recommendations.d.ts +9 -0
- package/dist/schemas/command-recommendations.d.ts.map +1 -0
- package/dist/schemas/command-recommendations.js +14 -0
- package/dist/schemas/command-recommendations.js.map +1 -0
- package/dist/schemas/completion.d.ts +118 -0
- package/dist/schemas/completion.d.ts.map +1 -0
- package/dist/schemas/completion.js +63 -0
- package/dist/schemas/completion.js.map +1 -0
- package/dist/schemas/descriptors.d.ts +1 -129
- package/dist/schemas/descriptors.d.ts.map +1 -1
- package/dist/schemas/descriptors.js +1 -95
- package/dist/schemas/descriptors.js.map +1 -1
- package/dist/schemas/design-inventory.d.ts +20 -0
- package/dist/schemas/design-inventory.d.ts.map +1 -0
- package/dist/schemas/design-inventory.js +10 -0
- package/dist/schemas/design-inventory.js.map +1 -0
- package/dist/schemas/discovery.d.ts +17 -0
- package/dist/schemas/discovery.d.ts.map +1 -0
- package/dist/schemas/discovery.js +15 -0
- package/dist/schemas/discovery.js.map +1 -0
- package/dist/schemas/exit.d.ts +33 -0
- package/dist/schemas/exit.d.ts.map +1 -0
- package/dist/schemas/exit.js +20 -0
- package/dist/schemas/exit.js.map +1 -0
- package/dist/schemas/interactive-host.d.ts +10 -0
- package/dist/schemas/interactive-host.d.ts.map +1 -0
- package/dist/schemas/interactive-host.js +11 -0
- package/dist/schemas/interactive-host.js.map +1 -0
- package/dist/schemas/output-format.d.ts +61 -0
- package/dist/schemas/output-format.d.ts.map +1 -0
- package/dist/schemas/output-format.js +26 -0
- package/dist/schemas/output-format.js.map +1 -0
- package/dist/schemas/pattern-implementation.d.ts +1572 -0
- package/dist/schemas/pattern-implementation.d.ts.map +1 -0
- package/dist/schemas/pattern-implementation.js +12 -0
- package/dist/schemas/pattern-implementation.js.map +1 -0
- package/dist/schemas/pattern-input.d.ts +152 -0
- package/dist/schemas/pattern-input.d.ts.map +1 -0
- package/dist/schemas/pattern-input.js +194 -0
- package/dist/schemas/pattern-input.js.map +1 -0
- package/dist/schemas/pm-context.d.ts +17 -0
- package/dist/schemas/pm-context.d.ts.map +1 -0
- package/dist/schemas/pm-context.js +13 -0
- package/dist/schemas/pm-context.js.map +1 -0
- package/dist/schemas/prompts.d.ts +61 -0
- package/dist/schemas/prompts.d.ts.map +1 -0
- package/dist/schemas/prompts.js +43 -0
- package/dist/schemas/prompts.js.map +1 -0
- package/dist/schemas/runtime-codegen.d.ts +191 -0
- package/dist/schemas/runtime-codegen.d.ts.map +1 -0
- package/dist/schemas/runtime-codegen.js +83 -0
- package/dist/schemas/runtime-codegen.js.map +1 -0
- package/dist/schemas/surface.d.ts +33 -20
- package/dist/schemas/surface.d.ts.map +1 -1
- package/dist/schemas/surface.js +2 -1
- package/dist/schemas/surface.js.map +1 -1
- package/dist/schemas/terminal-input.d.ts +15 -0
- package/dist/schemas/terminal-input.d.ts.map +1 -0
- package/dist/schemas/terminal-input.js +13 -0
- package/dist/schemas/terminal-input.js.map +1 -0
- package/dist/schemas/types.d.ts +1 -201
- package/dist/schemas/types.d.ts.map +1 -1
- package/dist/support/cli-inventory.generated.d.ts +4 -0
- package/dist/support/cli-inventory.generated.d.ts.map +1 -0
- package/dist/support/cli-inventory.generated.js +31 -0
- package/dist/support/cli-inventory.generated.js.map +1 -0
- package/dist/support/logging/cli-startup.logger.descriptor.d.ts.map +1 -0
- package/dist/support/logging/cli-startup.logger.descriptor.js.map +1 -0
- package/dist/support/logging/logging.d.ts +8 -0
- package/dist/support/logging/logging.d.ts.map +1 -0
- package/dist/support/logging/logging.js +13 -0
- package/dist/support/logging/logging.js.map +1 -0
- package/dist/support/terminal-input.d.ts +11 -0
- package/dist/support/terminal-input.d.ts.map +1 -0
- package/dist/support/terminal-input.js +39 -0
- package/dist/support/terminal-input.js.map +1 -0
- package/dist/support/ui/context.descriptor.d.ts +35 -0
- package/dist/support/ui/context.descriptor.d.ts.map +1 -0
- package/dist/{ui.context.descriptor.js → support/ui/context.descriptor.js} +2 -2
- package/dist/support/ui/context.descriptor.js.map +1 -0
- package/dist/support/ui/format.client.d.ts +42 -0
- package/dist/support/ui/format.client.d.ts.map +1 -0
- package/dist/support/ui/format.client.js +92 -0
- package/dist/support/ui/format.client.js.map +1 -0
- package/dist/support/ui/format.kinds.d.ts +30 -0
- package/dist/support/ui/format.kinds.d.ts.map +1 -0
- package/dist/support/ui/format.kinds.js +8 -0
- package/dist/support/ui/format.kinds.js.map +1 -0
- package/dist/support/ui/format.plugin.d.ts +7 -0
- package/dist/support/ui/format.plugin.d.ts.map +1 -0
- package/dist/support/ui/format.plugin.js +23 -0
- package/dist/support/ui/format.plugin.js.map +1 -0
- package/dist/support/ui/formats.d.ts +4 -0
- package/dist/support/ui/formats.d.ts.map +1 -0
- package/dist/support/ui/formats.js +34 -0
- package/dist/support/ui/formats.js.map +1 -0
- package/dist/support/ui/prompts.d.ts +9 -0
- package/dist/support/ui/prompts.d.ts.map +1 -0
- package/dist/support/ui/prompts.js +99 -0
- package/dist/support/ui/prompts.js.map +1 -0
- package/dist/support/ui/schemas/types.d.ts +2 -0
- package/dist/support/ui/schemas/types.d.ts.map +1 -0
- package/dist/support/ui/schemas/types.js.map +1 -0
- package/dist/support/ui/schemas/ui-toolkit.d.ts +45 -0
- package/dist/support/ui/schemas/ui-toolkit.d.ts.map +1 -0
- package/dist/support/ui/schemas/ui-toolkit.js +2 -0
- package/dist/support/ui/schemas/ui-toolkit.js.map +1 -0
- package/dist/support/ui/showcase.d.ts +18 -0
- package/dist/support/ui/showcase.d.ts.map +1 -0
- package/dist/support/ui/showcase.js +101 -0
- package/dist/support/ui/showcase.js.map +1 -0
- package/dist/support/ui/table.d.ts +28 -0
- package/dist/support/ui/table.d.ts.map +1 -0
- package/dist/support/ui/table.js +74 -0
- package/dist/support/ui/table.js.map +1 -0
- package/dist/support/ui/toolkit.d.ts +56 -0
- package/dist/support/ui/toolkit.d.ts.map +1 -0
- package/dist/support/ui/toolkit.js +130 -0
- package/dist/support/ui/toolkit.js.map +1 -0
- package/dist/support/vibesdev/index.d.ts +2 -0
- package/dist/support/vibesdev/index.d.ts.map +1 -0
- package/dist/support/vibesdev/index.js +3 -0
- package/dist/support/vibesdev/index.js.map +1 -0
- package/dist/surface/CLISurface.d.ts +77 -3
- package/dist/surface/CLISurface.d.ts.map +1 -1
- package/dist/surface/CLISurface.js +642 -98
- package/dist/surface/CLISurface.js.map +1 -1
- package/dist/surface/argument-name.d.ts +14 -0
- package/dist/surface/argument-name.d.ts.map +1 -0
- package/dist/surface/argument-name.js +23 -0
- package/dist/surface/argument-name.js.map +1 -0
- package/dist/surface/attach-tui-action.d.ts +35 -9
- package/dist/surface/attach-tui-action.d.ts.map +1 -1
- package/dist/surface/attach-tui-action.js +50 -43
- package/dist/surface/attach-tui-action.js.map +1 -1
- package/dist/surface/build-context.d.ts +2 -2
- package/dist/surface/build-context.d.ts.map +1 -1
- package/dist/surface/build-context.js +26 -44
- package/dist/surface/build-context.js.map +1 -1
- package/dist/surface/command-group-policy.d.ts +2 -3
- package/dist/surface/command-group-policy.d.ts.map +1 -1
- package/dist/surface/command-group-policy.js +1 -11
- package/dist/surface/command-group-policy.js.map +1 -1
- package/dist/surface/command-implementation.d.ts +9 -0
- package/dist/surface/command-implementation.d.ts.map +1 -0
- package/dist/surface/command-implementation.js +19 -0
- package/dist/surface/command-implementation.js.map +1 -0
- package/dist/surface/command-options.d.ts +29 -0
- package/dist/surface/command-options.d.ts.map +1 -0
- package/dist/surface/command-options.js +57 -0
- package/dist/surface/command-options.js.map +1 -0
- package/dist/surface/commander-action.d.ts +25 -0
- package/dist/surface/commander-action.d.ts.map +1 -0
- package/dist/surface/commander-action.js +38 -0
- package/dist/surface/commander-action.js.map +1 -0
- package/dist/surface/discovery-cache.d.ts +3 -15
- package/dist/surface/discovery-cache.d.ts.map +1 -1
- package/dist/surface/discovery-cache.js +6 -33
- package/dist/surface/discovery-cache.js.map +1 -1
- package/dist/surface/exit.d.ts +10 -0
- package/dist/surface/exit.d.ts.map +1 -0
- package/dist/surface/exit.js +33 -0
- package/dist/surface/exit.js.map +1 -0
- package/dist/surface/failure-of.d.ts +9 -0
- package/dist/surface/failure-of.d.ts.map +1 -0
- package/dist/surface/failure-of.js +17 -0
- package/dist/surface/failure-of.js.map +1 -0
- package/dist/surface/failure-output.d.ts +50 -0
- package/dist/surface/failure-output.d.ts.map +1 -0
- package/dist/surface/failure-output.js +84 -0
- package/dist/surface/failure-output.js.map +1 -0
- package/dist/surface/failure-report.d.ts +78 -0
- package/dist/surface/failure-report.d.ts.map +1 -0
- package/dist/surface/failure-report.js +229 -0
- package/dist/surface/failure-report.js.map +1 -0
- package/dist/surface/group-fallback.d.ts +32 -0
- package/dist/surface/group-fallback.d.ts.map +1 -0
- package/dist/surface/group-fallback.js +78 -0
- package/dist/surface/group-fallback.js.map +1 -0
- package/dist/surface/index.d.ts +10 -0
- package/dist/surface/index.d.ts.map +1 -0
- package/dist/surface/index.js +8 -0
- package/dist/surface/index.js.map +1 -0
- package/dist/surface/inherited-options.d.ts +28 -0
- package/dist/surface/inherited-options.d.ts.map +1 -0
- package/dist/surface/inherited-options.js +108 -0
- package/dist/surface/inherited-options.js.map +1 -0
- package/dist/surface/interactive-gate.d.ts +41 -0
- package/dist/surface/interactive-gate.d.ts.map +1 -0
- package/dist/surface/interactive-gate.js +112 -0
- package/dist/surface/interactive-gate.js.map +1 -0
- package/dist/surface/invocation-actions.d.ts +40 -0
- package/dist/surface/invocation-actions.d.ts.map +1 -0
- package/dist/surface/invocation-actions.js +78 -0
- package/dist/surface/invocation-actions.js.map +1 -0
- package/dist/surface/invocation-effects.d.ts +11 -0
- package/dist/surface/invocation-effects.d.ts.map +1 -0
- package/dist/surface/invocation-effects.js +52 -0
- package/dist/surface/invocation-effects.js.map +1 -0
- package/dist/surface/invocation-lifecycle.d.ts +49 -0
- package/dist/surface/invocation-lifecycle.d.ts.map +1 -0
- package/dist/surface/invocation-lifecycle.js +127 -0
- package/dist/surface/invocation-lifecycle.js.map +1 -0
- package/dist/surface/output-format-request.d.ts +23 -0
- package/dist/surface/output-format-request.d.ts.map +1 -0
- package/dist/surface/output-format-request.js +116 -0
- package/dist/surface/output-format-request.js.map +1 -0
- package/dist/surface/pm-context.d.ts +5 -0
- package/dist/surface/pm-context.d.ts.map +1 -0
- package/dist/surface/pm-context.js +69 -0
- package/dist/surface/pm-context.js.map +1 -0
- package/dist/surface/register-commands.d.ts +24 -4
- package/dist/surface/register-commands.d.ts.map +1 -1
- package/dist/surface/register-commands.js +156 -63
- package/dist/surface/register-commands.js.map +1 -1
- package/dist/surface/register-groups.d.ts +4 -4
- package/dist/surface/register-groups.d.ts.map +1 -1
- package/dist/surface/register-groups.js +71 -9
- package/dist/surface/register-groups.js.map +1 -1
- package/dist/surface/schemas/CLISurface.d.ts +31 -0
- package/dist/surface/schemas/CLISurface.d.ts.map +1 -0
- package/dist/surface/schemas/CLISurface.js +2 -0
- package/dist/surface/schemas/CLISurface.js.map +1 -0
- package/dist/surface/schemas/command-implementation.d.ts +20 -0
- package/dist/surface/schemas/command-implementation.d.ts.map +1 -0
- package/dist/surface/schemas/command-implementation.js +2 -0
- package/dist/surface/schemas/command-implementation.js.map +1 -0
- package/dist/surface/schemas/interactive-gate.d.ts +29 -0
- package/dist/surface/schemas/interactive-gate.d.ts.map +1 -0
- package/dist/surface/schemas/interactive-gate.js +2 -0
- package/dist/surface/schemas/interactive-gate.js.map +1 -0
- package/package.json +273 -136
- package/bin/vibes.ts +0 -26
- package/dist/api/client/factory.d.ts +0 -29
- package/dist/api/client/factory.d.ts.map +0 -1
- package/dist/api/client/factory.js +0 -189
- package/dist/api/client/factory.js.map +0 -1
- package/dist/api/schemas/common.d.ts +0 -58
- package/dist/api/schemas/common.d.ts.map +0 -1
- package/dist/api/schemas/common.js +0 -48
- package/dist/api/schemas/common.js.map +0 -1
- package/dist/api/schemas/types.d.ts +0 -30
- package/dist/api/schemas/types.d.ts.map +0 -1
- package/dist/api/services/api.d.ts +0 -14
- package/dist/api/services/api.d.ts.map +0 -1
- package/dist/api/services/api.js +0 -110
- package/dist/api/services/api.js.map +0 -1
- package/dist/api/types.d.ts +0 -6
- package/dist/api/types.d.ts.map +0 -1
- package/dist/api/types.js +0 -5
- package/dist/api/types.js.map +0 -1
- package/dist/bin.d.ts +0 -28
- package/dist/bin.d.ts.map +0 -1
- package/dist/bin.js +0 -73
- package/dist/bin.js.map +0 -1
- package/dist/bootstrap.d.ts +0 -14
- package/dist/bootstrap.d.ts.map +0 -1
- package/dist/bootstrap.js +0 -14
- package/dist/bootstrap.js.map +0 -1
- package/dist/cli.plugin.d.ts +0 -20
- package/dist/cli.plugin.d.ts.map +0 -1
- package/dist/cli.plugin.js +0 -170
- package/dist/cli.plugin.js.map +0 -1
- package/dist/commands/runtime/_logging.d.ts +0 -11
- package/dist/commands/runtime/_logging.d.ts.map +0 -1
- package/dist/commands/runtime/_logging.js +0 -40
- package/dist/commands/runtime/_logging.js.map +0 -1
- package/dist/config.d.ts +0 -17
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/core/index.d.ts +0 -9
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -5
- package/dist/core/index.js.map +0 -1
- package/dist/core/namespace/hook.d.ts +0 -12
- package/dist/core/namespace/hook.d.ts.map +0 -1
- package/dist/core/namespace/hook.js +0 -15
- package/dist/core/namespace/hook.js.map +0 -1
- package/dist/core/namespace/index.d.ts +0 -18
- package/dist/core/namespace/index.d.ts.map +0 -1
- package/dist/core/namespace/index.js +0 -214
- package/dist/core/namespace/index.js.map +0 -1
- package/dist/core/namespace/schemas/index.d.ts +0 -25
- package/dist/core/namespace/schemas/index.d.ts.map +0 -1
- package/dist/core/namespace/schemas/index.js +0 -2
- package/dist/core/namespace/schemas/index.js.map +0 -1
- package/dist/core/plugins/types.d.ts +0 -81
- package/dist/core/plugins/types.d.ts.map +0 -1
- package/dist/core/plugins/types.js +0 -6
- package/dist/core/plugins/types.js.map +0 -1
- package/dist/core/runtime/context.d.ts +0 -25
- package/dist/core/runtime/context.d.ts.map +0 -1
- package/dist/core/runtime/context.js +0 -30
- package/dist/core/runtime/context.js.map +0 -1
- package/dist/core/runtime/hooks.d.ts +0 -12
- package/dist/core/runtime/hooks.d.ts.map +0 -1
- package/dist/core/runtime/hooks.js +0 -2
- package/dist/core/runtime/hooks.js.map +0 -1
- package/dist/core/schemas/manifest.d.ts +0 -24
- package/dist/core/schemas/manifest.d.ts.map +0 -1
- package/dist/core/schemas/manifest.js +0 -6
- package/dist/core/schemas/manifest.js.map +0 -1
- package/dist/core/schemas/types.d.ts +0 -7
- package/dist/core/schemas/types.d.ts.map +0 -1
- package/dist/core/schemas/types.js.map +0 -1
- package/dist/core/ui/interface.d.ts +0 -12
- package/dist/core/ui/interface.d.ts.map +0 -1
- package/dist/core/ui/interface.js +0 -6
- package/dist/core/ui/interface.js.map +0 -1
- package/dist/docs/cli.commands.docs.descriptor.d.ts +0 -4
- package/dist/docs/cli.commands.docs.descriptor.d.ts.map +0 -1
- package/dist/docs/cli.commands.docs.descriptor.js +0 -207
- package/dist/docs/cli.commands.docs.descriptor.js.map +0 -1
- package/dist/docs/cli.groups.docs.descriptor.d.ts +0 -4
- package/dist/docs/cli.groups.docs.descriptor.d.ts.map +0 -1
- package/dist/docs/cli.groups.docs.descriptor.js +0 -330
- package/dist/docs/cli.groups.docs.descriptor.js.map +0 -1
- package/dist/docs/cli.output.docs.descriptor.d.ts +0 -4
- package/dist/docs/cli.output.docs.descriptor.d.ts.map +0 -1
- package/dist/docs/cli.output.docs.descriptor.js +0 -442
- package/dist/docs/cli.output.docs.descriptor.js.map +0 -1
- package/dist/docs/types.d.ts +0 -19
- package/dist/docs/types.d.ts.map +0 -1
- package/dist/docs/types.js +0 -2
- package/dist/docs/types.js.map +0 -1
- package/dist/errors.d.ts +0 -74
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -113
- package/dist/errors.js.map +0 -1
- package/dist/logging/cli-startup.logger.descriptor.d.ts.map +0 -1
- package/dist/logging/cli-startup.logger.descriptor.js.map +0 -1
- package/dist/logging.d.ts +0 -4
- package/dist/logging.d.ts.map +0 -1
- package/dist/logging.js +0 -21
- package/dist/logging.js.map +0 -1
- package/dist/patterns/config-namespace.d.ts +0 -23
- package/dist/patterns/config-namespace.d.ts.map +0 -1
- package/dist/patterns/config-namespace.js +0 -218
- package/dist/patterns/config-namespace.js.map +0 -1
- package/dist/patterns/crud.d.ts +0 -23
- package/dist/patterns/crud.d.ts.map +0 -1
- package/dist/patterns/crud.js +0 -164
- package/dist/patterns/crud.js.map +0 -1
- package/dist/patterns/log-viewer.d.ts.map +0 -1
- package/dist/patterns/log-viewer.js.map +0 -1
- package/dist/patterns/pattern-types.d.ts +0 -21
- package/dist/patterns/pattern-types.d.ts.map +0 -1
- package/dist/patterns/pattern-types.js +0 -7
- package/dist/patterns/pattern-types.js.map +0 -1
- package/dist/patterns/process-manager.d.ts.map +0 -1
- package/dist/patterns/process-manager.js.map +0 -1
- package/dist/patterns/resolver.contracts.d.ts +0 -14
- package/dist/patterns/resolver.contracts.d.ts.map +0 -1
- package/dist/patterns/resolver.contracts.js +0 -9
- package/dist/patterns/resolver.contracts.js.map +0 -1
- package/dist/patterns/tool-wrapper.d.ts +0 -18
- package/dist/patterns/tool-wrapper.d.ts.map +0 -1
- package/dist/patterns/tool-wrapper.js +0 -130
- package/dist/patterns/tool-wrapper.js.map +0 -1
- package/dist/providers.d.ts +0 -105
- package/dist/providers.d.ts.map +0 -1
- package/dist/providers.js +0 -164
- package/dist/providers.js.map +0 -1
- package/dist/support/ui-toolkit.d.ts +0 -62
- package/dist/support/ui-toolkit.d.ts.map +0 -1
- package/dist/support/ui-toolkit.js +0 -172
- package/dist/support/ui-toolkit.js.map +0 -1
- package/dist/surface.d.ts +0 -9
- package/dist/surface.d.ts.map +0 -1
- package/dist/surface.js +0 -8
- package/dist/surface.js.map +0 -1
- package/dist/types.d.ts +0 -4
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/ui/schemas/types.d.ts +0 -2
- package/dist/ui/schemas/types.d.ts.map +0 -1
- package/dist/ui/schemas/types.js +0 -2
- package/dist/ui/schemas/types.js.map +0 -1
- package/dist/ui/toolkit/VibesUIToolkit.d.ts +0 -2
- package/dist/ui/toolkit/VibesUIToolkit.d.ts.map +0 -1
- package/dist/ui/toolkit/VibesUIToolkit.js +0 -2
- package/dist/ui/toolkit/VibesUIToolkit.js.map +0 -1
- package/dist/ui.context.descriptor.d.ts +0 -21
- package/dist/ui.context.descriptor.d.ts.map +0 -1
- package/dist/ui.context.descriptor.js.map +0 -1
- package/dist/utils/open.d.ts +0 -2
- package/dist/utils/open.d.ts.map +0 -1
- package/dist/utils/open.js +0 -30
- package/dist/utils/open.js.map +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -2
- package/dist/version.js.map +0 -1
- package/src/api/client/factory.ts +0 -265
- package/src/api/schemas/common.ts +0 -50
- package/src/api/schemas/types.ts +0 -32
- package/src/api/services/api.ts +0 -129
- package/src/api/types.ts +0 -12
- package/src/bin.ts +0 -84
- package/src/bootstrap.ts +0 -19
- package/src/cli.plugin.d.ts +0 -19
- package/src/cli.plugin.ts +0 -202
- package/src/commands/completion/bash.ts +0 -68
- package/src/commands/completion/completion.descriptor.ts +0 -48
- package/src/commands/completion/completion.impl.ts +0 -188
- package/src/commands/completion/fig.ts +0 -78
- package/src/commands/completion/fish.ts +0 -52
- package/src/commands/completion/tree.ts +0 -115
- package/src/commands/completion/zsh-widget.ts +0 -39
- package/src/commands/completion/zsh.ts +0 -165
- package/src/commands/profile/_utils.ts +0 -72
- package/src/commands/profile/profile-group.descriptor.ts +0 -14
- package/src/commands/profile/profile.create.descriptor.ts +0 -24
- package/src/commands/profile/profile.create.impl.ts +0 -44
- package/src/commands/profile/profile.delete.descriptor.ts +0 -31
- package/src/commands/profile/profile.delete.impl.ts +0 -71
- package/src/commands/profile/profile.info.descriptor.ts +0 -25
- package/src/commands/profile/profile.info.impl.ts +0 -51
- package/src/commands/profile/profile.list.descriptor.ts +0 -18
- package/src/commands/profile/profile.list.impl.ts +0 -46
- package/src/commands/profile/profile.use.descriptor.ts +0 -25
- package/src/commands/profile/profile.use.impl.ts +0 -39
- package/src/commands/runtime/_logging.ts +0 -47
- package/src/commands/runtime/codegen.command.descriptor.ts +0 -18
- package/src/commands/runtime/codegen.command.impl.ts +0 -44
- package/src/commands/runtime/codegen.ts +0 -84
- package/src/commands/runtime/index.ts +0 -14
- package/src/commands/runtime/plugin.ts +0 -7
- package/src/commands/runtime/runtime-group.descriptor.ts +0 -12
- package/src/config.ts +0 -22
- package/src/core/index.ts +0 -9
- package/src/core/namespace/hook.ts +0 -25
- package/src/core/namespace/index.ts +0 -298
- package/src/core/namespace/schemas/index.ts +0 -25
- package/src/core/plugins/types.ts +0 -87
- package/src/core/runtime/context.ts +0 -50
- package/src/core/runtime/hooks.ts +0 -12
- package/src/core/runtime/shared/context.ts +0 -65
- package/src/core/runtime/shared/options.ts +0 -60
- package/src/core/schemas/manifest.ts +0 -26
- package/src/core/schemas/types.ts +0 -6
- package/src/core/ui/interface.ts +0 -12
- package/src/docs/cli.commands.docs.descriptor.ts +0 -210
- package/src/docs/cli.groups.docs.descriptor.ts +0 -333
- package/src/docs/cli.output.docs.descriptor.ts +0 -445
- package/src/docs/types.ts +0 -18
- package/src/errors.ts +0 -123
- package/src/index.ts +0 -76
- package/src/logging/cli-startup.logger.descriptor.ts +0 -16
- package/src/logging.ts +0 -35
- package/src/patterns/config-namespace.ts +0 -251
- package/src/patterns/crud.ts +0 -217
- package/src/patterns/index.ts +0 -24
- package/src/patterns/log-viewer.ts +0 -118
- package/src/patterns/pattern-types.ts +0 -22
- package/src/patterns/process-manager.ts +0 -180
- package/src/patterns/resolver.contracts.ts +0 -15
- package/src/patterns/resolver.ts +0 -86
- package/src/patterns/schemas.ts +0 -146
- package/src/patterns/tool-wrapper.ts +0 -165
- package/src/providers.ts +0 -282
- package/src/schemas/descriptors.d.ts +0 -119
- package/src/schemas/descriptors.ts +0 -136
- package/src/schemas/surface.ts +0 -52
- package/src/schemas/types.d.ts +0 -195
- package/src/schemas/types.ts +0 -225
- package/src/support/ui-toolkit.ts +0 -224
- package/src/surface/CLISurface.ts +0 -193
- package/src/surface/attach-tui-action.ts +0 -76
- package/src/surface/build-context.ts +0 -49
- package/src/surface/command-group-policy.ts +0 -52
- package/src/surface/discovery-cache.ts +0 -143
- package/src/surface/register-commands.ts +0 -266
- package/src/surface/register-groups.ts +0 -84
- package/src/surface.ts +0 -9
- package/src/types.ts +0 -3
- package/src/ui/schemas/types.ts +0 -1
- package/src/ui/toolkit/VibesUIToolkit.ts +0 -1
- package/src/ui.context.descriptor.ts +0 -13
- package/src/utils/open.ts +0 -36
- package/src/version.ts +0 -10
- /package/dist/{api → boot}/schemas/types.js +0 -0
- /package/dist/{logging → support/logging}/cli-startup.logger.descriptor.d.ts +0 -0
- /package/dist/{logging → support/logging}/cli-startup.logger.descriptor.js +0 -0
- /package/dist/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AC,SAAS,CAAC;QAC3D,CAAC;aAAM,IAAI,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,EAAE,CAAC;YACjD,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;QAClD,CAAC;aAAM,CAAC;YACN,SAAS;QACX,CAAC;QACD,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;IACpC,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Global CLI flags and output format: the contract the CLI exposes to scripts
|
|
3
|
+
* and CI, resolved from argv and the host's captured terminal facts.
|
|
4
|
+
*/
|
|
5
|
+
import type { VibesRuntime } from '@vibesdotdev/kernel/api/runtime';
|
|
6
|
+
import { type RuntimeRef, type RuntimeTerminalFacts } from '@vibesdotdev/kernel';
|
|
7
|
+
import { type OutputFormatId } from '../schemas/output-format.ts';
|
|
8
|
+
import type { CLIProviderOptions, ResolvedCliFlags } from './schemas/providers.ts';
|
|
9
|
+
/**
|
|
10
|
+
* Whether the output plane strips SGR for this invocation: `--no-color`,
|
|
11
|
+
* `NO_COLOR` (the runtime's captured terminal facts) or JSON output.
|
|
12
|
+
*/
|
|
13
|
+
export declare function resolveOutputStripSgr(runtime: VibesRuntime, options?: CLIProviderOptions): boolean;
|
|
14
|
+
export declare function detectOutputFormat(argv: ReadonlyArray<string>): OutputFormatId;
|
|
15
|
+
/**
|
|
16
|
+
* Resolve global CLI flags from argv and the host's terminal facts.
|
|
17
|
+
*
|
|
18
|
+
* Sources of truth, in order:
|
|
19
|
+
* 1. Explicit flag on argv (e.g. `--quiet`, `--non-interactive`, `--no-color`)
|
|
20
|
+
* 2. Environment variables (`NO_COLOR`, `VIBES_FORCE_INTERACTIVE`)
|
|
21
|
+
* 3. TTY behavior from the explicitly handed runtime facts
|
|
22
|
+
*
|
|
23
|
+
* The flag set is the *contract* the CLI exposes to scripts and CI; never
|
|
24
|
+
* silently swallow one. `--json` is treated as an alias for `--format json`
|
|
25
|
+
* (set in `format`) and ALSO implies machine-readable output (sets `quiet`
|
|
26
|
+
* propagation for the loader log routing).
|
|
27
|
+
*
|
|
28
|
+
* Supplied facts are authoritative, including partial facts. Pass null when
|
|
29
|
+
* this runtime has no terminal observation; no caller observes ambient process TTY.
|
|
30
|
+
* forceInteractive overrides only terminal autodetection, never explicit flags
|
|
31
|
+
* or machine-readable output.
|
|
32
|
+
*/
|
|
33
|
+
export declare function resolveCliFlags(argv: ReadonlyArray<string>, terminal: RuntimeTerminalFacts | null): ResolvedCliFlags;
|
|
34
|
+
/**
|
|
35
|
+
* Print an informational banner — status a human wants around the data
|
|
36
|
+
* (`[liveness] active profile: …`), never part of the data itself.
|
|
37
|
+
*
|
|
38
|
+
* Goes to stderr so it cannot interleave with stdout payloads, and is dropped
|
|
39
|
+
* under `--quiet` / `-q` (and therefore under `--json`, which implies quiet).
|
|
40
|
+
* Impls that print banners with `console.log` should route them here; the
|
|
41
|
+
* `pm list` liveness banner (`pm/src/cli/pm.list.impl.ts`) is the known
|
|
42
|
+
* call site still doing so.
|
|
43
|
+
*/
|
|
44
|
+
export declare function writeInfoBanner(runtime: Pick<RuntimeRef, 'localEnvironment' | 'hasKind' | 'registerPlugin' | 'query'>, message: string): Promise<void>;
|
|
45
|
+
//# sourceMappingURL=cli-flags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-flags.d.ts","sourceRoot":"","sources":["../../src/boot/cli-flags.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAmB,KAAK,UAAU,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAClG,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAItF,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAEnF;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,GAAE,kBAAuB,GAAG,OAAO,CAGtG;AAwBD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,cAAc,CAgB9E;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAC9B,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,EAC3B,QAAQ,EAAE,oBAAoB,GAAG,IAAI,GACnC,gBAAgB,CAqClB;AAED;;;;;;;;;GASG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,kBAAkB,GAAG,SAAS,GAAG,gBAAgB,GAAG,OAAO,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAG5J"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
2
|
+
import { OutputFormatSchema } from "../schemas/output-format.js";
|
|
3
|
+
import { hostArgv } from "./host-argv.js";
|
|
4
|
+
import { commandWriters } from "../commands/output.js";
|
|
5
|
+
/**
|
|
6
|
+
* Whether the output plane strips SGR for this invocation: `--no-color`,
|
|
7
|
+
* `NO_COLOR` (the runtime's captured terminal facts) or JSON output.
|
|
8
|
+
*/
|
|
9
|
+
export function resolveOutputStripSgr(runtime, options = {}) {
|
|
10
|
+
const format = options.format ?? detectOutputFormat(hostArgv(runtime));
|
|
11
|
+
return resolveCliFlags(hostArgv(runtime), runtime.localEnvironment.terminal?.() ?? null).noColor || format === 'json';
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Detect output format from CLI arguments.
|
|
15
|
+
*
|
|
16
|
+
* Honors `--format <fmt>`, `--format=<fmt>`, and the `--json` shorthand.
|
|
17
|
+
* `--json` always wins so `--format table --json` produces JSON (matching
|
|
18
|
+
* the common CLI convention).
|
|
19
|
+
*
|
|
20
|
+
* Format identifiers use the open `OutputFormatSchema`. Dispatch resolves the
|
|
21
|
+
* selected runtime formatter and refuses an unavailable identifier instead of
|
|
22
|
+
* silently rendering a different format. A command's declared `--format` option
|
|
23
|
+
* remains command-owned.
|
|
24
|
+
*/
|
|
25
|
+
function parseOutputFormat(value) {
|
|
26
|
+
const parsed = OutputFormatSchema.safeParse(value.toLowerCase());
|
|
27
|
+
if (!parsed.success) {
|
|
28
|
+
throw new CapabilityError('Output format identifier is invalid.', 'INVALID_INPUT', {
|
|
29
|
+
reason: 'cli-output-format-invalid'
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return parsed.data;
|
|
33
|
+
}
|
|
34
|
+
export function detectOutputFormat(argv) {
|
|
35
|
+
if (argv.includes('--json'))
|
|
36
|
+
return 'json';
|
|
37
|
+
const inline = argv.find((arg) => arg.startsWith('--format='));
|
|
38
|
+
if (inline) {
|
|
39
|
+
const fmt = inline.slice('--format='.length).toLowerCase();
|
|
40
|
+
return parseOutputFormat(fmt);
|
|
41
|
+
}
|
|
42
|
+
const idx = argv.findIndex((arg) => arg === '--format');
|
|
43
|
+
if (idx >= 0 && idx + 1 < argv.length) {
|
|
44
|
+
const fmt = String(argv[idx + 1]).toLowerCase();
|
|
45
|
+
return parseOutputFormat(fmt);
|
|
46
|
+
}
|
|
47
|
+
return 'table';
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Resolve global CLI flags from argv and the host's terminal facts.
|
|
51
|
+
*
|
|
52
|
+
* Sources of truth, in order:
|
|
53
|
+
* 1. Explicit flag on argv (e.g. `--quiet`, `--non-interactive`, `--no-color`)
|
|
54
|
+
* 2. Environment variables (`NO_COLOR`, `VIBES_FORCE_INTERACTIVE`)
|
|
55
|
+
* 3. TTY behavior from the explicitly handed runtime facts
|
|
56
|
+
*
|
|
57
|
+
* The flag set is the *contract* the CLI exposes to scripts and CI; never
|
|
58
|
+
* silently swallow one. `--json` is treated as an alias for `--format json`
|
|
59
|
+
* (set in `format`) and ALSO implies machine-readable output (sets `quiet`
|
|
60
|
+
* propagation for the loader log routing).
|
|
61
|
+
*
|
|
62
|
+
* Supplied facts are authoritative, including partial facts. Pass null when
|
|
63
|
+
* this runtime has no terminal observation; no caller observes ambient process TTY.
|
|
64
|
+
* forceInteractive overrides only terminal autodetection, never explicit flags
|
|
65
|
+
* or machine-readable output.
|
|
66
|
+
*/
|
|
67
|
+
export function resolveCliFlags(argv, terminal) {
|
|
68
|
+
const has = (flag) => argv.includes(flag);
|
|
69
|
+
const explicitVerbose = has('-v') || has('--verbose');
|
|
70
|
+
const explicitQuiet = has('-q') || has('--quiet');
|
|
71
|
+
const explicitNoColor = has('--no-color');
|
|
72
|
+
const explicitNonInteractive = has('--non-interactive') || has('--no-interactive');
|
|
73
|
+
const explicitYes = has('-y') || has('--yes');
|
|
74
|
+
const json = has('--json');
|
|
75
|
+
const format = detectOutputFormat(argv);
|
|
76
|
+
const observed = terminal;
|
|
77
|
+
const autodetectNonInteractive = observed?.stdinIsTerminal !== true || observed?.stdoutIsTerminal !== true;
|
|
78
|
+
const forceInteractive = terminal?.forceInteractive === true;
|
|
79
|
+
const nonInteractive = explicitNonInteractive || json || format === 'json' ||
|
|
80
|
+
(!forceInteractive && autodetectNonInteractive);
|
|
81
|
+
// NO_COLOR: https://no-color.org — any value disables color (a terminal fact).
|
|
82
|
+
const envNoColor = terminal?.noColor === true;
|
|
83
|
+
// JSON output should never carry ANSI codes (they break `jq` consumers).
|
|
84
|
+
const noColor = explicitNoColor || envNoColor || json || format === 'json';
|
|
85
|
+
// JSON output implies "quiet" for incidental loader chatter so the JSON
|
|
86
|
+
// pipe stays parseable. Explicit -v wins for debugging.
|
|
87
|
+
const quiet = explicitVerbose ? false : explicitQuiet || json || format === 'json';
|
|
88
|
+
return {
|
|
89
|
+
verbose: explicitVerbose,
|
|
90
|
+
quiet,
|
|
91
|
+
noColor,
|
|
92
|
+
nonInteractive,
|
|
93
|
+
yes: explicitYes,
|
|
94
|
+
json,
|
|
95
|
+
format
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Print an informational banner — status a human wants around the data
|
|
100
|
+
* (`[liveness] active profile: …`), never part of the data itself.
|
|
101
|
+
*
|
|
102
|
+
* Goes to stderr so it cannot interleave with stdout payloads, and is dropped
|
|
103
|
+
* under `--quiet` / `-q` (and therefore under `--json`, which implies quiet).
|
|
104
|
+
* Impls that print banners with `console.log` should route them here; the
|
|
105
|
+
* `pm list` liveness banner (`pm/src/cli/pm.list.impl.ts`) is the known
|
|
106
|
+
* call site still doing so.
|
|
107
|
+
*/
|
|
108
|
+
export async function writeInfoBanner(runtime, message) {
|
|
109
|
+
if (resolveCliFlags(hostArgv(runtime), runtime.localEnvironment.terminal?.() ?? null).quiet)
|
|
110
|
+
return;
|
|
111
|
+
(await commandWriters(runtime)).log(message);
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=cli-flags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-flags.js","sourceRoot":"","sources":["../../src/boot/cli-flags.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAA8C,MAAM,qBAAqB,CAAC;AAClG,OAAO,EAAE,kBAAkB,EAAuB,MAAM,6BAA6B,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAIvD;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAC,OAAqB,EAAE,UAA8B,EAAE;IAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,kBAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;IACvE,OAAO,eAAe,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,QAAQ,EAAE,EAAE,IAAI,IAAI,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wD;IACxD,MAAM,KAAK,GAAG,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,IAAI,IAAI,IAAI,MAAM,KAAK,MAAM,CAAC;IAEnF,OAAO;QACN,OAAO,EAAE,eAAe;QACxB,KAAK;QACL,OAAO;QACP,cAAc;QACd,GAAG,EAAE,WAAW;QAChB,IAAI;QACJ,MAAM;KACN,CAAC;AACH,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,OAAsF,EAAE,OAAe;IAC5I,IAAI,eAAe,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,QAAQ,EAAE,EAAE,IAAI,IAAI,CAAC,CAAC,KAAK;QAAE,OAAO;IACpG,CAAC,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared CLI config contract for `vibes.config.ts`.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the canonical `VibesAppConfig` from `@vibesdotdev/kernel/config`
|
|
5
|
+
* and provides a typed `defineConfig` helper for editor autocomplete in
|
|
6
|
+
* project-level configs.
|
|
7
|
+
*/
|
|
8
|
+
export type { VibesAppConfig, PluginsConfig } from '@vibesdotdev/kernel/config';
|
|
9
|
+
import type { VibesAppConfig } from '@vibesdotdev/kernel/config';
|
|
10
|
+
import type { RuntimePlugin } from '@vibesdotdev/kernel';
|
|
11
|
+
/**
|
|
12
|
+
* Project config shape accepted by `defineConfig`. Plugin arrays may be
|
|
13
|
+
* empty, in which case project defaults are explicitly opted out. Omit the
|
|
14
|
+
* field to use the binary's `defaultPlugins` (statically imported by the
|
|
15
|
+
* wrapper).
|
|
16
|
+
*/
|
|
17
|
+
export type VibesConfigPlugin = string | (() => Promise<RuntimePlugin | {
|
|
18
|
+
default: RuntimePlugin;
|
|
19
|
+
}>);
|
|
20
|
+
export type VibesConfig = Omit<Partial<VibesAppConfig>, 'plugins'> & {
|
|
21
|
+
/** Public package export specifiers or bundler-visible import loaders. */
|
|
22
|
+
plugins?: VibesConfigPlugin[];
|
|
23
|
+
};
|
|
24
|
+
export declare function defineConfig(config: VibesConfig): VibesConfig;
|
|
25
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/boot/config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAC1B,MAAM,GACN,CAAC,MAAM,OAAO,CAAC,aAAa,GAAG;IAAE,OAAO,EAAE,aAAa,CAAA;CAAE,CAAC,CAAC,CAAC;AAE/D,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC,GAAG;IACpE,0EAA0E;IAC1E,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC9B,CAAC;AAEF,wBAAgB,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,WAAW,CAE7D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared CLI config contract for `vibes.config.ts`.
|
|
3
3
|
*
|
|
4
|
-
* Re-exports the canonical `VibesAppConfig` from `@vibesdotdev/
|
|
4
|
+
* Re-exports the canonical `VibesAppConfig` from `@vibesdotdev/kernel/config`
|
|
5
5
|
* and provides a typed `defineConfig` helper for editor autocomplete in
|
|
6
6
|
* project-level configs.
|
|
7
7
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/boot/config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAsBH,MAAM,UAAU,YAAY,CAAC,MAAmB;IAC/C,OAAO,MAAM,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type RuntimeRef } from '@vibesdotdev/kernel';
|
|
2
|
+
export type { CliExternalUrlContext, ExternalUrlCommand } from './schemas/external-url.ts';
|
|
3
|
+
import type { ExternalUrlCommand } from './schemas/external-url.ts';
|
|
4
|
+
export declare function externalUrlCommand(platform: string, url: string): ExternalUrlCommand;
|
|
5
|
+
/**
|
|
6
|
+
* Launch a validated URL through the runtime's execution capability.
|
|
7
|
+
* Platform selection comes from the active environment; no feature package
|
|
8
|
+
* reaches for process globals or a subprocess implementation.
|
|
9
|
+
*/
|
|
10
|
+
export declare function openExternalUrl(runtime: RuntimeRef, url: string): Promise<void>;
|
|
11
|
+
/** Register the CLI-only external-url context after the runtime is bootstrapped. */
|
|
12
|
+
export declare function registerCliExternalUrlContext(runtime: RuntimeRef): void;
|
|
13
|
+
//# sourceMappingURL=external-url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-url.d.ts","sourceRoot":"","sources":["../../src/boot/external-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAiBxF,YAAY,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC3F,OAAO,KAAK,EAAyB,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE3F,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAIpF;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA6BrF;AAED,oFAAoF;AACpF,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAiBvE"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { CapabilityError, composeChildEnv } from '@vibesdotdev/kernel';
|
|
2
|
+
const ALLOWED_SCHEMES = new Set(['http:', 'https:']);
|
|
3
|
+
function validateUrl(url) {
|
|
4
|
+
if (!URL.canParse(url)) {
|
|
5
|
+
throw new Error(`Invalid URL: ${url}`);
|
|
6
|
+
}
|
|
7
|
+
const parsed = new URL(url);
|
|
8
|
+
if (!ALLOWED_SCHEMES.has(parsed.protocol)) {
|
|
9
|
+
throw new Error(`URL scheme not allowed: ${parsed.protocol}. Only http:// and https:// are permitted.`);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export function externalUrlCommand(platform, url) {
|
|
13
|
+
if (platform === 'darwin')
|
|
14
|
+
return { command: 'open', args: [url] };
|
|
15
|
+
if (platform === 'win32')
|
|
16
|
+
return { command: 'rundll32.exe', args: ['url.dll,FileProtocolHandler', url] };
|
|
17
|
+
return { command: 'xdg-open', args: [url] };
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Launch a validated URL through the runtime's execution capability.
|
|
21
|
+
* Platform selection comes from the active environment; no feature package
|
|
22
|
+
* reaches for process globals or a subprocess implementation.
|
|
23
|
+
*/
|
|
24
|
+
export async function openExternalUrl(runtime, url) {
|
|
25
|
+
validateUrl(url);
|
|
26
|
+
const platform = runtime.localEnvironment.getPlatform?.();
|
|
27
|
+
if (!platform) {
|
|
28
|
+
throw new Error('The active runtime environment cannot open external URLs.');
|
|
29
|
+
}
|
|
30
|
+
const execution = await runtime.query('runtime/execution').resolve();
|
|
31
|
+
if (!execution) {
|
|
32
|
+
throw new CapabilityError('The active runtime has no runtime/execution to open external URLs with.', 'UNAVAILABLE', {
|
|
33
|
+
reason: 'execution-unavailable',
|
|
34
|
+
retryable: false
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
const { command, args } = externalUrlCommand(platform, url);
|
|
38
|
+
// The opener needs the user's desktop session to reach a browser: the host
|
|
39
|
+
// set plus exactly the session keys an opener reads.
|
|
40
|
+
const result = await execution.execute({
|
|
41
|
+
command,
|
|
42
|
+
args,
|
|
43
|
+
env: composeChildEnv(runtime, {
|
|
44
|
+
inheritEnv: ['DISPLAY', 'WAYLAND_DISPLAY', 'XDG_RUNTIME_DIR', 'DBUS_SESSION_BUS_ADDRESS', 'BROWSER']
|
|
45
|
+
}),
|
|
46
|
+
envMode: 'replace'
|
|
47
|
+
});
|
|
48
|
+
if (result.exitCode !== 0 || result.timedOut) {
|
|
49
|
+
throw new Error(`Failed to open browser: ${result.stderr.trim() || `exit code ${result.exitCode ?? 'unknown'}`}`);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/** Register the CLI-only external-url context after the runtime is bootstrapped. */
|
|
53
|
+
export function registerCliExternalUrlContext(runtime) {
|
|
54
|
+
if (!runtime.hasKind('context')) {
|
|
55
|
+
throw new Error('Context kind not registered - cannot register CLI external URL context');
|
|
56
|
+
}
|
|
57
|
+
runtime.registerLoader('context', 'cli/external-url', async () => ({
|
|
58
|
+
meta: { id: 'cli/external-url', kind: 'context', priority: 0 },
|
|
59
|
+
impl: {
|
|
60
|
+
provide: () => ({
|
|
61
|
+
open: (url) => openExternalUrl(runtime, url)
|
|
62
|
+
})
|
|
63
|
+
}
|
|
64
|
+
}), { constraint: { surfaces: ['cli'] }, priority: 0 });
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=external-url.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-url.js","sourceRoot":"","sources":["../../src/boot/external-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAmB,MAAM,qBAAqB,CAAC;AAGxF,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;A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AE,CAAC,eAAe,CAAC,OAAO,EAAE,GAAG,CAAC;aAC5C,CAAC;SACF;KACD,CAAC,EACF,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,CAClD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RuntimeRef } from '@vibesdotdev/kernel';
|
|
2
|
+
/**
|
|
3
|
+
* The argv the host captured at construction (`localEnvironment.argv`), never
|
|
4
|
+
* the live `process.argv`. A host with no command line answers none.
|
|
5
|
+
*/
|
|
6
|
+
export declare function hostArgv(runtime: Pick<RuntimeRef, 'localEnvironment'>): readonly string[];
|
|
7
|
+
//# sourceMappingURL=host-argv.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-argv.d.ts","sourceRoot":"","sources":["../../src/boot/host-argv.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,kBAAkB,CAAC,GAAG,SAAS,MAAM,EAAE,CAEzF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The argv the host captured at construction (`localEnvironment.argv`), never
|
|
3
|
+
* the live `process.argv`. A host with no command line answers none.
|
|
4
|
+
*/
|
|
5
|
+
export function hostArgv(runtime) {
|
|
6
|
+
return runtime.localEnvironment.argv?.() ?? [];
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=host-argv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-argv.js","sourceRoot":"","sources":["../../src/boot/host-argv.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAC,OAA6C;IACrE,OAAO,OAAO,CAAC,gBAAgB,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC;AAChD,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI host bootstrap handoff — first-install inputs a thin `vibes` shim hands
|
|
3
|
+
* to `@vibesdotdev/plugins` `startHost`: runtime-local context the CLI host
|
|
4
|
+
* binds for its own runtime.
|
|
5
|
+
*
|
|
6
|
+
* On a new machine the shim signs the user in before the host graph exists
|
|
7
|
+
* (`apps/cli-bin/src/bin/thin/bootstrap-sign-in.ts`), because the registry
|
|
8
|
+
* that serves the graph 404-hides unauthenticated reads. That session must
|
|
9
|
+
* reach the auth plugin so the user approves exactly once. The shim passes it
|
|
10
|
+
* as an ARGUMENT to `startHost({ bootstrap })`; this module binds it into the
|
|
11
|
+
* runtime being composed as runtime-local context (`HOST_BOOTSTRAP_CONTEXT_ID`),
|
|
12
|
+
* the sanctioned plugin binding in `docs/architecture/plugins.md`. There is no
|
|
13
|
+
* process global, environment variable or file: only the runtime this host
|
|
14
|
+
* composes can read it, and no child process inherits it.
|
|
15
|
+
*
|
|
16
|
+
* `@vibesdotdev/cli` does not depend on `@vibesdotdev/auth`, so `session` is opaque
|
|
17
|
+
* here. The owner of each field validates it: auth parses `session` with its
|
|
18
|
+
* own schema when it adopts the handoff, and fails with a named error.
|
|
19
|
+
*/
|
|
20
|
+
import { CapabilityError, type RuntimePlugin } from '@vibesdotdev/kernel';
|
|
21
|
+
/** The ONE owner of this id. The plugins host registers it; `@vibesdotdev/auth` reads it. */
|
|
22
|
+
export declare const HOST_BOOTSTRAP_CONTEXT_ID = "cli/host-bootstrap";
|
|
23
|
+
export type { HostBootstrap } from './schemas/host-bootstrap.ts';
|
|
24
|
+
import type { HostBootstrap } from './schemas/host-bootstrap.ts';
|
|
25
|
+
/**
|
|
26
|
+
* The shim handed `startHost` a bootstrap that is not a `HostBootstrap`: the
|
|
27
|
+
* typed refusal `INVALID_INPUT` `host-bootstrap-invalid`, naming the refused
|
|
28
|
+
* fields by path only.
|
|
29
|
+
*/
|
|
30
|
+
export declare class InvalidHostBootstrapError extends CapabilityError {
|
|
31
|
+
constructor(message: string, paths: readonly string[]);
|
|
32
|
+
}
|
|
33
|
+
/** Validate the envelope at the host boundary. Field values stay opaque (see the module note). */
|
|
34
|
+
export declare function parseHostBootstrap<Raw>(raw: Raw): HostBootstrap;
|
|
35
|
+
/** Bind a validated bootstrap into the runtime this host composes. */
|
|
36
|
+
export declare function createHostBootstrapPlugin(bootstrap: HostBootstrap): RuntimePlugin;
|
|
37
|
+
//# sourceMappingURL=host-bootstrap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-bootstrap.d.ts","sourceRoot":"","sources":["../../src/boot/host-bootstrap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,eAAe,EAA+B,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGvG,6FAA6F;AAC7F,eAAO,MAAM,yBAAyB,uBAAuB,CAAC;AAE9D,YAAY,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAIjE;;;;GAIG;AACH,qBAAa,yBAA0B,SAAQ,eAAe;gBACjD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE;CAIrD;AAED,kGAAkG;AAClG,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,aAAa,CAU/D;AAED,sEAAsE;AACtE,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,aAAa,GAAG,aAAa,CAajF"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI host bootstrap handoff — first-install inputs a thin `vibes` shim hands
|
|
3
|
+
* to `@vibesdotdev/plugins` `startHost`: runtime-local context the CLI host
|
|
4
|
+
* binds for its own runtime.
|
|
5
|
+
*
|
|
6
|
+
* On a new machine the shim signs the user in before the host graph exists
|
|
7
|
+
* (`apps/cli-bin/src/bin/thin/bootstrap-sign-in.ts`), because the registry
|
|
8
|
+
* that serves the graph 404-hides unauthenticated reads. That session must
|
|
9
|
+
* reach the auth plugin so the user approves exactly once. The shim passes it
|
|
10
|
+
* as an ARGUMENT to `startHost({ bootstrap })`; this module binds it into the
|
|
11
|
+
* runtime being composed as runtime-local context (`HOST_BOOTSTRAP_CONTEXT_ID`),
|
|
12
|
+
* the sanctioned plugin binding in `docs/architecture/plugins.md`. There is no
|
|
13
|
+
* process global, environment variable or file: only the runtime this host
|
|
14
|
+
* composes can read it, and no child process inherits it.
|
|
15
|
+
*
|
|
16
|
+
* `@vibesdotdev/cli` does not depend on `@vibesdotdev/auth`, so `session` is opaque
|
|
17
|
+
* here. The owner of each field validates it: auth parses `session` with its
|
|
18
|
+
* own schema when it adopts the handoff, and fails with a named error.
|
|
19
|
+
*/
|
|
20
|
+
import { CapabilityError, createRuntimePlugin, loader } from '@vibesdotdev/kernel';
|
|
21
|
+
import { z } from 'zod/v4';
|
|
22
|
+
/** The ONE owner of this id. The plugins host registers it; `@vibesdotdev/auth` reads it. */
|
|
23
|
+
export const HOST_BOOTSTRAP_CONTEXT_ID = 'cli/host-bootstrap';
|
|
24
|
+
const hostBootstrapSchema = z.object({ session: z.unknown().optional() }).strict();
|
|
25
|
+
/**
|
|
26
|
+
* The shim handed `startHost` a bootstrap that is not a `HostBootstrap`: the
|
|
27
|
+
* typed refusal `INVALID_INPUT` `host-bootstrap-invalid`, naming the refused
|
|
28
|
+
* fields by path only.
|
|
29
|
+
*/
|
|
30
|
+
export class InvalidHostBootstrapError extends CapabilityError {
|
|
31
|
+
constructor(message, paths) {
|
|
32
|
+
super(message, 'INVALID_INPUT', { reason: 'host-bootstrap-invalid', retryable: false, details: { paths: [...paths] } });
|
|
33
|
+
this.name = 'InvalidHostBootstrapError';
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/** Validate the envelope at the host boundary. Field values stay opaque (see the module note). */
|
|
37
|
+
export function parseHostBootstrap(raw) {
|
|
38
|
+
const parsed = hostBootstrapSchema.safeParse(raw);
|
|
39
|
+
if (!parsed.success) {
|
|
40
|
+
const issues = parsed.error.issues.map((issue) => `${issue.path.join('.') || '(root)'}: ${issue.message}`);
|
|
41
|
+
throw new InvalidHostBootstrapError(`startHost received an invalid bootstrap (${issues.join('; ')}).`, parsed.error.issues.map((issue) => issue.path.join('.') || '(root)'));
|
|
42
|
+
}
|
|
43
|
+
return Object.freeze({ ...parsed.data });
|
|
44
|
+
}
|
|
45
|
+
/** Bind a validated bootstrap into the runtime this host composes. */
|
|
46
|
+
export function createHostBootstrapPlugin(bootstrap) {
|
|
47
|
+
return createRuntimePlugin({
|
|
48
|
+
id: 'cli.host-bootstrap',
|
|
49
|
+
name: 'CLI host bootstrap',
|
|
50
|
+
description: 'First-install inputs the thin shim passed to startHost, as runtime-local context.',
|
|
51
|
+
dependencies: ['context'],
|
|
52
|
+
descriptors: [{ kind: 'context', id: HOST_BOOTSTRAP_CONTEXT_ID, name: 'CLI host bootstrap' }],
|
|
53
|
+
loaders: [
|
|
54
|
+
loader(HOST_BOOTSTRAP_CONTEXT_ID, { kind: 'context' }, async () => ({
|
|
55
|
+
impl: { provide: () => bootstrap }
|
|
56
|
+
}))
|
|
57
|
+
]
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=host-bootstrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-bootstrap.js","sourceRoot":"","sources":["../../src/boot/host-bootstrap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,EAAsB,MAAM,qBAAqB,CAAC;AACvG,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,6FAA6F;AAC7F,MAAM,CAAC,MAAM,yBAAyB,GA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AED,sEAAsE;AACtE,MAAM,UAAU,yBAAyB,CAAC,SAAwB;IACjE,OAAO,mBAAmB,CAAC;QAC1B,EAAE,EAAE,oBAAoB;QACxB,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,mFAAmF;QAChG,YAAY,EAAE,CAAC,SAAS,CAAC;QACzB,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,yBAAyB,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;QAC7F,OAAO,EAAE;YACR,MAAM,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;gBACnE,IAAI,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE;aAClC,CAAC,CAAC;SACH;KACD,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export { KeyValueDataSchema, CliLogMetaSchema } from '@vibesdotdev/cli-contracts/schemas';
|
|
2
|
+
export type { PasswordPromptOptions, UIContext, KeyValueData, CliLogMeta, LoggerContext, AppContext, ConfigValue, ConfigNamespace, ConfigContext, CLIActionLifetime, CLIContext } from '@vibesdotdev/cli-contracts/context';
|
|
3
|
+
/**
|
|
4
|
+
* CLI Context Providers: registers the CLI's context loaders with the universal runtime.
|
|
5
|
+
*/
|
|
6
|
+
import type { VibesRuntime } from '@vibesdotdev/kernel/api/runtime';
|
|
7
|
+
export { hostArgv } from '../boot/host-argv.ts';
|
|
8
|
+
import { CLI_EXIT_SIGNAL_NAME, isCLIExitSignal, requestCLIExit } from '../surface/exit.ts';
|
|
9
|
+
export { createCLIActionLifetime } from './action-lifetime.ts';
|
|
10
|
+
export { detectOutputFormat, resolveCliFlags, resolveOutputStripSgr, writeInfoBanner } from './cli-flags.ts';
|
|
11
|
+
export type { CliHostOutput, CLIProviderOptions, ResolvedCliFlags } from './schemas/providers.ts';
|
|
12
|
+
import type { CLIProviderOptions } from './schemas/providers.ts';
|
|
13
|
+
/**
|
|
14
|
+
* Exit recognition and requests live in the leaf module `../surface/exit.ts`
|
|
15
|
+
* so universal surface files do not import the host-oriented provider module.
|
|
16
|
+
*/
|
|
17
|
+
export { CLI_EXIT_SIGNAL_NAME, isCLIExitSignal, requestCLIExit };
|
|
18
|
+
export { getCLIInvocationClient, readCLIExitCode, setCLIExitCode };
|
|
19
|
+
export type { CLIExitOptions, CLIExitSignal } from '../surface/exit.ts';
|
|
20
|
+
import { getCLIInvocationClient, readCLIExitCode, setCLIExitCode } from '../invocation/state.ts';
|
|
21
|
+
/**
|
|
22
|
+
* Register CLI context providers with the runtime
|
|
23
|
+
*
|
|
24
|
+
* Call this before initializing CLISurface.
|
|
25
|
+
*/
|
|
26
|
+
export declare function registerCLIProviders(runtime: VibesRuntime, options?: CLIProviderOptions): void;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the handed runtime's invocation asked the host to stay alive (for
|
|
29
|
+
* long-running commands). The runtime is named by the caller: there is no
|
|
30
|
+
* process-wide keep-alive to read.
|
|
31
|
+
*/
|
|
32
|
+
export declare function shouldKeepAlive(runtime: VibesRuntime): boolean;
|
|
33
|
+
/** Clear the handed runtime's keep-alive flag. */
|
|
34
|
+
export declare function resetKeepAlive(runtime: VibesRuntime): void;
|
|
35
|
+
//# sourceMappingURL=providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../src/boot/providers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC1F,YAAY,EAAE,qBAAqB,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAE5N;;GAEG;AAEH,OAAO,KAAK,E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