@fses/workbench-app 0.2.0 → 0.2.2
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/WORKBENCH-CLOSURE.json +80 -0
- package/dist/Workspace-fYH2XNdb.js +22699 -0
- package/dist/fses-workbench-app.js +2 -2
- package/dist/{index-DbH6tMQy.js → index-CbIJlts1.js} +8 -8
- package/dist/internal/personal-workbench/components/workbench/WorkbenchStudio.vue.d.ts +2 -2
- package/dist/internal/personal-workbench/lib/deepAgentApi.d.ts +41 -2
- package/dist/internal/personal-workbench/lib/deepAgentQueueState.d.ts +111 -0
- package/dist/internal/personal-workbench/lib/vueRuntimeAdapters.d.ts +72 -0
- package/dist/internal/personal-workbench/lib/workbenchSocketClient.d.ts +1 -1
- package/dist/internal/personal-workbench/lib/workbenchStorage.d.ts +2 -0
- package/dist/runtime/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useWorkbenchRuntime-XpOzwm56.js → useWorkbenchRuntime-Ch8lqkjO.js} +6707 -6315
- package/node_modules/@byteluck/agentic-protocol/LICENSE +9 -0
- package/node_modules/@byteluck/agentic-protocol/README.md +74 -0
- package/node_modules/@byteluck/agentic-protocol/dist/index.d.ts +1623 -0
- package/node_modules/@byteluck/agentic-protocol/dist/index.mjs +3380 -0
- package/node_modules/@byteluck/agentic-protocol/package.json +37 -0
- package/node_modules/@byteluck/workbench-skill-contracts/LICENSE +9 -0
- package/node_modules/@byteluck/workbench-skill-contracts/dist/index.d.ts +234 -0
- package/node_modules/@byteluck/workbench-skill-contracts/dist/index.mjs +394 -0
- package/node_modules/@byteluck/workbench-skill-contracts/package.json +37 -0
- package/node_modules/@fses/ai-chat/LICENSE +9 -0
- package/node_modules/@fses/ai-chat/README.md +320 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/data.d.ts +12 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/from-markdown.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/from-tool.d.ts +8 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/options.d.ts +4 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/trace.d.ts +19 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/types.d.ts +133 -0
- package/node_modules/@fses/ai-chat/dist/components/CardRecommendationDeferredDraft.vue.d.ts +13 -0
- package/node_modules/@fses/ai-chat/dist/components/CardRecommendationDraft.vue.d.ts +18 -0
- package/node_modules/@fses/ai-chat/dist/components/ChartCardRenderer.vue.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/components/ChatMessageItem.vue.d.ts +76 -0
- package/node_modules/@fses/ai-chat/dist/components/ChatMessageList.vue.d.ts +79 -0
- package/node_modules/@fses/ai-chat/dist/components/ChatSender.vue.d.ts +98 -0
- package/node_modules/@fses/ai-chat/dist/components/CollapsedToolActivity.vue.d.ts +9 -0
- package/node_modules/@fses/ai-chat/dist/components/ContextUsageRing.vue.d.ts +12 -0
- package/node_modules/@fses/ai-chat/dist/components/EChartsView.vue.d.ts +6 -0
- package/node_modules/@fses/ai-chat/dist/components/FsesAiChat.vue.d.ts +306 -0
- package/node_modules/@fses/ai-chat/dist/components/PlanDraftCard.vue.d.ts +19 -0
- package/node_modules/@fses/ai-chat/dist/components/ShellExecPanel.vue.d.ts +6 -0
- package/node_modules/@fses/ai-chat/dist/components/TaskTodoPlanBar.vue.d.ts +6 -0
- package/node_modules/@fses/ai-chat/dist/components/ThinkingShimmer.vue.d.ts +6 -0
- package/node_modules/@fses/ai-chat/dist/composables/context-usage.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/composables/types.d.ts +465 -0
- package/node_modules/@fses/ai-chat/dist/composables/useChat.d.ts +2 -0
- package/node_modules/@fses/ai-chat/dist/composables/useSystemEChartsIcon.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.js +11408 -0
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.umd.cjs +25 -0
- package/node_modules/@fses/ai-chat/dist/index.d.ts +17 -0
- package/node_modules/@fses/ai-chat/dist/plugin.d.ts +8 -0
- package/node_modules/@fses/ai-chat/dist/style.css +1 -0
- package/node_modules/@fses/ai-chat/dist/utils/assistant-markdown.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/utils/attachment-upload.d.ts +22 -0
- package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-config-summary.d.ts +86 -0
- package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-field-label.d.ts +24 -0
- package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-source.d.ts +18 -0
- package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-title-source.d.ts +12 -0
- package/node_modules/@fses/ai-chat/dist/utils/chart-card-visibility.d.ts +24 -0
- package/node_modules/@fses/ai-chat/dist/utils/derived-process-labels.d.ts +13 -0
- package/node_modules/@fses/ai-chat/dist/utils/echarts-recommendation-icon.d.ts +36 -0
- package/node_modules/@fses/ai-chat/dist/utils/group-messages.d.ts +30 -0
- package/node_modules/@fses/ai-chat/dist/utils/status-activity.d.ts +48 -0
- package/node_modules/@fses/ai-chat/dist/utils/system-echarts-template-icons.generated.d.ts +305 -0
- package/node_modules/@fses/ai-chat/dist/utils/system-echarts-template.d.ts +20 -0
- package/node_modules/@fses/ai-chat/dist/utils/task-todo-plan.d.ts +40 -0
- package/node_modules/@fses/ai-chat/dist/utils/workbench-echarts-theme.d.ts +35 -0
- package/node_modules/@fses/ai-chat/package.json +81 -0
- package/node_modules/@fses/workbench-card/LICENSE +9 -0
- package/node_modules/@fses/workbench-card/README.md +81 -0
- package/node_modules/@fses/workbench-card/dist/chart/index.d.ts +8 -0
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card-echarts-protocol.js +2230 -0
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card-renderers.js +33742 -0
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card.js +21238 -0
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card.umd.cjs +1 -0
- package/node_modules/@fses/workbench-card/dist/index.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/registry/cardRegistry.d.ts +50 -0
- package/node_modules/@fses/workbench-card/dist/registry/compositeCardPatterns.d.ts +39 -0
- package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateCategories.d.ts +20 -0
- package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateRegistry.d.ts +1158 -0
- package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateRegistry.generated.d.ts +1141 -0
- package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateTypes.d.ts +76 -0
- package/node_modules/@fses/workbench-card/dist/registry/index.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/WorkbenchBlockRenderer.vue.d.ts +55 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/ChartRegistry.vue.d.ts +22 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/EChartsProtocolRenderer.vue.d.ts +34 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/chartRendererRegistry.d.ts +219 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/chartResponsiveLayout.d.ts +47 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/dynamicEchartOption.d.ts +30 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/adapter.d.ts +73 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/composite.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/configOnly.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/geo.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/graphic.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/layout.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/network.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/scene3D.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/series.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/table.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/timeline.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/transition.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/tree.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/tuple.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/index.d.ts +9 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/merger.d.ts +16 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/types.d.ts +447 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echartsRuntimeInteractions.d.ts +30 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echartsTitle.d.ts +13 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echartsTooltipPortal.d.ts +12 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/types.d.ts +47 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/useEchart.d.ts +29 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/workbenchChartTheme.d.ts +36 -0
- package/node_modules/@fses/workbench-card/dist/renderers/custom-canvas/canvasLayoutBindings.d.ts +86 -0
- package/node_modules/@fses/workbench-card/dist/renderers/hostBridge.d.ts +61 -0
- package/node_modules/@fses/workbench-card/dist/renderers/index.d.ts +17 -0
- package/node_modules/@fses/workbench-card/dist/renderers/native/nativeBindings.d.ts +145 -0
- package/node_modules/@fses/workbench-card/dist/renderers/nested/nestedBlockBindings.d.ts +107 -0
- package/node_modules/@fses/workbench-card/dist/renderers/quickLinkDisplay.d.ts +24 -0
- package/node_modules/@fses/workbench-card/dist/renderers/reference-composite/referenceCompositeBindings.d.ts +171 -0
- package/node_modules/@fses/workbench-card/dist/renderers/reference-composite/referenceRiskAndStrategyBindings.d.ts +91 -0
- package/node_modules/@fses/workbench-card/dist/renderers/resizableTable.d.ts +51 -0
- package/node_modules/@fses/workbench-card/dist/renderers/style.css +1 -0
- package/node_modules/@fses/workbench-card/dist/renderers/tableDisplay.d.ts +25 -0
- package/node_modules/@fses/workbench-card/dist/renderers/useWorkbenchBlockRendererBindings.d.ts +580 -0
- package/node_modules/@fses/workbench-card/dist/shell/workbenchVisualShell.d.ts +48 -0
- package/node_modules/@fses/workbench-card/dist/style.css +1 -0
- package/node_modules/@fses/workbench-card/dist/types/block.d.ts +2011 -0
- package/node_modules/@fses/workbench-card/dist/types/canvas.d.ts +25 -0
- package/node_modules/@fses/workbench-card/dist/types/echartsProtocol.d.ts +445 -0
- package/node_modules/@fses/workbench-card/dist/types/index.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/types/registry.d.ts +7 -0
- package/node_modules/@fses/workbench-card/dist/types/runtime.d.ts +34 -0
- package/node_modules/@fses/workbench-card/package.json +83 -0
- package/node_modules/@fses/workbench-card/src/chart/index.ts +8 -0
- package/node_modules/@fses/workbench-card/src/index.ts +13 -0
- package/node_modules/@fses/workbench-card/src/registry/cardRegistry.ts +476 -0
- package/node_modules/@fses/workbench-card/src/registry/compositeCardPatterns.ts +206 -0
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateCategories.ts +74 -0
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.js +19950 -0
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.ts +19951 -0
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.ts +32 -0
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateTypes.ts +83 -0
- package/node_modules/@fses/workbench-card/src/registry/index.ts +10 -0
- package/node_modules/@fses/workbench-card/src/renderers/WorkbenchBlockRenderer.vue +2728 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/ChartRegistry.vue +221 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/EChartsProtocolRenderer.vue +304 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/chartRendererRegistry.ts +311 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/chartResponsiveLayout.ts +172 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/dynamicEchartOption.ts +127 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/adapter.ts +1349 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/composite.converter.ts +71 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/configOnly.converter.ts +45 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/geo.converter.ts +97 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/graphic.converter.ts +59 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/layout.converter.ts +53 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/network.converter.ts +82 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/scene3D.converter.ts +73 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/series.converter.ts +795 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/table.converter.ts +195 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/timeline.converter.ts +62 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/transition.converter.ts +58 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/tree.converter.ts +75 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/tuple.converter.ts +112 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/index.ts +10 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/merger.ts +109 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/types.ts +515 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echartsRuntimeInteractions.ts +450 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echartsTitle.ts +94 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echartsTooltipPortal.ts +140 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/types.ts +53 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/useEchart.ts +1820 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/workbenchChartTheme.ts +240 -0
- package/node_modules/@fses/workbench-card/src/renderers/custom-canvas/canvasLayoutBindings.ts +660 -0
- package/node_modules/@fses/workbench-card/src/renderers/hostBridge.ts +74 -0
- package/node_modules/@fses/workbench-card/src/renderers/index.ts +25 -0
- package/node_modules/@fses/workbench-card/src/renderers/native/nativeBindings.ts +1096 -0
- package/node_modules/@fses/workbench-card/src/renderers/nested/nestedBlockBindings.ts +1349 -0
- package/node_modules/@fses/workbench-card/src/renderers/quickLinkDisplay.ts +53 -0
- package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceCompositeBindings.ts +3209 -0
- package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceRiskAndStrategyBindings.ts +1004 -0
- package/node_modules/@fses/workbench-card/src/renderers/resizableTable.ts +136 -0
- package/node_modules/@fses/workbench-card/src/renderers/tableDisplay.ts +140 -0
- package/node_modules/@fses/workbench-card/src/renderers/useWorkbenchBlockRendererBindings.ts +3192 -0
- package/node_modules/@fses/workbench-card/src/shell/workbenchVisualShell.ts +228 -0
- package/node_modules/@fses/workbench-card/src/styles/workbench-card.css +343 -0
- package/node_modules/@fses/workbench-card/src/types/block.ts +2496 -0
- package/node_modules/@fses/workbench-card/src/types/canvas.ts +30 -0
- package/node_modules/@fses/workbench-card/src/types/echartsProtocol.ts +513 -0
- package/node_modules/@fses/workbench-card/src/types/index.ts +10 -0
- package/node_modules/@fses/workbench-card/src/types/registry.ts +17 -0
- package/node_modules/@fses/workbench-card/src/types/runtime.ts +31 -0
- package/node_modules/dompurify/LICENSE +568 -0
- package/node_modules/dompurify/README.md +523 -0
- package/node_modules/dompurify/dist/purify.cjs.d.ts +451 -0
- package/node_modules/dompurify/dist/purify.cjs.js +1472 -0
- package/node_modules/dompurify/dist/purify.cjs.js.map +1 -0
- package/node_modules/dompurify/dist/purify.es.d.mts +448 -0
- package/node_modules/dompurify/dist/purify.es.mjs +1470 -0
- package/node_modules/dompurify/dist/purify.es.mjs.map +1 -0
- package/node_modules/dompurify/dist/purify.js +1478 -0
- package/node_modules/dompurify/dist/purify.js.map +1 -0
- package/node_modules/dompurify/dist/purify.min.js +3 -0
- package/node_modules/dompurify/dist/purify.min.js.map +1 -0
- package/node_modules/dompurify/package.json +168 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +208 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/package.json +118 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5136 -0
- package/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +134 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/node_modules/zod/src/v4/core/function.ts +176 -0
- package/node_modules/zod/src/v4/core/index.ts +15 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/node_modules/zod/src/v4/core/util.ts +775 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +111 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3775 -0
- package/node_modules/zod/v3/types.d.cts +1031 -0
- package/node_modules/zod/v3/types.d.ts +1031 -0
- package/node_modules/zod/v3/types.js +3693 -0
- package/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/node_modules/zod/v4/classic/compat.js +27 -0
- package/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +41 -0
- package/node_modules/zod/v4/classic/external.cjs +70 -0
- package/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/node_modules/zod/v4/classic/external.js +18 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/node_modules/zod/v4/classic/parse.js +6 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/node_modules/zod/v4/core/api.cjs +1039 -0
- package/node_modules/zod/v4/core/api.d.cts +284 -0
- package/node_modules/zod/v4/core/api.d.ts +284 -0
- package/node_modules/zod/v4/core/api.js +906 -0
- package/node_modules/zod/v4/core/checks.cjs +591 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +565 -0
- package/node_modules/zod/v4/core/core.cjs +67 -0
- package/node_modules/zod/v4/core/core.d.cts +49 -0
- package/node_modules/zod/v4/core/core.d.ts +49 -0
- package/node_modules/zod/v4/core/core.js +61 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +226 -0
- package/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/node_modules/zod/v4/core/errors.js +195 -0
- package/node_modules/zod/v4/core/function.cjs +102 -0
- package/node_modules/zod/v4/core/function.d.cts +52 -0
- package/node_modules/zod/v4/core/function.d.ts +52 -0
- package/node_modules/zod/v4/core/function.js +75 -0
- package/node_modules/zod/v4/core/index.cjs +44 -0
- package/node_modules/zod/v4/core/index.d.cts +15 -0
- package/node_modules/zod/v4/core/index.d.ts +15 -0
- package/node_modules/zod/v4/core/index.js +15 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/parse.cjs +87 -0
- package/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/node_modules/zod/v4/core/parse.js +57 -0
- package/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/node_modules/zod/v4/core/regexes.js +95 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/node_modules/zod/v4/core/schemas.js +1717 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/node_modules/zod/v4/core/util.cjs +539 -0
- package/node_modules/zod/v4/core/util.d.cts +183 -0
- package/node_modules/zod/v4/core/util.d.ts +183 -0
- package/node_modules/zod/v4/core/util.js +493 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +116 -0
- package/node_modules/zod/v4/locales/az.cjs +141 -0
- package/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +115 -0
- package/node_modules/zod/v4/locales/be.cjs +190 -0
- package/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +164 -0
- package/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +118 -0
- package/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +135 -0
- package/node_modules/zod/v4/locales/de.cjs +142 -0
- package/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +116 -0
- package/node_modules/zod/v4/locales/en.cjs +145 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/node_modules/zod/v4/locales/en.js +117 -0
- package/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/node_modules/zod/v4/locales/eo.js +116 -0
- package/node_modules/zod/v4/locales/es.cjs +143 -0
- package/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +117 -0
- package/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +122 -0
- package/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +122 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +116 -0
- package/node_modules/zod/v4/locales/he.cjs +143 -0
- package/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +117 -0
- package/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +117 -0
- package/node_modules/zod/v4/locales/id.cjs +142 -0
- package/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +116 -0
- package/node_modules/zod/v4/locales/index.cjs +84 -0
- package/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/node_modules/zod/v4/locales/index.js +39 -0
- package/node_modules/zod/v4/locales/it.cjs +143 -0
- package/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +117 -0
- package/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +115 -0
- package/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/node_modules/zod/v4/locales/kh.js +117 -0
- package/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +121 -0
- package/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +118 -0
- package/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +116 -0
- package/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +117 -0
- package/node_modules/zod/v4/locales/no.cjs +142 -0
- package/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +116 -0
- package/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +117 -0
- package/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +117 -0
- package/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +122 -0
- package/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +116 -0
- package/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +164 -0
- package/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +117 -0
- package/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +118 -0
- package/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +143 -0
- package/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +117 -0
- package/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/node_modules/zod/v4/locales/tr.js +115 -0
- package/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/node_modules/zod/v4/locales/ua.js +117 -0
- package/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +117 -0
- package/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +116 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +17 -0
- package/node_modules/zod/v4/mini/external.cjs +62 -0
- package/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/node_modules/zod/v4/mini/external.js +13 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +30 -0
- package/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/node_modules/zod/v4/mini/schemas.js +732 -0
- package/node_modules/zod/v4-mini/index.cjs +17 -0
- package/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/node_modules/zod/v4-mini/index.js +1 -0
- package/package.json +99 -104
- package/dist/Workspace-DMye5DU8.js +0 -43113
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@byteluck/workbench-skill-contracts",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"main": "./dist/index.mjs",
|
|
11
|
+
"module": "./dist/index.mjs",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.mjs"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "restricted"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"zod": "^3.25.76"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/node": "^25.6.0",
|
|
27
|
+
"tsdown": "^0.21.8",
|
|
28
|
+
"typescript": "^6.0.2",
|
|
29
|
+
"vitest": "^4.1.4",
|
|
30
|
+
"@vben/tsconfig": "5.7.1"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "pnpm exec tsdown",
|
|
34
|
+
"check": "tsc -p tsconfig.json --noEmit",
|
|
35
|
+
"test": "vitest run --config ../../vitest.config.ts src/boundary.spec.ts src/validators/payload-validator.spec.ts"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024-present, Vben
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
# @fses/ai-chat
|
|
2
|
+
|
|
3
|
+
基于 Vue 3 的 AI 对话组件,支持 SSE 流式响应、多轮会话管理、Markdown 渲染、工具调用状态展示和结构化图表卡片渲染。
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @fses/ai-chat
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### 对等依赖
|
|
12
|
+
|
|
13
|
+
宿主项目需要提供以下依赖:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pnpm add vue@^3.5.32 ant-design-vue@^4.2.6 @ant-design/icons-vue@^6.0.0 @opentiny/tiny-robot@^0.4.1 @opentiny/tiny-robot-svgs@^0.4.1 marked@^18.0.0 echarts@^5.4.0
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 快速开始
|
|
20
|
+
|
|
21
|
+
### 方式一:Vue 插件
|
|
22
|
+
|
|
23
|
+
全局注册组件并配置 API,之后可在任意模板中直接使用 `<FsesAiChat />`。
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
// main.ts
|
|
27
|
+
import { createApp } from 'vue'
|
|
28
|
+
import Antd from 'ant-design-vue'
|
|
29
|
+
import { FsesAiChatPlugin } from '@fses/ai-chat'
|
|
30
|
+
import 'ant-design-vue/dist/reset.css'
|
|
31
|
+
import '@fses/ai-chat/dist/style.css'
|
|
32
|
+
import App from './App.vue'
|
|
33
|
+
|
|
34
|
+
const app = createApp(App)
|
|
35
|
+
|
|
36
|
+
app.use(Antd)
|
|
37
|
+
app.use(FsesAiChatPlugin, {
|
|
38
|
+
apiBaseUrl: '/ai/runtime/api',
|
|
39
|
+
enableChartCards: true,
|
|
40
|
+
headers: () => ({
|
|
41
|
+
Authorization: `Bearer ${getToken()}`,
|
|
42
|
+
}),
|
|
43
|
+
onError: (err) => {
|
|
44
|
+
console.error('[Chat Error]', err)
|
|
45
|
+
},
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
app.mount('#app')
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
在模板中使用:
|
|
52
|
+
|
|
53
|
+
```vue
|
|
54
|
+
<template>
|
|
55
|
+
<div style="width: 100%; height: 100vh;">
|
|
56
|
+
<FsesAiChat />
|
|
57
|
+
</div>
|
|
58
|
+
</template>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### 方式二:独立组件
|
|
62
|
+
|
|
63
|
+
按需引入组件,通过 Props 逐个配置。
|
|
64
|
+
|
|
65
|
+
```vue
|
|
66
|
+
<script setup lang="ts">
|
|
67
|
+
import { FsesAiChat } from '@fses/ai-chat'
|
|
68
|
+
import '@fses/ai-chat/dist/style.css'
|
|
69
|
+
|
|
70
|
+
function getToken() {
|
|
71
|
+
return localStorage.getItem('token') || ''
|
|
72
|
+
}
|
|
73
|
+
</script>
|
|
74
|
+
|
|
75
|
+
<template>
|
|
76
|
+
<FsesAiChat
|
|
77
|
+
api-base-url="/ai/runtime/api"
|
|
78
|
+
enable-chart-cards
|
|
79
|
+
:headers="() => ({ Authorization: `Bearer ${getToken()}` })"
|
|
80
|
+
:on-error="(err) => console.error(err)"
|
|
81
|
+
placeholder="请输入问数需求..."
|
|
82
|
+
welcome-text="欢迎使用 AI 助手"
|
|
83
|
+
/>
|
|
84
|
+
</template>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### 方式三:Headless
|
|
88
|
+
|
|
89
|
+
直接使用 `useChat` composable,自行构建界面。
|
|
90
|
+
|
|
91
|
+
```typescript
|
|
92
|
+
import { useChat } from '@fses/ai-chat'
|
|
93
|
+
|
|
94
|
+
const chat = useChat({
|
|
95
|
+
apiBaseUrl: '/ai/runtime/api',
|
|
96
|
+
enableChartCards: true,
|
|
97
|
+
headers: () => ({ Authorization: `Bearer ${getToken()}` }),
|
|
98
|
+
onConversationChange(id) {
|
|
99
|
+
console.log('切换到会话', id)
|
|
100
|
+
},
|
|
101
|
+
onError(err) {
|
|
102
|
+
console.error(err)
|
|
103
|
+
},
|
|
104
|
+
})
|
|
105
|
+
|
|
106
|
+
await chat.sendMessage('本月回款趋势怎么样?')
|
|
107
|
+
|
|
108
|
+
console.log(chat.messages.value)
|
|
109
|
+
console.log(chat.isLoading.value)
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## 图表卡片
|
|
113
|
+
|
|
114
|
+
开启 `enableChartCards` 后,助手消息可以携带 `cards?: ChartCardSpec[]`。组件会先渲染 Markdown 正文,再在正文下方渲染结构化图表卡片。
|
|
115
|
+
|
|
116
|
+
一张图表卡片包含标题、统计周期、一个主图表、摘要、数据来源、权限说明、标准动作按钮和可选版本信息。图表区域由前端通过 ECharts 渲染,后端只需要返回稳定的 `ChartCardSpec` 数据。
|
|
117
|
+
|
|
118
|
+
### ChartCardSpec
|
|
119
|
+
|
|
120
|
+
```typescript
|
|
121
|
+
export interface ChartCardSpec {
|
|
122
|
+
type: 'chart-card'
|
|
123
|
+
id: string
|
|
124
|
+
title: string
|
|
125
|
+
period?: string
|
|
126
|
+
chart: {
|
|
127
|
+
type: 'mini-bar' | 'bar' | 'line' | 'area' | 'pie' | 'grouped-bar'
|
|
128
|
+
xField: string
|
|
129
|
+
yFields: string[]
|
|
130
|
+
data: Record<string, unknown>[]
|
|
131
|
+
sort?: 'none' | 'asc' | 'desc'
|
|
132
|
+
limit?: number
|
|
133
|
+
hiddenSeries?: string[]
|
|
134
|
+
}
|
|
135
|
+
summary?: string
|
|
136
|
+
source: {
|
|
137
|
+
label: string
|
|
138
|
+
value?: string
|
|
139
|
+
}
|
|
140
|
+
permission: {
|
|
141
|
+
label: string
|
|
142
|
+
level?: 'self' | 'team' | 'org'
|
|
143
|
+
downloadable?: boolean
|
|
144
|
+
}
|
|
145
|
+
actions?: Array<'view' | 'download' | 'insert-left' | 'save-doc' | 'save-kb' | 'upgrade'>
|
|
146
|
+
meta?: {
|
|
147
|
+
generatedBy?: 'agent'
|
|
148
|
+
prompt?: string
|
|
149
|
+
version?: number
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
## API
|
|
155
|
+
|
|
156
|
+
### Props
|
|
157
|
+
|
|
158
|
+
| 属性 | 类型 | 默认值 | 说明 |
|
|
159
|
+
|------|------|--------|------|
|
|
160
|
+
| `apiBaseUrl` | `string` | 插件配置或 `''` | API 基础地址 |
|
|
161
|
+
| `headers` | `() => Record<string, string>` | 插件配置 | 请求头生成函数 |
|
|
162
|
+
| `onError` | `(error: Error) => void` | 插件配置 | 错误回调 |
|
|
163
|
+
| `enableChartCards` | `boolean` | `false` | 是否启用结构化图表卡片渲染 |
|
|
164
|
+
| `placeholder` | `string` | `'请输入消息...'` | 输入框占位文字 |
|
|
165
|
+
| `welcomeText` | `string` | `'开始新的对话'` | 无消息时的欢迎文字 |
|
|
166
|
+
|
|
167
|
+
Props 优先级高于插件配置,未传入的 Props 会从插件配置中读取。
|
|
168
|
+
|
|
169
|
+
### 插件配置
|
|
170
|
+
|
|
171
|
+
| 字段 | 类型 | 必填 | 说明 |
|
|
172
|
+
|------|------|------|------|
|
|
173
|
+
| `apiBaseUrl` | `string` | 是 | API 基础地址 |
|
|
174
|
+
| `headers` | `() => Record<string, string>` | 否 | 请求头生成函数,每次请求前调用 |
|
|
175
|
+
| `onError` | `(error: Error) => void` | 否 | 全局错误回调 |
|
|
176
|
+
| `enableChartCards` | `boolean` | 否 | 是否默认启用图表卡片能力 |
|
|
177
|
+
| `transport` | `FsesAiChatTransport` | 是 | 发送消息必须由宿主显式提供 `transport`,组件不会再请求根 `POST /chat` |
|
|
178
|
+
|
|
179
|
+
### useChat Composable
|
|
180
|
+
|
|
181
|
+
#### 参数
|
|
182
|
+
|
|
183
|
+
| 字段 | 类型 | 必填 | 说明 |
|
|
184
|
+
|------|------|------|------|
|
|
185
|
+
| `apiBaseUrl` | `string` | 是 | 历史会话管理 API 基础地址 |
|
|
186
|
+
| `transport` | `FsesAiChatTransport` | 是 | 消息执行 transport,通常调用 `/fde-core` 后用 `consumeAssistantStream` 接入流 |
|
|
187
|
+
| `headers` | `() => Record<string, string>` | 否 | 请求头生成函数 |
|
|
188
|
+
| `enableChartCards` | `boolean` | 否 | 是否保留并渲染结构化图表卡片 |
|
|
189
|
+
| `onConversationChange` | `(id: string) => void` | 否 | 会话切换回调 |
|
|
190
|
+
| `onError` | `(error: Error) => void` | 否 | 错误回调 |
|
|
191
|
+
|
|
192
|
+
#### 返回值
|
|
193
|
+
|
|
194
|
+
| 字段 | 类型 | 说明 |
|
|
195
|
+
|------|------|------|
|
|
196
|
+
| `conversations` | `Ref<Conversation[]>` | 所有会话列表 |
|
|
197
|
+
| `currentConversationId` | `Ref<string \| null>` | 当前活跃会话 ID |
|
|
198
|
+
| `messages` | `Ref<ChatMessage[]>` | 当前会话的消息列表 |
|
|
199
|
+
| `isLoading` | `Ref<boolean>` | 是否正在请求中 |
|
|
200
|
+
| `streamingMessageId` | `Ref<string \| null>` | 当前正在流式输出的消息 ID |
|
|
201
|
+
| `sendMessage` | `(content: string) => Promise<void>` | 发送消息 |
|
|
202
|
+
| `abortStream` | `() => void` | 中止当前流式请求 |
|
|
203
|
+
| `createConversation` | `() => Promise<string>` | 创建新会话,返回会话 ID |
|
|
204
|
+
| `deleteConversation` | `(id: string) => Promise<void>` | 删除会话 |
|
|
205
|
+
| `renameConversation` | `(id: string, name: string) => Promise<void>` | 重命名会话 |
|
|
206
|
+
| `switchConversation` | `(id: string) => Promise<void>` | 切换会话并加载历史 |
|
|
207
|
+
| `loadHistory` | `(id: string) => Promise<void>` | 加载指定会话的消息历史 |
|
|
208
|
+
|
|
209
|
+
### 类型定义
|
|
210
|
+
|
|
211
|
+
```typescript
|
|
212
|
+
interface ChatMessage {
|
|
213
|
+
id: string
|
|
214
|
+
role: 'user' | 'assistant' | 'status'
|
|
215
|
+
content: string
|
|
216
|
+
loading?: boolean
|
|
217
|
+
error?: string
|
|
218
|
+
detail?: string
|
|
219
|
+
timestamp: string
|
|
220
|
+
startTime?: number
|
|
221
|
+
cards?: ChartCardSpec[]
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
interface Conversation {
|
|
225
|
+
id: string
|
|
226
|
+
title: string
|
|
227
|
+
messages: ChatMessage[]
|
|
228
|
+
}
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
## 后端 API 约定
|
|
232
|
+
|
|
233
|
+
组件依赖以下历史会话管理接口。发送消息必须由宿主显式提供 `transport`;运行态或工作台宿主通常在 transport 内调用 `/fde-core`,再把返回流交给 `consumeAssistantStream`。
|
|
234
|
+
|
|
235
|
+
| 方法 | 路径 | 说明 |
|
|
236
|
+
|------|------|------|
|
|
237
|
+
| `GET` | `{apiBaseUrl}/chat/conversations` | 获取会话列表 |
|
|
238
|
+
| `GET` | `{apiBaseUrl}/chat/{id}/history` | 获取会话消息历史 |
|
|
239
|
+
| `DELETE` | `{apiBaseUrl}/chat/{id}` | 删除会话 |
|
|
240
|
+
| `PATCH` | `{apiBaseUrl}/chat/{id}/title` | 重命名会话,请求体:`{ title: string }` |
|
|
241
|
+
|
|
242
|
+
### SSE 事件协议
|
|
243
|
+
|
|
244
|
+
宿主 transport 可把运行态返回的 `ReadableStream<Uint8Array>` 传给 `consumeAssistantStream`。该流支持以下事件类型:
|
|
245
|
+
|
|
246
|
+
| 事件类型 | 数据字段 | 说明 |
|
|
247
|
+
|----------|----------|------|
|
|
248
|
+
| `start-step` | 无 | 开始一个新的回复步骤,创建空消息 |
|
|
249
|
+
| `text-delta` | `delta` | 增量文本,追加到当前消息 |
|
|
250
|
+
| `text-end` | 无 | 文本生成结束 |
|
|
251
|
+
| `finish-step` | 无 | 当前步骤完成 |
|
|
252
|
+
| `tool-input-start` | `toolName`, `toolCallId` | 工具开始执行,显示状态条 |
|
|
253
|
+
| `tool-output-available` | `toolCallId`, `duration` | 工具执行成功 |
|
|
254
|
+
| `tool-output-error` | `toolCallId`, `error`, `duration` | 工具执行失败 |
|
|
255
|
+
| `data-oh:subagent.start` | `agentName`, `taskId` | 子代理开始执行 |
|
|
256
|
+
| `data-oh:subagent.done` | `taskId`, `duration` | 子代理执行完成 |
|
|
257
|
+
| `error` | `message` | 服务端错误 |
|
|
258
|
+
|
|
259
|
+
### 工具名称映射
|
|
260
|
+
|
|
261
|
+
组件将内部工具名映射为中文标签展示:
|
|
262
|
+
|
|
263
|
+
| 工具名 | 显示标签 |
|
|
264
|
+
|--------|----------|
|
|
265
|
+
| `load_ontology` | 加载本体知识 |
|
|
266
|
+
| `get_connection_config` | 获取数据源配置 |
|
|
267
|
+
| `search_business_glossary` | 搜索术语表 |
|
|
268
|
+
| `match_metrics` | 匹配指标 |
|
|
269
|
+
| `match_dimensions` | 匹配维度 |
|
|
270
|
+
| `validate_sql` | 校验 SQL |
|
|
271
|
+
| `explain_plan` | 分析执行计划 |
|
|
272
|
+
| `execute_sql_api` | 执行 SQL 查询 |
|
|
273
|
+
| `skill` | 调用技能 |
|
|
274
|
+
| `task` | 执行子任务 |
|
|
275
|
+
|
|
276
|
+
## 功能特性
|
|
277
|
+
|
|
278
|
+
- **SSE 流式响应**:实时展示 AI 回复,支持中止
|
|
279
|
+
- **多会话管理**:创建、切换、重命名、删除会话
|
|
280
|
+
- **Markdown 渲染**:支持 GFM 表格、代码块、列表、引用等
|
|
281
|
+
- **工具调用展示**:可视化工具执行状态和耗时
|
|
282
|
+
- **子代理状态**:展示子代理执行进度
|
|
283
|
+
- **图表卡片**:基于结构化 `ChartCardSpec` 渲染业务图表卡片
|
|
284
|
+
- **安全渲染**:通过 DOMPurify 对 Markdown HTML 进行安全过滤,不执行用户提供的 HTML、CSS、JavaScript 或原始 ECharts option
|
|
285
|
+
- **自动滚动**:新消息到达时自动滚动到底部
|
|
286
|
+
- **错误处理**:流式错误和工具错误均有独立展示
|
|
287
|
+
- **快速操作**:首次使用时提供快捷提问按钮
|
|
288
|
+
|
|
289
|
+
## 集成演示
|
|
290
|
+
|
|
291
|
+
宿主应用只需要引入 `FsesAiChat` 并开启图表卡片能力:
|
|
292
|
+
|
|
293
|
+
```vue
|
|
294
|
+
<script setup lang="ts">
|
|
295
|
+
import { FsesAiChat } from '@fses/ai-chat'
|
|
296
|
+
</script>
|
|
297
|
+
|
|
298
|
+
<template>
|
|
299
|
+
<FsesAiChat api-base-url="/ai_run/api/agent" enable-chart-cards />
|
|
300
|
+
</template>
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
## 构建
|
|
304
|
+
|
|
305
|
+
```bash
|
|
306
|
+
pnpm build
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
产出物:
|
|
310
|
+
|
|
311
|
+
- `dist/fses-ai-chat.js`:ES Module
|
|
312
|
+
- `dist/fses-ai-chat.umd.cjs`:UMD
|
|
313
|
+
- `dist/style.css`:样式文件
|
|
314
|
+
- `dist/*.d.ts`:TypeScript 类型声明
|
|
315
|
+
|
|
316
|
+
## 测试
|
|
317
|
+
|
|
318
|
+
```bash
|
|
319
|
+
pnpm test
|
|
320
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ChartCardSpec, MetricWorkbenchDisplaySpec } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Formats a numeric chart value with a backend-provided display spec, preserving unit, decimals
|
|
4
|
+
* and percent semantics instead of recomputing them on the frontend.
|
|
5
|
+
* @param value - Raw numeric value from a chart row.
|
|
6
|
+
* @param spec - Backend value display spec (unit/decimals/percent), if any.
|
|
7
|
+
* @returns Formatted string honoring the spec, or the plain number when no spec is given.
|
|
8
|
+
*/
|
|
9
|
+
export declare function formatChartValue(value: unknown, spec?: MetricWorkbenchDisplaySpec): string;
|
|
10
|
+
export declare function normalizeNumber(value: unknown): number;
|
|
11
|
+
export declare function getVisibleYFields(spec: ChartCardSpec): string[];
|
|
12
|
+
export declare function getDisplayRows(spec: ChartCardSpec): Record<string, unknown>[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Markdown chart-card derivation - turns assistant tabular replies into insertable chart cards.
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-05-06
|
|
5
|
+
*/
|
|
6
|
+
import type { ChartCardSpec } from './types';
|
|
7
|
+
type DeriveChartCardsOptions = {
|
|
8
|
+
userQuestion?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function deriveChartCardsFromMarkdown(markdown: string, options?: DeriveChartCardsOptions): ChartCardSpec[];
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ChartCardSpec, MetricWorkbenchCardSpec } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Builds a workbench metric card from execute_metric_api output.
|
|
4
|
+
* @param output - Tool output emitted by the runtime metric executor.
|
|
5
|
+
* @returns Insertable metric card spec, or null for non-metric outputs.
|
|
6
|
+
*/
|
|
7
|
+
export declare function deriveMetricWorkbenchCardFromToolOutput(output: unknown): MetricWorkbenchCardSpec | null;
|
|
8
|
+
export declare function deriveChartCardFromToolOutput(output: unknown): ChartCardSpec | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ChartCardSpec } from './types';
|
|
2
|
+
export declare const WORKBENCH_CARD_TRACE_PREFIX = "[workbench-card-trace]";
|
|
3
|
+
export interface ChartCardTraceSummary {
|
|
4
|
+
cardId: string;
|
|
5
|
+
title: string;
|
|
6
|
+
chartType: string;
|
|
7
|
+
xField: string;
|
|
8
|
+
yFields: string[];
|
|
9
|
+
rowCount: number;
|
|
10
|
+
sourceLabel?: string;
|
|
11
|
+
hasDataBinding: boolean;
|
|
12
|
+
bindingId?: string;
|
|
13
|
+
refreshApi?: string;
|
|
14
|
+
hasParamsSchema?: boolean;
|
|
15
|
+
generatedBy?: string;
|
|
16
|
+
metaVersion?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare function summarizeChartCard(card: ChartCardSpec): ChartCardTraceSummary;
|
|
19
|
+
export declare function traceChartCard(stage: string, payload?: Record<string, unknown>): void;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Chart card shared types for ai-chat rendering and workbench insertion.
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-05-06
|
|
5
|
+
*/
|
|
6
|
+
export type ChartCardAction = 'view' | 'download' | 'insert-left' | 'save-doc' | 'save-kb' | 'upgrade';
|
|
7
|
+
export type ChartCardType = 'mini-bar' | 'bar' | 'line' | 'area' | 'pie' | 'donut' | 'radar' | 'scatter' | 'bubble' | 'heatmap' | 'funnel' | 'gauge' | 'map' | 'sankey' | 'tree' | 'treemap' | 'sunburst' | 'candlestick' | 'kline' | 'boxplot' | 'graph' | 'network' | 'horizontal-bar' | 'grouped-bar';
|
|
8
|
+
export interface ChartCardSpec {
|
|
9
|
+
type: 'chart-card';
|
|
10
|
+
id: string;
|
|
11
|
+
title: string;
|
|
12
|
+
period?: string;
|
|
13
|
+
chart: {
|
|
14
|
+
type: ChartCardType;
|
|
15
|
+
xField: string;
|
|
16
|
+
yFields: string[];
|
|
17
|
+
data: Record<string, unknown>[];
|
|
18
|
+
sort?: 'none' | 'asc' | 'desc';
|
|
19
|
+
limit?: number;
|
|
20
|
+
hiddenSeries?: string[];
|
|
21
|
+
/**
|
|
22
|
+
* Backend-provided value display spec (unit, decimals, percent). When present the renderer
|
|
23
|
+
* formats numeric values with it instead of recomputing units/decimals on the frontend.
|
|
24
|
+
*/
|
|
25
|
+
valueSpec?: MetricWorkbenchDisplaySpec;
|
|
26
|
+
};
|
|
27
|
+
summary?: string;
|
|
28
|
+
source: {
|
|
29
|
+
label: string;
|
|
30
|
+
value?: string;
|
|
31
|
+
};
|
|
32
|
+
dataBinding?: {
|
|
33
|
+
bindingKind?: 'runtime_metric' | 'semantic_sql' | string;
|
|
34
|
+
source?: 'runtime_metric' | 'semantic_sql' | string;
|
|
35
|
+
question?: string;
|
|
36
|
+
validatedSql?: string;
|
|
37
|
+
sqlDialect?: string;
|
|
38
|
+
bindingId?: string;
|
|
39
|
+
contractHash?: string;
|
|
40
|
+
executeApi?: string;
|
|
41
|
+
metricCode?: string;
|
|
42
|
+
metricId?: string;
|
|
43
|
+
metricName?: string;
|
|
44
|
+
readbackApi?: string;
|
|
45
|
+
refreshApi?: string;
|
|
46
|
+
fieldMapping?: {
|
|
47
|
+
xField?: string;
|
|
48
|
+
yFields?: string[];
|
|
49
|
+
[key: string]: unknown;
|
|
50
|
+
};
|
|
51
|
+
paramsSchema?: Record<string, unknown>;
|
|
52
|
+
permissionContext?: {
|
|
53
|
+
tenantId?: string;
|
|
54
|
+
appId?: string;
|
|
55
|
+
[key: string]: unknown;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
permission: {
|
|
59
|
+
label: string;
|
|
60
|
+
level?: 'self' | 'team' | 'org';
|
|
61
|
+
downloadable?: boolean;
|
|
62
|
+
};
|
|
63
|
+
actions?: ChartCardAction[];
|
|
64
|
+
meta?: {
|
|
65
|
+
generatedBy?: 'agent';
|
|
66
|
+
prompt?: string;
|
|
67
|
+
version?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Height in CSS pixels measured from the rendered chat card before inserting into the workbench canvas.
|
|
70
|
+
*/
|
|
71
|
+
workbenchAdaptiveHeightPx?: number;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
export type MetricWorkbenchCardFormat = 'currency' | 'number' | 'percent';
|
|
75
|
+
export interface MetricWorkbenchDisplaySpec {
|
|
76
|
+
unitCode?: string;
|
|
77
|
+
unitLabel?: string;
|
|
78
|
+
valueFormat?: MetricWorkbenchCardFormat | 'text' | string;
|
|
79
|
+
decimalPlaces?: number;
|
|
80
|
+
displayValue?: string;
|
|
81
|
+
[key: string]: unknown;
|
|
82
|
+
}
|
|
83
|
+
export interface MetricWorkbenchCardSpec {
|
|
84
|
+
type: 'metric-card';
|
|
85
|
+
id: string;
|
|
86
|
+
title: string;
|
|
87
|
+
metricName: string;
|
|
88
|
+
metricCode?: string;
|
|
89
|
+
metricId?: string;
|
|
90
|
+
value: number;
|
|
91
|
+
displayValue?: string;
|
|
92
|
+
displaySpec?: MetricWorkbenchDisplaySpec;
|
|
93
|
+
format: MetricWorkbenchCardFormat;
|
|
94
|
+
source: {
|
|
95
|
+
label: string;
|
|
96
|
+
value?: string;
|
|
97
|
+
};
|
|
98
|
+
dataBinding?: {
|
|
99
|
+
bindingKind?: 'runtime_metric' | 'semantic_sql' | string;
|
|
100
|
+
source?: 'runtime_metric' | 'semantic_sql' | string;
|
|
101
|
+
question?: string;
|
|
102
|
+
bindingId?: string;
|
|
103
|
+
contractHash?: string;
|
|
104
|
+
executeApi?: string;
|
|
105
|
+
metricCode?: string;
|
|
106
|
+
metricId?: string;
|
|
107
|
+
metricName?: string;
|
|
108
|
+
readbackApi?: string;
|
|
109
|
+
refreshApi?: string;
|
|
110
|
+
displayValue?: string;
|
|
111
|
+
displaySpec?: MetricWorkbenchDisplaySpec;
|
|
112
|
+
unitCode?: string;
|
|
113
|
+
unitLabel?: string;
|
|
114
|
+
valueFormat?: string;
|
|
115
|
+
decimalPlaces?: number;
|
|
116
|
+
queryFilters?: unknown[];
|
|
117
|
+
paramsSchema?: Record<string, unknown>;
|
|
118
|
+
permissionContext?: {
|
|
119
|
+
tenantId?: string;
|
|
120
|
+
appId?: string;
|
|
121
|
+
[key: string]: unknown;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
permission: {
|
|
125
|
+
label: string;
|
|
126
|
+
level?: 'self' | 'team' | 'org';
|
|
127
|
+
};
|
|
128
|
+
meta?: {
|
|
129
|
+
generatedBy?: 'agent';
|
|
130
|
+
prompt?: string;
|
|
131
|
+
version?: number;
|
|
132
|
+
};
|
|
133
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CardRecommendationChooseFeedback, CardRecommendationDraft, CardRecommendationItem } from '../composables/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
draft: CardRecommendationDraft;
|
|
4
|
+
defer?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
configure: (item: CardRecommendationItem) => any;
|
|
8
|
+
choose: (item: CardRecommendationItem, feedback?: CardRecommendationChooseFeedback) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onConfigure?: (item: CardRecommendationItem) => any;
|
|
11
|
+
onChoose?: (item: CardRecommendationItem, feedback?: CardRecommendationChooseFeedback) => any;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CardRecommendationChooseFeedback, CardRecommendationDraft, CardRecommendationItem } from '../composables/types';
|
|
2
|
+
import { type RecommendationConfigSummary } from '../utils/card-recommendation-config-summary';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
draft: CardRecommendationDraft;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* 璇诲彇鎺ㄨ崘椤归厤缃憳瑕併€? * @param baseItem - 鎺ㄨ崘鍒嗙粍鍘熷椤广€? * @returns 閰嶇疆鎽樿銆? */
|
|
8
|
+
declare function recommendationConfigSummary(baseItem: CardRecommendationItem): RecommendationConfigSummary;
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
10
|
+
recommendationConfigSummary: typeof recommendationConfigSummary;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
configure: (item: CardRecommendationItem) => any;
|
|
13
|
+
choose: (item: CardRecommendationItem, feedback?: CardRecommendationChooseFeedback) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onConfigure?: (item: CardRecommendationItem) => any;
|
|
16
|
+
onChoose?: (item: CardRecommendationItem, feedback?: CardRecommendationChooseFeedback) => any;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ChartCardSpec } from '../chart-card/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
card: ChartCardSpec;
|
|
4
|
+
showInsertAction?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
insertCard: (card: ChartCardSpec) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onInsertCard?: (card: ChartCardSpec) => any;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { ChartCardSpec } from '../chart-card/types';
|
|
2
|
+
import type { CardRecommendationChooseFeedback, CardRecommendationItem, ChatMessage } from '../composables/types';
|
|
3
|
+
import { type PropType } from 'vue';
|
|
4
|
+
/**
|
|
5
|
+
* 将外部保存结果应用到本地按钮状态。
|
|
6
|
+
* @param status - 保存结果状态。
|
|
7
|
+
*/
|
|
8
|
+
declare function setMemoryCaptureStatus(status: 'draft' | 'candidate_created' | 'dismissed'): void;
|
|
9
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
|
+
message: {
|
|
11
|
+
type: PropType<ChatMessage>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
messages: {
|
|
15
|
+
type: PropType<ChatMessage[]>;
|
|
16
|
+
default: () => any[];
|
|
17
|
+
};
|
|
18
|
+
autoInsertComposePlan: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
taskStateActionsDisabled: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
}>, {
|
|
27
|
+
setMemoryCaptureStatus: typeof setMemoryCaptureStatus;
|
|
28
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
+
insertCard: (card: ChartCardSpec) => any;
|
|
30
|
+
autoInsertComposePlanChange: (enabled: boolean) => any;
|
|
31
|
+
cancelPlan: () => any;
|
|
32
|
+
cancelTaskState: (turnId: string, taskId: string, phrase: string) => any;
|
|
33
|
+
chooseCardRecommendation: (item: CardRecommendationItem, feedback?: CardRecommendationChooseFeedback) => any;
|
|
34
|
+
configureCardRecommendation: (item: CardRecommendationItem) => any;
|
|
35
|
+
confirmPlan: (planId: string) => any;
|
|
36
|
+
confirmTaskState: (turnId: string, taskId: string, phrase: string) => any;
|
|
37
|
+
memoryCaptureDismiss: (turnId: string, itemId: string) => any;
|
|
38
|
+
memoryCaptureSave: (turnId: string, itemId: string) => any;
|
|
39
|
+
modifyPlan: (planId: string, prompt: string) => any;
|
|
40
|
+
sendFollowUp: (text: string) => any;
|
|
41
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
message: {
|
|
43
|
+
type: PropType<ChatMessage>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
messages: {
|
|
47
|
+
type: PropType<ChatMessage[]>;
|
|
48
|
+
default: () => any[];
|
|
49
|
+
};
|
|
50
|
+
autoInsertComposePlan: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
taskStateActionsDisabled: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
}>> & Readonly<{
|
|
59
|
+
onInsertCard?: (card: ChartCardSpec) => any;
|
|
60
|
+
onAutoInsertComposePlanChange?: (enabled: boolean) => any;
|
|
61
|
+
onCancelPlan?: () => any;
|
|
62
|
+
onCancelTaskState?: (turnId: string, taskId: string, phrase: string) => any;
|
|
63
|
+
onChooseCardRecommendation?: (item: CardRecommendationItem, feedback?: CardRecommendationChooseFeedback) => any;
|
|
64
|
+
onConfigureCardRecommendation?: (item: CardRecommendationItem) => any;
|
|
65
|
+
onConfirmPlan?: (planId: string) => any;
|
|
66
|
+
onConfirmTaskState?: (turnId: string, taskId: string, phrase: string) => any;
|
|
67
|
+
onMemoryCaptureDismiss?: (turnId: string, itemId: string) => any;
|
|
68
|
+
onMemoryCaptureSave?: (turnId: string, itemId: string) => any;
|
|
69
|
+
onModifyPlan?: (planId: string, prompt: string) => any;
|
|
70
|
+
onSendFollowUp?: (text: string) => any;
|
|
71
|
+
}>, {
|
|
72
|
+
messages: ChatMessage[];
|
|
73
|
+
taskStateActionsDisabled: boolean;
|
|
74
|
+
autoInsertComposePlan: boolean;
|
|
75
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
76
|
+
export default _default;
|