pi-sessions 0.7.0 → 0.7.1
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.
|
@@ -39,7 +39,7 @@ export async function spawnSessionMessagingBrokerIfNeeded(): Promise<void> {
|
|
|
39
39
|
detached: true,
|
|
40
40
|
stdio: "ignore",
|
|
41
41
|
windowsHide: process.platform === "win32",
|
|
42
|
-
env:
|
|
42
|
+
env: brokerSpawnEnv(),
|
|
43
43
|
});
|
|
44
44
|
child.unref();
|
|
45
45
|
await waitForBroker();
|
|
@@ -162,3 +162,19 @@ function releaseSpawnLock(): void {
|
|
|
162
162
|
unlinkSync(brokerSpawnLockPath);
|
|
163
163
|
} catch {}
|
|
164
164
|
}
|
|
165
|
+
|
|
166
|
+
function brokerSpawnEnv(): NodeJS.ProcessEnv {
|
|
167
|
+
// NODE_NO_WARNINGS silences Node's experimental-TypeScript warning when the
|
|
168
|
+
// broker is launched as `node process.ts`. Redundant while stdio is ignored,
|
|
169
|
+
// but cheap insurance if that changes or an older Node revives the warning.
|
|
170
|
+
const env: NodeJS.ProcessEnv = { ...process.env, NODE_NO_WARNINGS: "1" };
|
|
171
|
+
// process.execPath is the Pi executable. As a Bun-compiled binary it treats a
|
|
172
|
+
// positional path as a file argument to the agent, not a script to run, which
|
|
173
|
+
// would relaunch a full agent session and recurse. BUN_BE_BUN makes it behave
|
|
174
|
+
// as the Bun CLI and execute process.ts directly. It is set whenever Bun is the
|
|
175
|
+
// runtime (compiled binary or `bun run`) and ignored by a plain Node launch.
|
|
176
|
+
if (process.versions.bun) {
|
|
177
|
+
env.BUN_BE_BUN = "1";
|
|
178
|
+
}
|
|
179
|
+
return env;
|
|
180
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-sessions",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Pi session search, ask, handoff, messaging, auto-titling, and indexing tools",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,6 +41,9 @@
|
|
|
41
41
|
"check": "biome check . && tsc --noEmit && vitest run",
|
|
42
42
|
"prepare": "husky || true"
|
|
43
43
|
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"typebox": "^1.1.38"
|
|
46
|
+
},
|
|
44
47
|
"devDependencies": {
|
|
45
48
|
"@biomejs/biome": "^2.4.14",
|
|
46
49
|
"@earendil-works/pi-agent-core": "^0.80.2",
|
|
@@ -50,7 +53,6 @@
|
|
|
50
53
|
"@types/node": "^25.6.2",
|
|
51
54
|
"husky": "^9.1.7",
|
|
52
55
|
"lint-staged": "^17.0.3",
|
|
53
|
-
"typebox": "^1.1.38",
|
|
54
56
|
"typescript": "^6.0.3",
|
|
55
57
|
"vitest": "^4.1.5"
|
|
56
58
|
},
|
|
@@ -58,8 +60,7 @@
|
|
|
58
60
|
"@earendil-works/pi-agent-core": ">=0.80.2",
|
|
59
61
|
"@earendil-works/pi-ai": ">=0.80.2",
|
|
60
62
|
"@earendil-works/pi-coding-agent": ">=0.80.2",
|
|
61
|
-
"@earendil-works/pi-tui": ">=0.80.2"
|
|
62
|
-
"typebox": ">=1.1.24"
|
|
63
|
+
"@earendil-works/pi-tui": ">=0.80.2"
|
|
63
64
|
},
|
|
64
65
|
"lint-staged": {
|
|
65
66
|
"*.{js,cjs,mjs,jsx,ts,tsx,json,jsonc}": "biome check --write --no-errors-on-unmatched"
|