Files
shinyobjectz 3f9d5eda2d The agent shell's Node core speaks Windows: platform, arch, ppid, paths, file URLs (#169)
process.platform was Rust's word ("windows", "macos"), so every === "win32" and === "darwin" in the shell was false, on
a Mac too; os.platform() said "darwin" and the arch "arm64" everywhere; there was no process.ppid. path was POSIX only:
resolve(".") named "/C:\Users\...", isAbsolute("C:\x") was false and dirname/basename ignored \. On Windows path
parses drives, shares and \ now and writes /, path.win32 parses them anywhere, and fileURLToPath, pathToFileURL,
createRequire, tmpdir, execSync (cmd) and the module URL (file:///C:/...) follow. tests/node.rs checks each against
Node 22's answer. The arch and parent-pid helpers live in node/os.rs (node.rs was over the size limit).
2026-11-19 14:30:17 -08:00
..
2026-10-31 13:15:29 -07:00

native

raea-native: raea's native calls on JavaScriptCore. TypeScript reaches Rust through one function, __raea_call(name, json); the names it can call live in the registry (core/calls/), each with the TypeScript types of its arguments and answer, registered by whichever crate implements it. raea types writes the types raea imports, so a call that doesn't exist or takes the wrong arguments fails to type-check.

It holds the JavaScriptCore binding (src/jsc.rs), the web shims bundles expect (src/web/: TextEncoder, URL, AbortController, crypto, Blob, ...), and seeds the registry with the shell's native tools (io/shell/: the filesystem, HTTP under a policy, SQLite, tar, HTML to Markdown).

runtime/js/ and sdk/react/ depend on it.