@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,26 @@
|
|
|
1
|
+
const descriptor = {
|
|
2
|
+
kind: 'cli/command',
|
|
3
|
+
id: 'profile.environment',
|
|
4
|
+
name: 'environment',
|
|
5
|
+
description: "Show or set the active profile's bound environment",
|
|
6
|
+
group: 'profile',
|
|
7
|
+
arguments: [
|
|
8
|
+
{
|
|
9
|
+
name: 'id',
|
|
10
|
+
description: 'Registered environment id to bind the active profile to',
|
|
11
|
+
required: false
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
examples: [
|
|
15
|
+
{ command: 'vibes profile environment', description: "Show the active profile's environment" },
|
|
16
|
+
{
|
|
17
|
+
command: 'vibes --profile work profile environment staging',
|
|
18
|
+
description: 'Bind the "work" profile to the staging environment'
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
surfaces: ['cli'],
|
|
22
|
+
hardware: ['consumer'],
|
|
23
|
+
enabled: true
|
|
24
|
+
};
|
|
25
|
+
export default descriptor;
|
|
26
|
+
//# sourceMappingURL=profile.environment.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.environment.descriptor.js","sourceRoot":"","sources":["../../../src/commands/profile/profile.environment.descriptor.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAA8B;IAC7C,IAAI,EAAE,aAAa;IACnB,EAAE,EAAE,qBAAqB;IACzB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,oDAAoD;IACjE,KAAK,EAAE,SAAS;IAChB,SAAS,EAAE;QACV;YACC,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,yDAAyD;YACtE,QAAQ,EAAE,KAAK;SACf;KACD;IACD,QAAQ,EAAE;QACT,EAAE,OAAO,EAAE,2BAA2B,EAAE,WAAW,EAAE,uCAAuC,EAAE;QAC9F;YACC,OAAO,EAAE,kDAAkD;YAC3D,WAAW,EAAE,oDAAoD;SACjE;KACD;IACD,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,OAAO,EAAE,IAAI;CACb,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Profile Environment Implementation
|
|
3
|
+
*
|
|
4
|
+
* Reads or writes the environment selection bound to THIS host's profile.
|
|
5
|
+
* Commands acting on another profile read and write its selection in process
|
|
6
|
+
* against that profile's own home (`profile-env.ts`).
|
|
7
|
+
*/
|
|
8
|
+
import type { CommandContext, CommandOptions } from '../../schemas/surface.ts';
|
|
9
|
+
import type { ProfileEnvironmentSelection } from '../schemas/profile-environment.ts';
|
|
10
|
+
declare const _default: {
|
|
11
|
+
execute(args: CommandOptions, opts: CommandOptions, context: CommandContext): Promise<ProfileEnvironmentSelection | void>;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
//# sourceMappingURL=profile.environment.impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.environment.impl.d.ts","sourceRoot":"","sources":["../../../src/commands/profile/profile.environment.impl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;;kBAU7E,cAAc,QACd,cAAc,WACX,cAAc,GACrB,OAAO,CAAC,2BAA2B,GAAG,IAAI,CAAC;;AAL/C,wBAuBE"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Profile Environment Implementation
|
|
3
|
+
*
|
|
4
|
+
* Reads or writes the environment selection bound to THIS host's profile.
|
|
5
|
+
* Commands acting on another profile read and write its selection in process
|
|
6
|
+
* against that profile's own home (`profile-env.ts`).
|
|
7
|
+
*/
|
|
8
|
+
import * as z from 'zod/v4';
|
|
9
|
+
import { writeJson, writeStdoutLine } from "../../commands/output.js";
|
|
10
|
+
import { getEnvironmentDescriptor, readActiveProfileEnvironment, writeActiveProfileEnvironment } from "./profile-env.js";
|
|
11
|
+
export default {
|
|
12
|
+
async execute(args, opts, context) {
|
|
13
|
+
const runtime = context.runtime;
|
|
14
|
+
const id = z.string().catch('').parse(args.id).trim();
|
|
15
|
+
if (id) {
|
|
16
|
+
const descriptor = await getEnvironmentDescriptor(id, runtime);
|
|
17
|
+
if (!descriptor)
|
|
18
|
+
throw new Error(`Unknown environment: ${id}`);
|
|
19
|
+
await writeActiveProfileEnvironment(runtime, descriptor.id);
|
|
20
|
+
}
|
|
21
|
+
const environment = await readActiveProfileEnvironment(runtime);
|
|
22
|
+
if (opts.json === true || opts.format === 'json') {
|
|
23
|
+
await writeJson(runtime, { environment });
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
// A non-JSON format is the surface's to honor: hand back the selection as
|
|
27
|
+
// data so the selected formatter renders it.
|
|
28
|
+
if (opts.format !== undefined)
|
|
29
|
+
return { environment };
|
|
30
|
+
await writeStdoutLine(runtime, environment ?? '(none bound)');
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=profile.environment.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.environment.impl.js","sourceRoot":"","sources":["../../../src/commands/profile/profile.environment.impl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EACN,wBAAwB,EACxB,4BAA4B,EAC5B,6BAA6B,EAC7B,MAAM,kBAAkB,CAAC;AAE1B,eAAe;IACd,KAAK,CAAC,OAAO,CACZ,IAAoB,EACpB,IAAoB,EACpB,OAAuB;QAEvB,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QAChC,MAAM,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QACtD,IAAI,EAAE,EAAE,CAAC;YACR,MAAM,UAAU,GAAG,MAAM,wBAAwB,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;YAC/D,IAAI,CAAC,UAAU;gBAAE,MAAM,IAAI,KAAK,CAAC,wBAAwB,EAAE,EAAE,CAAC,CAAC;YAC/D,MAAM,6BAA6B,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,CAAC,CAAC;QAC7D,CAAC;QACD,MAAM,WAAW,GAAG,MAAM,4BAA4B,CAAC,OAAO,CAAC,CAAC;QAChE,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;YAClD,MAAM,SAAS,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC;YAC1C,OAAO;QACR,CAAC;QACD,0EAA0E;QAC1E,6CAA6C;QAC7C,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS;YAAE,OAAO,EAAE,WAAW,EAAE,CAAC;QACtD,MAAM,eAAe,CAAC,OAAO,EAAE,WAAW,IAAI,cAAc,CAAC,CAAC;IAC/D,CAAC;CACD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CLICommandAssetDescriptor } from '../../schemas/descriptors';
|
|
1
|
+
import type { CLICommandAssetDescriptor } from '../../schemas/descriptors.ts';
|
|
2
2
|
declare const descriptor: CLICommandAssetDescriptor;
|
|
3
3
|
export default descriptor;
|
|
4
4
|
//# sourceMappingURL=profile.info.descriptor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.info.descriptor.d.ts","sourceRoot":"","sources":["../../../src/commands/profile/profile.info.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"profile.info.descriptor.d.ts","sourceRoot":"","sources":["../../../src/commands/profile/profile.info.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,QAAA,MAAM,UAAU,EAAE,yBAwBjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -12,7 +12,11 @@ const descriptor = {
|
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
14
|
examples: [
|
|
15
|
-
{
|
|
15
|
+
{
|
|
16
|
+
command: 'vibes profile info',
|
|
17
|
+
description: 'Show info for the active profile',
|
|
18
|
+
expectExit: 0
|
|
19
|
+
},
|
|
16
20
|
{ command: 'vibes profile info work', description: 'Show info for the "work" profile' }
|
|
17
21
|
],
|
|
18
22
|
surfaces: ['cli'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.info.descriptor.js","sourceRoot":"","sources":["../../../src/commands/profile/profile.info.descriptor.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAA8B;IAC7C,IAAI,EAAE,aAAa;IACnB,EAAE,EAAE,cAAc;IAClB,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,0BAA0B;IACvC,KAAK,EAAE,SAAS;IAChB,SAAS,EAAE;QACV;YACC,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,2CAA2C;YACxD,QAAQ,EAAE,KAAK;SACf;KACD;IACD,QAAQ,EAAE;QACT,
|
|
1
|
+
{"version":3,"file":"profile.info.descriptor.js","sourceRoot":"","sources":["../../../src/commands/profile/profile.info.descriptor.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAA8B;IAC7C,IAAI,EAAE,aAAa;IACnB,EAAE,EAAE,cAAc;IAClB,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,0BAA0B;IACvC,KAAK,EAAE,SAAS;IAChB,SAAS,EAAE;QACV;YACC,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,2CAA2C;YACxD,QAAQ,EAAE,KAAK;SACf;KACD;IACD,QAAQ,EAAE;QACT;YACC,OAAO,EAAE,oBAAoB;YAC7B,WAAW,EAAE,kCAAkC;YAC/C,UAAU,EAAE,CAAC;SACb;QACD,EAAE,OAAO,EAAE,yBAAyB,EAAE,WAAW,EAAE,kCAAkC,EAAE;KACvF;IACD,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,OAAO,EAAE,IAAI;CACb,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Profile Info Implementation
|
|
3
3
|
*
|
|
4
|
-
* Shows details about a specific profile or the active one
|
|
4
|
+
* Shows details about a specific profile or the active one, including its bound
|
|
5
|
+
* environment id, the resolved apiUrl + auth origin, and the cred/config home
|
|
6
|
+
* path — proving the env binding.
|
|
5
7
|
*/
|
|
8
|
+
import type { CommandContext, CommandOptions } from '../../schemas/surface.ts';
|
|
6
9
|
declare const _default: {
|
|
7
|
-
execute(args:
|
|
10
|
+
execute(args: CommandOptions, _opts: CommandOptions, context: CommandContext): Promise<void>;
|
|
8
11
|
};
|
|
9
12
|
export default _default;
|
|
10
13
|
//# sourceMappingURL=profile.info.impl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.info.impl.d.ts","sourceRoot":"","sources":["../../../src/commands/profile/profile.info.impl.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"profile.info.impl.d.ts","sourceRoot":"","sources":["../../../src/commands/profile/profile.info.impl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;;kBAmBvE,cAAc,SACb,cAAc,WACZ,cAAc,GACrB,OAAO,CAAC,IAAI,CAAC;;AALjB,wBAgDE"}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Profile Info Implementation
|
|
3
3
|
*
|
|
4
|
-
* Shows details about a specific profile or the active one
|
|
4
|
+
* Shows details about a specific profile or the active one, including its bound
|
|
5
|
+
* environment id, the resolved apiUrl + auth origin, and the cred/config home
|
|
6
|
+
* path — proving the env binding.
|
|
5
7
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
8
|
+
import { commandWriters } from "../../commands/output.js";
|
|
9
|
+
import { getActiveProfile, profileExists, validateProfileName, getProfileHome, openProfileStore, ProfileNameArgumentSchema, GREEN, RED, GRAY, YELLOW, BOLD, RESET, } from "./_utils.js";
|
|
10
|
+
import { getProfileEnvironment, getEnvironmentDescriptor } from "./profile-env.js";
|
|
9
11
|
export default {
|
|
10
|
-
async execute(args) {
|
|
11
|
-
const
|
|
12
|
+
async execute(args, _opts, context) {
|
|
13
|
+
const { log } = await commandWriters(context.runtime);
|
|
14
|
+
const store = await openProfileStore(context.runtime);
|
|
15
|
+
const name = ProfileNameArgumentSchema.parse(args.name) ?? getActiveProfile(store.roots);
|
|
12
16
|
log('');
|
|
13
17
|
log(`${BOLD}vibes profile info${RESET}`);
|
|
14
18
|
log(`${'─'.repeat(40)}`);
|
|
@@ -18,15 +22,28 @@ export default {
|
|
|
18
22
|
return;
|
|
19
23
|
}
|
|
20
24
|
validateProfileName(name);
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const active = getActiveProfile();
|
|
25
|
+
const path = getProfileHome(name, store);
|
|
26
|
+
const exists = await profileExists(name, store);
|
|
27
|
+
const active = getActiveProfile(store.roots);
|
|
25
28
|
const isActive = name === active;
|
|
26
|
-
log(` Name:
|
|
27
|
-
log(`
|
|
28
|
-
log(` Exists:
|
|
29
|
-
log(` Active:
|
|
29
|
+
log(` Name: ${BOLD}${name}${RESET}`);
|
|
30
|
+
log(` Home: ${GRAY}${path}${RESET}`);
|
|
31
|
+
log(` Exists: ${exists ? `${GREEN}✓${RESET} yes` : `${RED}✗${RESET} no`}`);
|
|
32
|
+
log(` Active: ${isActive ? `${GREEN}✓${RESET} yes` : `${GRAY}no${RESET}`}`);
|
|
33
|
+
if (exists) {
|
|
34
|
+
const environmentId = await getProfileEnvironment(context.runtime, name);
|
|
35
|
+
if (environmentId) {
|
|
36
|
+
const descriptor = await getEnvironmentDescriptor(environmentId, context.runtime);
|
|
37
|
+
const apiUrl = descriptor?.apiUrl ?? `${YELLOW}(unknown descriptor)${RESET}`;
|
|
38
|
+
const authOrigin = descriptor?.apps?.auth ?? `${YELLOW}(unknown)${RESET}`;
|
|
39
|
+
log(` Environment: ${GREEN}${environmentId}${RESET}`);
|
|
40
|
+
log(` API URL: ${GRAY}${apiUrl}${RESET}`);
|
|
41
|
+
log(` Auth origin: ${GRAY}${authOrigin}${RESET}`);
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
log(` Environment: ${YELLOW}(none bound)${RESET}`);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
30
47
|
log('');
|
|
31
48
|
}
|
|
32
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.info.impl.js","sourceRoot":"","sources":["../../../src/commands/profile/profile.info.impl.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"profile.info.impl.js","sourceRoot":"","sources":["../../../src/commands/profile/profile.info.impl.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CLICommandAssetDescriptor } from '../../schemas/descriptors';
|
|
1
|
+
import type { CLICommandAssetDescriptor } from '../../schemas/descriptors.ts';
|
|
2
2
|
declare const descriptor: CLICommandAssetDescriptor;
|
|
3
3
|
export default descriptor;
|
|
4
4
|
//# sourceMappingURL=profile.list.descriptor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.list.descriptor.d.ts","sourceRoot":"","sources":["../../../src/commands/profile/profile.list.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"profile.list.descriptor.d.ts","sourceRoot":"","sources":["../../../src/commands/profile/profile.list.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,QAAA,MAAM,UAAU,EAAE,yBAiBjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -6,7 +6,11 @@ const descriptor = {
|
|
|
6
6
|
group: 'profile',
|
|
7
7
|
arguments: [],
|
|
8
8
|
examples: [
|
|
9
|
-
{
|
|
9
|
+
{
|
|
10
|
+
command: 'vibes profile list',
|
|
11
|
+
description: 'Show all profiles with active indicator',
|
|
12
|
+
expectExit: 0
|
|
13
|
+
}
|
|
10
14
|
],
|
|
11
15
|
surfaces: ['cli'],
|
|
12
16
|
hardware: ['consumer'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.list.descriptor.js","sourceRoot":"","sources":["../../../src/commands/profile/profile.list.descriptor.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAA8B;IAC7C,IAAI,EAAE,aAAa;IACnB,EAAE,EAAE,cAAc;IAClB,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,mBAAmB;IAChC,KAAK,EAAE,SAAS;IAChB,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE;QACT,
|
|
1
|
+
{"version":3,"file":"profile.list.descriptor.js","sourceRoot":"","sources":["../../../src/commands/profile/profile.list.descriptor.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAA8B;IAC7C,IAAI,EAAE,aAAa;IACnB,EAAE,EAAE,cAAc;IAClB,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,mBAAmB;IAChC,KAAK,EAAE,SAAS;IAChB,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE;QACT;YACC,OAAO,EAAE,oBAAoB;YAC7B,WAAW,EAAE,yCAAyC;YACtD,UAAU,EAAE,CAAC;SACb;KACD;IACD,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,OAAO,EAAE,IAAI;CACb,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Profile List Implementation
|
|
3
3
|
*
|
|
4
|
-
* Scans
|
|
4
|
+
* Scans {base}/profile/ and lists each profile with its bound environment,
|
|
5
|
+
* highlighting the active one. The base is ~/.vibes for the production binary
|
|
6
|
+
* unless the surface explicitly selects an isolated runtime home.
|
|
7
|
+
*
|
|
8
|
+
* The listing is returned as data. The CLI's selected output formatter owns
|
|
9
|
+
* stdout, including default table and JSON delivery.
|
|
5
10
|
*/
|
|
11
|
+
import type { CommandContext, CommandOptions } from '../../schemas/surface.ts';
|
|
12
|
+
import { type ProfileStore } from './_utils.ts';
|
|
13
|
+
export type { ProfileListEntry, ProfileListing, ProfileListingData, ProfileListDependencies } from '../schemas/profile-list.ts';
|
|
14
|
+
import type { ProfileListing, ProfileListingData } from '../schemas/profile-list.ts';
|
|
15
|
+
/** The listing as data: the document `--json` writes and a formatter renders. */
|
|
16
|
+
export declare function profileListingData(listing: ProfileListing): ProfileListingData;
|
|
17
|
+
export declare function collectProfileListing(store: ProfileStore, readEnvironment: (name: string) => Promise<string | null>): Promise<ProfileListing>;
|
|
18
|
+
export declare function renderProfileListing(listing: ProfileListing): string;
|
|
19
|
+
import type { ProfileListDependencies } from '../schemas/profile-list.ts';
|
|
6
20
|
declare const _default: {
|
|
7
|
-
|
|
21
|
+
outputBoundary: string;
|
|
22
|
+
execute(_args: CommandOptions, _opts: CommandOptions, context: CommandContext, deps?: ProfileListDependencies): Promise<ProfileListingData>;
|
|
8
23
|
};
|
|
9
24
|
export default _default;
|
|
10
25
|
//# sourceMappingURL=profile.list.impl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.list.impl.d.ts","sourceRoot":"","sources":["../../../src/commands/profile/profile.list.impl.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"profile.list.impl.d.ts","sourceRoot":"","sources":["../../../src/commands/profile/profile.list.impl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAKN,KAAK,YAAY,EAKjB,MAAM,aAAa,CAAC;AAGrB,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAChI,OAAO,KAAK,EAAoB,cAAc,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEvG,iFAAiF;AACjF,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,cAAc,GAAG,kBAAkB,CAM9E;AAED,wBAAsB,qBAAqB,CAC1C,KAAK,EAAE,YAAY,EACnB,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,GACvD,OAAO,CAAC,cAAc,CAAC,CAUzB;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAiBpE;AAED,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;;;mBAKjE,cAAc,SACd,cAAc,WACZ,cAAc,SACjB,uBAAuB,GAC3B,OAAO,CAAC,kBAAkB,CAAC;;AAP/B,wBAeE"}
|
|
@@ -1,33 +1,60 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Profile List Implementation
|
|
3
3
|
*
|
|
4
|
-
* Scans
|
|
4
|
+
* Scans {base}/profile/ and lists each profile with its bound environment,
|
|
5
|
+
* highlighting the active one. The base is ~/.vibes for the production binary
|
|
6
|
+
* unless the surface explicitly selects an isolated runtime home.
|
|
7
|
+
*
|
|
8
|
+
* The listing is returned as data. The CLI's selected output formatter owns
|
|
9
|
+
* stdout, including default table and JSON delivery.
|
|
5
10
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
11
|
+
import { getProfilesDir, getActiveProfile, listProfiles, openProfileStore, GREEN, GRAY, BOLD, RESET } from "./_utils.js";
|
|
12
|
+
import { getProfileEnvironment } from "./profile-env.js";
|
|
13
|
+
/** The listing as data: the document `--json` writes and a formatter renders. */
|
|
14
|
+
export function profileListingData(listing) {
|
|
15
|
+
return {
|
|
16
|
+
active: listing.active ?? null,
|
|
17
|
+
dir: listing.dir,
|
|
18
|
+
profiles: listing.profiles
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export async function collectProfileListing(store, readEnvironment) {
|
|
22
|
+
const dir = getProfilesDir(store.roots);
|
|
23
|
+
const active = getActiveProfile(store.roots);
|
|
24
|
+
if (!(await store.fs.exists(dir)))
|
|
25
|
+
return { dir, exists: false, active, profiles: [] };
|
|
26
|
+
const profiles = [];
|
|
27
|
+
for (const name of (await listProfiles(store)).sort()) {
|
|
28
|
+
profiles.push({ name, environment: await readEnvironment(name), active: name === active });
|
|
29
|
+
}
|
|
30
|
+
return { dir, exists: true, active, profiles };
|
|
31
|
+
}
|
|
32
|
+
export function renderProfileListing(listing) {
|
|
33
|
+
const lines = ['', `${BOLD}vibes profile list${RESET}`, '─'.repeat(40)];
|
|
34
|
+
if (!listing.exists) {
|
|
35
|
+
lines.push(` ${GRAY}${listing.dir} does not exist${RESET}`);
|
|
36
|
+
}
|
|
37
|
+
else if (listing.profiles.length === 0) {
|
|
38
|
+
lines.push(` ${GRAY}No profiles found${RESET}`);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
for (const profile of listing.profiles) {
|
|
42
|
+
const marker = profile.active ? ` ${GREEN}[active]${RESET}` : '';
|
|
43
|
+
const envLabel = profile.environment
|
|
44
|
+
? ` ${GRAY}→ ${profile.environment}${RESET}`
|
|
45
|
+
: ` ${GRAY}→ (no environment)${RESET}`;
|
|
46
|
+
lines.push(` ${GREEN}✓${RESET} ${profile.name}${envLabel}${marker}`);
|
|
29
47
|
}
|
|
30
|
-
|
|
48
|
+
}
|
|
49
|
+
lines.push('');
|
|
50
|
+
return lines.join('\n');
|
|
51
|
+
}
|
|
52
|
+
export default {
|
|
53
|
+
outputBoundary: 'data',
|
|
54
|
+
async execute(_args, _opts, context, deps = {}) {
|
|
55
|
+
const runtime = context.runtime;
|
|
56
|
+
const listing = await collectProfileListing(await openProfileStore(runtime), deps.readEnvironment ?? ((name) => getProfileEnvironment(runtime, name)));
|
|
57
|
+
return profileListingData(listing);
|
|
31
58
|
}
|
|
32
59
|
};
|
|
33
60
|
//# sourceMappingURL=profile.list.impl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.list.impl.js","sourceRoot":"","sources":["../../../src/commands/profile/profile.list.impl.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"profile.list.impl.js","sourceRoot":"","sources":["../../../src/commands/profile/profile.list.impl.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CLICommandAssetDescriptor } from '../../schemas/descriptors';
|
|
1
|
+
import type { CLICommandAssetDescriptor } from '../../schemas/descriptors.ts';
|
|
2
2
|
declare const descriptor: CLICommandAssetDescriptor;
|
|
3
3
|
export default descriptor;
|
|
4
4
|
//# sourceMappingURL=profile.use.descriptor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.use.descriptor.d.ts","sourceRoot":"","sources":["../../../src/commands/profile/profile.use.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"profile.use.descriptor.d.ts","sourceRoot":"","sources":["../../../src/commands/profile/profile.use.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,QAAA,MAAM,UAAU,EAAE,yBAoBjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* Profile Use Implementation
|
|
3
|
-
*
|
|
4
|
-
* Prints the shell export statement for activating a profile.
|
|
5
|
-
*/
|
|
1
|
+
import type { CommandContext, CommandOptions } from '../../schemas/surface.ts';
|
|
6
2
|
declare const _default: {
|
|
7
|
-
execute(args:
|
|
3
|
+
execute(args: CommandOptions, _opts: CommandOptions, context: CommandContext): Promise<void>;
|
|
8
4
|
};
|
|
9
5
|
export default _default;
|
|
10
6
|
//# sourceMappingURL=profile.use.impl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.use.impl.d.ts","sourceRoot":"","sources":["../../../src/commands/profile/profile.use.impl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"profile.use.impl.d.ts","sourceRoot":"","sources":["../../../src/commands/profile/profile.use.impl.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;;kBA8BvE,cAAc,SACb,cAAc,WACZ,cAAc,GACrB,OAAO,CAAC,IAAI,CAAC;;AALjB,wBAsDE"}
|
|
@@ -1,24 +1,54 @@
|
|
|
1
|
+
import { requestCLIExit } from "../../boot/providers.js";
|
|
2
|
+
import { commandWriters } from "../../commands/output.js";
|
|
1
3
|
/**
|
|
2
4
|
* Profile Use Implementation
|
|
3
5
|
*
|
|
4
|
-
* Prints the shell export statement for activating a profile.
|
|
6
|
+
* Prints the shell export statement for activating a profile. The shell-eval
|
|
7
|
+
* contract is intentional — a child process cannot mutate the parent shell's
|
|
8
|
+
* environment, so activation must be `eval "$(vibes profile use <name>)"`.
|
|
9
|
+
*
|
|
10
|
+
* Before emitting the export, this validates that the profile resolves to a
|
|
11
|
+
* known environment and prints (to stderr) which environment + cred home it will
|
|
12
|
+
* activate, so a user who forgets to eval still gets a visible signal.
|
|
5
13
|
*/
|
|
6
|
-
import { profileExists, validateProfileName, GREEN, RED, GRAY, BOLD, RESET,
|
|
14
|
+
import { profileExists, validateProfileName, getProfileHome, openProfileStore, ProfileNameArgumentSchema, GREEN, RED, GRAY, YELLOW, BOLD, RESET, } from "./_utils.js";
|
|
15
|
+
import { getProfileEnvironment, getEnvironmentDescriptor } from "./profile-env.js";
|
|
7
16
|
export default {
|
|
8
|
-
async execute(args) {
|
|
9
|
-
const
|
|
17
|
+
async execute(args, _opts, context) {
|
|
18
|
+
const { out, err, log } = await commandWriters(context.runtime);
|
|
19
|
+
const store = await openProfileStore(context.runtime);
|
|
20
|
+
const name = ProfileNameArgumentSchema.parse(args.name);
|
|
10
21
|
if (!name) {
|
|
11
22
|
log(`${RED}✗${RESET} Profile name is required`);
|
|
12
|
-
|
|
23
|
+
requestCLIExit(1);
|
|
13
24
|
}
|
|
14
25
|
validateProfileName(name);
|
|
15
|
-
if (!profileExists(name)) {
|
|
26
|
+
if (!(await profileExists(name, store))) {
|
|
16
27
|
log(`${RED}✗${RESET} Profile does not exist: ${BOLD}${name}${RESET}`);
|
|
17
|
-
|
|
28
|
+
requestCLIExit(1);
|
|
29
|
+
}
|
|
30
|
+
const home = getProfileHome(name, store);
|
|
31
|
+
const environmentId = await getProfileEnvironment(context.runtime, name);
|
|
32
|
+
if (environmentId) {
|
|
33
|
+
const descriptor = await getEnvironmentDescriptor(environmentId, context.runtime);
|
|
34
|
+
if (!descriptor) {
|
|
35
|
+
log(`${RED}✗${RESET} Unknown environment: ${BOLD}${environmentId}${RESET}`);
|
|
36
|
+
requestCLIExit(1);
|
|
37
|
+
}
|
|
38
|
+
log(`${GRAY}# profile '${name}' → environment: ${RESET}${GREEN}${environmentId}${RESET}` +
|
|
39
|
+
`${GRAY} (${descriptor.apiUrl}), home: ${home}${RESET}`);
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
log(`${YELLOW}⚠${RESET} profile '${name}' has no persisted environment; ` +
|
|
43
|
+
`API calls will fall back to the runtime default. ` +
|
|
44
|
+
`Run ${BOLD}vibes profile create ${name} --env <environment>${RESET} semantics ` +
|
|
45
|
+
`or set one explicitly to bind it.`);
|
|
18
46
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
`${GRAY}#
|
|
47
|
+
out(`export VIBES_PROFILE=${name}\n`);
|
|
48
|
+
err(`\n${GRAY}# Run this to activate in the current shell:${RESET}\n` +
|
|
49
|
+
`${GRAY}# eval "$(vibes profile use ${name})"${RESET}\n` +
|
|
50
|
+
`${GRAY}# Or persist it:${RESET}\n` +
|
|
51
|
+
`${GRAY}# echo 'export VIBES_PROFILE=${name}' >> ~/.zshrc${RESET}\n`);
|
|
22
52
|
}
|
|
23
53
|
};
|
|
24
54
|
//# sourceMappingURL=profile.use.impl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.use.impl.js","sourceRoot":"","sources":["../../../src/commands/profile/profile.use.impl.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"profile.use.impl.js","sourceRoot":"","sources":["../../../src/commands/profile/profile.use.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D;;;;;;;;;;GAUG;AAEH,OAAO,EACN,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,yBAAyB,EACzB,KAAK,EACL,GAAG,EACH,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACL,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAEnF,eAAe;IACd,KAAK,CAAC,OAAO,CACZ,IAAoB,EACpB,KAAqB,EACrB,OAAuB;QAEvB,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAChE,MAAM,KAAK,GAAG,MAAM,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACtD,MAAM,IAAI,GAAG,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAExD,IAAI,CAAC,IAAI,EAAE,CAAC;YACX,GAAG,CAAC,GAAG,GAAG,IAAI,KAAK,2BAA2B,CAAC,CAAC;YAChD,cAAc,CAAC,CAAC,CAAC,CAAC;QACnB,CAAC;QAED,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE1B,IAAI,CAAC,CAAC,MAAM,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC;YACzC,GAAG,CAAC,GAAG,GAAG,IAAI,KAAK,4BAA4B,IAAI,GAAG,IAAI,GAAG,KAAK,EAAE,CAAC,CAAC;YACtE,cAAc,CAAC,CAAC,CAAC,CAAC;QACnB,CAAC;QAED,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACzC,MAAM,aAAa,GAAG,MAAM,qBAAqB,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAEzE,IAAI,aAAa,EAAE,CAAC;YACnB,MAAM,UAAU,GAAG,MAAM,wBAAwB,CAAC,aAAa,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;YAElF,IAAI,CAAC,UAAU,EAAE,CAAC;gBACjB,GAAG,CAAC,GAAG,GAAG,IAAI,KAAK,yBAAyB,IAAI,GAAG,aAAa,GAAG,KAAK,EAAE,CAAC,CAAC;gBAC5E,cAAc,CAAC,CAAC,CAAC,CAAC;YACnB,CAAC;YAED,GAAG,CACF,GAAG,IAAI,cAAc,IAAI,oBAAoB,KAAK,GAAG,KAAK,GAAG,aAAa,GAAG,KAAK,EAAE;gBACnF,GAAG,IAAI,KAAK,UAAU,CAAC,MAAM,YAAY,IAAI,GAAG,KAAK,EAAE,CACxD,CAAC;QACH,CAAC;aAAM,CAAC;YACP,GAAG,CACF,GAAG,MAAM,IAAI,KAAK,aAAa,IAAI,kCAAkC;gBACpE,mDAAmD;gBACnD,OAAO,IAAI,wBAAwB,IAAI,uBAAuB,KAAK,aAAa;gBAC/E,mCAAmC,CACrC,CAAC;QACH,CAAC;QAED,GAAG,CAAC,wBAAwB,IAAI,IAAI,CAAC,CAAC;QACtC,GAAG,CACF,KAAK,IAAI,+CAA+C,KAAK,IAAI;YAChE,GAAG,IAAI,iCAAiC,IAAI,KAAK,KAAK,IAAI;YAC1D,GAAG,IAAI,mBAAmB,KAAK,IAAI;YACnC,GAAG,IAAI,kCAAkC,IAAI,gBAAgB,KAAK,IAAI,CACvE,CAAC;IACH,CAAC;CACD,CAAC"}
|
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
export declare const runtimeCodegenCommandDescriptor: {
|
|
2
|
-
id:
|
|
3
|
-
kind: "cli/command";
|
|
4
|
-
name:
|
|
5
|
-
description:
|
|
6
|
-
group:
|
|
7
|
-
arguments:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
readonly id: "runtime-codegen";
|
|
3
|
+
readonly kind: "cli/command";
|
|
4
|
+
readonly name: "codegen";
|
|
5
|
+
readonly description: "Generate static runtime loader for compiled binaries";
|
|
6
|
+
readonly group: "runtime";
|
|
7
|
+
readonly arguments: [{
|
|
8
|
+
readonly name: "destination";
|
|
9
|
+
readonly description: "Where the generated loader lands";
|
|
10
|
+
readonly required: false;
|
|
11
|
+
}];
|
|
12
|
+
readonly options: [{
|
|
13
|
+
readonly flags: "-v, --verbose";
|
|
14
|
+
readonly description: "Enable verbose logging";
|
|
15
|
+
readonly type: "boolean";
|
|
16
|
+
}, {
|
|
17
|
+
readonly flags: "--scope <scope>";
|
|
18
|
+
readonly description: "Filter generated bundle by runtime surface scope";
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
}, {
|
|
21
|
+
readonly flags: "--hardware <hardware>";
|
|
22
|
+
readonly description: "Filter generated bundle by runtime hardware";
|
|
23
|
+
readonly type: "string";
|
|
24
|
+
}];
|
|
25
|
+
readonly surfaces: ["cli"];
|
|
26
|
+
readonly hardware: readonly ["consumer"];
|
|
27
|
+
readonly enabled: true;
|
|
14
28
|
};
|
|
15
29
|
//# sourceMappingURL=codegen.command.descriptor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codegen.command.descriptor.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.command.descriptor.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B
|
|
1
|
+
{"version":3,"file":"codegen.command.descriptor.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.command.descriptor.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC1C,CAAC"}
|
|
@@ -1,18 +1,36 @@
|
|
|
1
|
-
import { createRuntimeAsset } from '@vibesdotdev/
|
|
1
|
+
import { createRuntimeAsset } from '@vibesdotdev/kernel';
|
|
2
2
|
export const runtimeCodegenCommandDescriptor = createRuntimeAsset({
|
|
3
3
|
id: 'runtime-codegen',
|
|
4
4
|
kind: 'cli/command',
|
|
5
5
|
name: 'codegen',
|
|
6
6
|
description: 'Generate static runtime loader for compiled binaries',
|
|
7
7
|
group: 'runtime',
|
|
8
|
-
arguments: [
|
|
8
|
+
arguments: [
|
|
9
|
+
{
|
|
10
|
+
name: 'destination',
|
|
11
|
+
description: 'Where the generated loader lands',
|
|
12
|
+
required: false
|
|
13
|
+
}
|
|
14
|
+
],
|
|
9
15
|
options: [
|
|
10
16
|
{
|
|
11
|
-
|
|
17
|
+
flags: '-v, --verbose',
|
|
12
18
|
description: 'Enable verbose logging',
|
|
13
|
-
type: 'boolean'
|
|
14
|
-
|
|
19
|
+
type: 'boolean'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
flags: '--scope <scope>',
|
|
23
|
+
description: 'Filter generated bundle by runtime surface scope',
|
|
24
|
+
type: 'string'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
flags: '--hardware <hardware>',
|
|
28
|
+
description: 'Filter generated bundle by runtime hardware',
|
|
29
|
+
type: 'string'
|
|
15
30
|
}
|
|
16
|
-
]
|
|
31
|
+
],
|
|
32
|
+
surfaces: ['cli'],
|
|
33
|
+
hardware: ['consumer'],
|
|
34
|
+
enabled: true
|
|
17
35
|
});
|
|
18
36
|
//# sourceMappingURL=codegen.command.descriptor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codegen.command.descriptor.js","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.command.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"codegen.command.descriptor.js","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.command.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,CAAC,MAAM,+BAA+B,GAAG,kBAAkB,CAAC;IACjE,EAAE,EAAE,iBAAiB;IACrB,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,sDAAsD;IACnE,KAAK,EAAE,SAAS;IAChB,SAAS,EAAE;QACV;YACC,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,kCAAkC;YAC/C,QAAQ,EAAE,KAAK;SACf;KACD;IACD,OAAO,EAAE;QACR;YACC,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,SAAS;SACf;QACD;YACC,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,kDAAkD;YAC/D,IAAI,EAAE,QAAQ;SACd;QACD;YACC,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,QAAQ;SACd;KACD;IACD,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,OAAO,EAAE,IAAI;CACb,CAAC,CAAC"}
|