@fses/workbench-app 0.2.16 → 0.2.17

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 (61) hide show
  1. package/WORKBENCH-CLOSURE.json +18 -12
  2. package/dist/Workspace-r8ayksVF.js +23176 -0
  3. package/dist/canvas/api/index.js +1 -1
  4. package/dist/{canvasFacade-B2EHgdqA.js → canvasFacade-B8jYm_aO.js} +748 -748
  5. package/dist/cardFactory-DmEBcCf4.js +1460 -0
  6. package/dist/extensions/index.js +1 -1
  7. package/dist/fses-workbench-app.js +5 -5
  8. package/dist/{index-CMM-5ObU.js → index-DEOR_GPc.js} +350 -346
  9. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartDisplayData.d.ts +0 -5
  10. package/dist/internal/personal-workbench/lib/assistantPersonaProfiles.d.ts +6 -6
  11. package/dist/internal/personal-workbench/lib/cardStyleConfig.d.ts +26 -26
  12. package/dist/internal/personal-workbench/lib/echartsOptionEditorBridge.d.ts +0 -5
  13. package/dist/internal/personal-workbench/lib/historyCardBindingRestore.fixture.d.ts +0 -5
  14. package/dist/internal/personal-workbench/lib/runtimePrimitiveRegistry.d.ts +1 -1
  15. package/dist/internal/personal-workbench/lib/vueRuntimeAdapters.d.ts +0 -5
  16. package/dist/internal/personal-workbench/lib/workbenchCanvasBusinessGapChecklist.d.ts +1 -1
  17. package/dist/internal/personal-workbench/lib/workbenchCardRecommendationFallback.d.ts +1 -1
  18. package/dist/internal/personal-workbench/lib/workbenchCardRecommendationReturnItemUpsert.d.ts +0 -5
  19. package/dist/internal/personal-workbench/lib/workbenchDataBindingBadge.d.ts +0 -5
  20. package/dist/internal/personal-workbench/lib/workbenchImageComposeEntry.d.ts +1 -1
  21. package/dist/internal/personal-workbench/lib/workbenchLayout.d.ts +0 -5
  22. package/dist/runtime/index.js +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useWorkbenchRuntime-DLf_FgC7.js → useWorkbenchRuntime-DDD22mdF.js} +7817 -7813
  25. package/dist/version.d.ts +1 -1
  26. package/dist/{workbenchCustomComponentRegistry-Bt94Lgko.js → workbenchCustomComponentRegistry-CWUPjCnJ.js} +74 -74
  27. package/node_modules/@byteluck-fe/locale-message/README.md +2 -0
  28. package/node_modules/@byteluck-fe/locale-message/dist/index.d.ts +37 -0
  29. package/node_modules/@byteluck-fe/locale-message/dist/locale-message.js +55 -0
  30. package/node_modules/@byteluck-fe/locale-message/package.json +37 -0
  31. package/node_modules/@fses/ai-chat/dist/components/ContextUsageRing.vue.d.ts +5 -0
  32. package/node_modules/@fses/ai-chat/dist/components/FsesAiChat.vue.d.ts +5 -0
  33. package/node_modules/@fses/ai-chat/dist/fses-ai-chat.js +5446 -5321
  34. package/node_modules/@fses/ai-chat/dist/fses-ai-chat.umd.cjs +16 -18
  35. package/node_modules/@fses/ai-chat/dist/style.css +1 -1
  36. package/node_modules/@fses/ai-chat/dist/utils/attachment-upload.d.ts +0 -5
  37. package/node_modules/@fses/ai-chat/package.json +6 -5
  38. package/node_modules/@fses/workbench-card/dist/fses-workbench-card-renderers.js +10144 -9914
  39. package/node_modules/@fses/workbench-card/dist/fses-workbench-card.js +1517 -1503
  40. package/node_modules/@fses/workbench-card/dist/fses-workbench-card.umd.cjs +1 -1
  41. package/node_modules/@fses/workbench-card/dist/renderers/chart/chartRendererRegistry.d.ts +97 -97
  42. package/node_modules/@fses/workbench-card/dist/renderers/style.css +1 -1
  43. package/node_modules/@fses/workbench-card/package.json +4 -1
  44. package/node_modules/@fses/workbench-card/src/registry/cardRegistry.ts +99 -98
  45. package/node_modules/@fses/workbench-card/src/registry/compositeCardPatterns.ts +31 -30
  46. package/node_modules/@fses/workbench-card/src/registry/echartsTemplateCategories.ts +24 -23
  47. package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.js +765 -764
  48. package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.ts +765 -764
  49. package/node_modules/@fses/workbench-card/src/renderers/WorkbenchBlockRenderer.vue +143 -129
  50. package/node_modules/@fses/workbench-card/src/renderers/chart/ChartRegistry.vue +4 -3
  51. package/node_modules/@fses/workbench-card/src/renderers/chart/EChartsProtocolRenderer.vue +2 -1
  52. package/node_modules/@fses/workbench-card/src/renderers/chart/chartRendererRegistry.ts +99 -98
  53. package/node_modules/@fses/workbench-card/src/renderers/chart/useEchart.ts +30 -29
  54. package/node_modules/@fses/workbench-card/src/renderers/native/nativeBindings.ts +11 -10
  55. package/node_modules/@fses/workbench-card/src/renderers/nested/nestedBlockBindings.ts +102 -101
  56. package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceCompositeBindings.ts +364 -363
  57. package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceRiskAndStrategyBindings.ts +90 -89
  58. package/node_modules/@fses/workbench-card/src/renderers/useWorkbenchBlockRendererBindings.ts +33 -32
  59. package/package.json +4 -3
  60. package/dist/Workspace-CfKvji6S.js +0 -22896
  61. package/dist/cardFactory-BK3CA-Gn.js +0 -1443
@@ -1,8 +1,3 @@
1
- /**
2
- * @fileoverview FDE Skill 协议图表展示数据 - 补齐协议图表渲染所需的展示名称
3
- * @author seadon
4
- * @created 2026-07-07
5
- */
6
1
  /**
7
2
  * @param protocolData - 原始协议数据。
8
3
  * @returns 可直接交给 EChartsProtocolRenderer 的协议数据。
@@ -2,18 +2,18 @@ import type { AssistantPersonaKey, AssistantPersonaPayload } from '@fses/workben
2
2
  export declare const DEFAULT_ASSISTANT_PERSONA: AssistantPersonaKey;
3
3
  export declare const ASSISTANT_PERSONA_PROFILES: readonly [{
4
4
  readonly key: "warm";
5
- readonly label: "热情";
6
- readonly shortDescription: "主动联想,温暖充足";
5
+ readonly label: string;
6
+ readonly shortDescription: string;
7
7
  readonly prompt: string;
8
8
  }, {
9
9
  readonly key: "professional";
10
- readonly label: "专业";
11
- readonly shortDescription: "严谨克制,有理有据";
10
+ readonly label: string;
11
+ readonly shortDescription: string;
12
12
  readonly prompt: string;
13
13
  }, {
14
14
  readonly key: "reserved";
15
- readonly label: "内敛";
16
- readonly shortDescription: "安静克制,简洁稳妥";
15
+ readonly label: string;
16
+ readonly shortDescription: string;
17
17
  readonly prompt: string;
18
18
  }];
19
19
  export declare function normalizeAssistantPersonaKey(value: unknown): AssistantPersonaKey;
@@ -24,87 +24,87 @@ export type WorkbenchCardStyleValue = WorkbenchCardStyleConfig[WorkbenchCardStyl
24
24
  export declare const DEFAULT_WORKBENCH_CARD_STYLE_CONFIG: WorkbenchCardStyleConfig;
25
25
  export declare const WORKBENCH_CARD_STYLE_GROUPS: readonly [{
26
26
  readonly key: "radius";
27
- readonly label: "圆角";
27
+ readonly label: string;
28
28
  readonly options: readonly [{
29
29
  readonly value: "square";
30
- readonly label: "直角";
30
+ readonly label: string;
31
31
  }, {
32
32
  readonly value: "small";
33
- readonly label: "小圆角";
33
+ readonly label: string;
34
34
  }, {
35
35
  readonly value: "standard";
36
- readonly label: "标准圆角";
36
+ readonly label: string;
37
37
  }, {
38
38
  readonly value: "large";
39
- readonly label: "大圆角";
39
+ readonly label: string;
40
40
  }];
41
41
  }, {
42
42
  readonly key: "border";
43
- readonly label: "边框";
43
+ readonly label: string;
44
44
  readonly options: readonly [{
45
45
  readonly value: "none";
46
- readonly label: "无边框";
46
+ readonly label: string;
47
47
  }, {
48
48
  readonly value: "light";
49
- readonly label: "浅色细边框";
49
+ readonly label: string;
50
50
  }, {
51
51
  readonly value: "strong";
52
- readonly label: "强边框";
52
+ readonly label: string;
53
53
  }];
54
54
  }, {
55
55
  readonly key: "shadow";
56
- readonly label: "阴影";
56
+ readonly label: string;
57
57
  readonly options: readonly [{
58
58
  readonly value: "none";
59
- readonly label: "无阴影";
59
+ readonly label: string;
60
60
  }, {
61
61
  readonly value: "soft";
62
- readonly label: "弱悬浮";
62
+ readonly label: string;
63
63
  }, {
64
64
  readonly value: "strong";
65
- readonly label: "强悬浮";
65
+ readonly label: string;
66
66
  }];
67
67
  }, {
68
68
  readonly key: "texture";
69
- readonly label: "质感";
69
+ readonly label: string;
70
70
  readonly options: readonly [{
71
71
  readonly value: "white";
72
- readonly label: "纯白";
72
+ readonly label: string;
73
73
  }, {
74
74
  readonly value: "muted";
75
- readonly label: "浅灰底";
75
+ readonly label: string;
76
76
  }, {
77
77
  readonly value: "glass";
78
- readonly label: "磨砂玻璃";
78
+ readonly label: string;
79
79
  }, {
80
80
  readonly value: "texture";
81
- readonly label: "纹理底";
81
+ readonly label: string;
82
82
  }];
83
83
  }, {
84
84
  readonly key: "motion";
85
- readonly label: "动效";
85
+ readonly label: string;
86
86
  readonly options: readonly [{
87
87
  readonly value: "none";
88
- readonly label: "无动效";
88
+ readonly label: string;
89
89
  }, {
90
90
  readonly value: "lift";
91
- readonly label: "悬浮微动";
91
+ readonly label: string;
92
92
  }, {
93
93
  readonly value: "glow";
94
- readonly label: "渐变光效";
94
+ readonly label: string;
95
95
  }];
96
96
  }, {
97
97
  readonly key: "density";
98
- readonly label: "密度";
98
+ readonly label: string;
99
99
  readonly options: readonly [{
100
100
  readonly value: "loose";
101
- readonly label: "宽松版";
101
+ readonly label: string;
102
102
  }, {
103
103
  readonly value: "standard";
104
- readonly label: "标准版";
104
+ readonly label: string;
105
105
  }, {
106
106
  readonly value: "compact";
107
- readonly label: "高密度紧凑版";
107
+ readonly label: string;
108
108
  }];
109
109
  }];
110
110
  export declare function normalizeWorkbenchCardStyleConfig(value: unknown): WorkbenchCardStyleConfig;
@@ -1,8 +1,3 @@
1
- /**
2
- * @fileoverview ECharts option 编辑桥接 - 在用户侧标准 option 与内部 protocolRender 数据之间转换。
3
- * @author seadon
4
- * @created 2026-06-22
5
- */
6
1
  type JsonRecord = Record<string, unknown>;
7
2
  type EChartsOptionDraftResult = {
8
3
  ok: true;
@@ -1,8 +1,3 @@
1
- /**
2
- * @fileoverview 历史推荐绑定恢复测试 fixture - 保存受影响 transcript 的脱敏真实结构
3
- * @author seadon
4
- * @created 2026-08-03
5
- */
6
1
  /**
7
2
  * 构造真实缺少任何允许位置绑定的旧历史 transcript。
8
3
  * @returns 无绑定旧历史 transcript items。
@@ -22,7 +22,7 @@ export declare const RUNTIME_PRIMITIVE_DEFINITIONS: RuntimePrimitiveDefinition[]
22
22
  export declare const ROUTE_TARGETS: {
23
23
  readonly processCenter: {
24
24
  readonly id: "processCenter";
25
- readonly name: "流程中心";
25
+ readonly name: string;
26
26
  readonly route: "/process-center";
27
27
  readonly acceptedParams: readonly ["keyword", "source"];
28
28
  };
@@ -1,8 +1,3 @@
1
- /**
2
- * @fileoverview 工作台 Vue 运行态适配工具 - 负责将流式事件归约为对话、画布和历史上下文状态。
3
- * @author seadon
4
- * @created 2026-05-31
5
- */
6
1
  import type { ActivityItem, RuntimeMessage, WorkbenchConversationSummary } from '@workbench-internal/vue-types/workbenchRuntime';
7
2
  import type { AssistantPersonaKey, ConversationProcessGroup, ConversationReturnItem, ConversationTaskState, ConversationTurn, ConversationTurnTraceItem, LayoutConfig, MaterializedBlock, PlanResponse, PreviewSnapshotDraft, RoleId, StreamActionItem, WorkbenchPlanStreamEvent, WorkbenchSnapshot, WorklogStageText } from '@fses/workbench-app/types';
8
3
  type StreamMessageEvent = Extract<WorkbenchPlanStreamEvent, {
@@ -29,7 +29,7 @@ export type BusinessGapWordingSubmission = {
29
29
  selectedConfig?: Record<string, unknown>;
30
30
  };
31
31
  /** User-facing supplement examples that map screenshot cards to runtime query clues. */
32
- export declare const BUSINESS_GAP_WORDING_REQUIREMENT = "\u76F4\u63A5\u7528\u81EA\u7136\u8BED\u8A00\u8BF4\u660E\u8FD9\u5F20\u5361\u8981\u67E5\u4EC0\u4E48\uFF0C\u4F8B\u5982\u201C\u67E5\u4E00\u4E0B\u672C\u6708\u603B\u652F\u51FA\u91D1\u989D\u201D\uFF1B\u77E5\u9053\u6307\u6807\u3001\u8868\u540D\u3001\u5B57\u6BB5\u6216\u7CFB\u7EDF\u65F6\u53EF\u4EE5\u9644\u5728\u540E\u9762\u3002";
32
+ export declare const BUSINESS_GAP_WORDING_REQUIREMENT: string;
33
33
  /**
34
34
  * 解析顶级卡片的业务口径生命周期状态。
35
35
  * @param block - 画布卡片。
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import type { CardRecommendationItem } from '@fses/workbench-app/types';
7
7
  /** 空注册卡片候选降级为明细表时展示给用户的成功文案。 */
8
- export declare const CARD_RECOMMENDATION_FALLBACK_MESSAGE = "\u5DF2\u6839\u636E\u95EE\u6570\u7ED3\u679C\u751F\u6210\u660E\u7EC6\u8868\u5019\u9009\uFF0C\u8BF7\u9009\u62E9\u540E\u63D2\u5165\u5DE5\u4F5C\u533A\u3002";
8
+ export declare const CARD_RECOMMENDATION_FALLBACK_MESSAGE: string;
9
9
  interface BuildFallbackRecommendationsInput {
10
10
  queryResult?: Record<string, unknown>;
11
11
  source?: unknown;
@@ -1,8 +1,3 @@
1
- /**
2
- * @fileoverview 工作台推荐卡片 returnItem 写入工具 - 收敛多入口推荐去重与替换。
3
- * @author seadon
4
- * @created 2026-08-15
5
- */
6
1
  import type { ConversationReturnItem, ConversationTurn, WorkbenchPlanStreamEvent } from '@fses/workbench-app/types';
7
2
  export type CardRecommendationsReadyEvent = Extract<WorkbenchPlanStreamEvent, {
8
3
  type: 'card_recommendations_ready';
@@ -1,8 +1,3 @@
1
- /**
2
- * @fileoverview 工作台问数徽标工具 - 统一识别普通问数状态、候选问数状态和人工补充业务口径状态
3
- * @author seadon
4
- * @created 2026-05-13
5
- */
6
1
  import type { MaterializedBlock } from '@fses/workbench-app/types';
7
2
  export type WorkbenchDataBindingBadgeTone = 'info' | 'success' | 'error' | 'idle' | 'warning';
8
3
  export interface WorkbenchDataBindingBadge {
@@ -3,7 +3,7 @@
3
3
  * @author seadon
4
4
  * @created 2026-05-12
5
5
  */
6
- export declare const defaultWorkbenchImageComposePrompt = "\u8BF7\u8BC6\u522B\u622A\u56FE\u5E76\u751F\u6210 V2 \u5DE5\u4F5C\u53F0\u5361\u7247";
6
+ export declare const defaultWorkbenchImageComposePrompt: string;
7
7
  export interface WorkbenchImageUploadEntryPayload {
8
8
  base64: string;
9
9
  file?: File;
@@ -1,8 +1,3 @@
1
- /**
2
- * @fileoverview 工作台布局归一化工具 - 统一处理逻辑栅格、叠卡修复和图片编排快照恢复。
3
- * @author seadon
4
- * @created 2026-05-17
5
- */
6
1
  import type { BlockLayout, LayoutConfig, MaterializedBlock } from '@fses/workbench-app/types';
7
2
  export declare const LOGICAL_LAYOUT_COLUMNS = 100;
8
3
  export declare const LOGICAL_LAYOUT_MAX_ROWS = 999;
@@ -1,4 +1,4 @@
1
- import { u as r, a as u } from "../useWorkbenchRuntime-DLf_FgC7.js";
1
+ import { u as r, a as u } from "../useWorkbenchRuntime-DDD22mdF.js";
2
2
  export {
3
3
  r as useWorkbenchRuntime,
4
4
  u as useWorkbenchRuntimeStore