@fses/workbench-app 0.2.12 → 0.2.14
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 +12 -12
- package/dist/{Workspace-DpiZ5Yap.js → Workspace-BJlQDkH9.js} +5574 -5483
- package/dist/canvas/api/index.js +1 -1
- package/dist/{canvasFacade-B0oy__da.js → canvasFacade-B2EHgdqA.js} +1 -1
- package/dist/{cardFactory-CoDF-zsR.js → cardFactory-BK3CA-Gn.js} +240 -189
- package/dist/config/workbenchAppConfig.d.ts +5 -0
- package/dist/extensions/index.js +1 -1
- package/dist/fses-workbench-app.js +52 -51
- package/dist/{index-BsT_8HEV.js → index-CBS49_nQ.js} +256 -281
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillTemplatePageTypes.d.ts +8 -0
- package/dist/internal/personal-workbench/lib/deepAgentApi.d.ts +14 -3
- package/dist/internal/personal-workbench/lib/deepAgentQueueState.d.ts +6 -0
- package/dist/internal/personal-workbench/lib/echartsTemplateAssets.d.ts +25 -0
- package/dist/internal/personal-workbench/lib/workbenchCardRecommendationReturnItemUpsert.d.ts +1 -0
- package/dist/internal/personal-workbench/lib/workbenchChatPendingTurn.d.ts +1 -1
- package/dist/runtime/deep-agent/deepAgentProcessGroups.d.ts +7 -0
- package/dist/runtime/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useWorkbenchRuntime-Ct0HRmOA.js → useWorkbenchRuntime-DLf_FgC7.js} +6305 -6211
- package/dist/version.d.ts +1 -1
- package/dist/{workbenchCustomComponentRegistry-6GHzavdM.js → workbenchCustomComponentRegistry-Bt94Lgko.js} +1 -1
- package/node_modules/@fses/ai-chat/dist/components/FsesAiChat.vue.d.ts +2 -0
- package/node_modules/@fses/ai-chat/dist/composables/useSystemEChartsIcon.d.ts +19 -2
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.js +4816 -4789
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.umd.cjs +16 -16
- package/node_modules/@fses/ai-chat/dist/plugin.d.ts +7 -2
- package/node_modules/@fses/ai-chat/dist/style.css +1 -1
- package/node_modules/@fses/ai-chat/package.json +3 -3
- package/node_modules/@fses/workbench-card/package.json +1 -1
- package/package.json +3 -3
package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillTemplatePageTypes.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ export interface FdeSkillTemplateRegionSpec {
|
|
|
22
22
|
export type FdeSkillTemplateRegionRenderMode = 'slot_card' | 'html_native_echarts';
|
|
23
23
|
/** 原生 HTML ECharts 数据补丁模式 */
|
|
24
24
|
export type FdeSkillTemplateNativeEchartsPatchMode = 'series_data' | 'option_patch';
|
|
25
|
+
/** 原生 HTML ECharts 分类轴转换:仅在映射显式声明时启用 */
|
|
26
|
+
export type FdeSkillTemplateNativeEchartsCategoryTransform = 'date_day';
|
|
25
27
|
/** 原生 HTML 模板中的运行态目标 */
|
|
26
28
|
export interface FdeSkillTemplateNativeTarget {
|
|
27
29
|
kind: 'echarts';
|
|
@@ -29,6 +31,12 @@ export interface FdeSkillTemplateNativeTarget {
|
|
|
29
31
|
dom_id: string;
|
|
30
32
|
/** 默认 series_data:只替换分类与系列数据,保留原样式 */
|
|
31
33
|
patch_mode?: FdeSkillTemplateNativeEchartsPatchMode;
|
|
34
|
+
/** 可选分类轴转换,例如将时间戳折成日期并按日汇总 */
|
|
35
|
+
category_transform?: FdeSkillTemplateNativeEchartsCategoryTransform;
|
|
36
|
+
/** 可选分类展示顺序;用于真实数据缺少 0 值分类时仍保持原模板口径 */
|
|
37
|
+
category_order?: string[];
|
|
38
|
+
/** true 时将 category_order 中缺失的分类补 0 */
|
|
39
|
+
category_fill_missing?: boolean;
|
|
32
40
|
}
|
|
33
41
|
/**
|
|
34
42
|
* MD 卡序号 → 模板区域映射。
|
|
@@ -26,15 +26,26 @@ export interface DeepAgentRunView {
|
|
|
26
26
|
runId: string;
|
|
27
27
|
threadId: string;
|
|
28
28
|
status: string;
|
|
29
|
+
resumeId?: string;
|
|
29
30
|
eventsUrl?: string;
|
|
30
|
-
currentInterrupt?:
|
|
31
|
-
error?:
|
|
31
|
+
currentInterrupt?: DeepAgentPublicInterrupt;
|
|
32
|
+
error?: DeepAgentPublicRunError;
|
|
32
33
|
queuePosition?: number;
|
|
33
34
|
startedAt?: string;
|
|
34
35
|
lastProgressAt?: string;
|
|
35
36
|
cancellingAt?: string;
|
|
36
37
|
terminationReason?: string;
|
|
37
38
|
}
|
|
39
|
+
export interface DeepAgentPublicInterrupt {
|
|
40
|
+
interruptId: string;
|
|
41
|
+
reason: string;
|
|
42
|
+
allowedDecisions: Array<'approve' | 'edit' | 'reject' | 'respond'>;
|
|
43
|
+
payload?: unknown;
|
|
44
|
+
}
|
|
45
|
+
export interface DeepAgentPublicRunError {
|
|
46
|
+
code: 'DEEP_AGENT_RUN_FAILED';
|
|
47
|
+
retryable: boolean;
|
|
48
|
+
}
|
|
38
49
|
export interface DeepAgentQueueRunInputSummary {
|
|
39
50
|
content: string;
|
|
40
51
|
clientTurnId?: string;
|
|
@@ -132,7 +143,7 @@ export declare function listDeepAgentMessages(context: DeepAgentClientContext, t
|
|
|
132
143
|
* @param payload - resume payload
|
|
133
144
|
* @returns resume 结果
|
|
134
145
|
*/
|
|
135
|
-
export declare function resumeDeepAgentRun(context: DeepAgentClientContext, threadId: string, runId: string, payload: ResumeDeepAgentRunPayload): Promise<
|
|
146
|
+
export declare function resumeDeepAgentRun(context: DeepAgentClientContext, threadId: string, runId: string, payload: ResumeDeepAgentRunPayload): Promise<DeepAgentRunView>;
|
|
136
147
|
/**
|
|
137
148
|
* 取消 run。
|
|
138
149
|
* @param context - 运行态身份上下文
|
|
@@ -58,6 +58,12 @@ export interface DeepAgentQueueSnapshot extends VersionedDeepAgentQueueSnapshot
|
|
|
58
58
|
active: DeepAgentQueueSnapshotRun | null;
|
|
59
59
|
pending: DeepAgentQueueSnapshotRun[];
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* 判断后端状态是否表示 run 已对用户终止、但仍在等待 worker 清理。
|
|
63
|
+
* @param status - 后端 run 状态。
|
|
64
|
+
* @returns 处于后端清理阶段时返回 true。
|
|
65
|
+
*/
|
|
66
|
+
export declare function isDeepAgentBackendCleanupStatus(status: string): boolean;
|
|
61
67
|
export interface DeepAgentQueueProjectedTurn {
|
|
62
68
|
id: string;
|
|
63
69
|
conversationId: string;
|
|
@@ -16,9 +16,34 @@ export interface EChartsTemplateDeployManifest {
|
|
|
16
16
|
* @returns manifest 条目。
|
|
17
17
|
*/
|
|
18
18
|
export declare function echartsTemplateDeployEntry(manifest: EChartsTemplateDeployManifest | null | undefined, exampleId: string): EChartsTemplateDeployManifestEntry | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* 清空 ECharts 模板 JSON 前端缓存,仅供测试使用。
|
|
21
|
+
* @returns 无返回值。
|
|
22
|
+
*/
|
|
23
|
+
export declare function clearEChartsTemplateJsonCacheForTest(): void;
|
|
19
24
|
/**
|
|
20
25
|
* 加载 ECharts 模板 JSON 资源。
|
|
21
26
|
* @param publicPath - public 下可访问的 JSON 路径。
|
|
22
27
|
* @returns JSON 资源内容。
|
|
23
28
|
*/
|
|
24
29
|
export declare function loadEChartsTemplateJson<T extends ProtocolConfigPayload | ProtocolDataPayload>(publicPath: string): Promise<T>;
|
|
30
|
+
/**
|
|
31
|
+
* 测试用 CDN URL 拼接入口。
|
|
32
|
+
* @param publicPath - 原 public path。
|
|
33
|
+
* @param baseUrl - CDN base URL。
|
|
34
|
+
* @returns CDN URL,未配置时返回 undefined。
|
|
35
|
+
*/
|
|
36
|
+
export declare function resolveEChartsTemplateCdnUrlForTest(publicPath: string, baseUrl: string | undefined): string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* 解析 ECharts 模板静态资产 URL。
|
|
39
|
+
* @param publicPath - 原 public path。
|
|
40
|
+
* @returns 配置 CDN 时返回 CDN URL,否则返回原 public path。
|
|
41
|
+
*/
|
|
42
|
+
export declare function resolveEChartsTemplateAssetUrl(publicPath: string): string;
|
|
43
|
+
/**
|
|
44
|
+
* 测试用静态资产 URL 拼接入口。
|
|
45
|
+
* @param publicPath - 原 public path。
|
|
46
|
+
* @param baseUrl - CDN base URL。
|
|
47
|
+
* @returns 配置 CDN 时返回 CDN URL,否则返回原 public path。
|
|
48
|
+
*/
|
|
49
|
+
export declare function resolveEChartsTemplateAssetUrlForTest(publicPath: string, baseUrl: string | undefined): string;
|
package/dist/internal/personal-workbench/lib/workbenchCardRecommendationReturnItemUpsert.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export interface UpsertCardRecommendationReturnItemInput {
|
|
|
16
16
|
conversationId?: string;
|
|
17
17
|
answerSectionKey?: string;
|
|
18
18
|
producer: 'card_module' | 'deep_agent_transcript' | 'standalone_query_result_api';
|
|
19
|
+
replaceExistingForSource?: boolean;
|
|
19
20
|
createdAt?: string;
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @created 2026-05-31
|
|
5
5
|
*/
|
|
6
6
|
import type { ConversationTurn } from '@fses/workbench-app/types';
|
|
7
|
-
export declare const WORKBENCH_CHAT_IDLE_TIMEOUT_MS =
|
|
7
|
+
export declare const WORKBENCH_CHAT_IDLE_TIMEOUT_MS = 180000;
|
|
8
8
|
export interface WorkbenchChatPendingTurnMatcherInput {
|
|
9
9
|
conversationId?: string;
|
|
10
10
|
input: string;
|
|
@@ -81,4 +81,11 @@ export declare function applyDeepAgentPreambleMessageToTurn(turn: ConversationTu
|
|
|
81
81
|
* @returns 更新后的会话轮次
|
|
82
82
|
*/
|
|
83
83
|
export declare function removeTemporaryPreambleProcessGroup(turn: ConversationTurn, sourceMessageId: string | undefined): ConversationTurn;
|
|
84
|
+
/**
|
|
85
|
+
* 删除由指定 assistant 消息生成的临时或正式过程组。
|
|
86
|
+
* @param turn - 当前会话轮次
|
|
87
|
+
* @param sourceMessageId - 被提升为 final 的消息 ID
|
|
88
|
+
* @returns 删除匹配过程组后的会话轮次
|
|
89
|
+
*/
|
|
90
|
+
export declare function removeDeepAgentMessageProcessGroups(turn: ConversationTurn, sourceMessageId: string | undefined): ConversationTurn;
|
|
84
91
|
export {};
|
package/dist/runtime/index.js
CHANGED