pi-better-harness 0.63.4 → 0.63.5
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/node_modules/pi-better-background-tasks/package.json +2 -2
- 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/src/managed-authority.ts +7 -2
- package/node_modules/pi-better-background-tasks/src/tools.ts +2 -2
- package/node_modules/pi-better-subagents/package.json +2 -2
- 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/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-better-background-tasks",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.14",
|
|
4
4
|
"description": "Pi extension for durable background shell tasks, watchers, logs, and status inspection.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"vitest": "^3.0.0"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"pi-better-server": "0.11.
|
|
71
|
+
"pi-better-server": "0.11.5",
|
|
72
72
|
"proper-lockfile": "^4.1.2"
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"32fae611104bd67f558b968a859d36952c384b19a119494930353c33cca98c63","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"darwin-arm64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.5","contentId":"9705f70238535b9f5537e284bf9ff6b4e954a25fefe2f00e3a6d8e2cd1465d7a"},"sha256":"fb881cf0d08c134719ec46d556cd0f02059980b81415329143e515591e1f0fc1"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"32fae611104bd67f558b968a859d36952c384b19a119494930353c33cca98c63","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"darwin-x64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.5","contentId":"dcdbd713a33b20a9c7b84209e00c9188af13e10cb391180c2017e973de56be5c"},"sha256":"bf2f055664473d7d004cae59f61bab5acb9ec1bda92ec1958763a69994b4f52b"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"32fae611104bd67f558b968a859d36952c384b19a119494930353c33cca98c63","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"linux-arm64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.5","contentId":"ca3b644fa4194af2f4c677007726618121b5f05b1e7be627fd467009060d5d88"},"sha256":"37af12015d7bb4c0e8c153c1694ea6cdae0a2e53fc28ac6ab4e4ca732c76b04a"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"32fae611104bd67f558b968a859d36952c384b19a119494930353c33cca98c63","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"linux-x64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.5","contentId":"fc20e6f78f4b99b72b27c9e5b492b52a88a6498c5736884a853d91482c474106"},"sha256":"e2d742c9a01d5449ccceb43b713fea0041fc51725641a9b04dc9d84a3b71f5fc"}
|
|
@@ -6,8 +6,10 @@ const ordered = (value: any): any => value === null || typeof value !== 'object'
|
|
|
6
6
|
export const backgroundDigest = (value: unknown) => createHash('sha256').update(JSON.stringify(ordered(value))).digest('hex');
|
|
7
7
|
|
|
8
8
|
export const TASK_TIMEOUT_HELP = "Optional whole-task timeout in seconds. Command watchers default to 900 seconds when omitted; pass 0 to use the 24-hour maximum. Spawned processes also have a 24-hour maximum. When the Background tasks sandbox profile sets a command time limit, that cap applies to each actual command (and each watch check) independently: a smaller timeout_seconds still wins, and 0 does not disable the policy cap.";
|
|
9
|
-
//
|
|
10
|
-
|
|
9
|
+
// Basalt 0.5.6 misreads an escaped dollar in nested tool schemas.
|
|
10
|
+
export const JSON_PATH_ROOT_PATTERN = '^[$]';
|
|
11
|
+
// Admission v1/v2 hashes the full schema. Use the published spelling of
|
|
12
|
+
// equivalent patterns and timeout help so clients and servers can upgrade independently.
|
|
11
13
|
const PUBLISHED_TIMEOUT_HELP = "Optional whole-task timeout in seconds. Command watchers default to 900 seconds when omitted; pass 0 to disable. Spawned processes have no default timeout. When the Background tasks sandbox profile sets a command time limit, that cap applies to each actual command (and each watch check) independently: a smaller timeout_seconds still wins, and 0 does not disable the policy cap.";
|
|
12
14
|
|
|
13
15
|
export function backgroundParametersDigest(parameters: unknown): string {
|
|
@@ -15,6 +17,9 @@ export function backgroundParametersDigest(parameters: unknown): string {
|
|
|
15
17
|
if (key === 'timeout_seconds' && value?.description === TASK_TIMEOUT_HELP) {
|
|
16
18
|
return { ...value, description: PUBLISHED_TIMEOUT_HELP };
|
|
17
19
|
}
|
|
20
|
+
if (key === 'path' && value?.type === 'string' && value.pattern === JSON_PATH_ROOT_PATTERN) {
|
|
21
|
+
return { ...value, pattern: '^\\$' };
|
|
22
|
+
}
|
|
18
23
|
return value;
|
|
19
24
|
});
|
|
20
25
|
return createHash('sha256').update(wire).digest('hex');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TASK_TIMEOUT_HELP } from "./managed-authority.js";
|
|
1
|
+
import { JSON_PATH_ROOT_PATTERN, TASK_TIMEOUT_HELP } from "./managed-authority.js";
|
|
2
2
|
import { Type } from "typebox";
|
|
3
3
|
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
4
4
|
import {
|
|
@@ -38,7 +38,7 @@ export { formatLaunch } from "./output.js";
|
|
|
38
38
|
type ToolRuntime = Pick<BackgroundTaskRuntime, "awaitFirstWatchCheck" | "resumeRunningTask" | "spawnTask" | "startWatchTask" | "stopTask">;
|
|
39
39
|
|
|
40
40
|
const JsonPathSchema = Type.String({
|
|
41
|
-
pattern:
|
|
41
|
+
pattern: JSON_PATH_ROOT_PATTERN,
|
|
42
42
|
description: "Root-prefixed JSON path, e.g. $.status, $.terminalFailure, or $.steps[0].status. Bare keys and wildcards are unsupported.",
|
|
43
43
|
});
|
|
44
44
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-better-subagents",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.7",
|
|
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,7 +81,7 @@
|
|
|
81
81
|
"@earendil-works/pi-tui": "*"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"pi-better-server": "0.11.
|
|
84
|
+
"pi-better-server": "0.11.5",
|
|
85
85
|
"proper-lockfile": "^4.1.2",
|
|
86
86
|
"shell-quote": "1.12.0",
|
|
87
87
|
"smol-toml": "1.9.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"32fae611104bd67f558b968a859d36952c384b19a119494930353c33cca98c63","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"darwin-arm64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.5","contentId":"9705f70238535b9f5537e284bf9ff6b4e954a25fefe2f00e3a6d8e2cd1465d7a"},"sha256":"fb881cf0d08c134719ec46d556cd0f02059980b81415329143e515591e1f0fc1"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"32fae611104bd67f558b968a859d36952c384b19a119494930353c33cca98c63","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"darwin-x64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.5","contentId":"dcdbd713a33b20a9c7b84209e00c9188af13e10cb391180c2017e973de56be5c"},"sha256":"bf2f055664473d7d004cae59f61bab5acb9ec1bda92ec1958763a69994b4f52b"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"32fae611104bd67f558b968a859d36952c384b19a119494930353c33cca98c63","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"linux-arm64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.5","contentId":"ca3b644fa4194af2f4c677007726618121b5f05b1e7be627fd467009060d5d88"},"sha256":"37af12015d7bb4c0e8c153c1694ea6cdae0a2e53fc28ac6ab4e4ca732c76b04a"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"32fae611104bd67f558b968a859d36952c384b19a119494930353c33cca98c63","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"linux-x64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.5","contentId":"fc20e6f78f4b99b72b27c9e5b492b52a88a6498c5736884a853d91482c474106"},"sha256":"e2d742c9a01d5449ccceb43b713fea0041fc51725641a9b04dc9d84a3b71f5fc"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-better-harness",
|
|
3
|
-
"version": "0.63.
|
|
3
|
+
"version": "0.63.5",
|
|
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",
|
|
@@ -74,12 +74,12 @@
|
|
|
74
74
|
"@xterm/xterm": "6.0.0",
|
|
75
75
|
"marked": "18.0.5",
|
|
76
76
|
"openai": "6.26.0",
|
|
77
|
-
"pi-better-background-tasks": "0.21.
|
|
77
|
+
"pi-better-background-tasks": "0.21.14",
|
|
78
78
|
"pi-better-goal": "0.18.4",
|
|
79
79
|
"pi-better-sandbox": "0.15.2",
|
|
80
|
-
"pi-better-server": "0.11.
|
|
80
|
+
"pi-better-server": "0.11.5",
|
|
81
81
|
"pi-better-ssh": "0.1.7",
|
|
82
|
-
"pi-better-subagents": "0.41.
|
|
82
|
+
"pi-better-subagents": "0.41.7",
|
|
83
83
|
"proper-lockfile": "^4.1.2",
|
|
84
84
|
"shell-quote": "1.12.0",
|
|
85
85
|
"smol-toml": "1.9.0",
|