veryfront 0.1.47 → 0.1.49
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/esm/cli/app/components/inline-input.d.ts +1 -4
- package/esm/cli/app/components/inline-input.d.ts.map +1 -1
- package/esm/cli/app/components/inline-input.js +1 -1
- package/esm/cli/app/components/list-select.d.ts +0 -8
- package/esm/cli/app/components/list-select.d.ts.map +1 -1
- package/esm/cli/app/components/list-select.js +0 -13
- package/esm/cli/app/operations/project-creation.d.ts +2 -14
- package/esm/cli/app/operations/project-creation.d.ts.map +1 -1
- package/esm/cli/app/operations/project-creation.js +3 -68
- package/esm/cli/app/shell.js +2 -2
- package/esm/cli/app/utils.d.ts +1 -2
- package/esm/cli/app/utils.d.ts.map +1 -1
- package/esm/cli/app/utils.js +1 -17
- package/esm/cli/app/views/dashboard.d.ts +0 -4
- package/esm/cli/app/views/dashboard.d.ts.map +1 -1
- package/esm/cli/app/views/dashboard.js +0 -15
- package/esm/cli/app/views/startup.d.ts +0 -4
- package/esm/cli/app/views/startup.d.ts.map +1 -1
- package/esm/cli/app/views/startup.js +0 -7
- package/esm/cli/auth/login.d.ts.map +1 -1
- package/esm/cli/auth/login.js +1 -2
- package/esm/cli/auth/token-store.js +1 -1
- package/esm/cli/auth/utils.d.ts +2 -1
- package/esm/cli/auth/utils.d.ts.map +1 -1
- package/esm/cli/commands/build/handler.d.ts +1 -1
- package/esm/cli/commands/generate/integration-generator.js +1 -1
- package/esm/cli/commands/init/catalog.js +3 -3
- package/esm/cli/commands/init/command-help.js +2 -2
- package/esm/cli/commands/init/config-generator.d.ts.map +1 -1
- package/esm/cli/commands/init/config-generator.js +8 -0
- package/esm/cli/commands/init/types.d.ts +1 -1
- package/esm/cli/commands/init/types.d.ts.map +1 -1
- package/esm/cli/commands/install/types.d.ts +2 -2
- package/esm/cli/commands/merge/command.d.ts +1 -1
- package/esm/cli/help/formatters.d.ts +1 -1
- package/esm/cli/help/formatters.d.ts.map +1 -1
- package/esm/cli/help/formatters.js +8 -4
- package/esm/cli/help/main-help.d.ts.map +1 -1
- package/esm/cli/help/main-help.js +2 -2
- package/esm/cli/help/tips.js +1 -1
- package/esm/cli/mcp/remote-file-tools.js +1 -1
- package/esm/cli/mcp/server.d.ts +0 -1
- package/esm/cli/mcp/server.d.ts.map +1 -1
- package/esm/cli/mcp/server.js +2 -5
- package/esm/cli/mcp/tools/catalog-tools.d.ts +3 -3
- package/esm/cli/mcp/tools/catalog-tools.js +3 -3
- package/esm/cli/mcp/tools/dev-tools.d.ts +1 -1
- package/esm/cli/mcp/tools/dev-tools.d.ts.map +1 -1
- package/esm/cli/mcp/tools/dev-tools.js +1 -2
- package/esm/cli/mcp/tools/scaffold-tools.d.ts +2 -2
- package/esm/cli/mcp/tools.d.ts +1 -2
- package/esm/cli/mcp/tools.d.ts.map +1 -1
- package/esm/cli/mcp/tools.js +1 -2
- package/esm/cli/shared/reserve-slug.d.ts.map +1 -1
- package/esm/cli/shared/reserve-slug.js +1 -3
- package/esm/cli/sync/ignore.d.ts +1 -1
- package/esm/cli/sync/ignore.d.ts.map +1 -1
- package/esm/cli/sync/ignore.js +22 -18
- package/esm/cli/templates/index.js +2 -2
- package/esm/cli/templates/manifest.d.ts +10 -8
- package/esm/cli/templates/manifest.js +15 -13
- package/esm/cli/templates/types.d.ts +1 -1
- package/esm/cli/templates/types.d.ts.map +1 -1
- package/esm/cli/ui/colors.d.ts +0 -1
- package/esm/cli/ui/colors.d.ts.map +1 -1
- package/esm/cli/ui/colors.js +0 -10
- package/esm/cli/ui/dot-matrix.d.ts.map +1 -1
- package/esm/cli/ui/dot-matrix.js +2 -5
- package/esm/cli/ui/tui.js +2 -3
- package/esm/cli/utils/index.js +1 -2
- package/esm/cli/utils/package-manager.d.ts.map +1 -1
- package/esm/cli/utils/package-manager.js +3 -4
- package/esm/deno.d.ts +10 -0
- package/esm/deno.js +30 -20
- package/esm/src/agent/chat-handler.d.ts +22 -0
- package/esm/src/agent/chat-handler.d.ts.map +1 -1
- package/esm/src/agent/chat-handler.js +88 -28
- package/esm/src/agent/factory.d.ts +0 -8
- package/esm/src/agent/factory.d.ts.map +1 -1
- package/esm/src/agent/factory.js +50 -1
- package/esm/src/agent/index.d.ts +17 -2
- package/esm/src/agent/index.d.ts.map +1 -1
- package/esm/src/agent/index.js +17 -2
- package/esm/src/agent/memory/memory.d.ts +2 -2
- package/esm/src/agent/memory/memory.d.ts.map +1 -1
- package/esm/src/agent/memory/memory.js +0 -1
- package/esm/src/agent/react/index.d.ts +1 -1
- package/esm/src/agent/react/index.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/index.d.ts +1 -1
- package/esm/src/agent/react/use-chat/index.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/streaming/handler.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/streaming/handler.js +42 -4
- package/esm/src/agent/react/use-chat/streaming/parts-builder.d.ts +2 -2
- package/esm/src/agent/react/use-chat/streaming/parts-builder.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/streaming/parts-builder.js +14 -1
- package/esm/src/agent/react/use-chat/streaming/types.d.ts +5 -0
- package/esm/src/agent/react/use-chat/streaming/types.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/types.d.ts +23 -1
- package/esm/src/agent/react/use-chat/types.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/use-chat.d.ts +15 -1
- package/esm/src/agent/react/use-chat/use-chat.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/use-chat.js +187 -35
- package/esm/src/agent/runtime/index.d.ts +18 -0
- package/esm/src/agent/runtime/index.d.ts.map +1 -1
- package/esm/src/agent/runtime/index.js +167 -36
- package/esm/src/agent/runtime/tool-helpers.d.ts +6 -1
- package/esm/src/agent/runtime/tool-helpers.d.ts.map +1 -1
- package/esm/src/agent/runtime/tool-helpers.js +10 -1
- package/esm/src/agent/schemas/agent.schema.d.ts +4 -4
- package/esm/src/agent/types.d.ts +10 -0
- package/esm/src/agent/types.d.ts.map +1 -1
- package/esm/src/ai/registry-manager.d.ts.map +1 -1
- package/esm/src/ai/registry-manager.js +2 -1
- package/esm/src/build/bundler/code-splitter/manifest-builder.d.ts +0 -2
- package/esm/src/build/bundler/code-splitter/manifest-builder.d.ts.map +1 -1
- package/esm/src/build/bundler/code-splitter/manifest-builder.js +1 -1
- package/esm/src/build/compiler/mdx-compiler/validator.d.ts.map +1 -1
- package/esm/src/build/compiler/mdx-compiler/validator.js +2 -3
- package/esm/src/build/compiler/mdx-to-js.d.ts +0 -2
- package/esm/src/build/compiler/mdx-to-js.d.ts.map +1 -1
- package/esm/src/build/compiler/mdx-to-js.js +0 -81
- package/esm/src/build/index.d.ts +0 -6
- package/esm/src/build/index.d.ts.map +1 -1
- package/esm/src/build/index.js +0 -1
- package/esm/src/build/production-build/build/route-collector.d.ts.map +1 -1
- package/esm/src/build/production-build/build/route-collector.js +2 -3
- package/esm/src/build/production-build/client-runtime.d.ts +7 -3
- package/esm/src/build/production-build/client-runtime.d.ts.map +1 -1
- package/esm/src/build/production-build/client-runtime.js +9 -9
- package/esm/src/build/production-build/templates.d.ts +5 -9
- package/esm/src/build/production-build/templates.d.ts.map +1 -1
- package/esm/src/build/production-build/templates.js +6 -18
- package/esm/src/build/vendor-cache.d.ts.map +1 -1
- package/esm/src/build/vendor-cache.js +0 -5
- package/esm/src/cache/tokenizing-gateway.d.ts +0 -2
- package/esm/src/cache/tokenizing-gateway.d.ts.map +1 -1
- package/esm/src/cache/tokenizing-gateway.js +1 -3
- package/esm/src/chat/index.d.ts +33 -24
- package/esm/src/chat/index.d.ts.map +1 -1
- package/esm/src/chat/index.js +40 -26
- package/esm/src/config/define-config.d.ts.map +1 -1
- package/esm/src/config/define-config.js +28 -25
- package/esm/src/config/loader.d.ts.map +1 -1
- package/esm/src/config/loader.js +10 -7
- package/esm/src/config/schemas/config.schema.d.ts +58 -12
- package/esm/src/config/schemas/config.schema.d.ts.map +1 -1
- package/esm/src/config/schemas/config.schema.js +12 -0
- package/esm/src/data/data-fetcher.d.ts +1 -2
- package/esm/src/data/data-fetcher.d.ts.map +1 -1
- package/esm/src/data/data-fetcher.js +14 -15
- package/esm/src/data/server-data-fetcher.d.ts +0 -3
- package/esm/src/data/server-data-fetcher.d.ts.map +1 -1
- package/esm/src/data/server-data-fetcher.js +1 -8
- package/esm/src/data/static-data-fetcher.d.ts +1 -3
- package/esm/src/data/static-data-fetcher.d.ts.map +1 -1
- package/esm/src/data/static-data-fetcher.js +1 -3
- package/esm/src/discovery/discovery-engine.d.ts.map +1 -1
- package/esm/src/discovery/discovery-engine.js +19 -1
- package/esm/src/discovery/discovery-utils.d.ts +0 -4
- package/esm/src/discovery/discovery-utils.d.ts.map +1 -1
- package/esm/src/discovery/discovery-utils.js +0 -6
- package/esm/src/discovery/file-discovery.d.ts +3 -1
- package/esm/src/discovery/file-discovery.d.ts.map +1 -1
- package/esm/src/discovery/file-discovery.js +3 -8
- package/esm/src/discovery/handlers/index.d.ts +1 -0
- package/esm/src/discovery/handlers/index.d.ts.map +1 -1
- package/esm/src/discovery/handlers/index.js +1 -0
- package/esm/src/discovery/handlers/skill-handler.d.ts +26 -0
- package/esm/src/discovery/handlers/skill-handler.d.ts.map +1 -0
- package/esm/src/discovery/handlers/skill-handler.js +87 -0
- package/esm/src/discovery/handlers/task-handler.d.ts.map +1 -1
- package/esm/src/discovery/handlers/task-handler.js +1 -5
- package/esm/src/discovery/transpiler.d.ts.map +1 -1
- package/esm/src/discovery/transpiler.js +7 -2
- package/esm/src/discovery/types.d.ts +3 -0
- package/esm/src/discovery/types.d.ts.map +1 -1
- package/esm/src/embedding/chunk.d.ts +18 -0
- package/esm/src/embedding/chunk.d.ts.map +1 -0
- package/esm/src/embedding/chunk.js +48 -0
- package/esm/src/embedding/embedding.d.ts +23 -0
- package/esm/src/embedding/embedding.d.ts.map +1 -0
- package/esm/src/embedding/embedding.js +54 -0
- package/esm/src/embedding/index.d.ts +29 -0
- package/esm/src/embedding/index.d.ts.map +1 -0
- package/esm/src/embedding/index.js +26 -0
- package/esm/src/embedding/react/use-uploads.d.ts +31 -0
- package/esm/src/embedding/react/use-uploads.d.ts.map +1 -0
- package/esm/src/embedding/react/use-uploads.js +71 -0
- package/esm/src/embedding/resolve.d.ts +27 -0
- package/esm/src/embedding/resolve.d.ts.map +1 -0
- package/esm/src/embedding/resolve.js +94 -0
- package/esm/src/embedding/types.d.ts +90 -0
- package/esm/src/embedding/types.d.ts.map +1 -0
- package/esm/src/embedding/types.js +1 -0
- package/esm/src/embedding/upload-handler.d.ts +43 -0
- package/esm/src/embedding/upload-handler.d.ts.map +1 -0
- package/esm/src/embedding/upload-handler.js +144 -0
- package/esm/src/embedding/upload-loader.d.ts +14 -0
- package/esm/src/embedding/upload-loader.d.ts.map +1 -0
- package/esm/src/embedding/upload-loader.js +70 -0
- package/esm/src/embedding/upload-store.d.ts +27 -0
- package/esm/src/embedding/upload-store.d.ts.map +1 -0
- package/esm/src/embedding/upload-store.js +244 -0
- package/esm/src/embedding/vector-store.d.ts +33 -0
- package/esm/src/embedding/vector-store.d.ts.map +1 -0
- package/esm/src/embedding/vector-store.js +215 -0
- package/esm/src/errors/error-registry.d.ts +2 -1
- package/esm/src/errors/error-registry.d.ts.map +1 -1
- package/esm/src/errors/http-error.d.ts +1 -2
- package/esm/src/errors/http-error.d.ts.map +1 -1
- package/esm/src/errors/http-error.js +2 -2
- package/esm/src/errors/middleware/cli-error-boundary.d.ts.map +1 -1
- package/esm/src/errors/middleware/cli-error-boundary.js +13 -2
- package/esm/src/errors/middleware/wrap-unknown.d.ts +0 -7
- package/esm/src/errors/middleware/wrap-unknown.d.ts.map +1 -1
- package/esm/src/errors/middleware/wrap-unknown.js +0 -9
- package/esm/src/errors/veryfront-error.d.ts +0 -3
- package/esm/src/errors/veryfront-error.d.ts.map +1 -1
- package/esm/src/errors/veryfront-error.js +0 -5
- package/esm/src/html/schemas/html.schema.d.ts +2 -2
- package/esm/src/html/styles-builder/css-hash-cache.d.ts.map +1 -1
- package/esm/src/html/styles-builder/css-hash-cache.js +1 -2
- package/esm/src/html/styles-builder/plugin-loader.d.ts.map +1 -1
- package/esm/src/html/styles-builder/plugin-loader.js +50 -21
- package/esm/src/html/styles-builder/tailwind-compiler-cache.d.ts.map +1 -1
- package/esm/src/html/styles-builder/tailwind-compiler-cache.js +12 -4
- package/esm/src/html/utils.d.ts +0 -7
- package/esm/src/html/utils.d.ts.map +1 -1
- package/esm/src/html/utils.js +0 -25
- package/esm/src/modules/component-registry/registry.d.ts +0 -3
- package/esm/src/modules/component-registry/registry.d.ts.map +1 -1
- package/esm/src/modules/component-registry/registry.js +0 -3
- package/esm/src/modules/import-map/default-import-map.d.ts.map +1 -1
- package/esm/src/modules/import-map/default-import-map.js +8 -0
- package/esm/src/modules/react-loader/component-loader.d.ts.map +1 -1
- package/esm/src/modules/react-loader/component-loader.js +1 -0
- 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 +10 -1
- 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 +2 -0
- package/esm/src/modules/react-loader/types.d.ts.map +1 -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 +2 -1
- package/esm/src/oauth/handlers/callback-handler.d.ts +2 -0
- package/esm/src/oauth/handlers/callback-handler.d.ts.map +1 -1
- package/esm/src/oauth/handlers/callback-handler.js +10 -4
- package/esm/src/oauth/providers/common.d.ts.map +1 -1
- package/esm/src/oauth/providers/common.js +0 -23
- package/esm/src/observability/auto-instrument/react-instrumentation.js +2 -1
- package/esm/src/observability/instruments/instruments-factory.d.ts +1 -1
- package/esm/src/observability/instruments/instruments-factory.d.ts.map +1 -1
- package/esm/src/observability/instruments/instruments-factory.js +5 -4
- package/esm/src/observability/metrics/config.js +5 -4
- package/esm/src/observability/metrics/manager.js +1 -1
- package/esm/src/observability/tracing/span-operations.d.ts.map +1 -1
- package/esm/src/observability/tracing/span-operations.js +14 -8
- package/esm/src/platform/compat/console/node.d.ts +0 -1
- package/esm/src/platform/compat/console/node.d.ts.map +1 -1
- package/esm/src/platform/compat/console/node.js +4 -11
- package/esm/src/platform/compat/fs.d.ts.map +1 -1
- package/esm/src/platform/compat/fs.js +4 -2
- package/esm/src/platform/compat/opaque-deps.d.ts +18 -2
- package/esm/src/platform/compat/opaque-deps.d.ts.map +1 -1
- package/esm/src/platform/compat/opaque-deps.js +19 -0
- package/esm/src/platform/compat/path/basic-operations.d.ts.map +1 -1
- package/esm/src/platform/compat/path/basic-operations.js +17 -10
- package/esm/src/platform/compat/path/resolution.d.ts.map +1 -1
- package/esm/src/platform/compat/path/resolution.js +65 -20
- package/esm/src/platform/compat/path/url-conversion.d.ts.map +1 -1
- package/esm/src/platform/compat/path/url-conversion.js +3 -2
- package/esm/src/platform/compat/process.d.ts +2 -14
- package/esm/src/platform/compat/process.d.ts.map +1 -1
- package/esm/src/platform/compat/process.js +92 -70
- package/esm/src/provider/index.d.ts +1 -1
- package/esm/src/provider/index.d.ts.map +1 -1
- package/esm/src/provider/index.js +1 -1
- package/esm/src/provider/local/ai-sdk-adapter.d.ts.map +1 -1
- package/esm/src/provider/local/ai-sdk-adapter.js +18 -18
- package/esm/src/provider/local/env.d.ts.map +1 -1
- package/esm/src/provider/local/env.js +2 -1
- package/esm/src/provider/local/local-embedding-adapter.d.ts +19 -0
- package/esm/src/provider/local/local-embedding-adapter.d.ts.map +1 -0
- package/esm/src/provider/local/local-embedding-adapter.js +32 -0
- package/esm/src/provider/local/local-embedding-engine.d.ts +17 -0
- package/esm/src/provider/local/local-embedding-engine.d.ts.map +1 -0
- package/esm/src/provider/local/local-embedding-engine.js +63 -0
- package/esm/src/provider/local/local-engine.d.ts +7 -0
- package/esm/src/provider/local/local-engine.d.ts.map +1 -1
- package/esm/src/provider/local/local-engine.js +1 -1
- package/esm/src/provider/local/model-catalog.d.ts +10 -1
- package/esm/src/provider/local/model-catalog.d.ts.map +1 -1
- package/esm/src/provider/local/model-catalog.js +61 -0
- package/esm/src/provider/model-registry.d.ts +10 -0
- package/esm/src/provider/model-registry.d.ts.map +1 -1
- package/esm/src/provider/model-registry.js +43 -0
- package/esm/src/proxy/retry.d.ts +3 -3
- package/esm/src/proxy/retry.d.ts.map +1 -1
- package/esm/src/proxy/retry.js +0 -7
- package/esm/src/proxy/tracing.d.ts +1 -5
- package/esm/src/proxy/tracing.d.ts.map +1 -1
- package/esm/src/proxy/tracing.js +1 -7
- package/esm/src/react/components/ai/agent-card.js +13 -13
- package/esm/src/react/components/ai/chat/components/animations.d.ts +5 -0
- package/esm/src/react/components/ai/chat/components/animations.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/components/animations.js +13 -1
- package/esm/src/react/components/ai/chat/components/attachment-pill.d.ts +15 -0
- package/esm/src/react/components/ai/chat/components/attachment-pill.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/components/attachment-pill.js +40 -0
- package/esm/src/react/components/ai/chat/components/branch-picker.d.ts +9 -0
- package/esm/src/react/components/ai/chat/components/branch-picker.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/components/branch-picker.js +17 -0
- package/esm/src/react/components/ai/chat/components/code-block.d.ts +8 -0
- package/esm/src/react/components/ai/chat/components/code-block.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/components/code-block.js +38 -0
- package/esm/src/react/components/ai/chat/components/drop-zone.d.ts +7 -0
- package/esm/src/react/components/ai/chat/components/drop-zone.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/components/drop-zone.js +14 -0
- 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 +10 -8
- package/esm/src/react/components/ai/chat/components/inference-badge.js +1 -1
- package/esm/src/react/components/ai/chat/components/inline-citation.d.ts +10 -0
- package/esm/src/react/components/ai/chat/components/inline-citation.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/components/inline-citation.js +59 -0
- package/esm/src/react/components/ai/chat/components/message-actions.d.ts +3 -2
- 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 +10 -10
- package/esm/src/react/components/ai/chat/components/message-edit-form.d.ts +8 -0
- package/esm/src/react/components/ai/chat/components/message-edit-form.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/components/message-edit-form.js +46 -0
- package/esm/src/react/components/ai/chat/components/message-feedback.d.ts +9 -0
- package/esm/src/react/components/ai/chat/components/message-feedback.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/components/message-feedback.js +19 -0
- package/esm/src/react/components/ai/chat/components/quick-actions.d.ts +14 -0
- package/esm/src/react/components/ai/chat/components/quick-actions.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/components/quick-actions.js +7 -0
- package/esm/src/react/components/ai/chat/components/reasoning.d.ts +3 -4
- package/esm/src/react/components/ai/chat/components/reasoning.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/components/reasoning.js +11 -6
- package/esm/src/react/components/ai/chat/components/sidebar.d.ts +14 -0
- package/esm/src/react/components/ai/chat/components/sidebar.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/components/sidebar.js +92 -0
- package/esm/src/react/components/ai/chat/components/skill-badge.d.ts +12 -0
- package/esm/src/react/components/ai/chat/components/skill-badge.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/components/skill-badge.js +34 -0
- package/esm/src/react/components/ai/chat/components/sources.d.ts +13 -0
- package/esm/src/react/components/ai/chat/components/sources.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/components/sources.js +28 -0
- package/esm/src/react/components/ai/chat/components/step-indicator.d.ts +8 -0
- package/esm/src/react/components/ai/chat/components/step-indicator.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/components/step-indicator.js +15 -0
- package/esm/src/react/components/ai/chat/components/tab-switcher.d.ts +16 -0
- package/esm/src/react/components/ai/chat/components/tab-switcher.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/components/tab-switcher.js +28 -0
- 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 +23 -21
- package/esm/src/react/components/ai/chat/components/upgrade-cta.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/components/upgrade-cta.js +3 -3
- package/esm/src/react/components/ai/chat/components/uploads-panel.d.ts +16 -0
- package/esm/src/react/components/ai/chat/components/uploads-panel.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/components/uploads-panel.js +46 -0
- package/esm/src/react/components/ai/chat/composition/api.d.ts +10 -5
- package/esm/src/react/components/ai/chat/composition/api.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/composition/api.js +12 -20
- package/esm/src/react/components/ai/chat/composition/chat-composer.d.ts +35 -0
- package/esm/src/react/components/ai/chat/composition/chat-composer.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/composition/chat-composer.js +53 -0
- package/esm/src/react/components/ai/chat/composition/chat-empty.d.ts +20 -0
- package/esm/src/react/components/ai/chat/composition/chat-empty.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/composition/chat-empty.js +23 -0
- package/esm/src/react/components/ai/chat/composition/chat-if.d.ts +14 -0
- package/esm/src/react/components/ai/chat/composition/chat-if.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/composition/chat-if.js +11 -0
- package/esm/src/react/components/ai/chat/composition/chat-message-list.d.ts +36 -0
- package/esm/src/react/components/ai/chat/composition/chat-message-list.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/composition/chat-message-list.js +113 -0
- package/esm/src/react/components/ai/chat/composition/chat-root.d.ts +43 -0
- package/esm/src/react/components/ai/chat/composition/chat-root.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/composition/chat-root.js +78 -0
- package/esm/src/react/components/ai/chat/composition/error-banner.d.ts +12 -0
- package/esm/src/react/components/ai/chat/composition/error-banner.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/composition/error-banner.js +17 -0
- package/esm/src/react/components/ai/chat/composition/message.d.ts +54 -0
- package/esm/src/react/components/ai/chat/composition/message.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/composition/message.js +175 -0
- package/esm/src/react/components/ai/chat/composition/model-avatar.d.ts +14 -0
- package/esm/src/react/components/ai/chat/composition/model-avatar.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/composition/model-avatar.js +60 -0
- package/esm/src/react/components/ai/chat/contexts/chat-context.d.ts +45 -0
- package/esm/src/react/components/ai/chat/contexts/chat-context.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/contexts/chat-context.js +20 -0
- package/esm/src/react/components/ai/chat/contexts/composer-context.d.ts +34 -0
- package/esm/src/react/components/ai/chat/contexts/composer-context.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/contexts/composer-context.js +21 -0
- package/esm/src/react/components/ai/chat/contexts/index.d.ts +13 -0
- package/esm/src/react/components/ai/chat/contexts/index.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/contexts/index.js +12 -0
- package/esm/src/react/components/ai/chat/contexts/message-context.d.ts +30 -0
- package/esm/src/react/components/ai/chat/contexts/message-context.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/contexts/message-context.js +21 -0
- package/esm/src/react/components/ai/chat/contexts/thread-list-context.d.ts +23 -0
- package/esm/src/react/components/ai/chat/contexts/thread-list-context.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/contexts/thread-list-context.js +21 -0
- package/esm/src/react/components/ai/chat/hooks/use-threads.d.ts +24 -0
- package/esm/src/react/components/ai/chat/hooks/use-threads.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/hooks/use-threads.js +151 -0
- package/esm/src/react/components/ai/chat/index.d.ts +102 -17
- package/esm/src/react/components/ai/chat/index.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/index.js +164 -95
- package/esm/src/react/components/ai/chat/utils/export.d.ts +10 -0
- package/esm/src/react/components/ai/chat/utils/export.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/utils/export.js +64 -0
- package/esm/src/react/components/ai/chat/utils/message-parts.d.ts +12 -0
- package/esm/src/react/components/ai/chat/utils/message-parts.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/utils/message-parts.js +55 -0
- package/esm/src/react/components/ai/chat-with-sidebar.d.ts +98 -0
- package/esm/src/react/components/ai/chat-with-sidebar.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat-with-sidebar.js +165 -0
- package/esm/src/react/components/ai/chat.d.ts +10 -1
- package/esm/src/react/components/ai/chat.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat.js +25 -1
- package/esm/src/react/components/ai/error-boundary.js +6 -6
- package/esm/src/react/components/ai/icons/index.d.ts +9 -0
- package/esm/src/react/components/ai/icons/index.d.ts.map +1 -1
- package/esm/src/react/components/ai/icons/index.js +82 -0
- package/esm/src/react/components/ai/markdown.d.ts.map +1 -1
- package/esm/src/react/components/ai/markdown.js +12 -12
- package/esm/src/react/components/ai/model-selector.d.ts +10 -2
- package/esm/src/react/components/ai/model-selector.d.ts.map +1 -1
- package/esm/src/react/components/ai/model-selector.js +138 -4
- package/esm/src/react/components/ai/theme.d.ts +96 -13
- package/esm/src/react/components/ai/theme.d.ts.map +1 -1
- package/esm/src/react/components/ai/theme.js +177 -21
- package/esm/src/react/primitives/input-box.d.ts.map +1 -1
- package/esm/src/react/primitives/input-box.js +16 -3
- package/esm/src/rendering/cache/index.d.ts +1 -5
- package/esm/src/rendering/cache/index.d.ts.map +1 -1
- package/esm/src/rendering/cache/index.js +1 -5
- package/esm/src/rendering/component-handling.d.ts +2 -0
- package/esm/src/rendering/component-handling.d.ts.map +1 -1
- package/esm/src/rendering/component-handling.js +7 -9
- package/esm/src/rendering/orchestrator/pipeline.d.ts +11 -2
- package/esm/src/rendering/orchestrator/pipeline.d.ts.map +1 -1
- package/esm/src/rendering/page-renderer.d.ts.map +1 -1
- package/esm/src/rendering/page-renderer.js +1 -0
- package/esm/src/rendering/shared/context-aware-cache.d.ts.map +1 -1
- package/esm/src/rendering/shared/context-aware-cache.js +0 -4
- package/esm/src/repositories/schemas/index.d.ts +1 -1
- package/esm/src/repositories/schemas/index.d.ts.map +1 -1
- package/esm/src/repositories/schemas/index.js +1 -1
- package/esm/src/repositories/schemas/repository.schema.d.ts +0 -11
- package/esm/src/repositories/schemas/repository.schema.d.ts.map +1 -1
- package/esm/src/repositories/schemas/repository.schema.js +0 -13
- package/esm/src/repositories/types.d.ts +1 -1
- package/esm/src/repositories/types.d.ts.map +1 -1
- package/esm/src/routing/api/module-loader/esbuild-plugin.d.ts.map +1 -1
- package/esm/src/routing/api/module-loader/esbuild-plugin.js +11 -24
- package/esm/src/routing/api/module-loader/loader.d.ts +1 -0
- package/esm/src/routing/api/module-loader/loader.d.ts.map +1 -1
- package/esm/src/routing/api/module-loader/loader.js +347 -27
- package/esm/src/routing/api/openapi/path-utils.d.ts +0 -19
- package/esm/src/routing/api/openapi/path-utils.d.ts.map +1 -1
- package/esm/src/routing/api/openapi/path-utils.js +0 -34
- package/esm/src/routing/api/openapi/spec-generator.d.ts.map +1 -1
- package/esm/src/routing/api/openapi/spec-generator.js +1 -19
- package/esm/src/routing/api/openapi/types.d.ts +1 -0
- package/esm/src/routing/api/openapi/types.d.ts.map +1 -1
- package/esm/src/routing/api/openapi/types.js +18 -0
- package/esm/src/sandbox/sandbox.d.ts +1 -0
- package/esm/src/sandbox/sandbox.d.ts.map +1 -1
- package/esm/src/sandbox/sandbox.js +7 -8
- package/esm/src/security/http/cors/constants.d.ts +0 -2
- package/esm/src/security/http/cors/constants.d.ts.map +1 -1
- package/esm/src/security/http/cors/constants.js +0 -2
- package/esm/src/security/http/response/index.d.ts +3 -4
- package/esm/src/security/http/response/index.d.ts.map +1 -1
- package/esm/src/security/http/response/index.js +2 -3
- package/esm/src/server/context/enriched-context.d.ts +0 -8
- package/esm/src/server/context/enriched-context.d.ts.map +1 -1
- package/esm/src/server/context/enriched-context.js +1 -12
- package/esm/src/server/dev-server/server.d.ts.map +1 -1
- package/esm/src/server/dev-server/server.js +11 -4
- package/esm/src/server/dev-ui/manifest.d.ts +20 -20
- package/esm/src/server/dev-ui/manifest.js +20 -20
- package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts +9 -0
- package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -0
- package/esm/src/server/handlers/dev/framework-candidates.generated.js +5187 -0
- package/esm/src/server/handlers/dev/styles-candidate-scanner.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/styles-candidate-scanner.js +3 -190
- 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 +1 -0
- package/esm/src/server/runtime-handler/index.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/index.js +14 -24
- package/esm/src/server/shared/renderer/memory/pressure.d.ts +0 -7
- package/esm/src/server/shared/renderer/memory/pressure.d.ts.map +1 -1
- package/esm/src/server/shared/renderer/memory/pressure.js +1 -13
- package/esm/src/server/utils/domain-lookup.d.ts +0 -4
- package/esm/src/server/utils/domain-lookup.d.ts.map +1 -1
- package/esm/src/server/utils/domain-lookup.js +0 -3
- package/esm/src/skill/allowed-tools.d.ts +54 -0
- package/esm/src/skill/allowed-tools.d.ts.map +1 -0
- package/esm/src/skill/allowed-tools.js +87 -0
- package/esm/src/skill/executor.d.ts +28 -0
- package/esm/src/skill/executor.d.ts.map +1 -0
- package/esm/src/skill/executor.js +187 -0
- package/esm/src/skill/index.d.ts +19 -0
- package/esm/src/skill/index.d.ts.map +1 -0
- package/esm/src/skill/index.js +24 -0
- package/esm/src/skill/parser.d.ts +30 -0
- package/esm/src/skill/parser.d.ts.map +1 -0
- package/esm/src/skill/parser.js +162 -0
- package/esm/src/skill/path-safety.d.ts +22 -0
- package/esm/src/skill/path-safety.d.ts.map +1 -0
- package/esm/src/skill/path-safety.js +156 -0
- package/esm/src/skill/prompt-augmentation.d.ts +19 -0
- package/esm/src/skill/prompt-augmentation.d.ts.map +1 -0
- package/esm/src/skill/prompt-augmentation.js +36 -0
- package/esm/src/skill/registry.d.ts +25 -0
- package/esm/src/skill/registry.d.ts.map +1 -0
- package/esm/src/skill/registry.js +42 -0
- package/esm/src/skill/tools.d.ts +27 -0
- package/esm/src/skill/tools.d.ts.map +1 -0
- package/esm/src/skill/tools.js +149 -0
- package/esm/src/skill/types.d.ts +85 -0
- package/esm/src/skill/types.d.ts.map +1 -0
- package/esm/src/skill/types.js +27 -0
- package/esm/src/studio/bridge/bridge-bundle.generated.d.ts +1 -1
- package/esm/src/studio/bridge/bridge-bundle.generated.d.ts.map +1 -1
- package/esm/src/studio/bridge/bridge-bundle.generated.js +1 -1
- package/esm/src/studio/element-selector-injector.d.ts +0 -2
- package/esm/src/studio/element-selector-injector.d.ts.map +1 -1
- package/esm/src/task/runner.d.ts +6 -0
- package/esm/src/task/runner.d.ts.map +1 -1
- package/esm/src/task/runner.js +8 -8
- package/esm/src/tool/factory.js +31 -39
- package/esm/src/transforms/esm/http-cache-helpers.d.ts +0 -8
- package/esm/src/transforms/esm/http-cache-helpers.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-cache-helpers.js +0 -20
- package/esm/src/transforms/esm/path-resolver.d.ts +0 -14
- package/esm/src/transforms/esm/path-resolver.d.ts.map +1 -1
- package/esm/src/transforms/esm/path-resolver.js +1 -92
- package/esm/src/transforms/esm/source-url-embed.d.ts +0 -14
- package/esm/src/transforms/esm/source-url-embed.d.ts.map +1 -1
- package/esm/src/transforms/esm/source-url-embed.js +0 -47
- package/esm/src/transforms/esm/transform-cache.d.ts.map +1 -1
- package/esm/src/transforms/esm/transform-cache.js +2 -6
- package/esm/src/transforms/mdx/index.d.ts +0 -1
- package/esm/src/transforms/mdx/index.d.ts.map +1 -1
- package/esm/src/transforms/mdx/index.js +0 -4
- package/esm/src/transforms/pipeline/context.d.ts +0 -1
- package/esm/src/transforms/pipeline/context.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/context.js +0 -1
- package/esm/src/transforms/pipeline/index.d.ts +1 -2
- package/esm/src/transforms/pipeline/index.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/index.js +0 -3
- package/esm/src/transforms/pipeline/stages/ssr-http-cache.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/stages/ssr-http-cache.js +0 -1
- package/esm/src/transforms/plugins/rehype-node-positions.d.ts.map +1 -1
- package/esm/src/transforms/plugins/rehype-node-positions.js +1 -0
- package/esm/src/types/entities/getEntityInfo.js +1 -1
- package/esm/src/types/index.d.ts +2 -13
- package/esm/src/types/index.d.ts.map +1 -1
- package/esm/src/types/server.d.ts +2 -1
- package/esm/src/types/server.d.ts.map +1 -1
- package/esm/src/utils/cache-file-ops.d.ts +1 -1
- package/esm/src/utils/cache-file-ops.d.ts.map +1 -1
- package/esm/src/utils/cache-file-ops.js +5 -6
- package/esm/src/utils/lru-wrapper.d.ts.map +1 -1
- package/esm/src/utils/lru-wrapper.js +2 -4
- package/esm/src/workflow/claude-code/event-publisher.d.ts +0 -4
- package/esm/src/workflow/claude-code/event-publisher.d.ts.map +1 -1
- package/esm/src/workflow/claude-code/event-publisher.js +2 -6
- package/esm/src/workflow/executor/workflow-executor.d.ts.map +1 -1
- package/esm/src/workflow/executor/workflow-executor.js +6 -1
- package/esm/src/workflow/react/use-workflow-list.d.ts.map +1 -1
- package/esm/src/workflow/react/use-workflow-list.js +2 -1
- package/esm/src/workflow/schemas/workflow.schema.d.ts +8 -8
- package/package.json +10 -3
- package/src/cli/app/components/inline-input.ts +0 -5
- package/src/cli/app/components/list-select.ts +0 -21
- package/src/cli/app/operations/project-creation.ts +4 -109
- package/src/cli/app/shell.ts +2 -2
- package/src/cli/app/utils.ts +0 -22
- package/src/cli/app/views/dashboard.ts +0 -17
- package/src/cli/app/views/startup.ts +0 -13
- package/src/cli/auth/login.ts +1 -2
- package/src/cli/auth/token-store.ts +1 -1
- package/src/cli/auth/utils.ts +2 -1
- package/src/cli/commands/generate/integration-generator.ts +1 -1
- package/src/cli/commands/init/catalog.ts +3 -3
- package/src/cli/commands/init/command-help.ts +2 -2
- package/src/cli/commands/init/config-generator.ts +9 -0
- package/src/cli/commands/init/types.ts +1 -1
- package/src/cli/help/formatters.ts +11 -4
- package/src/cli/help/main-help.ts +2 -3
- package/src/cli/help/tips.ts +1 -1
- package/src/cli/mcp/remote-file-tools.ts +1 -1
- package/src/cli/mcp/server.ts +2 -5
- package/src/cli/mcp/tools/catalog-tools.ts +3 -3
- package/src/cli/mcp/tools/dev-tools.ts +1 -2
- package/src/cli/mcp/tools.ts +8 -2
- package/src/cli/shared/reserve-slug.ts +1 -4
- package/src/cli/sync/ignore.ts +26 -21
- package/src/cli/templates/index.ts +2 -2
- package/src/cli/templates/manifest.js +15 -13
- package/src/cli/templates/types.ts +1 -1
- package/src/cli/ui/colors.ts +0 -12
- package/src/cli/ui/dot-matrix.ts +3 -6
- package/src/cli/ui/tui.ts +3 -3
- package/src/cli/utils/index.ts +1 -1
- package/src/cli/utils/package-manager.ts +3 -4
- package/src/deno.js +30 -20
- package/src/src/agent/chat-handler.ts +138 -28
- package/src/src/agent/factory.ts +58 -9
- package/src/src/agent/index.ts +24 -2
- package/src/src/agent/memory/memory.ts +0 -9
- package/src/src/agent/react/index.ts +2 -0
- package/src/src/agent/react/use-chat/index.ts +2 -0
- package/src/src/agent/react/use-chat/streaming/handler.ts +66 -5
- package/src/src/agent/react/use-chat/streaming/parts-builder.ts +18 -1
- package/src/src/agent/react/use-chat/streaming/types.ts +6 -0
- package/src/src/agent/react/use-chat/types.ts +26 -1
- package/src/src/agent/react/use-chat/use-chat.ts +245 -36
- package/src/src/agent/runtime/index.ts +213 -35
- package/src/src/agent/runtime/tool-helpers.ts +9 -0
- package/src/src/agent/types.ts +10 -0
- package/src/src/ai/registry-manager.ts +2 -1
- package/src/src/build/bundler/code-splitter/manifest-builder.ts +1 -1
- package/src/src/build/compiler/mdx-compiler/validator.ts +3 -7
- package/src/src/build/compiler/mdx-to-js.ts +0 -101
- package/src/src/build/index.ts +0 -8
- package/src/src/build/production-build/build/route-collector.ts +2 -4
- package/src/src/build/production-build/client-runtime.ts +21 -5
- package/src/src/build/production-build/templates.ts +9 -18
- package/src/src/build/vendor-cache.ts +0 -6
- package/src/src/cache/tokenizing-gateway.ts +1 -9
- package/src/src/chat/index.ts +169 -34
- package/src/src/config/define-config.ts +30 -29
- package/src/src/config/loader.ts +10 -9
- package/src/src/config/schemas/config.schema.ts +12 -0
- package/src/src/data/data-fetcher.ts +15 -21
- package/src/src/data/server-data-fetcher.ts +1 -8
- package/src/src/data/static-data-fetcher.ts +1 -6
- package/src/src/discovery/discovery-engine.ts +27 -0
- package/src/src/discovery/discovery-utils.ts +0 -7
- package/src/src/discovery/file-discovery.ts +3 -9
- package/src/src/discovery/handlers/index.ts +1 -0
- package/src/src/discovery/handlers/skill-handler.ts +123 -0
- package/src/src/discovery/handlers/task-handler.ts +1 -5
- package/src/src/discovery/transpiler.ts +7 -2
- package/src/src/discovery/types.ts +3 -0
- package/src/src/embedding/chunk.ts +60 -0
- package/src/src/embedding/embedding.ts +62 -0
- package/src/src/embedding/index.ts +49 -0
- package/src/src/embedding/react/use-uploads.ts +101 -0
- package/src/src/embedding/resolve.ts +126 -0
- package/src/src/embedding/types.ts +103 -0
- package/src/src/embedding/upload-handler.ts +180 -0
- package/src/src/embedding/upload-loader.ts +76 -0
- package/src/src/embedding/upload-store.ts +299 -0
- package/src/src/embedding/vector-store.ts +282 -0
- package/src/src/errors/error-registry.ts +2 -2
- package/src/src/errors/http-error.ts +7 -3
- package/src/src/errors/middleware/cli-error-boundary.ts +28 -2
- package/src/src/errors/middleware/wrap-unknown.ts +0 -10
- package/src/src/errors/veryfront-error.ts +0 -9
- package/src/src/html/styles-builder/css-hash-cache.ts +5 -2
- package/src/src/html/styles-builder/plugin-loader.ts +58 -21
- package/src/src/html/styles-builder/tailwind-compiler-cache.ts +11 -4
- package/src/src/html/utils.ts +0 -33
- package/src/src/modules/component-registry/registry.ts +0 -3
- package/src/src/modules/import-map/default-import-map.ts +10 -0
- package/src/src/modules/react-loader/component-loader.ts +1 -0
- package/src/src/modules/react-loader/ssr-module-loader/loader.ts +12 -1
- package/src/src/modules/react-loader/ssr-module-loader/types.ts +2 -0
- package/src/src/modules/react-loader/types.ts +2 -0
- package/src/src/modules/server/module-server.ts +4 -1
- package/src/src/modules/server/websocket-handler.ts +1 -1
- package/src/src/oauth/handlers/callback-handler.ts +17 -5
- package/src/src/oauth/providers/base.ts +3 -3
- package/src/src/oauth/providers/common.ts +0 -23
- package/src/src/observability/auto-instrument/react-instrumentation.ts +2 -2
- package/src/src/observability/instruments/instruments-factory.ts +6 -6
- package/src/src/observability/metrics/config.ts +5 -5
- package/src/src/observability/metrics/manager.ts +1 -1
- package/src/src/observability/tracing/span-operations.ts +14 -9
- package/src/src/platform/compat/console/node.ts +4 -14
- package/src/src/platform/compat/fs.ts +14 -3
- package/src/src/platform/compat/opaque-deps.ts +32 -2
- package/src/src/platform/compat/path/basic-operations.ts +19 -10
- package/src/src/platform/compat/path/resolution.ts +69 -18
- package/src/src/platform/compat/path/url-conversion.ts +10 -6
- package/src/src/platform/compat/process.ts +133 -76
- package/src/src/provider/index.ts +1 -0
- package/src/src/provider/local/ai-sdk-adapter.ts +40 -37
- package/src/src/provider/local/env.ts +4 -1
- package/src/src/provider/local/local-embedding-adapter.ts +37 -0
- package/src/src/provider/local/local-embedding-engine.ts +88 -0
- package/src/src/provider/local/local-engine.ts +1 -1
- package/src/src/provider/local/model-catalog.ts +67 -1
- package/src/src/provider/model-registry.ts +47 -0
- package/src/src/proxy/retry.ts +0 -9
- package/src/src/proxy/tracing.ts +1 -9
- package/src/src/react/components/ai/agent-card.tsx +13 -13
- package/src/src/react/components/ai/chat/components/animations.tsx +31 -1
- package/src/src/react/components/ai/chat/components/attachment-pill.tsx +110 -0
- package/src/src/react/components/ai/chat/components/branch-picker.tsx +70 -0
- package/src/src/react/components/ai/chat/components/code-block.tsx +82 -0
- package/src/src/react/components/ai/chat/components/drop-zone.tsx +49 -0
- package/src/src/react/components/ai/chat/components/empty-state.tsx +20 -8
- package/src/src/react/components/ai/chat/components/inference-badge.tsx +1 -1
- package/src/src/react/components/ai/chat/components/inline-citation.tsx +150 -0
- package/src/src/react/components/ai/chat/components/message-actions.tsx +73 -51
- package/src/src/react/components/ai/chat/components/message-edit-form.tsx +95 -0
- package/src/src/react/components/ai/chat/components/message-feedback.tsx +72 -0
- package/src/src/react/components/ai/chat/components/quick-actions.tsx +38 -0
- package/src/src/react/components/ai/chat/components/reasoning.tsx +40 -35
- package/src/src/react/components/ai/chat/components/sidebar.tsx +204 -0
- package/src/src/react/components/ai/chat/components/skill-badge.tsx +51 -0
- package/src/src/react/components/ai/chat/components/sources.tsx +99 -0
- package/src/src/react/components/ai/chat/components/step-indicator.tsx +33 -0
- package/src/src/react/components/ai/chat/components/tab-switcher.tsx +69 -0
- package/src/src/react/components/ai/chat/components/tool-ui.tsx +31 -29
- package/src/src/react/components/ai/chat/components/upgrade-cta.tsx +3 -4
- package/src/src/react/components/ai/chat/components/uploads-panel.tsx +129 -0
- package/src/src/react/components/ai/chat/composition/api.tsx +12 -62
- package/src/src/react/components/ai/chat/composition/chat-composer.tsx +205 -0
- package/src/src/react/components/ai/chat/composition/chat-empty.tsx +77 -0
- package/src/src/react/components/ai/chat/composition/chat-if.tsx +25 -0
- package/src/src/react/components/ai/chat/composition/chat-message-list.tsx +356 -0
- package/src/src/react/components/ai/chat/composition/chat-root.tsx +181 -0
- package/src/src/react/components/ai/chat/composition/error-banner.tsx +38 -0
- package/src/src/react/components/ai/chat/composition/message.tsx +337 -0
- package/src/src/react/components/ai/chat/composition/model-avatar.tsx +103 -0
- package/src/src/react/components/ai/chat/contexts/chat-context.tsx +78 -0
- package/src/src/react/components/ai/chat/contexts/composer-context.tsx +59 -0
- package/src/src/react/components/ai/chat/contexts/index.ts +36 -0
- package/src/src/react/components/ai/chat/contexts/message-context.tsx +49 -0
- package/src/src/react/components/ai/chat/contexts/thread-list-context.tsx +40 -0
- package/src/src/react/components/ai/chat/hooks/use-threads.ts +208 -0
- package/src/src/react/components/ai/chat/index.tsx +389 -230
- package/src/src/react/components/ai/chat/utils/export.ts +77 -0
- package/src/src/react/components/ai/chat/utils/message-parts.ts +63 -1
- package/src/src/react/components/ai/chat-with-sidebar.tsx +371 -0
- package/src/src/react/components/ai/chat.tsx +122 -7
- package/src/src/react/components/ai/error-boundary.tsx +6 -6
- package/src/src/react/components/ai/icons/index.ts +100 -0
- package/src/src/react/components/ai/markdown.tsx +12 -15
- package/src/src/react/components/ai/model-selector.tsx +223 -15
- package/src/src/react/components/ai/theme.ts +205 -39
- package/src/src/react/primitives/input-box.tsx +27 -4
- package/src/src/rendering/cache/index.ts +12 -5
- package/src/src/rendering/component-handling.ts +9 -9
- package/src/src/rendering/orchestrator/pipeline.ts +12 -2
- package/src/src/rendering/page-renderer.ts +1 -0
- package/src/src/rendering/renderer.ts +1 -1
- package/src/src/rendering/shared/context-aware-cache.ts +0 -5
- package/src/src/repositories/schemas/index.ts +0 -2
- package/src/src/repositories/schemas/repository.schema.ts +0 -15
- package/src/src/repositories/types.ts +1 -6
- package/src/src/routing/api/module-loader/esbuild-plugin.ts +11 -25
- package/src/src/routing/api/module-loader/loader.ts +421 -17
- package/src/src/routing/api/openapi/path-utils.ts +0 -39
- package/src/src/routing/api/openapi/spec-generator.ts +1 -20
- package/src/src/routing/api/openapi/types.ts +20 -0
- package/src/src/sandbox/sandbox.ts +8 -8
- package/src/src/security/http/cors/constants.ts +0 -4
- package/src/src/security/http/response/index.ts +3 -9
- package/src/src/server/context/enriched-context.ts +1 -19
- package/src/src/server/dev-server/server.ts +11 -4
- package/src/src/server/dev-ui/manifest.js +20 -20
- package/src/src/server/handlers/dev/framework-candidates.generated.ts +5188 -0
- package/src/src/server/handlers/dev/styles-candidate-scanner.ts +3 -191
- package/src/src/server/handlers/request/module/module-server-handler.ts +1 -0
- package/src/src/server/runtime-handler/index.ts +17 -28
- package/src/src/server/shared/renderer/memory/pressure.ts +2 -15
- package/src/src/server/utils/domain-lookup.ts +0 -4
- package/src/src/skill/allowed-tools.ts +107 -0
- package/src/src/skill/executor.ts +215 -0
- package/src/src/skill/index.ts +60 -0
- package/src/src/skill/parser.ts +214 -0
- package/src/src/skill/path-safety.ts +203 -0
- package/src/src/skill/prompt-augmentation.ts +48 -0
- package/src/src/skill/registry.ts +51 -0
- package/src/src/skill/tools.ts +197 -0
- package/src/src/skill/types.ts +107 -0
- package/src/src/studio/bridge/bridge-bundle.generated.ts +1 -1
- package/src/src/studio/element-selector-injector.ts +0 -2
- package/src/src/task/runner.ts +10 -8
- package/src/src/tool/factory.ts +54 -54
- package/src/src/transforms/esm/http-cache-helpers.ts +0 -20
- package/src/src/transforms/esm/path-resolver.ts +1 -140
- package/src/src/transforms/esm/source-url-embed.ts +0 -53
- package/src/src/transforms/esm/transform-cache.ts +3 -7
- package/src/src/transforms/mdx/index.ts +0 -5
- package/src/src/transforms/pipeline/context.ts +0 -2
- package/src/src/transforms/pipeline/index.ts +0 -4
- package/src/src/transforms/pipeline/stages/ssr-http-cache.ts +0 -1
- package/src/src/transforms/plugins/rehype-node-positions.ts +1 -0
- package/src/src/types/entities/getEntityInfo.ts +1 -1
- package/src/src/types/index.ts +1 -20
- package/src/src/types/server.ts +1 -1
- package/src/src/utils/cache-file-ops.ts +5 -5
- package/src/src/utils/logger/logger.ts +2 -2
- package/src/src/utils/lru-wrapper.ts +2 -8
- package/src/src/workflow/claude-code/event-publisher.ts +13 -4
- package/src/src/workflow/executor/workflow-executor.ts +7 -2
- package/src/src/workflow/react/use-workflow-list.ts +3 -2
- package/esm/src/transforms/mdx/parser.d.ts +0 -4
- package/esm/src/transforms/mdx/parser.d.ts.map +0 -1
- package/esm/src/transforms/mdx/parser.js +0 -49
- package/src/src/transforms/mdx/parser.ts +0 -65
|
@@ -1,32 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chat UI Component System
|
|
3
|
+
*
|
|
4
|
+
* Provides a full-featured chat interface via the `Chat` preset component,
|
|
5
|
+
* along with composable building blocks for custom layouts.
|
|
6
|
+
*
|
|
7
|
+
* @example Quick start (preset)
|
|
8
|
+
* ```tsx
|
|
9
|
+
* import { Chat, useChat } from "veryfront/chat";
|
|
10
|
+
*
|
|
11
|
+
* export default function Page() {
|
|
12
|
+
* const chat = useChat({ api: "/api/chat" });
|
|
13
|
+
* return (
|
|
14
|
+
* <Chat
|
|
15
|
+
* messages={chat.messages}
|
|
16
|
+
* input={chat.input}
|
|
17
|
+
* onChange={chat.handleInputChange}
|
|
18
|
+
* onSubmit={chat.handleSubmit}
|
|
19
|
+
* />
|
|
20
|
+
* );
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @example Custom layout (composition)
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <Chat.Root messages={messages} input={input}>
|
|
27
|
+
* <Chat.Empty title="Ask anything" />
|
|
28
|
+
* <Chat.MessageList messages={messages} />
|
|
29
|
+
* <Chat.Composer input={input} onChange={onChange} />
|
|
30
|
+
* </Chat.Root>
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @example Per-message control (compound)
|
|
34
|
+
* ```tsx
|
|
35
|
+
* import { Message } from "veryfront/chat";
|
|
36
|
+
*
|
|
37
|
+
* <Message.Root message={msg}>
|
|
38
|
+
* <Message.Avatar />
|
|
39
|
+
* <Message.Content />
|
|
40
|
+
* <Message.Actions />
|
|
41
|
+
* </Message.Root>
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @module ai/react/components/chat
|
|
45
|
+
*/
|
|
1
46
|
import * as React from "react";
|
|
2
|
-
import { ChatContainer, InputBox, MessageItem, MessageList, SubmitButton, } from "../../../primitives/index.js";
|
|
3
47
|
import { useVoiceInput } from "../../../../agent/react/index.js";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
48
|
+
import { defaultChatTheme, mergeThemes } from "../theme.js";
|
|
49
|
+
// Composition imports (used in the Chat preset)
|
|
50
|
+
import { ChatRoot } from "./composition/chat-root.js";
|
|
51
|
+
import { ChatComposer } from "./composition/chat-composer.js";
|
|
52
|
+
import { ChatMessageList } from "./composition/chat-message-list.js";
|
|
53
|
+
import { ChatEmpty } from "./composition/chat-empty.js";
|
|
54
|
+
import { ChatIf } from "./composition/chat-if.js";
|
|
55
|
+
import { ErrorBanner } from "./composition/error-banner.js";
|
|
56
|
+
import { Message } from "./composition/message.js";
|
|
57
|
+
import { DropZoneOverlay } from "./components/drop-zone.js";
|
|
58
|
+
import { TabSwitcher } from "./components/tab-switcher.js";
|
|
59
|
+
import { UploadsPanel } from "./components/uploads-panel.js";
|
|
60
|
+
import { InferenceBadge } from "./components/inference-badge.js";
|
|
61
|
+
import { UpgradeCTA } from "./components/upgrade-cta.js";
|
|
62
|
+
import { QuickActions as QuickActionsComponent } from "./components/quick-actions.js";
|
|
63
|
+
// ---------------------------------------------------------------------------
|
|
64
|
+
// Re-exports — sub-components
|
|
65
|
+
// ---------------------------------------------------------------------------
|
|
66
|
+
export { FadeIn, Loader, Shimmer } from "./components/animations.js";
|
|
9
67
|
export { ReasoningCard } from "./components/reasoning.js";
|
|
10
68
|
export { ConversationEmptyState, ConversationScrollButton, Suggestion, Suggestions, } from "./components/empty-state.js";
|
|
11
69
|
export { MessageActions } from "./components/message-actions.js";
|
|
70
|
+
export { MessageEditForm } from "./components/message-edit-form.js";
|
|
71
|
+
export { BranchPicker } from "./components/branch-picker.js";
|
|
72
|
+
export { DropZoneOverlay } from "./components/drop-zone.js";
|
|
73
|
+
export { SkillBadge } from "./components/skill-badge.js";
|
|
12
74
|
export { ToolCallCard, ToolStatusBadge } from "./components/tool-ui.js";
|
|
13
75
|
export { InferenceBadge } from "./components/inference-badge.js";
|
|
14
76
|
export { UpgradeCTA } from "./components/upgrade-cta.js";
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
77
|
+
export { Sources } from "./components/sources.js";
|
|
78
|
+
export { InlineCitation } from "./components/inline-citation.js";
|
|
79
|
+
export { MessageFeedback, } from "./components/message-feedback.js";
|
|
80
|
+
export { AttachmentPill, } from "./components/attachment-pill.js";
|
|
81
|
+
export { RichCodeBlock } from "./components/code-block.js";
|
|
82
|
+
export { StepIndicator } from "./components/step-indicator.js";
|
|
83
|
+
export { ChatSidebar } from "./components/sidebar.js";
|
|
84
|
+
export { TabSwitcher } from "./components/tab-switcher.js";
|
|
85
|
+
export { QuickActions, } from "./components/quick-actions.js";
|
|
86
|
+
export { UploadsPanel, } from "./components/uploads-panel.js";
|
|
87
|
+
// Re-exports — hooks
|
|
88
|
+
export { useThreads, } from "./hooks/use-threads.js";
|
|
89
|
+
// Re-exports — utils
|
|
90
|
+
export { extractSourcesFromParts, getTextContent, groupPartsInOrder, isReasoningPart, isSkillToolPart, isToolPart, } from "./utils/message-parts.js";
|
|
91
|
+
export { downloadMarkdown, exportAsMarkdown } from "./utils/export.js";
|
|
92
|
+
// Re-exports — composition
|
|
93
|
+
export { ChatComposer, ChatEmpty, ChatIf, ChatMessageList, ChatRoot, ErrorBanner, Message, ModelAvatar, } from "./composition/api.js";
|
|
94
|
+
// Re-exports — contexts
|
|
95
|
+
export { ChatContextProvider, ComposerContextProvider, MessageContextProvider, ThreadListContextProvider, useChatContext, useChatContextOptional, useComposerContext, useComposerContextOptional, useMessageContext, useMessageContextOptional, useThreadListContext, useThreadListContextOptional, } from "./contexts/index.js";
|
|
96
|
+
// ---------------------------------------------------------------------------
|
|
97
|
+
// Chat — Preset component
|
|
98
|
+
//
|
|
99
|
+
// Composes ChatRoot, ChatMessageList, ChatComposer, ChatEmpty, etc. into a
|
|
100
|
+
// full-featured chat UI with sensible defaults. For custom layouts, use the
|
|
101
|
+
// building blocks directly.
|
|
102
|
+
// ---------------------------------------------------------------------------
|
|
103
|
+
export const Chat = React.forwardRef(function Chat({ messages, input, onChange, onSubmit, stop, reload, enableVoice = false, onVoice, setInput, isLoading, error, placeholder = "Type a message...", maxHeight = "100%", className, theme: userTheme, renderMessage, renderTool, suggestions, onSuggestionClick, emptyState, showScrollButton = false, showMessageActions = true, models, model, activeModel, onModelChange, inferenceMode, browserStatus, showSources = false, onSourceClick, onAttach, onDrop, attachAccept, attachments, onRemoveAttachment, showExport = false, onFeedback, editMessage, getBranches, switchBranch, showSteps = false, showTabs = false, activeTab: controlledTab, onTabChange: controlledTabChange, uploads, onRemoveUpload, quickActions, onQuickAction, hideTabSwitcher = false, children, }, ref) {
|
|
104
|
+
const theme = React.useMemo(() => mergeThemes(defaultChatTheme, userTheme), [userTheme]);
|
|
105
|
+
// --- Drag-and-drop ---
|
|
106
|
+
const dropHandler = onDrop ?? onAttach;
|
|
107
|
+
const [dragOver, setDragOver] = React.useState(false);
|
|
108
|
+
const dragCounter = React.useRef(0);
|
|
109
|
+
const handleDragEnter = React.useCallback((e) => {
|
|
110
|
+
e.preventDefault();
|
|
111
|
+
e.stopPropagation();
|
|
112
|
+
dragCounter.current++;
|
|
113
|
+
if (e.dataTransfer.types.includes("Files"))
|
|
114
|
+
setDragOver(true);
|
|
115
|
+
}, []);
|
|
116
|
+
const handleDragLeave = React.useCallback((e) => {
|
|
117
|
+
e.preventDefault();
|
|
118
|
+
e.stopPropagation();
|
|
119
|
+
dragCounter.current--;
|
|
120
|
+
if (dragCounter.current === 0)
|
|
121
|
+
setDragOver(false);
|
|
122
|
+
}, []);
|
|
123
|
+
const handleDragOver = React.useCallback((e) => {
|
|
124
|
+
e.preventDefault();
|
|
125
|
+
e.stopPropagation();
|
|
126
|
+
}, []);
|
|
127
|
+
const handleFileDrop = React.useCallback((e) => {
|
|
128
|
+
e.preventDefault();
|
|
129
|
+
e.stopPropagation();
|
|
130
|
+
dragCounter.current = 0;
|
|
131
|
+
setDragOver(false);
|
|
132
|
+
if (e.dataTransfer.files.length > 0 && dropHandler) {
|
|
133
|
+
dropHandler(e.dataTransfer.files);
|
|
134
|
+
}
|
|
135
|
+
}, [dropHandler]);
|
|
136
|
+
// --- Tab state ---
|
|
137
|
+
const [internalTab, setInternalTab] = React.useState("chat");
|
|
138
|
+
const currentTab = controlledTab ?? internalTab;
|
|
139
|
+
const handleTabChange = controlledTabChange ?? setInternalTab;
|
|
140
|
+
// --- Voice ---
|
|
30
141
|
const voice = useVoiceInput({
|
|
31
142
|
onTranscript: (transcript, isFinal) => {
|
|
32
143
|
if (!isFinal || !setInput)
|
|
@@ -41,82 +152,40 @@ export const Chat = React.forwardRef(function Chat({ messages, input, onChange,
|
|
|
41
152
|
return voice.toggle;
|
|
42
153
|
return undefined;
|
|
43
154
|
}, [onVoice, enableVoice, voice.isSupported, voice.toggle, setInput]);
|
|
44
|
-
React.useEffect(() => {
|
|
45
|
-
messagesEndRef.current?.scrollIntoView({ behavior: "smooth" });
|
|
46
|
-
}, [messages]);
|
|
47
155
|
const isEmpty = messages.length === 0;
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
const partGroups = groupPartsInOrder(msg.parts);
|
|
71
|
-
const textContent = getTextContent(msg);
|
|
72
|
-
return (React.createElement(MessageItem, { key: msg.id, role: msg.role, className: cn("flex", "justify-start") },
|
|
73
|
-
React.createElement("div", { className: theme.message?.[msg.role] ?? theme.message?.assistant },
|
|
74
|
-
partGroups.map((group, index) => {
|
|
75
|
-
if (group.type === "text") {
|
|
76
|
-
return (React.createElement(Markdown, { key: `text-${index}`, className: "text-[15px] leading-relaxed" }, group.content));
|
|
77
|
-
}
|
|
78
|
-
if (group.type === "reasoning") {
|
|
79
|
-
return (React.createElement(ReasoningCard, { key: `reasoning-${index}`, text: group.text, isStreaming: group.isStreaming }));
|
|
80
|
-
}
|
|
81
|
-
return (React.createElement("div", { key: group.tool.toolCallId, className: "my-3" }, renderTool
|
|
82
|
-
? renderTool(group.tool)
|
|
83
|
-
: React.createElement(ToolCallCard, { tool: group.tool })));
|
|
84
|
-
}),
|
|
85
|
-
showMessageActions && textContent && (React.createElement(MessageActions, { content: textContent })))));
|
|
86
|
-
}),
|
|
87
|
-
isLoading && (React.createElement("div", { className: "flex justify-start" },
|
|
88
|
-
React.createElement("div", { className: "bg-neutral-100 dark:bg-neutral-800 rounded-[20px] rounded-bl-[4px] px-4 py-3" }, browserStatus === "downloading-model" || browserStatus === "loading-runtime"
|
|
89
|
-
? (React.createElement("div", { className: "flex items-center gap-2 text-xs text-neutral-500 dark:text-neutral-400" },
|
|
90
|
-
React.createElement("span", { className: "size-1.5 rounded-full bg-amber-500 animate-pulse" }),
|
|
91
|
-
React.createElement("span", null, browserStatus === "downloading-model"
|
|
92
|
-
? "Downloading model..."
|
|
93
|
-
: "Loading AI...")))
|
|
94
|
-
: (React.createElement("div", { className: "flex gap-1.5 items-center" },
|
|
95
|
-
React.createElement("span", { className: cn(theme.loading) }),
|
|
96
|
-
React.createElement("span", { className: cn(theme.loading), style: { animationDelay: "0.15s" } }),
|
|
97
|
-
React.createElement("span", { className: cn(theme.loading), style: { animationDelay: "0.3s" } })))))),
|
|
98
|
-
React.createElement("div", { ref: messagesEndRef }))),
|
|
99
|
-
showScrollButton && (React.createElement(ConversationScrollButton, { onClick: () => messagesEndRef.current?.scrollIntoView({ behavior: "smooth" }) }))),
|
|
100
|
-
error && (React.createElement("div", { className: "max-w-2xl mx-auto px-4 pb-2" },
|
|
101
|
-
React.createElement("div", { className: "px-4 py-3 bg-red-50 dark:bg-red-900/20 rounded-[20px] text-red-600 dark:text-red-400 text-sm flex items-center justify-between gap-3" },
|
|
102
|
-
React.createElement("span", null, error.message),
|
|
103
|
-
reload && (React.createElement("button", { type: "button", onClick: reload, className: "inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-red-600 dark:text-red-400 bg-red-100 dark:bg-red-900/40 hover:bg-red-200 dark:hover:bg-red-900/60 rounded-full transition-colors" },
|
|
104
|
-
React.createElement(RefreshCwIcon, { className: "size-3" }),
|
|
105
|
-
"Retry"))))),
|
|
106
|
-
React.createElement("div", { className: "flex-shrink-0 bg-white dark:bg-neutral-900 border-t border-neutral-200 dark:border-neutral-800" },
|
|
107
|
-
inferenceMode && inferenceMode !== "cloud" && (React.createElement("div", { className: "max-w-2xl mx-auto" },
|
|
108
|
-
React.createElement(InferenceBadge, { inferenceMode: inferenceMode, browserStatus: browserStatus }))),
|
|
109
|
-
React.createElement("form", { onSubmit: submitHandler, className: "max-w-2xl mx-auto px-4 py-3" },
|
|
110
|
-
models && models.length > 0 && onModelChange && (React.createElement("div", { className: "mb-2" },
|
|
111
|
-
React.createElement(ModelSelector, { models: models, value: model, onChange: onModelChange, disabled: isLoading }))),
|
|
112
|
-
React.createElement("div", { className: "flex gap-2 items-center" },
|
|
113
|
-
React.createElement(InputBox, { value: voice.isListening ? voice.transcript || input : input, onChange: inputChangeHandler, placeholder: voice.isListening ? "Listening..." : placeholder, disabled: isLoading || voice.isListening, multiline: multiline, className: theme.input }),
|
|
114
|
-
React.createElement(SubmitButton, { isLoading: isLoading || voice.isListening, hasInput: !!input.trim(), onStop: voice.isListening ? voice.stop : stop, onVoice: voiceHandler, disabled: !input.trim(), className: theme.button }))))));
|
|
156
|
+
const isDocsTab = showTabs && currentTab === "uploads";
|
|
157
|
+
const dragProps = dropHandler
|
|
158
|
+
? {
|
|
159
|
+
onDragEnter: handleDragEnter,
|
|
160
|
+
onDragLeave: handleDragLeave,
|
|
161
|
+
onDragOver: handleDragOver,
|
|
162
|
+
onDrop: handleFileDrop,
|
|
163
|
+
}
|
|
164
|
+
: {};
|
|
165
|
+
return (React.createElement(ChatRoot, { ref: ref, messages: messages, input: input, isLoading: isLoading, error: error, setInput: setInput, onSubmit: onSubmit, onStop: stop, onReload: reload, model: model, models: models, onModelChange: onModelChange, attachments: attachments, onAttach: onAttach, onRemoveAttachment: onRemoveAttachment, editMessage: editMessage, getBranches: getBranches, switchBranch: switchBranch, onFeedback: onFeedback, showSources: showSources, onSourceClick: onSourceClick, theme: userTheme, maxHeight: maxHeight, className: className, ...dragProps },
|
|
166
|
+
dropHandler && React.createElement(DropZoneOverlay, { visible: dragOver, accept: attachAccept }),
|
|
167
|
+
showTabs && !hideTabSwitcher && (React.createElement(TabSwitcher, { activeTab: currentTab, onTabChange: handleTabChange })),
|
|
168
|
+
isDocsTab
|
|
169
|
+
? (React.createElement(UploadsPanel, { uploads: uploads, onRemoveUpload: onRemoveUpload, onAttach: onAttach, attachAccept: attachAccept, className: "flex-1 min-h-0" }))
|
|
170
|
+
: isEmpty
|
|
171
|
+
? (React.createElement(ChatEmpty, { icon: emptyState?.icon, title: emptyState?.title, description: emptyState?.description, suggestions: suggestions, onSuggestionClick: onSuggestionClick }, inferenceMode && inferenceMode !== "cloud" && (React.createElement(UpgradeCTA, { inferenceMode: inferenceMode }))))
|
|
172
|
+
: (React.createElement(ChatMessageList, { messages: messages, isLoading: isLoading, theme: theme, renderMessage: renderMessage, renderTool: renderTool, model: activeModel || model, showMessageActions: showMessageActions, showSources: showSources, showSteps: showSteps, showScrollButton: showScrollButton, onSourceClick: onSourceClick, inferenceMode: inferenceMode, browserStatus: browserStatus, editMessage: editMessage, getBranches: getBranches, switchBranch: switchBranch, onFeedback: onFeedback })),
|
|
173
|
+
error && React.createElement(ErrorBanner, { error: error, onRetry: reload }),
|
|
174
|
+
!isDocsTab && (React.createElement(ChatComposer, { input: voice.isListening ? voice.transcript || input : input, onChange: onChange, onSubmit: onSubmit, isLoading: isLoading, placeholder: voice.isListening ? "Listening..." : placeholder, theme: theme, stop: voice.isListening ? undefined : stop, onVoice: voiceHandler, isListening: voice.isListening, transcript: voice.transcript, models: models, model: model, onModelChange: onModelChange, onAttach: onAttach, attachAccept: attachAccept, attachments: attachments, onRemoveAttachment: onRemoveAttachment, showExport: showExport, messages: messages },
|
|
175
|
+
inferenceMode && inferenceMode !== "cloud" && (React.createElement(InferenceBadge, { inferenceMode: inferenceMode, browserStatus: browserStatus })),
|
|
176
|
+
isEmpty && quickActions && quickActions.length > 0 && (React.createElement(QuickActionsComponent, { actions: quickActions, onActionClick: onQuickAction })))),
|
|
177
|
+
children));
|
|
115
178
|
});
|
|
116
179
|
Chat.displayName = "Chat";
|
|
180
|
+
// ---------------------------------------------------------------------------
|
|
181
|
+
// ChatComponents — Compound API via Object.assign
|
|
182
|
+
// ---------------------------------------------------------------------------
|
|
117
183
|
export const ChatComponents = Object.assign(Chat, {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
184
|
+
Root: ChatRoot,
|
|
185
|
+
MessageList: ChatMessageList,
|
|
186
|
+
Composer: ChatComposer,
|
|
187
|
+
Empty: ChatEmpty,
|
|
188
|
+
If: ChatIf,
|
|
189
|
+
Message: Message,
|
|
190
|
+
ErrorBanner: ErrorBanner,
|
|
122
191
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { UIMessage } from "../../../../../agent/react/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Convert chat messages to a markdown string.
|
|
4
|
+
*/
|
|
5
|
+
export declare function exportAsMarkdown(messages: UIMessage[]): string;
|
|
6
|
+
/**
|
|
7
|
+
* Download messages as a .md file.
|
|
8
|
+
*/
|
|
9
|
+
export declare function downloadMarkdown(messages: UIMessage[], filename?: string): void;
|
|
10
|
+
//# sourceMappingURL=export.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/ai/chat/utils/export.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAGrE;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,SAAS,EAAE,GAAG,MAAM,CA+C9D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,SAAS,EAAE,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAW/E"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Conversation Export Utilities
|
|
3
|
+
* @module ai/react/components/chat/utils/export
|
|
4
|
+
*/
|
|
5
|
+
import * as dntShim from "../../../../../../_dnt.shims.js";
|
|
6
|
+
import { extractSourcesFromParts, getTextContent } from "./message-parts.js";
|
|
7
|
+
/**
|
|
8
|
+
* Convert chat messages to a markdown string.
|
|
9
|
+
*/
|
|
10
|
+
export function exportAsMarkdown(messages) {
|
|
11
|
+
const lines = [];
|
|
12
|
+
for (const msg of messages) {
|
|
13
|
+
if (msg.role === "system")
|
|
14
|
+
continue;
|
|
15
|
+
if (msg.role === "user") {
|
|
16
|
+
lines.push(`**User:**\n${getTextContent(msg)}`);
|
|
17
|
+
lines.push("");
|
|
18
|
+
continue;
|
|
19
|
+
}
|
|
20
|
+
// Assistant message
|
|
21
|
+
const textParts = [];
|
|
22
|
+
const toolSummaries = [];
|
|
23
|
+
for (const part of msg.parts) {
|
|
24
|
+
if (part.type === "text") {
|
|
25
|
+
textParts.push(part.text);
|
|
26
|
+
}
|
|
27
|
+
else if (part.type === "reasoning") {
|
|
28
|
+
textParts.push(`> *Thinking:* ${part.text}`);
|
|
29
|
+
}
|
|
30
|
+
else if (part.type.startsWith("tool-") && part.type !== "tool-result" && "toolName" in part) {
|
|
31
|
+
const name = part.toolName;
|
|
32
|
+
const state = part.state ?? "";
|
|
33
|
+
toolSummaries.push(`> Tool: **${name}** (${state})`);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
lines.push("**Assistant:**");
|
|
37
|
+
if (toolSummaries.length > 0) {
|
|
38
|
+
lines.push(toolSummaries.join("\n"));
|
|
39
|
+
}
|
|
40
|
+
lines.push(textParts.join(""));
|
|
41
|
+
const sources = extractSourcesFromParts(msg.parts);
|
|
42
|
+
if (sources.length > 0) {
|
|
43
|
+
lines.push("\nSources: " +
|
|
44
|
+
sources.map((s, i) => `[${i + 1}] ${s.title}${s.url ? ` (${s.url})` : ""}`).join(", "));
|
|
45
|
+
}
|
|
46
|
+
lines.push("");
|
|
47
|
+
}
|
|
48
|
+
return lines.join("\n").trim() + "\n";
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Download messages as a .md file.
|
|
52
|
+
*/
|
|
53
|
+
export function downloadMarkdown(messages, filename) {
|
|
54
|
+
const md = exportAsMarkdown(messages);
|
|
55
|
+
const blob = new dntShim.Blob([md], { type: "text/markdown;charset=utf-8" });
|
|
56
|
+
const url = URL.createObjectURL(blob);
|
|
57
|
+
const a = document.createElement("a");
|
|
58
|
+
a.href = url;
|
|
59
|
+
a.download = filename ?? `chat-${new Date().toISOString().slice(0, 10)}.md`;
|
|
60
|
+
document.body.appendChild(a);
|
|
61
|
+
a.click();
|
|
62
|
+
document.body.removeChild(a);
|
|
63
|
+
URL.revokeObjectURL(url);
|
|
64
|
+
}
|
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
* @module ai/react/components/chat/utils/message-parts
|
|
4
4
|
*/
|
|
5
5
|
import type { DynamicToolUIPart, ToolUIPart, UIMessage, UIMessagePart } from "../../../../../agent/react/index.js";
|
|
6
|
+
import type { Source } from "../components/sources.js";
|
|
6
7
|
/** Get text content from UIMessage parts */
|
|
7
8
|
export declare function getTextContent(message: UIMessage): string;
|
|
8
9
|
/** Check if a part is a tool part */
|
|
9
10
|
export declare function isToolPart(part: UIMessagePart): part is ToolUIPart | DynamicToolUIPart;
|
|
11
|
+
/** Check if a tool part is a skill-related tool (load-skill, load-skill-reference, execute-skill-script) */
|
|
12
|
+
export declare function isSkillToolPart(tool: ToolUIPart | DynamicToolUIPart): boolean;
|
|
10
13
|
/** Check if a part is a reasoning part */
|
|
11
14
|
export declare function isReasoningPart(part: UIMessagePart): part is {
|
|
12
15
|
type: "reasoning";
|
|
@@ -26,10 +29,19 @@ export type PartGroup = {
|
|
|
26
29
|
type: "reasoning";
|
|
27
30
|
text: string;
|
|
28
31
|
isStreaming: boolean;
|
|
32
|
+
} | {
|
|
33
|
+
type: "step";
|
|
34
|
+
stepIndex: number;
|
|
35
|
+
isComplete: boolean;
|
|
29
36
|
};
|
|
30
37
|
/**
|
|
31
38
|
* Group consecutive parts for ordered rendering
|
|
32
39
|
* Returns an array of groups, each containing either consecutive text parts, a tool part, or a reasoning part
|
|
33
40
|
*/
|
|
34
41
|
export declare function groupPartsInOrder(parts: UIMessagePart[]): PartGroup[];
|
|
42
|
+
/**
|
|
43
|
+
* Extract sources from tool result parts.
|
|
44
|
+
* Looks for `documents` arrays in tool outputs and maps them to Source[].
|
|
45
|
+
*/
|
|
46
|
+
export declare function extractSourcesFromParts(parts: UIMessagePart[]): Source[];
|
|
35
47
|
//# sourceMappingURL=message-parts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-parts.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/ai/chat/utils/message-parts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACV,iBAAiB,EACjB,UAAU,EACV,SAAS,EACT,aAAa,EACd,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"message-parts.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/ai/chat/utils/message-parts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACV,iBA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|
|
17
17
|
return true;
|
|
18
18
|
return part.type.startsWith("tool-") && part.type !== "tool-result";
|
|
19
19
|
}
|
|
20
|
+
const SKILL_TOOL_NAMES = new Set([
|
|
21
|
+
"load-skill",
|
|
22
|
+
"load-skill-reference",
|
|
23
|
+
"execute-skill-script",
|
|
24
|
+
]);
|
|
25
|
+
/** Check if a tool part is a skill-related tool (load-skill, load-skill-reference, execute-skill-script) */
|
|
26
|
+
export function isSkillToolPart(tool) {
|
|
27
|
+
return SKILL_TOOL_NAMES.has(tool.toolName);
|
|
28
|
+
}
|
|
20
29
|
/** Check if a part is a reasoning part */
|
|
21
30
|
export function isReasoningPart(part) {
|
|
22
31
|
return part.type === "reasoning";
|
|
@@ -54,9 +63,55 @@ export function groupPartsInOrder(parts) {
|
|
|
54
63
|
text: part.text,
|
|
55
64
|
isStreaming: part.state === "streaming",
|
|
56
65
|
});
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
if (part.type === "step-start" || part.type === "step-end") {
|
|
69
|
+
groups.push({
|
|
70
|
+
type: "step",
|
|
71
|
+
stepIndex: part.stepIndex,
|
|
72
|
+
isComplete: part.type === "step-end",
|
|
73
|
+
});
|
|
74
|
+
continue;
|
|
57
75
|
}
|
|
58
76
|
// Skip other non-renderable parts
|
|
59
77
|
}
|
|
60
78
|
flushText();
|
|
61
79
|
return groups;
|
|
62
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* Extract sources from tool result parts.
|
|
83
|
+
* Looks for `documents` arrays in tool outputs and maps them to Source[].
|
|
84
|
+
*/
|
|
85
|
+
export function extractSourcesFromParts(parts) {
|
|
86
|
+
const sources = [];
|
|
87
|
+
for (const part of parts) {
|
|
88
|
+
if (part.type !== "tool-result")
|
|
89
|
+
continue;
|
|
90
|
+
const result = part.result;
|
|
91
|
+
if (!result || typeof result !== "object")
|
|
92
|
+
continue;
|
|
93
|
+
const docs = result.documents;
|
|
94
|
+
if (!Array.isArray(docs))
|
|
95
|
+
continue;
|
|
96
|
+
for (const doc of docs) {
|
|
97
|
+
if (!doc || typeof doc !== "object")
|
|
98
|
+
continue;
|
|
99
|
+
const d = doc;
|
|
100
|
+
sources.push({
|
|
101
|
+
title: typeof d.title === "string"
|
|
102
|
+
? d.title
|
|
103
|
+
: typeof d.name === "string"
|
|
104
|
+
? d.name
|
|
105
|
+
: "Source",
|
|
106
|
+
url: typeof d.url === "string" ? d.url : undefined,
|
|
107
|
+
score: typeof d.score === "number" ? d.score : undefined,
|
|
108
|
+
snippet: typeof d.snippet === "string"
|
|
109
|
+
? d.snippet
|
|
110
|
+
: typeof d.content === "string"
|
|
111
|
+
? d.content.slice(0, 200)
|
|
112
|
+
: undefined,
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return sources;
|
|
117
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { type ChatProps } from "./chat/index.js";
|
|
2
|
+
type ChatMessageSetter = (messages: ChatProps["messages"]) => void;
|
|
3
|
+
type TabChangeHandler = NonNullable<ChatProps["onTabChange"]>;
|
|
4
|
+
export interface ChatWithSidebarChatController {
|
|
5
|
+
messages: ChatProps["messages"];
|
|
6
|
+
input: ChatProps["input"];
|
|
7
|
+
onChange: ChatProps["onChange"];
|
|
8
|
+
onSubmit?: ChatProps["onSubmit"];
|
|
9
|
+
stop?: ChatProps["stop"];
|
|
10
|
+
reload?: ChatProps["reload"];
|
|
11
|
+
setInput?: ChatProps["setInput"];
|
|
12
|
+
isLoading?: ChatProps["isLoading"];
|
|
13
|
+
error?: ChatProps["error"];
|
|
14
|
+
model?: ChatProps["model"];
|
|
15
|
+
activeModel?: ChatProps["activeModel"];
|
|
16
|
+
onModelChange?: ChatProps["onModelChange"];
|
|
17
|
+
inferenceMode?: ChatProps["inferenceMode"];
|
|
18
|
+
browserStatus?: ChatProps["browserStatus"];
|
|
19
|
+
editMessage?: ChatProps["editMessage"];
|
|
20
|
+
getBranches?: ChatProps["getBranches"];
|
|
21
|
+
switchBranch?: ChatProps["switchBranch"];
|
|
22
|
+
setMessages: ChatMessageSetter;
|
|
23
|
+
}
|
|
24
|
+
interface ChatWithSidebarSidebarBaseConfig {
|
|
25
|
+
storageKey?: string;
|
|
26
|
+
visible?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export type ChatWithSidebarSidebarConfig = (ChatWithSidebarSidebarBaseConfig & {
|
|
29
|
+
open: boolean;
|
|
30
|
+
onToggle: () => void;
|
|
31
|
+
}) | (ChatWithSidebarSidebarBaseConfig & {
|
|
32
|
+
open?: undefined;
|
|
33
|
+
onToggle?: () => void;
|
|
34
|
+
});
|
|
35
|
+
export interface ChatWithSidebarModelConfig {
|
|
36
|
+
options?: ChatProps["models"];
|
|
37
|
+
}
|
|
38
|
+
export interface ChatWithSidebarAttachmentConfig {
|
|
39
|
+
accept?: ChatProps["attachAccept"];
|
|
40
|
+
items?: ChatProps["attachments"];
|
|
41
|
+
uploads?: ChatProps["uploads"];
|
|
42
|
+
onAttach?: ChatProps["onAttach"];
|
|
43
|
+
onDrop?: ChatProps["onDrop"];
|
|
44
|
+
onRemoveItem?: ChatProps["onRemoveAttachment"];
|
|
45
|
+
onRemoveUpload?: ChatProps["onRemoveUpload"];
|
|
46
|
+
}
|
|
47
|
+
export interface ChatWithSidebarQuickActionsConfig {
|
|
48
|
+
suggestions?: ChatProps["suggestions"];
|
|
49
|
+
onSuggestionClick?: ChatProps["onSuggestionClick"];
|
|
50
|
+
actions?: ChatProps["quickActions"];
|
|
51
|
+
onAction?: ChatProps["onQuickAction"];
|
|
52
|
+
}
|
|
53
|
+
export interface ChatWithSidebarMessageConfig {
|
|
54
|
+
render?: ChatProps["renderMessage"];
|
|
55
|
+
renderTool?: ChatProps["renderTool"];
|
|
56
|
+
onFeedback?: ChatProps["onFeedback"];
|
|
57
|
+
onSourceClick?: ChatProps["onSourceClick"];
|
|
58
|
+
}
|
|
59
|
+
export interface ChatWithSidebarFeatureConfig {
|
|
60
|
+
steps?: ChatProps["showSteps"];
|
|
61
|
+
tabs?: ChatProps["showTabs"];
|
|
62
|
+
sources?: ChatProps["showSources"];
|
|
63
|
+
export?: ChatProps["showExport"];
|
|
64
|
+
scrollButton?: ChatProps["showScrollButton"];
|
|
65
|
+
messageActions?: ChatProps["showMessageActions"];
|
|
66
|
+
}
|
|
67
|
+
export type ChatWithSidebarTabsConfig = {
|
|
68
|
+
active: ChatProps["activeTab"];
|
|
69
|
+
onChange: TabChangeHandler;
|
|
70
|
+
} | {
|
|
71
|
+
active?: undefined;
|
|
72
|
+
onChange?: TabChangeHandler;
|
|
73
|
+
};
|
|
74
|
+
export interface ChatWithSidebarVoiceConfig {
|
|
75
|
+
enabled?: ChatProps["enableVoice"];
|
|
76
|
+
onVoice?: ChatProps["onVoice"];
|
|
77
|
+
}
|
|
78
|
+
export interface ChatWithSidebarGroupedProps {
|
|
79
|
+
chat: ChatWithSidebarChatController;
|
|
80
|
+
sidebar?: ChatWithSidebarSidebarConfig;
|
|
81
|
+
models?: ChatWithSidebarModelConfig;
|
|
82
|
+
attachments?: ChatWithSidebarAttachmentConfig;
|
|
83
|
+
quickActions?: ChatWithSidebarQuickActionsConfig;
|
|
84
|
+
message?: ChatWithSidebarMessageConfig;
|
|
85
|
+
features?: ChatWithSidebarFeatureConfig;
|
|
86
|
+
tabs?: ChatWithSidebarTabsConfig;
|
|
87
|
+
voice?: ChatWithSidebarVoiceConfig;
|
|
88
|
+
className?: string;
|
|
89
|
+
maxHeight?: ChatProps["maxHeight"];
|
|
90
|
+
theme?: ChatProps["theme"];
|
|
91
|
+
placeholder?: ChatProps["placeholder"];
|
|
92
|
+
emptyState?: ChatProps["emptyState"];
|
|
93
|
+
children?: ChatProps["children"];
|
|
94
|
+
}
|
|
95
|
+
export type ChatWithSidebarProps = ChatWithSidebarGroupedProps;
|
|
96
|
+
export declare const ChatWithSidebar: any;
|
|
97
|
+
export {};
|
|
98
|
+
//# sourceMappingURL=chat-with-sidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|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