Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(pi): 收窄 Linux 清点使用的用户 id 类型
xuzini-xzn843b8f75c65c
diff --git a/packages/maker-core/src/agents/pi/pi-subagent-runs.ts b/packages/maker-core/src/agents/pi/pi-subagent-runs.tsindex 1cbfa31f94..42c351a916 100644--- a/packages/maker-core/src/agents/pi/pi-subagent-runs.ts+++ b/packages/maker-core/src/agents/pi/pi-subagent-runs.ts@@ -3330,8 +3330,8 @@ async function readRecoveryProcessInventory(deadline: number): Promise<string[]|| commands.some((command: unknown) => typeof command !== 'string' || !command.trim())) return null;return commands;}- const uid = process.geteuid?.();- if (!Number.isSafeInteger(uid)) return null;+ if (process.geteuid === undefined) return null;+ const uid = process.geteuid();// COLUMNS does not always yield to -ww when stdout is a pipe. A clipped// line can drop --session-id and look like the child already exited.const { stdout } = await execFileAsync('ps', ['-ww', '-u', String(uid), '-o', 'pid=,args='], {