iterate-harness 1.10.1 → 1.11.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.
package/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # iterate-harness (npm distribution wrapper)
2
2
 
3
+ <p align="center">
4
+ <a href="README.md"><strong>English</strong></a> ·
5
+ <a href="README.zh-CN.md"><strong>简体中文</strong></a>
6
+ </p>
7
+
3
8
  npm one-liner install for [iterate-harness](https://github.com/jingzhao-l/iterate-harness) —
4
9
  the dedicated agent harness for the iterate review/fix loop (`ih` CLI, React TUI,
5
10
  six `iterate_*` tools, engine-enforced convergence).
@@ -0,0 +1,74 @@
1
+ # iterate-harness(npm 分发包装器)
2
+
3
+ <p align="center">
4
+ <a href="README.md"><strong>English</strong></a> ·
5
+ <a href="README.zh-CN.md"><strong>简体中文</strong></a>
6
+ </p>
7
+
8
+ [iterate-harness](https://github.com/jingzhao-l/iterate-harness) 的一行 npm 安装入口——
9
+ 面向 iterate 评审/修复闭环的专用 agent harness(`ih` CLI、React TUI、
10
+ 六个 `iterate_*` 工具、引擎级收敛控制)。
11
+
12
+ ```bash
13
+ npm install -g iterate-harness
14
+ ih --version # 首次运行引导安装 Python 端,随后打印版本
15
+ ```
16
+
17
+ ## 这个包是什么(以及不是什么)
18
+
19
+ harness 本身是**一个 Python 包**。这个 npm 包是一个薄分发包装器:它不重新实现任何
20
+ 逻辑,只是让 `ih` 可以通过 npm 安装并保持更新。
21
+
22
+ 首次运行时,包装器会:
23
+
24
+ 1. 找到一个 >= 3.10 的 Python 解释器(`py -3` / `python` / `python3`,
25
+ 可通过 `ITERATE_HARNESS_PYTHON` 覆盖)。
26
+ 2. 在 `~/.iterate-harness-npm/venv` 创建托管虚拟环境
27
+ (可通过 `ITERATE_HARNESS_NPM_HOME` 覆盖)。
28
+ 3. `pip install` **与本 npm 包版本锁定的** harness 发布 tarball —— npm 的 `1.6.0`
29
+ 总会安装 harness `v1.6.0`。升级 npm 包会在下次运行时自动重装对应的 harness 版本。
30
+ 4. 代理调用 venv 里真正的 `ih` 可执行文件,转发 argv、stdio、信号与退出码。
31
+
32
+ React TUI 的前端依赖(`node_modules`)会在首次启动 TUI 时由 harness 自动安装——
33
+ npm 用户必然有 Node,所以 TUI 始终可用。
34
+
35
+ ## 环境要求
36
+
37
+ - Node.js >= 16(你通过 npm 安装它,必然已具备)
38
+ - Python >= 3.10(可用 `ITERATE_HARNESS_PYTHON=/path/to/python3.12` 覆盖)
39
+ - 能访问 registry.npmjs.org(已完成)、pypi.org 和 github.com(用于一次性 pip 安装)
40
+
41
+ ## 环境变量
42
+
43
+ | 变量 | 作用 |
44
+ | --- | --- |
45
+ | `ITERATE_HARNESS_PYTHON` | 使用该解释器,而非自动检测 |
46
+ | `ITERATE_HARNESS_NPM_HOME` | 运行时目录(默认 `~/.iterate-harness-npm`) |
47
+ | `ITERATE_HARNESS_INSTALL_URL` | 从这个 pip URL 安装,而非锁定的发布 tarball(例如测试用的 git 分支) |
48
+ | `ITERATE_HARNESS_SKIP_INSTALL=1` | 完全跳过引导安装,直接运行已装好的 `ih` |
49
+
50
+ ## npx(免全局安装)
51
+
52
+ ```bash
53
+ npx -y iterate-harness iterate review --changed
54
+ ```
55
+
56
+ ## 卸载
57
+
58
+ ```bash
59
+ npm uninstall -g iterate-harness
60
+ rm -rf ~/.iterate-harness-npm # 托管虚拟环境
61
+ ```
62
+
63
+ ## 版本管理
64
+
65
+ 本包的版本与 harness 保持同步:包装器 `x.y.z` 安装 harness 的 `vx.y.z` 标签。
66
+ 包装器在 [iterate-skill monorepo](https://github.com/jingzhao-l/iterate-skill) 的
67
+ `harness/iterate-harness/npm/` 维护,通过 `git subtree` 同步到
68
+ [iterate-harness 发布仓库](https://github.com/jingzhao-l/iterate-harness) 并从那里发布到 npm。
69
+
70
+ ## License / 许可证
71
+
72
+ MIT —— 与 harness 相同。agent 内核源自
73
+ [OpenHarness](https://github.com/HKUDS/OpenHarness);iterate 语义层源自
74
+ [iterate-skill](https://github.com/jingzhao-l/iterate-skill)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iterate-harness",
3
- "version": "1.10.1",
3
+ "version": "1.11.1",
4
4
  "description": "npm distribution wrapper for iterate-harness — installs the Python harness (ih CLI) into a managed venv on first run and exposes it as a global command",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",