@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.
Files changed (236) hide show
  1. package/LICENSE +9 -0
  2. package/dist/Workspace-DP3xr4Jp.js +42979 -0
  3. package/dist/adapters/defaults.d.ts +15 -0
  4. package/dist/adapters/index.d.ts +8 -0
  5. package/dist/adapters/testDoubles.d.ts +12 -0
  6. package/dist/adapters/types.d.ts +84 -0
  7. package/dist/canvas/api/types.d.ts +117 -0
  8. package/dist/canvas/bridge/workbenchCanvasBus.d.ts +7 -0
  9. package/dist/canvas/layout/logicalLayoutEngine.d.ts +85 -0
  10. package/dist/canvas/persistence/canvasSnapshotStorage.d.ts +3 -0
  11. package/dist/card/index.d.ts +8 -0
  12. package/dist/card/index.js +17 -0
  13. package/dist/chat/index.d.ts +9 -0
  14. package/dist/chat/index.js +12 -0
  15. package/dist/components/WorkbenchAppHost.vue.d.ts +28 -0
  16. package/dist/components/WorkbenchApplication.vue.d.ts +13 -0
  17. package/dist/components/WorkbenchShell.vue.d.ts +32 -0
  18. package/dist/components/WorkbenchWorkspaceCore.vue.d.ts +20 -0
  19. package/dist/config/workbenchAppConfig.d.ts +43 -0
  20. package/dist/contracts/index.d.ts +7 -0
  21. package/dist/contracts/index.js +6 -0
  22. package/dist/extensions/index.d.ts +59 -0
  23. package/dist/fde-runtime/runtime/fdeSkillDisplayLabel.d.ts +15 -0
  24. package/dist/fses-workbench-app.js +91 -0
  25. package/dist/index-A8Vg4UXL.js +1091 -0
  26. package/dist/index.d.ts +39 -0
  27. package/dist/internal/personal-workbench/canvas-runtime/api/canvasFacade.d.ts +2 -0
  28. package/dist/internal/personal-workbench/canvas-runtime/api/types.d.ts +6 -0
  29. package/dist/internal/personal-workbench/canvas-runtime/factory/cardFactory.d.ts +25 -0
  30. package/dist/internal/personal-workbench/canvas-runtime/layout/logicalLayoutEngine.d.ts +6 -0
  31. package/dist/internal/personal-workbench/canvas-runtime/layout/recommendedCardPlacement.d.ts +54 -0
  32. package/dist/internal/personal-workbench/canvas-runtime/lifecycle/cardLifecycleService.d.ts +12 -0
  33. package/dist/internal/personal-workbench/canvas-runtime/primitive/primitivePolicyGate.d.ts +9 -0
  34. package/dist/internal/personal-workbench/components/runtime/RuntimeCapabilitySlots.vue.d.ts +14 -0
  35. package/dist/internal/personal-workbench/components/workbench/ChartLinkageConfigModal.vue.d.ts +23 -0
  36. package/dist/internal/personal-workbench/components/workbench/ConversationTurnCard.vue.d.ts +23 -0
  37. package/dist/internal/personal-workbench/components/workbench/GridStackCanvas.vue.d.ts +91 -0
  38. package/dist/internal/personal-workbench/components/workbench/GridStackCardShell.vue.d.ts +49 -0
  39. package/dist/internal/personal-workbench/components/workbench/GridStackContainer.vue.d.ts +39 -0
  40. package/dist/internal/personal-workbench/components/workbench/LayoutPicker.vue.d.ts +13 -0
  41. package/dist/internal/personal-workbench/components/workbench/StudioComposer.vue.d.ts +24 -0
  42. package/dist/internal/personal-workbench/components/workbench/SystemCardPreviewPopover.vue.d.ts +17 -0
  43. package/dist/internal/personal-workbench/components/workbench/WelcomeBanner.vue.d.ts +19 -0
  44. package/dist/internal/personal-workbench/components/workbench/WorkbenchAccessDenied.vue.d.ts +7 -0
  45. package/dist/internal/personal-workbench/components/workbench/WorkbenchCanvas.vue.d.ts +290 -0
  46. package/dist/internal/personal-workbench/components/workbench/WorkbenchCanvasSettingsMenu.vue.d.ts +40 -0
  47. package/dist/internal/personal-workbench/components/workbench/WorkbenchCardConfigDialog.vue.d.ts +14 -0
  48. package/dist/internal/personal-workbench/components/workbench/WorkbenchDropdownPortal.vue.d.ts +32 -0
  49. package/dist/internal/personal-workbench/components/workbench/WorkbenchFdeCardCatalog.vue.d.ts +12 -0
  50. package/dist/internal/personal-workbench/components/workbench/WorkbenchListPopover.vue.d.ts +15 -0
  51. package/dist/internal/personal-workbench/components/workbench/WorkbenchMetricFilterBindingEditor.vue.d.ts +14 -0
  52. package/dist/internal/personal-workbench/components/workbench/WorkbenchRecommendationFieldConfigDialog.vue.d.ts +14 -0
  53. package/dist/internal/personal-workbench/components/workbench/WorkbenchStudio.vue.d.ts +301 -0
  54. package/dist/internal/personal-workbench/components/workbench/WorkbenchThemePicker.vue.d.ts +10 -0
  55. package/dist/internal/personal-workbench/components/workbench/helpers.d.ts +18 -0
  56. package/dist/internal/personal-workbench/components/workbench/showcase/WorkbenchShowcase.vue.d.ts +273 -0
  57. package/dist/internal/personal-workbench/composables/useWorkbenchRuntime.d.ts +9 -0
  58. package/dist/internal/personal-workbench/extensions/cards/customCardCatalog.d.ts +27 -0
  59. package/dist/internal/personal-workbench/extensions/cards/customComponentRegistry.d.ts +7 -0
  60. package/dist/internal/personal-workbench/extensions/cards/userCustomCardInsertion.d.ts +21 -0
  61. package/dist/internal/personal-workbench/extensions/fde/fdeGeneratedCards.d.ts +2 -0
  62. package/dist/internal/personal-workbench/extensions/fde/fdeGeneratedDashboard.d.ts +1 -0
  63. package/dist/internal/personal-workbench/extensions/fde/fdeGeneratedTemplatePage.d.ts +1 -0
  64. package/dist/internal/personal-workbench/extensions/fde/fdeSkillWorkbenchTheme.d.ts +1 -0
  65. package/dist/internal/personal-workbench/extensions/runtimeExtensions.d.ts +37 -0
  66. package/dist/internal/personal-workbench/extensions/workbenchAdapters.d.ts +1 -0
  67. package/dist/internal/personal-workbench/extensions/workbenchConfig.d.ts +1 -0
  68. package/dist/internal/personal-workbench/extensions/workbenchExtensions.d.ts +1 -0
  69. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillCardsHost.vue.d.ts +2 -0
  70. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillChartCard.vue.d.ts +57 -0
  71. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardCockpitHeader.vue.d.ts +6 -0
  72. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardCockpitTitle.vue.d.ts +5 -0
  73. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardGrid.vue.d.ts +57 -0
  74. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardHeaderBand.vue.d.ts +6 -0
  75. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardHost.vue.d.ts +2 -0
  76. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardKpiItem.vue.d.ts +6 -0
  77. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardMarqueeList.vue.d.ts +6 -0
  78. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardShell.vue.d.ts +21 -0
  79. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardSummaryHeader.vue.d.ts +6 -0
  80. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardWidget.vue.d.ts +56 -0
  81. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDrilldownModal.vue.d.ts +20 -0
  82. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillFilterBar.vue.d.ts +18 -0
  83. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillHeaderCard.vue.d.ts +6 -0
  84. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillListCard.vue.d.ts +21 -0
  85. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillMetricChartToolbar.vue.d.ts +20 -0
  86. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillNumberCard.vue.d.ts +21 -0
  87. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillProtocolChartRenderer.vue.d.ts +18 -0
  88. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillQueryCard.vue.d.ts +23 -0
  89. package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillTemplatePageHost.vue.d.ts +2 -0
  90. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillCardTypes.d.ts +514 -0
  91. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillChartDataRequestMeta.d.ts +13 -0
  92. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillChartDensityFit.d.ts +67 -0
  93. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillChartOptions.d.ts +14 -0
  94. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillChartTheme.d.ts +51 -0
  95. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardContext.d.ts +19 -0
  96. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardDrilldown.d.ts +21 -0
  97. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardKpi.d.ts +36 -0
  98. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardLayout.d.ts +39 -0
  99. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardRefresh.d.ts +24 -0
  100. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardThemes.d.ts +108 -0
  101. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardTypes.d.ts +87 -0
  102. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardViewport.d.ts +71 -0
  103. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDataRefresh.d.ts +59 -0
  104. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDisplayLabel.d.ts +6 -0
  105. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillFilterBarBridge.d.ts +100 -0
  106. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillFilterDefaults.d.ts +21 -0
  107. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillFilterOptions.d.ts +95 -0
  108. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillFloatingAction.d.ts +19 -0
  109. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillJson.d.ts +11 -0
  110. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillListMarquee.d.ts +32 -0
  111. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillMetricChartDrilldown.d.ts +101 -0
  112. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillMetricNumberDetail.d.ts +19 -0
  113. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillNumberFormat.d.ts +17 -0
  114. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChart.d.ts +37 -0
  115. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartApi.d.ts +17 -0
  116. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartDisplayData.d.ts +10 -0
  117. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartDrilldown.d.ts +68 -0
  118. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartLinkage.d.ts +19 -0
  119. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartRefresh.d.ts +19 -0
  120. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillQueryFilters.d.ts +82 -0
  121. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillServiceDrilldown.d.ts +89 -0
  122. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillServiceFields.d.ts +17 -0
  123. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillTemplatePageMount.d.ts +37 -0
  124. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillTemplatePageTypes.d.ts +59 -0
  125. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillTimeRangeDefault.d.ts +45 -0
  126. package/dist/internal/personal-workbench/lib/agentMemoryClient.d.ts +376 -0
  127. package/dist/internal/personal-workbench/lib/aiChartProtocol.d.ts +31 -0
  128. package/dist/internal/personal-workbench/lib/aiMetricCardSpec.d.ts +89 -0
  129. package/dist/internal/personal-workbench/lib/artifactRules.d.ts +15 -0
  130. package/dist/internal/personal-workbench/lib/assistantPersona.d.ts +28 -0
  131. package/dist/internal/personal-workbench/lib/assistantPersonaProfiles.d.ts +21 -0
  132. package/dist/internal/personal-workbench/lib/businessGroupClient.d.ts +25 -0
  133. package/dist/internal/personal-workbench/lib/canonicalLayoutContext.d.ts +38 -0
  134. package/dist/internal/personal-workbench/lib/cardContractDemo.d.ts +20 -0
  135. package/dist/internal/personal-workbench/lib/cardDisplay.d.ts +1 -0
  136. package/dist/internal/personal-workbench/lib/cardSizeConfig.d.ts +29 -0
  137. package/dist/internal/personal-workbench/lib/cardStyleConfig.d.ts +128 -0
  138. package/dist/internal/personal-workbench/lib/conversationScreenContext.d.ts +30 -0
  139. package/dist/internal/personal-workbench/lib/deepAgentApi.d.ts +133 -0
  140. package/dist/internal/personal-workbench/lib/deepAgentProcessGroups.d.ts +6 -0
  141. package/dist/internal/personal-workbench/lib/deepAgentProgressMessage.d.ts +6 -0
  142. package/dist/internal/personal-workbench/lib/deepAgentToolDisplayName.d.ts +6 -0
  143. package/dist/internal/personal-workbench/lib/deepAgentWorkbenchCardMutation.d.ts +39 -0
  144. package/dist/internal/personal-workbench/lib/deepAgentWorkbenchCardRecommendation.d.ts +66 -0
  145. package/dist/internal/personal-workbench/lib/dynamicEchartOption.d.ts +14 -0
  146. package/dist/internal/personal-workbench/lib/echartsOptionEditorBridge.d.ts +34 -0
  147. package/dist/internal/personal-workbench/lib/echartsProtocolDataSlimming.d.ts +24 -0
  148. package/dist/internal/personal-workbench/lib/echartsTemplateAssets.d.ts +24 -0
  149. package/dist/internal/personal-workbench/lib/echartsTemplateMaterializer.d.ts +31 -0
  150. package/dist/internal/personal-workbench/lib/fdeWorkbenchAssetPackage.d.ts +107 -0
  151. package/dist/internal/personal-workbench/lib/fdeWorkbenchConfigClient.d.ts +96 -0
  152. package/dist/internal/personal-workbench/lib/formatters.d.ts +5 -0
  153. package/dist/internal/personal-workbench/lib/historyCardBindingRestore.fixture.d.ts +15 -0
  154. package/dist/internal/personal-workbench/lib/platformFetchClient.d.ts +105 -0
  155. package/dist/internal/personal-workbench/lib/queryTraceDisplay.d.ts +30 -0
  156. package/dist/internal/personal-workbench/lib/runtimeCapabilities.d.ts +8 -0
  157. package/dist/internal/personal-workbench/lib/runtimeIdentity.d.ts +36 -0
  158. package/dist/internal/personal-workbench/lib/runtimePrimitiveRegistry.d.ts +51 -0
  159. package/dist/internal/personal-workbench/lib/summaryPreview.d.ts +18 -0
  160. package/dist/internal/personal-workbench/lib/systemCardPreviewProfile.d.ts +23 -0
  161. package/dist/internal/personal-workbench/lib/userVisibleTextGuard.d.ts +23 -0
  162. package/dist/internal/personal-workbench/lib/utils.d.ts +46 -0
  163. package/dist/internal/personal-workbench/lib/vueRuntimeAdapters.d.ts +450 -0
  164. package/dist/internal/personal-workbench/lib/workbenchApi.d.ts +686 -0
  165. package/dist/internal/personal-workbench/lib/workbenchAttachmentUpload.d.ts +47 -0
  166. package/dist/internal/personal-workbench/lib/workbenchAutoRefreshSession.d.ts +21 -0
  167. package/dist/internal/personal-workbench/lib/workbenchBusinessGapDiagnostics.d.ts +16 -0
  168. package/dist/internal/personal-workbench/lib/workbenchCanvasBusinessGapChecklist.d.ts +106 -0
  169. package/dist/internal/personal-workbench/lib/workbenchCanvasClassification.d.ts +119 -0
  170. package/dist/internal/personal-workbench/lib/workbenchCanvasDiagnostics.d.ts +100 -0
  171. package/dist/internal/personal-workbench/lib/workbenchCanvasImageCardVisual.d.ts +168 -0
  172. package/dist/internal/personal-workbench/lib/workbenchCanvasImageCompose.d.ts +106 -0
  173. package/dist/internal/personal-workbench/lib/workbenchCanvasLayoutOverride.d.ts +46 -0
  174. package/dist/internal/personal-workbench/lib/workbenchCardConfigProfile.d.ts +45 -0
  175. package/dist/internal/personal-workbench/lib/workbenchCardRecommendationBinding.d.ts +64 -0
  176. package/dist/internal/personal-workbench/lib/workbenchCardRecommendationFallback.d.ts +24 -0
  177. package/dist/internal/personal-workbench/lib/workbenchCardRecommendationViews.d.ts +24 -0
  178. package/dist/internal/personal-workbench/lib/workbenchCardUsabilityProfile.d.ts +33 -0
  179. package/dist/internal/personal-workbench/lib/workbenchChatHistory.d.ts +19 -0
  180. package/dist/internal/personal-workbench/lib/workbenchChatHistoryReplay.d.ts +25 -0
  181. package/dist/internal/personal-workbench/lib/workbenchChatMessageOrdering.d.ts +6 -0
  182. package/dist/internal/personal-workbench/lib/workbenchChatPendingTurn.d.ts +21 -0
  183. package/dist/internal/personal-workbench/lib/workbenchChatReplyBridge.d.ts +55 -0
  184. package/dist/internal/personal-workbench/lib/workbenchChatStatusCompletion.d.ts +6 -0
  185. package/dist/internal/personal-workbench/lib/workbenchChatTurnSignature.d.ts +6 -0
  186. package/dist/internal/personal-workbench/lib/workbenchConfigDraftReseed.d.ts +18 -0
  187. package/dist/internal/personal-workbench/lib/workbenchCustomCardCatalog.d.ts +16 -0
  188. package/dist/internal/personal-workbench/lib/workbenchCustomComponentRegistry.d.ts +4 -0
  189. package/dist/internal/personal-workbench/lib/workbenchDataBindingBadge.d.ts +19 -0
  190. package/dist/internal/personal-workbench/lib/workbenchDataBindingRefreshPolicy.d.ts +6 -0
  191. package/dist/internal/personal-workbench/lib/workbenchDataBindingRefreshTarget.d.ts +47 -0
  192. package/dist/internal/personal-workbench/lib/workbenchDeleteLayoutCompact.d.ts +41 -0
  193. package/dist/internal/personal-workbench/lib/workbenchEntryParams.d.ts +50 -0
  194. package/dist/internal/personal-workbench/lib/workbenchGridstackAdapter.d.ts +231 -0
  195. package/dist/internal/personal-workbench/lib/workbenchGridstackSaveLayout.d.ts +48 -0
  196. package/dist/internal/personal-workbench/lib/workbenchImageCanvasSizing.d.ts +45 -0
  197. package/dist/internal/personal-workbench/lib/workbenchImageComposeEntry.d.ts +53 -0
  198. package/dist/internal/personal-workbench/lib/workbenchImageGridstackRowRecovery.d.ts +93 -0
  199. package/dist/internal/personal-workbench/lib/workbenchLayout.d.ts +174 -0
  200. package/dist/internal/personal-workbench/lib/workbenchManualReplacement.d.ts +87 -0
  201. package/dist/internal/personal-workbench/lib/workbenchMetricChartDetail.d.ts +75 -0
  202. package/dist/internal/personal-workbench/lib/workbenchMetricDetailApi.d.ts +62 -0
  203. package/dist/internal/personal-workbench/lib/workbenchMetricFilterBinding.d.ts +85 -0
  204. package/dist/internal/personal-workbench/lib/workbenchMetricFilterLinkage.d.ts +30 -0
  205. package/dist/internal/personal-workbench/lib/workbenchPendingPatch.d.ts +54 -0
  206. package/dist/internal/personal-workbench/lib/workbenchRemoteClient.d.ts +39 -0
  207. package/dist/internal/personal-workbench/lib/workbenchShellSplit.d.ts +107 -0
  208. package/dist/internal/personal-workbench/lib/workbenchShowcase.d.ts +60 -0
  209. package/dist/internal/personal-workbench/lib/workbenchSocketClient.d.ts +28 -0
  210. package/dist/internal/personal-workbench/lib/workbenchStorage.d.ts +67 -0
  211. package/dist/internal/personal-workbench/lib/workbenchSystemCardPreviews.d.ts +31 -0
  212. package/dist/internal/personal-workbench/lib/workbenchSystemCardPrompt.d.ts +36 -0
  213. package/dist/internal/personal-workbench/lib/workbenchTextIntent.d.ts +11 -0
  214. package/dist/internal/personal-workbench/lib/workbenchThemes.d.ts +6 -0
  215. package/dist/internal/personal-workbench/lib/workbenchV2Adapter.d.ts +49 -0
  216. package/dist/internal/personal-workbench/pages/Workspace.vue.d.ts +7 -0
  217. package/dist/internal/personal-workbench/stores/workbenchRuntime.d.ts +170 -0
  218. package/dist/internal/personal-workbench/themes/index.d.ts +6 -0
  219. package/dist/internal/personal-workbench/themes/workbenchThemeDefinitions.d.ts +78 -0
  220. package/dist/internal/personal-workbench/types/workbenchV2.d.ts +211 -0
  221. package/dist/internal/personal-workbench/vue-types/workbenchRuntime.d.ts +191 -0
  222. package/dist/runtime/context/workbenchAppContext.d.ts +32 -0
  223. package/dist/runtime/conversation/workbenchChatMessageOrdering.d.ts +50 -0
  224. package/dist/runtime/conversation/workbenchChatStatusCompletion.d.ts +27 -0
  225. package/dist/runtime/conversation/workbenchChatTurnSignature.d.ts +11 -0
  226. package/dist/runtime/data-binding/workbenchDataBindingRefreshPolicy.d.ts +36 -0
  227. package/dist/runtime/deep-agent/deepAgentProcessGroups.d.ts +84 -0
  228. package/dist/runtime/deep-agent/deepAgentProgressMessage.d.ts +22 -0
  229. package/dist/runtime/deep-agent/deepAgentToolDisplayName.d.ts +12 -0
  230. package/dist/runtime/index.d.ts +8 -0
  231. package/dist/runtime/index.js +5 -0
  232. package/dist/runtime/store/workbenchRuntimeFacade.d.ts +16 -0
  233. package/dist/style.css +1 -0
  234. package/dist/types/index.d.ts +19 -0
  235. package/dist/useWorkbenchRuntime-Pekhufen.js +26338 -0
  236. package/package.json +143 -0
@@ -0,0 +1,514 @@
1
+ /**
2
+ * @fileoverview FDE Skill 卡片类型 - 定义独立图卡运行时协议
3
+ * @author seadon
4
+ * @created 2026-06-27
5
+ */
6
+ import type { FdeSkillTimeRangeDefaultPreset } from './fdeSkillTimeRangeDefault';
7
+ export type FdeSkillCardKind = 'chart' | 'number' | 'query' | 'header' | 'list';
8
+ export type FdeSkillChartType = 'bar' | 'line' | 'area' | 'grouped_bar' | 'stacked_bar' | 'percent_stacked_bar' | 'stacked_area' | 'horizontal_bar' | 'waterfall_bar' | 'mixed_line_bar' | 'dual_axis' | 'pie' | 'donut' | 'rose_pie' | 'funnel' | 'scatter' | 'bubble' | 'heatmap' | 'gauge';
9
+ export type FdeSkillDataRow = Record<string, unknown>;
10
+ export type FdeSkillChartVariant = 'multi_line' | 'smooth_line' | 'step_line' | 'half_donut';
11
+ export interface FdeSkillLinePresentation {
12
+ smooth?: boolean;
13
+ step?: 'start' | 'middle' | 'end';
14
+ show_symbol?: boolean;
15
+ }
16
+ export interface FdeSkillPiePresentation {
17
+ start_angle?: number;
18
+ end_angle?: number;
19
+ rose_type?: 'radius' | 'area';
20
+ }
21
+ export interface FdeSkillBarPresentation {
22
+ sort?: 'asc' | 'desc';
23
+ limit?: number;
24
+ }
25
+ export interface FdeSkillChartPresentation {
26
+ line?: FdeSkillLinePresentation;
27
+ pie?: FdeSkillPiePresentation;
28
+ bar?: FdeSkillBarPresentation;
29
+ }
30
+ export type FdeSkillEchartsProtocolType = 'series' | 'table' | 'tuple' | 'tree' | 'network' | 'geo' | 'scene3D' | 'timeline' | 'transition' | 'graphic' | 'layout' | 'composite' | 'configOnly';
31
+ export interface FdeSkillChartPalette {
32
+ colors?: string[];
33
+ paletteId?: string;
34
+ }
35
+ export interface FdeSkillCardMeta {
36
+ id: string;
37
+ kind: FdeSkillCardKind;
38
+ title: string;
39
+ description?: string;
40
+ }
41
+ export interface FdeSkillCardChrome {
42
+ show_title?: boolean;
43
+ show_border?: boolean;
44
+ title_position?: 'top' | 'inside';
45
+ }
46
+ export interface FdeSkillExecuteRequest {
47
+ endpoint: string;
48
+ method: 'POST';
49
+ body: Record<string, unknown>;
50
+ }
51
+ export interface FdeSkillNormalization {
52
+ rows_path: 'value';
53
+ display_rows_path?: 'display_value';
54
+ total_path?: 'total';
55
+ }
56
+ export interface FdeSkillDimensionLookup {
57
+ target_mapping_field: string;
58
+ source_field: string;
59
+ display_field: string;
60
+ lookup_app_id?: string;
61
+ lookup_model_code?: string;
62
+ lookup_service_code: string;
63
+ lookup_key_field: string;
64
+ lookup_label_field: string;
65
+ execute_request: FdeSkillExecuteRequest;
66
+ normalization?: FdeSkillNormalization;
67
+ }
68
+ /** 筛选器控件类型(六种) */
69
+ export type FdeSkillFilterControlType = 'text' | 'time_range' | 'select' | 'multi_select' | 'person' | 'department';
70
+ /**
71
+ * 数据卡查询绑定:指向某筛选器控件,并声明业务过滤字段。
72
+ * 清单/服务数值灌入 query_criteria;协议图灌入 query_context.query_criteria。
73
+ */
74
+ export interface FdeSkillQueryBinding {
75
+ /** 筛选器卡 / Filter 实例 ID */
76
+ source_card_id: string;
77
+ /** 控件键(内置 control_key / control.id) */
78
+ control_id: string;
79
+ type: FdeSkillFilterControlType;
80
+ /** 业务过滤字段;图表侧即 query_criteria.column_name */
81
+ field_code: string;
82
+ field_name?: string;
83
+ /** 等于 eq / in / time_range / like 等 */
84
+ operator: string;
85
+ /** 平台 query_type:0 等于、3 in、4 like、5 范围…;清单通道使用 */
86
+ query_type: number;
87
+ /** 清单/指标灌入路径;协议图可显式写 query_context.query_criteria */
88
+ query_path?: 'body.query.query_criteria' | 'body.query_criteria' | 'query_context.query_criteria';
89
+ value_format?: 'epoch_millis' | 'raw' | string;
90
+ field_type?: 'timestamp' | 'datetime' | string;
91
+ field_source?: 'svc_output' | 'svc_input' | 'metric_query_filter' | string;
92
+ data_code?: string;
93
+ operators?: string[];
94
+ }
95
+ /** @deprecated 兼容旧命名,等同 FdeSkillQueryBinding 且 type=time_range */
96
+ export type FdeSkillTimeRangeQueryBinding = FdeSkillQueryBinding & {
97
+ type: 'time_range';
98
+ operator: 'time_range' | string;
99
+ query_type: 5 | number;
100
+ };
101
+ export interface FdeSkillServiceDataSource {
102
+ type: 'service';
103
+ app_id: string;
104
+ app_name?: string;
105
+ model_code: string;
106
+ model_name?: string;
107
+ service_code: string;
108
+ service_mode?: string;
109
+ service_op_mode?: string;
110
+ execute_request?: FdeSkillExecuteRequest;
111
+ normalization?: FdeSkillNormalization;
112
+ dimension_lookups?: FdeSkillDimensionLookup[];
113
+ query_bindings?: FdeSkillQueryBinding[];
114
+ refresh_policy?: {
115
+ on_mount?: boolean;
116
+ mode?: 'stale_while_revalidate';
117
+ };
118
+ }
119
+ export interface FdeSkillMetricDataSource {
120
+ type: 'metric';
121
+ app_id: string;
122
+ app_name?: string;
123
+ model_code?: string;
124
+ model_name?: string | null;
125
+ metric_id?: string;
126
+ metric_code?: string;
127
+ metric_name?: string;
128
+ /**
129
+ * 指标历史绑定的模型服务编码;指标查看明细已改为传 metric_code 进入 handleSvcForAi 指标分支。
130
+ * 取数仍走 chart/data(METRIC),不走该服务执行口。
131
+ */
132
+ service_code?: string;
133
+ /** @deprecated 已废弃;指标取数统一走 number.data_request / chart.data_request → chart/data */
134
+ metric_execute_request?: FdeSkillExecuteRequest;
135
+ query_bindings?: FdeSkillQueryBinding[];
136
+ refresh_policy?: {
137
+ on_mount?: boolean;
138
+ mode?: 'stale_while_revalidate';
139
+ };
140
+ }
141
+ export type FdeSkillDataSource = FdeSkillServiceDataSource | FdeSkillMetricDataSource;
142
+ export interface FdeSkillChartMapping {
143
+ x_field?: string;
144
+ x_display_field?: string;
145
+ x_value_field?: string;
146
+ y_fields?: string[];
147
+ y_field?: string;
148
+ y_display_field?: string;
149
+ y_value_field?: string;
150
+ bar_fields?: string[];
151
+ line_fields?: string[];
152
+ left_y_fields?: string[];
153
+ right_y_fields?: string[];
154
+ series_field?: string;
155
+ series_display_field?: string;
156
+ series_chart_types?: Record<string, 'bar' | 'line'>;
157
+ value_field?: string;
158
+ delta_field?: string;
159
+ size_field?: string;
160
+ stack_name?: string;
161
+ category_field?: string;
162
+ category_display_field?: string;
163
+ sort?: 'asc' | 'desc';
164
+ limit?: number;
165
+ name_field?: string;
166
+ name_display_field?: string;
167
+ stage_field?: string;
168
+ stage_display_field?: string;
169
+ stage_order?: string[];
170
+ initial_value?: number;
171
+ total_label?: string;
172
+ left_unit?: string;
173
+ right_unit?: string;
174
+ unit?: string;
175
+ min?: number;
176
+ max?: number;
177
+ }
178
+ export interface FdeSkillDrilldownSpec {
179
+ enabled: boolean;
180
+ mode: 'service_execute_rows';
181
+ trigger: 'item' | 'card';
182
+ detail_service_code?: string;
183
+ page_size?: number;
184
+ dimension_query_type?: number;
185
+ }
186
+ export interface FdeSkillProtocolChartLinkageContext {
187
+ source_component_id: string;
188
+ trigger_field: string;
189
+ trigger_value: unknown;
190
+ trigger_label?: string;
191
+ series_name?: unknown;
192
+ data_index?: number;
193
+ }
194
+ export interface FdeSkillMetricStorageValue {
195
+ type: string;
196
+ value: unknown;
197
+ }
198
+ export interface FdeSkillMetricDimensionMeta {
199
+ dimension_code: string;
200
+ dimension_name?: string;
201
+ storage_type?: string;
202
+ display_mode?: string;
203
+ filter_operators?: string[];
204
+ group_supported?: boolean;
205
+ drilldown_supported?: boolean;
206
+ member_query_supported?: boolean;
207
+ }
208
+ export interface FdeSkillMetricDimensionValue {
209
+ display_value?: unknown;
210
+ raw_value?: unknown;
211
+ storage_value?: FdeSkillMetricStorageValue;
212
+ }
213
+ export interface FdeSkillMetricRowContext {
214
+ row_index?: number;
215
+ dimension_values?: Record<string, FdeSkillMetricDimensionValue>;
216
+ }
217
+ export interface FdeSkillMetricDrillPathRequestItem {
218
+ dimension_code: string;
219
+ storage_value: FdeSkillMetricStorageValue;
220
+ }
221
+ export interface FdeSkillMetricContext {
222
+ source_id?: string;
223
+ metric_id?: string;
224
+ metric_code?: string;
225
+ current_dimensions?: string[];
226
+ row_contexts?: FdeSkillMetricRowContext[];
227
+ supported_dimensions?: FdeSkillMetricDimensionMeta[];
228
+ remaining_drill_dimensions?: FdeSkillMetricDimensionMeta[];
229
+ result_page?: Record<string, unknown>;
230
+ semantic_contract_hash?: string;
231
+ query_context_signature?: string;
232
+ detail_enabled?: boolean;
233
+ detail_supported?: boolean;
234
+ detail_reason_code?: string;
235
+ }
236
+ export interface FdeSkillDrilldownCondition {
237
+ field: string;
238
+ value: unknown;
239
+ label?: string;
240
+ field_type?: string;
241
+ }
242
+ export interface FdeSkillDrilldownColumn {
243
+ key: string;
244
+ title: string;
245
+ dataIndex?: string;
246
+ }
247
+ export interface FdeSkillDrilldownContext {
248
+ card_id: string;
249
+ card_title: string;
250
+ chart_type?: FdeSkillChartType;
251
+ data_source_type: 'service' | 'metric';
252
+ app_id: string;
253
+ model_code?: string;
254
+ source_code: string;
255
+ conditions: FdeSkillDrilldownCondition[];
256
+ raw_item?: FdeSkillDataRow;
257
+ }
258
+ export interface FdeSkillDrilldownResult {
259
+ rows: FdeSkillDataRow[];
260
+ raw_rows: FdeSkillDataRow[];
261
+ columns: FdeSkillDrilldownColumn[];
262
+ total: number;
263
+ }
264
+ export interface FdeSkillProtocolChartDataRequest {
265
+ endpoint: string;
266
+ method: 'POST';
267
+ body: {
268
+ app_id: string;
269
+ page_id?: string;
270
+ component_id: string;
271
+ /** 排障用卡片标题,与 card.title 一致;不参与取数逻辑 */
272
+ card_name?: string;
273
+ chart_id: string;
274
+ protocol_type: FdeSkillEchartsProtocolType;
275
+ reload_token?: number;
276
+ query_context?: Record<string, unknown>;
277
+ data_config: {
278
+ data_sources: Array<Record<string, unknown>>;
279
+ binding: Record<string, unknown>;
280
+ };
281
+ options?: Record<string, unknown>;
282
+ };
283
+ }
284
+ export interface FdeSkillProtocolChartSpec {
285
+ renderer_type: 'echarts_protocol';
286
+ chart_id: string;
287
+ example_id?: string;
288
+ title_cn?: string;
289
+ title?: string;
290
+ protocol_type: FdeSkillEchartsProtocolType;
291
+ protocol_config: Record<string, unknown>;
292
+ protocol_data?: Record<string, unknown>;
293
+ data_request: FdeSkillProtocolChartDataRequest;
294
+ diagnostics?: Record<string, unknown>;
295
+ render_precheck?: Record<string, unknown>;
296
+ }
297
+ export interface FdeSkillLegacyChartSpec {
298
+ type: FdeSkillChartType;
299
+ variant?: FdeSkillChartVariant;
300
+ presentation?: FdeSkillChartPresentation;
301
+ color?: string[];
302
+ palette?: string[] | FdeSkillChartPalette;
303
+ mapping: FdeSkillChartMapping;
304
+ rows: FdeSkillDataRow[];
305
+ echarts_option?: Record<string, unknown>;
306
+ }
307
+ export type FdeSkillChartSpec = FdeSkillLegacyChartSpec | FdeSkillProtocolChartSpec;
308
+ export type FdeSkillNumberFormat = 'number' | 'currency' | 'percent';
309
+ export type FdeSkillNumberTemplate = 'large-amount' | 'header-kpi';
310
+ export interface FdeSkillNumberSpec {
311
+ value_field?: string;
312
+ value: number | string;
313
+ unit?: string;
314
+ precision?: number;
315
+ format?: FdeSkillNumberFormat;
316
+ template?: FdeSkillNumberTemplate;
317
+ display?: FdeSkillNumberDisplaySpec;
318
+ style?: {
319
+ color?: string;
320
+ };
321
+ /** 指标数值卡运行态请求(chart/data);服务数值卡不使用 */
322
+ data_request?: FdeSkillProtocolChartDataRequest;
323
+ /**
324
+ * 指标数值卡最近一次 chart/data 返回的 protocol_data。
325
+ * 用于保留 extension.metric_context(含 detail_enabled / detail_supported),支撑查看明细。
326
+ */
327
+ protocol_data?: Record<string, unknown>;
328
+ }
329
+ export interface FdeSkillHeaderMetaItem {
330
+ label: string;
331
+ value: string;
332
+ }
333
+ export type FdeSkillHeaderTemplate = 'dashboard-summary' | 'dashboard-cockpit';
334
+ export type FdeSkillHeaderKpiVariant = 'stat-chip' | 'digit-box' | 'segment-progress';
335
+ export interface FdeSkillHeaderKpiItem {
336
+ label: string;
337
+ value: string | number;
338
+ variant?: FdeSkillHeaderKpiVariant;
339
+ suffix?: string;
340
+ prefix?: string;
341
+ max?: number;
342
+ }
343
+ export interface FdeSkillHeaderSpec {
344
+ template: FdeSkillHeaderTemplate;
345
+ layout?: 'title-center-kpi-row';
346
+ meta?: FdeSkillHeaderMetaItem[];
347
+ kpis?: FdeSkillHeaderKpiItem[];
348
+ }
349
+ export interface FdeSkillNumberDisplaySpec {
350
+ variant?: FdeSkillHeaderKpiVariant;
351
+ zone?: 'header' | 'body';
352
+ }
353
+ export interface FdeSkillListColumn {
354
+ field: string;
355
+ title: string;
356
+ width?: number;
357
+ }
358
+ export interface FdeSkillListSummaryBadge {
359
+ label: string;
360
+ value_source: 'total';
361
+ }
362
+ /**
363
+ * 动态清单(自动滚动)展示配置。
364
+ * 凡 `list.marquee.enabled=true` 的清单卡(模板页 / 卡片流 / 大屏)均消费,不按画布类型分流。
365
+ */
366
+ export interface FdeSkillListMarqueeSpec {
367
+ enabled: boolean;
368
+ /** 滚动速度,像素/秒;默认 42 */
369
+ speed_px_per_sec?: number;
370
+ /** 鼠标移入是否暂停;默认 true */
371
+ pause_on_hover?: boolean;
372
+ /** 单次最多展示行数;默认 20,硬上限 50 */
373
+ max_rows?: number;
374
+ /** 最多展示列数;默认 4,硬上限 6 */
375
+ max_columns?: number;
376
+ }
377
+ export interface FdeSkillListSpec {
378
+ rows: FdeSkillDataRow[];
379
+ columns: FdeSkillListColumn[];
380
+ total: number;
381
+ page_index: number;
382
+ page_size: number;
383
+ row_key_field?: string;
384
+ summary_badge?: FdeSkillListSummaryBadge;
385
+ /** 动态清单滚动配置;enabled 时统一走滚动清单渲染 */
386
+ marquee?: FdeSkillListMarqueeSpec;
387
+ }
388
+ /** 下拉/人员/部门选项项 */
389
+ export interface FdeSkillFilterOptionItem {
390
+ label: string;
391
+ value: string | number;
392
+ }
393
+ /** 筛选器选项来源 */
394
+ export interface FdeSkillFilterOptionsSource {
395
+ source: 'none' | 'manual' | 'service' | 'person' | 'department';
396
+ manual_options?: FdeSkillFilterOptionItem[];
397
+ /** 查多服务拉选项(人员/部门同此) */
398
+ service?: {
399
+ app_id: string;
400
+ svc_code: string;
401
+ value_field: string;
402
+ label_field: string;
403
+ /** 选项集自身过滤,写入 handleSvcForAi.query.query_criteria */
404
+ query_criteria?: Array<{
405
+ column_name: string;
406
+ query_type: number;
407
+ value: unknown[];
408
+ }>;
409
+ };
410
+ }
411
+ export interface FdeSkillQueryControlSpec {
412
+ id: string;
413
+ type: FdeSkillFilterControlType;
414
+ label: string;
415
+ /** 时间控件格式;非时间可省略 */
416
+ format?: 'YYYY-MM-DD HH:mm:ss' | string;
417
+ show_time?: boolean;
418
+ placeholder?: string | [string, string];
419
+ default_value?: unknown;
420
+ /**
421
+ * 时间范围默认预设:相对按打开时 now 重算;绝对配合 default_value。
422
+ */
423
+ default_preset?: FdeSkillTimeRangeDefaultPreset | null;
424
+ options?: FdeSkillFilterOptionsSource | null;
425
+ }
426
+ export interface FdeSkillQuerySpec {
427
+ /** 主类型;多控件时可与 controls[].type 一致或为聚合标记 */
428
+ type: FdeSkillFilterControlType;
429
+ layout: 'top_full_row' | string;
430
+ controls: FdeSkillQueryControlSpec[];
431
+ /** 单卡自带按钮(旧);页面级 FilterBar 共用按钮时可不写 */
432
+ actions?: {
433
+ submit_text?: string;
434
+ reset_text?: string;
435
+ };
436
+ }
437
+ /**
438
+ * 页面级筛选条:多筛选器 + 共用查询/重置。
439
+ */
440
+ export interface FdeSkillPageFilterBar {
441
+ id: string;
442
+ filters: Array<{
443
+ id: string;
444
+ name: string;
445
+ type: FdeSkillFilterControlType;
446
+ control_key: string;
447
+ default_value?: unknown;
448
+ default_preset?: FdeSkillQueryControlSpec['default_preset'];
449
+ options?: FdeSkillFilterOptionsSource | null;
450
+ format?: string;
451
+ show_time?: boolean;
452
+ placeholder?: string | [string, string];
453
+ }>;
454
+ actions?: {
455
+ submit_text?: string;
456
+ reset_text?: string;
457
+ };
458
+ }
459
+ export interface FdeSkillSourcePatch {
460
+ target_project: 'release/web-workbench';
461
+ container_selector: '.fde-contain';
462
+ mode: 'insert' | 'update';
463
+ target_file?: string;
464
+ target_runtime?: 'fde-skill-runtime';
465
+ }
466
+ export interface FdeSkillChartCardIntent<TChart extends FdeSkillChartSpec = FdeSkillChartSpec, TDataSource extends FdeSkillDataSource = FdeSkillDataSource> {
467
+ version: '1.0';
468
+ card: FdeSkillCardMeta & {
469
+ kind: 'chart';
470
+ };
471
+ data_source: TDataSource;
472
+ drilldown?: FdeSkillDrilldownSpec;
473
+ chart: TChart;
474
+ chrome?: FdeSkillCardChrome;
475
+ source_patch: FdeSkillSourcePatch;
476
+ }
477
+ export type FdeSkillLegacyChartCardIntent = FdeSkillChartCardIntent<FdeSkillLegacyChartSpec, FdeSkillServiceDataSource>;
478
+ export interface FdeSkillNumberCardIntent {
479
+ version: '1.0';
480
+ card: FdeSkillCardMeta & {
481
+ kind: 'number';
482
+ };
483
+ data_source: FdeSkillDataSource;
484
+ number: FdeSkillNumberSpec;
485
+ chrome?: FdeSkillCardChrome;
486
+ source_patch: FdeSkillSourcePatch;
487
+ }
488
+ export interface FdeSkillQueryCardIntent {
489
+ version: '1.0';
490
+ card: FdeSkillCardMeta & {
491
+ kind: 'query';
492
+ };
493
+ query: FdeSkillQuerySpec;
494
+ source_patch: FdeSkillSourcePatch;
495
+ }
496
+ export interface FdeSkillHeaderCardIntent {
497
+ version: '1.0';
498
+ card: FdeSkillCardMeta & {
499
+ kind: 'header';
500
+ };
501
+ header: FdeSkillHeaderSpec;
502
+ source_patch: FdeSkillSourcePatch;
503
+ }
504
+ export interface FdeSkillListCardIntent {
505
+ version: '1.0';
506
+ card: FdeSkillCardMeta & {
507
+ kind: 'list';
508
+ };
509
+ data_source: FdeSkillServiceDataSource;
510
+ list: FdeSkillListSpec;
511
+ chrome?: FdeSkillCardChrome;
512
+ source_patch: FdeSkillSourcePatch;
513
+ }
514
+ export type FdeSkillCardIntent = FdeSkillHeaderCardIntent | FdeSkillChartCardIntent<FdeSkillChartSpec, FdeSkillDataSource> | FdeSkillNumberCardIntent | FdeSkillQueryCardIntent | FdeSkillListCardIntent;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @fileoverview FDE Skill chart/data 请求元数据 - 注入排障字段 card_name
3
+ * @author seadon
4
+ * @created 2026-07-14
5
+ */
6
+ import type { FdeSkillProtocolChartDataRequest } from './fdeSkillCardTypes';
7
+ /**
8
+ * 为 chart/data 请求体注入 card_name,便于 Network 与后端日志对照画布标题。
9
+ * @param request - 原始 data_request。
10
+ * @param cardName - 卡片标题(card.title)。
11
+ * @returns 注入后的请求副本;标题为空时不写入 card_name。
12
+ */
13
+ export declare function applyCardNameToChartDataRequest(request: FdeSkillProtocolChartDataRequest, cardName: string | undefined): FdeSkillProtocolChartDataRequest;
@@ -0,0 +1,67 @@
1
+ /**
2
+ * @fileoverview FDE Skill 图表密度适配 - 按布局场景与类目数调整柱宽/轴标签/饼半径缺省
3
+ * @author seadon
4
+ * @created 2026-07-10
5
+ */
6
+ /** 图表布局适配场景:卡片流细柱;模板 embed / 大屏放宽 */
7
+ export type FdeSkillChartLayoutFit = 'card' | 'embed' | 'dashboard';
8
+ /** 柱图密度缺省 */
9
+ export interface FdeSkillBarDensityDefaults {
10
+ barWidth: string;
11
+ barMaxWidth: number;
12
+ barCategoryGap: string;
13
+ }
14
+ /**
15
+ * 统计图表类目数(优先 protocol_data,其次 optionPatch 轴 data)。
16
+ * @param input - 协议配置与数据。
17
+ * @returns 类目数,未知时为 0。
18
+ */
19
+ export declare function countFdeSkillChartCategories(input: {
20
+ optionPatch?: Record<string, unknown> | null;
21
+ protocolData?: unknown;
22
+ }): number;
23
+ /**
24
+ * 按类目数与布局场景解析柱图密度缺省。
25
+ * 卡片流保持细柱;模板/大屏按类目数放宽,避免宽坑位里「三根细针」。
26
+ * @param categoryCount - 类目数;0 表示未知,embed/dashboard 走中档。
27
+ * @param layoutFit - 布局场景。
28
+ * @returns 柱宽缺省。
29
+ */
30
+ export declare function resolveFdeSkillBarDensityDefaults(categoryCount: number, layoutFit?: FdeSkillChartLayoutFit): FdeSkillBarDensityDefaults;
31
+ /**
32
+ * 是否应对类目轴启用防重叠标签策略。
33
+ * embed/dashboard:类目 ≥ 5 即启用(长中文类目在中等坑位也会挤)。
34
+ * @param categoryCount - 类目数。
35
+ * @param layoutFit - 布局场景。
36
+ * @returns 是否启用。
37
+ */
38
+ export declare function shouldApplyDenseAxisLabelFit(categoryCount: number, layoutFit: FdeSkillChartLayoutFit): boolean;
39
+ /**
40
+ * 解析模板 embed 场景的饼半径缩放(无 dashboard viewport 时使用)。
41
+ * @param layoutFit - 布局场景。
42
+ * @returns 缩放系数;card 返回 null 表示不缩放。
43
+ */
44
+ export declare function resolveFdeSkillEmbedPieRadiusScale(layoutFit: FdeSkillChartLayoutFit): number | null;
45
+ /**
46
+ * 将密度缺省合并进柱系列(仅填未显式指定的字段)。
47
+ * @param series - bar 系列。
48
+ * @param density - 密度缺省。
49
+ * @returns 合并后的系列。
50
+ */
51
+ export declare function mergeBarDensityIntoSeries(series: Record<string, unknown>, density: FdeSkillBarDensityDefaults): Record<string, unknown>;
52
+ /**
53
+ * embed/dashboard 下 containLabel 与过大数值 bottom 互斥:后者会在图下留空洞。
54
+ * 将 ≥40px 的 bottom 钳制为 3%(对齐瀑布图模板),已有百分比 bottom 不改。
55
+ * @param optionPatch - optionPatch。
56
+ * @param layoutFit - 布局场景。
57
+ * @returns 处理后的 optionPatch。
58
+ */
59
+ export declare function normalizeEmbedContainLabelGrid(optionPatch: Record<string, unknown>, layoutFit: FdeSkillChartLayoutFit): Record<string, unknown>;
60
+ /**
61
+ * 对 optionPatch 应用轴标签密度适配。
62
+ * @param optionPatch - ECharts optionPatch。
63
+ * @param categoryCount - 类目数。
64
+ * @param layoutFit - 布局场景。
65
+ * @returns 新的 optionPatch(可能为原引用的浅拷贝)。
66
+ */
67
+ export declare function applyFdeSkillAxisDensityFitToOptionPatch(optionPatch: Record<string, unknown>, categoryCount: number, layoutFit: FdeSkillChartLayoutFit): Record<string, unknown>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @fileoverview FDE Skill 图卡选项 - 从协议 rows 和映射生成 ECharts 配置
3
+ * @author seadon
4
+ * @created 2026-06-27
5
+ */
6
+ import type { FdeSkillLegacyChartCardIntent as FdeSkillChartCardIntent } from './fdeSkillCardTypes';
7
+ import type { FdeSkillChartTheme } from './fdeSkillChartTheme';
8
+ export type FdeSkillChartOption = Record<string, unknown>;
9
+ /**
10
+ * 根据图卡协议生成 ECharts option。
11
+ * @param intent - 图卡协议。
12
+ * @returns ECharts option。
13
+ */
14
+ export declare function buildFdeSkillChartOption(intent: FdeSkillChartCardIntent, theme?: FdeSkillChartTheme): FdeSkillChartOption;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * @fileoverview FDE Skill 图表主题 - 从工作台 CSS 变量读取 ECharts 颜色
3
+ * @author seadon
4
+ * @created 2026-07-03
5
+ */
6
+ import { type FdeSkillChartLayoutFit } from './fdeSkillChartDensityFit';
7
+ export type { FdeSkillChartLayoutFit } from './fdeSkillChartDensityFit';
8
+ /** 主题合并可选参数:布局场景与类目数影响柱宽/轴标签密度 */
9
+ export interface MergeFdeSkillChartThemeOptions {
10
+ layoutFit?: FdeSkillChartLayoutFit;
11
+ categoryCount?: number;
12
+ protocolData?: unknown;
13
+ }
14
+ export interface FdeSkillChartTheme {
15
+ colors: string[];
16
+ axisColor: string;
17
+ axisLabelColor: string;
18
+ splitLineColor: string;
19
+ legendTextColor: string;
20
+ tooltipBg: string;
21
+ tooltipTextColor: string;
22
+ }
23
+ export declare const DEFAULT_FDE_SKILL_CHART_THEME: FdeSkillChartTheme;
24
+ /**
25
+ * 归一化图表主题,缺失字段时回退到默认主题。
26
+ * @param theme - 候选主题,可能不完整或误传 Ref。
27
+ * @param fallback - 兜底主题。
28
+ * @returns 可安全用于 ECharts 的主题配置。
29
+ */
30
+ export declare function resolveFdeSkillChartTheme(theme?: Partial<FdeSkillChartTheme> | null, fallback?: FdeSkillChartTheme): FdeSkillChartTheme;
31
+ /**
32
+ * 判断是否为单体维度柱图(单系列、非堆叠 bar)。
33
+ * 此类图占大区域时粗柱难看,需细柱 + 轻渐变样式。
34
+ * @param optionPatch - ECharts optionPatch。
35
+ * @returns 是否为单体柱图。
36
+ */
37
+ export declare function isMonoDimensionBarOptionPatch(optionPatch: Record<string, unknown>): boolean;
38
+ /**
39
+ * 从工作台根节点读取 FDE skill 图表主题。
40
+ * @param root - `.workbench-root` 根节点。
41
+ * @returns ECharts 可用主题配置。
42
+ */
43
+ export declare function readFdeSkillChartTheme(root: HTMLElement | null | undefined): FdeSkillChartTheme;
44
+ /**
45
+ * 将工作台主题合并到 ECharts protocol config。
46
+ * @param config - 后端或 generated 中的协议 config。
47
+ * @param theme - 当前工作台图表主题。
48
+ * @param options - 布局密度选项(embed/dashboard 放宽柱宽)。
49
+ * @returns 可交给 EChartsProtocolRenderer 的新协议 config。
50
+ */
51
+ export declare function mergeFdeSkillChartThemeIntoProtocolConfig<T extends object>(config: T, theme?: FdeSkillChartTheme, options?: MergeFdeSkillChartThemeOptions): T;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @fileoverview FDE Skill 大屏上下文 - 提供全局主题与报告元信息
3
+ * @author seadon
4
+ * @created 2026-07-08
5
+ */
6
+ import type { InjectionKey, Ref } from 'vue';
7
+ import type { FdeSkillChartTheme } from './fdeSkillChartTheme';
8
+ import type { FdeSkillHeaderSpec } from './fdeSkillCardTypes';
9
+ import type { FdeSkillDashboardManifest, FdeSkillDashboardThemePreset } from './fdeSkillDashboardTypes';
10
+ import type { FdeSkillDashboardViewportTier } from './fdeSkillDashboardViewport';
11
+ export interface FdeSkillDashboardContext {
12
+ themePreset: Ref<FdeSkillDashboardThemePreset>;
13
+ chartTheme: Ref<FdeSkillChartTheme>;
14
+ meta: FdeSkillDashboardManifest['meta'];
15
+ header?: FdeSkillHeaderSpec;
16
+ /** 视口密度档位:只影响栅格密度与图表展示,不改业务数据 */
17
+ viewportTier: Ref<FdeSkillDashboardViewportTier>;
18
+ }
19
+ export declare const FDE_SKILL_DASHBOARD_CONTEXT_KEY: InjectionKey<FdeSkillDashboardContext>;