Language packs: review fixes, and plug-ins can't call proof commands

- proof.installPack, proof.removePack and proof.packs {refresh} are refused
  under automation roots: the shared font store is outside them.
- Plug-ins may not call proof.* (DENIED_PREFIXES), which
  plugin_call's every_command_is_reviewed requires of new commands.
- A synchronous install or refresh returns its own result, not one read
  back from the shared errors.
- proof.packs reads the jobs before the installed packs, and
  poll_language_packs reads busy() before the generation, so an install
  that ends between the reads is never missed.
- A pack change measures type with a language of its own again
  (refresh_document_text_bounds), so selection boxes and hits follow.
- The tests' Reset cancels and waits for background jobs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ruchirguitarandClaude Opus 5.5 committed 2026-11-27 23:55:40 +05:30
1 parent fef393ddc0
commit 22f5ca3cbf
7 files changed
+117 -54

No files matched your search

+3 -1
View File
@@ -12685,7 +12685,9 @@ installed packs; the web app has none, and no `proof.*` commands.
Installs and index fetches need downloading on. Only the person using a Craft app turns it on, with their own click
(the setting is the font store's, shared by the apps): no command turns it on, and until then an install is an error
that says so. In the desktop app installs and fetches run in the background: `proof.installPack` returns
that says so. A caller with automation roots (`--automation-read-root`, `--automation-write-root`) can list packs
but not fetch, install or remove them, since the store is outside its roots. In the desktop app installs and fetches
run in the background: `proof.installPack` returns
`{locale, started: true}` and `proof.packs` shows the install in `installing`, then in `installed` or `errors`. In
`vectorcraft-cli` they return once done.