veryfront 0.0.84 → 0.0.88
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 +18 -44
- package/esm/deno.d.ts +0 -1
- package/esm/deno.js +8 -9
- package/esm/deps/esm.sh/react-dom@19.1.1/client.d.ts +2 -0
- package/esm/deps/esm.sh/react-dom@19.1.1/client.d.ts.map +1 -0
- package/esm/deps/esm.sh/react-dom@19.1.1/client.js +5 -0
- package/esm/deps/esm.sh/react-dom@19.1.1/server.d.ts +2 -0
- package/esm/deps/esm.sh/react-dom@19.1.1/server.d.ts.map +1 -0
- package/esm/deps/esm.sh/react-dom@19.1.1/server.js +5 -0
- package/esm/deps/esm.sh/react@19.1.1/jsx-runtime.d.ts +2 -0
- package/esm/deps/esm.sh/react@19.1.1/jsx-runtime.d.ts.map +1 -0
- package/esm/deps/esm.sh/react@19.1.1/jsx-runtime.js +3 -0
- package/esm/deps/esm.sh/react@19.1.1.d.ts +2 -0
- package/esm/deps/esm.sh/react@19.1.1.d.ts.map +1 -0
- package/esm/deps/esm.sh/react@19.1.1.js +3 -0
- package/esm/deps/esm.sh/scheduler@^0.26.0.d.ts +2 -0
- package/esm/deps/esm.sh/scheduler@^0.26.0.d.ts.map +1 -0
- package/esm/deps/esm.sh/scheduler@^0.26.0.js +3 -0
- package/esm/proxy/main.d.ts +2 -0
- package/esm/proxy/main.d.ts.map +1 -0
- package/esm/proxy/main.js +400 -0
- package/esm/src/agent/react/use-agent.js +1 -1
- package/esm/src/agent/react/use-chat/use-chat.js +1 -1
- package/esm/src/agent/react/use-completion.js +1 -1
- package/esm/src/agent/react/use-streaming.js +1 -1
- package/esm/src/agent/react/use-voice-input.js +1 -1
- package/esm/src/cli/app/components/list-select.js +2 -2
- package/esm/src/cli/app/index.d.ts +1 -1
- package/esm/src/cli/app/index.d.ts.map +1 -1
- package/esm/src/cli/app/index.js +26 -33
- package/esm/src/cli/app/state.d.ts +3 -0
- package/esm/src/cli/app/state.d.ts.map +1 -1
- package/esm/src/cli/app/state.js +4 -0
- package/esm/src/cli/app/views/dashboard.d.ts.map +1 -1
- package/esm/src/cli/app/views/dashboard.js +45 -57
- package/esm/src/cli/app/views/startup.d.ts +39 -0
- package/esm/src/cli/app/views/startup.d.ts.map +1 -0
- package/esm/src/cli/app/views/startup.js +103 -0
- package/esm/src/cli/commands/init/config-generator.js +1 -1
- package/esm/src/cli/index/arg-parser.d.ts.map +1 -1
- package/esm/src/cli/index/arg-parser.js +1 -0
- package/esm/src/cli/index/command-router.d.ts.map +1 -1
- package/esm/src/cli/index/command-router.js +54 -39
- package/esm/src/cli/index/types.d.ts +4 -0
- package/esm/src/cli/index/types.d.ts.map +1 -1
- package/esm/src/cli/mcp/advanced-tools.d.ts +2 -2
- package/esm/src/cli/ui/colors.d.ts +8 -0
- package/esm/src/cli/ui/colors.d.ts.map +1 -1
- package/esm/src/cli/ui/colors.js +34 -0
- package/esm/src/cli/ui/dot-matrix.d.ts +8 -0
- package/esm/src/cli/ui/dot-matrix.d.ts.map +1 -1
- package/esm/src/cli/ui/dot-matrix.js +67 -2
- package/esm/src/config/loader.d.ts.map +1 -1
- package/esm/src/config/loader.js +5 -4
- package/esm/src/html/utils.js +2 -2
- package/esm/src/modules/component-registry/registry.d.ts +1 -1
- package/esm/src/modules/component-registry/registry.d.ts.map +1 -1
- package/esm/src/modules/import-map/default-import-map.d.ts +1 -11
- package/esm/src/modules/import-map/default-import-map.d.ts.map +1 -1
- package/esm/src/modules/import-map/default-import-map.js +3 -20
- package/esm/src/modules/import-map/loader.d.ts.map +1 -1
- package/esm/src/modules/import-map/loader.js +7 -22
- package/esm/src/modules/import-map/resolver.d.ts.map +1 -1
- package/esm/src/modules/import-map/resolver.js +12 -8
- package/esm/src/modules/react-loader/component-loader.d.ts +1 -1
- package/esm/src/modules/react-loader/component-loader.d.ts.map +1 -1
- package/esm/src/modules/react-loader/component-loader.js +2 -0
- package/esm/src/modules/react-loader/extract-component.d.ts +1 -1
- package/esm/src/modules/react-loader/extract-component.d.ts.map +1 -1
- package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts +2 -7
- package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts.map +1 -1
- package/esm/src/modules/react-loader/ssr-module-loader/loader.js +68 -38
- package/esm/src/modules/react-loader/ssr-module-loader/types.d.ts +2 -0
- package/esm/src/modules/react-loader/ssr-module-loader/types.d.ts.map +1 -1
- package/esm/src/modules/react-loader/types.d.ts +3 -1
- package/esm/src/modules/react-loader/types.d.ts.map +1 -1
- package/esm/src/modules/react-loader/unified-loader.d.ts.map +1 -1
- package/esm/src/modules/react-loader/unified-loader.js +7 -4
- package/esm/src/modules/server/module-batch-handler.d.ts +2 -0
- package/esm/src/modules/server/module-batch-handler.d.ts.map +1 -1
- package/esm/src/modules/server/module-batch-handler.js +3 -1
- package/esm/src/modules/server/module-server.d.ts +2 -0
- package/esm/src/modules/server/module-server.d.ts.map +1 -1
- package/esm/src/modules/server/module-server.js +4 -2
- package/esm/src/modules/server/ssr-import-rewriter.d.ts.map +1 -1
- package/esm/src/modules/server/ssr-import-rewriter.js +9 -17
- package/esm/src/react/compat/hooks-adapter.d.ts +1 -1
- package/esm/src/react/compat/hooks-adapter.d.ts.map +1 -1
- package/esm/src/react/compat/hooks-adapter.js +1 -1
- package/esm/src/react/compat/ssr-adapter/response-builder.d.ts +1 -1
- package/esm/src/react/compat/ssr-adapter/response-builder.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/server-loader.d.ts +5 -5
- package/esm/src/react/compat/ssr-adapter/server-loader.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/server-loader.js +2 -2
- package/esm/src/react/compat/ssr-adapter/stream-renderer.d.ts +1 -1
- package/esm/src/react/compat/ssr-adapter/stream-renderer.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/string-renderer.d.ts +1 -1
- package/esm/src/react/compat/ssr-adapter/string-renderer.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/string-renderer.js +1 -1
- package/esm/src/react/compat/version-detector/feature-detector.js +1 -1
- package/esm/src/react/components/AppWrapper.d.ts +1 -1
- package/esm/src/react/components/AppWrapper.d.ts.map +1 -1
- package/esm/src/react/components/AppWrapper.js +1 -1
- package/esm/src/react/components/Head.d.ts +1 -1
- package/esm/src/react/components/Head.d.ts.map +1 -1
- package/esm/src/react/components/Head.js +7 -3
- package/esm/src/react/components/LayoutComponent.d.ts +1 -1
- package/esm/src/react/components/LayoutComponent.d.ts.map +1 -1
- package/esm/src/react/components/LayoutComponent.js +1 -1
- package/esm/src/react/components/Link.d.ts +1 -1
- package/esm/src/react/components/Link.d.ts.map +1 -1
- package/esm/src/react/components/Link.js +1 -1
- package/esm/src/react/components/MDXProvider.d.ts +1 -1
- package/esm/src/react/components/MDXProvider.d.ts.map +1 -1
- package/esm/src/react/components/MDXProvider.js +2 -2
- package/esm/src/react/components/ProviderComponent.d.ts +1 -1
- package/esm/src/react/components/ProviderComponent.d.ts.map +1 -1
- package/esm/src/react/components/ProviderComponent.js +1 -1
- package/esm/src/react/components/ai/agent-card.d.ts +2 -2
- package/esm/src/react/components/ai/agent-card.d.ts.map +1 -1
- package/esm/src/react/components/ai/agent-card.js +1 -1
- package/esm/src/react/components/ai/chat/components/animations.d.ts +1 -1
- package/esm/src/react/components/ai/chat/components/animations.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/components/animations.js +1 -1
- package/esm/src/react/components/ai/chat/components/empty-state.d.ts +1 -1
- package/esm/src/react/components/ai/chat/components/empty-state.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/components/empty-state.js +1 -1
- package/esm/src/react/components/ai/chat/components/message-actions.d.ts +1 -1
- package/esm/src/react/components/ai/chat/components/message-actions.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/components/message-actions.js +1 -1
- package/esm/src/react/components/ai/chat/components/reasoning.d.ts +1 -1
- package/esm/src/react/components/ai/chat/components/reasoning.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/components/reasoning.js +1 -1
- package/esm/src/react/components/ai/chat/components/tool-ui.d.ts +1 -1
- package/esm/src/react/components/ai/chat/components/tool-ui.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/components/tool-ui.js +1 -1
- package/esm/src/react/components/ai/chat/composition/api.d.ts +5 -4
- package/esm/src/react/components/ai/chat/composition/api.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/composition/api.js +1 -1
- package/esm/src/react/components/ai/chat/index.d.ts +8 -3
- package/esm/src/react/components/ai/chat/index.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/index.js +1 -1
- package/esm/src/react/components/ai/error-boundary.d.ts +1 -1
- package/esm/src/react/components/ai/error-boundary.d.ts.map +1 -1
- package/esm/src/react/components/ai/error-boundary.js +1 -1
- package/esm/src/react/components/ai/icons/index.d.ts +1 -1
- package/esm/src/react/components/ai/icons/index.d.ts.map +1 -1
- package/esm/src/react/components/ai/icons/index.js +1 -1
- package/esm/src/react/components/ai/markdown.d.ts +1 -1
- package/esm/src/react/components/ai/markdown.d.ts.map +1 -1
- package/esm/src/react/components/ai/markdown.js +1 -1
- package/esm/src/react/components/ai/message.d.ts +3 -3
- package/esm/src/react/components/ai/message.d.ts.map +1 -1
- package/esm/src/react/components/ai/message.js +1 -1
- package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.d.ts +1 -1
- package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.js +1 -1
- package/esm/src/react/components/optimized-image/OptimizedImage.d.ts +1 -1
- package/esm/src/react/components/optimized-image/OptimizedImage.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/OptimizedImage.js +1 -1
- package/esm/src/react/components/optimized-image/SimpleOptimizedImage.d.ts +1 -1
- package/esm/src/react/components/optimized-image/SimpleOptimizedImage.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/utils.d.ts +1 -1
- package/esm/src/react/components/optimized-image/utils.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/utils.js +1 -1
- package/esm/src/react/context/index.d.ts +1 -1
- package/esm/src/react/context/index.d.ts.map +1 -1
- package/esm/src/react/context/index.js +1 -1
- package/esm/src/react/fonts/index.d.ts +1 -1
- package/esm/src/react/fonts/index.d.ts.map +1 -1
- package/esm/src/react/fonts/index.js +1 -1
- package/esm/src/react/primitives/agent-primitives.d.ts +4 -4
- package/esm/src/react/primitives/agent-primitives.d.ts.map +1 -1
- package/esm/src/react/primitives/agent-primitives.js +1 -1
- package/esm/src/react/primitives/chat-container.d.ts +2 -2
- package/esm/src/react/primitives/chat-container.d.ts.map +1 -1
- package/esm/src/react/primitives/chat-container.js +1 -1
- package/esm/src/react/primitives/input-box.d.ts +4 -4
- package/esm/src/react/primitives/input-box.d.ts.map +1 -1
- package/esm/src/react/primitives/input-box.js +7 -3
- package/esm/src/react/primitives/message-list.d.ts +5 -5
- package/esm/src/react/primitives/message-list.d.ts.map +1 -1
- package/esm/src/react/primitives/message-list.js +1 -1
- package/esm/src/react/primitives/tool-primitives.d.ts +4 -4
- package/esm/src/react/primitives/tool-primitives.d.ts.map +1 -1
- package/esm/src/react/primitives/tool-primitives.js +1 -1
- package/esm/src/react/router/index.d.ts +1 -1
- package/esm/src/react/router/index.d.ts.map +1 -1
- package/esm/src/react/router/index.js +1 -1
- package/esm/src/rendering/app-reserved.d.ts +1 -1
- package/esm/src/rendering/app-reserved.d.ts.map +1 -1
- package/esm/src/rendering/app-reserved.js +1 -1
- package/esm/src/rendering/client/router.js +1 -1
- package/esm/src/rendering/client/state-bridge.d.ts +1 -1
- package/esm/src/rendering/client/state-bridge.d.ts.map +1 -1
- package/esm/src/rendering/client/state-bridge.js +1 -1
- package/esm/src/rendering/component-handling.d.ts +3 -1
- package/esm/src/rendering/component-handling.d.ts.map +1 -1
- package/esm/src/rendering/component-handling.js +4 -2
- package/esm/src/rendering/element-validator/element-normalizer.d.ts +1 -1
- package/esm/src/rendering/element-validator/element-normalizer.d.ts.map +1 -1
- package/esm/src/rendering/element-validator/element-normalizer.js +1 -1
- package/esm/src/rendering/element-validator/primitive-checks.d.ts +1 -1
- package/esm/src/rendering/element-validator/primitive-checks.d.ts.map +1 -1
- package/esm/src/rendering/element-validator/primitive-checks.js +1 -1
- package/esm/src/rendering/element-validator/validator-core.d.ts +1 -1
- package/esm/src/rendering/element-validator/validator-core.d.ts.map +1 -1
- package/esm/src/rendering/layouts/layout-applicator.d.ts +1 -1
- package/esm/src/rendering/layouts/layout-applicator.d.ts.map +1 -1
- package/esm/src/rendering/layouts/layout-applicator.js +2 -0
- package/esm/src/rendering/layouts/utils/applicator.d.ts +1 -1
- package/esm/src/rendering/layouts/utils/applicator.d.ts.map +1 -1
- package/esm/src/rendering/layouts/utils/component-loader.d.ts +1 -1
- package/esm/src/rendering/layouts/utils/component-loader.d.ts.map +1 -1
- package/esm/src/rendering/layouts/utils/ensure-valid-child.d.ts +1 -1
- package/esm/src/rendering/layouts/utils/ensure-valid-child.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/layout.d.ts +1 -1
- package/esm/src/rendering/orchestrator/layout.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/module-loader/index.d.ts +3 -0
- package/esm/src/rendering/orchestrator/module-loader/index.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/module-loader/index.js +74 -19
- package/esm/src/rendering/orchestrator/pipeline.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/pipeline.js +2 -0
- package/esm/src/rendering/orchestrator/ssr-orchestrator.d.ts +1 -1
- package/esm/src/rendering/orchestrator/ssr-orchestrator.d.ts.map +1 -1
- package/esm/src/rendering/page-renderer.d.ts +1 -1
- package/esm/src/rendering/page-renderer.d.ts.map +1 -1
- package/esm/src/rendering/page-rendering.d.ts +1 -1
- package/esm/src/rendering/page-rendering.d.ts.map +1 -1
- package/esm/src/rendering/rsc/server-renderer/component-detector.d.ts +1 -1
- package/esm/src/rendering/rsc/server-renderer/component-detector.d.ts.map +1 -1
- package/esm/src/rendering/rsc/server-renderer/rsc-renderer.d.ts +1 -1
- package/esm/src/rendering/rsc/server-renderer/rsc-renderer.d.ts.map +1 -1
- package/esm/src/rendering/rsc/server-renderer/tree-processor.d.ts +1 -1
- package/esm/src/rendering/rsc/server-renderer/tree-processor.d.ts.map +1 -1
- package/esm/src/rendering/rsc/server-renderer/tree-processor.js +4 -2
- package/esm/src/rendering/snippet-renderer.js +2 -2
- package/esm/src/rendering/ssr/component-registry.d.ts +1 -1
- package/esm/src/rendering/ssr/component-registry.d.ts.map +1 -1
- package/esm/src/rendering/ssr/component-registry.js +1 -1
- package/esm/src/rendering/ssr-renderer.d.ts +1 -1
- package/esm/src/rendering/ssr-renderer.d.ts.map +1 -1
- package/esm/src/rendering/utils/react-helpers.d.ts +1 -1
- package/esm/src/rendering/utils/react-helpers.d.ts.map +1 -1
- package/esm/src/rendering/utils/react-helpers.js +1 -1
- package/esm/src/server/handlers/request/ssr/error-page-fallback.js +1 -1
- package/esm/src/server/handlers/request/ssr/not-found-fallback.js +1 -1
- package/esm/src/transforms/esm/http-bundler.d.ts +15 -4
- package/esm/src/transforms/esm/http-bundler.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-bundler.js +105 -12
- package/esm/src/transforms/esm/http-cache.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-cache.js +51 -44
- package/esm/src/transforms/esm/import-rewriter.d.ts.map +1 -1
- package/esm/src/transforms/esm/import-rewriter.js +3 -3
- package/esm/src/transforms/esm/package-registry.d.ts +15 -13
- package/esm/src/transforms/esm/package-registry.d.ts.map +1 -1
- package/esm/src/transforms/esm/package-registry.js +45 -32
- package/esm/src/transforms/esm/react-imports.d.ts.map +1 -1
- package/esm/src/transforms/esm/react-imports.js +3 -7
- package/esm/src/transforms/esm/types.d.ts +2 -0
- package/esm/src/transforms/esm/types.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/cache/index.d.ts +14 -0
- package/esm/src/transforms/mdx/esm-module-loader/cache/index.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/cache/index.js +67 -0
- package/esm/src/transforms/mdx/esm-module-loader/loader.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/loader.js +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/index.d.ts +1 -0
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/index.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/index.js +1 -0
- package/esm/src/transforms/mdx/esm-module-loader/types.d.ts +4 -0
- package/esm/src/transforms/mdx/esm-module-loader/types.d.ts.map +1 -1
- package/esm/src/transforms/mdx/index.d.ts +1 -1
- package/esm/src/transforms/mdx/index.d.ts.map +1 -1
- package/esm/src/transforms/mdx/index.js +1 -1
- package/esm/src/transforms/mdx/mdx-cache-adapter.js +1 -1
- package/esm/src/transforms/mdx/module-loader/types.d.ts +1 -1
- package/esm/src/transforms/mdx/module-loader/types.d.ts.map +1 -1
- package/esm/src/transforms/mdx/types.d.ts +2 -2
- package/esm/src/transforms/mdx/types.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/context.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/context.js +7 -15
- package/esm/src/transforms/pipeline/stages/finalize.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/stages/finalize.js +1 -1
- package/esm/src/types/app.d.ts +1 -1
- package/esm/src/types/app.d.ts.map +1 -1
- package/esm/src/types/global-guards.d.ts +1 -1
- package/esm/src/types/global-guards.d.ts.map +1 -1
- package/esm/src/types/index.d.ts +1 -1
- package/esm/src/types/index.d.ts.map +1 -1
- package/esm/src/utils/constants/cdn.d.ts.map +1 -1
- package/esm/src/utils/constants/cdn.js +22 -11
- package/esm/src/utils/hash-utils.d.ts +2 -0
- package/esm/src/utils/hash-utils.d.ts.map +1 -1
- package/esm/src/utils/hash-utils.js +4 -0
- package/esm/src/workflow/react/use-approval.js +1 -1
- package/esm/src/workflow/react/use-workflow-list.js +1 -1
- package/esm/src/workflow/react/use-workflow-start.js +1 -1
- package/esm/src/workflow/react/use-workflow.js +1 -1
- package/package.json +2 -1
- package/src/deno.js +8 -9
- package/src/deps/esm.sh/@types/react-dom@19.1.11/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/client.d.ts +105 -0
- package/src/deps/esm.sh/@types/react-dom@19.1.11/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/server.d.ts +162 -0
- package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjM/global.d.ts +165 -0
- package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjM/index.d.ts +4267 -0
- package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/global.d.ts +165 -0
- package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/index.d.ts +4267 -0
- package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/jsx-runtime.d.ts +36 -0
- package/src/deps/esm.sh/@types/scheduler@0.26.0/index.d.ts +30 -0
- package/src/deps/esm.sh/csstype@3.2.3/index.d.ts +22569 -0
- package/src/deps/esm.sh/react-dom@19.1.1/client.d.ts +105 -0
- package/src/deps/esm.sh/react-dom@19.1.1/client.js +5 -0
- package/src/deps/esm.sh/react-dom@19.1.1/server.d.ts +162 -0
- package/src/deps/esm.sh/react-dom@19.1.1/server.js +5 -0
- package/src/deps/esm.sh/react@19.1.1/jsx-runtime.d.ts +36 -0
- package/src/deps/esm.sh/react@19.1.1/jsx-runtime.js +3 -0
- package/src/deps/esm.sh/react@19.1.1.d.ts +4267 -0
- package/src/deps/esm.sh/react@19.1.1.js +3 -0
- package/src/deps/esm.sh/scheduler@^0.26.0.d.ts +30 -0
- package/src/deps/esm.sh/scheduler@^0.26.0.js +3 -0
- package/src/proxy/main.ts +471 -0
- package/src/src/agent/react/use-agent.ts +1 -1
- package/src/src/agent/react/use-chat/use-chat.ts +1 -1
- package/src/src/agent/react/use-completion.ts +1 -1
- package/src/src/agent/react/use-streaming.ts +1 -1
- package/src/src/agent/react/use-voice-input.ts +1 -1
- package/src/src/cli/app/components/list-select.ts +2 -2
- package/src/src/cli/app/index.ts +34 -35
- package/src/src/cli/app/state.ts +7 -0
- package/src/src/cli/app/views/dashboard.ts +46 -60
- package/src/src/cli/app/views/startup.ts +132 -0
- package/src/src/cli/commands/init/config-generator.ts +1 -1
- package/src/src/cli/index/arg-parser.ts +1 -0
- package/src/src/cli/index/command-router.ts +57 -40
- package/src/src/cli/index/types.ts +5 -0
- package/src/src/cli/ui/colors.ts +37 -0
- package/src/src/cli/ui/dot-matrix.ts +77 -1
- package/src/src/config/loader.ts +5 -4
- package/src/src/html/utils.ts +2 -2
- package/src/src/modules/component-registry/registry.ts +1 -1
- package/src/src/modules/import-map/default-import-map.ts +3 -25
- package/src/src/modules/import-map/loader.ts +7 -23
- package/src/src/modules/import-map/resolver.ts +13 -8
- package/src/src/modules/react-loader/component-loader.ts +3 -1
- package/src/src/modules/react-loader/extract-component.ts +1 -1
- package/src/src/modules/react-loader/ssr-module-loader/loader.ts +95 -68
- package/src/src/modules/react-loader/ssr-module-loader/types.ts +2 -0
- package/src/src/modules/react-loader/types.ts +3 -1
- package/src/src/modules/react-loader/unified-loader.ts +7 -4
- package/src/src/modules/server/module-batch-handler.ts +7 -0
- package/src/src/modules/server/module-server.ts +6 -1
- package/src/src/modules/server/ssr-import-rewriter.ts +9 -17
- package/src/src/react/compat/hooks-adapter.ts +1 -1
- package/src/src/react/compat/ssr-adapter/response-builder.ts +1 -1
- package/src/src/react/compat/ssr-adapter/server-loader.ts +10 -10
- package/src/src/react/compat/ssr-adapter/stream-renderer.ts +2 -2
- package/src/src/react/compat/ssr-adapter/string-renderer.ts +3 -3
- package/src/src/react/compat/version-detector/feature-detector.ts +1 -1
- package/src/src/react/components/AppWrapper.tsx +1 -1
- package/src/src/react/components/Head.tsx +7 -3
- package/src/src/react/components/LayoutComponent.tsx +2 -2
- package/src/src/react/components/Link.tsx +1 -1
- package/src/src/react/components/MDXProvider.tsx +2 -2
- package/src/src/react/components/ProviderComponent.tsx +2 -2
- package/src/src/react/components/ai/agent-card.tsx +1 -1
- package/src/src/react/components/ai/chat/components/animations.tsx +1 -1
- package/src/src/react/components/ai/chat/components/empty-state.tsx +1 -1
- package/src/src/react/components/ai/chat/components/message-actions.tsx +1 -1
- package/src/src/react/components/ai/chat/components/reasoning.tsx +1 -1
- package/src/src/react/components/ai/chat/components/tool-ui.tsx +1 -1
- package/src/src/react/components/ai/chat/composition/api.tsx +1 -1
- package/src/src/react/components/ai/chat/index.tsx +1 -1
- package/src/src/react/components/ai/error-boundary.tsx +1 -1
- package/src/src/react/components/ai/icons/index.ts +1 -1
- package/src/src/react/components/ai/markdown.tsx +1 -1
- package/src/src/react/components/ai/message.tsx +1 -1
- package/src/src/react/components/optimized-image/OptimizedBackgroundImage.tsx +1 -1
- package/src/src/react/components/optimized-image/OptimizedImage.tsx +1 -1
- package/src/src/react/components/optimized-image/SimpleOptimizedImage.tsx +1 -1
- package/src/src/react/components/optimized-image/utils.tsx +1 -1
- package/src/src/react/context/index.ts +1 -1
- package/src/src/react/fonts/index.ts +1 -1
- package/src/src/react/primitives/agent-primitives.tsx +1 -1
- package/src/src/react/primitives/chat-container.tsx +1 -1
- package/src/src/react/primitives/input-box.tsx +5 -3
- package/src/src/react/primitives/message-list.tsx +1 -1
- package/src/src/react/primitives/tool-primitives.tsx +1 -1
- package/src/src/react/router/index.ts +1 -1
- package/src/src/rendering/app-reserved.ts +1 -1
- package/src/src/rendering/client/router.ts +2 -2
- package/src/src/rendering/client/state-bridge.ts +2 -2
- package/src/src/rendering/component-handling.ts +7 -1
- package/src/src/rendering/element-validator/element-inspector.ts +1 -1
- package/src/src/rendering/element-validator/element-normalizer.ts +1 -1
- package/src/src/rendering/element-validator/primitive-checks.ts +1 -1
- package/src/src/rendering/element-validator/validator-core.ts +1 -1
- package/src/src/rendering/layouts/layout-applicator.ts +5 -6
- package/src/src/rendering/layouts/utils/applicator.ts +1 -1
- package/src/src/rendering/layouts/utils/component-loader.ts +1 -1
- package/src/src/rendering/layouts/utils/ensure-valid-child.ts +1 -1
- package/src/src/rendering/orchestrator/layout.ts +1 -1
- package/src/src/rendering/orchestrator/module-loader/index.ts +91 -20
- package/src/src/rendering/orchestrator/pipeline.ts +2 -0
- package/src/src/rendering/orchestrator/ssr-orchestrator.ts +2 -2
- package/src/src/rendering/page-renderer.ts +1 -1
- package/src/src/rendering/page-rendering.ts +1 -1
- package/src/src/rendering/rsc/server-renderer/component-detector.ts +1 -1
- package/src/src/rendering/rsc/server-renderer/rsc-renderer.ts +1 -1
- package/src/src/rendering/rsc/server-renderer/tree-processor.ts +14 -4
- package/src/src/rendering/snippet-renderer.ts +2 -2
- package/src/src/rendering/ssr/component-registry.ts +1 -1
- package/src/src/rendering/ssr-renderer.ts +1 -1
- package/src/src/rendering/utils/react-helpers.ts +1 -1
- package/src/src/server/build-app-route-renderer.ts +2 -2
- package/src/src/server/handlers/request/rsc/handlers/render-handler.ts +1 -1
- package/src/src/server/handlers/request/ssr/error-page-fallback.ts +2 -2
- package/src/src/server/handlers/request/ssr/not-found-fallback.ts +1 -1
- package/src/src/transforms/esm/http-bundler.ts +101 -11
- package/src/src/transforms/esm/http-cache.ts +53 -45
- package/src/src/transforms/esm/import-rewriter.ts +5 -3
- package/src/src/transforms/esm/package-registry.ts +46 -32
- package/src/src/transforms/esm/react-imports.ts +3 -7
- package/src/src/transforms/esm/types.ts +2 -0
- package/src/src/transforms/mdx/esm-module-loader/cache/index.ts +84 -0
- package/src/src/transforms/mdx/esm-module-loader/loader.ts +2 -1
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/index.ts +2 -1
- package/src/src/transforms/mdx/esm-module-loader/types.ts +4 -0
- package/src/src/transforms/mdx/index.ts +1 -1
- package/src/src/transforms/mdx/mdx-cache-adapter.ts +1 -1
- package/src/src/transforms/mdx/module-loader/types.ts +1 -1
- package/src/src/transforms/mdx/types.ts +2 -2
- package/src/src/transforms/pipeline/context.ts +7 -18
- package/src/src/transforms/pipeline/stages/finalize.ts +6 -1
- package/src/src/transforms/plugins/babel-node-positions.ts +2 -2
- package/src/src/types/app.ts +1 -1
- package/src/src/types/global-guards.ts +1 -1
- package/src/src/types/index.ts +1 -1
- package/src/src/utils/constants/cdn.ts +21 -12
- package/src/src/utils/hash-utils.ts +5 -0
- package/src/src/workflow/react/use-approval.ts +1 -1
- package/src/src/workflow/react/use-workflow-list.ts +1 -1
- package/src/src/workflow/react/use-workflow-start.ts +1 -1
- package/src/src/workflow/react/use-workflow.ts +1 -1
|
@@ -35,7 +35,7 @@ export interface App {
|
|
|
35
35
|
*/
|
|
36
36
|
export declare function createApp(config: AppConfig): App;
|
|
37
37
|
/**
|
|
38
|
-
* Show startup animation
|
|
38
|
+
* Show startup animation with boxed view and shimmer effect
|
|
39
39
|
*/
|
|
40
40
|
export declare function showStartup(steps: string[]): Promise<void>;
|
|
41
41
|
export type { AppState } from "./state.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/src/cli/app/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/src/cli/app/index.ts"],"names":[],"mappings":"AAkCA,OAAO,EAEL,KAAK,QAAQ,EAcb,KAAK,YAAY,EAQlB,MAAM,YAAY,CAAC;AASpB,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,QAAQ,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,GAAG;IAClB,oBAAoB;IACpB,KAAK,IAAI,IAAI,CAAC;IACd,wCAAwC;IACxC,IAAI,IAAI,IAAI,CAAC;IACb,mBAAmB;IACnB,MAAM,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IACpC,wBAAwB;IACxB,QAAQ,IAAI,QAAQ,CAAC;IACrB,8BAA8B;IAC9B,MAAM,IAAI,IAAI,CAAC;IACf,uBAAuB;IACvB,cAAc,IAAI,IAAI,CAAC;IACvB,mBAAmB;IACnB,QAAQ,IAAI,IAAI,CAAC;IACjB,mBAAmB;IACnB,WAAW,IAAI,IAAI,CAAC;IACpB,uCAAuC;IACvC,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvE,qDAAqD;IACrD,gBAAgB,IAAI,MAAM,IAAI,CAAC;CAChC;AAuMD;;GAEG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,GAAG,CA4mChD;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA2BhE;AAED,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC"}
|
package/esm/src/cli/app/index.js
CHANGED
|
@@ -11,12 +11,14 @@ import { join } from "../../platform/compat/path/index.js";
|
|
|
11
11
|
import { getRuntimeEnv } from "../../config/runtime-env.js";
|
|
12
12
|
import { getStdinReader, setRawMode } from "../../platform/compat/stdin.js";
|
|
13
13
|
import { cursor, screen, SPINNER_FRAMES } from "../ui/ansi.js";
|
|
14
|
-
import { brand, dim
|
|
14
|
+
import { brand, dim } from "../ui/colors.js";
|
|
15
|
+
import { getTerminalWidth } from "../ui/layout.js";
|
|
15
16
|
import { moveDown, moveUp, selectByNumber } from "./components/list-select.js";
|
|
16
17
|
import { renderDashboard, renderEmptyState } from "./views/dashboard.js";
|
|
18
|
+
import { createStartupState, incrementFrame, renderStartup, setStepActive, } from "./views/startup.js";
|
|
17
19
|
import { openInBrowser, openInIDE, openInStudio, openMCPSettings } from "./actions.js";
|
|
18
20
|
import { initCommand } from "../commands/init/init-command.js";
|
|
19
|
-
import { addLog, createInitialState, endInput, getActiveSelection, goBack, navigateTo, scrollLogs, setActiveList, setExamples, setProjects, setTemplates, startInput, toggleLogsExpanded, updateActiveList, updateInputValue, updateMCP, updateRemote, updateServer, } from "./state.js";
|
|
21
|
+
import { addLog, createInitialState, endInput, getActiveSelection, goBack, navigateTo, scrollLogs, setActiveList, setExamples, setProjects, setTemplates, startInput, toggleHelp, toggleLogsExpanded, updateActiveList, updateInputValue, updateMCP, updateRemote, updateServer, } from "./state.js";
|
|
20
22
|
import { handleInputKey, renderInput, renderLogs } from "./components/inline-input.js";
|
|
21
23
|
import { login, logout, validateToken } from "../auth/login.js";
|
|
22
24
|
import { readToken } from "../auth/token-store.js";
|
|
@@ -430,10 +432,12 @@ export function createApp(config) {
|
|
|
430
432
|
content = renderDashboard(state);
|
|
431
433
|
}
|
|
432
434
|
const parts = [content];
|
|
435
|
+
// Divider width matches the box in dashboard
|
|
436
|
+
const dividerWidth = Math.min(getTerminalWidth() - 4, 80);
|
|
433
437
|
if (state.logs.length > 0) {
|
|
434
438
|
const logsHeader = state.logsExpanded ? "▼ Logs" : "▶ Logs";
|
|
435
439
|
parts.push("");
|
|
436
|
-
parts.push(
|
|
440
|
+
parts.push(dim("─".repeat(dividerWidth)));
|
|
437
441
|
parts.push(` ${dim(logsHeader)} ${dim(`(${state.logs.length})`)} ${dim("l")} ${dim("toggle")} ${state.logsExpanded ? `${dim("↑↓")} ${dim("scroll")}` : ""}`);
|
|
438
442
|
parts.push(renderLogs(state.logs, {
|
|
439
443
|
maxLines: state.logsExpanded ? 15 : 3,
|
|
@@ -443,13 +447,13 @@ export function createApp(config) {
|
|
|
443
447
|
}
|
|
444
448
|
if (state.input.active) {
|
|
445
449
|
parts.push("");
|
|
446
|
-
parts.push(
|
|
450
|
+
parts.push(dim("─".repeat(dividerWidth)));
|
|
447
451
|
parts.push(renderInput(state.input));
|
|
448
452
|
}
|
|
449
453
|
if (!isInteractiveMode)
|
|
450
454
|
return;
|
|
451
455
|
write(cursor.moveTo(1, 1) + screen.clearDown);
|
|
452
|
-
write(parts.join("\n"));
|
|
456
|
+
write("\n" + parts.join("\n"));
|
|
453
457
|
}
|
|
454
458
|
function update(updater) {
|
|
455
459
|
state = updater(state);
|
|
@@ -792,7 +796,7 @@ export function createApp(config) {
|
|
|
792
796
|
return;
|
|
793
797
|
}
|
|
794
798
|
if (key === "?") {
|
|
795
|
-
update(
|
|
799
|
+
update(toggleHelp());
|
|
796
800
|
return;
|
|
797
801
|
}
|
|
798
802
|
if (key === "m" && state.mcp.enabled) {
|
|
@@ -1212,40 +1216,29 @@ export function createApp(config) {
|
|
|
1212
1216
|
};
|
|
1213
1217
|
}
|
|
1214
1218
|
/**
|
|
1215
|
-
* Show startup animation
|
|
1219
|
+
* Show startup animation with boxed view and shimmer effect
|
|
1216
1220
|
*/
|
|
1217
1221
|
export async function showStartup(steps) {
|
|
1218
1222
|
const write = (text) => writeStdout(text);
|
|
1219
1223
|
write(screen.altOn + cursor.hide);
|
|
1224
|
+
let startupState = createStartupState(steps);
|
|
1225
|
+
// Show each step with spinning avatar animation
|
|
1220
1226
|
for (let i = 0; i < steps.length; i++) {
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
const
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
...completed,
|
|
1230
|
-
current,
|
|
1231
|
-
...pending,
|
|
1232
|
-
"",
|
|
1233
|
-
].join("\n");
|
|
1234
|
-
write(cursor.moveTo(1, 1) + screen.clearDown + content);
|
|
1235
|
-
await new Promise((r) => dntShim.setTimeout(r, 200));
|
|
1227
|
+
startupState = setStepActive(startupState, i);
|
|
1228
|
+
// Animate spinning avatar (16 frames at 60ms = ~1s per step for full rotation)
|
|
1229
|
+
const framesPerStep = 16;
|
|
1230
|
+
for (let f = 0; f < framesPerStep; f++) {
|
|
1231
|
+
write(cursor.moveTo(1, 1) + screen.clearDown + "\n" + renderStartup(startupState));
|
|
1232
|
+
startupState = incrementFrame(startupState);
|
|
1233
|
+
await new Promise((r) => dntShim.setTimeout(r, 60));
|
|
1234
|
+
}
|
|
1236
1235
|
}
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
"",
|
|
1242
|
-
...allComplete,
|
|
1243
|
-
"",
|
|
1244
|
-
].join("\n");
|
|
1245
|
-
write(cursor.moveTo(1, 1) + screen.clearDown + finalContent);
|
|
1246
|
-
await new Promise((r) => dntShim.setTimeout(r, 300));
|
|
1236
|
+
// Mark all steps done - logo fills up and holds before transitioning
|
|
1237
|
+
startupState = setStepActive(startupState, steps.length);
|
|
1238
|
+
write(cursor.moveTo(1, 1) + screen.clearDown + "\n" + renderStartup(startupState));
|
|
1239
|
+
await new Promise((r) => dntShim.setTimeout(r, 400));
|
|
1247
1240
|
// Don't exit alternate screen - let app.start() continue in it
|
|
1248
|
-
//
|
|
1241
|
+
// Dashboard takes over directly from here
|
|
1249
1242
|
}
|
|
1250
1243
|
export * from "./state.js";
|
|
1251
1244
|
export * from "./actions.js";
|
|
@@ -84,6 +84,8 @@ export interface AppState {
|
|
|
84
84
|
authProviderIndex: number;
|
|
85
85
|
/** New project option index (0=template, 1=example, 2=scratch) */
|
|
86
86
|
newProjectIndex: number;
|
|
87
|
+
/** Show expanded help */
|
|
88
|
+
showHelp: boolean;
|
|
87
89
|
}
|
|
88
90
|
export declare function createInitialState(): AppState;
|
|
89
91
|
export type StateUpdater = (state: AppState) => AppState;
|
|
@@ -117,6 +119,7 @@ export declare function endInput(): StateUpdater;
|
|
|
117
119
|
export declare function addLog(level: LogEntry["level"], message: string, meta?: LogMeta): StateUpdater;
|
|
118
120
|
export declare function clearLogs(): StateUpdater;
|
|
119
121
|
export declare function toggleLogsExpanded(): StateUpdater;
|
|
122
|
+
export declare function toggleHelp(): StateUpdater;
|
|
120
123
|
export declare function scrollLogs(direction: "up" | "down"): StateUpdater;
|
|
121
124
|
export declare function getActiveSelection(state: AppState): ListItem<ProjectInfo> | undefined;
|
|
122
125
|
//# sourceMappingURL=state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/src/cli/app/state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAK7E,MAAM,MAAM,OAAO,GACf,WAAW,GACX,gBAAgB,GAChB,aAAa,GACb,WAAW,GACX,UAAU,GACV,MAAM,GACN,MAAM,CAAC;AAEX,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;CACxC;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,E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AAC,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,YAAY,CAWvE;AAED,wBAAgB,YAAY,CAC1B,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAClC,YAAY,CAEd;AAED,wBAAgB,WAAW,IAAI,YAAY,CAW1C;AAED,wBAAgB,UAAU,CACxB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EACjC,QAAQ,CAAC,EAAE,MAAM,IAAI,EACrB,YAAY,CAAC,EAAE,MAAM,GACpB,YAAY,CAYd;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,YAAY,CAK/E;AAED,wBAAgB,QAAQ,IAAI,YAAY,CAYvC;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,YAAY,CAM9F;AAED,wBAAgB,SAAS,IAAI,YAAY,CAExC;AAED,wBAAgB,kBAAkB,IAAI,YAAY,CAMjD;AAED,wBAAgB,UAAU,IAAI,YAAY,CAEzC;AAED,wBAAgB,UAAU,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,GAAG,YAAY,CAejE;AAqBD,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,QAAQ,GACd,QAAQ,CAAC,WAAW,CAAC,GAAG,SAAS,CAKnC"}
|
package/esm/src/cli/app/state.js
CHANGED
|
@@ -49,6 +49,7 @@ export function createInitialState() {
|
|
|
49
49
|
logScroll: 0,
|
|
50
50
|
authProviderIndex: 0,
|
|
51
51
|
newProjectIndex: 0,
|
|
52
|
+
showHelp: false,
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
55
|
export function setProjects(projects) {
|
|
@@ -192,6 +193,9 @@ export function toggleLogsExpanded() {
|
|
|
192
193
|
logScroll: 0,
|
|
193
194
|
});
|
|
194
195
|
}
|
|
196
|
+
export function toggleHelp() {
|
|
197
|
+
return (state) => ({ ...state, showHelp: !state.showHelp });
|
|
198
|
+
}
|
|
195
199
|
export function scrollLogs(direction) {
|
|
196
200
|
return (state) => {
|
|
197
201
|
if (!state.logsExpanded)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../../../src/src/cli/app/views/dashboard.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,CA4EvD;
|
|
1
|
+
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../../../src/src/cli/app/views/dashboard.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,CA4EvD;AAmFD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,CAY5D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Main view showing server status, projects, and quick actions.
|
|
5
5
|
*/
|
|
6
6
|
import { box } from "../../ui/box.js";
|
|
7
|
-
import { brand, dim, error, muted
|
|
7
|
+
import { brand, dim, error, muted } from "../../ui/colors.js";
|
|
8
8
|
import { getTerminalWidth } from "../../ui/layout.js";
|
|
9
9
|
import { getAgentFaceWithText } from "../../ui/dot-matrix.js";
|
|
10
10
|
import { renderList } from "../components/list-select.js";
|
|
@@ -21,7 +21,7 @@ export function renderDashboard(state) {
|
|
|
21
21
|
const hasRemoteProjects = state.remote.user && state.remote.projects.length > 0;
|
|
22
22
|
if (hasProjects) {
|
|
23
23
|
const isActive = state.activeList === "projects";
|
|
24
|
-
lines.push(renderSection("Local
|
|
24
|
+
lines.push(renderSection("Local", state.projects.items.length, isActive));
|
|
25
25
|
lines.push(renderList(state.projects, {
|
|
26
26
|
maxWidth: maxListWidth,
|
|
27
27
|
visibleCount: 5,
|
|
@@ -36,9 +36,9 @@ export function renderDashboard(state) {
|
|
|
36
36
|
const start = state.remote.scrollOffset;
|
|
37
37
|
const end = Math.min(start + visibleCount, state.remote.projects.length);
|
|
38
38
|
const visibleProjects = state.remote.projects.slice(start, end);
|
|
39
|
-
lines.push(renderSection("Remote
|
|
39
|
+
lines.push(renderSection("Remote", state.remote.projects.length, isRemoteActive));
|
|
40
40
|
if (start > 0) {
|
|
41
|
-
lines.push(` ${dim("
|
|
41
|
+
lines.push(` ${dim("↑")} ${dim("more above")}`);
|
|
42
42
|
}
|
|
43
43
|
visibleProjects.forEach((p, i) => {
|
|
44
44
|
const actualIndex = start + i;
|
|
@@ -54,7 +54,7 @@ export function renderDashboard(state) {
|
|
|
54
54
|
lines.push(`${cursor} ${num} ${label}`);
|
|
55
55
|
});
|
|
56
56
|
if (end < state.remote.projects.length) {
|
|
57
|
-
lines.push(` ${dim("
|
|
57
|
+
lines.push(` ${dim("↓")} ${dim("more below")}`);
|
|
58
58
|
}
|
|
59
59
|
lines.push("");
|
|
60
60
|
}
|
|
@@ -72,24 +72,24 @@ export function renderDashboard(state) {
|
|
|
72
72
|
return lines.join("\n");
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
|
-
* Render the banner with agent face and server info
|
|
75
|
+
* Render the banner with agent face and server info inside a box
|
|
76
76
|
*/
|
|
77
77
|
function renderBanner(state) {
|
|
78
|
-
const
|
|
79
|
-
const mcpDot = state.mcp.enabled ? success("●") : dim("○");
|
|
78
|
+
const termWidth = Math.min(getTerminalWidth() - 4, 80);
|
|
80
79
|
const textLines = [];
|
|
81
|
-
textLines.push(
|
|
82
|
-
textLines.push(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
80
|
+
textLines.push("");
|
|
81
|
+
textLines.push(`${brand("Veryfront Code")} ${dim("is now running")}`);
|
|
82
|
+
textLines.push("");
|
|
83
|
+
// Server URL and MCP URL - always reserve both lines to prevent jumps
|
|
84
|
+
textLines.push(`${dim("Url")} ${brand(state.server.url)}`);
|
|
85
|
+
if (state.mcp.enabled && state.mcp.transport === "http") {
|
|
86
|
+
const port = state.mcp.httpPort ?? 9999;
|
|
87
|
+
textLines.push(`${dim("Mcp")} ${brand(`http://veryfront.me:${port}/mcp`)}`);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
textLines.push("");
|
|
92
91
|
}
|
|
92
|
+
// Errors/warnings on separate line if any
|
|
93
93
|
const { errors, warnings } = state.server;
|
|
94
94
|
if (errors > 0 || warnings > 0) {
|
|
95
95
|
const parts = [];
|
|
@@ -99,50 +99,49 @@ function renderBanner(state) {
|
|
|
99
99
|
parts.push(muted(`${warnings} warnings`));
|
|
100
100
|
textLines.push(parts.join(" "));
|
|
101
101
|
}
|
|
102
|
-
|
|
102
|
+
// Pad to 7 text lines (matching avatar height) for consistent title position
|
|
103
|
+
while (textLines.length < 7) {
|
|
104
|
+
textLines.push("");
|
|
105
|
+
}
|
|
106
|
+
const content = getAgentFaceWithText(textLines, {
|
|
103
107
|
litColor: "\x1b[38;2;252;143;93m", // Veryfront brand orange
|
|
104
108
|
});
|
|
109
|
+
return box(content, {
|
|
110
|
+
style: "rounded",
|
|
111
|
+
width: termWidth,
|
|
112
|
+
paddingX: 2,
|
|
113
|
+
paddingY: 1,
|
|
114
|
+
borderColor: "\x1b[2m", // Dim to match footer
|
|
115
|
+
});
|
|
105
116
|
}
|
|
106
117
|
/**
|
|
107
118
|
* Render a section header
|
|
108
119
|
*/
|
|
109
|
-
function renderSection(title,
|
|
120
|
+
function renderSection(title, _count, isActive = true) {
|
|
110
121
|
const indicator = isActive ? brand("›") : " ";
|
|
111
122
|
const titleText = isActive ? title : dim(title);
|
|
112
|
-
return ` ${indicator} ${titleText}
|
|
123
|
+
return ` ${indicator} ${titleText}`;
|
|
113
124
|
}
|
|
114
125
|
/**
|
|
115
126
|
* Render the help bar at the bottom
|
|
116
127
|
*/
|
|
117
128
|
function renderHelpBar(state) {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
// Count sections for tab switching
|
|
123
|
-
const sectionCount = [hasProjects, hasExamples, hasRemoteProjects].filter(Boolean).length;
|
|
124
|
-
if (sectionCount > 1) {
|
|
125
|
-
parts.push(dim("tab switch"));
|
|
126
|
-
}
|
|
127
|
-
parts.push(dim("↑↓ nav"));
|
|
128
|
-
if (hasProjects || hasExamples || hasRemoteProjects) {
|
|
129
|
-
parts.push(dim("o open"), dim("s studio"), dim("i ide"));
|
|
129
|
+
// Minimal by default, ? reveals all
|
|
130
|
+
if (!state.showHelp) {
|
|
131
|
+
const userInfo = state.remote.user ? ` ${dim("-")} ${brand(state.remote.user.email)}` : "";
|
|
132
|
+
return ` ${dim("↑↓ select enter open ? more q quit")}${userInfo}`;
|
|
130
133
|
}
|
|
134
|
+
// Expanded help
|
|
135
|
+
const lines = [];
|
|
136
|
+
lines.push(` ${dim("o")} open ${dim("s")} studio ${dim("i")} ide`);
|
|
131
137
|
if (!state.remote.user) {
|
|
132
|
-
|
|
138
|
+
lines.push(` ${dim("n")} new ${dim("a")} login`);
|
|
133
139
|
}
|
|
134
140
|
else {
|
|
135
|
-
|
|
136
|
-
if (state.activeList === "projects") {
|
|
137
|
-
parts.push(dim("p pull"), dim("u push"));
|
|
138
|
-
}
|
|
139
|
-
else if (state.activeList === "remoteProjects") {
|
|
140
|
-
parts.push(dim("p pull"));
|
|
141
|
-
}
|
|
142
|
-
parts.push(dim("n new"), dim("x logout"));
|
|
141
|
+
lines.push(` ${dim("n")} new ${dim("p")} pull ${dim("u")} push ${dim("x")} logout`);
|
|
143
142
|
}
|
|
144
|
-
|
|
145
|
-
return
|
|
143
|
+
lines.push(` ${dim("? hide q quit")}`);
|
|
144
|
+
return lines.join("\n");
|
|
146
145
|
}
|
|
147
146
|
/**
|
|
148
147
|
* Render a boxed dashboard (alternative style)
|
|
@@ -163,16 +162,5 @@ export function renderDashboardBoxed(state) {
|
|
|
163
162
|
* Render empty state when no projects found
|
|
164
163
|
*/
|
|
165
164
|
export function renderEmptyState() {
|
|
166
|
-
return
|
|
167
|
-
"",
|
|
168
|
-
` ${dim("No projects found.")}`,
|
|
169
|
-
"",
|
|
170
|
-
` ${dim("Get started:")}`,
|
|
171
|
-
` ${brand("[n]")} Create a new project`,
|
|
172
|
-
` ${brand("[t]")} Browse templates`,
|
|
173
|
-
"",
|
|
174
|
-
` ${dim("Or run with a project directory:")}`,
|
|
175
|
-
` ${muted("deno task start --project ./my-project")}`,
|
|
176
|
-
"",
|
|
177
|
-
].join("\n");
|
|
165
|
+
return `\n ${dim("No projects.")} ${brand("n")} ${dim("to create")}\n`;
|
|
178
166
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Startup View
|
|
3
|
+
*
|
|
4
|
+
* Shows loading progress with consistent box sizing.
|
|
5
|
+
* Displays avatar, title, and step checklist.
|
|
6
|
+
*/
|
|
7
|
+
export interface StartupStep {
|
|
8
|
+
label: string;
|
|
9
|
+
status: "pending" | "active" | "done";
|
|
10
|
+
}
|
|
11
|
+
export interface StartupState {
|
|
12
|
+
steps: StartupStep[];
|
|
13
|
+
serverUrl?: string;
|
|
14
|
+
mcpUrl?: string;
|
|
15
|
+
ready: boolean;
|
|
16
|
+
/** Animation frame counter for shimmer effect */
|
|
17
|
+
frame: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Render the startup view inside a consistent-sized box
|
|
21
|
+
*/
|
|
22
|
+
export declare function renderStartup(state: StartupState): string;
|
|
23
|
+
/**
|
|
24
|
+
* Create initial startup state with steps
|
|
25
|
+
*/
|
|
26
|
+
export declare function createStartupState(stepLabels: string[]): StartupState;
|
|
27
|
+
/**
|
|
28
|
+
* Increment animation frame for shimmer effect
|
|
29
|
+
*/
|
|
30
|
+
export declare function incrementFrame(state: StartupState): StartupState;
|
|
31
|
+
/**
|
|
32
|
+
* Set a step to active
|
|
33
|
+
*/
|
|
34
|
+
export declare function setStepActive(state: StartupState, index: number): StartupState;
|
|
35
|
+
/**
|
|
36
|
+
* Mark all steps done and set ready
|
|
37
|
+
*/
|
|
38
|
+
export declare function setStartupReady(state: StartupState, serverUrl: string, mcpUrl?: string): StartupState;
|
|
39
|
+
//# sourceMappingURL=startup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"startup.d.ts","sourceRoot":"","sources":["../../../../../src/src/cli/app/views/startup.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAUH,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;CACvC;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAqDzD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,YAAY,CAMrE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,YAAY,GAAG,YAAY,CAEhE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,YAAY,CAO9E;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,MAAM,GACd,YAAY,CAOd"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Startup View
|
|
3
|
+
*
|
|
4
|
+
* Shows loading progress with consistent box sizing.
|
|
5
|
+
* Displays avatar, title, and step checklist.
|
|
6
|
+
*/
|
|
7
|
+
import { box } from "../../ui/box.js";
|
|
8
|
+
import { brand, dim, shimmer } from "../../ui/colors.js";
|
|
9
|
+
// Dim orange for completed steps - matches the trailing dots in spinning animation
|
|
10
|
+
const dimOrange = (text) => `\x1b[38;2;180;100;65m${text}\x1b[0m`;
|
|
11
|
+
import { getTerminalWidth } from "../../ui/layout.js";
|
|
12
|
+
import { getAgentFaceWithText, getSpinningAgentFace } from "../../ui/dot-matrix.js";
|
|
13
|
+
/**
|
|
14
|
+
* Render the startup view inside a consistent-sized box
|
|
15
|
+
*/
|
|
16
|
+
export function renderStartup(state) {
|
|
17
|
+
const termWidth = Math.min(getTerminalWidth() - 4, 80);
|
|
18
|
+
const textLines = [];
|
|
19
|
+
if (state.ready) {
|
|
20
|
+
// Running state - always reserve space for both URL lines to prevent jumps
|
|
21
|
+
textLines.push("");
|
|
22
|
+
textLines.push(`${brand("Veryfront Code")} ${dim("is now running")}`);
|
|
23
|
+
textLines.push("");
|
|
24
|
+
textLines.push(state.serverUrl ? `${dim("Url")} ${brand(state.serverUrl)}` : "");
|
|
25
|
+
textLines.push(state.mcpUrl ? `${dim("Mcp")} ${brand(state.mcpUrl)}` : "");
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
// Loading state - match ready state layout
|
|
29
|
+
textLines.push("");
|
|
30
|
+
textLines.push(`${brand("Veryfront Code")} ${dim("starting...")}`);
|
|
31
|
+
textLines.push("");
|
|
32
|
+
for (const step of state.steps) {
|
|
33
|
+
if (step.status === "done") {
|
|
34
|
+
// Completed: dim orange (fades into background, coherent with avatar)
|
|
35
|
+
textLines.push(`${dimOrange("●")} ${dimOrange(step.label)}`);
|
|
36
|
+
}
|
|
37
|
+
else if (step.status === "active") {
|
|
38
|
+
// Active: bright orange dot with shimmer text
|
|
39
|
+
textLines.push(`${brand("●")} ${shimmer(step.label, state.frame)}`);
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
// Pending: gray empty circle
|
|
43
|
+
textLines.push(`${dim("○")} ${dim(step.label)}`);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
// Pad to 7 text lines (matching avatar height) for consistent title position
|
|
48
|
+
while (textLines.length < 7) {
|
|
49
|
+
textLines.push("");
|
|
50
|
+
}
|
|
51
|
+
// Use spinning avatar during loading, static when ready or all steps done
|
|
52
|
+
const allStepsDone = state.steps.every((s) => s.status === "done");
|
|
53
|
+
const content = state.ready || allStepsDone
|
|
54
|
+
? getAgentFaceWithText(textLines, {
|
|
55
|
+
litColor: "\x1b[38;2;252;143;93m", // Veryfront brand orange
|
|
56
|
+
})
|
|
57
|
+
: getSpinningAgentFace(textLines, state.frame, {
|
|
58
|
+
litColor: "\x1b[38;2;252;143;93m", // Veryfront brand orange
|
|
59
|
+
});
|
|
60
|
+
return box(content, {
|
|
61
|
+
style: "rounded",
|
|
62
|
+
width: termWidth,
|
|
63
|
+
paddingX: 2,
|
|
64
|
+
paddingY: 1,
|
|
65
|
+
borderColor: "\x1b[2m", // Dim to match footer
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Create initial startup state with steps
|
|
70
|
+
*/
|
|
71
|
+
export function createStartupState(stepLabels) {
|
|
72
|
+
return {
|
|
73
|
+
steps: stepLabels.map((label) => ({ label, status: "pending" })),
|
|
74
|
+
ready: false,
|
|
75
|
+
frame: 0,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Increment animation frame for shimmer effect
|
|
80
|
+
*/
|
|
81
|
+
export function incrementFrame(state) {
|
|
82
|
+
return { ...state, frame: state.frame + 1 };
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Set a step to active
|
|
86
|
+
*/
|
|
87
|
+
export function setStepActive(state, index) {
|
|
88
|
+
const steps = state.steps.map((step, i) => ({
|
|
89
|
+
...step,
|
|
90
|
+
status: i < index ? "done" : i === index ? "active" : "pending",
|
|
91
|
+
}));
|
|
92
|
+
return { ...state, steps };
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Mark all steps done and set ready
|
|
96
|
+
*/
|
|
97
|
+
export function setStartupReady(state, serverUrl, mcpUrl) {
|
|
98
|
+
const steps = state.steps.map((step) => ({
|
|
99
|
+
...step,
|
|
100
|
+
status: "done",
|
|
101
|
+
}));
|
|
102
|
+
return { ...state, steps, serverUrl, mcpUrl, ready: true };
|
|
103
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arg-parser.d.ts","sourceRoot":"","sources":["../../../../src/src/cli/index/arg-parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AA+E7C,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,SAAS,CAIhE;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"arg-parser.d.ts","sourceRoot":"","sources":["../../../../src/src/cli/index/arg-parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AA+E7C,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,SAAS,CAIhE;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CAgBvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-router.d.ts","sourceRoot":"","sources":["../../../../src/src/cli/index/command-router.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAwCH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAsD7C;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"command-router.d.ts","sourceRoot":"","sources":["../../../../src/src/cli/index/command-router.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAwCH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAsD7C;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAyYlE"}
|