Files
hermes-agent/apps/desktop/tsconfig.electron.json
teknium1 6e58dcdbe7 fix(desktop): strip installer escapes at the Electron bootstrap emitter too
The Electron install overlay drives the same install.sh through
bootstrap-runner.ts::spawnBash / spawnPowerShell and forwarded every child
line verbatim, so its Details panel and "Copy output" showed the same
`\x1b[0;32m✓\x1b[0m` mojibake as the Tauri Setup app (#112675) — same
class, sibling surface. cleanInstallerLogLine() strips at the ONE emit
boundary (six sites: stdout/stderr/flush in both spawn helpers) using the
shared stripAnsi from apps/shared/src/ansi.ts, so the main-process log ring,
the renderer and the clipboard all read one clean line; \r progress redraws
collapse to the last frame a terminal would show. Relative import, as
hardening.ts does: the esbuild main bundle has no tsconfig path aliases;
../shared/src/ansi.ts joins tsconfig.electron.json's include list.

#112679 (@KoNit-K) fixed this in the renderer's applyEvent + snapshot; the
emitter is the boundary every consumer shares, so it lands here instead.

Live A/B (verbatim spawnBash out of each checkout, bash script printing what
install.sh prints into a pipe):
  before: "\u001b[0;32m✓\u001b[0m Detected: macos (macos)", "\r 12%\r 67%\r100%\u001b[K"
  after:  "✓ Detected: macos (macos)", "100%"

Co-authored-by: KoNit-K <124019182+KoNit-K@users.noreply.github.com>
2026-09-16 17:50:47 -07:00

22 lines
672 B
JSON

{
"extends": "./tsconfig.json",
"compilerOptions": {
"strict": false,
"noImplicitAny": false,
"noImplicitThis": false,
"strictNullChecks": false,
"strictFunctionTypes": false,
"strictBindCallApply": false,
"strictPropertyInitialization": false,
"noUncheckedIndexedAccess": false,
"exactOptionalPropertyTypes": false,
"ignoreDeprecations": "6.0",
"composite": true,
"declaration": true,
"rootDir": "..",
"outDir": "build/electron-types"
},
"include": ["electron", "../shared/src/ansi.ts", "../shared/src/data-url-read-max.ts", "../shared/src/translucency.ts"],
"exclude": ["src", "electron/**/*.e2e.mts"]
}