Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
let fsSafeTestHooks;
function allowFsSafeTestHooks() {
return process.env.NODE_ENV === "test" || process.env.VITEST === "true";
}
export function getFsSafeTestHooks() {
return fsSafeTestHooks;
}
export function __setFsSafeTestHooksForTest(hooks) {
if (hooks && !allowFsSafeTestHooks()) {
throw new Error("__setFsSafeTestHooksForTest is only available in tests");
}
fsSafeTestHooks = hooks;
}