@vibesdotdev/cli 0.0.1
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/README.md +41 -0
- package/SPEC.md +97 -0
- package/bin/vibes.ts +26 -0
- package/dist/api/client/factory.d.ts +29 -0
- package/dist/api/client/factory.d.ts.map +1 -0
- package/dist/api/client/factory.js +189 -0
- package/dist/api/client/factory.js.map +1 -0
- package/dist/api/schemas/common.d.ts +58 -0
- package/dist/api/schemas/common.d.ts.map +1 -0
- package/dist/api/schemas/common.js +48 -0
- package/dist/api/schemas/common.js.map +1 -0
- package/dist/api/schemas/types.d.ts +30 -0
- package/dist/api/schemas/types.d.ts.map +1 -0
- package/dist/api/schemas/types.js +2 -0
- package/dist/api/schemas/types.js.map +1 -0
- package/dist/api/services/api.d.ts +14 -0
- package/dist/api/services/api.d.ts.map +1 -0
- package/dist/api/services/api.js +110 -0
- package/dist/api/services/api.js.map +1 -0
- package/dist/api/types.d.ts +6 -0
- package/dist/api/types.d.ts.map +1 -0
- package/dist/api/types.js +5 -0
- package/dist/api/types.js.map +1 -0
- package/dist/bin.d.ts +28 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +73 -0
- package/dist/bin.js.map +1 -0
- package/dist/bootstrap.d.ts +14 -0
- package/dist/bootstrap.d.ts.map +1 -0
- package/dist/bootstrap.js +14 -0
- package/dist/bootstrap.js.map +1 -0
- package/dist/cli.plugin.d.ts +20 -0
- package/dist/cli.plugin.d.ts.map +1 -0
- package/dist/cli.plugin.js +170 -0
- package/dist/cli.plugin.js.map +1 -0
- package/dist/commands/completion/bash.d.ts +8 -0
- package/dist/commands/completion/bash.d.ts.map +1 -0
- package/dist/commands/completion/bash.js +60 -0
- package/dist/commands/completion/bash.js.map +1 -0
- package/dist/commands/completion/completion.descriptor.d.ts +10 -0
- package/dist/commands/completion/completion.descriptor.d.ts.map +1 -0
- package/dist/commands/completion/completion.descriptor.js +41 -0
- package/dist/commands/completion/completion.descriptor.js.map +1 -0
- package/dist/commands/completion/completion.impl.d.ts +12 -0
- package/dist/commands/completion/completion.impl.d.ts.map +1 -0
- package/dist/commands/completion/completion.impl.js +167 -0
- package/dist/commands/completion/completion.impl.js.map +1 -0
- package/dist/commands/completion/fig.d.ts +12 -0
- package/dist/commands/completion/fig.d.ts.map +1 -0
- package/dist/commands/completion/fig.js +71 -0
- package/dist/commands/completion/fig.js.map +1 -0
- package/dist/commands/completion/fish.d.ts +8 -0
- package/dist/commands/completion/fish.d.ts.map +1 -0
- package/dist/commands/completion/fish.js +38 -0
- package/dist/commands/completion/fish.js.map +1 -0
- package/dist/commands/completion/tree.d.ts +33 -0
- package/dist/commands/completion/tree.d.ts.map +1 -0
- package/dist/commands/completion/tree.js +75 -0
- package/dist/commands/completion/tree.js.map +1 -0
- package/dist/commands/completion/zsh-widget.d.ts +13 -0
- package/dist/commands/completion/zsh-widget.d.ts.map +1 -0
- package/dist/commands/completion/zsh-widget.js +39 -0
- package/dist/commands/completion/zsh-widget.js.map +1 -0
- package/dist/commands/completion/zsh.d.ts +9 -0
- package/dist/commands/completion/zsh.d.ts.map +1 -0
- package/dist/commands/completion/zsh.js +146 -0
- package/dist/commands/completion/zsh.js.map +1 -0
- package/dist/commands/profile/_utils.d.ts +21 -0
- package/dist/commands/profile/_utils.d.ts.map +1 -0
- package/dist/commands/profile/_utils.js +61 -0
- package/dist/commands/profile/_utils.js.map +1 -0
- package/dist/commands/profile/profile-group.descriptor.d.ts +4 -0
- package/dist/commands/profile/profile-group.descriptor.d.ts.map +1 -0
- package/dist/commands/profile/profile-group.descriptor.js +12 -0
- package/dist/commands/profile/profile-group.descriptor.js.map +1 -0
- package/dist/commands/profile/profile.create.descriptor.d.ts +4 -0
- package/dist/commands/profile/profile.create.descriptor.d.ts.map +1 -0
- package/dist/commands/profile/profile.create.descriptor.js +22 -0
- package/dist/commands/profile/profile.create.descriptor.js.map +1 -0
- package/dist/commands/profile/profile.create.impl.d.ts +10 -0
- package/dist/commands/profile/profile.create.impl.d.ts.map +1 -0
- package/dist/commands/profile/profile.create.impl.js +29 -0
- package/dist/commands/profile/profile.create.impl.js.map +1 -0
- package/dist/commands/profile/profile.delete.descriptor.d.ts +4 -0
- package/dist/commands/profile/profile.delete.descriptor.d.ts.map +1 -0
- package/dist/commands/profile/profile.delete.descriptor.js +29 -0
- package/dist/commands/profile/profile.delete.descriptor.js.map +1 -0
- package/dist/commands/profile/profile.delete.impl.d.ts +11 -0
- package/dist/commands/profile/profile.delete.impl.d.ts.map +1 -0
- package/dist/commands/profile/profile.delete.impl.js +50 -0
- package/dist/commands/profile/profile.delete.impl.js.map +1 -0
- package/dist/commands/profile/profile.info.descriptor.d.ts +4 -0
- package/dist/commands/profile/profile.info.descriptor.d.ts.map +1 -0
- package/dist/commands/profile/profile.info.descriptor.js +23 -0
- package/dist/commands/profile/profile.info.descriptor.js.map +1 -0
- package/dist/commands/profile/profile.info.impl.d.ts +10 -0
- package/dist/commands/profile/profile.info.impl.d.ts.map +1 -0
- package/dist/commands/profile/profile.info.impl.js +33 -0
- package/dist/commands/profile/profile.info.impl.js.map +1 -0
- package/dist/commands/profile/profile.list.descriptor.d.ts +4 -0
- package/dist/commands/profile/profile.list.descriptor.d.ts.map +1 -0
- package/dist/commands/profile/profile.list.descriptor.js +16 -0
- package/dist/commands/profile/profile.list.descriptor.js.map +1 -0
- package/dist/commands/profile/profile.list.impl.d.ts +10 -0
- package/dist/commands/profile/profile.list.impl.d.ts.map +1 -0
- package/dist/commands/profile/profile.list.impl.js +33 -0
- package/dist/commands/profile/profile.list.impl.js.map +1 -0
- package/dist/commands/profile/profile.use.descriptor.d.ts +4 -0
- package/dist/commands/profile/profile.use.descriptor.d.ts.map +1 -0
- package/dist/commands/profile/profile.use.descriptor.js +23 -0
- package/dist/commands/profile/profile.use.descriptor.js.map +1 -0
- package/dist/commands/profile/profile.use.impl.d.ts +10 -0
- package/dist/commands/profile/profile.use.impl.d.ts.map +1 -0
- package/dist/commands/profile/profile.use.impl.js +24 -0
- package/dist/commands/profile/profile.use.impl.js.map +1 -0
- package/dist/commands/runtime/_logging.d.ts +11 -0
- package/dist/commands/runtime/_logging.d.ts.map +1 -0
- package/dist/commands/runtime/_logging.js +40 -0
- package/dist/commands/runtime/_logging.js.map +1 -0
- package/dist/commands/runtime/codegen.command.descriptor.d.ts +15 -0
- package/dist/commands/runtime/codegen.command.descriptor.d.ts.map +1 -0
- package/dist/commands/runtime/codegen.command.descriptor.js +18 -0
- package/dist/commands/runtime/codegen.command.descriptor.js.map +1 -0
- package/dist/commands/runtime/codegen.command.impl.d.ts +4 -0
- package/dist/commands/runtime/codegen.command.impl.d.ts.map +1 -0
- package/dist/commands/runtime/codegen.command.impl.js +39 -0
- package/dist/commands/runtime/codegen.command.impl.js.map +1 -0
- package/dist/commands/runtime/codegen.d.ts +17 -0
- package/dist/commands/runtime/codegen.d.ts.map +1 -0
- package/dist/commands/runtime/codegen.js +65 -0
- package/dist/commands/runtime/codegen.js.map +1 -0
- package/dist/commands/runtime/index.d.ts +4 -0
- package/dist/commands/runtime/index.d.ts.map +1 -0
- package/dist/commands/runtime/index.js +8 -0
- package/dist/commands/runtime/index.js.map +1 -0
- package/dist/commands/runtime/plugin.d.ts +2 -0
- package/dist/commands/runtime/plugin.d.ts.map +1 -0
- package/dist/commands/runtime/plugin.js +7 -0
- package/dist/commands/runtime/plugin.js.map +1 -0
- package/dist/commands/runtime/runtime-group.descriptor.d.ts +4 -0
- package/dist/commands/runtime/runtime-group.descriptor.d.ts.map +1 -0
- package/dist/commands/runtime/runtime-group.descriptor.js +10 -0
- package/dist/commands/runtime/runtime-group.descriptor.js.map +1 -0
- package/dist/config.d.ts +17 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +11 -0
- package/dist/config.js.map +1 -0
- package/dist/core/index.d.ts +9 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +5 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/namespace/hook.d.ts +12 -0
- package/dist/core/namespace/hook.d.ts.map +1 -0
- package/dist/core/namespace/hook.js +15 -0
- package/dist/core/namespace/hook.js.map +1 -0
- package/dist/core/namespace/index.d.ts +18 -0
- package/dist/core/namespace/index.d.ts.map +1 -0
- package/dist/core/namespace/index.js +214 -0
- package/dist/core/namespace/index.js.map +1 -0
- package/dist/core/namespace/schemas/index.d.ts +25 -0
- package/dist/core/namespace/schemas/index.d.ts.map +1 -0
- package/dist/core/namespace/schemas/index.js +2 -0
- package/dist/core/namespace/schemas/index.js.map +1 -0
- package/dist/core/plugins/types.d.ts +81 -0
- package/dist/core/plugins/types.d.ts.map +1 -0
- package/dist/core/plugins/types.js +6 -0
- package/dist/core/plugins/types.js.map +1 -0
- package/dist/core/runtime/context.d.ts +25 -0
- package/dist/core/runtime/context.d.ts.map +1 -0
- package/dist/core/runtime/context.js +30 -0
- package/dist/core/runtime/context.js.map +1 -0
- package/dist/core/runtime/hooks.d.ts +12 -0
- package/dist/core/runtime/hooks.d.ts.map +1 -0
- package/dist/core/runtime/hooks.js +2 -0
- package/dist/core/runtime/hooks.js.map +1 -0
- package/dist/core/runtime/shared/context.d.ts +33 -0
- package/dist/core/runtime/shared/context.d.ts.map +1 -0
- package/dist/core/runtime/shared/context.js +51 -0
- package/dist/core/runtime/shared/context.js.map +1 -0
- package/dist/core/runtime/shared/options.d.ts +20 -0
- package/dist/core/runtime/shared/options.d.ts.map +1 -0
- package/dist/core/runtime/shared/options.js +61 -0
- package/dist/core/runtime/shared/options.js.map +1 -0
- package/dist/core/schemas/manifest.d.ts +24 -0
- package/dist/core/schemas/manifest.d.ts.map +1 -0
- package/dist/core/schemas/manifest.js +6 -0
- package/dist/core/schemas/manifest.js.map +1 -0
- package/dist/core/schemas/types.d.ts +7 -0
- package/dist/core/schemas/types.d.ts.map +1 -0
- package/dist/core/schemas/types.js +2 -0
- package/dist/core/schemas/types.js.map +1 -0
- package/dist/core/ui/interface.d.ts +12 -0
- package/dist/core/ui/interface.d.ts.map +1 -0
- package/dist/core/ui/interface.js +6 -0
- package/dist/core/ui/interface.js.map +1 -0
- package/dist/docs/cli.commands.docs.descriptor.d.ts +4 -0
- package/dist/docs/cli.commands.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/cli.commands.docs.descriptor.js +207 -0
- package/dist/docs/cli.commands.docs.descriptor.js.map +1 -0
- package/dist/docs/cli.groups.docs.descriptor.d.ts +4 -0
- package/dist/docs/cli.groups.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/cli.groups.docs.descriptor.js +330 -0
- package/dist/docs/cli.groups.docs.descriptor.js.map +1 -0
- package/dist/docs/cli.output.docs.descriptor.d.ts +4 -0
- package/dist/docs/cli.output.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/cli.output.docs.descriptor.js +442 -0
- package/dist/docs/cli.output.docs.descriptor.js.map +1 -0
- package/dist/docs/types.d.ts +19 -0
- package/dist/docs/types.d.ts.map +1 -0
- package/dist/docs/types.js +2 -0
- package/dist/docs/types.js.map +1 -0
- package/dist/errors.d.ts +74 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +113 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/dist/logging/cli-startup.logger.descriptor.d.ts +7 -0
- package/dist/logging/cli-startup.logger.descriptor.d.ts.map +1 -0
- package/dist/logging/cli-startup.logger.descriptor.js +13 -0
- package/dist/logging/cli-startup.logger.descriptor.js.map +1 -0
- package/dist/logging.d.ts +4 -0
- package/dist/logging.d.ts.map +1 -0
- package/dist/logging.js +21 -0
- package/dist/logging.js.map +1 -0
- package/dist/patterns/config-namespace.d.ts +23 -0
- package/dist/patterns/config-namespace.d.ts.map +1 -0
- package/dist/patterns/config-namespace.js +218 -0
- package/dist/patterns/config-namespace.js.map +1 -0
- package/dist/patterns/crud.d.ts +23 -0
- package/dist/patterns/crud.d.ts.map +1 -0
- package/dist/patterns/crud.js +164 -0
- package/dist/patterns/crud.js.map +1 -0
- package/dist/patterns/index.d.ts +13 -0
- package/dist/patterns/index.d.ts.map +1 -0
- package/dist/patterns/index.js +13 -0
- package/dist/patterns/index.js.map +1 -0
- package/dist/patterns/log-viewer.d.ts +19 -0
- package/dist/patterns/log-viewer.d.ts.map +1 -0
- package/dist/patterns/log-viewer.js +74 -0
- package/dist/patterns/log-viewer.js.map +1 -0
- package/dist/patterns/pattern-types.d.ts +21 -0
- package/dist/patterns/pattern-types.d.ts.map +1 -0
- package/dist/patterns/pattern-types.js +7 -0
- package/dist/patterns/pattern-types.js.map +1 -0
- package/dist/patterns/process-manager.d.ts +21 -0
- package/dist/patterns/process-manager.d.ts.map +1 -0
- package/dist/patterns/process-manager.js +134 -0
- package/dist/patterns/process-manager.js.map +1 -0
- package/dist/patterns/resolver.contracts.d.ts +14 -0
- package/dist/patterns/resolver.contracts.d.ts.map +1 -0
- package/dist/patterns/resolver.contracts.js +9 -0
- package/dist/patterns/resolver.contracts.js.map +1 -0
- package/dist/patterns/resolver.d.ts +40 -0
- package/dist/patterns/resolver.d.ts.map +1 -0
- package/dist/patterns/resolver.js +63 -0
- package/dist/patterns/resolver.js.map +1 -0
- package/dist/patterns/schemas.d.ts +496 -0
- package/dist/patterns/schemas.d.ts.map +1 -0
- package/dist/patterns/schemas.js +105 -0
- package/dist/patterns/schemas.js.map +1 -0
- package/dist/patterns/tool-wrapper.d.ts +18 -0
- package/dist/patterns/tool-wrapper.d.ts.map +1 -0
- package/dist/patterns/tool-wrapper.js +130 -0
- package/dist/patterns/tool-wrapper.js.map +1 -0
- package/dist/providers.d.ts +105 -0
- package/dist/providers.d.ts.map +1 -0
- package/dist/providers.js +164 -0
- package/dist/providers.js.map +1 -0
- package/dist/schemas/descriptors.d.ts +130 -0
- package/dist/schemas/descriptors.d.ts.map +1 -0
- package/dist/schemas/descriptors.js +96 -0
- package/dist/schemas/descriptors.js.map +1 -0
- package/dist/schemas/surface.d.ts +40 -0
- package/dist/schemas/surface.d.ts.map +1 -0
- package/dist/schemas/surface.js +2 -0
- package/dist/schemas/surface.js.map +1 -0
- package/dist/schemas/types.d.ts +202 -0
- package/dist/schemas/types.d.ts.map +1 -0
- package/dist/schemas/types.js +2 -0
- package/dist/schemas/types.js.map +1 -0
- package/dist/support/ui-toolkit.d.ts +62 -0
- package/dist/support/ui-toolkit.d.ts.map +1 -0
- package/dist/support/ui-toolkit.js +172 -0
- package/dist/support/ui-toolkit.js.map +1 -0
- package/dist/surface/CLISurface.d.ts +16 -0
- package/dist/surface/CLISurface.d.ts.map +1 -0
- package/dist/surface/CLISurface.js +173 -0
- package/dist/surface/CLISurface.js.map +1 -0
- package/dist/surface/attach-tui-action.d.ts +12 -0
- package/dist/surface/attach-tui-action.d.ts.map +1 -0
- package/dist/surface/attach-tui-action.js +48 -0
- package/dist/surface/attach-tui-action.js.map +1 -0
- package/dist/surface/build-context.d.ts +4 -0
- package/dist/surface/build-context.d.ts.map +1 -0
- package/dist/surface/build-context.js +49 -0
- package/dist/surface/build-context.js.map +1 -0
- package/dist/surface/command-group-policy.d.ts +7 -0
- package/dist/surface/command-group-policy.d.ts.map +1 -0
- package/dist/surface/command-group-policy.js +42 -0
- package/dist/surface/command-group-policy.js.map +1 -0
- package/dist/surface/discovery-cache.d.ts +17 -0
- package/dist/surface/discovery-cache.d.ts.map +1 -0
- package/dist/surface/discovery-cache.js +106 -0
- package/dist/surface/discovery-cache.js.map +1 -0
- package/dist/surface/register-commands.d.ts +15 -0
- package/dist/surface/register-commands.d.ts.map +1 -0
- package/dist/surface/register-commands.js +197 -0
- package/dist/surface/register-commands.js.map +1 -0
- package/dist/surface/register-groups.d.ts +15 -0
- package/dist/surface/register-groups.d.ts.map +1 -0
- package/dist/surface/register-groups.js +52 -0
- package/dist/surface/register-groups.js.map +1 -0
- package/dist/surface.d.ts +9 -0
- package/dist/surface.d.ts.map +1 -0
- package/dist/surface.js +8 -0
- package/dist/surface.js.map +1 -0
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/ui/schemas/types.d.ts +2 -0
- package/dist/ui/schemas/types.d.ts.map +1 -0
- package/dist/ui/schemas/types.js +2 -0
- package/dist/ui/schemas/types.js.map +1 -0
- package/dist/ui/toolkit/VibesUIToolkit.d.ts +2 -0
- package/dist/ui/toolkit/VibesUIToolkit.d.ts.map +1 -0
- package/dist/ui/toolkit/VibesUIToolkit.js +2 -0
- package/dist/ui/toolkit/VibesUIToolkit.js.map +1 -0
- package/dist/ui.context.descriptor.d.ts +21 -0
- package/dist/ui.context.descriptor.d.ts.map +1 -0
- package/dist/ui.context.descriptor.js +12 -0
- package/dist/ui.context.descriptor.js.map +1 -0
- package/dist/utils/open.d.ts +2 -0
- package/dist/utils/open.d.ts.map +1 -0
- package/dist/utils/open.js +30 -0
- package/dist/utils/open.js.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/package.json +186 -0
- package/src/api/client/factory.ts +265 -0
- package/src/api/schemas/common.ts +50 -0
- package/src/api/schemas/types.ts +32 -0
- package/src/api/services/api.ts +129 -0
- package/src/api/types.ts +12 -0
- package/src/bin.ts +84 -0
- package/src/bootstrap.ts +19 -0
- package/src/cli.plugin.d.ts +19 -0
- package/src/cli.plugin.ts +202 -0
- package/src/commands/completion/bash.ts +68 -0
- package/src/commands/completion/completion.descriptor.ts +48 -0
- package/src/commands/completion/completion.impl.ts +188 -0
- package/src/commands/completion/fig.ts +78 -0
- package/src/commands/completion/fish.ts +52 -0
- package/src/commands/completion/tree.ts +115 -0
- package/src/commands/completion/zsh-widget.ts +39 -0
- package/src/commands/completion/zsh.ts +165 -0
- package/src/commands/profile/_utils.ts +72 -0
- package/src/commands/profile/profile-group.descriptor.ts +14 -0
- package/src/commands/profile/profile.create.descriptor.ts +24 -0
- package/src/commands/profile/profile.create.impl.ts +44 -0
- package/src/commands/profile/profile.delete.descriptor.ts +31 -0
- package/src/commands/profile/profile.delete.impl.ts +71 -0
- package/src/commands/profile/profile.info.descriptor.ts +25 -0
- package/src/commands/profile/profile.info.impl.ts +51 -0
- package/src/commands/profile/profile.list.descriptor.ts +18 -0
- package/src/commands/profile/profile.list.impl.ts +46 -0
- package/src/commands/profile/profile.use.descriptor.ts +25 -0
- package/src/commands/profile/profile.use.impl.ts +39 -0
- package/src/commands/runtime/_logging.ts +47 -0
- package/src/commands/runtime/codegen.command.descriptor.ts +18 -0
- package/src/commands/runtime/codegen.command.impl.ts +44 -0
- package/src/commands/runtime/codegen.ts +84 -0
- package/src/commands/runtime/index.ts +14 -0
- package/src/commands/runtime/plugin.ts +7 -0
- package/src/commands/runtime/runtime-group.descriptor.ts +12 -0
- package/src/config.ts +22 -0
- package/src/core/index.ts +9 -0
- package/src/core/namespace/hook.ts +25 -0
- package/src/core/namespace/index.ts +298 -0
- package/src/core/namespace/schemas/index.ts +25 -0
- package/src/core/plugins/types.ts +87 -0
- package/src/core/runtime/context.ts +50 -0
- package/src/core/runtime/hooks.ts +12 -0
- package/src/core/runtime/shared/context.ts +65 -0
- package/src/core/runtime/shared/options.ts +60 -0
- package/src/core/schemas/manifest.ts +26 -0
- package/src/core/schemas/types.ts +6 -0
- package/src/core/ui/interface.ts +12 -0
- package/src/docs/cli.commands.docs.descriptor.ts +210 -0
- package/src/docs/cli.groups.docs.descriptor.ts +333 -0
- package/src/docs/cli.output.docs.descriptor.ts +445 -0
- package/src/docs/types.ts +18 -0
- package/src/errors.ts +123 -0
- package/src/index.ts +76 -0
- package/src/logging/cli-startup.logger.descriptor.ts +16 -0
- package/src/logging.ts +35 -0
- package/src/patterns/config-namespace.ts +251 -0
- package/src/patterns/crud.ts +217 -0
- package/src/patterns/index.ts +24 -0
- package/src/patterns/log-viewer.ts +118 -0
- package/src/patterns/pattern-types.ts +22 -0
- package/src/patterns/process-manager.ts +180 -0
- package/src/patterns/resolver.contracts.ts +15 -0
- package/src/patterns/resolver.ts +86 -0
- package/src/patterns/schemas.ts +146 -0
- package/src/patterns/tool-wrapper.ts +165 -0
- package/src/providers.ts +282 -0
- package/src/schemas/descriptors.d.ts +119 -0
- package/src/schemas/descriptors.ts +136 -0
- package/src/schemas/surface.ts +52 -0
- package/src/schemas/types.d.ts +195 -0
- package/src/schemas/types.ts +225 -0
- package/src/support/ui-toolkit.ts +224 -0
- package/src/surface/CLISurface.ts +193 -0
- package/src/surface/attach-tui-action.ts +76 -0
- package/src/surface/build-context.ts +49 -0
- package/src/surface/command-group-policy.ts +52 -0
- package/src/surface/discovery-cache.ts +143 -0
- package/src/surface/register-commands.ts +266 -0
- package/src/surface/register-groups.ts +84 -0
- package/src/surface.ts +9 -0
- package/src/types.ts +3 -0
- package/src/ui/schemas/types.ts +1 -0
- package/src/ui/toolkit/VibesUIToolkit.ts +1 -0
- package/src/ui.context.descriptor.ts +13 -0
- package/src/utils/open.ts +36 -0
- package/src/version.ts +10 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Log Viewer Pattern Implementation
|
|
3
|
+
*
|
|
4
|
+
* Generates commands for viewing logs.
|
|
5
|
+
*/
|
|
6
|
+
export class LogViewerPatternImpl {
|
|
7
|
+
runtime;
|
|
8
|
+
constructor(runtime) {
|
|
9
|
+
this.runtime = runtime;
|
|
10
|
+
}
|
|
11
|
+
async register(descriptor, parent, context) {
|
|
12
|
+
const { name, description, logViewer } = descriptor;
|
|
13
|
+
const groupCmd = parent.command(name).description(description);
|
|
14
|
+
this.registerTail(groupCmd, descriptor, context);
|
|
15
|
+
this.registerSearch(groupCmd, descriptor, context);
|
|
16
|
+
this.registerLevels(groupCmd, descriptor, context);
|
|
17
|
+
}
|
|
18
|
+
registerTail(parent, descriptor, ctx) {
|
|
19
|
+
const cfg = descriptor.logViewer;
|
|
20
|
+
const cmd = parent
|
|
21
|
+
.command('tail')
|
|
22
|
+
.alias('logs')
|
|
23
|
+
.description(`View recent logs for ${descriptor.name}`)
|
|
24
|
+
.option('-n, --lines <n>', 'Number of lines', String(cfg.defaultLines))
|
|
25
|
+
.option('-l, --level <levels...>', 'Filter by level', cfg.defaultLevels);
|
|
26
|
+
if (cfg.follow) {
|
|
27
|
+
cmd.option('-f, --follow', 'Follow output');
|
|
28
|
+
}
|
|
29
|
+
if (cfg.filters) {
|
|
30
|
+
for (const f of cfg.filters) {
|
|
31
|
+
cmd.option(f.flag, f.description);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
cmd.action(async (opts) => {
|
|
35
|
+
const pm = ctx.pm;
|
|
36
|
+
if (!pm?.tailLogs) {
|
|
37
|
+
ctx.ui?.warn('Log streaming not available');
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
await pm.tailLogs(descriptor.target.id, {
|
|
41
|
+
lines: parseInt(opts.lines, 10),
|
|
42
|
+
levels: opts.level,
|
|
43
|
+
follow: opts.follow
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
registerSearch(parent, descriptor, ctx) {
|
|
48
|
+
parent
|
|
49
|
+
.command('search <pattern>')
|
|
50
|
+
.description(`Search logs for ${descriptor.name}`)
|
|
51
|
+
.option('-n, --lines <n>', 'Context lines', '3')
|
|
52
|
+
.option('-l, --level <levels...>', 'Filter by level')
|
|
53
|
+
.option('--since <time>', 'Since time')
|
|
54
|
+
.option('--until <time>', 'Until time')
|
|
55
|
+
.action(async (pattern, opts) => {
|
|
56
|
+
ctx.ui?.warn('Log search not yet implemented');
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
registerLevels(parent, descriptor, ctx) {
|
|
60
|
+
parent
|
|
61
|
+
.command('levels')
|
|
62
|
+
.description('Show available log levels')
|
|
63
|
+
.action(() => {
|
|
64
|
+
const levels = ['trace', 'debug', 'info', 'warn', 'error', 'fatal'];
|
|
65
|
+
const defaults = descriptor.logViewer.defaultLevels ?? [];
|
|
66
|
+
ctx.ui?.info('Available log levels:');
|
|
67
|
+
for (const level of levels) {
|
|
68
|
+
const marker = defaults.includes(level) ? ' (default)' : '';
|
|
69
|
+
ctx.ui?.info(` - ${level}${marker}`);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=log-viewer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log-viewer.js","sourceRoot":"","sources":["../../src/patterns/log-viewer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAqBH,MAAM,OAAO,oBAAoB;IACZ;IAApB,YAAoB,OAAqB;QAArB,YAAO,GAAP,OAAO,CAAc;IAAG,CAAC;IAE7C,KAAK,CAAC,QAAQ,CACb,UAAuC,EACvC,MAAe,EACf,OAAuB;QAEvB,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,UAAU,CAAC;QAEpD,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;QAE/D,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QACjD,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QACnD,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IAEO,YAAY,CACnB,MAAe,EACf,UAAuC,EACvC,GAAmB;QAEnB,MAAM,GAAG,GAAG,UAAU,CAAC,SAAS,CAAC;QAEjC,MAAM,GAAG,GAAG,MAAM;aAChB,OAAO,CAAC,MAAM,CAAC;aACf,KAAK,CAAC,MAAM,CAAC;aACb,WAAW,CAAC,wBAAwB,UAAU,CAAC,IAAI,EAAE,CAAC;aACtD,MAAM,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;a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M,CAAC,gBAAgB,EAAE,YAAY,CAAC;aACtC,MAAM,CAAC,KAAK,EAAE,OAAe,EAAE,IAAI,EAAE,EAAE;YACvC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,gCAAgC,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;IACL,CAAC;IAEO,cAAc,CACrB,MAAe,EACf,UAAuC,EACvC,GAAmB;QAEnB,MAAM;aACJ,OAAO,CAAC,QAAQ,CAAC;aACjB,WAAW,CAAC,2BAA2B,CAAC;aACxC,MAAM,CAAC,GAAG,EAAE;YACZ,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACpE,MAAM,QAAQ,GAAG,UAAU,CAAC,SAAS,CAAC,aAAa,IAAI,EAAE,CAAC;YAE1D,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,uBAAuB,CAAC,CAAC;YACtC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;gBAC5B,MAAM,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC5D,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,OAAO,KAAK,GAAG,MAAM,EAAE,CAAC,CAAC;YACvC,CAAC;QACF,CAAC,CAAC,CAAC;IACL,CAAC;CACD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI Pattern Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Shared types to avoid circular dependencies between resolver and pattern implementations.
|
|
5
|
+
*/
|
|
6
|
+
import type { Command } from 'commander';
|
|
7
|
+
import type { CLIPatternDescriptor } from './schemas';
|
|
8
|
+
import type { CommandContext } from '../schemas/surface';
|
|
9
|
+
/**
|
|
10
|
+
* Pattern implementation interface
|
|
11
|
+
*
|
|
12
|
+
* All pattern implementations must implement this interface to register
|
|
13
|
+
* their commands with the CLI.
|
|
14
|
+
*/
|
|
15
|
+
export interface PatternImplementation<TDescriptor extends CLIPatternDescriptor> {
|
|
16
|
+
/**
|
|
17
|
+
* Register a pattern descriptor as commands on the parent command
|
|
18
|
+
*/
|
|
19
|
+
register(descriptor: TDescriptor, parent: Command, context: CommandContext): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=pattern-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pattern-types.d.ts","sourceRoot":"","sources":["../../src/patterns/pattern-types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB,CAAC,WAAW,SAAS,oBAAoB;IAC9E;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pattern-types.js","sourceRoot":"","sources":["../../src/patterns/pattern-types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Process Manager Pattern Implementation
|
|
3
|
+
*
|
|
4
|
+
* Generates start/stop/restart/status commands for a daemon.
|
|
5
|
+
*/
|
|
6
|
+
import type { Command } from 'commander';
|
|
7
|
+
import type { VibesRuntime } from '@vibesdotdev/runtime/api/runtime';
|
|
8
|
+
import type { CLIProcessManagerGroupDescriptor } from './schemas';
|
|
9
|
+
import type { PatternImplementation } from './pattern-types';
|
|
10
|
+
import type { CommandContext } from '../schemas/surface';
|
|
11
|
+
export declare class ProcessManagerPatternImpl implements PatternImplementation<CLIProcessManagerGroupDescriptor> {
|
|
12
|
+
private runtime;
|
|
13
|
+
constructor(runtime: VibesRuntime);
|
|
14
|
+
register(descriptor: CLIProcessManagerGroupDescriptor, parent: Command, context: CommandContext): Promise<void>;
|
|
15
|
+
private registerStart;
|
|
16
|
+
private registerStop;
|
|
17
|
+
private registerRestart;
|
|
18
|
+
private registerStatus;
|
|
19
|
+
private registerLogs;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=process-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-manager.d.ts","sourceRoot":"","sources":["../../src/patterns/process-manager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAazD,qBAAa,yBAA0B,YAAW,qBAAqB,CAAC,gCAAgC,CAAC;IAC5F,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,YAAY;IAEnC,QAAQ,CACb,UAAU,EAAE,gCAAgC,EAC5C,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,cAAc,GACrB,OAAO,CAAC,IAAI,CAAC;IAahB,OAAO,CAAC,aAAa;IA8BrB,OAAO,CAAC,YAAY;IAyBpB,OAAO,CAAC,eAAe;IAqBvB,OAAO,CAAC,cAAc;IAqCtB,OAAO,CAAC,YAAY;CAuBpB"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Process Manager Pattern Implementation
|
|
3
|
+
*
|
|
4
|
+
* Generates start/stop/restart/status commands for a daemon.
|
|
5
|
+
*/
|
|
6
|
+
export class ProcessManagerPatternImpl {
|
|
7
|
+
runtime;
|
|
8
|
+
constructor(runtime) {
|
|
9
|
+
this.runtime = runtime;
|
|
10
|
+
}
|
|
11
|
+
async register(descriptor, parent, context) {
|
|
12
|
+
const { name, description, processManager } = descriptor;
|
|
13
|
+
const cmds = processManager.commands ?? {};
|
|
14
|
+
const groupCmd = parent.command(name).description(description);
|
|
15
|
+
if (cmds.start !== false)
|
|
16
|
+
this.registerStart(groupCmd, descriptor, context);
|
|
17
|
+
if (cmds.stop !== false)
|
|
18
|
+
this.registerStop(groupCmd, descriptor, context);
|
|
19
|
+
if (cmds.restart !== false)
|
|
20
|
+
this.registerRestart(groupCmd, descriptor, context);
|
|
21
|
+
if (cmds.status !== false)
|
|
22
|
+
this.registerStatus(groupCmd, descriptor, context);
|
|
23
|
+
if (cmds.logs !== false)
|
|
24
|
+
this.registerLogs(groupCmd, descriptor, context);
|
|
25
|
+
}
|
|
26
|
+
registerStart(parent, d, ctx) {
|
|
27
|
+
parent
|
|
28
|
+
.command('start')
|
|
29
|
+
.description(`Start ${d.name}`)
|
|
30
|
+
.option('--detach', 'Run in background', true)
|
|
31
|
+
.option('--env <vars...>', 'Environment variables')
|
|
32
|
+
.action(async (opts) => {
|
|
33
|
+
const pm = ctx.pm;
|
|
34
|
+
if (!pm?.start) {
|
|
35
|
+
ctx.ui?.error('Process manager not available');
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const env = {};
|
|
39
|
+
if (opts.env) {
|
|
40
|
+
for (const pair of opts.env) {
|
|
41
|
+
const [k, ...v] = pair.split('=');
|
|
42
|
+
env[k] = v.join('=');
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
await pm.start(d.processManager.processId, { detach: opts.detach, env });
|
|
46
|
+
ctx.ui?.success(`Started ${d.name}`);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
registerStop(parent, d, ctx) {
|
|
50
|
+
parent
|
|
51
|
+
.command('stop')
|
|
52
|
+
.description(`Stop ${d.name}`)
|
|
53
|
+
.option('--force', 'Force stop')
|
|
54
|
+
.option('--timeout <s>', 'Timeout', '10')
|
|
55
|
+
.action(async (opts) => {
|
|
56
|
+
const pm = ctx.pm;
|
|
57
|
+
if (!pm?.stop) {
|
|
58
|
+
ctx.ui?.error('Process manager not available');
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
await pm.stop(d.processManager.processId, {
|
|
62
|
+
force: opts.force,
|
|
63
|
+
timeout: parseInt(opts.timeout, 10) * 1000
|
|
64
|
+
});
|
|
65
|
+
ctx.ui?.success(`Stopped ${d.name}`);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
registerRestart(parent, d, ctx) {
|
|
69
|
+
parent
|
|
70
|
+
.command('restart')
|
|
71
|
+
.description(`Restart ${d.name}`)
|
|
72
|
+
.option('--force', 'Force restart')
|
|
73
|
+
.action(async (opts) => {
|
|
74
|
+
const pm = ctx.pm;
|
|
75
|
+
if (!pm?.restart) {
|
|
76
|
+
ctx.ui?.error('Process manager not available');
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
await pm.restart(d.processManager.processId, { force: opts.force });
|
|
80
|
+
ctx.ui?.success(`Restarted ${d.name}`);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
registerStatus(parent, d, ctx) {
|
|
84
|
+
parent
|
|
85
|
+
.command('status')
|
|
86
|
+
.description(`Show status of ${d.name}`)
|
|
87
|
+
.option('-f, --format <format>', 'Output format', 'table')
|
|
88
|
+
.option('--health', 'Include health check')
|
|
89
|
+
.action(async (opts) => {
|
|
90
|
+
const pm = ctx.pm;
|
|
91
|
+
if (!pm?.status) {
|
|
92
|
+
ctx.ui?.error('Process manager not available');
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
const status = await pm.status(d.processManager.processId);
|
|
96
|
+
if (opts.health && d.processManager.healthCheck?.url) {
|
|
97
|
+
try {
|
|
98
|
+
const res = await fetch(d.processManager.healthCheck.url);
|
|
99
|
+
status.health = { ok: res.ok, code: res.status };
|
|
100
|
+
}
|
|
101
|
+
catch (e) {
|
|
102
|
+
status.health = { ok: false, error: String(e) };
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
if (opts.format === 'json') {
|
|
106
|
+
ctx.ui?.json(status);
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
ctx.ui?.info(`${d.name}: ${status.state ?? 'unknown'}`);
|
|
110
|
+
if (status.pid)
|
|
111
|
+
ctx.ui?.info(` PID: ${status.pid}`);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
registerLogs(parent, d, ctx) {
|
|
116
|
+
parent
|
|
117
|
+
.command('logs')
|
|
118
|
+
.description(`View logs for ${d.name}`)
|
|
119
|
+
.option('-n, --lines <n>', 'Lines', '50')
|
|
120
|
+
.option('-f, --follow', 'Follow')
|
|
121
|
+
.action(async (opts) => {
|
|
122
|
+
const pm = ctx.pm;
|
|
123
|
+
if (!pm?.logs) {
|
|
124
|
+
ctx.ui?.error('Process manager not available');
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
await pm.logs(d.processManager.processId, {
|
|
128
|
+
lines: parseInt(opts.lines, 10),
|
|
129
|
+
follow: opts.follow
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=process-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-manager.js","sourceRoot":"","sources":["../../src/patterns/process-manager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAmBH,MAAM,OAAO,yBAAyB;IACjB;IAApB,YAAoB,OAAqB;QAArB,YAAO,GAAP,OAAO,CAAc;IAAG,CAAC;IAE7C,KAAK,CAAC,QAAQ,CACb,UAA4C,EAC5C,MAAe,EACf,OAAuB;QAEvB,MAAM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mB;QAEnB,MAAM;aACJ,OAAO,CAAC,MAAM,CAAC;aACf,WAAW,CAAC,iBAAiB,CAAC,CAAC,IAAI,EAAE,CAAC;aACtC,MAAM,CAAC,iBAAiB,EAAE,OAAO,EAAE,IAAI,CAAC;aACxC,MAAM,CAAC,cAAc,EAAE,QAAQ,CAAC;aAChC,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;YACtB,MAAM,EAAE,GAAI,GAAwB,CAAC,EAAE,CAAC;YACxC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC;gBACf,GAAG,CAAC,EAAE,EAAE,KAAK,CAAC,+BAA+B,CAAC,CAAC;gBAC/C,OAAO;YACR,CAAC;YAED,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,SAAS,EAAE;gBACzC,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC;gBAC/B,MAAM,EAAE,IAAI,CAAC,MAAM;aACnB,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pattern resolver contracts.
|
|
3
|
+
*
|
|
4
|
+
* Extracted from `./resolver.ts` so each pattern implementation can
|
|
5
|
+
* implement `PatternImplementation` without forming a cycle back through
|
|
6
|
+
* the resolver (which itself dynamically imports the pattern modules).
|
|
7
|
+
*/
|
|
8
|
+
import type { Command } from 'commander';
|
|
9
|
+
import type { CommandContext } from '../schemas/surface';
|
|
10
|
+
import type { CLIPatternDescriptor } from './schemas';
|
|
11
|
+
export interface PatternImplementation<TDescriptor extends CLIPatternDescriptor> {
|
|
12
|
+
register(descriptor: TDescriptor, parent: Command, context: CommandContext): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=resolver.contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolver.contracts.d.ts","sourceRoot":"","sources":["../../src/patterns/resolver.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAEtD,MAAM,WAAW,qBAAqB,CAAC,WAAW,SAAS,oBAAoB;IAC9E,QAAQ,CAAC,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3F"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pattern resolver contracts.
|
|
3
|
+
*
|
|
4
|
+
* Extracted from `./resolver.ts` so each pattern implementation can
|
|
5
|
+
* implement `PatternImplementation` without forming a cycle back through
|
|
6
|
+
* the resolver (which itself dynamically imports the pattern modules).
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=resolver.contracts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolver.contracts.js","sourceRoot":"","sources":["../../src/patterns/resolver.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI Pattern Resolver
|
|
3
|
+
*
|
|
4
|
+
* Resolves pattern descriptors to Commander.js commands.
|
|
5
|
+
*/
|
|
6
|
+
import type { Command } from 'commander';
|
|
7
|
+
import type { VibesRuntime } from '@vibesdotdev/runtime/api/runtime';
|
|
8
|
+
import type { CLIPatternDescriptor } from './schemas';
|
|
9
|
+
import type { CommandContext } from '../schemas/surface';
|
|
10
|
+
import type { PatternImplementation } from './pattern-types';
|
|
11
|
+
export type { PatternImplementation } from './pattern-types';
|
|
12
|
+
/**
|
|
13
|
+
* Pattern resolver
|
|
14
|
+
*/
|
|
15
|
+
export declare class PatternResolver {
|
|
16
|
+
private runtime;
|
|
17
|
+
private patterns;
|
|
18
|
+
constructor(runtime: VibesRuntime);
|
|
19
|
+
/**
|
|
20
|
+
* Register a pattern implementation
|
|
21
|
+
*/
|
|
22
|
+
registerPattern<T extends CLIPatternDescriptor>(patternType: string, implementation: PatternImplementation<T>): void;
|
|
23
|
+
/**
|
|
24
|
+
* Check if descriptor is a pattern
|
|
25
|
+
*/
|
|
26
|
+
isPattern(descriptor: unknown): descriptor is CLIPatternDescriptor;
|
|
27
|
+
/**
|
|
28
|
+
* Resolve and register a pattern descriptor
|
|
29
|
+
*/
|
|
30
|
+
resolve(descriptor: CLIPatternDescriptor, parent: Command, context: CommandContext): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Get available pattern types
|
|
33
|
+
*/
|
|
34
|
+
getPatternTypes(): string[];
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Create pattern resolver with built-in patterns
|
|
38
|
+
*/
|
|
39
|
+
export declare function createPatternResolver(runtime: VibesRuntime): Promise<PatternResolver>;
|
|
40
|
+
//# sourceMappingURL=resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../src/patterns/resolver.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAOtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC7D,YAAY,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D;;GAEG;AACH,qBAAa,eAAe;IAGf,OAAO,CAAC,OAAO;IAF3B,OAAO,CAAC,QAAQ,CAAiD;gBAE7C,OAAO,EAAE,YAAY;IAEzC;;OAEG;IACH,eAAe,CAAC,CAAC,SAAS,oBAAoB,EAC7C,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,qBAAqB,CAAC,CAAC,CAAC,GACtC,IAAI;IAIP;;OAEG;IACH,SAAS,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI,oBAAoB;IAIlE;;OAEG;IACG,OAAO,CACZ,UAAU,EAAE,oBAAoB,EAChC,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,cAAc,GACrB,OAAO,CAAC,IAAI,CAAC;IAahB;;OAEG;IACH,eAAe,IAAI,MAAM,EAAE;CAG3B;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC,CAU3F"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI Pattern Resolver
|
|
3
|
+
*
|
|
4
|
+
* Resolves pattern descriptors to Commander.js commands.
|
|
5
|
+
*/
|
|
6
|
+
import { isPatternDescriptor, getPatternType } from './schemas.js';
|
|
7
|
+
import { CRUDPatternImpl } from './crud.js';
|
|
8
|
+
import { ToolWrapperPatternImpl } from './tool-wrapper.js';
|
|
9
|
+
import { LogViewerPatternImpl } from './log-viewer.js';
|
|
10
|
+
import { ProcessManagerPatternImpl } from './process-manager.js';
|
|
11
|
+
import { ConfigNamespacePatternImpl } from './config-namespace.js';
|
|
12
|
+
/**
|
|
13
|
+
* Pattern resolver
|
|
14
|
+
*/
|
|
15
|
+
export class PatternResolver {
|
|
16
|
+
runtime;
|
|
17
|
+
patterns = new Map();
|
|
18
|
+
constructor(runtime) {
|
|
19
|
+
this.runtime = runtime;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Register a pattern implementation
|
|
23
|
+
*/
|
|
24
|
+
registerPattern(patternType, implementation) {
|
|
25
|
+
this.patterns.set(patternType, implementation);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if descriptor is a pattern
|
|
29
|
+
*/
|
|
30
|
+
isPattern(descriptor) {
|
|
31
|
+
return isPatternDescriptor(descriptor);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Resolve and register a pattern descriptor
|
|
35
|
+
*/
|
|
36
|
+
async resolve(descriptor, parent, context) {
|
|
37
|
+
const patternType = getPatternType(descriptor);
|
|
38
|
+
const impl = this.patterns.get(patternType);
|
|
39
|
+
if (!impl) {
|
|
40
|
+
throw new Error(`No pattern implementation for '${patternType}'. Available: ${[...this.patterns.keys()].join(', ')}`);
|
|
41
|
+
}
|
|
42
|
+
await impl.register(descriptor, parent, context);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Get available pattern types
|
|
46
|
+
*/
|
|
47
|
+
getPatternTypes() {
|
|
48
|
+
return [...this.patterns.keys()];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Create pattern resolver with built-in patterns
|
|
53
|
+
*/
|
|
54
|
+
export async function createPatternResolver(runtime) {
|
|
55
|
+
const resolver = new PatternResolver(runtime);
|
|
56
|
+
resolver.registerPattern('crud', new CRUDPatternImpl(runtime));
|
|
57
|
+
resolver.registerPattern('tool-wrapper', new ToolWrapperPatternImpl(runtime));
|
|
58
|
+
resolver.registerPattern('log-viewer', new LogViewerPatternImpl(runtime));
|
|
59
|
+
resolver.registerPattern('process-manager', new ProcessManagerPatternImpl(runtime));
|
|
60
|
+
resolver.registerPattern('config-namespace', new ConfigNamespacePatternImpl(runtime));
|
|
61
|
+
return resolver;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=resolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolver.js","sourceRoot":"","sources":["../../src/patterns/resolver.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,mB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