pikiloom 0.4.17 → 0.4.19
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/dist/agent/stream.js +7 -0
- package/dist/cli/main.js +0 -0
- package/package.json +2 -1
package/dist/agent/stream.js
CHANGED
|
@@ -242,6 +242,13 @@ export async function run(cmd, opts, parseLine, parseStderrLine) {
|
|
|
242
242
|
detached: process.platform !== 'win32',
|
|
243
243
|
});
|
|
244
244
|
agentLog(`[spawn] pid=${proc.pid}`);
|
|
245
|
+
proc.stdin?.on('error', (e) => {
|
|
246
|
+
// Some CLIs can exit after producing all output before we finish writing
|
|
247
|
+
// stdin. Treat EPIPE as a normal early-close race; the exit code/stdout
|
|
248
|
+
// still determine the stream result.
|
|
249
|
+
if (e?.code !== 'EPIPE')
|
|
250
|
+
agentWarn(`[stdin] write failed: ${e?.message || e}`);
|
|
251
|
+
});
|
|
245
252
|
const abortStream = () => {
|
|
246
253
|
if (interrupted || proc.killed)
|
|
247
254
|
return;
|
package/dist/cli/main.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pikiloom",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.19",
|
|
4
4
|
"description": "Put the world's smartest AI agents in your pocket. Command local Claude & Gemini via IM. | 让最好用的 IM 变成你电脑上的顶级 Agent 控制台",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"build:dashboard": "vite build --config dashboard/vite.config.ts",
|
|
34
34
|
"clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
35
35
|
"build": "npm run clean && npm run build:dashboard && tsc",
|
|
36
|
+
"postbuild": "node -e \"require('fs').chmodSync('dist/cli/main.js',0o755)\"",
|
|
36
37
|
"prepack": "npm run build",
|
|
37
38
|
"test": "vitest run",
|
|
38
39
|
"test:watch": "vitest"
|