@fses/workbench-app 0.2.17 → 0.2.20

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 (127) hide show
  1. package/WORKBENCH-CLOSURE.json +14 -14
  2. package/dist/WorkbenchCardCenterDrawer-CWBuBD04.js +421 -0
  3. package/dist/WorkbenchDiagnosticsFooter-BxpwRNMe.js +22 -0
  4. package/dist/WorkbenchDiagnosticsPage-D0mWFNWS.js +72 -0
  5. package/dist/Workspace-DwnUU7_7.js +22678 -0
  6. package/dist/adapters/defaultAgentTransportAdapter.d.ts +6 -0
  7. package/dist/adapters/defaultBrowserAdapters.d.ts +22 -0
  8. package/dist/adapters/defaultPlatformRequestAdapter.d.ts +6 -0
  9. package/dist/adapters/defaultRealtimeAdapter.d.ts +6 -0
  10. package/dist/adapters/endpointResolver.d.ts +16 -0
  11. package/dist/adapters/index.d.ts +7 -1
  12. package/dist/adapters/servicePorts.d.ts +20 -0
  13. package/dist/adapters/types.d.ts +27 -1
  14. package/dist/canvas/api/index.js +1 -1
  15. package/dist/canvas/bridge/workbenchCanvasBus.d.ts +13 -1
  16. package/dist/canvas/persistence/canvasSnapshotStorage.d.ts +3 -2
  17. package/dist/{canvasFacade-B8jYm_aO.js → canvasFacade-ZFqB_i7z.js} +1 -1
  18. package/dist/{cardFactory-DmEBcCf4.js → cardFactory-D5dyYSC3.js} +197 -161
  19. package/dist/components/WorkbenchAppHost.vue.d.ts +5 -5
  20. package/dist/components/WorkbenchApplication.vue.d.ts +2 -2
  21. package/dist/components/WorkbenchCardCenterDrawer.vue.d.ts +2 -0
  22. package/dist/components/WorkbenchDiagnosticsFooter.vue.d.ts +2 -0
  23. package/dist/components/WorkbenchDiagnosticsPage.vue.d.ts +2 -0
  24. package/dist/components/WorkbenchDrawerOutlet.vue.d.ts +6 -0
  25. package/dist/components/WorkbenchFeatureOutlet.vue.d.ts +2 -0
  26. package/dist/components/WorkbenchSlotOutlet.vue.d.ts +5 -0
  27. package/dist/config/workbenchAppConfig.d.ts +4 -0
  28. package/dist/customCardCatalog-DcoxF7gK.js +512 -0
  29. package/dist/extensions/index.d.ts +3 -54
  30. package/dist/extensions/index.js +7 -5
  31. package/dist/extensions/manifest.d.ts +27 -0
  32. package/dist/extensions/normalizeWorkbenchExtensions.d.ts +19 -0
  33. package/dist/extensions/types.d.ts +62 -0
  34. package/dist/fses-workbench-app.js +106 -89
  35. package/dist/index-CytMrt6f.js +1771 -0
  36. package/dist/index-DkGYPLLJ.js +34 -0
  37. package/dist/index.d.ts +10 -1
  38. package/dist/internal/personal-workbench/components/workbench/WorkbenchCanvas.vue.d.ts +4 -4
  39. package/dist/internal/personal-workbench/components/workbench/WorkbenchCanvasSettingsMenu.vue.d.ts +4 -4
  40. package/dist/internal/personal-workbench/components/workbench/WorkbenchFdeImageComposeDrawer.vue.d.ts +19 -0
  41. package/dist/internal/personal-workbench/components/workbench/WorkbenchFdeToolbar.vue.d.ts +36 -0
  42. package/dist/internal/personal-workbench/components/workbench/WorkbenchStudio.vue.d.ts +5 -4
  43. package/dist/internal/personal-workbench/components/workbench/controllers/canvasConfigController.d.ts +23 -0
  44. package/dist/internal/personal-workbench/components/workbench/controllers/canvasLayoutController.d.ts +12 -0
  45. package/dist/internal/personal-workbench/components/workbench/controllers/canvasRefreshController.d.ts +11 -0
  46. package/dist/internal/personal-workbench/components/workbench/controllers/canvasSelectionController.d.ts +11 -0
  47. package/dist/internal/personal-workbench/components/workbench/showcase/WorkbenchShowcase.vue.d.ts +4 -4
  48. package/dist/internal/personal-workbench/controllers/workbenchBuiltinPluginBridge.d.ts +32 -0
  49. package/dist/internal/personal-workbench/controllers/workbenchChartConfigModel.d.ts +68 -0
  50. package/dist/internal/personal-workbench/controllers/workbenchChartDataSourceController.d.ts +100 -0
  51. package/dist/internal/personal-workbench/controllers/workbenchChartDrilldownController.d.ts +96 -0
  52. package/dist/internal/personal-workbench/controllers/workbenchChartDrilldownTable.d.ts +34 -0
  53. package/dist/internal/personal-workbench/controllers/workbenchFdeVersionController.d.ts +107 -0
  54. package/dist/internal/personal-workbench/controllers/workbenchRecommendationConfigModel.d.ts +82 -0
  55. package/dist/internal/personal-workbench/lib/deepAgentApi.d.ts +13 -9
  56. package/dist/internal/personal-workbench/lib/deepAgentQueueState.d.ts +3 -1
  57. package/dist/internal/personal-workbench/lib/fdeWorkbenchConfigClient.d.ts +6 -5
  58. package/dist/internal/personal-workbench/lib/runtimeIdentity.d.ts +5 -0
  59. package/dist/internal/personal-workbench/lib/runtimePrimitiveRegistry.d.ts +1 -1
  60. package/dist/internal/personal-workbench/lib/vueRuntimeAdapters.d.ts +22 -5
  61. package/dist/internal/personal-workbench/lib/workbenchApi.d.ts +61 -47
  62. package/dist/internal/personal-workbench/lib/workbenchMetricDetailApi.d.ts +2 -1
  63. package/dist/internal/personal-workbench/lib/workbenchRemoteClient.d.ts +3 -1
  64. package/dist/internal/personal-workbench/lib/workbenchRequestTransport.d.ts +24 -0
  65. package/dist/internal/personal-workbench/lib/workbenchStorage.d.ts +8 -7
  66. package/dist/internal/personal-workbench/pages/Workspace.vue.d.ts +2 -2
  67. package/dist/internal/personal-workbench/stores/domains/actionsRuntime.d.ts +35 -0
  68. package/dist/internal/personal-workbench/stores/domains/canvasRuntime.d.ts +44 -0
  69. package/dist/internal/personal-workbench/stores/domains/conversationRuntime.d.ts +29 -0
  70. package/dist/internal/personal-workbench/stores/domains/dataBindingRuntime.d.ts +27 -0
  71. package/dist/internal/personal-workbench/stores/domains/fdeRuntime.d.ts +38 -0
  72. package/dist/internal/personal-workbench/stores/domains/memoryRuntime.d.ts +53 -0
  73. package/dist/internal/personal-workbench/stores/workbenchRuntime.d.ts +28 -1
  74. package/dist/kernel/command/createCommandRegistry.d.ts +19 -0
  75. package/dist/kernel/createWorkbenchHostContext.d.ts +43 -0
  76. package/dist/kernel/createWorkbenchKernel.d.ts +7 -0
  77. package/dist/kernel/diagnostics/createWorkbenchDiagnostics.d.ts +35 -0
  78. package/dist/kernel/event/createEventBus.d.ts +16 -0
  79. package/dist/kernel/plugin/createPluginManager.d.ts +7 -0
  80. package/dist/kernel/plugin/registrationScope.d.ts +15 -0
  81. package/dist/kernel/plugin/types.d.ts +30 -0
  82. package/dist/kernel/registry/createRegistry.d.ts +42 -0
  83. package/dist/kernel/registry/resolveSlotContributions.d.ts +14 -0
  84. package/dist/kernel/types.d.ts +52 -0
  85. package/dist/kernel/workbenchHostContext.d.ts +14 -0
  86. package/dist/normalizeWorkbenchExtensions-Ccv3n3fC.js +425 -0
  87. package/dist/plugin/index.d.ts +7 -0
  88. package/dist/plugin/index.js +8 -0
  89. package/dist/plugin/types.d.ts +106 -0
  90. package/dist/plugins/defaultWorkbenchPlugins.d.ts +11 -0
  91. package/dist/plugins/workbenchCardCenterPlugin.d.ts +13 -0
  92. package/dist/plugins/workbenchDiagnosticsPlugin.d.ts +15 -0
  93. package/dist/plugins/workbenchDrawerCommands.d.ts +16 -0
  94. package/dist/plugins/workbenchSettingsPlugin.d.ts +19 -0
  95. package/dist/plugins/workbenchThemePlugin.d.ts +15 -0
  96. package/dist/routing/createWorkbenchFeatureRoute.d.ts +11 -0
  97. package/dist/routing/resolveWorkbenchFeatureRoute.d.ts +23 -0
  98. package/dist/runtime/index.d.ts +6 -1
  99. package/dist/runtime/index.js +6 -3
  100. package/dist/runtime/scope/createWorkbenchRuntimeScope.d.ts +10 -0
  101. package/dist/runtime/store/workbenchRuntimeContext.d.ts +12 -0
  102. package/dist/runtime/store/workbenchRuntimeFacade.d.ts +3 -0
  103. package/dist/style.css +1 -1
  104. package/dist/types/index.d.ts +2 -0
  105. package/dist/useWorkbenchRuntime-CJLqEtgU.js +24062 -0
  106. package/dist/version.d.ts +1 -1
  107. package/node_modules/@fses/ai-chat/dist/components/FsesAiChat.vue.d.ts +9 -1
  108. package/node_modules/@fses/ai-chat/dist/composables/types.d.ts +9 -0
  109. package/node_modules/@fses/ai-chat/dist/fses-ai-chat.js +28238 -7473
  110. package/node_modules/@fses/ai-chat/dist/fses-ai-chat.umd.cjs +17 -17
  111. package/node_modules/@fses/ai-chat/dist/index.d.ts +1 -1
  112. package/node_modules/@fses/ai-chat/dist/style.css +1 -1
  113. package/node_modules/@fses/ai-chat/package.json +3 -3
  114. package/node_modules/@fses/workbench-card/dist/fses-workbench-card-renderers.js +5 -5
  115. package/node_modules/@fses/workbench-card/dist/fses-workbench-card.js +5 -5
  116. package/node_modules/@fses/workbench-card/dist/fses-workbench-card.umd.cjs +1 -1
  117. package/node_modules/@fses/workbench-card/dist/types/block.d.ts +4 -1
  118. package/node_modules/@fses/workbench-card/package.json +1 -1
  119. package/node_modules/@fses/workbench-card/src/registry/cardRegistry.ts +4 -4
  120. package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.js +1 -1
  121. package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.ts +1 -1
  122. package/node_modules/@fses/workbench-card/src/types/block.ts +4 -12
  123. package/package.json +7 -3
  124. package/dist/Workspace-r8ayksVF.js +0 -23176
  125. package/dist/index-DEOR_GPc.js +0 -829
  126. package/dist/useWorkbenchRuntime-DDD22mdF.js +0 -23831
  127. package/dist/workbenchCustomComponentRegistry-CWUPjCnJ.js +0 -267
@@ -158,7 +158,8 @@ export type ConversationTurnStatus = 'streaming' | 'ready' | 'preview_failed' |
158
158
  export type WorkbenchTurnMode = WorkbenchIntentChannel;
159
159
  export type TraceBlockType = 'thought' | 'json' | 'code' | 'file_change' | 'summary';
160
160
  export type TraceAttachmentType = 'json' | 'code' | 'file_change' | 'text';
161
- export type WorklogStageText = '正在思考' | '正在计划' | '正在执行' | '正在收尾' | '正在读取' | '正在回复' | '正在展示' | '正在生成预览' | '等待确认';
161
+ /** 工作日志阶段展示文案,由当前 locale 决定,不作为运行状态协议。 */
162
+ export type WorklogStageText = string;
162
163
  export type ConfirmationScope = 'layout' | 'preview' | 'insert' | 'patch' | 'submit' | 'execute' | 'high_risk_action';
163
164
  export type ConfirmationStatus = 'draft' | 'needs_confirmation' | 'confirmed' | 'executing' | 'submitted' | 'applied' | 'failed' | 'cancelled';
164
165
  export interface ConversationTraceAttachment {
@@ -174,6 +175,8 @@ export interface ConversationConfirmation {
174
175
  summary?: string;
175
176
  questions?: string[];
176
177
  missingFields?: string[];
178
+ /** Durable backend confirmation identity for structured card mutations. */
179
+ pendingPatchId?: string;
177
180
  }
178
181
  export type ConversationTaskKind = 'data_action' | 'data_query' | 'metric_query' | 'attachment_analysis' | 'approval_analysis' | 'workbench_card' | 'general_answer';
179
182
  export type ConversationTaskStatus = 'intent_detected' | 'collecting_fields' | 'waiting_confirmation' | 'confirmed' | 'executing' | 'success' | 'failed' | 'cancelled' | 'topic_shifted';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fses/workbench-card",
3
- "version": "0.3.15",
3
+ "version": "0.3.17",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -80,9 +80,9 @@ const metricEntries = [
80
80
 
81
81
  const chartEntries = [
82
82
  ['bar', getLocaleText('FWC.563c1787581443454'), 'bar', 'multiSeries'],
83
- ['customEcharts', '自定义图表', 'customEcharts', 'echartsOption'],
83
+ ['customEcharts', getLocaleText('FWC.f66d1787580641924'), 'customEcharts', 'echartsOption'],
84
84
  ['line', getLocaleText('FWC.f4d91787581443945'), 'line', 'singleSeries'],
85
- ['mixedBarLine', '柱线混合图', 'mixedBarLine', 'multiSeries'],
85
+ ['mixedBarLine', getLocaleText('FWC.74c61787581170214'), 'mixedBarLine', 'multiSeries'],
86
86
  ['waterfall', getLocaleText('FWC.201c1787581444470'), 'waterfall', 'waterfallSteps'],
87
87
  ['heatmap', getLocaleText('FWC.a9da1787581444994'), 'heatmap', 'heatmapMatrix'],
88
88
  ['pie', getLocaleText('FWC.f07d1787581593894'), 'pie', 'pieSlices'],
@@ -100,10 +100,10 @@ const chartEntries = [
100
100
  ['kline', getLocaleText('FWC.d56e1787580427981'), 'candlestick', 'candlestickSeries'],
101
101
  ['boxplot', getLocaleText('FWC.5adf1787581477753'), 'boxplot', 'boxplotSeries'],
102
102
  ['area', getLocaleText('FWC.9b681787581477790'), 'area', 'singleSeries'],
103
- ['stackedBar', '堆叠柱状图', 'stackedBar', 'multiSeries'],
103
+ ['stackedBar', getLocaleText('FWC.7c111787580785011'), 'stackedBar', 'multiSeries'],
104
104
  ['pareto', getLocaleText('FWC.c7241787581115211'), 'pareto', 'paretoSeries'],
105
105
  ['drilldownTree', getLocaleText('FWC.20731787581115735'), 'drilldownTree', 'treeHierarchy'],
106
- ['network', '网络关系图', 'network', 'networkGraph'],
106
+ ['network', getLocaleText('FWC.b4701787581333612'), 'network', 'networkGraph'],
107
107
  ] as const;
108
108
 
109
109
  const tableEntries = [
@@ -3699,7 +3699,7 @@ export const ECHARTS_TEMPLATE_REGISTRY = [
3699
3699
  "capabilityId": "card.echarts.bar.barStack",
3700
3700
  "category": "card.echarts.bar",
3701
3701
  "type": "bar-stack",
3702
- "title": "堆叠柱状图",
3702
+ "title": getLocaleText('FWC.7c111787580785011'),
3703
3703
  "description": getLocaleText('FWC.d7651787578733971'),
3704
3704
  "blockType": "display",
3705
3705
  "subType": "chart",
@@ -3701,7 +3701,7 @@ export const ECHARTS_TEMPLATE_REGISTRY = [
3701
3701
  "capabilityId": "card.echarts.bar.barStack",
3702
3702
  "category": "card.echarts.bar",
3703
3703
  "type": "bar-stack",
3704
- "title": "堆叠柱状图",
3704
+ "title": getLocaleText('FWC.7c111787580785011'),
3705
3705
  "description": getLocaleText('FWC.d7651787578733971'),
3706
3706
  "blockType": "display",
3707
3707
  "subType": "chart",
@@ -274,18 +274,8 @@ export type ConversationTurnStatus =
274
274
  export type WorkbenchTurnMode = WorkbenchIntentChannel;
275
275
  export type TraceBlockType = 'thought' | 'json' | 'code' | 'file_change' | 'summary';
276
276
  export type TraceAttachmentType = 'json' | 'code' | 'file_change' | 'text';
277
- export type WorklogStageText =
278
- | '正在思考'
279
- | '正在计划'
280
- | '正在执行'
281
- | '正在收尾'
282
- // Legacy values may exist in persisted turns; new runtime code should not emit them.
283
- | '正在读取'
284
- | '正在回复'
285
- | '正在展示'
286
- | '正在生成预览'
287
- | '等待确认'
288
- ;
277
+ /** 工作日志阶段展示文案,由当前 locale 决定,不作为运行状态协议。 */
278
+ export type WorklogStageText = string;
289
279
  export type ConfirmationScope = 'layout' | 'preview' | 'insert' | 'patch' | 'submit' | 'execute' | 'high_risk_action';
290
280
  export type ConfirmationStatus =
291
281
  | 'draft'
@@ -311,6 +301,8 @@ export interface ConversationConfirmation {
311
301
  summary?: string;
312
302
  questions?: string[];
313
303
  missingFields?: string[];
304
+ /** Durable backend confirmation identity for structured card mutations. */
305
+ pendingPatchId?: string;
314
306
  }
315
307
 
316
308
  export type ConversationTaskKind =
package/package.json CHANGED
@@ -11,8 +11,8 @@
11
11
  "@byteluck-fe/workbench-template": "0.1.1",
12
12
  "@byteluck/agentic-protocol": "2.2.1",
13
13
  "@byteluck/workbench-skill-contracts": "0.1.0",
14
- "@fses/ai-chat": "1.0.15",
15
- "@fses/workbench-card": "0.3.15",
14
+ "@fses/ai-chat": "1.0.17",
15
+ "@fses/workbench-card": "0.3.17",
16
16
  "@microsoft/fetch-event-source": "2.0.1",
17
17
  "axios": "^1.15.0",
18
18
  "clsx": "^2.1.1",
@@ -70,6 +70,10 @@
70
70
  "import": "./dist/fses-workbench-app.js",
71
71
  "types": "./dist/fde-runtime/runtime/fdeSkillDisplayLabel.d.ts"
72
72
  },
73
+ "./plugin": {
74
+ "import": "./dist/plugin/index.js",
75
+ "types": "./dist/plugin/index.d.ts"
76
+ },
73
77
  "./runtime": {
74
78
  "import": "./dist/runtime/index.js",
75
79
  "types": "./dist/runtime/index.d.ts"
@@ -143,5 +147,5 @@
143
147
  },
144
148
  "type": "module",
145
149
  "types": "./dist/index.d.ts",
146
- "version": "0.2.17"
150
+ "version": "0.2.20"
147
151
  }