@sinm/kai 1.15.11 → 1.16.0
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/RELEASE_NOTES.md +31 -0
- package/dist-cli/kai-cli.js +5902 -2924
- package/dist-electron/main/plugin-host.js +101 -8
- package/dist-electron/renderer/assets/{ContextDraftStrip-v0MCibc3.js → ContextDraftStrip-DgGrWpQa.js} +3 -3
- package/dist-electron/renderer/assets/{desktop-overlay-reason-Cu5SZIyT.js → desktop-overlay-reason-CIrczlM4.js} +35 -19
- package/dist-electron/renderer/assets/{index-DjGE39la.js → index-Byy_48PP.js} +2619 -1697
- package/dist-electron/renderer/assets/{index-B11WwwbZ.css → index-C2oDt0EL.css} +1247 -660
- package/dist-electron/renderer/assets/{index-zrIhpURm.js → index-Ds9SVVR0.js} +2 -2
- package/dist-electron/renderer/assets/{index-BrOuZqkY.js → index-HFo3Rjsc.js} +5 -5
- package/dist-electron/renderer/assets/{localUrlCodec-DzEsXobc.js → localUrlCodec-BgpHB7et.js} +36 -3
- package/dist-electron/renderer/assets/{office-preview-C0w42o8_.js → office-preview-Bi474exi.js} +3 -3
- package/dist-electron/renderer/assets/{overlay-B2WhHya7.js → overlay-CVoNuaDV.js} +2 -2
- package/dist-electron/renderer/assets/{parser-D6IoZtdq.js → parser-Dpx0j1yO.js} +1 -1
- package/dist-electron/renderer/assets/{spreadsheet-jcraLZbB.js → spreadsheet-AxcoOBpQ.js} +3 -3
- package/dist-electron/renderer/index.html +4 -4
- package/dist-electron/renderer/office-preview.html +2 -2
- package/dist-electron/renderer/overlay.html +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./spreadsheet-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./spreadsheet-AxcoOBpQ.js","./preload-helper-DVzrZ_Op.js","./assets-tzxXyukA.js","./index-B5MYHOIO.js","./zoom-jYhmkcQX.js","./options-SsS0Y_ki.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import { _ as __vitePreload } from "./preload-helper-DVzrZ_Op.js";
|
|
3
3
|
import { D as DEFAULT_RENDERER_DEFINITIONS } from "./index-B5MYHOIO.js";
|
|
4
4
|
const spreadsheetDefinition = DEFAULT_RENDERER_DEFINITIONS.find((definition) => definition.id === "spreadsheet-openxml");
|
|
@@ -9,7 +9,7 @@ if (!spreadsheetDefinition || !dbfDefinition) {
|
|
|
9
9
|
const spreadsheetRendererDefinition = spreadsheetDefinition;
|
|
10
10
|
const dbfRendererDefinition = dbfDefinition;
|
|
11
11
|
const renderFileViewerSpreadsheet = (buffer, target, type, context) => __vitePreload(async () => {
|
|
12
|
-
const { default: renderSpreadsheet } = await import("./spreadsheet-
|
|
12
|
+
const { default: renderSpreadsheet } = await import("./spreadsheet-AxcoOBpQ.js").then((n) => n.s);
|
|
13
13
|
return { default: renderSpreadsheet };
|
|
14
14
|
}, true ? __vite__mapDeps([0,1,2,3,4,5]) : void 0, import.meta.url).then(({ default: renderSpreadsheet }) => renderSpreadsheet(buffer, target, type, context));
|
|
15
15
|
({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r as reactExports, j as jsxRuntimeExports, g as getTransport, f as resolveConnectionTarget, u as urlHostLabel, h as isBuiltinPreviewableExtension, n as normalizePreviewerExtension, d as describePluginPageOpenError, b as describePluginViewFailure, P as PluginViewHost, k as resolveLocalUrl, t as toLocalPathSegment, l as localHttpUrlToKaiUrl, m as buildDownloadUrl, o as buildOfficePreviewUrl } from "./desktop-overlay-reason-
|
|
2
|
-
import { c as createLucideIcon, S as SyntaxHighlighter, d as styles, u as useTranslation, e as subscribeComposerAvailability, f as getComposerBlockedReason, s as subscribePreviewSelectionDrafts, g as getPreviewSelectionDrafts, t as toast, M as MAX_PREVIEW_SELECTION_DRAFTS, h as buildPreviewSelectionDraft, i as appendPreviewSelectionDraft, j as genId, k as ID_TYPE, l as usePopoverMenu, b as clsx, A as AppTooltip, m as reactDomExports, n as TriangleAlert, X, o as telemetry, L as LoaderCircle, p as useLayerAbove, D as Download, q as useEnclosingLayer, v as subscribeClosableLayers, R as RefreshCw, P as Pencil, w as isAbsoluteLocalPath, x as usePluginDisplayName, y as pluginDisplayFallbackName, z as ExternalLink, B as useTheme, F as useSessionStore, G as useActiveView, H as useFilePreviewStore, J as usePluginPreviewerStore, K as useFileTreeStore, N as useRightDockLayout, O as useRightDockWidthBounds, Q as useResizablePanelWidth, U as useRightDockActiveView, V as useRightDockEntry, W as useRightDockHost, Y as useTextSelectionQuote, Z as useClosableLayer, _ as pushClosableLayer, $ as isPreviewableImage, a0 as isPreviewableAudio, a1 as isPreviewableVideo, a2 as Copy, a3 as copyToClipboard, a4 as Link, a5 as Globe, a6 as FolderOpen, a7 as PictureInPicture2, a8 as PanelRight, a9 as RightDockActions, aa as QuoteSelectionButton, ab as CircleAlert, ac as FileTypeIcon, ad as DiffViewer, ae as atomOneDark, af as githubGist, ag as MarkdownMessage, ah as ContextMenu, ai as Eye, C as CodeXml, aj as Crosshair, ak as ToolbarMoreMenu, al as TranslationDialog, am as ImageViewer, an as RightPanelShell, ao as RIGHT_DOCK_WIDTH_STORAGE_VERSION, ap as closeTopmostClosableLayer, aq as saveLocalFileAsWithToast, ar as Search, as as ChevronUp, at as ChevronDown, au as trackMessageActionClick, av as buildCodeSelectionDraft, aw as formatFileQuoteText, ax as appendQuoteDraft, ay as ClosableLayerProvider, az as ChevronRight, aA as Folder, aB as tryOpenWithSystemApp } from "./index-
|
|
3
|
-
import { K as KAI_LOCAL_URL_PREFIX, a as KAI_URL_SCHEME, O as OFFICE_PREVIEW_FORMATS } from "./localUrlCodec-
|
|
1
|
+
import { r as reactExports, j as jsxRuntimeExports, g as getTransport, f as resolveConnectionTarget, u as urlHostLabel, h as isBuiltinPreviewableExtension, n as normalizePreviewerExtension, d as describePluginPageOpenError, b as describePluginViewFailure, P as PluginViewHost, k as resolveLocalUrl, t as toLocalPathSegment, l as localHttpUrlToKaiUrl, m as buildDownloadUrl, o as buildOfficePreviewUrl } from "./desktop-overlay-reason-CIrczlM4.js";
|
|
2
|
+
import { c as createLucideIcon, S as SyntaxHighlighter, d as styles, u as useTranslation, e as subscribeComposerAvailability, f as getComposerBlockedReason, s as subscribePreviewSelectionDrafts, g as getPreviewSelectionDrafts, t as toast, M as MAX_PREVIEW_SELECTION_DRAFTS, h as buildPreviewSelectionDraft, i as appendPreviewSelectionDraft, j as genId, k as ID_TYPE, l as usePopoverMenu, b as clsx, A as AppTooltip, m as reactDomExports, n as TriangleAlert, X, o as telemetry, L as LoaderCircle, p as useLayerAbove, D as Download, q as useEnclosingLayer, v as subscribeClosableLayers, R as RefreshCw, P as Pencil, w as isAbsoluteLocalPath, x as usePluginDisplayName, y as pluginDisplayFallbackName, z as ExternalLink, B as useTheme, F as useSessionStore, G as useActiveView, H as useFilePreviewStore, J as usePluginPreviewerStore, K as useFileTreeStore, N as useRightDockLayout, O as useRightDockWidthBounds, Q as useResizablePanelWidth, U as useRightDockActiveView, V as useRightDockEntry, W as useRightDockHost, Y as useTextSelectionQuote, Z as useClosableLayer, _ as pushClosableLayer, $ as isPreviewableImage, a0 as isPreviewableAudio, a1 as isPreviewableVideo, a2 as Copy, a3 as copyToClipboard, a4 as Link, a5 as Globe, a6 as FolderOpen, a7 as PictureInPicture2, a8 as PanelRight, a9 as RightDockActions, aa as QuoteSelectionButton, ab as CircleAlert, ac as FileTypeIcon, ad as DiffViewer, ae as atomOneDark, af as githubGist, ag as MarkdownMessage, ah as ContextMenu, ai as Eye, C as CodeXml, aj as Crosshair, ak as ToolbarMoreMenu, al as TranslationDialog, am as ImageViewer, an as RightPanelShell, ao as RIGHT_DOCK_WIDTH_STORAGE_VERSION, ap as closeTopmostClosableLayer, aq as saveLocalFileAsWithToast, ar as Search, as as ChevronUp, at as ChevronDown, au as trackMessageActionClick, av as buildCodeSelectionDraft, aw as formatFileQuoteText, ax as appendQuoteDraft, ay as ClosableLayerProvider, az as ChevronRight, aA as Folder, aB as tryOpenWithSystemApp } from "./index-Byy_48PP.js";
|
|
3
|
+
import { K as KAI_LOCAL_URL_PREFIX, a as KAI_URL_SCHEME, O as OFFICE_PREVIEW_FORMATS } from "./localUrlCodec-BgpHB7et.js";
|
|
4
4
|
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
5
5
|
import "./preload-helper-DVzrZ_Op.js";
|
|
6
6
|
const PICKABLE_OFFICE_PREVIEW_FORMATS = [
|
|
7
7
|
"docx",
|
|
8
8
|
"pptx",
|
|
9
|
-
// `office-preview-pdf-region.ts`
|
|
9
|
+
// `office-preview-pdf-region.ts` 文件头)。它仍在这份清单里——清单回答的是「这个格式能不能指」,不回答「用哪种手势」。
|
|
10
10
|
"pdf",
|
|
11
11
|
// 表格:手势又不同(选区驱动,见 `office-preview-xlsx.ts` 文件头)。同样只回答「能不能指」。
|
|
12
12
|
// legacy `xls` 与 `csv` / `tsv` 共用同一个渲染器与同一条契约位,所以一起认领。
|
|
@@ -3773,7 +3773,7 @@ function FilePreviewDrawer() {
|
|
|
3773
3773
|
minWidth: MIN_DRAWER_WIDTH,
|
|
3774
3774
|
maxWidth: MAX_DRAWER_WIDTH,
|
|
3775
3775
|
maxViewportRatio: DRAWER_MAX_VIEWPORT_RATIO,
|
|
3776
|
-
// 同一个键换个承载面(并排 ⇄
|
|
3776
|
+
// 同一个键换个承载面(并排 ⇄ 覆盖)来读:口径版本也得跟上,否则覆盖档读不出版本化记忆、退回静态缺省——切档时面板会跳宽。
|
|
3777
3777
|
storageVersion: RIGHT_DOCK_WIDTH_STORAGE_VERSION
|
|
3778
3778
|
},
|
|
3779
3779
|
children: panelBody
|
package/dist-electron/renderer/assets/{localUrlCodec-DzEsXobc.js → localUrlCodec-BgpHB7et.js}
RENAMED
|
@@ -40,6 +40,7 @@ const IPC_PLUGIN_HOST_EVENT = "PLUGIN_HOST:EVENT";
|
|
|
40
40
|
const IPC_SESSION_ON_PLUGIN_ACTIVATE = "SESSION:ON_PLUGIN_ACTIVATE";
|
|
41
41
|
const IPC_PLUGIN_LIST_VIEWS = "PLUGIN:LIST_VIEWS";
|
|
42
42
|
const IPC_PLUGIN_LIST_PREVIEWERS = "PLUGIN:LIST_PREVIEWERS";
|
|
43
|
+
const IPC_PLUGIN_LIST_THREAD_STORE_PRESETS = "PLUGIN:LIST_THREAD_STORE_PRESETS";
|
|
43
44
|
const IPC_PLUGIN_PAGE_OPEN = "PLUGIN:PAGE_OPEN";
|
|
44
45
|
const IPC_PLUGIN_PAGE_CLOSE = "PLUGIN:PAGE_CLOSE";
|
|
45
46
|
const IPC_PLUGIN_PAGE_INVOKE = "PLUGIN:PAGE_INVOKE";
|
|
@@ -86,6 +87,9 @@ const IPC_GET_USAGE_DATA_MANAGEMENT = "GET_USAGE_DATA_MANAGEMENT";
|
|
|
86
87
|
const IPC_CLEAR_USAGE_STATISTICS = "CLEAR_USAGE_STATISTICS";
|
|
87
88
|
const IPC_GET_FREQUENT_PHRASES = "GET_FREQUENT_PHRASES";
|
|
88
89
|
const IPC_SETTINGS_GET_DATA_DIR = "SETTINGS:GET_DATA_DIR";
|
|
90
|
+
const IPC_SETTINGS_GET_THREAD_STORE_STATUS = "SETTINGS:GET_THREAD_STORE_STATUS";
|
|
91
|
+
const IPC_SETTINGS_SAVE_THREAD_STORE_SECRET = "SETTINGS:SAVE_THREAD_STORE_SECRET";
|
|
92
|
+
const IPC_SETTINGS_HAS_THREAD_STORE_SECRET = "SETTINGS:HAS_THREAD_STORE_SECRET";
|
|
89
93
|
const IPC_SETTINGS_SELECT_DATA_DIR = "SETTINGS:SELECT_DATA_DIR";
|
|
90
94
|
const IPC_SETTINGS_CHANGE_DATA_DIR = "SETTINGS:CHANGE_DATA_DIR";
|
|
91
95
|
const IPC_SETTINGS_OPEN_DATA_DIR = "SETTINGS:OPEN_DATA_DIR";
|
|
@@ -182,6 +186,8 @@ const IPC_GET_GROUP_MCP_SERVER_IDS = "GET_GROUP_MCP_SERVER_IDS";
|
|
|
182
186
|
const IPC_UPDATE_GROUP_MCP_SERVER_IDS = "UPDATE_GROUP_MCP_SERVER_IDS";
|
|
183
187
|
const IPC_GET_GROUP_DISABLED_TOOLS = "GET_GROUP_DISABLED_TOOLS";
|
|
184
188
|
const IPC_UPDATE_GROUP_DISABLED_TOOLS = "UPDATE_GROUP_DISABLED_TOOLS";
|
|
189
|
+
const IPC_GET_GROUP_DISABLED_SKILL_NAMES = "GET_GROUP_DISABLED_SKILL_NAMES";
|
|
190
|
+
const IPC_UPDATE_GROUP_DISABLED_SKILL_NAMES = "UPDATE_GROUP_DISABLED_SKILL_NAMES";
|
|
185
191
|
const IPC_GET_AVAILABLE_TOOLS = "GET_AVAILABLE_TOOLS";
|
|
186
192
|
const IPC_LIST_GROUP_SESSIONS = "LIST_GROUP_SESSIONS";
|
|
187
193
|
const IPC_GET_GROUP_SESSION = "GET_GROUP_SESSION";
|
|
@@ -294,6 +300,10 @@ const IPC_REMOTE_ACCESS_STOP = "REMOTE_ACCESS_STOP";
|
|
|
294
300
|
const IPC_REMOTE_ACCESS_ROTATE = "REMOTE_ACCESS_ROTATE";
|
|
295
301
|
const IPC_REMOTE_ACCESS_STATUS = "REMOTE_ACCESS_STATUS";
|
|
296
302
|
const IPC_REMOTE_ACCESS_DISCONNECT_CLIENT = "REMOTE_ACCESS:DISCONNECT_CLIENT";
|
|
303
|
+
const IPC_A2A_STATUS = "A2A_STATUS";
|
|
304
|
+
const IPC_A2A_START = "A2A_START";
|
|
305
|
+
const IPC_A2A_STOP = "A2A_STOP";
|
|
306
|
+
const IPC_A2A_COPY_TOKEN = "A2A_COPY_TOKEN";
|
|
297
307
|
const IPC_SESSION_SELECT_PROJECT_DIRECTORY = "SESSION:SELECT_PROJECT_DIRECTORY";
|
|
298
308
|
const IPC_SESSION_LIST_RECENT_PROJECTS = "SESSION:LIST_RECENT_PROJECTS";
|
|
299
309
|
const IPC_SESSION_LIST_PINNED_PROJECTS = "SESSION:LIST_PINNED_PROJECTS";
|
|
@@ -460,6 +470,11 @@ const IPC_ENDPOINTS = {
|
|
|
460
470
|
updateGroupMcpServerIds: { channel: IPC_UPDATE_GROUP_MCP_SERVER_IDS, hosts: ALL_HOSTS },
|
|
461
471
|
getGroupDisabledTools: { channel: IPC_GET_GROUP_DISABLED_TOOLS, hosts: ALL_HOSTS },
|
|
462
472
|
updateGroupDisabledTools: { channel: IPC_UPDATE_GROUP_DISABLED_TOOLS, hosts: ALL_HOSTS },
|
|
473
|
+
getGroupDisabledSkillNames: { channel: IPC_GET_GROUP_DISABLED_SKILL_NAMES, hosts: ALL_HOSTS },
|
|
474
|
+
updateGroupDisabledSkillNames: {
|
|
475
|
+
channel: IPC_UPDATE_GROUP_DISABLED_SKILL_NAMES,
|
|
476
|
+
hosts: ALL_HOSTS
|
|
477
|
+
},
|
|
463
478
|
createGroupSession: { channel: IPC_CREATE_GROUP_SESSION, hosts: ALL_HOSTS },
|
|
464
479
|
forkSession: { channel: IPC_FORK_SESSION, hosts: ALL_HOSTS },
|
|
465
480
|
deleteGroupSession: { channel: IPC_DELETE_GROUP_SESSION, hosts: ALL_HOSTS },
|
|
@@ -613,6 +628,12 @@ const IPC_ENDPOINTS = {
|
|
|
613
628
|
remoteAccessRotate: { channel: IPC_REMOTE_ACCESS_ROTATE, hosts: IPC_ONLY },
|
|
614
629
|
remoteAccessStatus: { channel: IPC_REMOTE_ACCESS_STATUS, hosts: ALL_HOSTS },
|
|
615
630
|
remoteAccessDisconnectClient: { channel: IPC_REMOTE_ACCESS_DISCONNECT_CLIENT, hosts: IPC_ONLY },
|
|
631
|
+
// A2A:状态可跨宿主读(浏览器模式下界面也要能看到「开着没有」),起停只在宿主进程内。
|
|
632
|
+
a2aStatus: { channel: IPC_A2A_STATUS, hosts: ALL_HOSTS },
|
|
633
|
+
a2aStart: { channel: IPC_A2A_START, hosts: IPC_ONLY },
|
|
634
|
+
a2aStop: { channel: IPC_A2A_STOP, hosts: IPC_ONLY },
|
|
635
|
+
// 凭证与白名单也是宿主动作:浏览器形态的「界面」不代表本机的钥匙。
|
|
636
|
+
a2aCopyToken: { channel: IPC_A2A_COPY_TOKEN, hosts: IPC_ONLY },
|
|
616
637
|
checkForUpdate: { channel: IPC_UPDATE_CHECK, hosts: IPC_ONLY },
|
|
617
638
|
getUpdateVersionInfo: { channel: IPC_UPDATE_VERSION_INFO, hosts: IPC_ONLY },
|
|
618
639
|
downloadUpdate: { channel: IPC_UPDATE_DOWNLOAD, hosts: IPC_ONLY },
|
|
@@ -660,6 +681,12 @@ const IPC_ENDPOINTS = {
|
|
|
660
681
|
channelClearDeliveryRecovery: { channel: IPC_CHANNEL_CLEAR_DELIVERY_RECOVERY, hosts: IPC_ONLY },
|
|
661
682
|
channelAbandonArchivedRoute: { channel: IPC_CHANNEL_ABANDON_ARCHIVED_ROUTE, hosts: ALL_HOSTS },
|
|
662
683
|
getDataDirInfo: { channel: IPC_SETTINGS_GET_DATA_DIR, hosts: ALL_HOSTS },
|
|
684
|
+
// 只读一行「现在用的是哪一个存储」(`docs/specs/thread-store-http.md` §10.1 ②):远程客户端也要能看。
|
|
685
|
+
getThreadStoreStatus: { channel: IPC_SETTINGS_GET_THREAD_STORE_STATUS, hosts: ALL_HOSTS },
|
|
686
|
+
// 写凭据是敏感动作,但入口在设置页、由用户主动输入;待遇与 saveSettings 一致。
|
|
687
|
+
saveThreadStoreSecret: { channel: IPC_SETTINGS_SAVE_THREAD_STORE_SECRET, hosts: ALL_HOSTS },
|
|
688
|
+
// 令牌在不在:界面要说「已保存」还是「还没填」,不许靠「有没有配置」猜——猜错的后果是用户以为令牌在。
|
|
689
|
+
hasThreadStoreSecret: { channel: IPC_SETTINGS_HAS_THREAD_STORE_SECRET, hosts: ALL_HOSTS },
|
|
663
690
|
selectDataDir: { channel: IPC_SETTINGS_SELECT_DATA_DIR, hosts: ALL_HOSTS },
|
|
664
691
|
changeDataDir: { channel: IPC_SETTINGS_CHANGE_DATA_DIR, hosts: ALL_HOSTS },
|
|
665
692
|
// (否则远程客户端可以指定数据根里任意位置去弹 Finder)。语义与 `openExternalUrl` 同族。
|
|
@@ -752,23 +779,29 @@ const IPC_ENDPOINTS = {
|
|
|
752
779
|
onExternalApprovalEvent: { channel: IPC_EXTERNAL_APPROVAL_ON_EVENT, hosts: ALL_HOSTS },
|
|
753
780
|
// 「打开…」面板(应用菜单那一路):原生菜单只在桌面宿主上有 ⇒ IPC_ONLY。
|
|
754
781
|
onAppOpenPanelRequest: { channel: IPC_APP_OPEN_PANEL, hosts: IPC_ONLY },
|
|
755
|
-
// 台账清理(§2.15):纯本地写(读一条线的台账 + 写一条 thread 事件),不认识宿主特有能力
|
|
782
|
+
// 台账清理(§2.15):纯本地写(读一条线的台账 + 写一条 thread 事件),不认识宿主特有能力 ⇒`ALL_HOSTS`;
|
|
756
783
|
pruneSessionTodo: { channel: IPC_PRUNE_SESSION_TODO, hosts: ALL_HOSTS },
|
|
757
784
|
cloneObject: { channel: IPC_CLONE_OBJECT, hosts: ALL_HOSTS },
|
|
758
785
|
onCloneProgress: { channel: IPC_CLONE_PROGRESS, hosts: ALL_HOSTS },
|
|
759
786
|
getPluginHostStatus: { channel: IPC_PLUGIN_HOST_STATUS, hosts: ALL_HOSTS },
|
|
760
787
|
startPluginHost: { channel: IPC_PLUGIN_HOST_START, hosts: ALL_HOSTS },
|
|
761
788
|
onPluginHostStatus: { channel: IPC_PLUGIN_HOST_EVENT, hosts: ALL_HOSTS },
|
|
762
|
-
// 底栏项运行期快照(status-bar.md §5.1):拉取 +
|
|
789
|
+
// 底栏项运行期快照(status-bar.md §5.1):拉取 + 全量推送成对出现,推送为 main 合并节流后的终态,渲染层不 diff。
|
|
763
790
|
listStatusBarItems: { channel: IPC_PLUGIN_LIST_STATUS_ITEMS, hosts: ALL_HOSTS },
|
|
764
791
|
onStatusBarItems: { channel: IPC_PLUGIN_ON_STATUS_ITEMS, hosts: ALL_HOSTS },
|
|
792
|
+
// 底栏项点击(chrome 通道):请求-应答式 RPC,无推送半边。
|
|
765
793
|
invokeStatusItem: { channel: IPC_PLUGIN_INVOKE_STATUS_ITEM, hosts: ALL_HOSTS },
|
|
766
|
-
// 对象动作(菜单贡献点,decisions/plugin-context-menu.md §3/§6):条目由 renderer
|
|
794
|
+
// 对象动作(菜单贡献点,decisions/plugin-context-menu.md §3/§6):条目由 renderer 缓存(右键不跨进程取条目),调用只有选择器。
|
|
767
795
|
listPluginActions: { channel: IPC_PLUGIN_LIST_ACTIONS, hosts: ALL_HOSTS },
|
|
768
796
|
invokePluginAction: { channel: IPC_PLUGIN_INVOKE_ACTION, hosts: ALL_HOSTS },
|
|
769
797
|
listPluginViews: { channel: IPC_PLUGIN_LIST_VIEWS, hosts: ALL_HOSTS },
|
|
770
798
|
// 已装载插件的预览器数据面(plugin-previewer-isolation.md §5):同 ext 全部声明者 + 生效者。
|
|
771
799
|
listPluginPreviewers: { channel: IPC_PLUGIN_LIST_PREVIEWERS, hosts: ALL_HOSTS },
|
|
800
|
+
// 外部会话存储的地址预设(thread-store-http.md §3.2):已装载插件声明的静态地址,运行期不变。
|
|
801
|
+
listThreadStorePresets: {
|
|
802
|
+
channel: IPC_PLUGIN_LIST_THREAD_STORE_PRESETS,
|
|
803
|
+
hosts: ALL_HOSTS
|
|
804
|
+
},
|
|
772
805
|
openPluginPage: { channel: IPC_PLUGIN_PAGE_OPEN, hosts: ALL_HOSTS },
|
|
773
806
|
closePluginPage: { channel: IPC_PLUGIN_PAGE_CLOSE, hosts: ALL_HOSTS },
|
|
774
807
|
pluginPageInvoke: { channel: IPC_PLUGIN_PAGE_INVOKE, hosts: ALL_HOSTS },
|
package/dist-electron/renderer/assets/{office-preview-C0w42o8_.js → office-preview-Bi474exi.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DQKbw6RS.js","./preload-helper-DVzrZ_Op.js","./index-B5MYHOIO.js","./index-DJvBCnCx.js","./index-BOyfEjY-.js","./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DQKbw6RS.js","./preload-helper-DVzrZ_Op.js","./index-B5MYHOIO.js","./index-DJvBCnCx.js","./index-BOyfEjY-.js","./index-Ds9SVVR0.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import { _ as __vitePreload } from "./preload-helper-DVzrZ_Op.js";
|
|
3
|
-
import { O as OFFICE_PREVIEW_FORMATS, e as encodePathPreservingSlashes } from "./localUrlCodec-
|
|
3
|
+
import { O as OFFICE_PREVIEW_FORMATS, e as encodePathPreservingSlashes } from "./localUrlCodec-BgpHB7et.js";
|
|
4
4
|
const SHEET_PICK_CONTRACT = {
|
|
5
5
|
sheetName: "kaiSheetName",
|
|
6
6
|
range: "kaiSheetRange",
|
|
@@ -76,7 +76,7 @@ const loadRenderer = async (format) => {
|
|
|
76
76
|
return format === "ppt" ? renderFileViewerBinaryPresentation : renderFileViewerPresentation;
|
|
77
77
|
}
|
|
78
78
|
return (await __vitePreload(async () => {
|
|
79
|
-
const { renderFileViewerSpreadsheet } = await import("./index-
|
|
79
|
+
const { renderFileViewerSpreadsheet } = await import("./index-Ds9SVVR0.js");
|
|
80
80
|
return { renderFileViewerSpreadsheet };
|
|
81
81
|
}, true ? __vite__mapDeps([5,1,2]) : void 0, import.meta.url)).renderFileViewerSpreadsheet;
|
|
82
82
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as instance, a as installOverlayTransport, c as clientExports, j as jsxRuntimeExports, r as reactExports, d as describePluginPageOpenError, b as describePluginViewFailure, e as describeDesktopOverlayReason, P as PluginViewHost } from "./desktop-overlay-reason-
|
|
1
|
+
import { i as instance, a as installOverlayTransport, c as clientExports, j as jsxRuntimeExports, r as reactExports, d as describePluginPageOpenError, b as describePluginViewFailure, e as describeDesktopOverlayReason, P as PluginViewHost } from "./desktop-overlay-reason-CIrczlM4.js";
|
|
2
2
|
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
3
|
-
import "./localUrlCodec-
|
|
3
|
+
import "./localUrlCodec-BgpHB7et.js";
|
|
4
4
|
const shell = "_shell_n0fba_9";
|
|
5
5
|
const titleBar = "_titleBar_n0fba_24";
|
|
6
6
|
const grip = "_grip_n0fba_45";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./UTIF-CVZ0V0ma.js","./_commonjsHelpers-DWwsNxpa.js","./_commonjs-dynamic-modules-TGKdzP3c.js","./index-C0ieAyi1.js","./office-preview-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./UTIF-CVZ0V0ma.js","./_commonjsHelpers-DWwsNxpa.js","./_commonjs-dynamic-modules-TGKdzP3c.js","./index-C0ieAyi1.js","./office-preview-Bi474exi.js","./preload-helper-DVzrZ_Op.js","./localUrlCodec-BgpHB7et.js","./office-preview-D1GRjX_y.css","./parser-Dpx0j1yO.js","./jszip.min-CkAgz-ea.js","./index-B5MYHOIO.js","./assets-tzxXyukA.js","./zoom-jYhmkcQX.js","./options-SsS0Y_ki.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import { _ as __vitePreload } from "./preload-helper-DVzrZ_Op.js";
|
|
3
3
|
import { d as resolveFileViewerSpreadsheetWorkerUrl, r as resolveFileViewerRuntimeAssetBaseUrl } from "./assets-tzxXyukA.js";
|
|
4
4
|
import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, a as resolveFileViewerFitScale } from "./index-B5MYHOIO.js";
|
|
@@ -2617,7 +2617,7 @@ const resolveEVirtTableStyleText = (documentRef) => {
|
|
|
2617
2617
|
const loadEVirtTable = async (documentRef) => {
|
|
2618
2618
|
const documents = collectEVirtTableStyleDocuments(documentRef);
|
|
2619
2619
|
const stylesBeforeImport = new Set(collectStyleElements(documents));
|
|
2620
|
-
const module = await __vitePreload(() => import("./office-preview-
|
|
2620
|
+
const module = await __vitePreload(() => import("./office-preview-Bi474exi.js").then((n) => n.i), true ? __vite__mapDeps([4,5,6,7]) : void 0, import.meta.url);
|
|
2621
2621
|
const injectedStyles = collectStyleElements(documents).filter((style) => !stylesBeforeImport.has(style) && isEVirtTableStyleText(style.textContent || ""));
|
|
2622
2622
|
const injectedStyle = injectedStyles[injectedStyles.length - 1];
|
|
2623
2623
|
if (injectedStyle) {
|
|
@@ -2696,7 +2696,7 @@ class MainThreadSpreadsheetWorker {
|
|
|
2696
2696
|
}
|
|
2697
2697
|
async loadParser() {
|
|
2698
2698
|
if (!this.parserPromise) {
|
|
2699
|
-
this.parserPromise = __vitePreload(() => import("./parser-
|
|
2699
|
+
this.parserPromise = __vitePreload(() => import("./parser-Dpx0j1yO.js"), true ? __vite__mapDeps([8,9,1,2,10,5,11,12,13]) : void 0, import.meta.url);
|
|
2700
2700
|
}
|
|
2701
2701
|
const parser = await this.parserPromise;
|
|
2702
2702
|
if (!this.context) {
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>KAi</title>
|
|
7
|
-
<script type="module" crossorigin src="./assets/index-
|
|
7
|
+
<script type="module" crossorigin src="./assets/index-Byy_48PP.js"></script>
|
|
8
8
|
<link rel="modulepreload" crossorigin href="./assets/_commonjsHelpers-DWwsNxpa.js">
|
|
9
|
-
<link rel="modulepreload" crossorigin href="./assets/localUrlCodec-
|
|
10
|
-
<link rel="modulepreload" crossorigin href="./assets/desktop-overlay-reason-
|
|
9
|
+
<link rel="modulepreload" crossorigin href="./assets/localUrlCodec-BgpHB7et.js">
|
|
10
|
+
<link rel="modulepreload" crossorigin href="./assets/desktop-overlay-reason-CIrczlM4.js">
|
|
11
11
|
<link rel="modulepreload" crossorigin href="./assets/preload-helper-DVzrZ_Op.js">
|
|
12
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
12
|
+
<link rel="stylesheet" crossorigin href="./assets/index-C2oDt0EL.css">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
|
15
15
|
<div id="root"></div>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
/>
|
|
10
10
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
11
11
|
<title>KAi Office Preview</title>
|
|
12
|
-
<script type="module" crossorigin src="./assets/office-preview-
|
|
12
|
+
<script type="module" crossorigin src="./assets/office-preview-Bi474exi.js"></script>
|
|
13
13
|
<link rel="modulepreload" crossorigin href="./assets/preload-helper-DVzrZ_Op.js">
|
|
14
|
-
<link rel="modulepreload" crossorigin href="./assets/localUrlCodec-
|
|
14
|
+
<link rel="modulepreload" crossorigin href="./assets/localUrlCodec-BgpHB7et.js">
|
|
15
15
|
<link rel="stylesheet" crossorigin href="./assets/office-preview-D1GRjX_y.css">
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
cursor: default;
|
|
32
32
|
}
|
|
33
33
|
</style>
|
|
34
|
-
<script type="module" crossorigin src="./assets/overlay-
|
|
34
|
+
<script type="module" crossorigin src="./assets/overlay-CVoNuaDV.js"></script>
|
|
35
35
|
<link rel="modulepreload" crossorigin href="./assets/_commonjsHelpers-DWwsNxpa.js">
|
|
36
|
-
<link rel="modulepreload" crossorigin href="./assets/localUrlCodec-
|
|
37
|
-
<link rel="modulepreload" crossorigin href="./assets/desktop-overlay-reason-
|
|
36
|
+
<link rel="modulepreload" crossorigin href="./assets/localUrlCodec-BgpHB7et.js">
|
|
37
|
+
<link rel="modulepreload" crossorigin href="./assets/desktop-overlay-reason-CIrczlM4.js">
|
|
38
38
|
<link rel="stylesheet" crossorigin href="./assets/overlay-C9ghz5je.css">
|
|
39
39
|
</head>
|
|
40
40
|
<body>
|