feat(commands): multi-select ordered command pipeline with step reordering and single-pass composition (AI-05, AI-07)

This commit is contained in:
Yun Chan 2026-10-31 02:54:54 +09:00
parent f49acf0105
commit 10af20a0ad
157 changed files with 29455 additions and 913 deletions

View file

@ -1,6 +1,7 @@
# 02 — Repository & Infrastructure Map
> Surface: whole repo
> Last updated: 2026-10-30 — desktop typing race/load verification tools (INFRA-20)
> Source of truth for: layout, workspaces, build/test commands, CI/CD, Docker, deploy, scripts, resources
---
@ -81,6 +82,10 @@ npm run release:forgejo[:check] # canonical Forgejo publisher/feed
npm run release:tag # annotated/signed immutable release tag
npm run security:secrets[:test] # hardcoded-secret scanner
npm run check:desktop-renderer[:test] # built renderer pages reference only assets on disk
npm run check:migrations[:test] # Supabase migration ordering, naming & optional remote drift check
npm run rebuild:app # rebuild better-sqlite3 in-place for Electron ABI
npm run rebuild:test # rebuild better-sqlite3 in-place for host Node ABI (Vitest)
node scripts/ci/sync-i18n-locales.mjs # synchronize 12 locales against ko/en SSOT
npm run test:e2e:red # content-report red e2e
npm run release:mobile:boundary[:test]
npm run release:mobile:config[:test]
@ -108,6 +113,22 @@ Per-app commands that matter:
Desktop GUI execution rule (from `CLAUDE.md` / `.agents/rules/`): run via `run-desktop.bat` or an external terminal; do not background-launch GUI from an agent subshell.
Desktop input verification (2026-10-30, INFRA-20):
```powershell
node scripts/verification/typing-race-proof.mjs
pwsh -File scripts/verification/typing-fixture/build.ps1
pwsh -File scripts/verification/typing-runtime/build.ps1
```
The first command overlays only `InputTelemetryService`, `TypoCorrectionService` and `TextInsertService` from read-only `git show HEAD`; dependencies, test doubles and tests stay current in both runs. It writes timestamped reports under `test-results/typing-load/race-proof-*` without launching a GUI or injecting keys. This is not a full historical-release comparison. The 2026-10-30 [`report.json`](../../test-results/typing-load/race-proof-2026-10-30T00-50-32-284Z/report.json) records HEAD 1/17 and current 17/17: three independently varied timing signals reproduce text corruption in the old services; the remaining 13 failures concern snapshot invalidation, metadata and query coalescing. Unchanged-input correction passes in both runs.
The build commands use the installed .NET Framework compiler to create `test-results/typing-load/fixture/D3ROTypingFixture.exe` and `test-results/typing-load/runtime/D3ROTypingRuntime.exe`. Launch these from the interactive desktop, following [`verification/README.md`](../../scripts/verification/README.md) and [`typing-fixture/README.md`](../../scripts/verification/typing-fixture/README.md). The runtime launcher refuses to start while an installed `D3RO Voice` process is running; it does not terminate it. The product bundle must already be built. For this experiment, use this launcher rather than `run-desktop.bat`, which terminates other Electron processes.
`scripts/verification/typing-runtime/main.cjs` is a verification-only entry into the existing `apps/desktop/out/main/index.js` bundle. Its profile/logs/runtime receipt live under `test-results/typing-load`, separate from personal config. A new local-only profile starts with automatic correction, model correction, suggestions, typed-text learning and telemetry disabled; protocol registration and OS startup registration are blocked. `runtime.json` records the product package version and bundle SHA-256 because the wrapper's version is not the product release identity.
The runtime profile is retained across launches, so record its actual settings with every result. Model cold/warm and correction on/off coverage must be explicit; the default profile alone does not test model loading or correction. Runtime syntax checking and launcher compilation passed, but the runtime has not started and no interactive GUI/IME/CPU/model pass is claimed (GAP-INPUT-11). These tools are local verification commands, not new release/CI gates.
---
## 4. Shared packages