Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix(harness): correct native helper and i18n locale paths in agent docs

EtienneLescot3dc7aa3051d2
diff --git a/.harness/memory/MEMORY.md b/.harness/memory/MEMORY.md
index 40dedd073..8a18e482f 100644
--- a/.harness/memory/MEMORY.md
+++ b/.harness/memory/MEMORY.md
@@ -10,14 +10,14 @@ Format:
---
-## i18n: 13 locales must stay in sync (2026-06-21)
-Any new user-facing string needs a key in all 13 locale files under `src/locales/`. The `npm run i18n:check` script validates structural consistency. Don't ship translation gaps; either translate them or use a placeholder strategy that's consistent across locales.
+## i18n: 13 locales must stay in sync (2026-06-22)
+Any new user-facing string needs a key in all 13 locale folders under `src/i18n/locales/` (each locale is a subfolder, e.g. `src/i18n/locales/en/settings.json`). The `npm run i18n:check` script validates structural consistency. Don't ship translation gaps; either translate them or use a placeholder strategy that's consistent across locales.
-## Native helpers need manual smoke tests (2026-06-21)
-CI runs on Linux only. The macOS (Swift/ScreenCaptureKit) and Windows (C++/WGC) native helpers cannot be auto-verified. Any change in `electron/macos-helper/` or `electron/windows-helper/` must include a manual smoke-test note in the PR description (recorded on a real host).
+## Native helpers need manual smoke tests (2026-06-22)
+CI runs on Linux only. The macOS (Swift/ScreenCaptureKit, in `electron/native/screencapturekit/`) and Windows (C++/WGC, in `electron/native/wgc-capture/`) native helpers cannot be auto-verified. Any change in those directories must include a manual smoke-test note in the PR description (recorded on a real host).
-## Biome owns lint AND format (2026-06-21)
+## Biome owns lint AND format (2026-06-22)
There's no Prettier/ESLint — Biome 2.4 does both. Config in `biome.json`: tabs, double quotes, 100-col width, LF line endings. Don't add `eslint`/`prettier` configs on top; that would fight Biome.
-## `npm run build` is slow (2026-06-21)
+## `npm run build` is slow (2026-06-22)
`npm run build` runs tsc + vite build + electron-builder packaging. For renderer-only iteration use `npm run build-vite` (tsc + vite only, no packaging). Only run the full `build` when verifying a release artifact.
diff --git a/.harness/reins/openscreen-dev/agent.md b/.harness/reins/openscreen-dev/agent.md
index 7dfa520bf..33c4a28a1 100644
--- a/.harness/reins/openscreen-dev/agent.md
+++ b/.harness/reins/openscreen-dev/agent.md
@@ -9,7 +9,7 @@ You are the generalist implementer for the OpenScreen project — a free, open-s
## Scope
-- **Own**: implementation work across `src/` (React UI, editor, timeline, i18n, captioning/cursor/exporter libs), `electron/` (main process, IPC, recording orchestration), and the native helpers in `electron/macos-helper/` (Swift/ScreenCaptureKit) and `electron/windows-helper/` (C++/Win32 WGC).
+- **Own**: implementation work across `src/` (React UI, editor, timeline, i18n, captioning/cursor/exporter libs), `electron/` (main process, IPC, recording orchestration), and the native helpers in `electron/native/screencapturekit/` (Swift / macOS ScreenCaptureKit) and `electron/native/wgc-capture/` (C++/Win32 WGC).
- **Don't own**: test authorship (hand off to `openscreen-tester`) and final PR review (hand off to `openscreen-reviewer`). You write tests for your own code as part of "done", but coverage audits and test strategy belong to the tester.
## How you work
@@ -20,7 +20,7 @@ You are the generalist implementer for the OpenScreen project — a free, open-s
- For renderer-only iteration use `npm run build-vite`. For full packaging use `npm run build` (electron-builder, slow).
- Native helpers require a real platform to test — don't claim "done" on macOS/Windows native code without a manual smoke test.
- Keep changes scoped. One PR = one concern. Don't refactor unrelated code in a feature PR.
-- 13 locales in `src/locales/`. Touching user-facing strings = add a key to all 13 (or run `npm run i18n:check` and address what it flags).
+- 13 locales in `src/i18n/locales/` (each locale is a subfolder, e.g. `src/i18n/locales/en/settings.json`). Touching user-facing strings = add a key to all 13 (or run `npm run i18n:check` and address what it flags).
## Stop when
diff --git a/.harness/reins/openscreen-tester/agent.md b/.harness/reins/openscreen-tester/agent.md
index 51f9c5ff9..cbf3afdc6 100644
--- a/.harness/reins/openscreen-tester/agent.md
+++ b/.harness/reins/openscreen-tester/agent.md
@@ -19,7 +19,7 @@ You are the test specialist for the OpenScreen project — a free, open-source s
- Match the style of neighboring `*.test.<ext>` files in the same package — don't invent new patterns.
- Unit tests: `npm run test` (Vitest, jsdom). Browser tests: `npm run test:browser` (needs `npm run test:browser:install` once). E2E: `npm run test:e2e` (Playwright).
- E2E specs in `tests/e2e/windows-native-checklist.spec.ts` are Windows-only — gate with `test.skip` for other platforms rather than deleting.
-- i18n: `npm run i18n:check` validates the 13 locales — run it after translation changes.
+- i18n: `npm run i18n:check` validates the 13 locales under `src/i18n/locales/` — run it after translation changes.
- For Pixi/Canvas/GPU code, prefer browser tests (`test:browser`) over jsdom — jsdom can't render WebGL/Pixi meaningfully.
- Coverage gaps: report them concretely (file:line, what's missing, what to add). Don't write the test for someone else's feature unprompted — flag it.
diff --git a/AGENTS.md b/AGENTS.md
index d1c0f9e95..ae8058cf1 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -19,7 +19,7 @@ OpenScreen is a free, open-source screen recorder and video editor (Electron + R
- `src/` — React app: UI, editor components, timeline, i18n, captioning/cursor/exporter libs
- `electron/` — main process, IPC, recording orchestration
-- `electron/<platform>-helper/` — **native** capture helpers: Swift (macOS ScreenCaptureKit), C++/Win32 (Windows Graphics Capture). These are built and shipped with the app, not loaded from npm
+- `electron/native/` — **native** capture helpers: `screencapturekit/` (Swift, macOS) and `wgc-capture/` (C++/Win32, Windows). These are built and shipped with the app, not loaded from npm
- `docs/` — architecture, engineering roadmaps, testing guides
- `tests/` — Playwright e2e specs + fixtures
- `scripts/` — native build scripts, diagnostic tools
@@ -60,7 +60,7 @@ OpenScreen is a free, open-source screen recorder and video editor (Electron + R
- **Native capture is platform-fragile**: macOS uses ScreenCaptureKit (Swift), Windows uses WGC (C++/Win32). CI runs on Linux only — manual smoke test on real macOS/Windows is required for native changes.
- **Pixi.js v8** is the rendering engine. Filters come from `pixi-filters` and `@pixi/filter-drop-shadow`. GSAP + `motion` for animation.
-- **i18n**: 13 locales in `src/locales/`. The `i18n:check` script validates them — run it after touching translation files.
+- **i18n**: 13 locales in `src/i18n/locales/<locale>/` (e.g. `src/i18n/locales/en/settings.json`). The `i18n:check` script validates them — run it after touching translation files.
- **Build pipeline**: `npm run build` is full electron-builder. For iterating on renderer only, use `npm run build-vite` (Vite + tsc, no packaging).
- **README tone**: the project is explicitly "not production-grade" and free forever — don't add paywalls, premium tiers, or upsell language to UI/copy.