Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
packages:
- apps/*
- packages/*
- docs
allowBuilds:
'@google/genai': true
electron: true
electron-winstaller: true
esbuild: true
node-pty: true
protobufjs: true
# koffi (FFI of transcribe-cpp) loads the prebuilt @koromix/koffi-<platform>
# binary; its from-source install script was never approved and is not needed.
koffi: false
# pnpm records exact-version exclusions for the current, explicitly requested
# Pi 1.5.2 release while it is inside the minimum release age window. Keep these
# entries exact; do not widen them to package names or ranges.
minimumReleaseAgeExclude:
- '@earendil-works/[email protected]'
- '@earendil-works/[email protected]'
- '@earendil-works/[email protected]'
- '@earendil-works/[email protected]'
- '@earendil-works/[email protected]'
- '@earendil-works/[email protected]'
- '@earendil-works/[email protected]'
- '@earendil-works/[email protected]'
# Advisory fixes for transitives whose parents still resolve the vulnerable
# version. Drop each one once its parent ships a release that resolves the
# patched version on its own.
overrides:
# Tailwind's CSS optimizer in 4.3.3 emits a false warning for the valid
# Custom Highlight API selector `::highlight()`. The parser fix ships in
# lightningcss 1.33.0.
'@tailwindcss/node>lightningcss': 1.33.0
# Used by build tooling and the bundled Pi coding-agent runtime via minimatch.
brace-expansion@1: '>=1.1.21 <2' # GHSA via minimatch@3
brace-expansion@2: '>=2.1.7 <3' # GHSA via @electron/universal, jake
brace-expansion@5: '>=5.0.12 <6' # GHSA via app-builder-lib and pi-coding-agent
# Ships in the app. mermaid allows ^3.3.3 but resolves its own copy, so the
# renderer would load an unpatched sanitizer next to our patched one.
dompurify@3: '>=3.4.17 <4' # renderer SVG sanitizer, including Mermaid
fast-uri@3: '>=3.1.8 <4' # GHSA via ajv@8
'@xmldom/[email protected]': '>=0.8.15 <0.9' # GHSA via plist in electron-builder
'@xmldom/[email protected]': '>=0.9.12 <0.10' # GHSA via plist in electron-builder
http-cache-semantics@4: '>=4.3.0 <5' # GHSA via @electron/get
js-yaml@4: '>=4.3.2 <5' # CVE-2026-59870 via electron-updater and electron-builder
source-map-js@1: '>=1.2.2 <2' # GHSA via Vite/PostCSS and Vitest
undici@6: '>=6.28.1 <7' # GHSA via node-gyp@12 and pi-ai peer
undici@7: '>=7.29.1 <8' # GHSA via Electron's @electron/get
vue@3: '>=3.5.42 <4' # GHSA via the VitePress docs site
# Docs site only. vitepress 1.6.4 asks for vite ^5.4.14 and no vite 5 is
# patched — the fixes for all four advisories (server.fs.deny bypass, esbuild
# dev-server CORS, optimized-deps `.map` traversal, launch-editor UNC) land in
# 6.4.3. vitepress 2, which uses vite 6 itself, is still alpha, so this crosses
# a major its parent has not declared. Verified against `docs:build` and
# `docs:dev` (serves 200); drop it for vitepress 2 once that ships stable.
vite@5: '>=6.4.3 <7'
# pnpm defaults to `lowest-direct`, which makes a plain `pnpm update` resolve
# every range to its floor — silently downgrading dependencies instead of
# refreshing them. Pin the intent: `pnpm update` means "newest within range".
patchedDependencies:
'@earendil-works/[email protected]': patches/@[email protected]
'@earendil-works/[email protected]': patches/@[email protected]
'@earendil-works/[email protected]': patches/@[email protected]
resolutionMode: highest
# shamefully-hoist also lives in .npmrc, but pnpm 12 applies it only from
# here; without it public hoisting is empty and examples/ plugins cannot
# resolve root-level react in tests.
shamefullyHoist: true