dsh-moli 1.1.0 → 1.1.1

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 +19 -6
  2. package/README.zh.md +17 -5
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -259,6 +259,16 @@ capabilities always visible to the model.
259
259
 
260
260
  Works on **Windows, Linux and macOS** (x64 / arm64).
261
261
 
262
+ > **Linux and macOS support was contributed by [@nd002723](https://github.com/nd002723)** in
263
+ > [PR #1](https://github.com/27painter/dsh-moli/pull/1): engine discovery in the standard POSIX
264
+ > locations, the `sh` installer route, and the per-platform gating of the PowerShell paths.
265
+
266
+ | Platform | Status |
267
+ |---|---|
268
+ | **Windows** | Verified by the maintainer |
269
+ | **Linux** | Verified by the contributor on Ubuntu 24.04 LTS, Node v24.21.0, DSH 0.2.1-alpha.2, dsh-moli 1.1.0, Moli 1.1.17 |
270
+ | **macOS** | Implemented, not yet verified on a real host |
271
+
262
272
  - **Windows** — the engine is located at the official installer paths (`%LOCALAPPDATA%\Moli\bin\moli.exe`,
263
273
  `%USERPROFILE%\.local\bin\moli.exe`) with a recursive scan of `%LOCALAPPDATA%\Moli` as a fallback.
264
274
  `moli_probe action=install` runs the official PowerShell installer.
@@ -266,6 +276,11 @@ Works on **Windows, Linux and macOS** (x64 / arm64).
266
276
  `~/.local/share/moli/bin/moli`, `~/.local/share/moli/moli`, `~/.moli/bin/moli`) and on `$PATH`.
267
277
  `moli_probe action=install` runs the official `moli-installer.sh` via `sh`.
268
278
 
279
+ On Linux, `moli_probe` discovered `~/.local/bin/moli` unaided, and `moli_fetch` rendered a
280
+ region-gated storefront end to end — through a local forward proxy, with a Netscape `cookieFile` —
281
+ returning a 500+ KB page whose final URL carried the cookie-driven query parameters. That run
282
+ exercised the proxy download route as well as the engine paths.
283
+
269
284
  ## Configuration
270
285
 
271
286
  Override any field under the plugin's `config` entry in the profile patch layer. All are optional.
@@ -288,12 +303,10 @@ installation under a versioned subdirectory is still found.
288
303
 
289
304
  ## Known limitations
290
305
 
291
- - **Linux and macOS are implemented but not tested by the author.** The POSIX paths were contributed
292
- in [PR #1](https://github.com/27painter/dsh-moli/pull/1) and reviewed, but the person who maintains
293
- this repository is a student with **no macOS or Linux machine**, so those code paths have never been
294
- run against a real POSIX host. Windows is the only platform verified here: the executable discovery,
295
- the file-descriptor workaround and the Schannel notes are Windows-specific observations.
296
- **If something fails on Linux or macOS, please open an
306
+ - **macOS is untested, and Linux was tested by the contributor rather than the maintainer.** The
307
+ maintainer is a student with no macOS or Linux machine, so Linux was verified independently by
308
+ [@nd002723](https://github.com/nd002723) on Ubuntu 24.04 (see [Platform support](#platform-support));
309
+ macOS has not been run on a real host at all. **If something fails on either, please open an
297
310
  [issue](https://github.com/27painter/dsh-moli/issues) with the error output** — that is the only way
298
311
  these paths get fixed.
299
312
  - **Moli itself is not bundled.** Install it separately or let `moli_probe action=install` fetch it.
package/README.zh.md CHANGED
@@ -240,11 +240,25 @@ Moli 仓库自带官方 agent skill:[`moli-webfetch`](https://github.com/lexmo
240
240
 
241
241
  支持 **Windows、Linux、macOS**(x64 / arm64)。
242
242
 
243
+ > **Linux 与 macOS 支持由 [@nd002723](https://github.com/nd002723) 贡献**,见
244
+ > [PR #1](https://github.com/27painter/dsh-moli/pull/1):POSIX 标准位置的引擎探测、`sh` 安装器路径,
245
+ > 以及把 PowerShell 相关路径按平台门控。
246
+
247
+ | 平台 | 状态 |
248
+ |---|---|
249
+ | **Windows** | 由维护者验证 |
250
+ | **Linux** | 由贡献者在 Ubuntu 24.04 LTS、Node v24.21.0、DSH 0.2.1-alpha.2、dsh-moli 1.1.0、Moli 1.1.17 上验证通过 |
251
+ | **macOS** | 已实现,尚未在真机验证 |
252
+
243
253
  - **Windows** —— 引擎在官方安装位置查找(`%LOCALAPPDATA%\Moli\bin\moli.exe` 与 `%USERPROFILE%\.local\bin\moli.exe`),
244
254
  并以 `%LOCALAPPDATA%\Moli` 递归扫描兜底;`moli_probe action=install` 走官方 PowerShell 安装器。
245
255
  - **Linux / macOS** —— 引擎在标准位置(`~/.local/bin/moli`、`~/.local/share/moli/bin/moli`、
246
256
  `~/.local/share/moli/moli`、`~/.moli/bin/moli`)与 `$PATH` 中查找;`moli_probe action=install` 通过 `sh` 执行官方 `moli-installer.sh`。
247
257
 
258
+ 在 Linux 上,`moli_probe` 无需干预就找到了 `~/.local/bin/moli`;`moli_fetch` 端到端渲染了一个地区限制的
259
+ 电商站——经由本地正向代理、并带上 Netscape 格式的 `cookieFile`——返回 500+ KB 的页面,最终 URL 带上了
260
+ cookie 驱动的查询参数。那次实测同时覆盖了代理下载路由与引擎探测路径。
261
+
248
262
  ## 配置
249
263
 
250
264
  在 profile 的补丁层里覆盖 `config`,全部可选:
@@ -267,11 +281,9 @@ Moli 仓库自带官方 agent skill:[`moli-webfetch`](https://github.com/lexmo
267
281
 
268
282
  ## 已知限制
269
283
 
270
- - **Linux 与 macOS 已实现,但作者没有测过。** POSIX 相关代码来自
271
- [PR #1](https://github.com/27painter/dsh-moli/pull/1),已做代码审查,但本仓库维护者是一名**没有
272
- macOS / Linux 电脑**的大学生,所以这些分支从未在真实的 POSIX 主机上运行过。这里唯一验证过的平台是
273
- Windows:可执行文件探测、文件描述符绕坑与 Schannel 说明都是 Windows 上的观察。
274
- **如果在 Linux 或 macOS 上出问题,请带上报错信息开
284
+ - **macOS 未经验证,Linux 是由贡献者而非维护者验证的。** 维护者是一名**没有 macOS / Linux 电脑**的
285
+ 大学生;Linux 由 [@nd002723](https://github.com/nd002723) 在 Ubuntu 24.04 上独立验证通过(见
286
+ [平台支持](#平台支持)),而 macOS 从未在真机运行过。**任一平台出问题,都请带上报错信息开
275
287
  [issue](https://github.com/27painter/dsh-moli/issues)**——那是这些路径能被打通的唯一途径。
276
288
  - **不包含 Moli 本体。** 需自行安装,或让 `moli_probe action=install` 替你拉取。
277
289
  - **只封装了 `fetch`。** `moli serve`(CDP/WebDriver 服务器)与 `moli import`(会话导入)尚未做成工具。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-moli",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "description": "DeepSeek Harness tools for the local Moli headless browser: rendered fetches, markdown, semantic trees, screenshots, and PDFs.",
6
6
  "license": "MIT",