@fses/workbench-app 0.3.6 → 0.3.8
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/{WorkbenchCardCenterDrawer-HJ0aLMoa.js → WorkbenchCardCenterDrawer-ClILtOq1.js} +3 -3
- package/dist/{WorkbenchDiagnosticsFooter-CnowGKmK.js → WorkbenchDiagnosticsFooter-3yFRUgiy.js} +1 -1
- package/dist/{WorkbenchDiagnosticsPage-Cr2NcLXT.js → WorkbenchDiagnosticsPage-B2QxfJ6d.js} +1 -1
- package/dist/{Workspace-Cfs67QRS.js → Workspace-c1KUGFx3.js} +4079 -4079
- package/dist/canvas/api/index.js +1 -1
- package/dist/{canvasFacade-ZFqB_i7z.js → canvasFacade-DlebDEqi.js} +1 -1
- package/dist/{cardFactory-D5dyYSC3.js → cardFactory-Bmt-0aZg.js} +345 -338
- package/dist/config/workbenchAppConfig.d.ts +14 -1
- package/dist/{customCardCatalog-DQcReAqL.js → customCardCatalog-By8jCrf4.js} +3 -3
- package/dist/extensions/index.js +1 -1
- package/dist/fses-workbench-app.js +5 -5
- package/dist/{index-oCa4LJJn.js → index-DfuSursG.js} +9 -8
- package/dist/internal/personal-workbench/extensions/runtimeExtensions.d.ts +6 -1
- package/dist/{normalizeWorkbenchExtensions-Ccv3n3fC.js → normalizeWorkbenchExtensions-Ve5GcdIX.js} +1 -1
- package/dist/runtime/conversation/workbenchChatMessageOrdering.d.ts +1 -0
- package/dist/runtime/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useWorkbenchRuntime-7mQAjEV9.js → useWorkbenchRuntime-CtEXD1vZ.js} +3544 -3534
- package/dist/version.d.ts +1 -1
- package/node_modules/@fses/ai-chat/dist/composables/types.d.ts +5 -0
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.js +869 -858
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.umd.cjs +13 -13
- package/node_modules/@fses/ai-chat/dist/style.css +1 -1
- package/node_modules/@fses/ai-chat/package.json +5 -5
- package/node_modules/@fses/workbench-card/package.json +1 -1
- package/package.json +3 -3
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { RoleId } from '@fses/workbench-card/types';
|
|
7
7
|
export interface WorkbenchAppAssetsConfig {
|
|
8
|
-
/** ECharts 模板静态资产 CDN base URL
|
|
8
|
+
/** ECharts 模板静态资产 CDN base URL,未配置时使用内置公共资源地址。 */
|
|
9
9
|
echartsTemplateCdnBaseUrl?: string;
|
|
10
10
|
}
|
|
11
11
|
export interface WorkbenchAppBrandConfig {
|
|
@@ -50,3 +50,16 @@ export interface WorkbenchAppConfig {
|
|
|
50
50
|
/** 包内 IO 迁移开关,默认走 legacy 兼容链路。 */
|
|
51
51
|
transportMode?: 'adapter' | 'legacy';
|
|
52
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* 工作台内置 ECharts 静态资源 CDN 地址。
|
|
55
|
+
*
|
|
56
|
+
* 脚手架发布后不再保证携带完整的 ECharts 模板目录,因此包内运行时必须有
|
|
57
|
+
* 一个可用的公共资源兜底;宿主仍可通过 `assets.echartsTemplateCdnBaseUrl` 覆盖。
|
|
58
|
+
*/
|
|
59
|
+
export declare const DEFAULT_ECHARTS_TEMPLATE_CDN_BASE_URL = "https://byteluck.oss-cn-beijing.aliyuncs.com/resources";
|
|
60
|
+
/**
|
|
61
|
+
* 解析工作台 ECharts 静态资源 CDN 地址。
|
|
62
|
+
* @param config - 当前工作台配置。
|
|
63
|
+
* @returns 宿主配置的非空地址,未配置时返回内置公共资源地址。
|
|
64
|
+
*/
|
|
65
|
+
export declare function resolveWorkbenchEchartsTemplateCdnBaseUrl(config?: WorkbenchAppConfig): string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as z, useAttrs as N, ref as _, computed as g, watch as G, openBlock as s, createElementBlock as d, Fragment as E, createElementVNode as n, mergeProps as H, unref as m, renderSlot as ee, createBlock as B, Teleport as Q, normalizeStyle as te, normalizeClass as X, createCommentVNode as A, toDisplayString as b, reactive as U, withModifiers as ae, createVNode as $, renderList as V, createTextVNode as re, withDirectives as O, vModelSelect as ie, vModelDynamic as le } from "vue";
|
|
2
|
-
import { d as t, e as oe } from "./cardFactory-
|
|
2
|
+
import { d as t, e as oe } from "./cardFactory-Bmt-0aZg.js";
|
|
3
3
|
import "@fses/workbench-card";
|
|
4
4
|
import "@fses/workbench-card/registry";
|
|
5
5
|
import { WorkbenchBlockRenderer as se } from "@fses/workbench-card/renderers";
|
|
6
|
-
import { s as ne, e as de } from "./normalizeWorkbenchExtensions-
|
|
7
|
-
import { _ as ce } from "./index-
|
|
6
|
+
import { s as ne, e as de } from "./normalizeWorkbenchExtensions-Ve5GcdIX.js";
|
|
7
|
+
import { _ as ce } from "./index-DfuSursG.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";
|
package/dist/extensions/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as s, a as T, b as A, c as R, d as n, n as o, w as a } from "../normalizeWorkbenchExtensions-
|
|
1
|
+
import { W as s, a as T, b as A, c as R, d as n, n as o, w as a } from "../normalizeWorkbenchExtensions-Ve5GcdIX.js";
|
|
2
2
|
export {
|
|
3
3
|
s as WORKBENCH_CUSTOM_CARD_CATALOG,
|
|
4
4
|
T as WORKBENCH_TEMPLATE_WEATHER_CAPABILITY_ID,
|
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
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";
|
|
2
2
|
import { WORKBENCH_APP_I18N_PROJECTS as K, resolveWorkbenchI18nProjects as F } from "./i18n/index.js";
|
|
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-
|
|
4
|
-
import { c as me } from "./canvasFacade-
|
|
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-
|
|
6
|
-
import { W as sa, a as oa, b as ra, c as ta, d as na } from "./normalizeWorkbenchExtensions-
|
|
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
|
+
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";
|
|
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,
|
|
9
9
|
ge as DEEP_AGENT_VISIBLE_PROGRESS_TEXTS,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./i18n/index.js";
|
|
2
2
|
import { toRefs as Fe, shallowReadonly as Y, inject as ye, defineComponent as M, provide as G, openBlock as k, createElementBlock as W, renderSlot as O, createElementVNode as D, normalizeClass as ie, normalizeStyle as q, withModifiers as He, unref as J, createCommentVNode as U, createVNode as T, Transition as $e, withCtx as H, shallowRef as re, onMounted as ke, watch as Ee, onBeforeUnmount as L, toDisplayString as Ke, createBlock as V, resolveDynamicComponent as ne, Fragment as qe, renderList as Ue, computed as Ie, defineAsyncComponent as Q, ref as xe, h as Le } from "vue";
|
|
3
|
-
import { d as u, f as Ae, g as _e, h as Re, i as Ve } from "./cardFactory-
|
|
4
|
-
import { n as Ge, w as ze } from "./normalizeWorkbenchExtensions-
|
|
3
|
+
import { d as u, f as Ae, g as _e, h as Re, i as Ve } from "./cardFactory-Bmt-0aZg.js";
|
|
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-
|
|
8
|
-
import "./canvasFacade-
|
|
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";
|
|
8
|
+
import "./canvasFacade-DlebDEqi.js";
|
|
9
9
|
import { useRoute as at } from "vue-router";
|
|
10
|
-
const it = "0.3.
|
|
10
|
+
const it = "0.3.8", 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-
|
|
306
|
+
() => import("./WorkbenchCardCenterDrawer-ClILtOq1.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-
|
|
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"));
|
|
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-
|
|
1050
|
+
const s = Q(() => import("./Workspace-c1KUGFx3.js"));
|
|
1051
1051
|
return (a, i) => (k(), V(J(s), {
|
|
1052
1052
|
"embed-in-portal": t.embedInPortal
|
|
1053
1053
|
}, {
|
|
@@ -1111,6 +1111,7 @@ const wr = [
|
|
|
1111
1111
|
"memoryCaptureDraft",
|
|
1112
1112
|
"planDraft",
|
|
1113
1113
|
"processInvocations",
|
|
1114
|
+
"processingTiming",
|
|
1114
1115
|
"processPreamble",
|
|
1115
1116
|
"queryResultTable",
|
|
1116
1117
|
"queryResultTables",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { Component } from 'vue';
|
|
7
7
|
import type { WorkbenchAppAdapters } from '../../../adapters/types';
|
|
8
|
-
import type
|
|
8
|
+
import { type WorkbenchAppConfig } from '../../../config/workbenchAppConfig';
|
|
9
9
|
import type { WorkbenchAppExtensions } from '../../../extensions';
|
|
10
10
|
/**
|
|
11
11
|
* 设置当前工作台扩展。
|
|
@@ -25,6 +25,11 @@ export declare function configureRuntimeHost(adapters: Partial<WorkbenchAppAdapt
|
|
|
25
25
|
export declare function runtimeAdapters(): Partial<WorkbenchAppAdapters>;
|
|
26
26
|
/** @returns 当前工作台配置。 */
|
|
27
27
|
export declare function runtimeConfig(): WorkbenchAppConfig;
|
|
28
|
+
/**
|
|
29
|
+
* 读取当前工作台 ECharts 静态资源 CDN 地址。
|
|
30
|
+
* @returns 宿主配置地址,未配置时返回包内公共资源兜底地址。
|
|
31
|
+
*/
|
|
32
|
+
export declare function runtimeEchartsTemplateCdnBaseUrl(): string;
|
|
28
33
|
/**
|
|
29
34
|
* 读取当前工作台扩展。
|
|
30
35
|
* @returns 当前扩展对象。
|
package/dist/{normalizeWorkbenchExtensions-Ccv3n3fC.js → normalizeWorkbenchExtensions-Ve5GcdIX.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as V, c as D, d as k } from "./cardFactory-
|
|
1
|
+
import { b as V, c as D, d as k } from "./cardFactory-Bmt-0aZg.js";
|
|
2
2
|
import { defineComponent as H, computed as A, ref as E, watch as G, onBeforeUnmount as j, openBlock as _, createElementBlock as w, createElementVNode as d, toDisplayString as f, createCommentVNode as W, normalizeClass as T } from "vue";
|
|
3
3
|
const q = "/workbench-card-previews/custom-cards";
|
|
4
4
|
function B(e) {
|
|
@@ -26,6 +26,7 @@ export interface WorkbenchChatStructuredMessageFields {
|
|
|
26
26
|
memoryCaptureDraft?: unknown;
|
|
27
27
|
planDraft?: unknown;
|
|
28
28
|
processInvocations?: unknown;
|
|
29
|
+
processingTiming?: unknown;
|
|
29
30
|
processPreamble?: unknown;
|
|
30
31
|
queryResultTable?: unknown;
|
|
31
32
|
queryResultTables?: unknown;
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as o, c as r, a as t, u as a, b as c } from "../useWorkbenchRuntime-
|
|
1
|
+
import { W as o, c as r, a as t, u as a, b as c } from "../useWorkbenchRuntime-CtEXD1vZ.js";
|
|
2
2
|
export {
|
|
3
3
|
o as WORKBENCH_RUNTIME_STORE_DEFINITION_KEY,
|
|
4
4
|
r as createWorkbenchRuntimeScope,
|