@fses/workbench-app 0.2.17 → 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.
@@ -1,6 +1,6 @@
1
- import { D as s, k as o, l as r, m as t, g as n, o as c, q as i, t as l, h as p, u as C, v as A, x as m, y as g, z as E, A as d, B as _, i as u, p as R, e as P, r as S, a as T, c as h, d as M, s as L, b as v, C as y, w as W } from "./index-DEOR_GPc.js";
1
+ import { D as s, k as o, l as r, m as t, g as n, o as c, q as i, t as l, h as p, u as C, v as A, x as m, y as g, z as E, A as d, B as _, i as u, p as R, e as P, r as S, a as T, c as h, d as M, s as L, b as v, C as y, w as W } from "./index-D-WW3bXH.js";
2
2
  import { c as f } from "./canvasFacade-B8jYm_aO.js";
3
- import { D, c as N, d as O, e as B, f as I, g as x, h as w, i as H, j as F, k as G, l as K, m as U, n as V, o as z, p as Y, q as j, r as q, s as X, t as J, v as Z, w as Q, x as $, y as ee, z as ae, A as se, B as oe, C as re, E as te, F as ne, G as ce, H as ie, I as le, u as pe, a as Ce, J as Ae, K as me } from "./useWorkbenchRuntime-DDD22mdF.js";
3
+ import { D, c as N, d as O, e as B, f as I, g as x, h as w, i as H, j as F, k as G, l as K, m as U, n as V, o as z, p as Y, q as j, r as q, s as X, t as J, v as Z, w as Q, x as $, y as ee, z as ae, A as se, B as oe, C as re, E as te, F as ne, G as ce, H as ie, I as le, u as pe, a as Ce, J as Ae, K as me } from "./useWorkbenchRuntime-D_AtkXIX.js";
4
4
  import { D as Ee, L as de, S as _e, f as ue, g as Re, b as Pe, h as Se, i as Te, j as he, k as Me, m as Le, n as ve, l as ye, o as We, p as ke, q as fe, s as be, t as De, r as Ne, u as Oe } from "./cardFactory-DmEBcCf4.js";
5
5
  import { W as Ie, a as xe, b as we, c as He, d as Fe } from "./workbenchCustomComponentRegistry-CWUPjCnJ.js";
6
6
  export {
@@ -1,9 +1,9 @@
1
1
  import { toRefs as ne, shallowReadonly as F, inject as oe, defineComponent as T, provide as ae, openBlock as w, createElementBlock as k, renderSlot as y, createElementVNode as C, normalizeClass as L, normalizeStyle as R, withModifiers as se, unref as _, createCommentVNode as P, createVNode as G, Transition as ie, withCtx as A, computed as de, createBlock as Y, defineAsyncComponent as ce } from "vue";
2
2
  import { d as o, e as le } from "./cardFactory-DmEBcCf4.js";
3
3
  import "./canvasFacade-B8jYm_aO.js";
4
- import { b as ue } from "./useWorkbenchRuntime-DDD22mdF.js";
4
+ import { b as ue } from "./useWorkbenchRuntime-D_AtkXIX.js";
5
5
  import "./workbenchCustomComponentRegistry-CWUPjCnJ.js";
6
- const fe = "0.2.17", U = "workbench-app-version";
6
+ const fe = "0.2.18", U = "workbench-app-version";
7
7
  function me() {
8
8
  if (typeof document > "u" || document.querySelector(`meta[name="${U}"]`)) return !1;
9
9
  const e = document.createElement("meta");
@@ -185,7 +185,7 @@ const be = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
185
185
  setup(e) {
186
186
  const r = e;
187
187
  le(r.adapters, r.config, r.extensions);
188
- const t = ce(() => import("./Workspace-r8ayksVF.js"));
188
+ const t = ce(() => import("./Workspace-JvnSC-w9.js"));
189
189
  return (n, a) => (w(), Y(_(t), {
190
190
  "embed-in-portal": r.embedInPortal
191
191
  }, {
@@ -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, ConversationTurn, LayoutConfig, WorkbenchIntentChannel, WorkbenchTemplate } from '@fses/workbench-app/types';
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: ConversationTurn[];
39
+ turns: RestoredConversationTurn[];
39
40
  activeTurnId?: string | null;
40
41
  activeConversationId?: string;
41
42
  conversations?: ConversationGroupSummary[];
@@ -65,7 +65,24 @@ export declare function createTurn(userPrompt: string): ConversationTurn;
65
65
  * @param conversationId - DeepAgent thread id。
66
66
  * @returns 可直接写入运行态 store 的历史 turns。
67
67
  */
68
- export declare function turnsFromDeepAgentTranscriptMessages(response: unknown, conversationId: string): ConversationTurn[];
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
+ };
69
86
  export declare function createConversationId(): string;
70
87
  export declare function compactConversationTitle(value: string): string;
71
88
  export declare function buildConversationTitle(planResult: PlanResponse, fallback: string): string;
@@ -1,4 +1,4 @@
1
- import { u as r, a as u } from "../useWorkbenchRuntime-DDD22mdF.js";
1
+ import { u as r, a as u } from "../useWorkbenchRuntime-D_AtkXIX.js";
2
2
  export {
3
3
  r as useWorkbenchRuntime,
4
4
  u as useWorkbenchRuntimeStore