@qwen-code/qwen-harness 0.1.0-dev.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.
- package/README.md +20 -15
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -16,9 +16,12 @@ The five custom profiles share Pi's model runtime, TUI, headless modes, compacti
|
|
|
16
16
|
Requires Node.js 22.19 or newer.
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
npm install --
|
|
19
|
+
npm install --global @qwen-code/qwen-harness@dev
|
|
20
|
+
qwen-harness --help
|
|
20
21
|
```
|
|
21
22
|
|
|
23
|
+
For repository development, install dependencies with `npm install --ignore-scripts`.
|
|
24
|
+
|
|
22
25
|
## Development
|
|
23
26
|
|
|
24
27
|
Use one development command for every harness. Omitting `--harness` runs native Pi:
|
|
@@ -30,29 +33,31 @@ npm run dev -- --harness code-arena-react --mode json "Build a product page"
|
|
|
30
33
|
npm run dev -- --harness long-horizon -p "Complete this long-horizon task"
|
|
31
34
|
```
|
|
32
35
|
|
|
33
|
-
##
|
|
36
|
+
## Run
|
|
34
37
|
|
|
35
38
|
```bash
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
node dist/entrypoint.js --harness long-horizon
|
|
39
|
+
qwen-harness
|
|
40
|
+
qwen-harness --harness pi
|
|
41
|
+
qwen-harness --harness agent-arena
|
|
42
|
+
qwen-harness --harness code-arena-html
|
|
43
|
+
qwen-harness --harness code-arena-react
|
|
44
|
+
qwen-harness --harness code-arena-full-stack
|
|
45
|
+
qwen-harness --harness long-horizon
|
|
44
46
|
```
|
|
45
47
|
|
|
46
48
|
The wrapper consumes only the optional `--harness`; every other argument is passed to Pi unchanged:
|
|
47
49
|
|
|
48
50
|
```bash
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
qwen-harness --harness pi -p "Analyze this repository"
|
|
52
|
+
qwen-harness --harness code-arena-html --resume
|
|
53
|
+
qwen-harness --harness code-arena-react --mode json "Build a product page"
|
|
54
|
+
qwen-harness --harness code-arena-full-stack --mode rpc
|
|
55
|
+
qwen-harness --harness long-horizon -p "Complete this long-horizon task"
|
|
54
56
|
```
|
|
55
57
|
|
|
58
|
+
To use the same command from a checkout, run `npm run build && npm link` once. Re-run
|
|
59
|
+
`npm run build` after source changes; `qwen-harness` will continue to point at this checkout.
|
|
60
|
+
|
|
56
61
|
The compiled entrypoint calls Pi's public `main()` function. The `pi` harness adds no
|
|
57
62
|
system prompt or tools, so it behaves like native Pi. The Arena profiles load only their explicit tool extensions. Long Horizon
|
|
58
63
|
loads only its declared `pi-subagents` dependency by its resolved package path and restricts
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qwen-code/qwen-harness",
|
|
3
|
-
"version": "0.1.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"bin": {
|
|
6
|
+
"qwen-harness": "dist/entrypoint.js"
|
|
7
|
+
},
|
|
5
8
|
"publishConfig": {
|
|
6
9
|
"access": "public",
|
|
7
|
-
"tag": "
|
|
10
|
+
"tag": "latest"
|
|
8
11
|
},
|
|
9
12
|
"files": [
|
|
10
13
|
"dist",
|