@sema-agent/core
Version:
Stateless, task-oriented AI agent core
11 lines (10 loc) • 698 B
TypeScript
/**
* Does this platform report POSIX permission bits worth judging? Windows' `Stats.mode` is a projection of
* the read-only attribute (`0o666` / `0o444`; a directory created with mode `0o700` reads `0o666` too), not
* permission bits — so a group/world-writable test over it fires on every file and says nothing about who may
* write. Every reader of `mode & 0o022` (and the file-mode report of the execution env) asks THIS predicate,
* so a platform never judges a bit it cannot have.
*
* `platform` is a parameter so a caller can ask about the platform it was told, not only the one it runs on.
*/
export declare function posixModeBitsMeaningful(platform?: NodeJS.Platform): boolean;