veryfront 0.1.9 → 0.1.11
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/bin/veryfront.js +1 -2
- package/esm/_dnt.polyfills.d.ts +13 -0
- package/esm/_dnt.polyfills.d.ts.map +1 -1
- package/esm/_dnt.polyfills.js +11 -0
- package/esm/cli/app/actions.d.ts +21 -0
- package/esm/cli/app/actions.d.ts.map +1 -0
- package/esm/cli/app/actions.js +120 -0
- package/esm/cli/app/components/inline-input.d.ts +35 -0
- package/esm/cli/app/components/inline-input.d.ts.map +1 -0
- package/esm/cli/app/components/inline-input.js +208 -0
- package/esm/cli/app/components/list-select.d.ts +69 -0
- package/esm/cli/app/components/list-select.d.ts.map +1 -0
- package/esm/cli/app/components/list-select.js +140 -0
- package/esm/cli/app/data/slug-words.d.ts +3 -0
- package/esm/cli/app/data/slug-words.d.ts.map +1 -0
- package/esm/cli/app/data/slug-words.js +167 -0
- package/esm/cli/app/handlers/remote-navigation.d.ts +20 -0
- package/esm/cli/app/handlers/remote-navigation.d.ts.map +1 -0
- package/esm/cli/app/handlers/remote-navigation.js +51 -0
- package/esm/cli/app/handlers/view-handlers.d.ts +45 -0
- package/esm/cli/app/handlers/view-handlers.d.ts.map +1 -0
- package/esm/cli/app/handlers/view-handlers.js +158 -0
- package/esm/cli/app/index.d.ts +14 -0
- package/esm/cli/app/index.d.ts.map +1 -0
- package/esm/cli/app/index.js +13 -0
- package/esm/cli/app/logging/console-interceptor.d.ts +28 -0
- package/esm/cli/app/logging/console-interceptor.d.ts.map +1 -0
- package/esm/cli/app/logging/console-interceptor.js +77 -0
- package/esm/cli/app/operations/project-creation.d.ts +29 -0
- package/esm/cli/app/operations/project-creation.d.ts.map +1 -0
- package/esm/cli/app/operations/project-creation.js +116 -0
- package/esm/cli/app/shell.d.ts +6 -0
- package/esm/cli/app/shell.d.ts.map +1 -0
- package/esm/cli/app/shell.js +571 -0
- package/esm/cli/app/startup.d.ts +5 -0
- package/esm/cli/app/startup.d.ts.map +1 -0
- package/esm/cli/app/startup.js +34 -0
- package/esm/cli/app/state.d.ts +125 -0
- package/esm/cli/app/state.d.ts.map +1 -0
- package/esm/cli/app/state.js +227 -0
- package/esm/cli/app/types.d.ts +38 -0
- package/esm/cli/app/types.d.ts.map +1 -0
- package/esm/cli/app/types.js +6 -0
- package/esm/cli/app/utils.d.ts +14 -0
- package/esm/cli/app/utils.d.ts.map +1 -0
- package/esm/cli/app/utils.js +91 -0
- package/esm/cli/app/views/auth.d.ts +8 -0
- package/esm/cli/app/views/auth.d.ts.map +1 -0
- package/esm/cli/app/views/auth.js +25 -0
- package/esm/cli/app/views/dashboard.d.ts +19 -0
- package/esm/cli/app/views/dashboard.d.ts.map +1 -0
- package/esm/cli/app/views/dashboard.js +164 -0
- package/esm/cli/app/views/examples.d.ts +8 -0
- package/esm/cli/app/views/examples.d.ts.map +1 -0
- package/esm/cli/app/views/examples.js +25 -0
- package/esm/cli/app/views/help.d.ts +8 -0
- package/esm/cli/app/views/help.d.ts.map +1 -0
- package/esm/cli/app/views/help.js +59 -0
- package/esm/cli/app/views/index.d.ts +13 -0
- package/esm/cli/app/views/index.d.ts.map +1 -0
- package/esm/cli/app/views/index.js +12 -0
- package/esm/cli/app/views/new-project.d.ts +8 -0
- package/esm/cli/app/views/new-project.d.ts.map +1 -0
- package/esm/cli/app/views/new-project.js +30 -0
- package/esm/cli/app/views/startup.d.ts +39 -0
- package/esm/cli/app/views/startup.d.ts.map +1 -0
- package/esm/cli/app/views/startup.js +92 -0
- package/esm/cli/app/views/templates.d.ts +8 -0
- package/esm/cli/app/views/templates.d.ts.map +1 -0
- package/esm/cli/app/views/templates.js +25 -0
- package/esm/cli/auth/browser.d.ts +4 -0
- package/esm/cli/auth/browser.d.ts.map +1 -0
- package/esm/cli/auth/browser.js +24 -0
- package/esm/cli/auth/callback-server.d.ts +12 -0
- package/esm/cli/auth/callback-server.d.ts.map +1 -0
- package/esm/cli/auth/callback-server.js +250 -0
- package/esm/cli/auth/index.d.ts +5 -0
- package/esm/cli/auth/index.d.ts.map +1 -0
- package/esm/cli/auth/index.js +4 -0
- package/esm/cli/auth/login.d.ts +15 -0
- package/esm/cli/auth/login.d.ts.map +1 -0
- package/esm/cli/auth/login.js +231 -0
- package/esm/cli/auth/token-store.d.ts +7 -0
- package/esm/cli/auth/token-store.d.ts.map +1 -0
- package/esm/cli/auth/token-store.js +58 -0
- package/esm/cli/auth/utils.d.ts +11 -0
- package/esm/cli/auth/utils.d.ts.map +1 -0
- package/esm/cli/auth/utils.js +19 -0
- package/esm/cli/commands/analyze-chunks/command-help.d.ts +3 -0
- package/esm/cli/commands/analyze-chunks/command-help.d.ts.map +1 -0
- package/esm/cli/commands/analyze-chunks/command-help.js +15 -0
- package/esm/cli/commands/analyze-chunks/command.d.ts +6 -0
- package/esm/cli/commands/analyze-chunks/command.d.ts.map +1 -0
- package/esm/cli/commands/analyze-chunks/command.js +52 -0
- package/esm/cli/commands/analyze-chunks/handler.d.ts +11 -0
- package/esm/cli/commands/analyze-chunks/handler.d.ts.map +1 -0
- package/esm/cli/commands/analyze-chunks/handler.js +24 -0
- package/esm/cli/commands/build/command-help.d.ts +3 -0
- package/esm/cli/commands/build/command-help.d.ts.map +1 -0
- package/esm/cli/commands/build/command-help.js +48 -0
- package/esm/cli/commands/build/command.d.ts +3 -0
- package/esm/cli/commands/build/command.d.ts.map +1 -0
- package/esm/cli/commands/build/command.js +36 -0
- package/esm/cli/commands/build/config-display.d.ts +4 -0
- package/esm/cli/commands/build/config-display.d.ts.map +1 -0
- package/esm/cli/commands/build/config-display.js +29 -0
- package/esm/cli/commands/build/error-handler.d.ts +2 -0
- package/esm/cli/commands/build/error-handler.d.ts.map +1 -0
- package/esm/cli/commands/build/error-handler.js +24 -0
- package/esm/cli/commands/build/handler.d.ts +60 -0
- package/esm/cli/commands/build/handler.d.ts.map +1 -0
- package/esm/cli/commands/build/handler.js +78 -0
- package/esm/cli/commands/build/stats-display.d.ts +3 -0
- package/esm/cli/commands/build/stats-display.d.ts.map +1 -0
- package/esm/cli/commands/build/stats-display.js +28 -0
- package/esm/cli/commands/build/types.d.ts +2 -0
- package/esm/cli/commands/build/types.d.ts.map +1 -0
- package/esm/cli/commands/build/types.js +1 -0
- package/esm/cli/commands/clean/command-help.d.ts +3 -0
- package/esm/cli/commands/clean/command-help.d.ts.map +1 -0
- package/esm/cli/commands/clean/command-help.js +30 -0
- package/esm/cli/commands/clean/command.d.ts +9 -0
- package/esm/cli/commands/clean/command.d.ts.map +1 -0
- package/esm/cli/commands/clean/command.js +104 -0
- package/esm/cli/commands/clean/handler.d.ts +6 -0
- package/esm/cli/commands/clean/handler.d.ts.map +1 -0
- package/esm/cli/commands/clean/handler.js +24 -0
- package/esm/cli/commands/demo/command-help.d.ts +3 -0
- package/esm/cli/commands/demo/command-help.d.ts.map +1 -0
- package/esm/cli/commands/demo/command-help.js +24 -0
- package/esm/cli/commands/demo/demo.d.ts +12 -0
- package/esm/cli/commands/demo/demo.d.ts.map +1 -0
- package/esm/cli/commands/demo/demo.js +486 -0
- package/esm/cli/commands/demo/handler.d.ts +12 -0
- package/esm/cli/commands/demo/handler.d.ts.map +1 -0
- package/esm/cli/commands/demo/handler.js +20 -0
- package/esm/cli/commands/demo/index.d.ts +3 -0
- package/esm/cli/commands/demo/index.d.ts.map +1 -0
- package/esm/cli/commands/demo/index.js +2 -0
- package/esm/cli/commands/demo/steps.d.ts +10 -0
- package/esm/cli/commands/demo/steps.d.ts.map +1 -0
- package/esm/cli/commands/demo/steps.js +59 -0
- package/esm/cli/commands/deploy/command-help.d.ts +3 -0
- package/esm/cli/commands/deploy/command-help.d.ts.map +1 -0
- package/esm/cli/commands/deploy/command-help.js +39 -0
- package/esm/cli/commands/deploy/command.d.ts +99 -0
- package/esm/cli/commands/deploy/command.d.ts.map +1 -0
- package/esm/cli/commands/deploy/command.js +113 -0
- package/esm/cli/commands/deploy/handler.d.ts +6 -0
- package/esm/cli/commands/deploy/handler.d.ts.map +1 -0
- package/esm/cli/commands/deploy/handler.js +10 -0
- package/esm/cli/commands/deploy/index.d.ts +7 -0
- package/esm/cli/commands/deploy/index.d.ts.map +1 -0
- package/esm/cli/commands/deploy/index.js +5 -0
- package/esm/cli/commands/dev/command-help.d.ts +3 -0
- package/esm/cli/commands/dev/command-help.d.ts.map +1 -0
- package/esm/cli/commands/dev/command-help.js +31 -0
- package/esm/cli/commands/dev/command.d.ts +16 -0
- package/esm/cli/commands/dev/command.d.ts.map +1 -0
- package/esm/cli/commands/dev/command.js +268 -0
- package/esm/cli/commands/dev/handler.d.ts +13 -0
- package/esm/cli/commands/dev/handler.d.ts.map +1 -0
- package/esm/cli/commands/dev/handler.js +54 -0
- package/esm/cli/commands/dev/index.d.ts +7 -0
- package/esm/cli/commands/dev/index.d.ts.map +1 -0
- package/esm/cli/commands/dev/index.js +5 -0
- package/esm/cli/commands/doctor/ai-checks.d.ts +6 -0
- package/esm/cli/commands/doctor/ai-checks.d.ts.map +1 -0
- package/esm/cli/commands/doctor/ai-checks.js +56 -0
- package/esm/cli/commands/doctor/command-help.d.ts +3 -0
- package/esm/cli/commands/doctor/command-help.d.ts.map +1 -0
- package/esm/cli/commands/doctor/command-help.js +12 -0
- package/esm/cli/commands/doctor/handler.d.ts +10 -0
- package/esm/cli/commands/doctor/handler.d.ts.map +1 -0
- package/esm/cli/commands/doctor/handler.js +18 -0
- package/esm/cli/commands/doctor/index.d.ts +4 -0
- package/esm/cli/commands/doctor/index.d.ts.map +1 -0
- package/esm/cli/commands/doctor/index.js +62 -0
- package/esm/cli/commands/doctor/project-structure.d.ts +5 -0
- package/esm/cli/commands/doctor/project-structure.d.ts.map +1 -0
- package/esm/cli/commands/doctor/project-structure.js +49 -0
- package/esm/cli/commands/doctor/server-checks.d.ts +5 -0
- package/esm/cli/commands/doctor/server-checks.d.ts.map +1 -0
- package/esm/cli/commands/doctor/server-checks.js +130 -0
- package/esm/cli/commands/doctor/types.d.ts +7 -0
- package/esm/cli/commands/doctor/types.d.ts.map +1 -0
- package/esm/cli/commands/doctor/types.js +1 -0
- package/esm/cli/commands/doctor/version-checks.d.ts +4 -0
- package/esm/cli/commands/doctor/version-checks.d.ts.map +1 -0
- package/esm/cli/commands/doctor/version-checks.js +48 -0
- package/esm/cli/commands/generate/command-help.d.ts +3 -0
- package/esm/cli/commands/generate/command-help.d.ts.map +1 -0
- package/esm/cli/commands/generate/command-help.js +18 -0
- package/esm/cli/commands/generate/command.d.ts +2 -0
- package/esm/cli/commands/generate/command.d.ts.map +1 -0
- package/esm/cli/commands/generate/command.js +124 -0
- package/esm/cli/commands/generate/handler.d.ts +11 -0
- package/esm/cli/commands/generate/handler.d.ts.map +1 -0
- package/esm/cli/commands/generate/handler.js +34 -0
- package/esm/cli/commands/generate/index.d.ts +6 -0
- package/esm/cli/commands/generate/index.d.ts.map +1 -0
- package/esm/cli/commands/generate/index.js +5 -0
- package/esm/cli/commands/generate/integration-generator.d.ts +26 -0
- package/esm/cli/commands/generate/integration-generator.d.ts.map +1 -0
- package/esm/cli/commands/generate/integration-generator.js +496 -0
- package/esm/cli/commands/init/catalog.d.ts +36 -0
- package/esm/cli/commands/init/catalog.d.ts.map +1 -0
- package/esm/cli/commands/init/catalog.js +175 -0
- package/esm/cli/commands/init/command-help.d.ts +3 -0
- package/esm/cli/commands/init/command-help.d.ts.map +1 -0
- package/esm/cli/commands/init/command-help.js +40 -0
- package/esm/cli/commands/init/config-generator.d.ts +2 -0
- package/esm/cli/commands/init/config-generator.d.ts.map +1 -0
- package/esm/cli/commands/init/config-generator.js +29 -0
- package/esm/cli/commands/init/handler.d.ts +11 -0
- package/esm/cli/commands/init/handler.d.ts.map +1 -0
- package/esm/cli/commands/init/handler.js +58 -0
- package/esm/cli/commands/init/index.d.ts +8 -0
- package/esm/cli/commands/init/index.d.ts.map +1 -0
- package/esm/cli/commands/init/index.js +6 -0
- package/esm/cli/commands/init/init-command.d.ts +10 -0
- package/esm/cli/commands/init/init-command.d.ts.map +1 -0
- package/esm/cli/commands/init/init-command.js +364 -0
- package/esm/cli/commands/init/interactive-wizard.d.ts +14 -0
- package/esm/cli/commands/init/interactive-wizard.d.ts.map +1 -0
- package/esm/cli/commands/init/interactive-wizard.js +107 -0
- package/esm/cli/commands/init/path-utils.d.ts +10 -0
- package/esm/cli/commands/init/path-utils.d.ts.map +1 -0
- package/esm/cli/commands/init/path-utils.js +13 -0
- package/esm/cli/commands/init/types.d.ts +15 -0
- package/esm/cli/commands/init/types.d.ts.map +1 -0
- package/esm/cli/commands/init/types.js +1 -0
- package/esm/cli/commands/install/command-help.d.ts +4 -0
- package/esm/cli/commands/install/command-help.d.ts.map +1 -0
- package/esm/cli/commands/install/command-help.js +56 -0
- package/esm/cli/commands/install/detect.d.ts +8 -0
- package/esm/cli/commands/install/detect.d.ts.map +1 -0
- package/esm/cli/commands/install/detect.js +40 -0
- package/esm/cli/commands/install/handler.d.ts +13 -0
- package/esm/cli/commands/install/handler.d.ts.map +1 -0
- package/esm/cli/commands/install/handler.js +23 -0
- package/esm/cli/commands/install/install.d.ts +9 -0
- package/esm/cli/commands/install/install.d.ts.map +1 -0
- package/esm/cli/commands/install/install.js +78 -0
- package/esm/cli/commands/install/registry.d.ts +7 -0
- package/esm/cli/commands/install/registry.d.ts.map +1 -0
- package/esm/cli/commands/install/registry.js +65 -0
- package/esm/cli/commands/install/types.d.ts +66 -0
- package/esm/cli/commands/install/types.d.ts.map +1 -0
- package/esm/cli/commands/install/types.js +27 -0
- package/esm/cli/commands/install/uninstall.d.ts +11 -0
- package/esm/cli/commands/install/uninstall.d.ts.map +1 -0
- package/esm/cli/commands/install/uninstall.js +99 -0
- package/esm/cli/commands/issues/command-help.d.ts +3 -0
- package/esm/cli/commands/issues/command-help.d.ts.map +1 -0
- package/esm/cli/commands/issues/command-help.js +47 -0
- package/esm/cli/commands/issues/command.d.ts +8 -0
- package/esm/cli/commands/issues/command.d.ts.map +1 -0
- package/esm/cli/commands/issues/command.js +321 -0
- package/esm/cli/commands/issues/handler.d.ts +6 -0
- package/esm/cli/commands/issues/handler.d.ts.map +1 -0
- package/esm/cli/commands/issues/handler.js +7 -0
- package/esm/cli/commands/issues/index.d.ts +6 -0
- package/esm/cli/commands/issues/index.d.ts.map +1 -0
- package/esm/cli/commands/issues/index.js +5 -0
- package/esm/cli/commands/lock/command-help.d.ts +3 -0
- package/esm/cli/commands/lock/command-help.d.ts.map +1 -0
- package/esm/cli/commands/lock/command-help.js +39 -0
- package/esm/cli/commands/lock/command.d.ts +10 -0
- package/esm/cli/commands/lock/command.d.ts.map +1 -0
- package/esm/cli/commands/lock/command.js +154 -0
- package/esm/cli/commands/lock/handler.d.ts +6 -0
- package/esm/cli/commands/lock/handler.d.ts.map +1 -0
- package/esm/cli/commands/lock/handler.js +26 -0
- package/esm/cli/commands/login/command-help.d.ts +3 -0
- package/esm/cli/commands/login/command-help.d.ts.map +1 -0
- package/esm/cli/commands/login/command-help.js +35 -0
- package/esm/cli/commands/logout/command-help.d.ts +3 -0
- package/esm/cli/commands/logout/command-help.d.ts.map +1 -0
- package/esm/cli/commands/logout/command-help.js +11 -0
- package/esm/cli/commands/mcp/command-help.d.ts +3 -0
- package/esm/cli/commands/mcp/command-help.d.ts.map +1 -0
- package/esm/cli/commands/mcp/command-help.js +30 -0
- package/esm/cli/commands/mcp/handler.d.ts +7 -0
- package/esm/cli/commands/mcp/handler.d.ts.map +1 -0
- package/esm/cli/commands/mcp/handler.js +26 -0
- package/esm/cli/commands/merge/command-help.d.ts +3 -0
- package/esm/cli/commands/merge/command-help.d.ts.map +1 -0
- package/esm/cli/commands/merge/command-help.js +29 -0
- package/esm/cli/commands/merge/command.d.ts +75 -0
- package/esm/cli/commands/merge/command.d.ts.map +1 -0
- package/esm/cli/commands/merge/command.js +122 -0
- package/esm/cli/commands/merge/handler.d.ts +6 -0
- package/esm/cli/commands/merge/handler.d.ts.map +1 -0
- package/esm/cli/commands/merge/handler.js +10 -0
- package/esm/cli/commands/new/command-help.d.ts +3 -0
- package/esm/cli/commands/new/command-help.d.ts.map +1 -0
- package/esm/cli/commands/new/command-help.js +41 -0
- package/esm/cli/commands/new/command.d.ts +38 -0
- package/esm/cli/commands/new/command.d.ts.map +1 -0
- package/esm/cli/commands/new/command.js +240 -0
- package/esm/cli/commands/new/fast-scaffold.d.ts +10 -0
- package/esm/cli/commands/new/fast-scaffold.d.ts.map +1 -0
- package/esm/cli/commands/new/fast-scaffold.js +113 -0
- package/esm/cli/commands/new/handler.d.ts +6 -0
- package/esm/cli/commands/new/handler.d.ts.map +1 -0
- package/esm/cli/commands/new/handler.js +19 -0
- package/esm/cli/commands/new/index.d.ts +9 -0
- package/esm/cli/commands/new/index.d.ts.map +1 -0
- package/esm/cli/commands/new/index.js +7 -0
- package/esm/cli/commands/new/menu.d.ts +11 -0
- package/esm/cli/commands/new/menu.d.ts.map +1 -0
- package/esm/cli/commands/new/menu.js +227 -0
- package/esm/cli/commands/new/reserve-slug.d.ts +9 -0
- package/esm/cli/commands/new/reserve-slug.d.ts.map +1 -0
- package/esm/cli/commands/new/reserve-slug.js +68 -0
- package/esm/cli/commands/new/tui.d.ts +13 -0
- package/esm/cli/commands/new/tui.d.ts.map +1 -0
- package/esm/cli/commands/new/tui.js +34 -0
- package/esm/cli/commands/pull/command-help.d.ts +3 -0
- package/esm/cli/commands/pull/command-help.d.ts.map +1 -0
- package/esm/cli/commands/pull/command-help.js +53 -0
- package/esm/cli/commands/pull/command.d.ts +133 -0
- package/esm/cli/commands/pull/command.d.ts.map +1 -0
- package/esm/cli/commands/pull/command.js +316 -0
- package/esm/cli/commands/pull/handler.d.ts +6 -0
- package/esm/cli/commands/pull/handler.d.ts.map +1 -0
- package/esm/cli/commands/pull/handler.js +10 -0
- package/esm/cli/commands/pull/index.d.ts +4 -0
- package/esm/cli/commands/pull/index.d.ts.map +1 -0
- package/esm/cli/commands/pull/index.js +2 -0
- package/esm/cli/commands/push/command-help.d.ts +3 -0
- package/esm/cli/commands/push/command-help.d.ts.map +1 -0
- package/esm/cli/commands/push/command-help.js +36 -0
- package/esm/cli/commands/push/command.d.ts +92 -0
- package/esm/cli/commands/push/command.d.ts.map +1 -0
- package/esm/cli/commands/push/command.js +273 -0
- package/esm/cli/commands/push/handler.d.ts +6 -0
- package/esm/cli/commands/push/handler.d.ts.map +1 -0
- package/esm/cli/commands/push/handler.js +10 -0
- package/esm/cli/commands/push/index.d.ts +4 -0
- package/esm/cli/commands/push/index.d.ts.map +1 -0
- package/esm/cli/commands/push/index.js +2 -0
- package/esm/cli/commands/routes/command-help.d.ts +3 -0
- package/esm/cli/commands/routes/command-help.d.ts.map +1 -0
- package/esm/cli/commands/routes/command-help.js +12 -0
- package/esm/cli/commands/routes/command.d.ts +8 -0
- package/esm/cli/commands/routes/command.d.ts.map +1 -0
- package/esm/cli/commands/routes/command.js +64 -0
- package/esm/cli/commands/routes/handler.d.ts +11 -0
- package/esm/cli/commands/routes/handler.d.ts.map +1 -0
- package/esm/cli/commands/routes/handler.js +22 -0
- package/esm/cli/commands/serve/command-help.d.ts +3 -0
- package/esm/cli/commands/serve/command-help.d.ts.map +1 -0
- package/esm/cli/commands/serve/command-help.js +22 -0
- package/esm/cli/commands/serve/command.d.ts +11 -0
- package/esm/cli/commands/serve/command.d.ts.map +1 -0
- package/esm/cli/commands/serve/command.js +83 -0
- package/esm/cli/commands/serve/handler.d.ts +13 -0
- package/esm/cli/commands/serve/handler.d.ts.map +1 -0
- package/esm/cli/commands/serve/handler.js +35 -0
- package/esm/cli/commands/serve/split-mode.d.ts +9 -0
- package/esm/cli/commands/serve/split-mode.d.ts.map +1 -0
- package/esm/cli/commands/serve/split-mode.js +138 -0
- package/esm/cli/commands/start/command-help.d.ts +3 -0
- package/esm/cli/commands/start/command-help.d.ts.map +1 -0
- package/esm/cli/commands/start/command-help.js +50 -0
- package/esm/cli/commands/start/command.d.ts +8 -0
- package/esm/cli/commands/start/command.d.ts.map +1 -0
- package/esm/cli/commands/start/command.js +198 -0
- package/esm/cli/commands/start/handler.d.ts +10 -0
- package/esm/cli/commands/start/handler.d.ts.map +1 -0
- package/esm/cli/commands/start/handler.js +26 -0
- package/esm/cli/commands/studio/command-help.d.ts +3 -0
- package/esm/cli/commands/studio/command-help.d.ts.map +1 -0
- package/esm/cli/commands/studio/command-help.js +24 -0
- package/esm/cli/commands/studio/command.d.ts +24 -0
- package/esm/cli/commands/studio/command.d.ts.map +1 -0
- package/esm/cli/commands/studio/command.js +74 -0
- package/esm/cli/commands/studio/handler.d.ts +12 -0
- package/esm/cli/commands/studio/handler.d.ts.map +1 -0
- package/esm/cli/commands/studio/handler.js +19 -0
- package/esm/cli/commands/studio/index.d.ts +6 -0
- package/esm/cli/commands/studio/index.d.ts.map +1 -0
- package/esm/cli/commands/studio/index.js +5 -0
- package/esm/cli/commands/up/command-help.d.ts +3 -0
- package/esm/cli/commands/up/command-help.d.ts.map +1 -0
- package/esm/cli/commands/up/command-help.js +22 -0
- package/esm/cli/commands/up/command.d.ts +19 -0
- package/esm/cli/commands/up/command.d.ts.map +1 -0
- package/esm/cli/commands/up/command.js +172 -0
- package/esm/cli/commands/up/handler.d.ts +6 -0
- package/esm/cli/commands/up/handler.d.ts.map +1 -0
- package/esm/cli/commands/up/handler.js +8 -0
- package/esm/cli/commands/up/index.d.ts +7 -0
- package/esm/cli/commands/up/index.d.ts.map +1 -0
- package/esm/cli/commands/up/index.js +5 -0
- package/esm/cli/commands/whoami/command-help.d.ts +3 -0
- package/esm/cli/commands/whoami/command-help.d.ts.map +1 -0
- package/esm/cli/commands/whoami/command-help.js +11 -0
- package/esm/cli/commands/worker/command.d.ts +12 -0
- package/esm/cli/commands/worker/command.d.ts.map +1 -0
- package/esm/cli/commands/worker/command.js +84 -0
- package/esm/cli/commands/worker/handler.d.ts +40 -0
- package/esm/cli/commands/worker/handler.d.ts.map +1 -0
- package/esm/cli/commands/worker/handler.js +25 -0
- package/esm/cli/help/command-definitions.d.ts +13 -0
- package/esm/cli/help/command-definitions.d.ts.map +1 -0
- package/esm/cli/help/command-definitions.js +64 -0
- package/esm/cli/help/command-help.d.ts +2 -0
- package/esm/cli/help/command-help.d.ts.map +1 -0
- package/esm/cli/help/command-help.js +52 -0
- package/esm/cli/help/formatters.d.ts +16 -0
- package/esm/cli/help/formatters.d.ts.map +1 -0
- package/esm/cli/help/formatters.js +70 -0
- package/esm/cli/help/index.d.ts +6 -0
- package/esm/cli/help/index.d.ts.map +1 -0
- package/esm/cli/help/index.js +4 -0
- package/esm/cli/help/logo.d.ts +2 -0
- package/esm/cli/help/logo.d.ts.map +1 -0
- package/esm/cli/help/logo.js +4 -0
- package/esm/cli/help/main-help.d.ts +2 -0
- package/esm/cli/help/main-help.d.ts.map +1 -0
- package/esm/cli/help/main-help.js +34 -0
- package/esm/cli/help/tips.d.ts +5 -0
- package/esm/cli/help/tips.d.ts.map +1 -0
- package/esm/cli/help/tips.js +31 -0
- package/esm/cli/help/types.d.ts +15 -0
- package/esm/cli/help/types.d.ts.map +1 -0
- package/esm/cli/help/types.js +1 -0
- package/esm/cli/main.d.ts +12 -0
- package/esm/cli/main.d.ts.map +1 -0
- package/esm/cli/main.js +41 -0
- package/esm/cli/mcp/advanced-tools.d.ts +3 -0
- package/esm/cli/mcp/advanced-tools.d.ts.map +1 -0
- package/esm/cli/mcp/advanced-tools.js +26 -0
- package/esm/cli/mcp/dev-server-client.d.ts +19 -0
- package/esm/cli/mcp/dev-server-client.d.ts.map +1 -0
- package/esm/cli/mcp/dev-server-client.js +64 -0
- package/esm/cli/mcp/index.d.ts +3 -0
- package/esm/cli/mcp/index.d.ts.map +1 -0
- package/esm/cli/mcp/index.js +2 -0
- package/esm/cli/mcp/jsonrpc.d.ts +95 -0
- package/esm/cli/mcp/jsonrpc.d.ts.map +1 -0
- package/esm/cli/mcp/jsonrpc.js +76 -0
- package/esm/cli/mcp/remote-file-tools.d.ts +310 -0
- package/esm/cli/mcp/remote-file-tools.d.ts.map +1 -0
- package/esm/cli/mcp/remote-file-tools.js +435 -0
- package/esm/cli/mcp/server.d.ts +35 -0
- package/esm/cli/mcp/server.d.ts.map +1 -0
- package/esm/cli/mcp/server.js +411 -0
- package/esm/cli/mcp/standalone.d.ts +27 -0
- package/esm/cli/mcp/standalone.d.ts.map +1 -0
- package/esm/cli/mcp/standalone.js +228 -0
- package/esm/cli/mcp/stdio.d.ts +9 -0
- package/esm/cli/mcp/stdio.d.ts.map +1 -0
- package/esm/cli/mcp/stdio.js +45 -0
- package/esm/cli/mcp/tools/catalog-tools.d.ts +78 -0
- package/esm/cli/mcp/tools/catalog-tools.d.ts.map +1 -0
- package/esm/cli/mcp/tools/catalog-tools.js +388 -0
- package/esm/cli/mcp/tools/dev-tools.d.ts +142 -0
- package/esm/cli/mcp/tools/dev-tools.d.ts.map +1 -0
- package/esm/cli/mcp/tools/dev-tools.js +265 -0
- package/esm/cli/mcp/tools/helpers.d.ts +43 -0
- package/esm/cli/mcp/tools/helpers.d.ts.map +1 -0
- package/esm/cli/mcp/tools/helpers.js +87 -0
- package/esm/cli/mcp/tools/project-tools.d.ts +74 -0
- package/esm/cli/mcp/tools/project-tools.d.ts.map +1 -0
- package/esm/cli/mcp/tools/project-tools.js +272 -0
- package/esm/cli/mcp/tools/scaffold-tools.d.ts +44 -0
- package/esm/cli/mcp/tools/scaffold-tools.d.ts.map +1 -0
- package/esm/cli/mcp/tools/scaffold-tools.js +350 -0
- package/esm/cli/mcp/tools/skill-tools.d.ts +48 -0
- package/esm/cli/mcp/tools/skill-tools.d.ts.map +1 -0
- package/esm/cli/mcp/tools/skill-tools.js +129 -0
- package/esm/cli/mcp/tools.d.ts +94 -0
- package/esm/cli/mcp/tools.d.ts.map +1 -0
- package/esm/cli/mcp/tools.js +144 -0
- package/esm/cli/router.d.ts +13 -0
- package/esm/cli/router.d.ts.map +1 -0
- package/esm/cli/router.js +128 -0
- package/esm/cli/shared/args.d.ts +114 -0
- package/esm/cli/shared/args.d.ts.map +1 -0
- package/esm/cli/shared/args.js +189 -0
- package/esm/cli/shared/config.d.ts +66 -0
- package/esm/cli/shared/config.d.ts.map +1 -0
- package/esm/cli/shared/config.js +170 -0
- package/esm/cli/shared/constants.d.ts +20 -0
- package/esm/cli/shared/constants.d.ts.map +1 -0
- package/esm/cli/shared/constants.js +21 -0
- package/esm/cli/shared/handler-utils.d.ts +8 -0
- package/esm/cli/shared/handler-utils.d.ts.map +1 -0
- package/esm/cli/shared/handler-utils.js +8 -0
- package/esm/cli/shared/server-startup.d.ts +34 -0
- package/esm/cli/shared/server-startup.d.ts.map +1 -0
- package/esm/cli/shared/server-startup.js +56 -0
- package/esm/cli/shared/types.d.ts +33 -0
- package/esm/cli/shared/types.d.ts.map +1 -0
- package/esm/cli/shared/types.js +2 -0
- package/esm/cli/sync/ignore.d.ts +22 -0
- package/esm/cli/sync/ignore.d.ts.map +1 -0
- package/esm/cli/sync/ignore.js +116 -0
- package/esm/cli/sync/index.d.ts +9 -0
- package/esm/cli/sync/index.d.ts.map +1 -0
- package/esm/cli/sync/index.js +8 -0
- package/esm/cli/sync/project-discovery.d.ts +17 -0
- package/esm/cli/sync/project-discovery.d.ts.map +1 -0
- package/esm/cli/sync/project-discovery.js +60 -0
- package/esm/cli/templates/feature-loader.d.ts +58 -0
- package/esm/cli/templates/feature-loader.d.ts.map +1 -0
- package/esm/cli/templates/feature-loader.js +165 -0
- package/esm/cli/templates/index.d.ts +14 -0
- package/esm/cli/templates/index.d.ts.map +1 -0
- package/esm/cli/templates/index.js +53 -0
- package/esm/cli/templates/integration-loader.d.ts +79 -0
- package/esm/cli/templates/integration-loader.d.ts.map +1 -0
- package/esm/cli/templates/integration-loader.js +664 -0
- package/esm/cli/templates/loader.d.ts +15 -0
- package/esm/cli/templates/loader.d.ts.map +1 -0
- package/esm/cli/templates/loader.js +41 -0
- package/esm/cli/templates/manifest.d.ts +711 -0
- package/esm/cli/templates/manifest.d.ts.map +1 -0
- package/esm/cli/templates/manifest.js +709 -0
- package/esm/cli/templates/types.d.ts +42 -0
- package/esm/cli/templates/types.d.ts.map +1 -0
- package/esm/cli/templates/types.js +1 -0
- package/esm/cli/ui/animated-text.d.ts +25 -0
- package/esm/cli/ui/animated-text.d.ts.map +1 -0
- package/esm/cli/ui/animated-text.js +64 -0
- package/esm/cli/ui/ansi.d.ts +51 -0
- package/esm/cli/ui/ansi.d.ts.map +1 -0
- package/esm/cli/ui/ansi.js +77 -0
- package/esm/cli/ui/box.d.ts +2 -0
- package/esm/cli/ui/box.d.ts.map +1 -0
- package/esm/cli/ui/box.js +1 -0
- package/esm/cli/ui/colors.d.ts +46 -0
- package/esm/cli/ui/colors.d.ts.map +1 -0
- package/esm/cli/ui/colors.js +217 -0
- package/esm/cli/ui/components/banner.d.ts +26 -0
- package/esm/cli/ui/components/banner.d.ts.map +1 -0
- package/esm/cli/ui/components/banner.js +115 -0
- package/esm/cli/ui/components/index.d.ts +5 -0
- package/esm/cli/ui/components/index.d.ts.map +1 -0
- package/esm/cli/ui/components/index.js +4 -0
- package/esm/cli/ui/components/multi-select.d.ts +27 -0
- package/esm/cli/ui/components/multi-select.d.ts.map +1 -0
- package/esm/cli/ui/components/multi-select.js +118 -0
- package/esm/cli/ui/components/shortcuts.d.ts +9 -0
- package/esm/cli/ui/components/shortcuts.d.ts.map +1 -0
- package/esm/cli/ui/components/shortcuts.js +19 -0
- package/esm/cli/ui/components/table.d.ts +57 -0
- package/esm/cli/ui/components/table.d.ts.map +1 -0
- package/esm/cli/ui/components/table.js +125 -0
- package/esm/cli/ui/constants.d.ts +17 -0
- package/esm/cli/ui/constants.d.ts.map +1 -0
- package/esm/cli/ui/constants.js +16 -0
- package/esm/cli/ui/dot-matrix.d.ts +43 -0
- package/esm/cli/ui/dot-matrix.d.ts.map +1 -0
- package/esm/cli/ui/dot-matrix.js +266 -0
- package/esm/cli/ui/index.d.ts +8 -0
- package/esm/cli/ui/index.d.ts.map +1 -0
- package/esm/cli/ui/index.js +7 -0
- package/esm/cli/ui/keyboard.d.ts +38 -0
- package/esm/cli/ui/keyboard.d.ts.map +1 -0
- package/esm/cli/ui/keyboard.js +103 -0
- package/esm/cli/ui/layout.d.ts +49 -0
- package/esm/cli/ui/layout.d.ts.map +1 -0
- package/esm/cli/ui/layout.js +117 -0
- package/esm/cli/ui/progress.d.ts +37 -0
- package/esm/cli/ui/progress.d.ts.map +1 -0
- package/esm/cli/ui/progress.js +176 -0
- package/esm/cli/ui/tui.d.ts +36 -0
- package/esm/cli/ui/tui.d.ts.map +1 -0
- package/esm/cli/ui/tui.js +240 -0
- package/esm/cli/utils/env-prompt.d.ts +34 -0
- package/esm/cli/utils/env-prompt.d.ts.map +1 -0
- package/esm/cli/utils/env-prompt.js +138 -0
- package/esm/cli/utils/fs.d.ts +9 -0
- package/esm/cli/utils/fs.d.ts.map +1 -0
- package/esm/cli/utils/fs.js +30 -0
- package/esm/cli/utils/git.d.ts +9 -0
- package/esm/cli/utils/git.d.ts.map +1 -0
- package/esm/cli/utils/git.js +48 -0
- package/esm/cli/utils/index.d.ts +33 -0
- package/esm/cli/utils/index.d.ts.map +1 -0
- package/esm/cli/utils/index.js +156 -0
- package/esm/cli/utils/package-manager.d.ts +55 -0
- package/esm/cli/utils/package-manager.d.ts.map +1 -0
- package/esm/cli/utils/package-manager.js +173 -0
- package/esm/cli/utils/project.d.ts +11 -0
- package/esm/cli/utils/project.d.ts.map +1 -0
- package/esm/cli/utils/project.js +14 -0
- package/esm/cli/utils/string.d.ts +10 -0
- package/esm/cli/utils/string.d.ts.map +1 -0
- package/esm/cli/utils/string.js +24 -0
- package/esm/cli/utils/terminal-select.d.ts +22 -0
- package/esm/cli/utils/terminal-select.d.ts.map +1 -0
- package/esm/cli/utils/terminal-select.js +322 -0
- package/esm/deno.d.ts +1 -0
- package/esm/deno.js +3 -2
- package/esm/src/build/compiler/index.d.ts +11 -0
- package/esm/src/build/compiler/index.d.ts.map +1 -0
- package/esm/src/build/compiler/index.js +9 -0
- package/esm/src/build/compiler/mdx-compiler/code-generator.d.ts +3 -0
- package/esm/src/build/compiler/mdx-compiler/code-generator.d.ts.map +1 -0
- package/esm/src/build/compiler/mdx-compiler/code-generator.js +13 -0
- package/esm/src/build/compiler/mdx-compiler/compiler.d.ts +3 -0
- package/esm/src/build/compiler/mdx-compiler/compiler.d.ts.map +1 -0
- package/esm/src/build/compiler/mdx-compiler/compiler.js +33 -0
- package/esm/src/build/compiler/mdx-compiler/directory-compiler.d.ts +4 -0
- package/esm/src/build/compiler/mdx-compiler/directory-compiler.d.ts.map +1 -0
- package/esm/src/build/compiler/mdx-compiler/directory-compiler.js +31 -0
- package/esm/src/build/compiler/mdx-compiler/file-writer.d.ts +3 -0
- package/esm/src/build/compiler/mdx-compiler/file-writer.d.ts.map +1 -0
- package/esm/src/build/compiler/mdx-compiler/file-writer.js +12 -0
- package/esm/src/build/compiler/mdx-compiler/frontmatter-parser.d.ts +11 -0
- package/esm/src/build/compiler/mdx-compiler/frontmatter-parser.d.ts.map +1 -0
- package/esm/src/build/compiler/mdx-compiler/frontmatter-parser.js +73 -0
- package/esm/src/build/compiler/mdx-compiler/import-transformer.d.ts +3 -0
- package/esm/src/build/compiler/mdx-compiler/import-transformer.d.ts.map +1 -0
- package/esm/src/build/compiler/mdx-compiler/import-transformer.js +14 -0
- package/esm/src/build/compiler/mdx-compiler/index.d.ts +10 -0
- package/esm/src/build/compiler/mdx-compiler/index.d.ts.map +1 -0
- package/esm/src/build/compiler/mdx-compiler/index.js +8 -0
- package/esm/src/build/compiler/mdx-compiler/mdx-processor.d.ts +7 -0
- package/esm/src/build/compiler/mdx-compiler/mdx-processor.d.ts.map +1 -0
- package/esm/src/build/compiler/mdx-compiler/mdx-processor.js +29 -0
- package/esm/src/build/compiler/mdx-compiler/transpiler.d.ts +3 -0
- package/esm/src/build/compiler/mdx-compiler/transpiler.d.ts.map +1 -0
- package/esm/src/build/compiler/mdx-compiler/transpiler.js +12 -0
- package/esm/src/build/compiler/mdx-compiler/types.d.ts +19 -0
- package/esm/src/build/compiler/mdx-compiler/types.d.ts.map +1 -0
- package/esm/src/build/compiler/mdx-compiler/types.js +1 -0
- package/esm/src/build/compiler/mdx-compiler/validator.d.ts +5 -0
- package/esm/src/build/compiler/mdx-compiler/validator.d.ts.map +1 -0
- package/esm/src/build/compiler/mdx-compiler/validator.js +45 -0
- package/esm/src/build/compiler/mdx-compiler/watcher.d.ts +3 -0
- package/esm/src/build/compiler/mdx-compiler/watcher.d.ts.map +1 -0
- package/esm/src/build/compiler/mdx-compiler/watcher.js +50 -0
- package/esm/src/build/compiler/mdx-to-js.d.ts +23 -0
- package/esm/src/build/compiler/mdx-to-js.d.ts.map +1 -0
- package/esm/src/build/compiler/mdx-to-js.js +184 -0
- package/esm/src/build/embedded/preset.d.ts +17 -0
- package/esm/src/build/embedded/preset.d.ts.map +1 -0
- package/esm/src/build/embedded/preset.js +249 -0
- package/esm/src/build/index.d.ts +17 -0
- package/esm/src/build/index.d.ts.map +1 -0
- package/esm/src/build/index.js +11 -0
- package/esm/src/build/renderer/types/bundler-types.d.ts +6 -0
- package/esm/src/build/renderer/types/bundler-types.d.ts.map +1 -0
- package/esm/src/build/renderer/types/bundler-types.js +5 -0
- package/esm/src/html/schemas/html.schema.d.ts +2 -2
- package/esm/src/html/utils.d.ts.map +1 -1
- package/esm/src/html/utils.js +29 -12
- package/esm/src/issues/core.d.ts +94 -0
- package/esm/src/issues/core.d.ts.map +1 -0
- package/esm/src/issues/core.js +325 -0
- package/esm/src/issues/index.d.ts +11 -0
- package/esm/src/issues/index.d.ts.map +1 -0
- package/esm/src/issues/index.js +9 -0
- package/esm/src/issues/mcp.d.ts +13 -0
- package/esm/src/issues/mcp.d.ts.map +1 -0
- package/esm/src/issues/mcp.js +178 -0
- package/esm/src/issues/schemas/index.d.ts +7 -0
- package/esm/src/issues/schemas/index.d.ts.map +1 -0
- package/esm/src/issues/schemas/index.js +6 -0
- package/esm/src/issues/schemas/issue.schema.d.ts +276 -0
- package/esm/src/issues/schemas/issue.schema.d.ts.map +1 -0
- package/esm/src/issues/schemas/issue.schema.js +95 -0
- package/esm/src/platform/compat/esbuild-init.d.ts +2 -0
- package/esm/src/platform/compat/esbuild-init.d.ts.map +1 -0
- package/esm/src/platform/compat/esbuild-init.js +69 -0
- package/esm/src/platform/compat/http/deno-server.d.ts +7 -0
- package/esm/src/platform/compat/http/deno-server.d.ts.map +1 -0
- package/esm/src/platform/compat/http/deno-server.js +16 -0
- package/esm/src/platform/compat/http/factory.d.ts +3 -0
- package/esm/src/platform/compat/http/factory.d.ts.map +1 -0
- package/esm/src/platform/compat/http/factory.js +9 -0
- package/esm/src/platform/compat/http/index.d.ts +14 -0
- package/esm/src/platform/compat/http/index.d.ts.map +1 -0
- package/esm/src/platform/compat/http/index.js +11 -0
- package/esm/src/platform/compat/http/node-server.d.ts +10 -0
- package/esm/src/platform/compat/http/node-server.d.ts.map +1 -0
- package/esm/src/platform/compat/http/node-server.js +73 -0
- package/esm/src/platform/compat/http/node-types.d.ts +29 -0
- package/esm/src/platform/compat/http/node-types.d.ts.map +1 -0
- package/esm/src/platform/compat/http/node-types.js +1 -0
- package/esm/src/platform/compat/http/request-adapter.d.ts +4 -0
- package/esm/src/platform/compat/http/request-adapter.d.ts.map +1 -0
- package/esm/src/platform/compat/http/request-adapter.js +10 -0
- package/esm/src/platform/compat/http/types.d.ts +24 -0
- package/esm/src/platform/compat/http/types.d.ts.map +1 -0
- package/esm/src/platform/compat/http/types.js +1 -0
- package/esm/src/platform/compat/http/websocket.d.ts +5 -0
- package/esm/src/platform/compat/http/websocket.d.ts.map +1 -0
- package/esm/src/platform/compat/http/websocket.js +19 -0
- package/esm/src/proxy/cache/index.d.ts +13 -0
- package/esm/src/proxy/cache/index.d.ts.map +1 -0
- package/esm/src/proxy/cache/index.js +42 -0
- package/esm/src/proxy/cache/memory-cache.d.ts +18 -0
- package/esm/src/proxy/cache/memory-cache.d.ts.map +1 -0
- package/esm/src/proxy/cache/memory-cache.js +99 -0
- package/esm/src/proxy/cache/redis-cache.d.ts +21 -0
- package/esm/src/proxy/cache/redis-cache.d.ts.map +1 -0
- package/esm/src/proxy/cache/redis-cache.js +181 -0
- package/esm/src/proxy/cache/resilient-cache.d.ts +25 -0
- package/esm/src/proxy/cache/resilient-cache.d.ts.map +1 -0
- package/esm/src/proxy/cache/resilient-cache.js +150 -0
- package/esm/src/proxy/cache/types.d.ts +44 -0
- package/esm/src/proxy/cache/types.d.ts.map +1 -0
- package/esm/src/proxy/cache/types.js +7 -0
- package/esm/src/proxy/env.d.ts +2 -0
- package/esm/src/proxy/env.d.ts.map +1 -0
- package/esm/src/proxy/env.js +10 -0
- package/esm/src/proxy/handler.d.ts +61 -0
- package/esm/src/proxy/handler.d.ts.map +1 -0
- package/esm/src/proxy/handler.js +382 -0
- package/esm/src/proxy/logger.d.ts +52 -0
- package/esm/src/proxy/logger.d.ts.map +1 -0
- package/esm/src/proxy/logger.js +295 -0
- package/esm/src/proxy/main.d.ts +2 -0
- package/esm/src/proxy/main.d.ts.map +1 -0
- package/esm/src/proxy/main.js +469 -0
- package/esm/src/proxy/oauth-client.d.ts +15 -0
- package/esm/src/proxy/oauth-client.d.ts.map +1 -0
- package/esm/src/proxy/oauth-client.js +54 -0
- package/esm/src/proxy/retry.d.ts +9 -0
- package/esm/src/proxy/retry.d.ts.map +1 -0
- package/esm/src/proxy/retry.js +25 -0
- package/esm/src/proxy/token-manager.d.ts +35 -0
- package/esm/src/proxy/token-manager.d.ts.map +1 -0
- package/esm/src/proxy/token-manager.js +95 -0
- package/esm/src/proxy/tracing.d.ts +39 -0
- package/esm/src/proxy/tracing.d.ts.map +1 -0
- package/esm/src/proxy/tracing.js +219 -0
- package/esm/src/server/handlers/request/module/module-server-handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/module/module-server-handler.js +6 -0
- package/esm/src/transforms/esm/package-registry.d.ts +22 -0
- package/esm/src/transforms/esm/package-registry.d.ts.map +1 -1
- package/esm/src/transforms/esm/package-registry.js +54 -0
- package/package.json +4 -1
- package/src/_dnt.polyfills.ts +22 -0
- package/src/cli/app/actions.ts +149 -0
- package/src/cli/app/components/inline-input.ts +248 -0
- package/src/cli/app/components/list-select.ts +218 -0
- package/src/cli/app/data/slug-words.ts +168 -0
- package/src/cli/app/handlers/remote-navigation.ts +65 -0
- package/src/cli/app/handlers/view-handlers.ts +211 -0
- package/src/cli/app/index.ts +19 -0
- package/src/cli/app/logging/console-interceptor.ts +97 -0
- package/src/cli/app/operations/project-creation.ts +176 -0
- package/src/cli/app/shell.ts +706 -0
- package/src/cli/app/startup.ts +48 -0
- package/src/cli/app/state.ts +383 -0
- package/src/cli/app/types.ts +40 -0
- package/src/cli/app/utils.ts +117 -0
- package/src/cli/app/views/auth.ts +30 -0
- package/src/cli/app/views/dashboard.ts +198 -0
- package/src/cli/app/views/examples.ts +35 -0
- package/src/cli/app/views/help.ts +65 -0
- package/src/cli/app/views/index.ts +13 -0
- package/src/cli/app/views/new-project.ts +37 -0
- package/src/cli/app/views/startup.ts +125 -0
- package/src/cli/app/views/templates.ts +35 -0
- package/src/cli/auth/browser.ts +26 -0
- package/src/cli/auth/callback-server.ts +296 -0
- package/src/cli/auth/index.ts +16 -0
- package/src/cli/auth/login.ts +279 -0
- package/src/cli/auth/token-store.ts +63 -0
- package/src/cli/auth/utils.ts +20 -0
- package/src/cli/commands/analyze-chunks/command-help.ts +17 -0
- package/src/cli/commands/analyze-chunks/command.ts +89 -0
- package/src/cli/commands/analyze-chunks/handler.ts +29 -0
- package/src/cli/commands/build/command-help.ts +50 -0
- package/src/cli/commands/build/command.ts +46 -0
- package/src/cli/commands/build/config-display.ts +48 -0
- package/src/cli/commands/build/error-handler.ts +30 -0
- package/src/cli/commands/build/handler.ts +95 -0
- package/src/cli/commands/build/stats-display.ts +40 -0
- package/src/cli/commands/build/types.ts +1 -0
- package/src/cli/commands/clean/command-help.ts +32 -0
- package/src/cli/commands/clean/command.ts +151 -0
- package/src/cli/commands/clean/handler.ts +29 -0
- package/src/cli/commands/demo/command-help.ts +26 -0
- package/src/cli/commands/demo/demo.ts +619 -0
- package/src/cli/commands/demo/handler.ts +25 -0
- package/src/cli/commands/demo/index.ts +2 -0
- package/src/cli/commands/demo/steps.ts +68 -0
- package/src/cli/commands/deploy/command-help.ts +41 -0
- package/src/cli/commands/deploy/command.ts +198 -0
- package/src/cli/commands/deploy/handler.ts +13 -0
- package/src/cli/commands/deploy/index.ts +14 -0
- package/src/cli/commands/dev/command-help.ts +33 -0
- package/src/cli/commands/dev/command.ts +337 -0
- package/src/cli/commands/dev/handler.ts +68 -0
- package/src/cli/commands/dev/index.ts +7 -0
- package/src/cli/commands/doctor/ai-checks.ts +65 -0
- package/src/cli/commands/doctor/command-help.ts +14 -0
- package/src/cli/commands/doctor/handler.ts +23 -0
- package/src/cli/commands/doctor/index.ts +89 -0
- package/src/cli/commands/doctor/project-structure.ts +56 -0
- package/src/cli/commands/doctor/server-checks.ts +142 -0
- package/src/cli/commands/doctor/types.ts +6 -0
- package/src/cli/commands/doctor/version-checks.ts +67 -0
- package/src/cli/commands/generate/command-help.ts +20 -0
- package/src/cli/commands/generate/command.ts +155 -0
- package/src/cli/commands/generate/handler.ts +51 -0
- package/src/cli/commands/generate/index.ts +6 -0
- package/src/cli/commands/generate/integration-generator.ts +599 -0
- package/src/cli/commands/init/catalog.ts +216 -0
- package/src/cli/commands/init/command-help.ts +43 -0
- package/src/cli/commands/init/config-generator.ts +40 -0
- package/src/cli/commands/init/handler.ts +75 -0
- package/src/cli/commands/init/index.ts +8 -0
- package/src/cli/commands/init/init-command.ts +449 -0
- package/src/cli/commands/init/interactive-wizard.ts +142 -0
- package/src/cli/commands/init/path-utils.ts +15 -0
- package/src/cli/commands/init/types.ts +24 -0
- package/src/cli/commands/install/command-help.ts +61 -0
- package/src/cli/commands/install/detect.ts +51 -0
- package/src/cli/commands/install/handler.ts +29 -0
- package/src/cli/commands/install/install.ts +104 -0
- package/src/cli/commands/install/registry.ts +72 -0
- package/src/cli/commands/install/types.ts +41 -0
- package/src/cli/commands/install/uninstall.ts +135 -0
- package/src/cli/commands/issues/command-help.ts +49 -0
- package/src/cli/commands/issues/command.ts +371 -0
- package/src/cli/commands/issues/handler.ts +10 -0
- package/src/cli/commands/issues/index.ts +6 -0
- package/src/cli/commands/lock/command-help.ts +41 -0
- package/src/cli/commands/lock/command.ts +194 -0
- package/src/cli/commands/lock/handler.ts +31 -0
- package/src/cli/commands/login/command-help.ts +37 -0
- package/src/cli/commands/logout/command-help.ts +13 -0
- package/src/cli/commands/mcp/command-help.ts +32 -0
- package/src/cli/commands/mcp/handler.ts +33 -0
- package/src/cli/commands/merge/command-help.ts +31 -0
- package/src/cli/commands/merge/command.ts +219 -0
- package/src/cli/commands/merge/handler.ts +13 -0
- package/src/cli/commands/new/command-help.ts +44 -0
- package/src/cli/commands/new/command.ts +319 -0
- package/src/cli/commands/new/fast-scaffold.ts +160 -0
- package/src/cli/commands/new/handler.ts +24 -0
- package/src/cli/commands/new/index.ts +9 -0
- package/src/cli/commands/new/menu.ts +273 -0
- package/src/cli/commands/new/reserve-slug.ts +111 -0
- package/src/cli/commands/new/tui.ts +52 -0
- package/src/cli/commands/pull/command-help.ts +55 -0
- package/src/cli/commands/pull/command.ts +486 -0
- package/src/cli/commands/pull/handler.ts +13 -0
- package/src/cli/commands/pull/index.ts +3 -0
- package/src/cli/commands/push/command-help.ts +38 -0
- package/src/cli/commands/push/command.ts +393 -0
- package/src/cli/commands/push/handler.ts +13 -0
- package/src/cli/commands/push/index.ts +3 -0
- package/src/cli/commands/routes/command-help.ts +14 -0
- package/src/cli/commands/routes/command.ts +88 -0
- package/src/cli/commands/routes/handler.ts +27 -0
- package/src/cli/commands/serve/command-help.ts +24 -0
- package/src/cli/commands/serve/command.ts +115 -0
- package/src/cli/commands/serve/handler.ts +39 -0
- package/src/cli/commands/serve/split-mode.ts +182 -0
- package/src/cli/commands/start/command-help.ts +52 -0
- package/src/cli/commands/start/command.ts +255 -0
- package/src/cli/commands/start/handler.ts +31 -0
- package/src/cli/commands/studio/command-help.ts +26 -0
- package/src/cli/commands/studio/command.ts +96 -0
- package/src/cli/commands/studio/handler.ts +24 -0
- package/src/cli/commands/studio/index.ts +6 -0
- package/src/cli/commands/up/command-help.ts +24 -0
- package/src/cli/commands/up/command.ts +211 -0
- package/src/cli/commands/up/handler.ts +11 -0
- package/src/cli/commands/up/index.ts +7 -0
- package/src/cli/commands/whoami/command-help.ts +13 -0
- package/src/cli/commands/worker/command.ts +114 -0
- package/src/cli/commands/worker/handler.ts +31 -0
- package/src/cli/help/command-definitions.ts +68 -0
- package/src/cli/help/command-help.ts +67 -0
- package/src/cli/help/formatters.ts +95 -0
- package/src/cli/help/index.ts +6 -0
- package/src/cli/help/logo.ts +5 -0
- package/src/cli/help/main-help.ts +53 -0
- package/src/cli/help/tips.ts +36 -0
- package/src/cli/help/types.ts +16 -0
- package/src/cli/main.ts +52 -0
- package/src/cli/mcp/advanced-tools.ts +47 -0
- package/src/cli/mcp/dev-server-client.ts +82 -0
- package/src/cli/mcp/index.ts +2 -0
- package/src/cli/mcp/jsonrpc.ts +105 -0
- package/src/cli/mcp/remote-file-tools.ts +726 -0
- package/src/cli/mcp/server.ts +490 -0
- package/src/cli/mcp/standalone.ts +266 -0
- package/src/cli/mcp/stdio.ts +57 -0
- package/src/cli/mcp/tools/catalog-tools.ts +478 -0
- package/src/cli/mcp/tools/dev-tools.ts +412 -0
- package/src/cli/mcp/tools/helpers.ts +141 -0
- package/src/cli/mcp/tools/project-tools.ts +391 -0
- package/src/cli/mcp/tools/scaffold-tools.ts +414 -0
- package/src/cli/mcp/tools/skill-tools.ts +185 -0
- package/src/cli/mcp/tools.ts +209 -0
- package/src/cli/router.ts +137 -0
- package/src/cli/shared/args.ts +256 -0
- package/src/cli/shared/config.ts +225 -0
- package/src/cli/shared/constants.ts +27 -0
- package/src/cli/shared/handler-utils.ts +18 -0
- package/src/cli/shared/server-startup.ts +107 -0
- package/src/cli/shared/types.ts +34 -0
- package/src/cli/sync/ignore.ts +138 -0
- package/src/cli/sync/index.ts +21 -0
- package/src/cli/sync/project-discovery.ts +82 -0
- package/src/cli/templates/feature-loader.ts +201 -0
- package/src/cli/templates/index.ts +93 -0
- package/src/cli/templates/integration-loader.ts +727 -0
- package/src/cli/templates/loader.ts +64 -0
- package/src/cli/templates/manifest.js +709 -0
- package/src/cli/templates/types.ts +78 -0
- package/src/cli/ui/animated-text.ts +89 -0
- package/src/cli/ui/ansi.ts +91 -0
- package/src/cli/ui/box.ts +1 -0
- package/src/cli/ui/colors.ts +252 -0
- package/src/cli/ui/components/banner.ts +170 -0
- package/src/cli/ui/components/index.ts +4 -0
- package/src/cli/ui/components/multi-select.ts +163 -0
- package/src/cli/ui/components/shortcuts.ts +30 -0
- package/src/cli/ui/components/table.ts +187 -0
- package/src/cli/ui/constants.ts +20 -0
- package/src/cli/ui/dot-matrix.ts +347 -0
- package/src/cli/ui/index.ts +7 -0
- package/src/cli/ui/keyboard.ts +138 -0
- package/src/cli/ui/layout.ts +142 -0
- package/src/cli/ui/progress.ts +234 -0
- package/src/cli/ui/tui.ts +311 -0
- package/src/cli/utils/env-prompt.ts +187 -0
- package/src/cli/utils/fs.ts +33 -0
- package/src/cli/utils/git.ts +58 -0
- package/src/cli/utils/index.ts +216 -0
- package/src/cli/utils/package-manager.ts +205 -0
- package/src/cli/utils/project.ts +16 -0
- package/src/cli/utils/string.ts +27 -0
- package/src/cli/utils/terminal-select.ts +371 -0
- package/src/deno.js +3 -2
- package/src/src/build/compiler/index.ts +17 -0
- package/src/src/build/compiler/mdx-compiler/code-generator.ts +16 -0
- package/src/src/build/compiler/mdx-compiler/compiler.ts +53 -0
- package/src/src/build/compiler/mdx-compiler/directory-compiler.ts +39 -0
- package/src/src/build/compiler/mdx-compiler/file-writer.ts +25 -0
- package/src/src/build/compiler/mdx-compiler/frontmatter-parser.ts +92 -0
- package/src/src/build/compiler/mdx-compiler/import-transformer.ts +27 -0
- package/src/src/build/compiler/mdx-compiler/index.ts +10 -0
- package/src/src/build/compiler/mdx-compiler/mdx-processor.ts +43 -0
- package/src/src/build/compiler/mdx-compiler/transpiler.ts +15 -0
- package/src/src/build/compiler/mdx-compiler/types.ts +21 -0
- package/src/src/build/compiler/mdx-compiler/validator.ts +55 -0
- package/src/src/build/compiler/mdx-compiler/watcher.ts +56 -0
- package/src/src/build/compiler/mdx-to-js.ts +241 -0
- package/src/src/build/embedded/preset.ts +316 -0
- package/src/src/build/index.ts +19 -0
- package/src/src/build/renderer/types/bundler-types.ts +12 -0
- package/src/src/html/utils.ts +37 -13
- package/src/src/issues/core.ts +383 -0
- package/src/src/issues/index.ts +46 -0
- package/src/src/issues/mcp.ts +233 -0
- package/src/src/issues/schemas/index.ts +34 -0
- package/src/src/issues/schemas/issue.schema.ts +124 -0
- package/src/src/platform/compat/esbuild-init.ts +76 -0
- package/src/src/platform/compat/http/deno-server.ts +23 -0
- package/src/src/platform/compat/http/factory.ts +12 -0
- package/src/src/platform/compat/http/index.ts +45 -0
- package/src/src/platform/compat/http/node-server.ts +101 -0
- package/src/src/platform/compat/http/node-types.ts +34 -0
- package/src/src/platform/compat/http/request-adapter.ts +17 -0
- package/src/src/platform/compat/http/types.ts +24 -0
- package/src/src/platform/compat/http/websocket.ts +33 -0
- package/src/src/proxy/cache/index.ts +66 -0
- package/src/src/proxy/cache/memory-cache.ts +135 -0
- package/src/src/proxy/cache/redis-cache.ts +216 -0
- package/src/src/proxy/cache/resilient-cache.ts +194 -0
- package/src/src/proxy/cache/types.ts +45 -0
- package/src/src/proxy/env.ts +11 -0
- package/src/src/proxy/handler.ts +561 -0
- package/src/src/proxy/logger.ts +411 -0
- package/src/src/proxy/main.ts +561 -0
- package/src/src/proxy/oauth-client.ts +90 -0
- package/src/src/proxy/retry.ts +28 -0
- package/src/src/proxy/token-manager.ts +139 -0
- package/src/src/proxy/tracing.ts +286 -0
- package/src/src/server/handlers/request/module/module-server-handler.ts +7 -0
- package/src/src/transforms/esm/package-registry.ts +67 -0
package/bin/veryfront.js
CHANGED
|
@@ -10,8 +10,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
|
10
10
|
const nativeBinary = join(__dirname, process.platform === 'win32' ? 'veryfront.exe' : 'veryfront');
|
|
11
11
|
|
|
12
12
|
async function runJsFallback() {
|
|
13
|
-
|
|
14
|
-
await main();
|
|
13
|
+
await import('../esm/cli/main.js');
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
if (existsSync(nativeBinary)) {
|
package/esm/_dnt.polyfills.d.ts
CHANGED
|
@@ -158,4 +158,17 @@ declare global {
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
export {};
|
|
161
|
+
declare global {
|
|
162
|
+
interface PromiseConstructor {
|
|
163
|
+
/**
|
|
164
|
+
* Creates a Promise that can be resolved or rejected using provided functions.
|
|
165
|
+
* @returns An object containing `promise` promise object, `resolve` and `reject` functions.
|
|
166
|
+
*/
|
|
167
|
+
withResolvers<T>(): {
|
|
168
|
+
promise: Promise<T>;
|
|
169
|
+
resolve: (value: T | PromiseLike<T>) => void;
|
|
170
|
+
reject: (reason?: any) => void;
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
}
|
|
161
174
|
//# sourceMappingURL=_dnt.polyfills.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK;QACb,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,gBAAgB;QACxB,SAAS,CAAC,CAAC,EACP,mBAAmB,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,GAC7F,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;QAEhB,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,MAAM,CAAC,EAAE,GAAG,KAAK,IAAI,CAAA;SAAE,CAAC;KAC3H;CACF"}
|
package/esm/_dnt.polyfills.js
CHANGED
|
@@ -258,3 +258,14 @@ if (!Uint8Array.prototype.findLast) {
|
|
|
258
258
|
return findLast(this, callbackfn, that);
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
|
+
// https://github.com/tc39/proposal-promise-with-resolvers/blob/3a78801e073e99217dbeb2c43ba7212f3bdc8b83/polyfills.js#L1C1-L9C2
|
|
262
|
+
if (Promise.withResolvers === undefined) {
|
|
263
|
+
Promise.withResolvers = () => {
|
|
264
|
+
const out = {};
|
|
265
|
+
out.promise = new Promise((resolve_, reject_) => {
|
|
266
|
+
out.resolve = resolve_;
|
|
267
|
+
out.reject = reject_;
|
|
268
|
+
});
|
|
269
|
+
return out;
|
|
270
|
+
};
|
|
271
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**************************
|
|
2
|
+
* CLI App Actions
|
|
3
|
+
*
|
|
4
|
+
* Handlers for opening projects in browser, Studio, and IDE.
|
|
5
|
+
* Uses cross-runtime platform abstractions for filesystem and command execution.
|
|
6
|
+
**************************/
|
|
7
|
+
import type { ProjectInfo } from "./state.js";
|
|
8
|
+
import { type EnvironmentConfig } from "../../src/config/index.js";
|
|
9
|
+
export type IDE = "cursor" | "code" | "zed" | "idea" | "webstorm";
|
|
10
|
+
export interface ActionResult {
|
|
11
|
+
success: boolean;
|
|
12
|
+
message?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function openInBrowser(project: ProjectInfo, port: number): Promise<ActionResult>;
|
|
15
|
+
export declare function openInStudio(project: ProjectInfo): Promise<ActionResult>;
|
|
16
|
+
export declare function detectIDEs(): Promise<IDE[]>;
|
|
17
|
+
export declare function getPreferredIDE(): Promise<IDE | null>;
|
|
18
|
+
export declare function openInIDE(project: ProjectInfo, ide?: IDE): Promise<ActionResult>;
|
|
19
|
+
export declare function openFileInIDE(filePath: string, ide?: IDE): Promise<ActionResult>;
|
|
20
|
+
export declare function openMCPSettings(env?: EnvironmentConfig): Promise<ActionResult>;
|
|
21
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/cli/app/actions.ts"],"names":[],"mappings":"AAAA;;;;;4BAK4B;AAO5B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,KAAK,iBAAiB,EAAwB,MAAM,2BAA2B,CAAC;AAEzF,MAAM,MAAM,GAAG,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;AAElE,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAwCD,wBAAsB,aAAa,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAS7F;AAED,wBAAsB,YAAY,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,CAS9E;AAED,wBAAsB,UAAU,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAUjD;AAED,wBAAsB,eAAe,IAAI,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,CAG3D;AAoBD,wBAAsB,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,YAAY,CAAC,CAMtF;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,YAAY,CAAC,CAEhF;AAED,wBAAsB,eAAe,CACnC,GAAG,GAAE,iBAA0C,GAC9C,OAAO,CAAC,YAAY,CAAC,CAiBvB"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**************************
|
|
2
|
+
* CLI App Actions
|
|
3
|
+
*
|
|
4
|
+
* Handlers for opening projects in browser, Studio, and IDE.
|
|
5
|
+
* Uses cross-runtime platform abstractions for filesystem and command execution.
|
|
6
|
+
**************************/
|
|
7
|
+
import { openBrowser } from "../auth/browser.js";
|
|
8
|
+
import { createFileSystem } from "../../src/platform/index.js";
|
|
9
|
+
import { getOsType, runCommand } from "../../src/platform/index.js";
|
|
10
|
+
import { formatError } from "../utils/string.js";
|
|
11
|
+
import { join } from "../../src/platform/compat/path/index.js";
|
|
12
|
+
import { getEnvironmentConfig } from "../../src/config/index.js";
|
|
13
|
+
const IDE_COMMANDS = {
|
|
14
|
+
cursor: "cursor",
|
|
15
|
+
code: "code",
|
|
16
|
+
zed: "zed",
|
|
17
|
+
idea: "idea",
|
|
18
|
+
webstorm: "webstorm",
|
|
19
|
+
};
|
|
20
|
+
const IDE_NAMES = {
|
|
21
|
+
cursor: "Cursor",
|
|
22
|
+
code: "VS Code",
|
|
23
|
+
zed: "Zed",
|
|
24
|
+
idea: "IntelliJ IDEA",
|
|
25
|
+
webstorm: "WebStorm",
|
|
26
|
+
};
|
|
27
|
+
const IDE_DETECTION_ORDER = ["cursor", "code", "zed", "idea", "webstorm"];
|
|
28
|
+
async function commandExists(cmd) {
|
|
29
|
+
const whichCmd = getOsType() === "windows" ? "where" : "which";
|
|
30
|
+
try {
|
|
31
|
+
const result = await runCommand(whichCmd, { args: [cmd] });
|
|
32
|
+
return result.success;
|
|
33
|
+
}
|
|
34
|
+
catch {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
async function runCommandLocal(cmd, args) {
|
|
39
|
+
try {
|
|
40
|
+
const result = await runCommand(cmd, { args });
|
|
41
|
+
return result.success;
|
|
42
|
+
}
|
|
43
|
+
catch {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export async function openInBrowser(project, port) {
|
|
48
|
+
const url = `http://${project.slug}.veryfront.me:${port}`;
|
|
49
|
+
try {
|
|
50
|
+
await openBrowser(url);
|
|
51
|
+
return { success: true, message: `Opened ${url}` };
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
return { success: false, message: `Failed to open browser: ${formatError(error)}` };
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export async function openInStudio(project) {
|
|
58
|
+
const url = `https://veryfront.com/projects/${project.slug}`;
|
|
59
|
+
try {
|
|
60
|
+
await openBrowser(url);
|
|
61
|
+
return { success: true, message: `Opened Studio for ${project.slug}` };
|
|
62
|
+
}
|
|
63
|
+
catch (error) {
|
|
64
|
+
return { success: false, message: `Failed to open Studio: ${formatError(error)}` };
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
export async function detectIDEs() {
|
|
68
|
+
const available = [];
|
|
69
|
+
for (const ide of IDE_DETECTION_ORDER) {
|
|
70
|
+
if (await commandExists(IDE_COMMANDS[ide])) {
|
|
71
|
+
available.push(ide);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return available;
|
|
75
|
+
}
|
|
76
|
+
export async function getPreferredIDE() {
|
|
77
|
+
const ides = await detectIDEs();
|
|
78
|
+
return ides[0] ?? null;
|
|
79
|
+
}
|
|
80
|
+
async function openPathInIDE(path, ide) {
|
|
81
|
+
const targetIDE = ide ?? (await getPreferredIDE());
|
|
82
|
+
if (!targetIDE) {
|
|
83
|
+
return {
|
|
84
|
+
success: false,
|
|
85
|
+
message: "No supported IDE found. Install VS Code, Cursor, or Zed.",
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
const cmd = IDE_COMMANDS[targetIDE];
|
|
89
|
+
const name = IDE_NAMES[targetIDE];
|
|
90
|
+
const success = await runCommandLocal(cmd, [path]);
|
|
91
|
+
return success
|
|
92
|
+
? { success: true, message: `Opened in ${name}` }
|
|
93
|
+
: { success: false, message: `Failed to open ${name}` };
|
|
94
|
+
}
|
|
95
|
+
export async function openInIDE(project, ide) {
|
|
96
|
+
const result = await openPathInIDE(project.path, ide);
|
|
97
|
+
if (!result.success)
|
|
98
|
+
return result;
|
|
99
|
+
const ideName = result.message?.split(" in ")[1];
|
|
100
|
+
return { success: true, message: `Opened ${project.slug} in ${ideName}` };
|
|
101
|
+
}
|
|
102
|
+
export function openFileInIDE(filePath, ide) {
|
|
103
|
+
return openPathInIDE(filePath, ide);
|
|
104
|
+
}
|
|
105
|
+
export async function openMCPSettings(env = getEnvironmentConfig()) {
|
|
106
|
+
const home = env.homeDir ?? "";
|
|
107
|
+
const claudeDir = join(home, ".claude");
|
|
108
|
+
const settingsPath = join(claudeDir, "settings.json");
|
|
109
|
+
const fs = createFileSystem();
|
|
110
|
+
try {
|
|
111
|
+
await fs.mkdir(claudeDir, { recursive: true });
|
|
112
|
+
}
|
|
113
|
+
catch {
|
|
114
|
+
// Already exists
|
|
115
|
+
}
|
|
116
|
+
if (!(await fs.exists(settingsPath))) {
|
|
117
|
+
await fs.writeTextFile(settingsPath, JSON.stringify({ mcpServers: {} }, null, 2));
|
|
118
|
+
}
|
|
119
|
+
return openFileInIDE(settingsPath);
|
|
120
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/****
|
|
2
|
+
* Inline Text Input Component
|
|
3
|
+
*
|
|
4
|
+
* Renders an input prompt at the bottom of the TUI that stays inline
|
|
5
|
+
* without exiting alternate screen mode.
|
|
6
|
+
*/
|
|
7
|
+
import type { InputState, LogEntry } from "../state.js";
|
|
8
|
+
export interface InlineInputOptions {
|
|
9
|
+
maxWidth?: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Render the inline input prompt
|
|
13
|
+
*/
|
|
14
|
+
export declare function renderInput(input: InputState, _options?: InlineInputOptions): string;
|
|
15
|
+
export interface RenderLogsOptions {
|
|
16
|
+
maxLines?: number;
|
|
17
|
+
maxWidth?: number;
|
|
18
|
+
scroll?: number;
|
|
19
|
+
expanded?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Render the logs area with optional scrolling
|
|
23
|
+
*/
|
|
24
|
+
export declare function renderLogs(logs: LogEntry[], options?: RenderLogsOptions): string;
|
|
25
|
+
/**
|
|
26
|
+
* Handle input key press
|
|
27
|
+
* Returns the new value and cursor position, or null if the key should end input
|
|
28
|
+
*/
|
|
29
|
+
export declare function handleInputKey(key: string, value: string, cursorPos: number): {
|
|
30
|
+
value: string;
|
|
31
|
+
cursorPos: number;
|
|
32
|
+
} | {
|
|
33
|
+
action: "submit" | "cancel";
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=inline-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-input.d.ts","sourceRoot":"","sources":["../../../../src/cli/app/components/inline-input.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,UAAU,EACjB,QAAQ,GAAE,kBAAuB,GAChC,MAAM,CAeR;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,GAAE,iBAAsB,GAAG,MAAM,CAuEpF;AAwED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,GAChB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAA;CAAE,CAiDxE"}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/****
|
|
2
|
+
* Inline Text Input Component
|
|
3
|
+
*
|
|
4
|
+
* Renders an input prompt at the bottom of the TUI that stays inline
|
|
5
|
+
* without exiting alternate screen mode.
|
|
6
|
+
*/
|
|
7
|
+
import { brand, dim, muted } from "../../ui/colors.js";
|
|
8
|
+
/**
|
|
9
|
+
* Render the inline input prompt
|
|
10
|
+
*/
|
|
11
|
+
export function renderInput(input, _options = {}) {
|
|
12
|
+
if (!input.active)
|
|
13
|
+
return "";
|
|
14
|
+
const prompt = ` ${brand(">")} ${input.prompt}: `;
|
|
15
|
+
const beforeCursor = input.value.slice(0, input.cursorPos);
|
|
16
|
+
const cursorChar = input.value[input.cursorPos] ?? " ";
|
|
17
|
+
const afterCursor = input.value.slice(input.cursorPos + 1);
|
|
18
|
+
// Cursor is rendered as inverse video
|
|
19
|
+
const cursor = `\x1b[7m${cursorChar}\x1b[27m`;
|
|
20
|
+
const inputLine = `${prompt}${beforeCursor}${cursor}${afterCursor}`;
|
|
21
|
+
const hintLine = ` ${dim("Enter")} ${muted("to submit")} ${dim("Esc")} ${muted("to cancel")}`;
|
|
22
|
+
return `${inputLine}\n${hintLine}`;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Render the logs area with optional scrolling
|
|
26
|
+
*/
|
|
27
|
+
export function renderLogs(logs, options = {}) {
|
|
28
|
+
if (logs.length === 0)
|
|
29
|
+
return "";
|
|
30
|
+
const { maxLines = 5, maxWidth = 80, scroll = 0, expanded = false } = options;
|
|
31
|
+
const visibleLines = expanded ? Math.max(maxLines, 15) : maxLines;
|
|
32
|
+
const end = logs.length - scroll;
|
|
33
|
+
const start = Math.max(0, end - visibleLines);
|
|
34
|
+
const visibleLogs = logs.slice(start, end);
|
|
35
|
+
const lines = [];
|
|
36
|
+
for (const log of visibleLogs) {
|
|
37
|
+
const time = formatTime(log.time);
|
|
38
|
+
const levelColor = getLevelColor(log.level);
|
|
39
|
+
const levelPrefix = getLevelPrefix(log.level);
|
|
40
|
+
if (!expanded) {
|
|
41
|
+
const maxMsgLen = maxWidth - 15;
|
|
42
|
+
const msg = log.message.length > maxMsgLen
|
|
43
|
+
? `${log.message.slice(0, maxMsgLen - 3)}...`
|
|
44
|
+
: log.message;
|
|
45
|
+
lines.push(` ${dim(time)} ${levelColor(levelPrefix)} ${msg}`);
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
const meta = log.meta;
|
|
49
|
+
if (meta?.method) {
|
|
50
|
+
const status = meta.status || 200;
|
|
51
|
+
const statusColor = getStatusColor(status);
|
|
52
|
+
const methodStr = (meta.method || "GET").padEnd(7);
|
|
53
|
+
const pathStr = meta.path || "/";
|
|
54
|
+
const statusStr = String(status);
|
|
55
|
+
const durationStr = `${meta.durationMs || 0}ms`.padStart(6);
|
|
56
|
+
lines.push(` ${dim(time)} ${levelColor(levelPrefix)} ${methodStr}${pathStr}`);
|
|
57
|
+
const projectInfo = [];
|
|
58
|
+
if (meta.project)
|
|
59
|
+
projectInfo.push(brand(meta.project));
|
|
60
|
+
if (meta.env)
|
|
61
|
+
projectInfo.push(dim(meta.env));
|
|
62
|
+
if (meta.releaseId)
|
|
63
|
+
projectInfo.push(dim(`#${meta.releaseId.slice(0, 8)}`));
|
|
64
|
+
lines.push(` ${"".padEnd(12)}${statusColor(statusStr)} ${dim(durationStr)}${projectInfo.length ? ` ${projectInfo.join(" ")}` : ""}`);
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
const prefix = ` ${dim(time)} ${levelColor(levelPrefix)} `;
|
|
68
|
+
const msgLines = wrapText(log.message, maxWidth - 15);
|
|
69
|
+
lines.push(`${prefix}${msgLines[0] || ""}`);
|
|
70
|
+
for (let i = 1; i < msgLines.length; i++) {
|
|
71
|
+
lines.push(` ${"".padEnd(12)}${msgLines[i]}`);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
if (expanded && logs.length > visibleLines) {
|
|
75
|
+
const scrollHint = [];
|
|
76
|
+
if (start > 0)
|
|
77
|
+
scrollHint.push("↑");
|
|
78
|
+
if (scroll > 0)
|
|
79
|
+
scrollHint.push("↓");
|
|
80
|
+
if (scrollHint.length) {
|
|
81
|
+
lines.push(` ${dim(`[${scrollHint.join(" ")}] ${logs.length} total`)}`);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return lines.join("\n");
|
|
85
|
+
}
|
|
86
|
+
function wrapText(text, maxWidth) {
|
|
87
|
+
if (text.length <= maxWidth)
|
|
88
|
+
return [text];
|
|
89
|
+
const lines = [];
|
|
90
|
+
let remaining = text;
|
|
91
|
+
while (remaining.length > maxWidth) {
|
|
92
|
+
let breakPoint = remaining.lastIndexOf(" ", maxWidth);
|
|
93
|
+
if (breakPoint <= 0)
|
|
94
|
+
breakPoint = maxWidth;
|
|
95
|
+
lines.push(remaining.slice(0, breakPoint));
|
|
96
|
+
remaining = remaining.slice(breakPoint).trimStart();
|
|
97
|
+
}
|
|
98
|
+
if (remaining)
|
|
99
|
+
lines.push(remaining);
|
|
100
|
+
return lines;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Format time as HH:MM:SS
|
|
104
|
+
*/
|
|
105
|
+
function formatTime(date) {
|
|
106
|
+
const h = String(date.getHours()).padStart(2, "0");
|
|
107
|
+
const m = String(date.getMinutes()).padStart(2, "0");
|
|
108
|
+
const s = String(date.getSeconds()).padStart(2, "0");
|
|
109
|
+
return `${h}:${m}:${s}`;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Get color function for log level
|
|
113
|
+
*/
|
|
114
|
+
function getLevelColor(level) {
|
|
115
|
+
switch (level) {
|
|
116
|
+
case "error":
|
|
117
|
+
return (s) => `\x1b[31m${s}\x1b[0m`; // red
|
|
118
|
+
case "warn":
|
|
119
|
+
return (s) => `\x1b[33m${s}\x1b[0m`; // yellow
|
|
120
|
+
case "info":
|
|
121
|
+
return (s) => `\x1b[36m${s}\x1b[0m`; // cyan
|
|
122
|
+
case "debug":
|
|
123
|
+
return dim;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Get color function for HTTP status code
|
|
128
|
+
*/
|
|
129
|
+
function getStatusColor(status) {
|
|
130
|
+
if (status >= 500)
|
|
131
|
+
return (s) => `\x1b[31m${s}\x1b[0m`; // red
|
|
132
|
+
if (status >= 400)
|
|
133
|
+
return (s) => `\x1b[33m${s}\x1b[0m`; // yellow
|
|
134
|
+
if (status >= 300)
|
|
135
|
+
return (s) => `\x1b[36m${s}\x1b[0m`; // cyan
|
|
136
|
+
return (s) => `\x1b[32m${s}\x1b[0m`; // green
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Get prefix for log level
|
|
140
|
+
*/
|
|
141
|
+
function getLevelPrefix(level) {
|
|
142
|
+
switch (level) {
|
|
143
|
+
case "error":
|
|
144
|
+
return "ERR";
|
|
145
|
+
case "warn":
|
|
146
|
+
return "WRN";
|
|
147
|
+
case "info":
|
|
148
|
+
return "INF";
|
|
149
|
+
case "debug":
|
|
150
|
+
return "DBG";
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Handle input key press
|
|
155
|
+
* Returns the new value and cursor position, or null if the key should end input
|
|
156
|
+
*/
|
|
157
|
+
export function handleInputKey(key, value, cursorPos) {
|
|
158
|
+
if (key === "\r" || key === "\n")
|
|
159
|
+
return { action: "submit" };
|
|
160
|
+
if (key === "\x1b" || key === "\x03")
|
|
161
|
+
return { action: "cancel" };
|
|
162
|
+
if (key === "\x7f" || key === "\b") {
|
|
163
|
+
if (cursorPos === 0)
|
|
164
|
+
return { value, cursorPos };
|
|
165
|
+
return {
|
|
166
|
+
value: value.slice(0, cursorPos - 1) + value.slice(cursorPos),
|
|
167
|
+
cursorPos: cursorPos - 1,
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
if (key === "\x1b[3~") {
|
|
171
|
+
if (cursorPos >= value.length)
|
|
172
|
+
return { value, cursorPos };
|
|
173
|
+
return {
|
|
174
|
+
value: value.slice(0, cursorPos) + value.slice(cursorPos + 1),
|
|
175
|
+
cursorPos,
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
if (key === "\x1b[D")
|
|
179
|
+
return { value, cursorPos: Math.max(0, cursorPos - 1) };
|
|
180
|
+
if (key === "\x1b[C")
|
|
181
|
+
return { value, cursorPos: Math.min(value.length, cursorPos + 1) };
|
|
182
|
+
if (key === "\x01" || key === "\x1b[H")
|
|
183
|
+
return { value, cursorPos: 0 };
|
|
184
|
+
if (key === "\x05" || key === "\x1b[F")
|
|
185
|
+
return { value, cursorPos: value.length };
|
|
186
|
+
if (key === "\x15")
|
|
187
|
+
return { value: "", cursorPos: 0 };
|
|
188
|
+
if (key === "\x17") {
|
|
189
|
+
if (cursorPos === 0)
|
|
190
|
+
return { value, cursorPos };
|
|
191
|
+
let newPos = cursorPos - 1;
|
|
192
|
+
while (newPos > 0 && value[newPos] === " ")
|
|
193
|
+
newPos--;
|
|
194
|
+
while (newPos > 0 && value[newPos - 1] !== " ")
|
|
195
|
+
newPos--;
|
|
196
|
+
return {
|
|
197
|
+
value: value.slice(0, newPos) + value.slice(cursorPos),
|
|
198
|
+
cursorPos: newPos,
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
if (key.length === 1 && key >= " " && key <= "~") {
|
|
202
|
+
return {
|
|
203
|
+
value: value.slice(0, cursorPos) + key + value.slice(cursorPos),
|
|
204
|
+
cursorPos: cursorPos + 1,
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
return { value, cursorPos };
|
|
208
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interactive List Select Component
|
|
3
|
+
*
|
|
4
|
+
* Keyboard-navigable list with selection support.
|
|
5
|
+
* Supports arrow keys, j/k vim bindings, and number shortcuts.
|
|
6
|
+
*/
|
|
7
|
+
export interface ListItem<T = unknown> {
|
|
8
|
+
/** Unique identifier */
|
|
9
|
+
id: string;
|
|
10
|
+
/** Display label */
|
|
11
|
+
label: string;
|
|
12
|
+
/** Optional description */
|
|
13
|
+
description?: string;
|
|
14
|
+
/** Optional path or metadata */
|
|
15
|
+
meta?: string;
|
|
16
|
+
/** Associated data */
|
|
17
|
+
data?: T;
|
|
18
|
+
}
|
|
19
|
+
export interface ListSelectOptions {
|
|
20
|
+
/** Maximum width for the list */
|
|
21
|
+
maxWidth?: number;
|
|
22
|
+
/** Number of visible items (for scrolling) */
|
|
23
|
+
visibleCount?: number;
|
|
24
|
+
/** Show number shortcuts (1-9) */
|
|
25
|
+
showNumbers?: boolean;
|
|
26
|
+
/** Offset for number shortcuts (e.g., 1 means start at [2]) */
|
|
27
|
+
numberOffset?: number;
|
|
28
|
+
/** Empty state message */
|
|
29
|
+
emptyMessage?: string;
|
|
30
|
+
/** Show selection cursor (default true). Set false for inactive sections */
|
|
31
|
+
showSelection?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface ListSelectState<T = unknown> {
|
|
34
|
+
/** All items in the list */
|
|
35
|
+
items: ListItem<T>[];
|
|
36
|
+
/** Currently selected index */
|
|
37
|
+
selectedIndex: number;
|
|
38
|
+
/** Scroll offset for long lists */
|
|
39
|
+
scrollOffset: number;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Create initial list state
|
|
43
|
+
*/
|
|
44
|
+
export declare function createListState<T>(items: ListItem<T>[]): ListSelectState<T>;
|
|
45
|
+
/**
|
|
46
|
+
* Move selection up
|
|
47
|
+
*/
|
|
48
|
+
export declare function moveUp<T>(state: ListSelectState<T>): ListSelectState<T>;
|
|
49
|
+
/**
|
|
50
|
+
* Move selection down
|
|
51
|
+
*/
|
|
52
|
+
export declare function moveDown<T>(state: ListSelectState<T>, visibleCount?: number): ListSelectState<T>;
|
|
53
|
+
/**
|
|
54
|
+
* Select item by number (1-9)
|
|
55
|
+
*/
|
|
56
|
+
export declare function selectByNumber<T>(state: ListSelectState<T>, num: number): ListSelectState<T>;
|
|
57
|
+
/**
|
|
58
|
+
* Get currently selected item
|
|
59
|
+
*/
|
|
60
|
+
export declare function getSelectedItem<T>(state: ListSelectState<T>): ListItem<T> | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Render the list as a string
|
|
63
|
+
*/
|
|
64
|
+
export declare function renderList<T>(state: ListSelectState<T>, options?: ListSelectOptions): string;
|
|
65
|
+
/**
|
|
66
|
+
* Create a list section with title
|
|
67
|
+
*/
|
|
68
|
+
export declare function listSection<T>(title: string, state: ListSelectState<T>, options?: ListSelectOptions): string;
|
|
69
|
+
//# sourceMappingURL=list-select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-select.d.ts","sourceRoot":"","sources":["../../../../src/cli/app/components/list-select.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,MAAM,WAAW,QAAQ,CAAC,CAAC,GAAG,OAAO;IACnC,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gCAAgC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,IAAI,CAAC,EAAE,CAAC,CAAC;CACV;AAED,MAAM,WAAW,iBAAiB;IAChC,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kCAAkC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,eAAe,CAAC,CAAC,GA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
|
4
|
+
* Keyboard-navigable list with selection support.
|
|
5
|
+
* Supports arrow keys, j/k vim bindings, and number shortcuts.
|
|
6
|
+
*/
|
|
7
|
+
import { brand, dim } from "../../ui/colors.js";
|
|
8
|
+
import { truncate } from "../../ui/layout.js";
|
|
9
|
+
/**
|
|
10
|
+
* Create initial list state
|
|
11
|
+
*/
|
|
12
|
+
export function createListState(items) {
|
|
13
|
+
return { items, selectedIndex: 0, scrollOffset: 0 };
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Move selection up
|
|
17
|
+
*/
|
|
18
|
+
export function moveUp(state) {
|
|
19
|
+
const { items, selectedIndex, scrollOffset } = state;
|
|
20
|
+
if (items.length === 0)
|
|
21
|
+
return state;
|
|
22
|
+
const newIndex = selectedIndex > 0 ? selectedIndex - 1 : items.length - 1;
|
|
23
|
+
const newScrollOffset = newIndex < scrollOffset ? newIndex : scrollOffset;
|
|
24
|
+
return { ...state, selectedIndex: newIndex, scrollOffset: newScrollOffset };
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Move selection down
|
|
28
|
+
*/
|
|
29
|
+
export function moveDown(state, visibleCount = 10) {
|
|
30
|
+
const { items, selectedIndex, scrollOffset } = state;
|
|
31
|
+
if (items.length === 0)
|
|
32
|
+
return state;
|
|
33
|
+
const newIndex = selectedIndex < items.length - 1 ? selectedIndex + 1 : 0;
|
|
34
|
+
let newScrollOffset = scrollOffset;
|
|
35
|
+
if (newIndex === 0) {
|
|
36
|
+
newScrollOffset = 0;
|
|
37
|
+
}
|
|
38
|
+
else if (newIndex >= scrollOffset + visibleCount) {
|
|
39
|
+
newScrollOffset = newIndex - visibleCount + 1;
|
|
40
|
+
}
|
|
41
|
+
return { ...state, selectedIndex: newIndex, scrollOffset: newScrollOffset };
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Select item by number (1-9)
|
|
45
|
+
*/
|
|
46
|
+
export function selectByNumber(state, num) {
|
|
47
|
+
const index = num - 1;
|
|
48
|
+
if (index < 0 || index >= state.items.length)
|
|
49
|
+
return state;
|
|
50
|
+
return { ...state, selectedIndex: index };
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Get currently selected item
|
|
54
|
+
*/
|
|
55
|
+
export function getSelectedItem(state) {
|
|
56
|
+
return state.items[state.selectedIndex];
|
|
57
|
+
}
|
|
58
|
+
function getShortcut(displayNum) {
|
|
59
|
+
if (displayNum <= 0 || displayNum > 35)
|
|
60
|
+
return undefined;
|
|
61
|
+
if (displayNum <= 9)
|
|
62
|
+
return String(displayNum);
|
|
63
|
+
return String.fromCharCode(96 + displayNum - 9); // 10='a', 11='b', etc.
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Render the list as a string
|
|
67
|
+
*/
|
|
68
|
+
export function renderList(state, options = {}) {
|
|
69
|
+
const { maxWidth = 60, visibleCount = 10, showNumbers = true, numberOffset = 0, emptyMessage = "No items", showSelection = true, } = options;
|
|
70
|
+
if (state.items.length === 0)
|
|
71
|
+
return ` ${dim(emptyMessage)}`;
|
|
72
|
+
const start = state.scrollOffset;
|
|
73
|
+
const end = Math.min(start + visibleCount, state.items.length);
|
|
74
|
+
const visibleItems = state.items.slice(start, end);
|
|
75
|
+
const numberWidth = showNumbers ? 4 : 0; // " [1] "
|
|
76
|
+
const cursorWidth = 2; // "› " or " "
|
|
77
|
+
const prefixWidth = numberWidth + cursorWidth;
|
|
78
|
+
const lines = [];
|
|
79
|
+
for (let i = 0; i < visibleItems.length; i++) {
|
|
80
|
+
const item = visibleItems[i];
|
|
81
|
+
if (!item)
|
|
82
|
+
continue;
|
|
83
|
+
const actualIndex = start + i;
|
|
84
|
+
const isSelected = showSelection && actualIndex === state.selectedIndex;
|
|
85
|
+
const displayNum = actualIndex + 1 + numberOffset;
|
|
86
|
+
const parts = [];
|
|
87
|
+
parts.push(isSelected ? brand("›") : " ", " ");
|
|
88
|
+
if (showNumbers) {
|
|
89
|
+
const shortcut = getShortcut(displayNum);
|
|
90
|
+
if (shortcut) {
|
|
91
|
+
const token = `[${shortcut}]`;
|
|
92
|
+
parts.push(isSelected ? brand(token) : dim(token), " ");
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
parts.push(" ");
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
const availableForContent = maxWidth - prefixWidth;
|
|
99
|
+
const labelText = item.label;
|
|
100
|
+
if (!item.meta) {
|
|
101
|
+
const label = truncate(labelText, availableForContent);
|
|
102
|
+
parts.push(isSelected ? label : dim(label));
|
|
103
|
+
lines.push(parts.join(""));
|
|
104
|
+
if (isSelected && item.description) {
|
|
105
|
+
lines.push(` ${dim(truncate(item.description, maxWidth - 5))}`);
|
|
106
|
+
}
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
const metaText = item.meta;
|
|
110
|
+
const totalNeeded = labelText.length + 1 + metaText.length; // 1 for space
|
|
111
|
+
if (totalNeeded <= availableForContent) {
|
|
112
|
+
parts.push(isSelected ? labelText : dim(labelText));
|
|
113
|
+
const padding = availableForContent - labelText.length - metaText.length;
|
|
114
|
+
parts.push(" ".repeat(Math.max(1, padding)), dim(metaText));
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
const labelMax = Math.min(labelText.length, Math.floor(availableForContent * 0.4));
|
|
118
|
+
const metaMax = availableForContent - labelMax - 1;
|
|
119
|
+
const label = truncate(labelText, labelMax);
|
|
120
|
+
parts.push(isSelected ? label : dim(label));
|
|
121
|
+
parts.push(" ", dim(truncate(metaText, metaMax)));
|
|
122
|
+
}
|
|
123
|
+
lines.push(parts.join(""));
|
|
124
|
+
if (isSelected && item.description) {
|
|
125
|
+
lines.push(` ${dim(truncate(item.description, maxWidth - 5))}`);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
if (start > 0)
|
|
129
|
+
lines.unshift(` ${dim("↑")} ${dim("more above")}`);
|
|
130
|
+
if (end < state.items.length)
|
|
131
|
+
lines.push(` ${dim("↓")} ${dim("more below")}`);
|
|
132
|
+
return lines.join("\n");
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Create a list section with title
|
|
136
|
+
*/
|
|
137
|
+
export function listSection(title, state, options = {}) {
|
|
138
|
+
const header = ` ${dim(title)} ${dim(`(${state.items.length})`)}`;
|
|
139
|
+
return `${header}\n${renderList(state, options)}`;
|
|
140
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slug-words.d.ts","sourceRoot":"","sources":["../../../../src/cli/app/data/slug-words.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,UA6EtB,CAAC;AAEF,eAAO,MAAM,KAAK,UAwFjB,CAAC"}
|