harnessed 5.0.0 → 5.0.2
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-en.md +1 -30
- package/README-zh.md +1 -30
- package/README.md +1 -30
- package/dist/cli.mjs +9 -2
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/manifests/tools/playwright-cli.yaml +32 -25
- package/manifests/tools/webapp-testing.yaml +3 -22
- package/package.json +1 -1
package/README-en.md
CHANGED
|
@@ -42,28 +42,7 @@ The binary installer offers setup with your consent in interactive sessions. Do
|
|
|
42
42
|
bun install -g harnessed && bun run --bun harnessed setup
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
`bun add -g harnessed` is an equivalent install command. Bun is required only if you choose this channel, not for the standalone binary or npm channel. Installing with Bun does not select the runtime: the bare `harnessed` shim may still use a Node.js shebang. Keep the explicit Bun runner for subsequent commands:
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
# Optional: verification and maintenance
|
|
51
|
-
bun run --bun harnessed --version
|
|
52
|
-
bun run --bun harnessed doctor --host codex
|
|
53
|
-
bun run --bun harnessed status
|
|
54
|
-
bun add -g harnessed@latest
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Optional advanced override: use `--platform codex` for Codex or `--platform claude` for Claude Code only when you want to select a host manually:
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
# Optional: manual host override (not required after installation)
|
|
61
|
-
bun run --bun harnessed setup --platform codex
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
The runtime does not identify the install manager: package updates keep the npm default. Use `bun add -g harnessed@latest` to update a Bun-managed install across CLI versions. Upstream tools still have their own requirements.
|
|
65
|
-
|
|
66
|
-
Only when you explicitly choose to remove a Bun-managed installation, run `bun remove -g harnessed`; do not uninstall another channel automatically.
|
|
45
|
+
For later Bun commands, use `bun run --bun harnessed`; the bare `harnessed` shim may still invoke Node.js.
|
|
67
46
|
|
|
68
47
|
**Via npm (supported alternative; Node.js >= 22 required)**:
|
|
69
48
|
|
|
@@ -75,14 +54,6 @@ npm install -g harnessed && harnessed setup
|
|
|
75
54
|
|
|
76
55
|
> Windows PowerShell 5.x does not support `&&`. For either package channel, run the install command first, then run setup only if installation succeeds. bash / zsh / PowerShell 7+ / cmd.exe support the chain.
|
|
77
56
|
|
|
78
|
-
Choose one install channel, not all three. The Bun and npm commands above include setup; do not repeat it if it completed successfully.
|
|
79
|
-
|
|
80
|
-
🤖 **Or have an AI install it for you** — paste this sentence to Claude Code (or any AI assistant):
|
|
81
|
-
|
|
82
|
-
> Install harnessed for me following the guide at `https://github.com/easyinplay/harnessed/blob/main/INSTALL-WITH-AI.md`
|
|
83
|
-
|
|
84
|
-
The AI will auto-fetch the doc + run the install, handling OS / permissions / PATH / corepack edge cases — no need to copy large chunks of text.
|
|
85
|
-
|
|
86
57
|
> [!TIP]
|
|
87
58
|
> 🚀 **The much-loved Agent Teams and Subagent features are auto-enabled in harnessed based on the task!**
|
|
88
59
|
> No need to manually configure `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` — `harnessed setup` writes it to `~/.claude/settings.json` automatically. Pattern A full-stack three-way / Pattern C 4-specialist and other multi-agent workflows work out of the box.
|
package/README-zh.md
CHANGED
|
@@ -40,28 +40,7 @@ irm https://raw.githubusercontent.com/easyinplay/harnessed/main/install.ps1 | ie
|
|
|
40
40
|
bun install -g harnessed && bun run --bun harnessed setup
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
也可使用等价的 `bun add -g harnessed`。Bun 只在你自选此渠道时必需,不是独立二进制或 npm 渠道的前置依赖。用 Bun 安装不代表自动选择 Bun runtime:裸 `harnessed` shim 的 shebang 仍可能调用 Node.js。后续 CLI 命令也应显式使用 Bun runner:
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
# Optional: verification and maintenance
|
|
49
|
-
bun run --bun harnessed --version
|
|
50
|
-
bun run --bun harnessed doctor --host codex
|
|
51
|
-
bun run --bun harnessed status
|
|
52
|
-
bun add -g harnessed@latest
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
可选的高级手动覆盖:只有需要手动指定宿主时才使用 `--platform codex` (Codex) 或 `--platform claude` (Claude Code),不是安装必需步骤:
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
# Optional: manual host override (not required after installation)
|
|
59
|
-
bun run --bun harnessed setup --platform codex
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
runtime 不等于 install manager:package 更新保留 npm 默认语义。Bun 渠道请用跨 CLI 版本可用的 `bun add -g harnessed@latest` 更新。上游工具仍有各自依赖。
|
|
63
|
-
|
|
64
|
-
仅当你明确决定卸载 Bun 渠道时,手动运行 `bun remove -g harnessed`;不要自动卸载其他渠道。
|
|
43
|
+
后续 Bun 命令请使用 `bun run --bun harnessed`;裸 `harnessed` shim 仍可能调用 Node.js。
|
|
65
44
|
|
|
66
45
|
**npm 仍受支持** (需要 Node.js >= 22):
|
|
67
46
|
|
|
@@ -73,14 +52,6 @@ npm install -g harnessed && harnessed setup
|
|
|
73
52
|
|
|
74
53
|
> Windows PowerShell 5.x 不支持 `&&`。两个 package 渠道都应先执行安装命令,成功后再单独执行 setup。bash / zsh / PowerShell 7+ / cmd.exe 支持此 chain。
|
|
75
54
|
|
|
76
|
-
三个安装渠道选一个即可。以上 Bun 和 npm 命令已包含 setup,成功完成后无需重复。
|
|
77
|
-
|
|
78
|
-
🤖 **或让 AI 帮你装** —— 把下面这句话发给 Claude Code (或任何 AI 助手):
|
|
79
|
-
|
|
80
|
-
> Install harnessed for me following the guide at `https://github.com/easyinplay/harnessed/blob/main/INSTALL-WITH-AI.md`
|
|
81
|
-
|
|
82
|
-
AI 会自动 fetch 文档 + 跑安装,处理 OS / 权限 / PATH / corepack 等 edge case —— 无需复制大段文字。
|
|
83
|
-
|
|
84
55
|
> [!TIP]
|
|
85
56
|
> 🚀 **很多人喜爱的 Agent Teams 和 Subagent 功能,在 harnessed 中会根据任务自动启用!**
|
|
86
57
|
> 无需手动配置 `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` —— `harnessed setup` 会自动写入 `~/.claude/settings.json`。Pattern A 全栈三路 / Pattern C 4-specialist 等 multi-agent workflow 即开即用。
|
package/README.md
CHANGED
|
@@ -40,28 +40,7 @@ The binary installer offers setup with your consent in interactive sessions. Do
|
|
|
40
40
|
bun install -g harnessed && bun run --bun harnessed setup
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
`bun add -g harnessed` is an equivalent install command. Bun is required only if you choose this channel, not for the standalone binary or npm channel. Installing with Bun does not select the runtime: the bare `harnessed` shim may still use a Node.js shebang. Keep the explicit Bun runner for subsequent commands:
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
# Optional: verification and maintenance
|
|
49
|
-
bun run --bun harnessed --version
|
|
50
|
-
bun run --bun harnessed doctor --host codex
|
|
51
|
-
bun run --bun harnessed status
|
|
52
|
-
bun add -g harnessed@latest
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
Optional advanced override: use `--platform codex` for Codex or `--platform claude` for Claude Code only when you want to select a host manually:
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
# Optional: manual host override (not required after installation)
|
|
59
|
-
bun run --bun harnessed setup --platform codex
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
The runtime does not identify the install manager: package updates keep the npm default. Use `bun add -g harnessed@latest` to update a Bun-managed install across CLI versions. Upstream tools still have their own requirements.
|
|
63
|
-
|
|
64
|
-
Only when you explicitly choose to remove a Bun-managed installation, run `bun remove -g harnessed`; do not uninstall another channel automatically.
|
|
43
|
+
For later Bun commands, use `bun run --bun harnessed`; the bare `harnessed` shim may still invoke Node.js.
|
|
65
44
|
|
|
66
45
|
**Via npm (supported alternative; Node.js >= 22 required)**:
|
|
67
46
|
|
|
@@ -73,14 +52,6 @@ npm install -g harnessed && harnessed setup
|
|
|
73
52
|
|
|
74
53
|
> Windows PowerShell 5.x does not support `&&`. For either package channel, run the install command first, then run setup only if installation succeeds. bash / zsh / PowerShell 7+ / cmd.exe support the chain.
|
|
75
54
|
|
|
76
|
-
Choose one install channel, not all three. The Bun and npm commands above include setup; do not repeat it if it completed successfully.
|
|
77
|
-
|
|
78
|
-
🤖 **Or have an AI install it for you** — paste this sentence to Claude Code (or any AI assistant):
|
|
79
|
-
|
|
80
|
-
> Install harnessed for me following the guide at `https://github.com/easyinplay/harnessed/blob/main/INSTALL-WITH-AI.md`
|
|
81
|
-
|
|
82
|
-
The AI will auto-fetch the doc + run the install, handling OS / permissions / PATH / corepack edge cases — no need to copy large chunks of text.
|
|
83
|
-
|
|
84
55
|
> [!TIP]
|
|
85
56
|
> 🚀 **The much-loved Agent Teams and Subagent features are auto-enabled in harnessed based on the task!**
|
|
86
57
|
> No need to manually configure `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` — `harnessed setup` writes it to `~/.claude/settings.json` automatically. Pattern A full-stack three-way / Pattern C 4-specialist and other multi-agent workflows work out of the box.
|
package/dist/cli.mjs
CHANGED
|
@@ -37,7 +37,7 @@ var init_package = __esm({
|
|
|
37
37
|
"package.json"() {
|
|
38
38
|
package_default = {
|
|
39
39
|
name: "harnessed",
|
|
40
|
-
version: "5.0.
|
|
40
|
+
version: "5.0.2",
|
|
41
41
|
description: "AI coding harness package manager + composition orchestrator",
|
|
42
42
|
type: "module",
|
|
43
43
|
license: "Apache-2.0",
|
|
@@ -20022,6 +20022,7 @@ async function runStepBInstall(manifestPaths, runOpts = {}) {
|
|
|
20022
20022
|
};
|
|
20023
20023
|
const start = Date.now();
|
|
20024
20024
|
const componentTypes = {};
|
|
20025
|
+
const failureKeywords = {};
|
|
20025
20026
|
const total = manifestPaths.length;
|
|
20026
20027
|
let done = 0;
|
|
20027
20028
|
const emit = (entry) => {
|
|
@@ -20068,6 +20069,7 @@ async function runStepBInstall(manifestPaths, runOpts = {}) {
|
|
|
20068
20069
|
if (r.ok && "alreadyInstalled" in r && r.alreadyInstalled)
|
|
20069
20070
|
return emit({ status: "already-installed", name });
|
|
20070
20071
|
if (r.ok) return emit({ status: "installed", name });
|
|
20072
|
+
if (r.error.keyword) failureKeywords[name] = r.error.keyword;
|
|
20071
20073
|
return emit({ status: "failed", name, reason: r.error.message });
|
|
20072
20074
|
} catch (e) {
|
|
20073
20075
|
return emit({ status: "failed", name, reason: String(e) });
|
|
@@ -20102,6 +20104,7 @@ async function runStepBInstall(manifestPaths, runOpts = {}) {
|
|
|
20102
20104
|
alreadyInstalled,
|
|
20103
20105
|
skipped,
|
|
20104
20106
|
failed,
|
|
20107
|
+
failureKeywords,
|
|
20105
20108
|
elapsedMs: Date.now() - start,
|
|
20106
20109
|
componentTypes
|
|
20107
20110
|
};
|
|
@@ -20114,6 +20117,10 @@ async function reclassifyForceUpdateFailures(firstPass, forcePass, probe) {
|
|
|
20114
20117
|
const m = entry.match(/^([^:]+):\s*(.*)$/s);
|
|
20115
20118
|
const name = (m?.[1] ?? entry).trim();
|
|
20116
20119
|
if (priorlyInstalled.has(name)) {
|
|
20120
|
+
if (forcePass.failureKeywords?.[name] === "update-unsupported") {
|
|
20121
|
+
keptExisting.push({ name, reason: m?.[2]?.trim() ?? "" });
|
|
20122
|
+
continue;
|
|
20123
|
+
}
|
|
20117
20124
|
let present = false;
|
|
20118
20125
|
try {
|
|
20119
20126
|
present = await probe(name);
|
|
@@ -21879,7 +21886,7 @@ ${cl}
|
|
|
21879
21886
|
} else {
|
|
21880
21887
|
console.log(`[harnessed] already up to date (${package_default.version}).`);
|
|
21881
21888
|
}
|
|
21882
|
-
if (
|
|
21889
|
+
if (opts.dryRun === true) {
|
|
21883
21890
|
if (opts.upstreams === true || opts.all === true)
|
|
21884
21891
|
console.log(
|
|
21885
21892
|
"[harnessed] update --dry-run: would re-run base manifests for upstreams; nothing installed."
|