@fses/workbench-app 0.1.0
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/LICENSE +9 -0
- package/dist/Workspace-DP3xr4Jp.js +42979 -0
- package/dist/adapters/defaults.d.ts +15 -0
- package/dist/adapters/index.d.ts +8 -0
- package/dist/adapters/testDoubles.d.ts +12 -0
- package/dist/adapters/types.d.ts +84 -0
- package/dist/canvas/api/types.d.ts +117 -0
- package/dist/canvas/bridge/workbenchCanvasBus.d.ts +7 -0
- package/dist/canvas/layout/logicalLayoutEngine.d.ts +85 -0
- package/dist/canvas/persistence/canvasSnapshotStorage.d.ts +3 -0
- package/dist/card/index.d.ts +8 -0
- package/dist/card/index.js +17 -0
- package/dist/chat/index.d.ts +9 -0
- package/dist/chat/index.js +12 -0
- package/dist/components/WorkbenchAppHost.vue.d.ts +28 -0
- package/dist/components/WorkbenchApplication.vue.d.ts +13 -0
- package/dist/components/WorkbenchShell.vue.d.ts +32 -0
- package/dist/components/WorkbenchWorkspaceCore.vue.d.ts +20 -0
- package/dist/config/workbenchAppConfig.d.ts +43 -0
- package/dist/contracts/index.d.ts +7 -0
- package/dist/contracts/index.js +6 -0
- package/dist/extensions/index.d.ts +59 -0
- package/dist/fde-runtime/runtime/fdeSkillDisplayLabel.d.ts +15 -0
- package/dist/fses-workbench-app.js +91 -0
- package/dist/index-A8Vg4UXL.js +1091 -0
- package/dist/index.d.ts +39 -0
- package/dist/internal/personal-workbench/canvas-runtime/api/canvasFacade.d.ts +2 -0
- package/dist/internal/personal-workbench/canvas-runtime/api/types.d.ts +6 -0
- package/dist/internal/personal-workbench/canvas-runtime/factory/cardFactory.d.ts +25 -0
- package/dist/internal/personal-workbench/canvas-runtime/layout/logicalLayoutEngine.d.ts +6 -0
- package/dist/internal/personal-workbench/canvas-runtime/layout/recommendedCardPlacement.d.ts +54 -0
- package/dist/internal/personal-workbench/canvas-runtime/lifecycle/cardLifecycleService.d.ts +12 -0
- package/dist/internal/personal-workbench/canvas-runtime/primitive/primitivePolicyGate.d.ts +9 -0
- package/dist/internal/personal-workbench/components/runtime/RuntimeCapabilitySlots.vue.d.ts +14 -0
- package/dist/internal/personal-workbench/components/workbench/ChartLinkageConfigModal.vue.d.ts +23 -0
- package/dist/internal/personal-workbench/components/workbench/ConversationTurnCard.vue.d.ts +23 -0
- package/dist/internal/personal-workbench/components/workbench/GridStackCanvas.vue.d.ts +91 -0
- package/dist/internal/personal-workbench/components/workbench/GridStackCardShell.vue.d.ts +49 -0
- package/dist/internal/personal-workbench/components/workbench/GridStackContainer.vue.d.ts +39 -0
- package/dist/internal/personal-workbench/components/workbench/LayoutPicker.vue.d.ts +13 -0
- package/dist/internal/personal-workbench/components/workbench/StudioComposer.vue.d.ts +24 -0
- package/dist/internal/personal-workbench/components/workbench/SystemCardPreviewPopover.vue.d.ts +17 -0
- package/dist/internal/personal-workbench/components/workbench/WelcomeBanner.vue.d.ts +19 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchAccessDenied.vue.d.ts +7 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchCanvas.vue.d.ts +290 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchCanvasSettingsMenu.vue.d.ts +40 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchCardConfigDialog.vue.d.ts +14 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchDropdownPortal.vue.d.ts +32 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchFdeCardCatalog.vue.d.ts +12 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchListPopover.vue.d.ts +15 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchMetricFilterBindingEditor.vue.d.ts +14 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchRecommendationFieldConfigDialog.vue.d.ts +14 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchStudio.vue.d.ts +301 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchThemePicker.vue.d.ts +10 -0
- package/dist/internal/personal-workbench/components/workbench/helpers.d.ts +18 -0
- package/dist/internal/personal-workbench/components/workbench/showcase/WorkbenchShowcase.vue.d.ts +273 -0
- package/dist/internal/personal-workbench/composables/useWorkbenchRuntime.d.ts +9 -0
- package/dist/internal/personal-workbench/extensions/cards/customCardCatalog.d.ts +27 -0
- package/dist/internal/personal-workbench/extensions/cards/customComponentRegistry.d.ts +7 -0
- package/dist/internal/personal-workbench/extensions/cards/userCustomCardInsertion.d.ts +21 -0
- package/dist/internal/personal-workbench/extensions/fde/fdeGeneratedCards.d.ts +2 -0
- package/dist/internal/personal-workbench/extensions/fde/fdeGeneratedDashboard.d.ts +1 -0
- package/dist/internal/personal-workbench/extensions/fde/fdeGeneratedTemplatePage.d.ts +1 -0
- package/dist/internal/personal-workbench/extensions/fde/fdeSkillWorkbenchTheme.d.ts +1 -0
- package/dist/internal/personal-workbench/extensions/runtimeExtensions.d.ts +37 -0
- package/dist/internal/personal-workbench/extensions/workbenchAdapters.d.ts +1 -0
- package/dist/internal/personal-workbench/extensions/workbenchConfig.d.ts +1 -0
- package/dist/internal/personal-workbench/extensions/workbenchExtensions.d.ts +1 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillCardsHost.vue.d.ts +2 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillChartCard.vue.d.ts +57 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardCockpitHeader.vue.d.ts +6 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardCockpitTitle.vue.d.ts +5 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardGrid.vue.d.ts +57 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardHeaderBand.vue.d.ts +6 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardHost.vue.d.ts +2 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardKpiItem.vue.d.ts +6 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardMarqueeList.vue.d.ts +6 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardShell.vue.d.ts +21 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardSummaryHeader.vue.d.ts +6 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardWidget.vue.d.ts +56 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDrilldownModal.vue.d.ts +20 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillFilterBar.vue.d.ts +18 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillHeaderCard.vue.d.ts +6 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillListCard.vue.d.ts +21 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillMetricChartToolbar.vue.d.ts +20 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillNumberCard.vue.d.ts +21 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillProtocolChartRenderer.vue.d.ts +18 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillQueryCard.vue.d.ts +23 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillTemplatePageHost.vue.d.ts +2 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillCardTypes.d.ts +514 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillChartDataRequestMeta.d.ts +13 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillChartDensityFit.d.ts +67 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillChartOptions.d.ts +14 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillChartTheme.d.ts +51 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardContext.d.ts +19 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardDrilldown.d.ts +21 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardKpi.d.ts +36 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardLayout.d.ts +39 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardRefresh.d.ts +24 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardThemes.d.ts +108 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardTypes.d.ts +87 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardViewport.d.ts +71 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDataRefresh.d.ts +59 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDisplayLabel.d.ts +6 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillFilterBarBridge.d.ts +100 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillFilterDefaults.d.ts +21 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillFilterOptions.d.ts +95 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillFloatingAction.d.ts +19 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillJson.d.ts +11 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillListMarquee.d.ts +32 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillMetricChartDrilldown.d.ts +101 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillMetricNumberDetail.d.ts +19 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillNumberFormat.d.ts +17 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChart.d.ts +37 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartApi.d.ts +17 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartDisplayData.d.ts +10 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartDrilldown.d.ts +68 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartLinkage.d.ts +19 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartRefresh.d.ts +19 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillQueryFilters.d.ts +82 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillServiceDrilldown.d.ts +89 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillServiceFields.d.ts +17 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillTemplatePageMount.d.ts +37 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillTemplatePageTypes.d.ts +59 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillTimeRangeDefault.d.ts +45 -0
- package/dist/internal/personal-workbench/lib/agentMemoryClient.d.ts +376 -0
- package/dist/internal/personal-workbench/lib/aiChartProtocol.d.ts +31 -0
- package/dist/internal/personal-workbench/lib/aiMetricCardSpec.d.ts +89 -0
- package/dist/internal/personal-workbench/lib/artifactRules.d.ts +15 -0
- package/dist/internal/personal-workbench/lib/assistantPersona.d.ts +28 -0
- package/dist/internal/personal-workbench/lib/assistantPersonaProfiles.d.ts +21 -0
- package/dist/internal/personal-workbench/lib/businessGroupClient.d.ts +25 -0
- package/dist/internal/personal-workbench/lib/canonicalLayoutContext.d.ts +38 -0
- package/dist/internal/personal-workbench/lib/cardContractDemo.d.ts +20 -0
- package/dist/internal/personal-workbench/lib/cardDisplay.d.ts +1 -0
- package/dist/internal/personal-workbench/lib/cardSizeConfig.d.ts +29 -0
- package/dist/internal/personal-workbench/lib/cardStyleConfig.d.ts +128 -0
- package/dist/internal/personal-workbench/lib/conversationScreenContext.d.ts +30 -0
- package/dist/internal/personal-workbench/lib/deepAgentApi.d.ts +133 -0
- package/dist/internal/personal-workbench/lib/deepAgentProcessGroups.d.ts +6 -0
- package/dist/internal/personal-workbench/lib/deepAgentProgressMessage.d.ts +6 -0
- package/dist/internal/personal-workbench/lib/deepAgentToolDisplayName.d.ts +6 -0
- package/dist/internal/personal-workbench/lib/deepAgentWorkbenchCardMutation.d.ts +39 -0
- package/dist/internal/personal-workbench/lib/deepAgentWorkbenchCardRecommendation.d.ts +66 -0
- package/dist/internal/personal-workbench/lib/dynamicEchartOption.d.ts +14 -0
- package/dist/internal/personal-workbench/lib/echartsOptionEditorBridge.d.ts +34 -0
- package/dist/internal/personal-workbench/lib/echartsProtocolDataSlimming.d.ts +24 -0
- package/dist/internal/personal-workbench/lib/echartsTemplateAssets.d.ts +24 -0
- package/dist/internal/personal-workbench/lib/echartsTemplateMaterializer.d.ts +31 -0
- package/dist/internal/personal-workbench/lib/fdeWorkbenchAssetPackage.d.ts +107 -0
- package/dist/internal/personal-workbench/lib/fdeWorkbenchConfigClient.d.ts +96 -0
- package/dist/internal/personal-workbench/lib/formatters.d.ts +5 -0
- package/dist/internal/personal-workbench/lib/historyCardBindingRestore.fixture.d.ts +15 -0
- package/dist/internal/personal-workbench/lib/platformFetchClient.d.ts +105 -0
- package/dist/internal/personal-workbench/lib/queryTraceDisplay.d.ts +30 -0
- package/dist/internal/personal-workbench/lib/runtimeCapabilities.d.ts +8 -0
- package/dist/internal/personal-workbench/lib/runtimeIdentity.d.ts +36 -0
- package/dist/internal/personal-workbench/lib/runtimePrimitiveRegistry.d.ts +51 -0
- package/dist/internal/personal-workbench/lib/summaryPreview.d.ts +18 -0
- package/dist/internal/personal-workbench/lib/systemCardPreviewProfile.d.ts +23 -0
- package/dist/internal/personal-workbench/lib/userVisibleTextGuard.d.ts +23 -0
- package/dist/internal/personal-workbench/lib/utils.d.ts +46 -0
- package/dist/internal/personal-workbench/lib/vueRuntimeAdapters.d.ts +450 -0
- package/dist/internal/personal-workbench/lib/workbenchApi.d.ts +686 -0
- package/dist/internal/personal-workbench/lib/workbenchAttachmentUpload.d.ts +47 -0
- package/dist/internal/personal-workbench/lib/workbenchAutoRefreshSession.d.ts +21 -0
- package/dist/internal/personal-workbench/lib/workbenchBusinessGapDiagnostics.d.ts +16 -0
- package/dist/internal/personal-workbench/lib/workbenchCanvasBusinessGapChecklist.d.ts +106 -0
- package/dist/internal/personal-workbench/lib/workbenchCanvasClassification.d.ts +119 -0
- package/dist/internal/personal-workbench/lib/workbenchCanvasDiagnostics.d.ts +100 -0
- package/dist/internal/personal-workbench/lib/workbenchCanvasImageCardVisual.d.ts +168 -0
- package/dist/internal/personal-workbench/lib/workbenchCanvasImageCompose.d.ts +106 -0
- package/dist/internal/personal-workbench/lib/workbenchCanvasLayoutOverride.d.ts +46 -0
- package/dist/internal/personal-workbench/lib/workbenchCardConfigProfile.d.ts +45 -0
- package/dist/internal/personal-workbench/lib/workbenchCardRecommendationBinding.d.ts +64 -0
- package/dist/internal/personal-workbench/lib/workbenchCardRecommendationFallback.d.ts +24 -0
- package/dist/internal/personal-workbench/lib/workbenchCardRecommendationViews.d.ts +24 -0
- package/dist/internal/personal-workbench/lib/workbenchCardUsabilityProfile.d.ts +33 -0
- package/dist/internal/personal-workbench/lib/workbenchChatHistory.d.ts +19 -0
- package/dist/internal/personal-workbench/lib/workbenchChatHistoryReplay.d.ts +25 -0
- package/dist/internal/personal-workbench/lib/workbenchChatMessageOrdering.d.ts +6 -0
- package/dist/internal/personal-workbench/lib/workbenchChatPendingTurn.d.ts +21 -0
- package/dist/internal/personal-workbench/lib/workbenchChatReplyBridge.d.ts +55 -0
- package/dist/internal/personal-workbench/lib/workbenchChatStatusCompletion.d.ts +6 -0
- package/dist/internal/personal-workbench/lib/workbenchChatTurnSignature.d.ts +6 -0
- package/dist/internal/personal-workbench/lib/workbenchConfigDraftReseed.d.ts +18 -0
- package/dist/internal/personal-workbench/lib/workbenchCustomCardCatalog.d.ts +16 -0
- package/dist/internal/personal-workbench/lib/workbenchCustomComponentRegistry.d.ts +4 -0
- package/dist/internal/personal-workbench/lib/workbenchDataBindingBadge.d.ts +19 -0
- package/dist/internal/personal-workbench/lib/workbenchDataBindingRefreshPolicy.d.ts +6 -0
- package/dist/internal/personal-workbench/lib/workbenchDataBindingRefreshTarget.d.ts +47 -0
- package/dist/internal/personal-workbench/lib/workbenchDeleteLayoutCompact.d.ts +41 -0
- package/dist/internal/personal-workbench/lib/workbenchEntryParams.d.ts +50 -0
- package/dist/internal/personal-workbench/lib/workbenchGridstackAdapter.d.ts +231 -0
- package/dist/internal/personal-workbench/lib/workbenchGridstackSaveLayout.d.ts +48 -0
- package/dist/internal/personal-workbench/lib/workbenchImageCanvasSizing.d.ts +45 -0
- package/dist/internal/personal-workbench/lib/workbenchImageComposeEntry.d.ts +53 -0
- package/dist/internal/personal-workbench/lib/workbenchImageGridstackRowRecovery.d.ts +93 -0
- package/dist/internal/personal-workbench/lib/workbenchLayout.d.ts +174 -0
- package/dist/internal/personal-workbench/lib/workbenchManualReplacement.d.ts +87 -0
- package/dist/internal/personal-workbench/lib/workbenchMetricChartDetail.d.ts +75 -0
- package/dist/internal/personal-workbench/lib/workbenchMetricDetailApi.d.ts +62 -0
- package/dist/internal/personal-workbench/lib/workbenchMetricFilterBinding.d.ts +85 -0
- package/dist/internal/personal-workbench/lib/workbenchMetricFilterLinkage.d.ts +30 -0
- package/dist/internal/personal-workbench/lib/workbenchPendingPatch.d.ts +54 -0
- package/dist/internal/personal-workbench/lib/workbenchRemoteClient.d.ts +39 -0
- package/dist/internal/personal-workbench/lib/workbenchShellSplit.d.ts +107 -0
- package/dist/internal/personal-workbench/lib/workbenchShowcase.d.ts +60 -0
- package/dist/internal/personal-workbench/lib/workbenchSocketClient.d.ts +28 -0
- package/dist/internal/personal-workbench/lib/workbenchStorage.d.ts +67 -0
- package/dist/internal/personal-workbench/lib/workbenchSystemCardPreviews.d.ts +31 -0
- package/dist/internal/personal-workbench/lib/workbenchSystemCardPrompt.d.ts +36 -0
- package/dist/internal/personal-workbench/lib/workbenchTextIntent.d.ts +11 -0
- package/dist/internal/personal-workbench/lib/workbenchThemes.d.ts +6 -0
- package/dist/internal/personal-workbench/lib/workbenchV2Adapter.d.ts +49 -0
- package/dist/internal/personal-workbench/pages/Workspace.vue.d.ts +7 -0
- package/dist/internal/personal-workbench/stores/workbenchRuntime.d.ts +170 -0
- package/dist/internal/personal-workbench/themes/index.d.ts +6 -0
- package/dist/internal/personal-workbench/themes/workbenchThemeDefinitions.d.ts +78 -0
- package/dist/internal/personal-workbench/types/workbenchV2.d.ts +211 -0
- package/dist/internal/personal-workbench/vue-types/workbenchRuntime.d.ts +191 -0
- package/dist/runtime/context/workbenchAppContext.d.ts +32 -0
- package/dist/runtime/conversation/workbenchChatMessageOrdering.d.ts +50 -0
- package/dist/runtime/conversation/workbenchChatStatusCompletion.d.ts +27 -0
- package/dist/runtime/conversation/workbenchChatTurnSignature.d.ts +11 -0
- package/dist/runtime/data-binding/workbenchDataBindingRefreshPolicy.d.ts +36 -0
- package/dist/runtime/deep-agent/deepAgentProcessGroups.d.ts +84 -0
- package/dist/runtime/deep-agent/deepAgentProgressMessage.d.ts +22 -0
- package/dist/runtime/deep-agent/deepAgentToolDisplayName.d.ts +12 -0
- package/dist/runtime/index.d.ts +8 -0
- package/dist/runtime/index.js +5 -0
- package/dist/runtime/store/workbenchRuntimeFacade.d.ts +16 -0
- package/dist/style.css +1 -0
- package/dist/types/index.d.ts +19 -0
- package/dist/useWorkbenchRuntime-Pekhufen.js +26338 -0
- package/package.json +143 -0
package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillTemplatePageMount.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview FDE Skill 模板区域挂载工具 - 解析 region 名与 mapping
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-07-10
|
|
5
|
+
*/
|
|
6
|
+
import type { FdeSkillCardIntent } from './fdeSkillCardTypes';
|
|
7
|
+
import type { FdeSkillTemplatePageManifest } from './fdeSkillTemplatePageTypes';
|
|
8
|
+
/**
|
|
9
|
+
* 将具名插槽名解析为区域编号。
|
|
10
|
+
* @param name - 如 region-3
|
|
11
|
+
* @returns 区域编号或 null
|
|
12
|
+
*/
|
|
13
|
+
export declare function parseFdeSkillTemplateRegionName(name: string): number | null;
|
|
14
|
+
/**
|
|
15
|
+
* 格式化区域插槽名。
|
|
16
|
+
* @param regionNo - 区域编号
|
|
17
|
+
* @returns region-N
|
|
18
|
+
*/
|
|
19
|
+
export declare function formatFdeSkillTemplateRegionName(regionNo: number): string;
|
|
20
|
+
/**
|
|
21
|
+
* 按 card.id 建索引。
|
|
22
|
+
* @param cards - 卡列表
|
|
23
|
+
* @returns id → Intent
|
|
24
|
+
*/
|
|
25
|
+
export declare function indexFdeSkillTemplateCardsById(cards: readonly FdeSkillCardIntent[]): Map<string, FdeSkillCardIntent>;
|
|
26
|
+
/**
|
|
27
|
+
* 根据 mappings 构建 region_no → 卡。
|
|
28
|
+
* @param manifest - 模板页协议
|
|
29
|
+
* @returns 区域到卡的映射
|
|
30
|
+
*/
|
|
31
|
+
export declare function resolveFdeSkillTemplateRegionCardMap(manifest: FdeSkillTemplatePageManifest): Map<number, FdeSkillCardIntent>;
|
|
32
|
+
/**
|
|
33
|
+
* 深拷贝模板页协议。
|
|
34
|
+
* @param page - 源协议
|
|
35
|
+
* @returns 可写副本
|
|
36
|
+
*/
|
|
37
|
+
export declare function cloneFdeSkillTemplatePage(page: FdeSkillTemplatePageManifest): FdeSkillTemplatePageManifest;
|
package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillTemplatePageTypes.d.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview FDE Skill 模板内容页类型 - 定义自由模板区域与 MD 映射协议
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-07-10
|
|
5
|
+
*/
|
|
6
|
+
import type { FdeSkillCardIntent, FdeSkillPageFilterBar } from './fdeSkillCardTypes';
|
|
7
|
+
/** 模板壳组件固定名 */
|
|
8
|
+
export type FdeSkillTemplateShellComponentName = 'FdeSkillGeneratedTemplateShell';
|
|
9
|
+
/** 区域期望内容类型 */
|
|
10
|
+
export type FdeSkillTemplateRegionContentKind = 'chart' | 'list' | 'number' | 'text' | 'unknown';
|
|
11
|
+
/**
|
|
12
|
+
* 模板壳中的可替换区域声明。
|
|
13
|
+
* region_no 对应 data-fde-region 与具名插槽 region-${region_no}。
|
|
14
|
+
*/
|
|
15
|
+
export interface FdeSkillTemplateRegionSpec {
|
|
16
|
+
region_no: number;
|
|
17
|
+
label: string;
|
|
18
|
+
content_kind?: FdeSkillTemplateRegionContentKind;
|
|
19
|
+
size?: 'sm' | 'md' | 'lg';
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* MD 卡序号 → 模板区域映射。
|
|
23
|
+
*/
|
|
24
|
+
export interface FdeSkillTemplateRegionMapping {
|
|
25
|
+
md_card_index: number;
|
|
26
|
+
region_no: number;
|
|
27
|
+
card_id: string;
|
|
28
|
+
/** 默认 true:用文档标题更新区域标题文案(由壳/宿主约定节点) */
|
|
29
|
+
update_title?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface FdeSkillTemplateShellSpec {
|
|
32
|
+
component: FdeSkillTemplateShellComponentName;
|
|
33
|
+
}
|
|
34
|
+
export interface FdeSkillTemplatePageSourcePatch {
|
|
35
|
+
target_project: 'release/web-workbench';
|
|
36
|
+
container_selector: '.fde-contain';
|
|
37
|
+
mode: 'insert' | 'update';
|
|
38
|
+
target_file?: string;
|
|
39
|
+
target_runtime: 'fde-skill-template-page-runtime';
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* 模板内容替换页完整协议。
|
|
43
|
+
*/
|
|
44
|
+
export interface FdeSkillTemplatePageManifest {
|
|
45
|
+
version: '1.0';
|
|
46
|
+
meta: {
|
|
47
|
+
id: string;
|
|
48
|
+
title: string;
|
|
49
|
+
description?: string;
|
|
50
|
+
generated_at?: string;
|
|
51
|
+
};
|
|
52
|
+
shell: FdeSkillTemplateShellSpec;
|
|
53
|
+
/** 页面级筛选条;与 cards 中 kind=query 二选一或并存时由 Host 归一 */
|
|
54
|
+
filter_bar?: FdeSkillPageFilterBar | null;
|
|
55
|
+
regions: FdeSkillTemplateRegionSpec[];
|
|
56
|
+
mappings: FdeSkillTemplateRegionMapping[];
|
|
57
|
+
cards: FdeSkillCardIntent[];
|
|
58
|
+
source_patch: FdeSkillTemplatePageSourcePatch;
|
|
59
|
+
}
|
package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillTimeRangeDefault.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview 时间范围筛选器默认值解析 - 与 skill time_range_default.py 口径对齐
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-07-27
|
|
5
|
+
*/
|
|
6
|
+
export type FdeSkillTimeRangeDefaultPreset = {
|
|
7
|
+
kind: 'relative_days';
|
|
8
|
+
amount: number;
|
|
9
|
+
} | {
|
|
10
|
+
kind: 'relative_months';
|
|
11
|
+
amount: number;
|
|
12
|
+
} | {
|
|
13
|
+
kind: 'absolute';
|
|
14
|
+
default_value?: [string, string];
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* 最近 N 天(含当天共 N 个自然日)。
|
|
18
|
+
* @param amount - 天数。
|
|
19
|
+
* @param now - 锚点。
|
|
20
|
+
* @returns [start, end]。
|
|
21
|
+
*/
|
|
22
|
+
export declare function resolveRelativeDays(amount: number, now?: Date): [string, string];
|
|
23
|
+
/**
|
|
24
|
+
* 最近 N 个月。
|
|
25
|
+
* @param amount - 月数。
|
|
26
|
+
* @param now - 锚点。
|
|
27
|
+
* @returns [start, end]。
|
|
28
|
+
*/
|
|
29
|
+
export declare function resolveRelativeMonths(amount: number, now?: Date): [string, string];
|
|
30
|
+
/**
|
|
31
|
+
* 从相对文案解析 preset(兼容旧 generated 残留字符串)。
|
|
32
|
+
* @param raw - 文案。
|
|
33
|
+
* @returns preset 或 null。
|
|
34
|
+
*/
|
|
35
|
+
export declare function parseRelativeTimeRangeText(raw: string): FdeSkillTimeRangeDefaultPreset | null;
|
|
36
|
+
/**
|
|
37
|
+
* 按打开时 now 解析控件默认时间范围。
|
|
38
|
+
* @param control - 查询控件(可含 default_preset / default_value)。
|
|
39
|
+
* @param now - 锚点,默认当前浏览器本地时间。
|
|
40
|
+
* @returns [start, end];无默认返回 undefined。
|
|
41
|
+
*/
|
|
42
|
+
export declare function resolveFdeSkillTimeRangeDefault(control: {
|
|
43
|
+
default_preset?: FdeSkillTimeRangeDefaultPreset | null;
|
|
44
|
+
default_value?: unknown;
|
|
45
|
+
} | null | undefined, now?: Date): [string, string] | undefined;
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
export type AgentMemoryAgentType = 'query' | 'approval' | 'workbench' | 'common';
|
|
2
|
+
export type AgentMemoryType = 'metric_definition' | 'filter_preference' | 'business_rule' | 'approval_preference' | 'ui_preference' | 'user_profile' | 'other';
|
|
3
|
+
export type AgentMemoryStatus = 'candidate' | 'approved' | 'rejected' | 'forgotten';
|
|
4
|
+
export type AgentMemoryEventAction = 'propose' | 'edit_content' | 'edit_policy' | 'approve' | 'reject' | 'forget' | 'source_deleted' | 'recall' | 'inject' | 'skip' | 'conflict' | 'confirm';
|
|
5
|
+
export interface AgentMemoryScope {
|
|
6
|
+
level: 'conversation' | 'app' | 'user' | 'tenant' | 'global';
|
|
7
|
+
userId?: string;
|
|
8
|
+
tenantId?: string;
|
|
9
|
+
conversationId?: string;
|
|
10
|
+
appId?: string;
|
|
11
|
+
workspaceId?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface AgentMemoryEvidence {
|
|
14
|
+
type: 'conversation' | 'trace' | 'manual' | 'document';
|
|
15
|
+
text: string;
|
|
16
|
+
refId?: string;
|
|
17
|
+
createdAt?: string;
|
|
18
|
+
sourceDeleted?: boolean;
|
|
19
|
+
sourceDeletedAt?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface AgentMemoryRecallPolicy {
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
priority?: number;
|
|
24
|
+
maxInjectPerSession?: number;
|
|
25
|
+
conditions?: Record<string, unknown>;
|
|
26
|
+
}
|
|
27
|
+
export interface AgentMemoryItem {
|
|
28
|
+
id: string;
|
|
29
|
+
agentType: AgentMemoryAgentType;
|
|
30
|
+
type: AgentMemoryType;
|
|
31
|
+
title: string;
|
|
32
|
+
content: string;
|
|
33
|
+
scope: AgentMemoryScope;
|
|
34
|
+
layerPath: string[];
|
|
35
|
+
tags: string[];
|
|
36
|
+
status: AgentMemoryStatus;
|
|
37
|
+
sourceType: 'manual' | 'conversation' | 'trace' | 'system' | 'imported';
|
|
38
|
+
reviewRequired: boolean;
|
|
39
|
+
confidence: number;
|
|
40
|
+
evidence: AgentMemoryEvidence[];
|
|
41
|
+
sourceConversationIds?: string[];
|
|
42
|
+
sourceTraceIds?: string[];
|
|
43
|
+
recallPolicy: AgentMemoryRecallPolicy;
|
|
44
|
+
createdBy: string;
|
|
45
|
+
updatedBy: string;
|
|
46
|
+
createdAt: string;
|
|
47
|
+
updatedAt: string;
|
|
48
|
+
lastUsedAt?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface AgentMemoryEvent {
|
|
51
|
+
id: string;
|
|
52
|
+
memoryId: string;
|
|
53
|
+
action: AgentMemoryEventAction;
|
|
54
|
+
actorId: string;
|
|
55
|
+
traceId?: string;
|
|
56
|
+
conversationId?: string;
|
|
57
|
+
details?: Record<string, unknown>;
|
|
58
|
+
readOnly: boolean;
|
|
59
|
+
createdAt: string;
|
|
60
|
+
}
|
|
61
|
+
export interface ListAgentMemoryQuery {
|
|
62
|
+
agentType?: AgentMemoryAgentType;
|
|
63
|
+
type?: AgentMemoryType;
|
|
64
|
+
status?: AgentMemoryStatus;
|
|
65
|
+
scopeLevel?: AgentMemoryScope['level'];
|
|
66
|
+
userId?: string;
|
|
67
|
+
tenantId?: string;
|
|
68
|
+
conversationId?: string;
|
|
69
|
+
appId?: string;
|
|
70
|
+
keyword?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface CreateManualMemoryCandidatePayload {
|
|
73
|
+
actorId?: string;
|
|
74
|
+
agentType: AgentMemoryAgentType;
|
|
75
|
+
type: AgentMemoryType;
|
|
76
|
+
title: string;
|
|
77
|
+
content: string;
|
|
78
|
+
scope: AgentMemoryScope;
|
|
79
|
+
layerPath?: string[];
|
|
80
|
+
tags?: string[];
|
|
81
|
+
evidence?: AgentMemoryEvidence[];
|
|
82
|
+
recallPolicy?: Partial<AgentMemoryRecallPolicy>;
|
|
83
|
+
}
|
|
84
|
+
export interface CreateConversationMemoryCandidatePayload {
|
|
85
|
+
actorId?: string;
|
|
86
|
+
agentType: AgentMemoryAgentType;
|
|
87
|
+
type: AgentMemoryType;
|
|
88
|
+
title: string;
|
|
89
|
+
content: string;
|
|
90
|
+
scope: AgentMemoryScope;
|
|
91
|
+
layerPath?: string[];
|
|
92
|
+
tags?: string[];
|
|
93
|
+
evidence: AgentMemoryEvidence;
|
|
94
|
+
traceId?: string;
|
|
95
|
+
recallPolicy?: Partial<AgentMemoryRecallPolicy>;
|
|
96
|
+
confidence?: number;
|
|
97
|
+
}
|
|
98
|
+
export interface ExtractConversationMemoryPayload {
|
|
99
|
+
actorId?: string;
|
|
100
|
+
agentType?: AgentMemoryAgentType;
|
|
101
|
+
conversationId: string;
|
|
102
|
+
traceId?: string;
|
|
103
|
+
tenantId?: string;
|
|
104
|
+
userId?: string;
|
|
105
|
+
appId?: string;
|
|
106
|
+
workspaceId?: string;
|
|
107
|
+
messages: Array<{
|
|
108
|
+
role?: string;
|
|
109
|
+
content?: unknown;
|
|
110
|
+
}>;
|
|
111
|
+
}
|
|
112
|
+
export interface ExtractConversationMemoryResult {
|
|
113
|
+
created: AgentMemoryItem[];
|
|
114
|
+
skipped: Array<{
|
|
115
|
+
title: string;
|
|
116
|
+
reason: 'no_memory_signal' | 'duplicate_existing_or_batch' | 'invalid_scope';
|
|
117
|
+
content?: string;
|
|
118
|
+
}>;
|
|
119
|
+
}
|
|
120
|
+
export interface AgentMemoryCandidateDraft extends CreateConversationMemoryCandidatePayload {
|
|
121
|
+
sourceType: 'conversation' | 'trace';
|
|
122
|
+
confidence: number;
|
|
123
|
+
}
|
|
124
|
+
export interface PreviewConversationMemoryResult {
|
|
125
|
+
drafts: AgentMemoryCandidateDraft[];
|
|
126
|
+
skipped: ExtractConversationMemoryResult['skipped'];
|
|
127
|
+
}
|
|
128
|
+
export interface UpdateMemoryContentPayload {
|
|
129
|
+
actorId?: string;
|
|
130
|
+
title?: string;
|
|
131
|
+
content?: string;
|
|
132
|
+
tags?: string[];
|
|
133
|
+
evidence?: AgentMemoryEvidence[];
|
|
134
|
+
layerPath?: string[];
|
|
135
|
+
}
|
|
136
|
+
export interface UpdateMemoryPolicyPayload {
|
|
137
|
+
actorId?: string;
|
|
138
|
+
status?: AgentMemoryStatus;
|
|
139
|
+
reviewRequired?: boolean;
|
|
140
|
+
recallPolicy?: Partial<AgentMemoryRecallPolicy>;
|
|
141
|
+
confidence?: number;
|
|
142
|
+
}
|
|
143
|
+
export interface AgentConversationContextSnapshot {
|
|
144
|
+
id: string;
|
|
145
|
+
conversationId: string;
|
|
146
|
+
sourceMessageCount: number;
|
|
147
|
+
coveredMessageIds: string[];
|
|
148
|
+
coveredTurnRange: {
|
|
149
|
+
start: number;
|
|
150
|
+
end: number;
|
|
151
|
+
};
|
|
152
|
+
summary: string;
|
|
153
|
+
recentMessages: Array<{
|
|
154
|
+
role?: string;
|
|
155
|
+
content?: unknown;
|
|
156
|
+
parts?: unknown[];
|
|
157
|
+
}>;
|
|
158
|
+
tokenEstimate: number;
|
|
159
|
+
createdAt: string;
|
|
160
|
+
updatedAt: string;
|
|
161
|
+
}
|
|
162
|
+
export interface AgentMemoryRecallPreviewPayload {
|
|
163
|
+
query: string;
|
|
164
|
+
tenantId?: string;
|
|
165
|
+
appId?: string;
|
|
166
|
+
workspaceId?: string;
|
|
167
|
+
userId?: string;
|
|
168
|
+
conversationId?: string;
|
|
169
|
+
traceId?: string;
|
|
170
|
+
maxItems?: number;
|
|
171
|
+
dryRun?: boolean;
|
|
172
|
+
}
|
|
173
|
+
export interface AgentMemoryCandidateHint {
|
|
174
|
+
id: string;
|
|
175
|
+
title: string;
|
|
176
|
+
content: string;
|
|
177
|
+
type: AgentMemoryType;
|
|
178
|
+
scope: AgentMemoryScope['level'];
|
|
179
|
+
confidence: number;
|
|
180
|
+
layerPath: string[];
|
|
181
|
+
evidenceRefs: string[];
|
|
182
|
+
candidateOnly: true;
|
|
183
|
+
source: 'memory';
|
|
184
|
+
reason: string;
|
|
185
|
+
}
|
|
186
|
+
export interface AgentMemorySkippedHint {
|
|
187
|
+
id: string;
|
|
188
|
+
title: string;
|
|
189
|
+
reason: string;
|
|
190
|
+
}
|
|
191
|
+
export interface AgentMemoryRecallPreviewResult {
|
|
192
|
+
candidates: AgentMemoryCandidateHint[];
|
|
193
|
+
skipped: AgentMemorySkippedHint[];
|
|
194
|
+
conflicts: AgentMemorySkippedHint[];
|
|
195
|
+
injectableContext: string;
|
|
196
|
+
}
|
|
197
|
+
export interface ReviewConversationMemoriesPayload {
|
|
198
|
+
actorId?: string;
|
|
199
|
+
tenantId?: string;
|
|
200
|
+
userId?: string;
|
|
201
|
+
appId?: string;
|
|
202
|
+
workspaceId?: string;
|
|
203
|
+
limit?: number;
|
|
204
|
+
}
|
|
205
|
+
export interface SimplifiedConversationMemoryPayload {
|
|
206
|
+
title: string;
|
|
207
|
+
content: string;
|
|
208
|
+
usageHint: string;
|
|
209
|
+
agentType?: AgentMemoryAgentType;
|
|
210
|
+
type?: AgentMemoryType;
|
|
211
|
+
scope?: Partial<AgentMemoryScope>;
|
|
212
|
+
context: {
|
|
213
|
+
tenantId?: string;
|
|
214
|
+
userId?: string;
|
|
215
|
+
appId?: string;
|
|
216
|
+
workspaceId?: string;
|
|
217
|
+
conversationId?: string;
|
|
218
|
+
traceId?: string;
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
export interface RecentConversationMemoryExtractionPayload {
|
|
222
|
+
conversationId: string;
|
|
223
|
+
traceId?: string;
|
|
224
|
+
rawText: string;
|
|
225
|
+
tenantId?: string;
|
|
226
|
+
userId?: string;
|
|
227
|
+
appId?: string;
|
|
228
|
+
workspaceId?: string;
|
|
229
|
+
}
|
|
230
|
+
export interface ReviewConversationMemoriesResult {
|
|
231
|
+
reviewedConversationCount: number;
|
|
232
|
+
createdCount: number;
|
|
233
|
+
skippedCount: number;
|
|
234
|
+
conversations: Array<{
|
|
235
|
+
conversationId: string;
|
|
236
|
+
traceId?: string;
|
|
237
|
+
candidateCount: number;
|
|
238
|
+
skippedCount: number;
|
|
239
|
+
skippedFailedTurnCount: number;
|
|
240
|
+
error?: string;
|
|
241
|
+
}>;
|
|
242
|
+
}
|
|
243
|
+
export interface DeleteMemoryResult {
|
|
244
|
+
deletedMemoryId: string;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* 查询智能体记忆列表。
|
|
248
|
+
* @param query - 筛选条件
|
|
249
|
+
* @returns 记忆记录列表
|
|
250
|
+
*/
|
|
251
|
+
export declare function listAgentMemoryItems(query?: ListAgentMemoryQuery): Promise<AgentMemoryItem[]>;
|
|
252
|
+
/**
|
|
253
|
+
* 创建手工候选记忆。
|
|
254
|
+
* @param payload - 候选记忆参数
|
|
255
|
+
* @returns 新建的记忆记录
|
|
256
|
+
*/
|
|
257
|
+
export declare function createManualMemoryCandidate(payload: CreateManualMemoryCandidatePayload): Promise<AgentMemoryItem>;
|
|
258
|
+
/**
|
|
259
|
+
* 从对话或 trace 证据沉淀候选记忆。
|
|
260
|
+
* @param payload - 候选记忆、作用域和来源证据
|
|
261
|
+
* @returns 新建的记忆记录
|
|
262
|
+
*/
|
|
263
|
+
export declare function createConversationMemoryCandidate(payload: CreateConversationMemoryCandidatePayload): Promise<AgentMemoryItem>;
|
|
264
|
+
/**
|
|
265
|
+
* 预览对话中可沉淀的候选记忆草稿,不写入远端记录。
|
|
266
|
+
* @param payload - 对话消息、trace 和运行时作用域
|
|
267
|
+
* @returns 候选草稿与跳过原因
|
|
268
|
+
*/
|
|
269
|
+
export declare function previewConversationMemoryCandidates(payload: ExtractConversationMemoryPayload): Promise<PreviewConversationMemoryResult>;
|
|
270
|
+
/**
|
|
271
|
+
* 用面向用户的简化字段创建对话来源候选记忆。
|
|
272
|
+
* @param payload - 简化记忆内容、使用场景和当前运行上下文
|
|
273
|
+
* @returns 新建的候选记忆
|
|
274
|
+
*/
|
|
275
|
+
export declare function saveSimplifiedConversationMemory(payload: SimplifiedConversationMemoryPayload): Promise<AgentMemoryItem>;
|
|
276
|
+
/**
|
|
277
|
+
* 从对话原始轮次批量抽取候选记忆。
|
|
278
|
+
* @param payload - 对话消息、trace 和运行时作用域
|
|
279
|
+
* @returns 新建候选与跳过原因
|
|
280
|
+
*/
|
|
281
|
+
export declare function extractConversationMemoryCandidates(payload: ExtractConversationMemoryPayload): Promise<ExtractConversationMemoryResult>;
|
|
282
|
+
/**
|
|
283
|
+
* 从用户选择的最近对话文本预览候选记忆。
|
|
284
|
+
* @param payload - 已由页面选择好的对话文本和上下文
|
|
285
|
+
* @returns 候选草稿和跳过原因
|
|
286
|
+
*/
|
|
287
|
+
export declare function previewRecentConversationMemory(payload: RecentConversationMemoryExtractionPayload): Promise<PreviewConversationMemoryResult>;
|
|
288
|
+
/**
|
|
289
|
+
* 预览当前问数上下文会召回哪些候选记忆。
|
|
290
|
+
* @param payload - 问题文本和运行上下文
|
|
291
|
+
* @returns 召回候选、跳过项和候选上下文
|
|
292
|
+
*/
|
|
293
|
+
export declare function previewMemoryRecall(payload: AgentMemoryRecallPreviewPayload): Promise<AgentMemoryRecallPreviewResult>;
|
|
294
|
+
/**
|
|
295
|
+
* 更新记忆内容字段。
|
|
296
|
+
* @param id - 记忆 ID
|
|
297
|
+
* @param payload - 内容编辑参数
|
|
298
|
+
* @returns 更新后的记忆记录
|
|
299
|
+
*/
|
|
300
|
+
export declare function updateMemoryContent(id: string, payload: UpdateMemoryContentPayload): Promise<AgentMemoryItem>;
|
|
301
|
+
/**
|
|
302
|
+
* 更新记忆策略字段。
|
|
303
|
+
* @param id - 记忆 ID
|
|
304
|
+
* @param payload - 策略编辑参数
|
|
305
|
+
* @returns 更新后的记忆记录
|
|
306
|
+
*/
|
|
307
|
+
export declare function updateMemoryPolicy(id: string, payload: UpdateMemoryPolicyPayload): Promise<AgentMemoryItem>;
|
|
308
|
+
/**
|
|
309
|
+
* 审核通过记忆。
|
|
310
|
+
* @param id - 记忆 ID
|
|
311
|
+
* @param actorId - 操作人 ID
|
|
312
|
+
* @returns 更新后的记忆记录
|
|
313
|
+
*/
|
|
314
|
+
export declare function approveMemory(id: string, actorId?: string): Promise<AgentMemoryItem>;
|
|
315
|
+
/**
|
|
316
|
+
* 驳回记忆。
|
|
317
|
+
* @param id - 记忆 ID
|
|
318
|
+
* @param actorId - 操作人 ID
|
|
319
|
+
* @returns 更新后的记忆记录
|
|
320
|
+
*/
|
|
321
|
+
export declare function rejectMemory(id: string, actorId?: string): Promise<AgentMemoryItem>;
|
|
322
|
+
/**
|
|
323
|
+
* 忘记记忆。
|
|
324
|
+
* @param id - 记忆 ID
|
|
325
|
+
* @param actorId - 操作人 ID
|
|
326
|
+
* @returns 更新后的记忆记录
|
|
327
|
+
*/
|
|
328
|
+
export declare function forgetMemory(id: string, actorId?: string): Promise<AgentMemoryItem>;
|
|
329
|
+
/**
|
|
330
|
+
* 物理删除记忆及其使用记录。
|
|
331
|
+
* @param id - 记忆 ID
|
|
332
|
+
* @param actorId - 操作人 ID
|
|
333
|
+
* @returns 被删除的记忆 ID
|
|
334
|
+
*/
|
|
335
|
+
export declare function deleteMemoryPermanently(id: string, actorId?: string): Promise<DeleteMemoryResult>;
|
|
336
|
+
/**
|
|
337
|
+
* 查询记忆事件。
|
|
338
|
+
* @param id - 记忆 ID
|
|
339
|
+
* @returns 事件列表
|
|
340
|
+
*/
|
|
341
|
+
export declare function listMemoryEvents(id: string): Promise<AgentMemoryEvent[]>;
|
|
342
|
+
/**
|
|
343
|
+
* 查询记忆 Markdown 投影。
|
|
344
|
+
* @param id - 记忆 ID
|
|
345
|
+
* @returns Markdown 文本
|
|
346
|
+
*/
|
|
347
|
+
export declare function getMemoryMarkdown(id: string): Promise<string>;
|
|
348
|
+
/**
|
|
349
|
+
* 用 Markdown 投影更新记忆。
|
|
350
|
+
* @param id - 记忆 ID
|
|
351
|
+
* @param markdown - Markdown 投影文本
|
|
352
|
+
* @param actorId - 操作人 ID
|
|
353
|
+
* @returns 更新后的记忆记录和服务端重新渲染的 Markdown
|
|
354
|
+
*/
|
|
355
|
+
export declare function updateMemoryMarkdown(id: string, markdown: string, actorId?: string): Promise<{
|
|
356
|
+
item: AgentMemoryItem;
|
|
357
|
+
markdown: string;
|
|
358
|
+
}>;
|
|
359
|
+
/**
|
|
360
|
+
* 查询会话压缩上下文快照。
|
|
361
|
+
* @param conversationId - 会话 ID
|
|
362
|
+
* @returns 当前快照;不存在时返回 null
|
|
363
|
+
*/
|
|
364
|
+
export declare function getConversationContextSnapshot(conversationId: string): Promise<AgentConversationContextSnapshot | null>;
|
|
365
|
+
/**
|
|
366
|
+
* 重新生成会话压缩上下文快照后读取最新快照。
|
|
367
|
+
* @param conversationId - 会话 ID
|
|
368
|
+
* @returns 最新快照;对话不足以压缩时可能为 null
|
|
369
|
+
*/
|
|
370
|
+
export declare function refreshConversationContextSnapshot(conversationId: string): Promise<AgentConversationContextSnapshot | null>;
|
|
371
|
+
/**
|
|
372
|
+
* 复盘历史会话并抽取候选长期记忆。
|
|
373
|
+
* @param payload - 复盘范围、作用域和操作者
|
|
374
|
+
* @returns 复盘统计
|
|
375
|
+
*/
|
|
376
|
+
export declare function reviewConversationMemories(payload: ReviewConversationMemoriesPayload): Promise<ReviewConversationMemoriesResult>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview AI 图表协议构建 - 将右侧聊天图表卡转换为左侧工作台 ECharts protocolRender 数据。
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-05-20
|
|
5
|
+
*/
|
|
6
|
+
import type { ChartCardSpec } from '@fses/workbench-app/types';
|
|
7
|
+
import type { ChartFamily, ProtocolConfigPayload, ProtocolDataPayload, ProtocolType } from '@fses/workbench-app/types';
|
|
8
|
+
interface AiChartProtocolMapping {
|
|
9
|
+
protocolType: ProtocolType;
|
|
10
|
+
family: ChartFamily;
|
|
11
|
+
seriesType: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* 获取图表类型对应的协议映射。
|
|
15
|
+
* @param card - AI 图表卡。
|
|
16
|
+
* @returns 协议映射;未知类型回退为柱状图。
|
|
17
|
+
*/
|
|
18
|
+
export declare function aiChartProtocolMapping(card: ChartCardSpec): AiChartProtocolMapping;
|
|
19
|
+
/**
|
|
20
|
+
* 构建 AI 图表的 ECharts 协议配置。
|
|
21
|
+
* @param card - AI 图表卡。
|
|
22
|
+
* @returns ECharts protocol config。
|
|
23
|
+
*/
|
|
24
|
+
export declare function buildAiChartProtocolConfig(card: ChartCardSpec): ProtocolConfigPayload;
|
|
25
|
+
/**
|
|
26
|
+
* 构建 AI 图表的 ECharts 协议数据。
|
|
27
|
+
* @param card - AI 图表卡。
|
|
28
|
+
* @returns ECharts protocol data。
|
|
29
|
+
*/
|
|
30
|
+
export declare function buildAiChartProtocolData(card: ChartCardSpec): ProtocolDataPayload;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview AI 指标卡规格 - 在 web-workbench 内恢复运行态指标查询结果并生成可插入卡片。
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-05-29
|
|
5
|
+
*/
|
|
6
|
+
import type { ConversationTurn } from '@fses/workbench-app/types';
|
|
7
|
+
export type MetricWorkbenchCardFormat = 'currency' | 'number' | 'percent';
|
|
8
|
+
export interface MetricWorkbenchCardSpec {
|
|
9
|
+
type: 'metric-card';
|
|
10
|
+
id: string;
|
|
11
|
+
title: string;
|
|
12
|
+
metricName: string;
|
|
13
|
+
metricCode?: string;
|
|
14
|
+
metricId?: string;
|
|
15
|
+
value: number;
|
|
16
|
+
displayValue?: string;
|
|
17
|
+
unit?: string;
|
|
18
|
+
displaySpec?: MetricWorkbenchCardDisplaySpec;
|
|
19
|
+
format: MetricWorkbenchCardFormat;
|
|
20
|
+
source: {
|
|
21
|
+
label: string;
|
|
22
|
+
value?: string;
|
|
23
|
+
};
|
|
24
|
+
dataBinding?: {
|
|
25
|
+
question?: string;
|
|
26
|
+
bindingId?: string;
|
|
27
|
+
contractHash?: string;
|
|
28
|
+
executeApi?: string;
|
|
29
|
+
metricCode?: string;
|
|
30
|
+
metricId?: string;
|
|
31
|
+
readbackApi?: string;
|
|
32
|
+
refreshApi?: string;
|
|
33
|
+
displaySpec?: MetricWorkbenchCardDisplaySpec;
|
|
34
|
+
displayValue?: string;
|
|
35
|
+
unitCode?: string;
|
|
36
|
+
unitLabel?: string;
|
|
37
|
+
valueFormat?: string;
|
|
38
|
+
decimalPlaces?: number;
|
|
39
|
+
queryFilters?: unknown[];
|
|
40
|
+
paramsSchema?: Record<string, unknown>;
|
|
41
|
+
permissionContext?: {
|
|
42
|
+
tenantId?: string;
|
|
43
|
+
appId?: string;
|
|
44
|
+
[key: string]: unknown;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
permission: {
|
|
48
|
+
label: string;
|
|
49
|
+
level?: 'self' | 'team' | 'org';
|
|
50
|
+
};
|
|
51
|
+
meta?: {
|
|
52
|
+
generatedBy?: 'agent';
|
|
53
|
+
prompt?: string;
|
|
54
|
+
version?: number;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export interface MetricWorkbenchCardDisplaySpec {
|
|
58
|
+
unitCode?: string;
|
|
59
|
+
unitLabel?: string;
|
|
60
|
+
valueFormat?: string;
|
|
61
|
+
decimalPlaces?: number;
|
|
62
|
+
displayValue?: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* 判断文本是否是“把刚才指标插入工作台”的追问。
|
|
66
|
+
* @param text - 用户输入。
|
|
67
|
+
* @returns 命中插卡意图返回 true。
|
|
68
|
+
*/
|
|
69
|
+
export declare function isMetricWorkbenchInsertPrompt(text: string): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* 从 execute_metric_api 输出生成工作台指标卡。
|
|
72
|
+
* @param output - 工具输出。
|
|
73
|
+
* @param prompt - 指标查询原问题。
|
|
74
|
+
* @returns 可插入指标卡;无法识别返回 null。
|
|
75
|
+
*/
|
|
76
|
+
export declare function deriveMetricWorkbenchCardFromToolOutput(output: unknown, prompt?: string): MetricWorkbenchCardSpec | null;
|
|
77
|
+
/**
|
|
78
|
+
* 从单个 turn 中读取最近一次成功指标查询卡片。
|
|
79
|
+
* @param turn - 工作台 turn。
|
|
80
|
+
* @returns 指标卡或 null。
|
|
81
|
+
*/
|
|
82
|
+
export declare function latestMetricWorkbenchCardFromTurn(turn: ConversationTurn): MetricWorkbenchCardSpec | null;
|
|
83
|
+
/**
|
|
84
|
+
* 为“插入左侧”追问查找最近可插入的指标卡。
|
|
85
|
+
* @param turns - 当前对话 turn 列表。
|
|
86
|
+
* @param currentTurn - 正在完成的插卡追问 turn。
|
|
87
|
+
* @returns 指标卡或 null。
|
|
88
|
+
*/
|
|
89
|
+
export declare function resolveMetricInsertFallbackCard(turns: ConversationTurn[], currentTurn: ConversationTurn): MetricWorkbenchCardSpec | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ArtifactIndexItem, ArtifactStatus, ArtifactType } from '@fses/workbench-app/types';
|
|
2
|
+
export declare const ARTIFACT_TYPES: readonly ArtifactType[];
|
|
3
|
+
export declare const ARTIFACT_STATUSES: readonly ArtifactStatus[];
|
|
4
|
+
export declare function chineseOrdinalLabel(value: number): string;
|
|
5
|
+
export declare function normalizeArtifactTypeValue(value: string): ArtifactType | '';
|
|
6
|
+
export declare function normalizeArtifactStatusValue(value: string, fallback?: ArtifactStatus): ArtifactStatus;
|
|
7
|
+
export declare function statusFromConfirmationValue(status: string | undefined): ArtifactStatus;
|
|
8
|
+
export declare function cardArtifactAliases(title: string, ordinal: number, isLatest: boolean): string[];
|
|
9
|
+
export declare function canvasBlockArtifactAliases(title: string, ordinal: number, selected: boolean): string[];
|
|
10
|
+
export declare function createArtifactIndexItem(item: Omit<ArtifactIndexItem, 'aliases' | 'createdAt' | 'updatedAt' | 'lightweightPayload'> & {
|
|
11
|
+
aliases?: string[];
|
|
12
|
+
createdAt?: string;
|
|
13
|
+
updatedAt?: string;
|
|
14
|
+
lightweightPayload?: Record<string, unknown>;
|
|
15
|
+
}, now?: () => string): ArtifactIndexItem;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { AssistantPersonaKey } from '@fses/workbench-app/types';
|
|
2
|
+
import { DEFAULT_ASSISTANT_PERSONA, getAssistantPersonaProfile, normalizeAssistantPersonaKey } from './assistantPersonaProfiles';
|
|
3
|
+
export interface AssistantPersonaOption {
|
|
4
|
+
id: AssistantPersonaKey;
|
|
5
|
+
label: string;
|
|
6
|
+
shortDescription: string;
|
|
7
|
+
accentClass: string;
|
|
8
|
+
comic: {
|
|
9
|
+
background: string;
|
|
10
|
+
face: string;
|
|
11
|
+
accent: string;
|
|
12
|
+
prop: 'spark' | 'document' | 'line';
|
|
13
|
+
};
|
|
14
|
+
prompt: string;
|
|
15
|
+
}
|
|
16
|
+
type AssistantPersonaPromptOverrides = Partial<Record<AssistantPersonaKey, string>>;
|
|
17
|
+
export declare const ASSISTANT_PERSONA_OPTIONS: AssistantPersonaOption[];
|
|
18
|
+
export declare function readAssistantPersonaPromptOverrides(): AssistantPersonaPromptOverrides;
|
|
19
|
+
export declare function writeAssistantPersonaPromptOverride(personaKey: AssistantPersonaKey, prompt: string): void;
|
|
20
|
+
export declare function getAssistantPersonaOptions(): AssistantPersonaOption[];
|
|
21
|
+
export declare function getAssistantPersonaOption(value: unknown): AssistantPersonaOption;
|
|
22
|
+
export declare function buildAssistantPersonaPayload(value: unknown): {
|
|
23
|
+
prompt: string;
|
|
24
|
+
key: AssistantPersonaKey;
|
|
25
|
+
label: string;
|
|
26
|
+
shortDescription: string;
|
|
27
|
+
};
|
|
28
|
+
export { DEFAULT_ASSISTANT_PERSONA, getAssistantPersonaProfile, normalizeAssistantPersonaKey, };
|