pi-harness-runtime 0.10.23 → 0.10.24
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 +19 -0
- package/package.json +1 -1
- package/packages/todo-bd-sync/dist/src/detector.js +108 -0
- package/packages/todo-bd-sync/src/detector.ts +1 -1
- package/packages/auth/src/minimax-browser-auth.js +0 -889
- package/packages/capability-registry/src/types.js +0 -10
- package/packages/checkpoint/src/checkpoint-manager.js +0 -29
- package/packages/clipboard/src/copy-sync.js +0 -169
- package/packages/clipboard/src/gist-relay.js +0 -185
- package/packages/clipboard/src/github-login.js +0 -68
- package/packages/config-capture/src/index.js +0 -268
- package/packages/cookie-sanitizer/src/atomic-write.js +0 -66
- package/packages/cookie-sanitizer/src/detect-format.js +0 -87
- package/packages/cookie-sanitizer/src/index.js +0 -38
- package/packages/cookie-sanitizer/src/infer-provider.js +0 -95
- package/packages/cookie-sanitizer/src/normalize.js +0 -74
- package/packages/cookie-sanitizer/src/parse-json.js +0 -107
- package/packages/cookie-sanitizer/src/parse-netscape.js +0 -98
- package/packages/cookie-sanitizer/src/sync.js +0 -268
- package/packages/cookie-sanitizer/src/types.js +0 -12
- package/packages/cookie-sanitizer/src/watcher.js +0 -147
- package/packages/evaluation-engine/src/engine.js +0 -343
- package/packages/evaluation-engine/src/index.js +0 -7
- package/packages/evaluation-engine/src/types.js +0 -14
- package/packages/event-store/src/types.js +0 -5
- package/packages/experience-replay/src/index.js +0 -6
- package/packages/experience-replay/src/replay.js +0 -228
- package/packages/experience-replay/src/types.js +0 -6
- package/packages/learning-engine/src/engine.js +0 -294
- package/packages/learning-engine/src/index.js +0 -7
- package/packages/learning-engine/src/types.js +0 -63
- package/packages/memory-engine/src/engine.js +0 -507
- package/packages/memory-engine/src/index.js +0 -7
- package/packages/memory-engine/src/types.js +0 -39
- package/packages/model-registry/src/types.js +0 -5
- package/packages/performance-optimizer/src/index.js +0 -6
- package/packages/performance-optimizer/src/optimizer.js +0 -304
- package/packages/performance-optimizer/src/types.js +0 -6
- package/packages/projection-engine/src/types.js +0 -5
- package/packages/providers/src/provider-id.js +0 -112
- package/packages/quota-manager/src/quota-manager.js +0 -259
- package/packages/quota-manager/src/tui-usage-monitor.js +0 -267
- package/packages/todo-bd-sync/src/detector.js +0 -131
- package/packages/todo-bd-sync/src/extension.js +0 -104
- package/packages/todo-bd-sync/src/sync.js +0 -289
- package/packages/todo-bd-sync/src/task-analyzer.js +0 -239
- package/packages/todo-bd-sync/src/types.js +0 -66
- package/packages/token-estimation/src/index.js +0 -114
- package/packages/workflow-events/src/types.js +0 -5
- package/packages/write-review/src/blackboard.js +0 -228
- package/packages/write-review/src/gate.js +0 -137
- package/packages/write-review/src/index.js +0 -17
- package/packages/write-review/src/injection.js +0 -141
- package/packages/write-review/src/review.js +0 -153
- package/packages/write-review/src/trigger.js +0 -106
- package/packages/write-review/src/types.js +0 -25
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.10.24](https://github.com/ManotLuijiu/pi-harness-runtime/compare/v0.10.14...v0.10.24) (2026-08-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **file-copy-helper:** inject cp rule when user asks to mimic/copy files ([f089f0d](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f089f0d5e3e933231c99ee38cf18fa208c8eb8b2))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* align TS formatting with main (remove 3-line logError) ([2515ad5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/2515ad54f43f0566123c686d3ec4f92ad363ea13))
|
|
16
|
+
* correct import paths for notification-center dist files ([f248722](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f24872240c07bf115f69530a3bdabedf73e3c858))
|
|
17
|
+
* handle array/object content in pi-usage-status build detection ([68b07a8](https://github.com/ManotLuijiu/pi-harness-runtime/commit/68b07a8e8167a95ab1b519782a07ec3a582eec5a))
|
|
18
|
+
* skip publish-time scripts in release workflow ([b385148](https://github.com/ManotLuijiu/pi-harness-runtime/commit/b38514835dc3f6fd717ca8c71dbb6d131de4887f))
|
|
19
|
+
* suppress noisy stack traces in harness agents ([34bbe98](https://github.com/ManotLuijiu/pi-harness-runtime/commit/34bbe98f59e740fcfcd8622f1dcc09c379f6f3df))
|
|
20
|
+
* **todo-bd-sync:** disable auto-injection completely - was causing noisy output ([699d6de](https://github.com/ManotLuijiu/pi-harness-runtime/commit/699d6de5e7f3b062799a0f791b386d1ecd452b00))
|
|
21
|
+
* **todo-bd-sync:** silence all console output - no startup warnings ([2d29bcf](https://github.com/ManotLuijiu/pi-harness-runtime/commit/2d29bcf51b25fe1b1253aa965e370852f3cae289))
|
|
22
|
+
* update bd install URL to correct repo ([5800f30](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5800f304913912a84c34d3f42a29b01bb2d87b24))
|
|
23
|
+
|
|
5
24
|
### [0.10.23](https://github.com/ManotLuijiu/pi-harness-runtime/compare/v0.10.14...v0.10.23) (2026-08-09)
|
|
6
25
|
|
|
7
26
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
3
|
+
|
|
4
|
+
// packages/todo-bd-sync/src/detector.ts
|
|
5
|
+
import { execSync } from "node:child_process";
|
|
6
|
+
import { existsSync } from "node:fs";
|
|
7
|
+
import { join } from "node:path";
|
|
8
|
+
import { homedir } from "node:os";
|
|
9
|
+
function isRpivTodoInstalled() {
|
|
10
|
+
try {
|
|
11
|
+
const output = execSync("npm list -g @juicesharp/rpiv-todo 2>/dev/null || echo 'NOT_FOUND'", {
|
|
12
|
+
encoding: "utf8",
|
|
13
|
+
timeout: 5000
|
|
14
|
+
});
|
|
15
|
+
return output.includes("@juicesharp/rpiv-todo") && !output.includes("NOT_FOUND");
|
|
16
|
+
} catch {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function isRpivTodoLoaded() {
|
|
21
|
+
const extensionsDir = join(homedir(), ".pi", "agent", "extensions");
|
|
22
|
+
const possiblePaths = [
|
|
23
|
+
join(extensionsDir, "rpiv-todo"),
|
|
24
|
+
join(extensionsDir, "@juicesharp", "rpiv-todo"),
|
|
25
|
+
join(extensionsDir, "node_modules", "@juicesharp", "rpiv-todo")
|
|
26
|
+
];
|
|
27
|
+
for (const path of possiblePaths) {
|
|
28
|
+
if (existsSync(path)) {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
try {
|
|
33
|
+
__require.resolve("@juicesharp/rpiv-todo");
|
|
34
|
+
return true;
|
|
35
|
+
} catch {}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
function getRpivTodoVersion() {
|
|
39
|
+
try {
|
|
40
|
+
const output = execSync(`npm list -g @juicesharp/rpiv-todo --json 2>/dev/null | grep '"version"' | head -1`, { encoding: "utf8", timeout: 5000 });
|
|
41
|
+
const match = output.match(/"version":\s*"([^"]+)"/);
|
|
42
|
+
return match ? match[1] : null;
|
|
43
|
+
} catch {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function isBdInstalled() {
|
|
48
|
+
try {
|
|
49
|
+
const output = execSync("which bd 2>/dev/null || echo 'NOT_FOUND'", {
|
|
50
|
+
encoding: "utf8",
|
|
51
|
+
timeout: 5000
|
|
52
|
+
});
|
|
53
|
+
return output.includes("bd") && !output.includes("NOT_FOUND");
|
|
54
|
+
} catch {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function isBdInitialized(cwd) {
|
|
59
|
+
const projectDir = cwd || process.cwd();
|
|
60
|
+
const beadsDir = join(projectDir, ".beads");
|
|
61
|
+
return existsSync(beadsDir);
|
|
62
|
+
}
|
|
63
|
+
function getBdVersion() {
|
|
64
|
+
try {
|
|
65
|
+
const output = execSync("bd --version 2>/dev/null || echo 'unknown'", {
|
|
66
|
+
encoding: "utf8",
|
|
67
|
+
timeout: 5000
|
|
68
|
+
});
|
|
69
|
+
return output.trim().replace("bd version ", "");
|
|
70
|
+
} catch {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
function getDependencyStatus(cwd) {
|
|
75
|
+
const installed = isBdInstalled();
|
|
76
|
+
return {
|
|
77
|
+
rpivTodo: {
|
|
78
|
+
installed: isRpivTodoInstalled(),
|
|
79
|
+
version: getRpivTodoVersion(),
|
|
80
|
+
loaded: isRpivTodoLoaded()
|
|
81
|
+
},
|
|
82
|
+
bd: {
|
|
83
|
+
installed,
|
|
84
|
+
version: installed ? getBdVersion() : null,
|
|
85
|
+
initialized: installed ? isBdInitialized(cwd) : false,
|
|
86
|
+
installUrl: "https://github.com/beads/bd#installation"
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function logDependencyStatus() {
|
|
91
|
+
const status = getDependencyStatus();
|
|
92
|
+
console.log("[DEBUG todo-bd-sync] Dependency check:");
|
|
93
|
+
console.log(` rpiv-todo: installed=${status.rpivTodo.installed}, version=${status.rpivTodo.version}, loaded=${status.rpivTodo.loaded}`);
|
|
94
|
+
console.log(` bd: installed=${status.bd.installed}, version=${status.bd.version}, initialized=${status.bd.initialized}`);
|
|
95
|
+
if (!status.bd.installed) {
|
|
96
|
+
console.log(` bd install: ${status.bd.installUrl}`);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
export {
|
|
100
|
+
logDependencyStatus,
|
|
101
|
+
isRpivTodoLoaded,
|
|
102
|
+
isRpivTodoInstalled,
|
|
103
|
+
isBdInstalled,
|
|
104
|
+
isBdInitialized,
|
|
105
|
+
getRpivTodoVersion,
|
|
106
|
+
getDependencyStatus,
|
|
107
|
+
getBdVersion
|
|
108
|
+
};
|
|
@@ -148,7 +148,7 @@ export function getDependencyStatus(cwd?: string): DependencyStatus {
|
|
|
148
148
|
installed,
|
|
149
149
|
version: installed ? getBdVersion() : null,
|
|
150
150
|
initialized: installed ? isBdInitialized(cwd) : false,
|
|
151
|
-
installUrl: "https://github.com/
|
|
151
|
+
installUrl: "https://github.com/beads/bd#installation",
|
|
152
152
|
},
|
|
153
153
|
};
|
|
154
154
|
}
|