2.5 KiB
2.5 KiB
tools/AGENTS.md
Follow the root AGENTS.md first. This file only records module-level boundaries for tools/.
Active tools
tools/devprovides@open-design/tools-devand thetools-devbin. It is the only currently active local development lifecycle control plane.pnpm tools-devmanages daemon -> web -> desktop.pnpm tools-dev run webruns foreground daemon + web for the Playwright webServer flow.pnpm tools-dev inspect desktop ...inspects the desktop runtime through sidecar IPC.tools/packprovides@open-design/tools-packand thetools-packbin. The active slice is packaged artifact build/install/start/stop/logs/uninstall/cleanup/list/reset plus beta release artifact preparation for mac and Windows lanes, plus a Linux AppImage lane with optional containerized builds.
Packaging scope
- Keep
tools-packfocused on packaging/runtime control and release artifact preparation. Runtime updater product integration remains a later phase. - Pack-specific Electron builder resources belong under
tools/pack/resources/; do not reference app/docs/download assets directly from pack logic. - Namespace controls packaged data/log/runtime/cache paths. Ports are transient transport details and must not participate in path decisions.
- The package/build boundary of root
pnpm buildis intentionally unchanged in this round and should be handled by the futuretools-packtask.
Orchestration boundary
- Orchestration layers must consume primitives from
@open-design/sidecar-proto,@open-design/sidecar, and@open-design/platform. - Do not hand-build
--od-stamp-*args, process-scan regexes, runtime tokens, process roles, or duplicate namespace/source args intools/dev, futuretools/pack, or packaged launchers. - Port flags are authoritative inputs:
--daemon-portand--web-port. Internal env vars areOD_PORTandOD_WEB_PORT; do not introduceNEXT_PORT.
Common tools commands
pnpm --filter @open-design/tools-dev typecheck
pnpm --filter @open-design/tools-dev build
pnpm --filter @open-design/tools-pack typecheck
pnpm --filter @open-design/tools-pack build
pnpm tools-dev status --json
pnpm tools-dev logs --json
pnpm tools-dev check
pnpm tools-pack mac build --to all
pnpm tools-pack mac install
pnpm tools-pack mac cleanup
pnpm tools-pack win build --to nsis
pnpm tools-pack win install
pnpm tools-pack win inspect --expr "document.title"
pnpm tools-pack win cleanup
pnpm tools-pack linux build --to appimage
pnpm tools-pack linux install
pnpm tools-pack linux build --containerized