@deepseek-ai/libreoffice-kit 0.2.3-rc.4 → 0.2.4
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/README.md +18 -10
- package/README.zh.md +18 -10
- package/frame-forwarding/README.md +4 -2
- package/frame-forwarding/README.zh.md +4 -2
- package/frame-forwarding/include/dsh_frame_forwarding.h +1 -1
- package/frame-forwarding/prebuilds/darwin-arm64/frame-forwarding.node +0 -0
- package/frame-forwarding/prebuilds/darwin-arm64/libdsh_frame_forwarding_sdk.a +0 -0
- package/frame-forwarding/prebuilds/darwin-arm64/manifest.json +11 -11
- package/frame-forwarding/prebuilds/darwin-x64/frame-forwarding.node +0 -0
- package/frame-forwarding/prebuilds/darwin-x64/libdsh_frame_forwarding_sdk.a +0 -0
- package/frame-forwarding/prebuilds/darwin-x64/manifest.json +11 -11
- package/frame-forwarding/prebuilds/win32-arm64/dsh_frame_forwarding_sdk.lib +0 -0
- package/frame-forwarding/prebuilds/win32-arm64/frame-forwarding.node +0 -0
- package/frame-forwarding/prebuilds/win32-arm64/manifest.json +11 -11
- package/frame-forwarding/prebuilds/win32-x64/dsh_frame_forwarding_sdk.lib +0 -0
- package/frame-forwarding/prebuilds/win32-x64/frame-forwarding.node +0 -0
- package/frame-forwarding/prebuilds/win32-x64/manifest.json +11 -11
- package/frame-forwarding/receipt.json +7 -7
- package/frame-forwarding/scripts/metadata.mjs +2 -2
- package/frame-forwarding/sdk.json +2 -2
- package/frame-forwarding/src/receiver.cc +33 -8
- package/frame-forwarding/src/transport.cc +259 -73
- package/frame-forwarding/src/transport.h +15 -0
- package/frame-forwarding/verify.mjs +1 -1
- package/lib/cli.js +69 -58
- package/lib/editor.js +66 -23
- package/lib/index.js +69 -58
- package/lib/types/engine.d.ts +3 -4
- package/lib/types/native.d.ts +8 -19
- package/lib/types/runtime.d.ts +4 -1
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -8,17 +8,25 @@ The conversion and native preview entry points can run together in one process,
|
|
|
8
8
|
|
|
9
9
|
Binary `.doc`, `.xls`, and `.ppt` inputs must be OLE compound documents, such as Office 97–2003 files. Renamed RTF/HTML and `.wps` inputs are unsupported. `missingFonts` is empty for binary inputs because their font tables are interpreted by LibreOffice rather than the OOXML inspector.
|
|
10
10
|
|
|
11
|
-
The Node API version is independent of its platform engine versions. The 0.2.
|
|
11
|
+
The Node API version is independent of its platform engine versions. The 0.2.4 candidate selects 0.2.4 macOS and Windows ARM64/x64 engines, new 0.2.4 Linux glibc engines for ARM64 and x64, and a rebuilt portable 0.2.4 WASM engine. `ENGINE_VERSION` and `discoverRuntime().version` identify the Node API; `ENGINE_VERSIONS` lists the exact compatible engine versions. `discoverRuntime().nativePreview` distinguishes native preview support from PDF conversion; Linux engines convert and render only. Without a usable native engine the adapter selects a manually installed WASM engine; malformed installed packages reject.
|
|
12
12
|
|
|
13
13
|
## Installation and usage
|
|
14
14
|
|
|
15
|
-
Use Node.js 22.19.0 or newer. This command applies after 0.2.
|
|
15
|
+
Use Node.js 22.19.0 or newer. This command applies after 0.2.4 is published; unpublished candidates must be built and qualified from source first:
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
|
-
npm install @deepseek-ai/libreoffice-kit@0.2.
|
|
18
|
+
npm install @deepseek-ai/libreoffice-kit@0.2.4
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
A normal installation downloads at most one engine: the matching native engine on macOS and Windows (ARM64/x64) and on glibc Linux (ARM64/x64), and nothing on other hosts. The WASM engine is never installed automatically. Hosts without a usable native engine — musl Linux, Linux ARM32, FreeBSD, Windows ia32, a host whose glibc is below the native minimum, or an installation that omitted the native package — need it as a direct dependency with exactly the `ENGINE_VERSIONS.wasm` version. It installs on any host, including macOS and Windows, without `--force`:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
npm install @deepseek-ai/libreoffice-kit-wasm@0.2.4
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The adapter prefers a compatible installed native engine and otherwise selects the installed WASM engine. Without either, creation rejects with `unavailable`; its cause states why no native engine was usable and gives the install command above. A corrupt installed package rejects with `unavailable`. Conversion failures never switch engines.
|
|
28
|
+
|
|
29
|
+
Both Linux engines are built in manylinux_2_28 (glibc 2.28) with a statically linked C++ runtime; the host needs only glibc 2.28 or newer and zlib. They convert and render with raster only; `discoverRuntime().nativePreview` is false and `openDocument()` rejects. Neither Skia GPU backend nor shared-texture output is available. Linux ARM64 support is preliminary. The [previous CI build](https://github.com/deepseek-harness/libreoffice-kit/actions/runs/45762201299) compiled successfully but crashed on ordinary documents. The engine must be rebuilt with the UNO instruction-cache fix and qualified for conversion and rendering on ARM64 before release.
|
|
22
30
|
|
|
23
31
|
```js
|
|
24
32
|
import { createConverter } from '@deepseek-ai/libreoffice-kit';
|
|
@@ -35,7 +43,7 @@ try {
|
|
|
35
43
|
}
|
|
36
44
|
```
|
|
37
45
|
|
|
38
|
-
Native
|
|
46
|
+
Native engines are platform-filtered optional dependencies; WASM is an explicit consumer dependency. Application builders must verify the required engine is installed: native on macOS/Windows and glibc Linux on x64/ARM64, WASM on every other host they support. A missing required engine rejects `createConverter()` with `unavailable`.
|
|
39
47
|
|
|
40
48
|
Each converter serializes renders. A render creates a separate native process or Node worker and private profile, so fonts, document state, and failures do not leak into later renders. The deadline begins after acquiring its conversion slot. An `AbortSignal` cancels queued or active work; cancellation and `dispose()` await process or worker exit and scratch cleanup. Disposed converters reject further work.
|
|
41
49
|
|
|
@@ -82,9 +90,9 @@ Native document loading sends owned bytes over the helper's stdin into a seekabl
|
|
|
82
90
|
|
|
83
91
|
When migrating from 0.1.3 to the 0.2.0 preview, update the Node adapter and its exact platform engines together; engines from 0.1.3 cannot serve the new editor startup options. Existing conversion calls keep their behavior, while editor calls that need the previous CPU path must set `renderBackend: "raster"`; omission now selects `"auto"`. Opt into `graphite` when opening a desktop document and retain the same shared receiver attachment, input ordering and release responsibilities. Changing backends requires a new process: export the current in-memory snapshot, open its replacement with `renderBackend: "raster"` before closing the old editor, and restore the view in the owner. The snapshot preserves document content, not the old undo/redo stack or running slideshow state. If export or replacement initialization fails, retain the old editor and its unsaved document.
|
|
84
92
|
|
|
85
|
-
Devices without a usable Graphite backend reject initialization; Linux
|
|
93
|
+
Devices without a usable Graphite backend reject initialization; the Linux native engine supports raster only, and requesting shared output from it fails at connection with a `frame-forwarding-unavailable` error while raster pixel replies over stdio work normally. Borrowed WebGPU objects remain in the native document process; no device is passed through Node or a browser. Dawn manages GPU submission and completion, while the native SDK manages shared access across processes, frame credits, and consumer release. Submitting a WebGPU queue alone does not mean a display consumer has finished using an image.
|
|
86
94
|
|
|
87
|
-
Opening requires editor protocol 4 and frame-forwarding protocol
|
|
95
|
+
Opening requires editor protocol 4 and frame-forwarding protocol 2 from the installed engine. A missing or incompatible protocol rejects initialization without selecting another engine.
|
|
88
96
|
|
|
89
97
|
`getSelection()` returns plain text or HTML for the active selection. Native JSON replies use `maxOutputBytes` with a 1 MiB minimum; a reply exceeding that budget rejects the operation while keeping the document open. Escape cancels selection even with modifiers and does not open native command popups.
|
|
90
98
|
|
|
@@ -112,7 +120,7 @@ By default the adapter locates engine packages with Node module resolution from
|
|
|
112
120
|
|
|
113
121
|
- `name` is the platform package (`@deepseek-ai/libreoffice-kit-<target>`) when the host has a native target, then `@deepseek-ai/libreoffice-kit-wasm` if WASM is selected.
|
|
114
122
|
- Return the absolute path of that package's `package.json` synchronously. A relative path, a missing path, a path that is not a file, or a non-string result is an error; it never falls back to WASM.
|
|
115
|
-
- To report that the native package is absent, throw an error whose `code` is `MODULE_NOT_FOUND`, as `require.resolve` does. WASM is then selected through the same resolver. Any other thrown value is an error.
|
|
123
|
+
- To report that the native package is absent, throw an error whose `code` is `MODULE_NOT_FOUND`, as `require.resolve` does. WASM is then selected through the same resolver. The same code for the WASM package reports that WASM is not installed; the adapter then rejects with an error naming the exact WASM install command, with the resolver's error as its `cause`. Any other thrown value is an error.
|
|
116
124
|
- The resolver alone decides whether its packages exist: the adapter does not probe its own installation for a package the resolver reports missing. Throw a different error to report a present but incomplete package.
|
|
117
125
|
- Converters, factories, and `discoverRuntime()` reject these errors as `ConversionError` with code `unavailable` and the original error as `cause`. `openDocument()` rejects with the original error, as it does for its other engine errors.
|
|
118
126
|
|
|
@@ -145,7 +153,7 @@ Native conversion writes missing-family choices into its private LibreOffice pro
|
|
|
145
153
|
|
|
146
154
|
Node WASM image downscaling uses LibreOffice's CPU image filter. Text layout, font matching, and PDF serialization are CPU work as well.
|
|
147
155
|
|
|
148
|
-
For reproducible comparisons, use identical documents, fonts, DPI, and limits; WASM installations
|
|
156
|
+
For reproducible comparisons, use identical documents, fonts, DPI, and limits; WASM installations add the WASM package explicitly and omit the native package. Report engine startup together with conversion time; every render starts a fresh engine. The WASM assets and platform payloads carry their source, license, and integrity manifests.
|
|
149
157
|
|
|
150
158
|
## Source and license
|
|
151
159
|
|
|
@@ -158,7 +166,7 @@ This package is licensed under [MPL-2.0](LICENSE). The engine packages include `
|
|
|
158
166
|
- Font import and output limits do not bound all native memory or temporary disk use. Native platform engines may resolve fonts differently from WASM.
|
|
159
167
|
- Installations from npm use platform-specific optional packages. Applications that bundle engines must retain the complete selected package, including its resources and notices.
|
|
160
168
|
- Windows requires the Microsoft Visual C++ v14 Redistributable matching the Node.js architecture (x64 or ARM64); it is not bundled. Use ARM64 Node.js for the Windows ARM64 engine.
|
|
161
|
-
- The preview declares macOS and Windows
|
|
169
|
+
- The preview declares native engines for macOS and Windows on ARM64 and x64 and for glibc Linux on x64 and ARM64 (2.28 or newer, raster-only), plus a shared Node WASM engine that consumers install manually.
|
|
162
170
|
|
|
163
171
|
## Frame forwarding SDK
|
|
164
172
|
|
package/README.zh.md
CHANGED
|
@@ -8,17 +8,25 @@
|
|
|
8
8
|
|
|
9
9
|
二进制 `.doc`、`.xls`、`.ppt` 输入必须是 OLE 复合文档,例如 Office 97–2003 文件。不支持改后缀的 RTF/HTML 和 `.wps`。二进制输入的 `missingFonts` 为空,因为其字体表由 LibreOffice 读取,而不是由 OOXML 检查器读取。
|
|
10
10
|
|
|
11
|
-
Node API 与各平台引擎独立指定版本。0.2.
|
|
11
|
+
Node API 与各平台引擎独立指定版本。0.2.4 candidate 指定 0.2.4 的 macOS 与 Windows ARM64/x64 引擎、新增的 0.2.4 Linux ARM64/x64 glibc 引擎,并使用重新编译的通用 0.2.4 WASM 引擎。`ENGINE_VERSION` 和 `discoverRuntime().version` 表示 Node API 版本;`ENGINE_VERSIONS` 列出各平台兼容的精确引擎版本。`discoverRuntime().nativePreview` 区分原生预览与 PDF 转换能力;Linux 引擎只支持转换和渲染。没有可用的原生引擎时选择手动安装的 WASM 引擎;已安装的包损坏时拒绝。
|
|
12
12
|
|
|
13
13
|
## 安装与使用
|
|
14
14
|
|
|
15
|
-
使用 Node.js 22.19.0 或更新版本。0.2.
|
|
15
|
+
使用 Node.js 22.19.0 或更新版本。0.2.4 发布后可使用以下命令安装;未发布的候选包需先从源码构建并验证:
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
|
-
npm install @deepseek-ai/libreoffice-kit@0.2.
|
|
18
|
+
npm install @deepseek-ai/libreoffice-kit@0.2.4
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
正常安装最多下载一个引擎:在 macOS、Windows(ARM64/x64)以及 glibc Linux(ARM64/x64)上安装匹配的原生引擎,在其他宿主上不安装任何引擎。WASM 引擎永远不会被自动安装。没有可用原生引擎的宿主——musl Linux、Linux ARM32、FreeBSD、Windows ia32、glibc 低于原生引擎下限的宿主,或安装时省略了原生包——需要把它加为直接依赖,版本必须与 `ENGINE_VERSIONS.wasm` 精确一致。它在任何宿主(包括 macOS 和 Windows)上都能安装,无需 `--force`:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
npm install @deepseek-ai/libreoffice-kit-wasm@0.2.4
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
转换器优先使用已安装且兼容的原生引擎,否则选择已安装的 WASM 引擎。两者都没有时以 `unavailable` 拒绝创建;其 cause 说明为何没有可用的原生引擎,并给出上面的安装命令。已安装的包损坏时以 `unavailable` 拒绝。转换失败不会切换引擎。
|
|
28
|
+
|
|
29
|
+
两种 Linux 引擎都在 manylinux_2_28(glibc 2.28)中构建,C++ 运行时静态链接;宿主只需 glibc 2.28 或更新版本以及 zlib。它们仅支持转换和 raster 渲染,`discoverRuntime().nativePreview` 为 false,`openDocument()` 会拒绝;没有 Skia GPU 后端或共享纹理输出。Linux ARM64 为初步支持。[先前的 CI 构建](https://github.com/deepseek-harness/libreoffice-kit/actions/runs/45762201299) 编译成功,但处理普通文档时会崩溃。发布前须用修复 UNO 指令缓存刷新的配方重建,并在 ARM64 上验证转换和渲染。
|
|
22
30
|
|
|
23
31
|
```js
|
|
24
32
|
import { createConverter } from '@deepseek-ai/libreoffice-kit';
|
|
@@ -35,7 +43,7 @@ try {
|
|
|
35
43
|
}
|
|
36
44
|
```
|
|
37
45
|
|
|
38
|
-
|
|
46
|
+
原生引擎是按平台筛选的可选依赖;WASM 是消费者显式声明的依赖。应用构建方必须验证所需引擎已安装:macOS/Windows 和 glibc Linux(ARM64/x64)使用原生引擎,其他需要支持的宿主使用 WASM。必需引擎缺失时,`createConverter()` 以 `unavailable` 拒绝。
|
|
39
47
|
|
|
40
48
|
每个转换器串行执行渲染。一次渲染会创建独立的原生进程或 Node worker 以及私有配置目录,因此字体、文档状态和失败不会泄漏到后续渲染。截止时间在获得转换槽位之后开始计算。`AbortSignal` 可以取消排队中或进行中的工作;取消和 `dispose()` 都会等待进程或 worker 退出并完成临时文件清理。已释放的转换器会拒绝后续工作。
|
|
41
49
|
|
|
@@ -82,9 +90,9 @@ Windows 上,引擎可执行文件或程序目录路径达到 260 个字符时
|
|
|
82
90
|
|
|
83
91
|
从 0.1.3 迁移到 0.2.0 预览版时,需要同时更新 Node adapter 和其精确匹配的平台引擎;0.1.3 引擎不能处理新增的编辑器启动选项。现有转换调用保持原有行为;需要此前 CPU 路径的编辑器调用必须设置 `renderBackend: "raster"`,因为省略它现在会选择 `"auto"`。打开桌面文档时可显式选择 `graphite`,共享 receiver 连接、输入顺序和释放责任保持一致。切换后端需要新进程:先导出当前内存快照,在旧编辑器关闭前用 `renderBackend: "raster"` 打开替代进程,并由调用方恢复视图。快照保留文档内容,但不保留旧的撤销/重做历史或正在运行的放映。导出或替代进程初始化失败时,应保留旧编辑器及其未保存文档。
|
|
84
92
|
|
|
85
|
-
Graphite 后端不可用的设备会拒绝初始化;Linux
|
|
93
|
+
Graphite 后端不可用的设备会拒绝初始化;Linux 原生引擎仅支持 raster,向它请求共享输出时连接阶段报 `frame-forwarding-unavailable` 错误,stdio 上的 raster 像素回复正常。共享绘制借用的 WebGPU 对象留在原生文档进程内,不通过 Node 或浏览器传递 device。GPU 提交和完成由 Dawn 管理,跨进程共享访问、帧配额和消费者释放仍由原生 SDK 管理。单独提交 WebGPU queue 不表示显示消费者已使用完该图像。
|
|
86
94
|
|
|
87
|
-
打开文档要求已安装的引擎提供编辑器协议 4 和 frame-forwarding 协议
|
|
95
|
+
打开文档要求已安装的引擎提供编辑器协议 4 和 frame-forwarding 协议 2。缺失或不兼容的协议会使初始化失败,不会选择其他引擎。
|
|
88
96
|
|
|
89
97
|
`getSelection()` 返回当前选区的纯文本或 HTML。原生 JSON 回复以 `maxOutputBytes` 为预算,最低为 1 MiB;超出预算时只拒绝当前操作,文档保持打开。Escape 即使带有修饰键也只取消选择,不打开原生命令弹窗。
|
|
90
98
|
|
|
@@ -112,7 +120,7 @@ Node API 通过 `ENGINE_VERSION` 报告其发布版本;`ENGINE_VERSIONS` 独
|
|
|
112
120
|
|
|
113
121
|
- 宿主有原生目标时,`name` 先是平台包(`@deepseek-ai/libreoffice-kit-<target>`);选择 WASM 时为 `@deepseek-ai/libreoffice-kit-wasm`。
|
|
114
122
|
- 同步返回该包 `package.json` 的绝对路径。返回相对路径、不存在的路径、非文件路径或非字符串结果均视为错误,不会回退到 WASM。
|
|
115
|
-
- 要表示原生包不存在,抛出 `code` 为 `MODULE_NOT_FOUND` 的错误(与 `require.resolve` 一致);随后通过同一解析器选择 WASM
|
|
123
|
+
- 要表示原生包不存在,抛出 `code` 为 `MODULE_NOT_FOUND` 的错误(与 `require.resolve` 一致);随后通过同一解析器选择 WASM。对 WASM 包抛出同样的错误表示未安装 WASM,适配器随后以给出精确 WASM 安装命令的错误拒绝,并把解析器的错误作为其 `cause`。抛出其他值均视为错误。
|
|
116
124
|
- 包是否存在只由解析器决定:解析器报告缺失的包,适配器不会再检查自身安装位置。要报告包存在但不完整,请抛出其他错误。
|
|
117
125
|
- 转换器、factory 和 `discoverRuntime()` 以 code 为 `unavailable` 的 `ConversionError` 拒绝上述错误,原始错误保留在 `cause` 中。`openDocument()` 与其处理其他引擎错误的方式一致,直接以原始错误拒绝。
|
|
118
126
|
|
|
@@ -145,7 +153,7 @@ macOS 或 Windows 上省略 `fontDirectories` 时,默认发现还会检查 Mic
|
|
|
145
153
|
|
|
146
154
|
Node WASM 的图像降采样使用 LibreOffice 的 CPU 图像过滤器。文本排版、字体匹配和 PDF 序列化同样由 CPU 完成。
|
|
147
155
|
|
|
148
|
-
为获得可复现的比较结果,请使用相同的文档、字体、DPI 和限制;WASM
|
|
156
|
+
为获得可复现的比较结果,请使用相同的文档、字体、DPI 和限制;WASM 安装显式加入 WASM 包并省略原生包。报告时应把引擎启动时间和转换时间一起给出;每次渲染都会启动一个全新的引擎。WASM 资源和平台载荷都带有各自的源码、许可证和完整性清单。
|
|
149
157
|
|
|
150
158
|
## 源码与许可
|
|
151
159
|
|
|
@@ -158,7 +166,7 @@ Node WASM 的图像降采样使用 LibreOffice 的 CPU 图像过滤器。文本
|
|
|
158
166
|
- 字体导入和输出限制不能约束全部原生内存或临时磁盘使用。原生平台引擎的字体解析可能与 WASM 不同。
|
|
159
167
|
- npm 安装使用按平台选择的可选包。自行打包引擎的应用需要保留所选包的完整内容,包括资源和许可声明。
|
|
160
168
|
- Windows 需要系统安装与 Node.js 架构一致的 Microsoft Visual C++ v14 Redistributable(x64 或 ARM64);包中不捆绑该运行库。Windows ARM64 引擎需要使用 ARM64 Node.js。
|
|
161
|
-
- 预览版声明 macOS 和 Windows 的 ARM64、x64
|
|
169
|
+
- 预览版声明 macOS 和 Windows 的 ARM64、x64 原生引擎和 Linux x64 glibc 原生引擎(glibc 2.28 及以上,仅 raster),以及由消费者手动安装的共享 Node WASM 引擎。
|
|
162
170
|
|
|
163
171
|
## 帧转发 SDK
|
|
164
172
|
|
|
@@ -24,7 +24,9 @@ The byte budget reserves one surface per macOS allocation or declared Windows sa
|
|
|
24
24
|
|
|
25
25
|
A channel serves one producer connection at a time. Each `connected` event carries an increasing `connectionId` that the channel never reuses; every connection event names it. `send(connectionId, json)` queues a bounded control message for that connection without blocking Main on native I/O, and throws once that connection is no longer connected. Producer messages arrive as `message` events. While a producer is connected, other candidates are refused with `channel-busy`; a connected producer is never preempted, even when it stops responding. After it closes, fails or its process exits, the channel emits `disconnected` and drains: the connection keeps its frames, allocations, budget and GPU relay state until every delivered frame is released and its GPU work completes, then emits `drained`. During the drain one authenticated successor waits for its ready and further candidates are refused with `channel-busy`; the successor's own deadline and cancellation still apply, and a successor that gives up frees its place. Frame and allocation IDs belong to their connection, so late releases of an old connection do not affect a successor reusing the same IDs, and credit returns only to the connection that sent the frame. `drain-blocked` reports GPU work whose completion is unknown: its resources and budget stay retained and the drain waits without a timeout. `rejected` reports a refused candidate, and `failed` means the channel stopped accepting producers. `close()` withdraws the credential, refuses a waiting successor and ends the current connection. Frames discarded before delivery release their native resources; delivered frames still require explicit release after closure. The OS-reported peer process is checked per physical connection for packet origin and handle duplication only; it grants no access.
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Each connection may have at most 256 `message` and `frame` events pending delivery to JavaScript, counted together. Exceeding that limit disconnects only that producer. Its `disconnected` event carries the reason and follows the events already queued; the channel keeps listening on the same `tx`. Lifecycle events use the same FIFO but do not count toward the limit. This is a per-connection limit, not a cap on the receiver: lifecycle notices from successive short connections can accumulate while JavaScript is blocked. Refusals coalesce while a `rejected` notification is pending, so it is not a count of refused candidates.
|
|
28
|
+
|
|
29
|
+
Producers and receivers of protocol version 2 declare transferable channels in their handshake. Version 2 sends each packet as a 136-byte header followed only by its NUL-terminated text, instead of the fixed 16 KiB text area of version 1; a version 1 `hello` is still recognized and refused with `protocol-mismatch`. A receiver refuses a producer without that declaration with `transferable-tx-required`, and a producer refuses a receiver whose ready carries no connection ID, so builds that bind producers by PID cannot interoperate with these sources. A producer of another protocol version is refused with `protocol-mismatch`, naming both versions.
|
|
28
30
|
|
|
29
31
|
Producers also declare that every handle they name belongs to them. On Windows a frame carries a handle value in the producer's process, and the receiver duplicates it from that process with the access it opened when the producer connected; a value that names no handle of a live producer ends the connection without touching any receiver handle, and a producer that exited took its handles with it, so its connection ends as lost. A receiver refuses a producer without the declaration with `producer-local-handles-required`, and ready echoes the declarations the receiver accepted, so a producer refuses a receiver that would read its handle values as handles of its own. Builds of 0.2.2 and earlier therefore cannot interoperate with these sources in either direction. A receiver that sandboxes its producers can keep this scheme, since only the receiver needs access to the other process.
|
|
30
32
|
|
|
@@ -84,4 +86,4 @@ The public Kit package exports the Node SDK, SDK metadata, verifier, browser and
|
|
|
84
86
|
|
|
85
87
|
The browser painters/display, Electron adapter probe and generic texture ownership tests originate from DeepSeek Harness commit `21261bee8b9a820c62c9e42cade3ff644b747a29`, under `packages/client/frame-forwarding` and `apps/desktop`. Their unit tests are maintained with these implementations; DSH retains application integration tests.
|
|
86
88
|
|
|
87
|
-
The MIT SDK originated in DeepSeek Harness commit `4438b67c13d529c9882d89893ed5cd610ace11cc`. Its WebGPU adapter retains the Office fixes from LibreOffice Kit commit `2ae2de8c7e88df00e74ee538ebd5662f47c7a1df`. The Node binding and standalone C SDK share the source tree used by the Kit engine build. Protocol version
|
|
89
|
+
The MIT SDK originated in DeepSeek Harness commit `4438b67c13d529c9882d89893ed5cd610ace11cc`. Its WebGPU adapter retains the Office fixes from LibreOffice Kit commit `2ae2de8c7e88df00e74ee538ebd5662f47c7a1df`. The Node binding and standalone C SDK share the source tree used by the Kit engine build. Protocol version 2 changes only the packet encoding; the `capabilities` field of `sdk.json`, `receipt.json` and each prebuild manifest records `transferable-tx` and `producer-local-handles`, which distinguish current builds from earlier builds of the same protocol version.
|
|
@@ -24,7 +24,9 @@ shared-texture 的 `framePolicy` 默认为 `ordered`,保留 Office 瓦片等
|
|
|
24
24
|
|
|
25
25
|
通道同一时间只服务一个生产者连接。每个 `connected` 事件携带递增且永不复用的 `connectionId`,所有连接事件都标明该值。`send(connectionId, json)` 将控制消息加入该连接的有界队列,不让 Main 阻塞于原生 I/O;该连接不再处于连接状态时抛出异常。生产者消息以 `message` 事件到达。生产者在线时,其他候选连接以 `channel-busy` 被拒绝;在线生产者即使停止响应也不会被抢占。它关闭、失败或进程退出后,通道发出 `disconnected` 并进入排空:该连接保留其帧、分配、预算及 GPU 中继状态,直至所有已交付帧释放、GPU 工作完成,再发出 `drained`。排空期间仅一个通过认证的后继连接等待 ready,其余候选连接以 `channel-busy` 被拒绝;后继连接自身的截止时间和取消仍然生效,放弃等待的后继会让出位置。帧 ID 与分配 ID 归属各自连接,因此旧连接迟到的释放不影响复用相同 ID 的后继,信用只返还给发送该帧的连接。`drain-blocked` 表示 GPU 工作完成情况未知:其资源和预算继续保留,排空无超时地等待。`rejected` 表示候选连接被拒绝,`failed` 表示通道停止接受生产者。`close()` 撤回凭据、拒绝等待中的后继并结束当前连接。交付前丢弃的帧释放其原生资源;已交付帧在关闭后仍需显式释放。操作系统报告的对端进程仅按物理连接用于检查数据包来源和句柄复制,不授予任何访问权。
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
每个连接等待 JavaScript 处理的 `message` 和 `frame` 事件合计最多 256 条。超过上限时,只断开该生产者。`disconnected` 携带断开原因,排在已入队的事件之后;通道继续监听,后继生产者仍可使用同一个 `tx`。生命周期通知共用这个先进先出队列,但不占配额。上限按连接计算,不是整个接收端的上限:如果 JavaScript 阻塞,连续短连接的生命周期通知仍可能积压。已有一条 `rejected` 待处理时,后续拒绝会合并,因此不能用它统计被拒绝的连接数。
|
|
28
|
+
|
|
29
|
+
协议版本 2 的生产者与接收端在握手中声明可转交通道。版本 2 的每个包只发送 136 字节的定长包头和以 NUL 结尾的文本,不再像版本 1 那样固定传输 16 KiB 文本区;版本 1 的 `hello` 仍能被识别,并以 `protocol-mismatch` 拒绝。接收端以 `transferable-tx-required` 拒绝未声明该能力的生产者,生产者拒绝 ready 中不含连接 ID 的接收端,因此按 PID 绑定生产者的旧构建无法与这些源码互通。其他协议版本的生产者以 `protocol-mismatch` 被拒绝,拒绝原因写明双方版本。
|
|
28
30
|
|
|
29
31
|
生产者还声明它指名的每个句柄都属于自己。在 Windows 上,帧携带的是生产者进程中的句柄值,接收端用生产者连接时打开的访问权限从该进程复制它;值若不对应仍在运行的生产者的任何句柄,连接即结束,且不触碰接收端的任何句柄;已退出的生产者带走了自己的句柄,其连接以丢失结束。接收端以 `producer-local-handles-required` 拒绝未作此声明的生产者,ready 回显接收端接受的声明,因此生产者拒绝会把其句柄值当作自身句柄读取的接收端。0.2.2 及更早的构建因此在两个方向上都无法与这些源码互通。为生产者加沙箱的接收端可以沿用该方案,因为只有接收端需要访问另一进程。
|
|
30
32
|
|
|
@@ -84,4 +86,4 @@ Windows Vulkan 和 D3D12 消费者在表面获取期间,通过 `dsh_frame_forw
|
|
|
84
86
|
|
|
85
87
|
浏览器绘制器、display、Electron 适配器探测及通用纹理所有权测试源自 DeepSeek Harness 提交 `21261bee8b9a820c62c9e42cade3ff644b747a29` 的 `packages/client/frame-forwarding` 与 `apps/desktop`。单元测试随实现维护;DSH 保留产品集成测试。
|
|
86
88
|
|
|
87
|
-
MIT SDK 来自 DeepSeek Harness 提交 `4438b67c13d529c9882d89893ed5cd610ace11cc`,WebGPU 适配器保留 LibreOffice Kit 提交 `2ae2de8c7e88df00e74ee538ebd5662f47c7a1df` 的 Office 修复。Node 绑定、独立 C SDK 与 Kit 引擎使用同一源码目录。协议版本
|
|
89
|
+
MIT SDK 来自 DeepSeek Harness 提交 `4438b67c13d529c9882d89893ed5cd610ace11cc`,WebGPU 适配器保留 LibreOffice Kit 提交 `2ae2de8c7e88df00e74ee538ebd5662f47c7a1df` 的 Office 修复。Node 绑定、独立 C SDK 与 Kit 引擎使用同一源码目录。协议版本 2 只改变包的编码;`sdk.json`、`receipt.json` 与各预构建清单的 `capabilities` 字段记录 `transferable-tx` 与 `producer-local-handles`,用以区分当前构建与同一协议版本的早期构建。
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
#ifdef __cplusplus
|
|
6
6
|
extern "C" {
|
|
7
7
|
#endif
|
|
8
|
-
#define DSH_FRAME_FORWARDING_PROTOCOL_VERSION
|
|
8
|
+
#define DSH_FRAME_FORWARDING_PROTOCOL_VERSION 2
|
|
9
9
|
#define DSH_FRAME_FORWARDING_TEXT_CAPACITY 16384
|
|
10
10
|
/** Opaque connected producer. One thread may poll while another acquires, writes,
|
|
11
11
|
* submits or discards. Callers must serialize use of the same graphics context.
|
|
Binary file
|
|
Binary file
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"sources": {
|
|
3
|
-
"include/dsh_frame_forwarding.h": "
|
|
3
|
+
"include/dsh_frame_forwarding.h": "b6e9496d7bdf7061eef3ba1a5b88d98425e560d8c2766d34a868789b59cdad80",
|
|
4
4
|
"src/graphite-interop-internal.hxx": "012bba82e8e0e49f8ed9e62a357d61d5932d248582eafbcd914358d46711bfab",
|
|
5
5
|
"src/node-producer.cc": "69f4dd6499a7af1d0efce3aa78710e6b6d3564363db077d109eb09791cc565cb",
|
|
6
6
|
"src/producer-internal.h": "7ebe4756fa7d693567be6fbff3b25e6c29a3be474f0ac42fd51986ecdd14bc72",
|
|
7
|
-
"src/transport.h": "
|
|
8
|
-
"src/transport.cc": "
|
|
7
|
+
"src/transport.h": "3f48ffcd54a1d2e996f8a282862eba7d4db9de6d24b9ce139585045ea70cdc53",
|
|
8
|
+
"src/transport.cc": "53bdc911bcf6fee6c3880541e9225f18adc8a89280c537adccfe4bd2a9395bbf",
|
|
9
9
|
"src/relay-transport.inc": "3e96b42414c3397ed59fc3323ee29de040f9889c0c474c277e02fd077a92c607",
|
|
10
10
|
"src/producer.cc": "8e90a7d0ee173e2c62823d4962288581e34fb3567cf6e8942aa3fa9935dc0e21",
|
|
11
|
-
"src/receiver.cc": "
|
|
11
|
+
"src/receiver.cc": "aa618766b9df75009af366c1fc1729dbf0d5e5babd03b6bb7131f4897d804278",
|
|
12
12
|
"src/win-delay-load.cc": "7acf6bad7bdea695163cbf151286787eb0f9144bc53a7a137f3373888c54cb20",
|
|
13
13
|
"src/win-delay-load.LICENSE": "662a1b0115251cfb29c6aed0f221f8847bc49c6365d1c53a62c9f4bccc2489c3",
|
|
14
14
|
"src/graphite-interop.cc": "4f2de8e9ad4bd1aef9220c95d3660937980893f12af006116bed720e7dfaf013",
|
|
15
15
|
"CMakeLists.txt": "90e821d3718037a60d989b80bc156cb4cc267d66487139e81cf568cb8a54d344",
|
|
16
|
-
"sdk.json": "
|
|
16
|
+
"sdk.json": "a9890a2355e9692e50b2d6f407a3c630d031b7c6c2987acc57814c7884540f8e",
|
|
17
17
|
"scripts/build.mjs": "0824c5975106ce2101026d3c7f451643fe28e358b8bff644739fe7614e82c6fa",
|
|
18
|
-
"scripts/metadata.mjs": "
|
|
18
|
+
"scripts/metadata.mjs": "a3c139b6cc8b39ca8773c9138086e91fbb3535c610a47f329409f64f045013ac",
|
|
19
19
|
"scripts/source-identity.mjs": "e8360e59c4c83eeb4110d3a1c278d330f4a2d20b87edefb1f1e527dc17301602",
|
|
20
20
|
"scripts/build-webgpu.mjs": "919d40e78b7f5d3e2a7de6d5d2e46ca4a26bcce18f98abc1220c59f8cb79ebdd",
|
|
21
21
|
"webgpu-dependencies.json": "99fd5b4763f3621ffe72290ca5ddaa9c26f8d2404b54c9158f20f6fd29a403c2"
|
|
22
22
|
},
|
|
23
|
-
"sourceCommit": "
|
|
23
|
+
"sourceCommit": "fdf525165857e8af17d558b6ad858dbcd4e4b491",
|
|
24
24
|
"sourceDirty": false,
|
|
25
|
-
"version": "0.2.
|
|
26
|
-
"protocolVersion":
|
|
25
|
+
"version": "0.2.4",
|
|
26
|
+
"protocolVersion": 2,
|
|
27
27
|
"capabilities": [
|
|
28
28
|
"transferable-tx",
|
|
29
29
|
"producer-local-handles"
|
|
30
30
|
],
|
|
31
31
|
"platform": "darwin-arm64",
|
|
32
32
|
"files": {
|
|
33
|
-
"frame-forwarding.node": "
|
|
34
|
-
"libdsh_frame_forwarding_sdk.a": "
|
|
33
|
+
"frame-forwarding.node": "56623e130611b86d857dd0c107ed316b79341765d5b0bf5cc1715c111b3dcdae",
|
|
34
|
+
"libdsh_frame_forwarding_sdk.a": "9da7b4996ffbdb029d016a1d3436be610bd2227d740a62e76c4210a29235abff"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"sources": {
|
|
3
|
-
"include/dsh_frame_forwarding.h": "
|
|
3
|
+
"include/dsh_frame_forwarding.h": "b6e9496d7bdf7061eef3ba1a5b88d98425e560d8c2766d34a868789b59cdad80",
|
|
4
4
|
"src/graphite-interop-internal.hxx": "012bba82e8e0e49f8ed9e62a357d61d5932d248582eafbcd914358d46711bfab",
|
|
5
5
|
"src/node-producer.cc": "69f4dd6499a7af1d0efce3aa78710e6b6d3564363db077d109eb09791cc565cb",
|
|
6
6
|
"src/producer-internal.h": "7ebe4756fa7d693567be6fbff3b25e6c29a3be474f0ac42fd51986ecdd14bc72",
|
|
7
|
-
"src/transport.h": "
|
|
8
|
-
"src/transport.cc": "
|
|
7
|
+
"src/transport.h": "3f48ffcd54a1d2e996f8a282862eba7d4db9de6d24b9ce139585045ea70cdc53",
|
|
8
|
+
"src/transport.cc": "53bdc911bcf6fee6c3880541e9225f18adc8a89280c537adccfe4bd2a9395bbf",
|
|
9
9
|
"src/relay-transport.inc": "3e96b42414c3397ed59fc3323ee29de040f9889c0c474c277e02fd077a92c607",
|
|
10
10
|
"src/producer.cc": "8e90a7d0ee173e2c62823d4962288581e34fb3567cf6e8942aa3fa9935dc0e21",
|
|
11
|
-
"src/receiver.cc": "
|
|
11
|
+
"src/receiver.cc": "aa618766b9df75009af366c1fc1729dbf0d5e5babd03b6bb7131f4897d804278",
|
|
12
12
|
"src/win-delay-load.cc": "7acf6bad7bdea695163cbf151286787eb0f9144bc53a7a137f3373888c54cb20",
|
|
13
13
|
"src/win-delay-load.LICENSE": "662a1b0115251cfb29c6aed0f221f8847bc49c6365d1c53a62c9f4bccc2489c3",
|
|
14
14
|
"src/graphite-interop.cc": "4f2de8e9ad4bd1aef9220c95d3660937980893f12af006116bed720e7dfaf013",
|
|
15
15
|
"CMakeLists.txt": "90e821d3718037a60d989b80bc156cb4cc267d66487139e81cf568cb8a54d344",
|
|
16
|
-
"sdk.json": "
|
|
16
|
+
"sdk.json": "a9890a2355e9692e50b2d6f407a3c630d031b7c6c2987acc57814c7884540f8e",
|
|
17
17
|
"scripts/build.mjs": "0824c5975106ce2101026d3c7f451643fe28e358b8bff644739fe7614e82c6fa",
|
|
18
|
-
"scripts/metadata.mjs": "
|
|
18
|
+
"scripts/metadata.mjs": "a3c139b6cc8b39ca8773c9138086e91fbb3535c610a47f329409f64f045013ac",
|
|
19
19
|
"scripts/source-identity.mjs": "e8360e59c4c83eeb4110d3a1c278d330f4a2d20b87edefb1f1e527dc17301602",
|
|
20
20
|
"scripts/build-webgpu.mjs": "919d40e78b7f5d3e2a7de6d5d2e46ca4a26bcce18f98abc1220c59f8cb79ebdd",
|
|
21
21
|
"webgpu-dependencies.json": "99fd5b4763f3621ffe72290ca5ddaa9c26f8d2404b54c9158f20f6fd29a403c2"
|
|
22
22
|
},
|
|
23
|
-
"sourceCommit": "
|
|
23
|
+
"sourceCommit": "fdf525165857e8af17d558b6ad858dbcd4e4b491",
|
|
24
24
|
"sourceDirty": false,
|
|
25
|
-
"version": "0.2.
|
|
26
|
-
"protocolVersion":
|
|
25
|
+
"version": "0.2.4",
|
|
26
|
+
"protocolVersion": 2,
|
|
27
27
|
"capabilities": [
|
|
28
28
|
"transferable-tx",
|
|
29
29
|
"producer-local-handles"
|
|
30
30
|
],
|
|
31
31
|
"platform": "darwin-x64",
|
|
32
32
|
"files": {
|
|
33
|
-
"frame-forwarding.node": "
|
|
34
|
-
"libdsh_frame_forwarding_sdk.a": "
|
|
33
|
+
"frame-forwarding.node": "eaf325df20d6f821e6b32344fb283cf85f98d50a8dbd037bae2e09df7d7b1857",
|
|
34
|
+
"libdsh_frame_forwarding_sdk.a": "c8827c5152e3927c0d8373461a32bf812b9ed89f4e2c57f248e0c131616004d1"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"sources": {
|
|
3
|
-
"include/dsh_frame_forwarding.h": "
|
|
3
|
+
"include/dsh_frame_forwarding.h": "b6e9496d7bdf7061eef3ba1a5b88d98425e560d8c2766d34a868789b59cdad80",
|
|
4
4
|
"src/graphite-interop-internal.hxx": "012bba82e8e0e49f8ed9e62a357d61d5932d248582eafbcd914358d46711bfab",
|
|
5
5
|
"src/node-producer.cc": "69f4dd6499a7af1d0efce3aa78710e6b6d3564363db077d109eb09791cc565cb",
|
|
6
6
|
"src/producer-internal.h": "7ebe4756fa7d693567be6fbff3b25e6c29a3be474f0ac42fd51986ecdd14bc72",
|
|
7
|
-
"src/transport.h": "
|
|
8
|
-
"src/transport.cc": "
|
|
7
|
+
"src/transport.h": "3f48ffcd54a1d2e996f8a282862eba7d4db9de6d24b9ce139585045ea70cdc53",
|
|
8
|
+
"src/transport.cc": "53bdc911bcf6fee6c3880541e9225f18adc8a89280c537adccfe4bd2a9395bbf",
|
|
9
9
|
"src/relay-transport.inc": "3e96b42414c3397ed59fc3323ee29de040f9889c0c474c277e02fd077a92c607",
|
|
10
10
|
"src/producer.cc": "8e90a7d0ee173e2c62823d4962288581e34fb3567cf6e8942aa3fa9935dc0e21",
|
|
11
|
-
"src/receiver.cc": "
|
|
11
|
+
"src/receiver.cc": "aa618766b9df75009af366c1fc1729dbf0d5e5babd03b6bb7131f4897d804278",
|
|
12
12
|
"src/win-delay-load.cc": "7acf6bad7bdea695163cbf151286787eb0f9144bc53a7a137f3373888c54cb20",
|
|
13
13
|
"src/win-delay-load.LICENSE": "662a1b0115251cfb29c6aed0f221f8847bc49c6365d1c53a62c9f4bccc2489c3",
|
|
14
14
|
"src/graphite-interop.cc": "4f2de8e9ad4bd1aef9220c95d3660937980893f12af006116bed720e7dfaf013",
|
|
15
15
|
"CMakeLists.txt": "90e821d3718037a60d989b80bc156cb4cc267d66487139e81cf568cb8a54d344",
|
|
16
|
-
"sdk.json": "
|
|
16
|
+
"sdk.json": "a9890a2355e9692e50b2d6f407a3c630d031b7c6c2987acc57814c7884540f8e",
|
|
17
17
|
"scripts/build.mjs": "0824c5975106ce2101026d3c7f451643fe28e358b8bff644739fe7614e82c6fa",
|
|
18
|
-
"scripts/metadata.mjs": "
|
|
18
|
+
"scripts/metadata.mjs": "a3c139b6cc8b39ca8773c9138086e91fbb3535c610a47f329409f64f045013ac",
|
|
19
19
|
"scripts/source-identity.mjs": "e8360e59c4c83eeb4110d3a1c278d330f4a2d20b87edefb1f1e527dc17301602",
|
|
20
20
|
"scripts/build-webgpu.mjs": "919d40e78b7f5d3e2a7de6d5d2e46ca4a26bcce18f98abc1220c59f8cb79ebdd",
|
|
21
21
|
"webgpu-dependencies.json": "99fd5b4763f3621ffe72290ca5ddaa9c26f8d2404b54c9158f20f6fd29a403c2"
|
|
22
22
|
},
|
|
23
|
-
"sourceCommit": "
|
|
23
|
+
"sourceCommit": "fdf525165857e8af17d558b6ad858dbcd4e4b491",
|
|
24
24
|
"sourceDirty": false,
|
|
25
|
-
"version": "0.2.
|
|
26
|
-
"protocolVersion":
|
|
25
|
+
"version": "0.2.4",
|
|
26
|
+
"protocolVersion": 2,
|
|
27
27
|
"capabilities": [
|
|
28
28
|
"transferable-tx",
|
|
29
29
|
"producer-local-handles"
|
|
30
30
|
],
|
|
31
31
|
"platform": "win32-arm64",
|
|
32
32
|
"files": {
|
|
33
|
-
"frame-forwarding.node": "
|
|
34
|
-
"dsh_frame_forwarding_sdk.lib": "
|
|
33
|
+
"frame-forwarding.node": "f031041d10c173c54fc630659630133fef83a9e9ac37bda09b4bb027dd4d8ebf",
|
|
34
|
+
"dsh_frame_forwarding_sdk.lib": "70336cfa2937180233d3a601e493dcc8743ed3e0187770481fe621bbf2bca433"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"sources": {
|
|
3
|
-
"include/dsh_frame_forwarding.h": "
|
|
3
|
+
"include/dsh_frame_forwarding.h": "b6e9496d7bdf7061eef3ba1a5b88d98425e560d8c2766d34a868789b59cdad80",
|
|
4
4
|
"src/graphite-interop-internal.hxx": "012bba82e8e0e49f8ed9e62a357d61d5932d248582eafbcd914358d46711bfab",
|
|
5
5
|
"src/node-producer.cc": "69f4dd6499a7af1d0efce3aa78710e6b6d3564363db077d109eb09791cc565cb",
|
|
6
6
|
"src/producer-internal.h": "7ebe4756fa7d693567be6fbff3b25e6c29a3be474f0ac42fd51986ecdd14bc72",
|
|
7
|
-
"src/transport.h": "
|
|
8
|
-
"src/transport.cc": "
|
|
7
|
+
"src/transport.h": "3f48ffcd54a1d2e996f8a282862eba7d4db9de6d24b9ce139585045ea70cdc53",
|
|
8
|
+
"src/transport.cc": "53bdc911bcf6fee6c3880541e9225f18adc8a89280c537adccfe4bd2a9395bbf",
|
|
9
9
|
"src/relay-transport.inc": "3e96b42414c3397ed59fc3323ee29de040f9889c0c474c277e02fd077a92c607",
|
|
10
10
|
"src/producer.cc": "8e90a7d0ee173e2c62823d4962288581e34fb3567cf6e8942aa3fa9935dc0e21",
|
|
11
|
-
"src/receiver.cc": "
|
|
11
|
+
"src/receiver.cc": "aa618766b9df75009af366c1fc1729dbf0d5e5babd03b6bb7131f4897d804278",
|
|
12
12
|
"src/win-delay-load.cc": "7acf6bad7bdea695163cbf151286787eb0f9144bc53a7a137f3373888c54cb20",
|
|
13
13
|
"src/win-delay-load.LICENSE": "662a1b0115251cfb29c6aed0f221f8847bc49c6365d1c53a62c9f4bccc2489c3",
|
|
14
14
|
"src/graphite-interop.cc": "4f2de8e9ad4bd1aef9220c95d3660937980893f12af006116bed720e7dfaf013",
|
|
15
15
|
"CMakeLists.txt": "90e821d3718037a60d989b80bc156cb4cc267d66487139e81cf568cb8a54d344",
|
|
16
|
-
"sdk.json": "
|
|
16
|
+
"sdk.json": "a9890a2355e9692e50b2d6f407a3c630d031b7c6c2987acc57814c7884540f8e",
|
|
17
17
|
"scripts/build.mjs": "0824c5975106ce2101026d3c7f451643fe28e358b8bff644739fe7614e82c6fa",
|
|
18
|
-
"scripts/metadata.mjs": "
|
|
18
|
+
"scripts/metadata.mjs": "a3c139b6cc8b39ca8773c9138086e91fbb3535c610a47f329409f64f045013ac",
|
|
19
19
|
"scripts/source-identity.mjs": "e8360e59c4c83eeb4110d3a1c278d330f4a2d20b87edefb1f1e527dc17301602",
|
|
20
20
|
"scripts/build-webgpu.mjs": "919d40e78b7f5d3e2a7de6d5d2e46ca4a26bcce18f98abc1220c59f8cb79ebdd",
|
|
21
21
|
"webgpu-dependencies.json": "99fd5b4763f3621ffe72290ca5ddaa9c26f8d2404b54c9158f20f6fd29a403c2"
|
|
22
22
|
},
|
|
23
|
-
"sourceCommit": "
|
|
23
|
+
"sourceCommit": "fdf525165857e8af17d558b6ad858dbcd4e4b491",
|
|
24
24
|
"sourceDirty": false,
|
|
25
|
-
"version": "0.2.
|
|
26
|
-
"protocolVersion":
|
|
25
|
+
"version": "0.2.4",
|
|
26
|
+
"protocolVersion": 2,
|
|
27
27
|
"capabilities": [
|
|
28
28
|
"transferable-tx",
|
|
29
29
|
"producer-local-handles"
|
|
30
30
|
],
|
|
31
31
|
"platform": "win32-x64",
|
|
32
32
|
"files": {
|
|
33
|
-
"frame-forwarding.node": "
|
|
34
|
-
"dsh_frame_forwarding_sdk.lib": "
|
|
33
|
+
"frame-forwarding.node": "09fb0de0cba85551837279e931880566afd50e246e194a6fb0e28454cda81415",
|
|
34
|
+
"dsh_frame_forwarding_sdk.lib": "250f2809db0adcb4e7b42064d3a5346cfa580ebff41829f40b0ca5fa5f24c011"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@deepseek-ai/libreoffice-kit",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"protocolVersion":
|
|
3
|
+
"version": "0.2.4",
|
|
4
|
+
"protocolVersion": 2,
|
|
5
5
|
"capabilities": [
|
|
6
6
|
"transferable-tx",
|
|
7
7
|
"producer-local-handles"
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
"files": {
|
|
10
10
|
"LICENSE": "ebb4f09972aee8608be255debaf78451a68e95c290f55c240dec2ecfa16ea6be",
|
|
11
11
|
"CMakeLists.txt": "90e821d3718037a60d989b80bc156cb4cc267d66487139e81cf568cb8a54d344",
|
|
12
|
-
"sdk.json": "
|
|
13
|
-
"scripts/metadata.mjs": "
|
|
12
|
+
"sdk.json": "a9890a2355e9692e50b2d6f407a3c630d031b7c6c2987acc57814c7884540f8e",
|
|
13
|
+
"scripts/metadata.mjs": "a3c139b6cc8b39ca8773c9138086e91fbb3535c610a47f329409f64f045013ac",
|
|
14
14
|
"webgpu-dependencies.json": "99fd5b4763f3621ffe72290ca5ddaa9c26f8d2404b54c9158f20f6fd29a403c2",
|
|
15
15
|
"scripts/build-webgpu.mjs": "919d40e78b7f5d3e2a7de6d5d2e46ca4a26bcce18f98abc1220c59f8cb79ebdd",
|
|
16
|
-
"include/dsh_frame_forwarding.h": "
|
|
16
|
+
"include/dsh_frame_forwarding.h": "b6e9496d7bdf7061eef3ba1a5b88d98425e560d8c2766d34a868789b59cdad80",
|
|
17
17
|
"src/graphite-interop-internal.hxx": "012bba82e8e0e49f8ed9e62a357d61d5932d248582eafbcd914358d46711bfab",
|
|
18
18
|
"src/producer.cc": "8e90a7d0ee173e2c62823d4962288581e34fb3567cf6e8942aa3fa9935dc0e21",
|
|
19
19
|
"src/producer-internal.h": "7ebe4756fa7d693567be6fbff3b25e6c29a3be474f0ac42fd51986ecdd14bc72",
|
|
20
|
-
"src/transport.cc": "
|
|
21
|
-
"src/transport.h": "
|
|
20
|
+
"src/transport.cc": "53bdc911bcf6fee6c3880541e9225f18adc8a89280c537adccfe4bd2a9395bbf",
|
|
21
|
+
"src/transport.h": "3f48ffcd54a1d2e996f8a282862eba7d4db9de6d24b9ce139585045ea70cdc53",
|
|
22
22
|
"src/relay-transport.inc": "3e96b42414c3397ed59fc3323ee29de040f9889c0c474c277e02fd077a92c607",
|
|
23
23
|
"src/graphite-interop.cc": "4f2de8e9ad4bd1aef9220c95d3660937980893f12af006116bed720e7dfaf013"
|
|
24
24
|
}
|
|
@@ -38,14 +38,14 @@ export function hashFile(file) {
|
|
|
38
38
|
export function updateSdkMetadata(root = sdkRoot) {
|
|
39
39
|
const kitFile = existsSync(join(root, '../package.json')) ? join(root, '../package.json') : join(root, '../entry/package.json');
|
|
40
40
|
const kit = JSON.parse(readFileSync(kitFile, 'utf8'));
|
|
41
|
-
const sdk = { version: kit.version, protocolVersion:
|
|
41
|
+
const sdk = { version: kit.version, protocolVersion: 2, capabilities, header: 'include/dsh_frame_forwarding.h',
|
|
42
42
|
sources: ['src/transport.cc', 'src/producer.cc'], cxxStandard: 17, platforms: targets,
|
|
43
43
|
staticLibraries: Object.fromEntries(targets.map(target => [target,
|
|
44
44
|
`prebuilds/${target}/${target.startsWith('win32-') ? 'dsh_frame_forwarding_sdk.lib' : 'libdsh_frame_forwarding_sdk.a'}`])),
|
|
45
45
|
buildSources };
|
|
46
46
|
writeFileSync(join(root, 'sdk.json'), JSON.stringify(sdk, null, 2) + '\n');
|
|
47
47
|
writeFileSync(join(root, 'receipt.json'), JSON.stringify({ package: '@deepseek-ai/libreoffice-kit',
|
|
48
|
-
version: kit.version, protocolVersion:
|
|
48
|
+
version: kit.version, protocolVersion: 2, capabilities,
|
|
49
49
|
files: Object.fromEntries(['LICENSE', ...webgpuSources].map(file => [file, hashFile(join(root, file))])) }, null, 2) + '\n');
|
|
50
50
|
return sdk;
|
|
51
51
|
}
|