openpencil/tests/engine/tauri
Danila Poyarkov bd7acd6e34
fix(desktop): pin every command line the app may start (#922)
* fix(desktop): pin every command line the app may start

On Windows the app starts npm-installed CLIs through cmd /c, and the shell scope let cmd take any arguments, so any code running in the webview could run any command. Each program now has a scope entry with its exact arguments, and Windows shims go through their own cmd-<name> entries with fixed /c <name> arguments. The agents and the MCP server no longer accept arbitrary arguments either. A test checks that every command the app starts has a matching entry on both platforms.

* test(desktop): expect Windows shims through their own scope entries

* test(desktop): check the executable of each shell scope entry

* test(desktop): allow no shell scope entry beyond the programs the app starts

An extra entry with a permissive validator passed the per-program checks.
2026-10-06 11:19:05 +00:00
..
acp-transport.test.ts test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
automation-files.test.ts fix(tauri): use native dirname for save paths 2026-05-19 12:03:21 +03:00
command.test.ts fix(desktop): pin every command line the app may start (#922) 2026-10-06 11:19:05 +00:00
document-io.test.ts ci: shard unit tests by owner and cut the quick suite from 100 s to 13 s (#715) 2026-09-17 10:18:16 +03:00
fig-export.test.ts ci: shard unit tests by owner and cut the quick suite from 100 s to 13 s (#715) 2026-09-17 10:18:16 +03:00
file-actions.test.ts test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
font-cache.test.ts fix(fig): stabilize engine test suite 2026-05-21 14:54:17 +03:00
fonts.test.ts test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
harness-process.test.ts fix(desktop): pin every command line the app may start (#922) 2026-10-06 11:19:05 +00:00
http.test.ts test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
mcp-spawn.test.ts test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
mock-cleanup.test.ts fix: restore engine test coverage and isolation (#653) 2026-09-06 23:29:45 +03:00
processes.test.ts fix(desktop): pin every command line the app may start (#922) 2026-10-06 11:19:05 +00:00