Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
function isZero(value) {
return value === 0 || value === 0n;
}
export function sameFileIdentity(left, right, platform = process.platform) {
if (left.ino !== right.ino) {
return false;
}
// On Windows, path-based stat calls can report dev=0 while fd-based stat
// reports a real volume serial; treat either-side dev=0 as "unknown device".
if (left.dev === right.dev) {
return true;
}
return platform === "win32" && (isZero(left.dev) || isZero(right.dev));
}