@dshb/dsh 0.0.0 → 0.1.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.
Files changed (3) hide show
  1. package/README.md +273 -0
  2. package/bin/dshb.mjs +67 -0
  3. package/package.json +53 -4
package/README.md ADDED
@@ -0,0 +1,273 @@
1
+ # dshb
2
+
3
+ [![npm version][npm-version-src]][npm-version-href]
4
+ [![npm downloads][npm-downloads-src]][npm-downloads-href]
5
+ [![License][license-src]][license-href]
6
+ [![CI][ci-src]][ci-href]
7
+
8
+ ⚓ 将 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 运行在 [Bun](https://bun.sh)(JavaScriptCore)上,并打包为单可执行文件的运行时。
9
+
10
+ ## Why?
11
+
12
+ 上游 `dsh` 依赖 Node.js + pnpm 及 800 MB+ 的 `node_modules`。`dshb` 将其精简为一个可执行文件与一份磁盘资源目录:
13
+
14
+ - **零环境依赖**:目标机器无需安装 Node、pnpm 或 Bun
15
+ - **服务性能更优**:启动速度、内存占用与并发吞吐均优于官方 Node 运行时(详见 [Benchmark](#benchmark))
16
+
17
+ ## Features
18
+
19
+ - 🚀 **单文件分发**:宿主 CLI 与全部插件打入单一可执行文件,磁盘仅保留必须按真实路径读取的资源
20
+ - 🧭 **参数原样透传**:`dshb web --port 3085` 等价于 `dsh web --port 3085`(profile 在前,选项在后)
21
+ - 🙅 **零依赖子进程**:通过 `BUN_BE_BUN=1` 复用 `dsh.exe` 自身执行子进程脚本
22
+ - 👜 **跨平台预编译**:按 `os`/`cpu` 分发 `@dshb/<slug>` 平台包,支持 `npx @dshb/dsh` 开箱即用
23
+ - 📦 **按需资源裁剪**:剔除源码、测试、类型声明、sourcemap 及纯文档
24
+ - 🔌 **补丁式兼容层**:上游升级仅影响命中的补丁,支持一键自检
25
+ - ⚡ **高性能服务**:首字响应(HTTP 200)、空闲内存与并发吞吐全面领先官方运行时
26
+ - 🩺 **构建期强校验**:补丁失配直接中断构建,杜绝残缺产物
27
+
28
+ ## Packages
29
+
30
+ | 包名 | 说明 |
31
+ | --- | --- |
32
+ | `@dshb/dsh` | 主包(仅需安装此包),包含启动器 `bin/dshb.mjs` |
33
+ | `@dshb/win32-x64` / `@dshb/win32-arm64` | Windows 64 位(x64 / ARM64)可执行文件 |
34
+ | `@dshb/linux-x64` / `@dshb/linux-arm64` | Linux 64 位(x64 / ARM64)可执行文件 |
35
+ | `@dshb/darwin-x64` / `@dshb/darwin-arm64` | macOS 64 位(x64 / ARM64)可执行文件 |
36
+
37
+ ## Usage
38
+
39
+ ### 1. 直接运行(免安装)
40
+
41
+ ```bash
42
+ npx @dshb/dsh --help
43
+ npx @dshb/dsh headless "run the tests"
44
+ npx @dshb/dsh web --port 3085 --no-open
45
+ ```
46
+
47
+ ### 2. 全局安装
48
+
49
+ ```bash
50
+ npm i -g @dshb/dsh # 或 pnpm add -g @dshb/dsh / bun add -g @dshb/dsh
51
+ dshb web
52
+ # or
53
+ dsh web
54
+ ```
55
+
56
+ > `dshb` 与 `dsh` 命令均指向启动器 `bin/dshb.mjs`:它根据 `process.platform` 与 `process.arch` 匹配 `@dshb/<slug>` 平台包中的二进制执行。
57
+
58
+ ### 3. 本地开发运行
59
+
60
+ ```bash
61
+ bun install
62
+ bun index.ts web --port 3085
63
+ ```
64
+
65
+ ### 4. 构建产物
66
+
67
+ `bun run build` 依次执行:生成平台清单 → 内置插件注册表 → 磁盘资源 → 编译可执行文件。
68
+ 默认不嵌入资源,产出「exe + `dist/node_modules`」两件套;设 `DSH_BUN_EMBED_ASSETS=1` 则把
69
+ 无需真实路径的资源嵌进 exe(exe 变大、磁盘变小,见[资源裁剪与资产嵌入](#3-资源裁剪与资产嵌入))。
70
+
71
+ ```bash
72
+ bun run build # exe 128 MB + 磁盘 196 MB
73
+ DSH_BUN_EMBED_ASSETS=1 bun run build # exe 164 MB + 磁盘 196 MB
74
+ ```
75
+
76
+ 构建产出位于 `@dshb/<slug>/dist/` 目录(合计 379 MB):
77
+
78
+ | 路径 | 内容 | 体积 |
79
+ | --- | --- | --- |
80
+ | `dist/dsh.exe`(POSIX 为 `dist/dsh`) | 宿主程序(110 MB Bun 运行时 + 54 MB 宿主与插件 JS) | 164 MB |
81
+ | `dist/node_modules/**` | 必须按真实路径读取的包(LibreOffice 引擎、HTTP 前端资源、子进程闭包) | 196 MB |
82
+ | `dist/*.dll` | 原生扩展伴生动态库(sharp 的 libvips、node-pty 的 conpty) | 19 MB |
83
+
84
+ 可执行文件基于 `process.execPath` 定位同级 `node_modules`,支持整个 `dist/` 目录任意迁移:
85
+
86
+ ```bash
87
+ dist\dsh.exe web --port 3080
88
+
89
+ ```
90
+
91
+ ## Environment Variables
92
+
93
+ `dshb` 不解析 CLI 参数,所有构建与调试配置均通过环境变量控制:
94
+
95
+ | 变量 | 类型 | 默认值 | 说明 |
96
+ | --- | --- | --- | --- |
97
+ | `DSH_BUN_DEBUG` | `'1'` | 未设置 | 打印裸包名解析轨迹、子进程解析结果与 runner stderr |
98
+ | `DSH_BUN_INSTALL_ROOT` | `string` | 自动探测 | 覆盖安装根目录(默认取 exe 同级 `node_modules`,缺失时回退至嵌入根) |
99
+ | `DSH_BUN_EMBED_ASSETS` | `'1'` | 未设置 | 构建时将「无需真实路径」的资源嵌入 exe(当前必须显式开启) |
100
+ | `BUN_BE_BUN` | `'1'` | 未设置 | 由各 spawn 点显式注入子进程环境,使 `dsh.exe` 以 Bun 运行时身份执行脚本 |
101
+
102
+ ## Benchmark
103
+
104
+ 运行 `bun run benchmark` 可测量当前机器的冷启动、服务启动、空闲内存、并发吞吐与分发体积(用于同机改前改后对比)。
105
+
106
+ 测试环境:Windows x64,对比 `dshb`(Bun 1.4.5)与官方 `@deepseek-ai/dsh`(Node 25.5.0):
107
+
108
+ | 指标 | dshb | 官方 Node |
109
+ | --- | --- | --- |
110
+ | 冷启动 `--version` | 241 ms | **101 ms** |
111
+ | 启动到首个 HTTP 200 | **1040 ms** | 2050 ms |
112
+ | 空闲常驻内存 | **226 MB** | 295 MB |
113
+ | 并发吞吐(200 并发) | **1702 req/s** | 1434 req/s |
114
+ | 分发体积 | **374 MB**(单文件 + 资源) | 832 MB + Node 运行时 |
115
+
116
+ ### 冷启动耗时拆解
117
+
118
+ 冷启动慢并非源于单文件自解压,而是 **JSC 解析 18.8 MB 打包 JS 的固有开销**(官方 Node 可直接 `mmap` 磁盘文件):
119
+
120
+ | 测试场景 | 耗时 |
121
+ | --- | --- |
122
+ | 仅 `console.log(1)` 的单文件编译产物 | 28 ms |
123
+ | `dsh.exe` 到首行 JS 执行前 | 291 ms |
124
+ | 未打包的同体量 `bun bundle.js` 直接运行 | 248 ms |
125
+ | 将注册表内 296 个 `import()` 指向空模块 | 62 ms(原 286 ms) |
126
+
127
+ > 注:Bun 的 `--bytecode` 虽能缓解解析开销,但目前不支持顶层 `await`;由于上游 `@deepseek-ai/dsh/lib/bin.js` 存在顶层 `await`,故暂无法启用。
128
+
129
+ ## 实现要点
130
+
131
+ ### 1. 模块解析与内置插件(避免双份实例)
132
+
133
+ * **内置注册表**(`scripts/builtins.gen.ts`):编译产物中 `import.meta.url` 指向虚拟根目录 `B:/~BUN`,磁盘加载会导致加载双份 `@deepseek-ai/cordis` 与 `dsh-session` 从而破坏服务注册。所有插件均打入 exe,由 `ModuleLoader.fromInternal()` 优先查表。因含平台专属包(如 `dsh-cua-windows`),CI 会在各平台先执行 `bun run build:registry` 再 `typecheck`。
134
+ * **补丁表与优先级**(`preload/patches/index.ts`):单文件纯导出补丁模块,**声明顺序即优先级**(宽 filter 置底,如 `inlineManifest` 固定最后;`ptc-bun-runtime` 必须在 `ptc-launch` 前)。同一张表复用于源码(`Bun.plugin`)、构建(`Bun.build`)与磁盘文件预处理(`assets.gen.ts`)。
135
+
136
+ ### 2. 编译配置与路径兼容
137
+
138
+ * **保留形参名的压缩**:构建配置 `minify: { whitespace: true, syntax: true }`,**禁用 `identifiers`**(`dsh-api-gateway` 依赖 `Function.prototype.toString` 提取 RPC 形参名)。
139
+ * **包内相对路径**(`preload/patches/package-relative-url.ts`):将基于 `import.meta.url` 的资源寻址重写为三段回退:`原路径` → `嵌入根/node_modules/<pkg>/` → `磁盘安装目录`(`__DSH_INSTALL_ROOT__` 已含 `node_modules` 层级)。
140
+ * **`exports` 通配符兜底**(`preload/utils/manifest.ts`):Bun 1.4.5 的 `createRequire().resolve()` 不支持 `"./assets/*"` 通配符映射,通过 `shimExportsWildcard()` 手工解析兜底。**必须与 `inlinePackageManifest()` 同处一个补丁**(Bun 仅执行首个命中的 `onLoad`)。
141
+
142
+ ### 3. 资源裁剪与资产嵌入
143
+
144
+ * **运行期按需裁剪**(`scripts/assets.gen.ts`):构建前清空目标目录;按 3 个子进程入口源码的实际 `import` / `createLazyRequire()` 计算闭包(包数 48 → 21,文件数 1436 → 1076);仅保留运行期读取的 `SKILL.md` 与 `descriptions/*.md`;`skills/`、`assets/`、`templates/` 因存在动态路径拼装,整目录保留。
145
+ * **嵌入与磁盘分离**:开启 `DSH_BUN_EMBED_ASSETS=1` 时,`stageEmbeddable()` 将可嵌入资源(约 3877 文件 / 35 MB)暂存至 `.temp/embed-stage/node_modules` 后打入 exe(`preload/realpath.ts` 拦截 `realpathSync` 避免访问虚拟盘符 `B:\` 报 `ENOENT`)。以下三类永久保留在磁盘(`DISK_ONLY`):
146
+ 1. **HTTP 静态资源与 `lib/client*.js`**:`createReadStream` 无法读取 `B:\~BUN` 虚拟路径;
147
+ 2. **子进程脚本**:需真实文件路径供运行时加载;
148
+ 3. **LibreOffice 引擎**:177 MB 独立二进制文件,无法嵌入。
149
+
150
+
151
+
152
+ ### 4. 子进程免 Node 化
153
+
154
+ * **API 替换**(`preload/patches/ptc-bun-runtime.ts`):构建期将 `stripTypeScriptTypes` 替换为 `Bun.Transpiler`,未使用的 `registerHooks` 给惰性占位,解决 Bun ESM 命名空间不可扩展导致的链接失败。
155
+ * **启动与环境适配**(`preload/patches/subprocess-runner.ts`):`spawnRunnerInvocation()` 增加磁盘解析回退并返回 `file:` URL;兼容 Bun 自动吞掉首个 `--` 参数的行为;显式向子进程注入 `BUN_BE_BUN=1`(**严禁设在主进程上**,否则会改变写文件语义导致写 profile 报 `EPERM`)。
156
+
157
+ ### 5. 跨平台原生分发
158
+
159
+ * 因依赖 LibreOffice、sharp、node-pty、koffi 等原生模块,必须在六大平台(`linux`/`win32`/`darwin` × `x64`/`arm64`)原生构建(不支持 musl)。
160
+ * **发布顺序**:必须先发布 6 个 `@dshb/<slug>` 平台包,再发布主包 `@dshb/dsh`,确保 `optionalDependencies` 正常解析。
161
+ * **主包不含二进制**:`@dshb/dsh` 只发布 `bin/dshb.mjs`,平台包只发布 `dist/`(不声明 `bin`)。仓库内用 `workspace:*` 引用,发布时由 npm 替换为实际版本号。
162
+
163
+ ## Directory Structure
164
+
165
+ ```text
166
+ index.ts CLI 入口(源码模式由 bunfig.toml 加载 preload)
167
+ entry.ts 编译产物入口(先加载 preload 再执行 index.ts)
168
+ bunfig.toml 源码模式 preload 配置
169
+ bin/dshb.mjs npm 全局启动器(匹配平台包二进制并 exec)
170
+ preload/ 运行期兼容层
171
+ index.ts 运行期补丁统一入口
172
+ toString.ts 原生函数 toString 归一
173
+ undici.ts 补齐 Dispatcher.close/destroy
174
+ worker.ts 向派生 Worker 注入补丁
175
+ plugins.ts 注册 patches/ 为 Bun.plugin
176
+ realpath.ts 适配 B:/~BUN 虚拟路径的 realpath
177
+ install.ts 编译产物专用:安装根目录、裸包解析与惰性模块表
178
+ build.ts 构建期插件集成
179
+ generated/ 自动生成物(builtin-plugins.ts)
180
+ patches/ 单文件纯导出补丁模块(index.ts 定义优先级顺序)
181
+ utils/ 补丁工具集(源码替换、清单内联、通配符兜底)
182
+ scripts/
183
+ build.ts 打包主脚本(Bun.build --compile)
184
+ assets.gen.ts 生成 dist/node_modules 与嵌入暂存目录
185
+ builtins.gen.ts 生成内置插件注册表
186
+ platforms.ts 平台目标定义(6 个 os/cpu 组合)
187
+ platforms.gen.ts 生成 packages/* 清单与主包 optionalDependencies
188
+ package.platform.ts 生成当前平台分发目录 packages/<slug>/dist
189
+ checks.ts 补丁完整性自检
190
+ benchmark.ts 性能基线测试
191
+ packages/
192
+ <slug>/package.json 平台包清单(os/cpu 限定,只含 dist/)
193
+ <slug>/dist/ 构建产物(.gitignore 忽略,由 CI 生成)
194
+ tests/smoke.test.ts 冒烟测试
195
+ bumpp.config.ts 版本发布配置
196
+ .github/workflows/ CI(三平台验证)与 Release(六平台构建发布)
197
+ ```
198
+
199
+ ## 已验证功能
200
+
201
+ 以下能力均已在 `dist/dsh.exe` 编译产物上实测通过:
202
+
203
+ | 模块 | 验证内容 |
204
+ | --- | --- |
205
+ | **CLI** | `--version` / `--help` / `web` 正常启动 |
206
+ | **Web UI** | 76 个客户端模块加载正常,控制台 0 报错 |
207
+ | **对话与模型** | 接入 DeepSeek 官方及第三方 Provider 真实会话 |
208
+ | **命令执行** | `pwsh` 在 Windows ACL 沙箱内正常执行 |
209
+ | **交互终端** | `node-pty` + `xterm` 交互式终端可用 |
210
+ | **PTC 代码执行** | `run_code` 成功执行 TypeScript 程序(返回 `v25.5.0`) |
211
+ | **Office 转换** | `docx` → `PDF` → `PNG` 转换及中文渲染正常 |
212
+
213
+ > CI 在 Ubuntu / macOS / Windows 三平台自动执行:重新生成注册表 → `lint` / `typecheck` / 单测 / 补丁自检 → 构建产物 → 启动服务并断言鉴权跳转(303)、页面状态(200)、`__DSH_BOOT__` 注入及零插件加载报错。
214
+
215
+ ## 已知限制
216
+
217
+ * **冷启动略慢于 Node**:同机实测 241 ms vs 101 ms(源于单文件加载解析 18.8 MB JS 的开销,服务启动后性能反超)。
218
+ * **不支持 HMR**:JSC 无可替换的 ESM 模块缓存,插件降级为仅加载不监听。
219
+ * **平台与组件差异**:
220
+ * 不分发 `@deepseek-ai/libreoffice-kit-wasm`(使用当前平台原生引擎);
221
+ * Windows 暂不支持 `@deepseek-ai/node-addon-system`(无对应平台包);
222
+ * 不支持 `musl` 系统(上游无对应 LibreOffice 引擎)。
223
+ * **Windows 权限要求**:
224
+ * 命令工具依赖 Windows ACL 沙箱,若无目录权限会报 `SetNamedSecurityInfoW failed (Win32 5)`,需修复目录 ACL 或改用 `danger-full-access`;
225
+ * 构建目录不可带有 **Low 完整性标签**:产物会继承该标签,启动时写 `~/.dsh/profiles/<name>/cordis.yml` 报 `EPERM`。表现为 `--version` / `--help` 正常、`web` 立即退出。修复:
226
+ ```powershell
227
+ icacls <构建目录> /setintegritylevel "(OI)(CI)Medium"
228
+ ```
229
+ 改完必须**重新构建**,否则 exe 仍带着旧标签。若标签来自父目录的继承项,需一并修复父目录。
230
+
231
+ ## Development
232
+
233
+ ```bash
234
+ bun install # 安装依赖
235
+ bun run test # 运行冒烟测试
236
+ bun run lint # 代码检查(ESLint)
237
+ bun run typecheck # 类型检查(bun check)
238
+ bun run check:patches # 补丁匹配自检
239
+ bun run build # 构建产物(设 DSH_BUN_EMBED_ASSETS=1 可嵌入资源)
240
+ bun run benchmark # 运行性能基线(需先完成 build)
241
+ bun run package:platform # 生成当前平台分发包目录(packages/<slug>/dist)
242
+ bun run release # 升级版本、打 tag 并推送(bumpp)
243
+ ```
244
+
245
+ ### 上游 `dsh` 升级指南
246
+
247
+ 补丁基于函数名与语句形状匹配,升级上游依赖后请执行:
248
+
249
+ ```bash
250
+ bun run check:patches
251
+
252
+ ```
253
+
254
+ 若出现 `MISS`(命中数为 0)或 `SHADOW`(钩子被覆盖),需同步调整对应补丁。`bun run build` 内置了前置自检,校验失败将自动中止构建。
255
+
256
+ ## Credits
257
+
258
+ * [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) —— 上游运行时项目
259
+ * [Bun](https://bun.sh) —— JavaScriptCore 运行时与单文件编译工具链
260
+ * 文档结构参考自 [esno](https://github.com/antfu/esno)、[oxrun](https://github.com/tmg0/oxrun) 与 [swrun](https://github.com/hairyf/swrun)
261
+
262
+ ## License
263
+
264
+ MIT License © 2026-PRESENT [Hairyf](https://github.com/hairyf)
265
+
266
+ [npm-version-src]: https://img.shields.io/npm/v/@dshb/dsh?style=flat&colorA=080f12&colorB=1fa669
267
+ [npm-version-href]: https://npmjs.com/package/@dshb/dsh
268
+ [npm-downloads-src]: https://img.shields.io/npm/dm/@dshb/dsh?style=flat&colorA=080f12&colorB=1fa669
269
+ [npm-downloads-href]: https://npmjs.com/package/@dshb/dsh
270
+ [license-src]: https://img.shields.io/npm/l/@dshb/dsh?style=flat&colorA=080f12&colorB=1fa669
271
+ [license-href]: https://npmjs.com/package/@dshb/dsh
272
+ [ci-src]: https://github.com/hairyf/dshb/actions/workflows/ci.yml/badge.svg
273
+ [ci-href]: https://github.com/hairyf/dshb/actions/workflows/ci.yml
package/bin/dshb.mjs ADDED
@@ -0,0 +1,67 @@
1
+ #!/usr/bin/env node
2
+ // dshb 启动器:找到当前平台的预编译二进制并 exec。
3
+ //
4
+ // 二进制按平台拆成独立 npm 包(@dshb/<slug>),主包用 optionalDependencies 引用,
5
+ // npm 只装 os/cpu 匹配的那一个。平台包的布局与仓库内的 dist/ 完全一致:
6
+ // @dshb/<slug>/dist/dsh[.exe]
7
+ // @dshb/<slug>/dist/node_modules/**
8
+ //
9
+ // 二进制用 process.execPath 定位同目录的 node_modules,所以这里只负责启动它。
10
+ import { spawn } from 'node:child_process'
11
+ import { existsSync } from 'node:fs'
12
+ import { createRequire } from 'node:module'
13
+ import { dirname, join } from 'node:path'
14
+ import process from 'node:process'
15
+
16
+ /** 二进制文件名。 */
17
+ const BINARY = process.platform === 'win32'
18
+ ? 'dsh.exe'
19
+ : 'dsh'
20
+
21
+ /** 当前平台对应的包名后缀。 */
22
+ function platformSlug() {
23
+ return `${process.platform}-${process.arch}`
24
+ }
25
+
26
+ const slug = platformSlug()
27
+
28
+ /** 解析已安装的平台包里的二进制路径。 */
29
+ function findBinary() {
30
+ try {
31
+ const require = createRequire(import.meta.url)
32
+ const manifest = require.resolve(`@dshb/${slug}/package.json`)
33
+ const candidate = join(dirname(manifest), 'dist', BINARY)
34
+ if (existsSync(candidate))
35
+ return candidate
36
+ }
37
+ catch {}
38
+ return undefined
39
+ }
40
+
41
+ const binary = findBinary()
42
+
43
+ if (binary === undefined) {
44
+ console.error(`dshb: 当前平台 (${slug}) 没有可用的二进制`)
45
+ console.error(`dshb: 期望安装 @dshb/${slug},可尝试重新安装 @dshb/dsh`)
46
+ process.exit(1)
47
+ }
48
+
49
+ const child = spawn(binary, process.argv.slice(2), { stdio: 'inherit' })
50
+
51
+ // 转发退出信号,让 Ctrl-C 等交互与直接运行二进制一致。
52
+ for (const signal of ['SIGINT', 'SIGTERM', 'SIGHUP']) {
53
+ process.on(signal, () => child.kill(signal))
54
+ }
55
+
56
+ child.on('exit', (code, signal) => {
57
+ if (signal !== null) {
58
+ process.kill(process.pid, signal)
59
+ return
60
+ }
61
+ process.exit(code ?? 1)
62
+ })
63
+
64
+ child.on('error', (error) => {
65
+ console.error(`dshb: 启动失败: ${error.message}`)
66
+ process.exit(1)
67
+ })
package/package.json CHANGED
@@ -1,4 +1,53 @@
1
- {
2
- "name": "@dshb/dsh",
3
- "version": "0.0.0"
4
- }
1
+ {
2
+ "name": "@dshb/dsh",
3
+ "type": "module",
4
+ "version": "0.1.0",
5
+ "description": "Run DeepSeek Harness on Bun, and package it into a single executable",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/hairyf/dshb.git"
10
+ },
11
+ "bin": {
12
+ "dshb": "bin/dshb.mjs",
13
+ "dsh": "bin/dshb.mjs"
14
+ },
15
+ "files": [
16
+ "bin"
17
+ ],
18
+ "workspaces": [
19
+ "packages/*"
20
+ ],
21
+ "scripts": {
22
+ "start": "bun index.ts",
23
+ "build": "bun run build:platforms && bun run build:registry && bun run build:assets && bun run build:binary",
24
+ "build:platforms": "bun scripts/platforms.gen.ts",
25
+ "build:registry": "bun scripts/builtins.gen.ts",
26
+ "build:assets": "bun scripts/assets.gen.ts",
27
+ "build:binary": "bun scripts/build.ts",
28
+ "package:platform": "bun scripts/package.platform.ts",
29
+ "check:patches": "bun scripts/checks.ts",
30
+ "benchmark": "bun scripts/benchmark.ts",
31
+ "typecheck": "bun check",
32
+ "lint": "eslint .",
33
+ "lint:fix": "eslint . --fix",
34
+ "test": "bun test",
35
+ "release": "bumpp"
36
+ },
37
+ "optionalDependencies": {
38
+ "@dshb/darwin-arm64": "0.1.0",
39
+ "@dshb/darwin-x64": "0.1.0",
40
+ "@dshb/linux-arm64": "0.1.0",
41
+ "@dshb/linux-x64": "0.1.0",
42
+ "@dshb/win32-arm64": "0.1.0",
43
+ "@dshb/win32-x64": "0.1.0"
44
+ },
45
+ "devDependencies": {
46
+ "@antfu/eslint-config": "^10.0.0",
47
+ "@deepseek-ai/dsh": "0.2.3-alpha.3",
48
+ "@types/bun": "latest",
49
+ "bumpp": "^12.3.0",
50
+ "eslint": "^10.16.0",
51
+ "typescript": "^5.0.0"
52
+ }
53
+ }