@fses/workbench-app 0.3.8 → 0.3.10

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 (27) hide show
  1. package/WORKBENCH-CLOSURE.json +12 -12
  2. package/dist/{WorkbenchCardCenterDrawer-ClILtOq1.js → WorkbenchCardCenterDrawer-CeH7HX5L.js} +2 -2
  3. package/dist/{WorkbenchDiagnosticsFooter-3yFRUgiy.js → WorkbenchDiagnosticsFooter-Bpd1oWL7.js} +1 -1
  4. package/dist/{WorkbenchDiagnosticsPage-B2QxfJ6d.js → WorkbenchDiagnosticsPage-U6SNTAbv.js} +1 -1
  5. package/dist/{Workspace-c1KUGFx3.js → Workspace-Ddy-6I46.js} +7818 -7791
  6. package/dist/{customCardCatalog-By8jCrf4.js → customCardCatalog-D_NgCKca.js} +1 -1
  7. package/dist/fses-workbench-app.js +2 -2
  8. package/dist/{index-DfuSursG.js → index-DhDmdkzy.js} +6 -5
  9. package/dist/internal/personal-workbench/components/workbench/WorkbenchStudio.vue.d.ts +3 -3
  10. package/dist/internal/personal-workbench/lib/actionSubmissionFollowUp.d.ts +15 -0
  11. package/dist/internal/personal-workbench/lib/deepAgentApi.d.ts +2 -0
  12. package/dist/runtime/conversation/workbenchChatMessageOrdering.d.ts +1 -0
  13. package/dist/runtime/deep-agent/deepAgentProcessGroups.d.ts +0 -5
  14. package/dist/runtime/deep-agent/deepAgentToolDisplayName.d.ts +6 -3
  15. package/dist/runtime/deep-agent/deepAgentToolMessages.d.ts +30 -0
  16. package/dist/runtime/index.js +1 -1
  17. package/dist/style.css +1 -1
  18. package/dist/{useWorkbenchRuntime-CtEXD1vZ.js → useWorkbenchRuntime-BV0oNt2a.js} +4900 -4794
  19. package/dist/version.d.ts +1 -1
  20. package/node_modules/@fses/ai-chat/dist/components/FsesAiChat.vue.d.ts +5 -0
  21. package/node_modules/@fses/ai-chat/dist/composables/types.d.ts +5 -0
  22. package/node_modules/@fses/ai-chat/dist/fses-ai-chat.js +4881 -4869
  23. package/node_modules/@fses/ai-chat/dist/fses-ai-chat.umd.cjs +17 -17
  24. package/node_modules/@fses/ai-chat/dist/style.css +1 -1
  25. package/node_modules/@fses/ai-chat/package.json +5 -5
  26. package/node_modules/@fses/workbench-card/package.json +1 -1
  27. package/package.json +3 -3
@@ -4,7 +4,7 @@ import "@fses/workbench-card";
4
4
  import "@fses/workbench-card/registry";
5
5
  import { WorkbenchBlockRenderer as se } from "@fses/workbench-card/renderers";
6
6
  import { s as ne, e as de } from "./normalizeWorkbenchExtensions-Ve5GcdIX.js";
7
- import { _ as ce } from "./index-DfuSursG.js";
7
+ import { _ as ce } from "./index-DhDmdkzy.js";
8
8
  import { X as ue, AlertCircle as pe, Check as me } from "lucide-vue-next";
9
9
  import { clsx as be } from "clsx";
10
10
  import { twMerge as fe } from "tailwind-merge";
@@ -1,8 +1,8 @@
1
- import { D as s, F as o, G as r, H as t, I as n, A as c, J as l, K as i, L as p, B as A, M as C, N as d, O as m, P as E, Q as u, R as g, S as h, T as R, U as W, V as _, X as k, Y as P, Z as S, $ as b, a0 as T, C as v, p as f, y as M, r as L, e as y, h as O, i as N, s as D, g as I, a1 as B, u as H, w as x } from "./index-DfuSursG.js";
1
+ import { D as s, F as o, G as r, H as t, I as n, A as c, J as l, K as i, L as p, B as A, M as C, N as d, O as m, P as E, Q as u, R as g, S as h, T as R, U as W, V as _, X as k, Y as P, Z as S, $ as b, a0 as T, C as v, p as f, y as M, r as L, e as y, h as O, i as N, s as D, g as I, a1 as B, u as H, w as x } from "./index-DhDmdkzy.js";
2
2
  import { WORKBENCH_APP_I18N_PROJECTS as K, resolveWorkbenchI18nProjects as F } from "./i18n/index.js";
3
3
  import { D as U, L as V, S as Y, j, k as z, a as X, m as q, n as J, o as Q, h as Z, g as $, f as ee, p as ae, q as se, s as oe, t as re, l as te, u as ne, v as ce, w as le, x as ie, y as pe, r as Ae, z as Ce } from "./cardFactory-Bmt-0aZg.js";
4
4
  import { c as me } from "./canvasFacade-DlebDEqi.js";
5
- import { D as ue, i as ge, j as he, k as Re, l as We, m as _e, n as ke, o as Pe, c as Se, a as be, p as Te, q as ve, e as fe, s as Me, t as Le, v as ye, w as Oe, x as Ne, y as De, z as Ie, A as Be, B as He, C as xe, E as we, F as Ke, G as Fe, H as Ge, I as Ue, J as Ve, K as Ye, L as je, M as ze, N as Xe, O as qe, P as Je, u as Qe, b as Ze, Q as $e, R as ea } from "./useWorkbenchRuntime-CtEXD1vZ.js";
5
+ import { D as ue, i as ge, j as he, k as Re, l as We, m as _e, n as ke, o as Pe, c as Se, a as be, p as Te, q as ve, e as fe, s as Me, t as Le, v as ye, w as Oe, x as Ne, y as De, z as Ie, A as Be, B as He, C as xe, E as we, F as Ke, G as Fe, H as Ge, I as Ue, J as Ve, K as Ye, L as je, M as ze, N as Xe, O as qe, P as Je, u as Qe, b as Ze, Q as $e, R as ea } from "./useWorkbenchRuntime-BV0oNt2a.js";
6
6
  import { W as sa, a as oa, b as ra, c as ta, d as na } from "./normalizeWorkbenchExtensions-Ve5GcdIX.js";
7
7
  export {
8
8
  ue as DEEP_AGENT_TOOL_DISPLAY_NAMES,
@@ -4,10 +4,10 @@ import { d as u, f as Ae, g as _e, h as Re, i as Ve } from "./cardFactory-Bmt-0a
4
4
  import { n as Ge, w as ze } from "./normalizeWorkbenchExtensions-Ve5GcdIX.js";
5
5
  import { W as Ce, a as Qe, c as je } from "./index-DkGYPLLJ.js";
6
6
  import { fetchEventSource as Ye } from "@microsoft/fetch-event-source";
7
- import { r as Je, e as Xe, d as Ze, f as et, g as tt, c as rt, a as nt, W as ot, h as st } from "./useWorkbenchRuntime-CtEXD1vZ.js";
7
+ import { r as Je, e as Xe, d as Ze, f as et, g as tt, c as rt, a as nt, W as ot, h as st } from "./useWorkbenchRuntime-BV0oNt2a.js";
8
8
  import "./canvasFacade-DlebDEqi.js";
9
9
  import { useRoute as at } from "vue-router";
10
- const it = "0.3.8", ce = "workbench-app-version";
10
+ const it = "0.3.10", ce = "workbench-app-version";
11
11
  function ct() {
12
12
  if (typeof document > "u" || document.querySelector(`meta[name="${ce}"]`)) return !1;
13
13
  const e = document.createElement("meta");
@@ -303,7 +303,7 @@ const F = /* @__PURE__ */ M({
303
303
  }, 8, ["adapters", "config", "extensions"]));
304
304
  }
305
305
  }), Ct = "workbench.builtin.card-center", Wt = "workbench.card-center", le = "workbench.card-center.drawer", vt = "workbench.card-center.open", dn = "workbench.card-center.insert-system-card", ln = "workbench.card-center.insert-custom-card", un = "workbench.card-center.config-dialog-change", St = Q(
306
- () => import("./WorkbenchCardCenterDrawer-ClILtOq1.js")
306
+ () => import("./WorkbenchCardCenterDrawer-CeH7HX5L.js")
307
307
  );
308
308
  function Pt() {
309
309
  return {
@@ -331,7 +331,7 @@ function Pt() {
331
331
  version: "1.0.0"
332
332
  };
333
333
  }
334
- const Tt = "workbench.optional.diagnostics", Nt = "workbench.diagnostics.route", Ot = "workbench.diagnostics.refresh", Dt = "workbench.diagnostics.refreshed", ue = Q(() => import("./WorkbenchDiagnosticsPage-B2QxfJ6d.js")), Mt = Q(() => import("./WorkbenchDiagnosticsFooter-3yFRUgiy.js"));
334
+ const Tt = "workbench.optional.diagnostics", Nt = "workbench.diagnostics.route", Ot = "workbench.diagnostics.refresh", Dt = "workbench.diagnostics.refreshed", ue = Q(() => import("./WorkbenchDiagnosticsPage-U6SNTAbv.js")), Mt = Q(() => import("./WorkbenchDiagnosticsFooter-Bpd1oWL7.js"));
335
335
  function Bt() {
336
336
  return {
337
337
  id: Tt,
@@ -1047,7 +1047,7 @@ const hn = /* @__PURE__ */ M({
1047
1047
  });
1048
1048
  const o = ze(r.extensions);
1049
1049
  Ve(t.adapters, t.config, o);
1050
- const s = Q(() => import("./Workspace-c1KUGFx3.js"));
1050
+ const s = Q(() => import("./Workspace-Ddy-6I46.js"));
1051
1051
  return (a, i) => (k(), V(J(s), {
1052
1052
  "embed-in-portal": t.embedInPortal
1053
1053
  }, {
@@ -1100,6 +1100,7 @@ function mn(e = {}) {
1100
1100
  };
1101
1101
  }
1102
1102
  const wr = [
1103
+ "followUpActions",
1103
1104
  "attachments",
1104
1105
  "cards",
1105
1106
  "cardRecommendationDraft",
@@ -107,11 +107,11 @@ declare function openWorkbenchHistory(): void;
107
107
  * @returns 无返回值。
108
108
  */
109
109
  declare function openWorkbenchSettings(): void;
110
- declare var __VLS_36: {}, __VLS_38: {};
110
+ declare var __VLS_37: {}, __VLS_39: {};
111
111
  type __VLS_Slots = {} & {
112
- 'topbar-leading'?: (props: typeof __VLS_36) => any;
112
+ 'topbar-leading'?: (props: typeof __VLS_37) => any;
113
113
  } & {
114
- 'utility-header-extra'?: (props: typeof __VLS_38) => any;
114
+ 'utility-header-extra'?: (props: typeof __VLS_39) => any;
115
115
  };
116
116
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
117
117
  setWorkbenchInputText: typeof setWorkbenchInputText;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @fileoverview 业务行动执行反馈仅展示正文,统一关闭实时和历史消息的后续操作按钮。
3
+ * @author seadon
4
+ * @created 2026-09-18
5
+ */
6
+ import type { ConversationTurn } from '@fses/workbench-app/types';
7
+ /**
8
+ * 已提交的业务行动不生成重试按钮,也不从失败正文推断后续操作。
9
+ * @param turn - 保存了工具结果的对话轮次。
10
+ * @returns 有执行反馈时返回空操作列表;其他消息保留既有行为。
11
+ */
12
+ export declare function actionSubmissionFollowUpActions(turn: Pick<ConversationTurn, 'processGroups'>): Array<{
13
+ label: string;
14
+ prompt: string;
15
+ }> | undefined;
@@ -29,6 +29,8 @@ export interface DeepAgentRunView {
29
29
  runId: string;
30
30
  threadId: string;
31
31
  status: string;
32
+ createdAt?: string;
33
+ updatedAt?: string;
32
34
  queueVersion?: string;
33
35
  resumeId?: string;
34
36
  eventsUrl?: string;
@@ -15,6 +15,7 @@ export interface WorkbenchChatMessageOrderController<TMessage extends WorkbenchC
15
15
  messages: TMessage[];
16
16
  }
17
17
  export interface WorkbenchChatStructuredMessageFields {
18
+ followUpActions?: unknown;
18
19
  attachments?: unknown;
19
20
  cards?: unknown;
20
21
  cardRecommendationDraft?: unknown;
@@ -1,8 +1,3 @@
1
- /**
2
- * @fileoverview DeepAgent 处理过程归约 - 将公开过程事件转换为会话过程树。
3
- * @author seadon
4
- * @created 2026-07-05
5
- */
6
1
  import type { ConversationProcessInvocationKind, ConversationProcessStatus, ConversationTurn } from '@fses/workbench-card/types';
7
2
  export type TerminalStatus = 'completed' | 'failed' | 'interrupted' | 'cancelled';
8
3
  interface BaseDeepAgentProcessUiEvent {
@@ -1,12 +1,15 @@
1
1
  /**
2
- * @fileoverview DeepAgent 工具中文展示名 - 为实时过程、最终回答和历史回显提供前端兜底标签。
2
+ * @fileoverview DeepAgent 工具国际化展示名 - 为实时过程、最终回答和历史回显提供当前语言的展示标签。
3
3
  * @author seadon
4
4
  * @created 2026-07-05
5
5
  */
6
+ /**
7
+ * 保持公开展示名表的字符串接口,延迟到读取时翻译,避免缓存初始化前或旧语言的文案。
8
+ */
6
9
  export declare const DEEP_AGENT_TOOL_DISPLAY_NAMES: Record<string, string>;
7
10
  /**
8
- * 获取 DeepAgent 工具的用户可见中文展示名。
11
+ * 获取 DeepAgent 工具的当前语言展示名。
9
12
  * @param toolName - 原始工具名。
10
- * @returns 中文展示名;未知工具返回原始工具名。
13
+ * @returns 当前语言展示名;未知工具返回原始工具名。
11
14
  */
12
15
  export declare function deepAgentToolDisplayName(toolName: string): string;
@@ -0,0 +1,30 @@
1
+ /** 与 i18n_messages.json 中的平台文案编号保持一致,平台文案优先于包内兜底。 */
2
+ export declare const DEEP_AGENT_CONTEXT_TOOL_MESSAGES: {
3
+ readonly discover_tool_capabilities: {
4
+ readonly key: "FWA.3b9a1791792000001";
5
+ readonly zh: "发现工具能力";
6
+ readonly en: "Discover tool capabilities";
7
+ readonly ja: "ツール機能を検索";
8
+ readonly id: "Temukan kemampuan alat";
9
+ };
10
+ readonly activate_tool_capabilities: {
11
+ readonly key: "FWA.3b9a1791792000002";
12
+ readonly zh: "激活工具能力";
13
+ readonly en: "Activate tool capabilities";
14
+ readonly ja: "ツール機能を有効化";
15
+ readonly id: "Aktifkan kemampuan alat";
16
+ };
17
+ readonly read_artifact: {
18
+ readonly key: "FWA.3b9a1791792000003";
19
+ readonly zh: "读取结果内容";
20
+ readonly en: "Read result content";
21
+ readonly ja: "結果の内容を読み取り";
22
+ readonly id: "Baca isi hasil";
23
+ };
24
+ };
25
+ /**
26
+ * 按当前工作台语言读取新增工具的本地文案。
27
+ * @param toolName - 原始工具名。
28
+ * @returns 本地化兜底;不属于新增工具时返回 undefined。
29
+ */
30
+ export declare function deepAgentToolFallbackLabel(toolName: string): string | undefined;
@@ -1,4 +1,4 @@
1
- import { W as o, c as r, a as t, u as a, b as c } from "../useWorkbenchRuntime-CtEXD1vZ.js";
1
+ import { W as o, c as r, a as t, u as a, b as c } from "../useWorkbenchRuntime-BV0oNt2a.js";
2
2
  export {
3
3
  o as WORKBENCH_RUNTIME_STORE_DEFINITION_KEY,
4
4
  r as createWorkbenchRuntimeScope,