@fses/workbench-app 0.2.16 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/WORKBENCH-CLOSURE.json +18 -12
- package/dist/Workspace-JvnSC-w9.js +23186 -0
- package/dist/canvas/api/index.js +1 -1
- package/dist/{canvasFacade-B2EHgdqA.js → canvasFacade-B8jYm_aO.js} +748 -748
- package/dist/cardFactory-DmEBcCf4.js +1460 -0
- package/dist/extensions/index.js +1 -1
- package/dist/fses-workbench-app.js +5 -5
- package/dist/{index-CMM-5ObU.js → index-D-WW3bXH.js} +350 -346
- package/dist/internal/personal-workbench/components/workbench/WorkbenchStudio.vue.d.ts +3 -2
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartDisplayData.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/assistantPersonaProfiles.d.ts +6 -6
- package/dist/internal/personal-workbench/lib/cardStyleConfig.d.ts +26 -26
- package/dist/internal/personal-workbench/lib/echartsOptionEditorBridge.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/historyCardBindingRestore.fixture.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/runtimePrimitiveRegistry.d.ts +1 -1
- package/dist/internal/personal-workbench/lib/vueRuntimeAdapters.d.ts +18 -6
- package/dist/internal/personal-workbench/lib/workbenchCanvasBusinessGapChecklist.d.ts +1 -1
- package/dist/internal/personal-workbench/lib/workbenchCardRecommendationFallback.d.ts +1 -1
- package/dist/internal/personal-workbench/lib/workbenchCardRecommendationReturnItemUpsert.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/workbenchDataBindingBadge.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/workbenchImageComposeEntry.d.ts +1 -1
- package/dist/internal/personal-workbench/lib/workbenchLayout.d.ts +0 -5
- package/dist/runtime/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useWorkbenchRuntime-DLf_FgC7.js → useWorkbenchRuntime-D_AtkXIX.js} +7938 -7900
- package/dist/version.d.ts +1 -1
- package/dist/{workbenchCustomComponentRegistry-Bt94Lgko.js → workbenchCustomComponentRegistry-CWUPjCnJ.js} +74 -74
- package/node_modules/@byteluck-fe/locale-message/README.md +2 -0
- package/node_modules/@byteluck-fe/locale-message/dist/index.d.ts +37 -0
- package/node_modules/@byteluck-fe/locale-message/dist/locale-message.js +55 -0
- package/node_modules/@byteluck-fe/locale-message/package.json +37 -0
- package/node_modules/@fses/ai-chat/dist/components/ContextUsageRing.vue.d.ts +5 -0
- package/node_modules/@fses/ai-chat/dist/components/FsesAiChat.vue.d.ts +14 -1
- package/node_modules/@fses/ai-chat/dist/composables/types.d.ts +9 -0
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.js +5832 -5670
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.umd.cjs +16 -18
- package/node_modules/@fses/ai-chat/dist/index.d.ts +1 -1
- package/node_modules/@fses/ai-chat/dist/style.css +1 -1
- package/node_modules/@fses/ai-chat/dist/utils/attachment-upload.d.ts +0 -5
- package/node_modules/@fses/ai-chat/package.json +6 -5
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card-renderers.js +10144 -9914
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card.js +1517 -1503
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card.umd.cjs +1 -1
- package/node_modules/@fses/workbench-card/dist/renderers/chart/chartRendererRegistry.d.ts +97 -97
- package/node_modules/@fses/workbench-card/dist/renderers/style.css +1 -1
- package/node_modules/@fses/workbench-card/package.json +4 -1
- package/node_modules/@fses/workbench-card/src/registry/cardRegistry.ts +99 -98
- package/node_modules/@fses/workbench-card/src/registry/compositeCardPatterns.ts +31 -30
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateCategories.ts +24 -23
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.js +765 -764
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.ts +765 -764
- package/node_modules/@fses/workbench-card/src/renderers/WorkbenchBlockRenderer.vue +143 -129
- package/node_modules/@fses/workbench-card/src/renderers/chart/ChartRegistry.vue +4 -3
- package/node_modules/@fses/workbench-card/src/renderers/chart/EChartsProtocolRenderer.vue +2 -1
- package/node_modules/@fses/workbench-card/src/renderers/chart/chartRendererRegistry.ts +99 -98
- package/node_modules/@fses/workbench-card/src/renderers/chart/useEchart.ts +30 -29
- package/node_modules/@fses/workbench-card/src/renderers/native/nativeBindings.ts +11 -10
- package/node_modules/@fses/workbench-card/src/renderers/nested/nestedBlockBindings.ts +102 -101
- package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceCompositeBindings.ts +364 -363
- package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceRiskAndStrategyBindings.ts +90 -89
- package/node_modules/@fses/workbench-card/src/renderers/useWorkbenchBlockRendererBindings.ts +33 -32
- package/package.json +4 -3
- package/dist/Workspace-CfKvji6S.js +0 -22896
- package/dist/cardFactory-BK3CA-Gn.js +0 -1443
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { type WorkbenchCardStyleConfig } from "@workbench-internal/lib/cardStyleConfig";
|
|
2
2
|
import { type WorkbenchChatHistoryMessage } from "@workbench-internal/lib/workbenchChatHistory";
|
|
3
|
+
import type { RestoredConversationTurn } from "@workbench-internal/lib/vueRuntimeAdapters";
|
|
3
4
|
import { type MetricWorkbenchCardSpec } from "@workbench-internal/lib/aiMetricCardSpec";
|
|
4
5
|
import { type WorkbenchCanvasGapPreset, type WorkbenchCardPresetSizeConfig } from "@workbench-internal/lib/cardSizeConfig";
|
|
5
6
|
import { type WorkbenchActionPayload } from "@workbench-internal/lib/workbenchApi";
|
|
6
7
|
import type { WorkbenchStyleCodeMap, WorkbenchStyleKey } from "@workbench-internal/lib/workbenchThemes";
|
|
7
8
|
import type { SystemCardPromptSelection, SystemCardWorkbenchPromptParams } from "@workbench-internal/lib/workbenchSystemCardPrompt";
|
|
8
9
|
import type { CardRecommendationChooseFeedback, CardRecommendationItem, ChatAttachment, FsesAiChatQuickEntry } from "@fses/workbench-app/types";
|
|
9
|
-
import type { AssistantPersonaKey, ConversationGroupSummary,
|
|
10
|
+
import type { AssistantPersonaKey, ConversationGroupSummary, LayoutConfig, WorkbenchIntentChannel, WorkbenchTemplate } from '@fses/workbench-app/types';
|
|
10
11
|
import type { BusinessGroupContext } from "@fses/workbench-app/types";
|
|
11
12
|
import type { ChartCardSpec } from "@fses/workbench-app/types";
|
|
12
13
|
type UploadedChatAttachmentPayload = {
|
|
@@ -35,7 +36,7 @@ type __VLS_Props = {
|
|
|
35
36
|
input: string;
|
|
36
37
|
planning: boolean;
|
|
37
38
|
saving: boolean;
|
|
38
|
-
turns:
|
|
39
|
+
turns: RestoredConversationTurn[];
|
|
39
40
|
activeTurnId?: string | null;
|
|
40
41
|
activeConversationId?: string;
|
|
41
42
|
conversations?: ConversationGroupSummary[];
|
|
@@ -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;
|
|
@@ -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, {
|
|
@@ -70,7 +65,24 @@ export declare function createTurn(userPrompt: string): ConversationTurn;
|
|
|
70
65
|
* @param conversationId - DeepAgent thread id。
|
|
71
66
|
* @returns 可直接写入运行态 store 的历史 turns。
|
|
72
67
|
*/
|
|
73
|
-
export declare function turnsFromDeepAgentTranscriptMessages(response: unknown, conversationId: string):
|
|
68
|
+
export declare function turnsFromDeepAgentTranscriptMessages(response: unknown, conversationId: string): RestoredConversationTurn[];
|
|
69
|
+
/**
|
|
70
|
+
* DeepAgent transcript 中可恢复到聊天用户消息的附件元数据。
|
|
71
|
+
*/
|
|
72
|
+
export interface RestoredConversationUserAttachment {
|
|
73
|
+
type: 'file' | 'image';
|
|
74
|
+
name: string;
|
|
75
|
+
mimeType: string;
|
|
76
|
+
fileId?: string;
|
|
77
|
+
downloadUrl?: string;
|
|
78
|
+
url?: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* 携带 transcript 用户附件的工作台历史轮次。
|
|
82
|
+
*/
|
|
83
|
+
export type RestoredConversationTurn = ConversationTurn & {
|
|
84
|
+
userAttachments?: RestoredConversationUserAttachment[];
|
|
85
|
+
};
|
|
74
86
|
export declare function createConversationId(): string;
|
|
75
87
|
export declare function compactConversationTitle(value: string): string;
|
|
76
88
|
export declare function buildConversationTitle(planResult: PlanResponse, fallback: string): string;
|
|
@@ -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
|
|
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
|
|
8
|
+
export declare const CARD_RECOMMENDATION_FALLBACK_MESSAGE: string;
|
|
9
9
|
interface BuildFallbackRecommendationsInput {
|
|
10
10
|
queryResult?: Record<string, unknown>;
|
|
11
11
|
source?: unknown;
|
package/dist/internal/personal-workbench/lib/workbenchCardRecommendationReturnItemUpsert.d.ts
CHANGED
|
@@ -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
|
|
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;
|
package/dist/runtime/index.js
CHANGED