Skip to content

An agentic browser harness: an AI side panel & orb in your own logged-in Chrome, Edge, Arc, Brave or even Firefox run by the agent/subscription you already use (Claude Code, Codex, Antigravity). Free, open source, no API key. Also an MCP server.

457 B
Raw Blame
import { statSync } from 'node:fs';

/**
 * Windows keeps no POSIX permission bits — every file there reads as 0o666 or 0o444 — so a test
 * asserts a mode only where it means something: on Windows both of these answer null.
 */
export const modeOf = (path: string): number | null => (process.platform === 'win32' ? null : statSync(path).mode & 0o777);

export const bits = (mode: number): number | null => (process.platform === 'win32' ? null : mode);