pi-better-harness 0.62.0 → 0.63.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/CHANGELOG.md +6 -0
- package/README.md +5 -0
- package/bin/pi-remote.mjs +2 -0
- package/extensions/server/detach.ts +1 -0
- package/extensions/server/remote.ts +1 -0
- package/lib/cli.mjs +13 -2
- package/node_modules/pi-better-background-tasks/README.md +1 -0
- package/node_modules/pi-better-background-tasks/package.json +2 -1
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/darwin-arm64.json +1 -1
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/darwin-x64.json +1 -1
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/linux-arm64.json +1 -1
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/linux-x64.json +1 -1
- package/node_modules/pi-better-background-tasks/runtime-client/src/runtime/client.mjs +3 -1
- package/node_modules/pi-better-subagents/README.md +1 -0
- package/node_modules/pi-better-subagents/package.json +2 -1
- package/node_modules/pi-better-subagents/runtime-client/artifacts/darwin-arm64.json +1 -1
- package/node_modules/pi-better-subagents/runtime-client/artifacts/darwin-x64.json +1 -1
- package/node_modules/pi-better-subagents/runtime-client/artifacts/linux-arm64.json +1 -1
- package/node_modules/pi-better-subagents/runtime-client/artifacts/linux-x64.json +1 -1
- package/node_modules/pi-better-subagents/runtime-client/src/runtime/client.mjs +3 -1
- package/package.json +8 -4
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/darwin-arm64.gz +0 -0
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/darwin-x64.gz +0 -0
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/linux-arm64.gz +0 -0
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/linux-x64.gz +0 -0
- package/node_modules/pi-better-subagents/runtime-client/artifacts/darwin-arm64.gz +0 -0
- package/node_modules/pi-better-subagents/runtime-client/artifacts/darwin-x64.gz +0 -0
- package/node_modules/pi-better-subagents/runtime-client/artifacts/linux-arm64.gz +0 -0
- package/node_modules/pi-better-subagents/runtime-client/artifacts/linux-x64.gz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.63.0] - 2026-11-30
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Include the shared server in both Harness install modes. Set `PI_BETTER_SERVER_ENABLE_REMOTE=1` before starting Pi to enable `/remote`, `/detach` and `pi-remote`.
|
|
8
|
+
|
|
3
9
|
## [0.62.0] - 2026-11-30
|
|
4
10
|
|
|
5
11
|
### Added
|
package/README.md
CHANGED
|
@@ -11,10 +11,13 @@ Use `pi-better-harness` when you want the full working set for Pi. It manages:
|
|
|
11
11
|
- `pi-better-sandbox` for an opt-in write sandbox around Pi's foreground tools.
|
|
12
12
|
- `pi-better-subagents` for detached, sandboxed subagent runs.
|
|
13
13
|
- `pi-better-background-tasks` for durable shell tasks and watchers.
|
|
14
|
+
- `pi-better-server` provides the shared task runtime and opt-in remote session commands.
|
|
14
15
|
- `pi-better-ssh` for short remote commands over reusable SSH connections.
|
|
15
16
|
- `pi-better-goal` for explicit triggers, pause/resume, and background-aware continuation.
|
|
16
17
|
- Harness-owned Goal & Todo for session context and checklist progress. Saved work appears in the panel. Automatic Goal execution defaults to Off.
|
|
17
18
|
|
|
19
|
+
Both Harness install methods include the shared server for subagents and background tasks. Remote session commands are off by default. Set `PI_BETTER_SERVER_ENABLE_REMOTE=1` before starting Pi to enable `/remote` and `/detach`. The same variable enables the `pi-remote` CLI.
|
|
20
|
+
|
|
18
21
|
`pi-better-read-aloud` is intentionally not included yet.
|
|
19
22
|
|
|
20
23
|
<a id="outcome--todo"></a>
|
|
@@ -508,6 +511,8 @@ Use the installer when you want every core extension with standalone package ide
|
|
|
508
511
|
|
|
509
512
|
## Update Or Remove
|
|
510
513
|
|
|
514
|
+
For an installer-managed setup, run `npx pi-better-harness@latest install` to update Harness, Server and both task clients together. Add `--local` for a project install. For a direct bundle install, run `pi update npm:pi-better-harness`.
|
|
515
|
+
|
|
511
516
|
Remove every standalone package:
|
|
512
517
|
|
|
513
518
|
```sh
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "pi-better-server/src/detach/extension.ts";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "pi-better-server/src/remote-client/extension.ts";
|
package/lib/cli.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { manageInstructions } from "./instructions.mjs";
|
|
|
8
8
|
import { webUiDisabledMessage, webUiEnabled } from "./web-ui-flag.mjs";
|
|
9
9
|
|
|
10
10
|
const packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
11
|
-
const { version } = JSON.parse(readFileSync(resolve(packageRoot, "package.json"), "utf8"));
|
|
11
|
+
const { version, dependencies } = JSON.parse(readFileSync(resolve(packageRoot, "package.json"), "utf8"));
|
|
12
12
|
|
|
13
13
|
const HARNESS_PACKAGE = "pi-better-harness";
|
|
14
14
|
|
|
@@ -19,9 +19,18 @@ export const componentPackages = [
|
|
|
19
19
|
"pi-better-subagents",
|
|
20
20
|
"pi-better-background-tasks",
|
|
21
21
|
"pi-better-ssh",
|
|
22
|
+
"pi-better-server",
|
|
22
23
|
"pi-better-goal",
|
|
23
24
|
];
|
|
24
25
|
|
|
26
|
+
// Pi saves the install spec. Resolve the server and its clients as a tested set.
|
|
27
|
+
const runtimeVersions = {
|
|
28
|
+
[HARNESS_PACKAGE]: version,
|
|
29
|
+
"pi-better-server": dependencies["pi-better-server"],
|
|
30
|
+
"pi-better-subagents": dependencies["pi-better-subagents"],
|
|
31
|
+
"pi-better-background-tasks": dependencies["pi-better-background-tasks"],
|
|
32
|
+
};
|
|
33
|
+
|
|
25
34
|
function usage() {
|
|
26
35
|
const web = webUiEnabled();
|
|
27
36
|
return `Usage: pi-better-harness <install|uninstall> [--local]
|
|
@@ -107,7 +116,9 @@ export function run(argv, options = {}) {
|
|
|
107
116
|
const piCommand = process.platform === "win32" ? "pi.cmd" : "pi";
|
|
108
117
|
const piAction = command === "install" ? "install" : "remove";
|
|
109
118
|
for (const packageName of [...componentPackages, HARNESS_PACKAGE]) {
|
|
110
|
-
const
|
|
119
|
+
const pin = runtimeVersions[packageName];
|
|
120
|
+
const source = command === "install" && pin ? `npm:${packageName}@${pin}` : `npm:${packageName}`;
|
|
121
|
+
const args = [piAction, source, ...scopeArgs(local)];
|
|
111
122
|
const result = spawn(piCommand, args, { stdio: "inherit" });
|
|
112
123
|
if (result.error) {
|
|
113
124
|
stderr.write(`Failed to run Pi for ${packageName}: ${result.error.message}\n`);
|
|
@@ -13,6 +13,7 @@ Use `pi-better-background-tasks` when a command should keep running while the fo
|
|
|
13
13
|
Run `pi-background-runtime-status` to ensure the manifest-pinned local server and
|
|
14
14
|
print its canonical agent root, build, Node version, instance and capabilities as JSON.
|
|
15
15
|
This command does not create a hosted Pi session or require Harness.
|
|
16
|
+
The package pins its `pi-better-server` dependency and verifies the shared runtime archive against its own manifest.
|
|
16
17
|
The first use installs a verified private Node 24 and locked server dependencies.
|
|
17
18
|
Set `PI_OFFLINE=1` to require the cached runtime without downloads.
|
|
18
19
|
`PI_CODING_AGENT_DIR` selects the agent root; `PI_SERVER_DIR` selects the initial
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-better-background-tasks",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.9",
|
|
4
4
|
"description": "Pi extension for durable background shell tasks, watchers, logs, and status inspection.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"vitest": "^3.0.0"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
+
"pi-better-server": "0.11.0",
|
|
71
72
|
"proper-lockfile": "^4.1.2"
|
|
72
73
|
}
|
|
73
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"67dd97a7bfc3aa83443b093c576f7e0d71f1f8938e66616056e5711691ec8b13","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"darwin-arm64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.0","contentId":"cc56bc92eab4db783ddbe1a98e926b4ad5436f2f87defe697dd25dd6899844bb"},"sha256":"bd139ea6f47ef7fd686cd6c72412713218f22a11b541316d7d687afda8918265"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"67dd97a7bfc3aa83443b093c576f7e0d71f1f8938e66616056e5711691ec8b13","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"darwin-x64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.0","contentId":"887c9d9cf228cca07b5d43f9830d23be0bc7b9a9ff25494b88394a656f91b8ad"},"sha256":"1d3dd02894aab7e86df6a8c105b202e1c36702fd57833c3b6f28c2ffcd7f7b7a"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"67dd97a7bfc3aa83443b093c576f7e0d71f1f8938e66616056e5711691ec8b13","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"linux-arm64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.0","contentId":"aad6f7f3c71f9cccf06e90d88ea3aac2613302719528c93c1c32f15402ec4752"},"sha256":"4337edea37a1a85b207ed76d11a4121226c2ea834a0ec2ddec7e7ebbc7a1d190"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"67dd97a7bfc3aa83443b093c576f7e0d71f1f8938e66616056e5711691ec8b13","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"linux-x64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.0","contentId":"603b27d9a1327d51ee82c9ad2df431a81cfeaa90948b9ebf37d7ff993d9760bb"},"sha256":"430af59244b90273c1faa03daf0561bb08166aa249e151a50b6e5523cb61bbea"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { spawn } from "node:child_process";
|
|
2
2
|
import { closeSync, openSync, readFileSync } from "node:fs";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
3
4
|
import { connect } from "node:net";
|
|
4
5
|
import { join } from "node:path";
|
|
5
6
|
import { setTimeout as delay } from "node:timers/promises";
|
|
@@ -75,7 +76,8 @@ export async function ensureRuntime(options) {
|
|
|
75
76
|
let artifact;
|
|
76
77
|
try {
|
|
77
78
|
const manifest = JSON.parse(readFileSync(join(directory, `${platform}.json`), "utf8"));
|
|
78
|
-
|
|
79
|
+
const archive = createRequire(import.meta.url).resolve(`pi-better-server/runtime-artifacts/${platform}.gz`);
|
|
80
|
+
artifact = { ...manifest, bytes: readFileSync(archive) };
|
|
79
81
|
}
|
|
80
82
|
catch (error) {
|
|
81
83
|
throw new Error(`runtime-unavailable: cannot read pinned artifact for ${platform}; reinstall the standalone package. ${String(error)}`);
|
|
@@ -11,6 +11,7 @@ Use `pi-better-subagents` when you want Pi to launch independent agent work with
|
|
|
11
11
|
Run `pi-subagents-runtime-status` to ensure the manifest-pinned local server and
|
|
12
12
|
print its canonical agent root, build, Node version, instance and capabilities as JSON.
|
|
13
13
|
This command does not create a hosted Pi session or require Harness.
|
|
14
|
+
The package pins its `pi-better-server` dependency and verifies the shared runtime archive against its own manifest.
|
|
14
15
|
The first use installs a verified private Node 24 and locked server dependencies.
|
|
15
16
|
Set `PI_OFFLINE=1` to require the cached runtime without downloads.
|
|
16
17
|
`PI_CODING_AGENT_DIR` selects the agent root; `PI_SERVER_DIR` selects the initial
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-better-subagents",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.2",
|
|
4
4
|
"description": "Pi extension for detached, sandboxed subagent runs that keep the foreground session free.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"@earendil-works/pi-tui": "*"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
+
"pi-better-server": "0.11.0",
|
|
84
85
|
"proper-lockfile": "^4.1.2",
|
|
85
86
|
"shell-quote": "1.12.0",
|
|
86
87
|
"smol-toml": "1.9.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"67dd97a7bfc3aa83443b093c576f7e0d71f1f8938e66616056e5711691ec8b13","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"darwin-arm64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.0","contentId":"cc56bc92eab4db783ddbe1a98e926b4ad5436f2f87defe697dd25dd6899844bb"},"sha256":"bd139ea6f47ef7fd686cd6c72412713218f22a11b541316d7d687afda8918265"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"67dd97a7bfc3aa83443b093c576f7e0d71f1f8938e66616056e5711691ec8b13","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"darwin-x64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.0","contentId":"887c9d9cf228cca07b5d43f9830d23be0bc7b9a9ff25494b88394a656f91b8ad"},"sha256":"1d3dd02894aab7e86df6a8c105b202e1c36702fd57833c3b6f28c2ffcd7f7b7a"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"67dd97a7bfc3aa83443b093c576f7e0d71f1f8938e66616056e5711691ec8b13","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"linux-arm64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.0","contentId":"aad6f7f3c71f9cccf06e90d88ea3aac2613302719528c93c1c32f15402ec4752"},"sha256":"4337edea37a1a85b207ed76d11a4121226c2ea834a0ec2ddec7e7ebbc7a1d190"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"67dd97a7bfc3aa83443b093c576f7e0d71f1f8938e66616056e5711691ec8b13","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"linux-x64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.0","contentId":"603b27d9a1327d51ee82c9ad2df431a81cfeaa90948b9ebf37d7ff993d9760bb"},"sha256":"430af59244b90273c1faa03daf0561bb08166aa249e151a50b6e5523cb61bbea"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { spawn } from "node:child_process";
|
|
2
2
|
import { closeSync, openSync, readFileSync } from "node:fs";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
3
4
|
import { connect } from "node:net";
|
|
4
5
|
import { join } from "node:path";
|
|
5
6
|
import { setTimeout as delay } from "node:timers/promises";
|
|
@@ -75,7 +76,8 @@ export async function ensureRuntime(options) {
|
|
|
75
76
|
let artifact;
|
|
76
77
|
try {
|
|
77
78
|
const manifest = JSON.parse(readFileSync(join(directory, `${platform}.json`), "utf8"));
|
|
78
|
-
|
|
79
|
+
const archive = createRequire(import.meta.url).resolve(`pi-better-server/runtime-artifacts/${platform}.gz`);
|
|
80
|
+
artifact = { ...manifest, bytes: readFileSync(archive) };
|
|
79
81
|
}
|
|
80
82
|
catch (error) {
|
|
81
83
|
throw new Error(`runtime-unavailable: cannot read pinned artifact for ${platform}; reinstall the standalone package. ${String(error)}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-better-harness",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.63.0",
|
|
4
4
|
"description": "Pi extension bundle for a write sandbox, subagents, background tasks, SSH, Goals, and Todo lists.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
"extensions/subagents/index.ts",
|
|
23
23
|
"extensions/background-tasks/index.ts",
|
|
24
24
|
"extensions/ssh/index.ts",
|
|
25
|
+
"extensions/server/detach.ts",
|
|
26
|
+
"extensions/server/remote.ts",
|
|
25
27
|
"extensions/goal/index.ts",
|
|
26
28
|
"extensions/task-context/index.ts",
|
|
27
29
|
"extensions/project-context/index.ts",
|
|
@@ -45,7 +47,8 @@
|
|
|
45
47
|
"homepage": "https://github.com/1aboveio/pi-better-harness/tree/main/packages/pi-better-harness#readme",
|
|
46
48
|
"bin": {
|
|
47
49
|
"pi-better-harness": "bin/pi-better-harness.mjs",
|
|
48
|
-
"pi-agent-catalog": "bin/pi-agent-catalog.mjs"
|
|
50
|
+
"pi-agent-catalog": "bin/pi-agent-catalog.mjs",
|
|
51
|
+
"pi-remote": "bin/pi-remote.mjs"
|
|
49
52
|
},
|
|
50
53
|
"files": [
|
|
51
54
|
"README.md",
|
|
@@ -71,11 +74,12 @@
|
|
|
71
74
|
"@xterm/xterm": "6.0.0",
|
|
72
75
|
"marked": "18.0.5",
|
|
73
76
|
"openai": "6.26.0",
|
|
74
|
-
"pi-better-background-tasks": "0.21.
|
|
77
|
+
"pi-better-background-tasks": "0.21.9",
|
|
75
78
|
"pi-better-goal": "0.18.3",
|
|
76
79
|
"pi-better-sandbox": "0.15.2",
|
|
80
|
+
"pi-better-server": "0.11.0",
|
|
77
81
|
"pi-better-ssh": "0.1.7",
|
|
78
|
-
"pi-better-subagents": "0.41.
|
|
82
|
+
"pi-better-subagents": "0.41.2",
|
|
79
83
|
"proper-lockfile": "^4.1.2",
|
|
80
84
|
"shell-quote": "1.12.0",
|
|
81
85
|
"smol-toml": "1.9.0",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|