Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
feat(shared): register FILE_NOT_FOUND error code
ZxlDragonDoctor8e92553edbf8
diff --git a/packages/shared/src/errors.ts b/packages/shared/src/errors.tsindex 919bddc4a..ef1ad4007 100644--- a/packages/shared/src/errors.ts+++ b/packages/shared/src/errors.ts@@ -62,9 +62,11 @@ export const ErrorCodes = {TOOL_DENIED: "TOOL_DENIED",TOOL_TIMEOUT: "TOOL_TIMEOUT",TOOL_FAILED: "TOOL_FAILED",+ /** Read/Write/Edit target path does not exist. Distinct from TOOL_DENIED. */+ FILE_NOT_FOUND: "FILE_NOT_FOUND",/*** The mutation recovery guard stopped the turn after repeated same-path Edit- * or patch-command failures (spec 18-line-anchored-edit-contract §9.3). Retriable: the user may continue.+ * or patch-command failures (spec 18-line-anchored-edit-contract 搂9.3). Retriable: the user may continue.*/MUTATION_RETRY_BUDGET_EXHAUSTED: "MUTATION_RETRY_BUDGET_EXHAUSTED",PROCESS_RESOURCE_EXHAUSTED: "PROCESS_RESOURCE_EXHAUSTED",