Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
/**
* Resolve hook: route "react" imports to the minimal hook runtime so a hook
* module can be driven under `node --test` without a renderer.
*/
export async function resolve(specifier, context, next) {
if (specifier === "react") {
return {
url: new URL("./react-hook-stub.mjs", import.meta.url).href,
format: "module",
shortCircuit: true,
};
}
return next(specifier, context);
}