@fses/workbench-app 0.2.4 → 0.2.7

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.
@@ -1,6 +1,6 @@
1
- import { D as s, q as o, t as r, k as t, u as n, v as c, x as i, l, y as p, z as C, A, B as m, C as g, E as d, F as E, m as _, p as u, j as T, a as R, c as S, e as h, g as L, s as M, d as P, G as v, w as y } from "./index-xopzCjp-.js";
1
+ import { D as s, q as o, t as r, k as t, u as n, v as c, x as i, l, y as p, z as C, A, B as m, C as g, E as d, F as E, m as _, p as u, j as T, a as R, c as S, e as h, g as L, s as M, d as P, G as v, w as y } from "./index-DmTR4aQo.js";
2
2
  import { c as W } from "./canvasFacade-B0oy__da.js";
3
- import { D as b, c as D, d as N, e as O, f as B, g as I, h as x, i as w, j as H, k as F, l as G, m as K, n as U, o as V, p as j, q as z, r as Y, s as q, t as X, v as J, w as Z, x as Q, y as $, z as ee, A as ae, B as se, C as oe, E as re, F as te, G as ne, H as ce, u as ie, a as le, I as pe, J as Ce } from "./useWorkbenchRuntime-Bn92SaQG.js";
3
+ import { D as b, c as D, d as N, e as O, f as B, g as I, h as x, i as w, j as H, k as F, l as G, m as K, n as U, o as V, p as j, q as z, r as Y, s as q, t as X, v as J, w as Z, x as Q, y as $, z as ee, A as ae, B as se, C as oe, E as re, F as te, G as ne, H as ce, u as ie, a as le, I as pe, J as Ce } from "./useWorkbenchRuntime-Tx5rfwuD.js";
4
4
  import { D as me, L as ge, S as de, d as Ee, e as _e, b as ue, f as Te, g as Re, h as Se, i as he, j as Le, k as Me, l as Pe, m as ve, p as ye, n as ke, o as We, q as fe, r as be, s as De } from "./cardFactory-CoDF-zsR.js";
5
5
  import { W as Oe, a as Be, b as Ie, c as xe, d as we } from "./workbenchCustomComponentRegistry-6GHzavdM.js";
6
6
  export {
@@ -1,6 +1,6 @@
1
1
  import { toRefs as te, shallowReadonly as W, inject as oe, defineComponent as E, provide as ae, openBlock as b, createElementBlock as k, renderSlot as g, createElementVNode as A, normalizeClass as q, normalizeStyle as R, withModifiers as se, createCommentVNode as P, createVNode as z, Transition as ie, withCtx as w, computed as de, createBlock as K, defineAsyncComponent as ce, unref as le } from "vue";
2
2
  import "./canvasFacade-B0oy__da.js";
3
- import { b as ue } from "./useWorkbenchRuntime-Bn92SaQG.js";
3
+ import { b as ue } from "./useWorkbenchRuntime-Tx5rfwuD.js";
4
4
  import "./cardFactory-CoDF-zsR.js";
5
5
  import "./workbenchCustomComponentRegistry-6GHzavdM.js";
6
6
  const G = Symbol("workbench-app-context");
@@ -197,7 +197,7 @@ const ir = /* @__PURE__ */ E({
197
197
  setup(e) {
198
198
  const r = e;
199
199
  Se(r.adapters, r.config, r.extensions);
200
- const n = ce(() => import("./Workspace-CIfCreXf.js"));
200
+ const n = ce(() => import("./Workspace-DxdpxwWi.js"));
201
201
  return (t, o) => (b(), K(le(n), {
202
202
  "embed-in-portal": r.embedInPortal
203
203
  }, {
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @fileoverview FDE Skill 模板原生 ECharts 补丁 - 将真实协议数据注入原 HTML 图表
3
+ * @author seadon
4
+ * @created 2026-08-16
5
+ */
6
+ import type { FdeSkillCardIntent } from './fdeSkillCardTypes';
7
+ import type { FdeSkillTemplateNativeEchartsPatch, FdeSkillTemplateRegionMapping } from './fdeSkillTemplatePageTypes';
8
+ /**
9
+ * 归一模板区域渲染模式。
10
+ * @param mapping - 区域映射。
11
+ * @returns 渲染模式。
12
+ */
13
+ export declare function resolveFdeSkillTemplateRegionRenderMode(mapping: FdeSkillTemplateRegionMapping): 'slot_card' | 'html_native_echarts';
14
+ /**
15
+ * 判断映射是否为原生 HTML ECharts 数据注入模式。
16
+ * @param mapping - 区域映射。
17
+ * @returns 是否 native ECharts。
18
+ */
19
+ export declare function isFdeSkillTemplateNativeEchartsMapping(mapping: FdeSkillTemplateRegionMapping): boolean;
20
+ /**
21
+ * 根据模板页和已刷新卡片构建原生 ECharts 数据补丁。
22
+ * @param manifest - 当前模板页协议。
23
+ * @returns ECharts 补丁列表。
24
+ */
25
+ export declare function buildFdeSkillTemplateNativeEchartsPatches(manifest: {
26
+ mappings: FdeSkillTemplateRegionMapping[];
27
+ cards: FdeSkillCardIntent[];
28
+ }): FdeSkillTemplateNativeEchartsPatch[];
@@ -18,6 +18,18 @@ export interface FdeSkillTemplateRegionSpec {
18
18
  content_kind?: FdeSkillTemplateRegionContentKind;
19
19
  size?: 'sm' | 'md' | 'lg';
20
20
  }
21
+ /** 模板区域渲染模式:默认 slot_card 保持旧行为 */
22
+ export type FdeSkillTemplateRegionRenderMode = 'slot_card' | 'html_native_echarts';
23
+ /** 原生 HTML ECharts 数据补丁模式 */
24
+ export type FdeSkillTemplateNativeEchartsPatchMode = 'series_data' | 'option_patch';
25
+ /** 原生 HTML 模板中的运行态目标 */
26
+ export interface FdeSkillTemplateNativeTarget {
27
+ kind: 'echarts';
28
+ /** 原 HTML 内 ECharts 容器 DOM id */
29
+ dom_id: string;
30
+ /** 默认 series_data:只替换分类与系列数据,保留原样式 */
31
+ patch_mode?: FdeSkillTemplateNativeEchartsPatchMode;
32
+ }
21
33
  /**
22
34
  * MD 卡序号 → 模板区域映射。
23
35
  */
@@ -27,6 +39,33 @@ export interface FdeSkillTemplateRegionMapping {
27
39
  card_id: string;
28
40
  /** 默认 true:用文档标题更新区域标题文案(由壳/宿主约定节点) */
29
41
  update_title?: boolean;
42
+ /** 默认 slot_card:渲染内置卡片;html_native_echarts:保留原 HTML DOM,仅向原图表注入数据 */
43
+ render_mode?: FdeSkillTemplateRegionRenderMode;
44
+ /** render_mode=html_native_echarts 时的原生目标 */
45
+ native_target?: FdeSkillTemplateNativeTarget;
46
+ }
47
+ /** 传递给生成 Shell 的原生 ECharts 系列数据 */
48
+ export interface FdeSkillTemplateNativeEchartsSeriesPatch {
49
+ id?: string;
50
+ name?: string;
51
+ type_hint?: string;
52
+ data: unknown[];
53
+ data_pairs?: Array<{
54
+ name: string;
55
+ value: unknown;
56
+ }>;
57
+ }
58
+ /** 传递给生成 Shell 的原生 ECharts 补丁 */
59
+ export interface FdeSkillTemplateNativeEchartsPatch {
60
+ kind: 'echarts';
61
+ card_id: string;
62
+ region_no: number;
63
+ dom_id: string;
64
+ patch_mode: FdeSkillTemplateNativeEchartsPatchMode;
65
+ categories?: {
66
+ xAxis?: string[];
67
+ };
68
+ series: FdeSkillTemplateNativeEchartsSeriesPatch[];
30
69
  }
31
70
  export interface FdeSkillTemplateShellSpec {
32
71
  component: FdeSkillTemplateShellComponentName;
@@ -4,6 +4,13 @@ export interface DeepAgentRunMessagePayload {
4
4
  content: string;
5
5
  metadata?: Record<string, unknown>;
6
6
  }
7
+ export interface DeepAgentAttachmentPayload {
8
+ id?: string;
9
+ name?: string;
10
+ type?: string;
11
+ url?: string;
12
+ contentHandling?: 'never' | 'on_demand' | 'eager';
13
+ }
7
14
  export interface CreateDeepAgentRunPayload {
8
15
  workbenchId: string;
9
16
  resource_id?: string;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @fileoverview DeepAgent interrupt 前端投影 - 从公开 payload 提取可展示的问题。
3
+ * @author seadon
4
+ * @created 2026-08-15
5
+ */
6
+ /**
7
+ * 从 DeepAgent interrupt 公开 payload 提取全部合法问题。
8
+ * @param payload - interrupt 事件公开 payload。
9
+ * @param fallbackReason - 旧事件仅提供的原因文本。
10
+ * @returns 去除空白项后的问题列表;没有合法问题时返回原因兜底。
11
+ */
12
+ export declare function deepAgentInterruptQuestions(payload: unknown, fallbackReason: string): string[];
@@ -4,6 +4,8 @@
4
4
  * @created 2026-07-03
5
5
  */
6
6
  import type { CardRecommendationItem } from '@fses/workbench-app/types';
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";
7
9
  interface BuildFallbackRecommendationsInput {
8
10
  queryResult?: Record<string, unknown>;
9
11
  source?: unknown;
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import { type StoreDefinition } from 'pinia';
7
7
  import type { BusinessGroupContext } from '@fses/workbench-app/types';
8
- import { type CreateDeepAgentRunPayload } from '@workbench-internal/lib/deepAgentApi';
8
+ import { type CreateDeepAgentRunPayload, type DeepAgentAttachmentPayload } from '@workbench-internal/lib/deepAgentApi';
9
9
  import { type WorkbenchActionPayload, type WorkbenchChatRequestRefs } from '@workbench-internal/lib/workbenchApi';
10
10
  import type { SystemCardWorkbenchPromptParams } from '@workbench-internal/lib/workbenchSystemCardPrompt';
11
11
  import { type FdeWorkbenchAssetPackage } from '@workbench-internal/lib/fdeWorkbenchAssetPackage';
@@ -112,12 +112,7 @@ export interface BuildWorkbenchDeepAgentRunPayloadInput {
112
112
  childId: string;
113
113
  } | null;
114
114
  selectedSystemCard?: SystemCardWorkbenchPromptParams | null;
115
- attachments?: Array<{
116
- id?: string;
117
- name?: string;
118
- type?: string;
119
- url?: string;
120
- }>;
115
+ attachments?: DeepAgentAttachmentPayload[];
121
116
  actionPayload?: WorkbenchActionPayload | null;
122
117
  }
123
118
  /**
@@ -1,4 +1,4 @@
1
- import { u as r, a as u } from "../useWorkbenchRuntime-Bn92SaQG.js";
1
+ import { u as r, a as u } from "../useWorkbenchRuntime-Tx5rfwuD.js";
2
2
  export {
3
3
  r as useWorkbenchRuntime,
4
4
  u as useWorkbenchRuntimeStore