Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
fix(plugins): merge latest main into Schannel proxy fix
vastsa2b2f32b0ffaf
diff --cc docs/spec/06-delivery/04-e2e-test-plan.mdindex fe0f3fcaf,b381764e0..3b93f18d3--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@@ -3232,20 -3220,30 +3232,28 @@@ identify the platform validation still- **Acceptance**: G (remote marketplace source)- **Status**: Documented / host-core unit covered- #### E2E-024Z: Windows localized curl diagnostics stay readable-- - **Preconditions**: Windows x64 host. The official catalog request is forced- to fail with a localized, non-UTF-8 curl/Schannel diagnostic (a deterministic- fake curl in the test PATH may emit GBK stderr and exit 35).- - **Steps**: 1) Open Extensions → Marketplace. 2) Refresh the marketplace.- 3) Inspect the error toast.- - **Expected**: The failed request remains a `PLUGIN_NETWORK` failure and- retains the readable localized diagnostic without Unicode replacement- characters; the marketplace remains on the official source.+ #### E2E-024Z: Windows curl handles offline revocation checks and localized errors++ - **Preconditions**: Windows x64 host with curl built against Schannel. For the+ offline-revocation case, use a proxy route that can reach the HTTPS fixture+ while its certificate revocation distribution point is unavailable. For the+ diagnostic case, force the catalog request to fail with localized, non-UTF-8+ curl output (a deterministic fake curl may emit GBK stderr and exit 35).-- **Steps**: 1) Select Extensions → Marketplace with Official as the source.- 2) Refresh the catalog and install a package through the system proxy while- the revocation distribution point is offline. 3) Confirm the installed curl- advertises `--ssl-revoke-best-effort` and inspect the verified package. 4)- Force a localized curl/Schannel failure, refresh again, and inspect the error- toast. 5) Switch to the CNB backup and refresh.++- **Steps**: 1) Open Extensions → Marketplace. 2) Refresh the catalog and++ install a package through the system proxy while the revocation distribution++ point is offline. 3) Confirm the installed curl advertises++ `--ssl-revoke-best-effort` and inspect the verified package. 4) Force a++ localized curl/Schannel failure, refresh again, and inspect the error toast.+ - **Expected**: When the installed Schannel curl supports the option, catalog+ and package requests tolerate an unavailable revocation distribution point+ without disabling certificate verification; package size and SHA-256 checks+ still gate installation. A real network/TLS failure remains+ `PLUGIN_NETWORK`, with localized diagnostics readable and no Unicode- replacement characters; switching to a reachable backup can refresh the- catalog normally.++ replacement characters.- **Specs linked**: `07-plugins/07-plugin-marketplace.md`,- `03-runtime/07-process-model.md`+ `03-runtime/07-process-model.md`, ADR 0177- **Acceptance**: G (remote marketplace source)- - **Status**: Documented / host-core unit covered; Windows rendered validation pending+ - **Status**: Documented; host-core unit covered; Windows proxy/TLS validation pending#### E2E-024B: Marketplace install with permission reviewdiff --cc docs/spec/07-plugins/07-plugin-marketplace.mdindex a501fb9f1,ce73199d4..5bb49b451--- a/docs/spec/07-plugins/07-plugin-marketplace.md+++ b/docs/spec/07-plugins/07-plugin-marketplace.md@@@ -52,23 -62,32 +52,26 @@@ System mode sends host-core `curl` throSOCKS relay, which resolves each destination using the active OS proxy/PACconfiguration. Direct mode forces the marketplace request direct; Custom usesthe configured proxy and bypass list. The relay credential is runtime-only and- is not inherited by workspace shell commands.+ is not inherited by workspace shell commands. On Windows, host-core uses+ Schannel's best-effort revocation mode when the installed `curl` supports it,+ so an unavailable revocation distribution point does not block the HTTPS+ request; certificate verification and package size/hash checks remain enabled.-The official channel is the plugin center: its catalog is the generated-`catalog.json` the center publishes, and a package installed from it is-resolved through the platform's download API instead of by joining a relative-path onto a base URL. The two backup channels and `custom` keep the static v1-and v2 behavior: a relative package URL resolves against the catalog that-carried it (`artifactBaseUrl` first, then the catalog directory), so a package-URL never crosses providers and a source switch cannot change the checksum-being verified. The GitHub and CNB backups exist for networks that cannot reach-`plugins.aiuo.net` or each other. The CNB mirror is expected to replicate the-distribution repository, but it can lag — a measured catalog there was older-(22 plugins, and different bytes for a version the other mirror serves) — which-is why the official channel verifies each mirror's bytes instead of trusting-one URL.+The official catalog is the generated `catalog.json` the center publishes, and+an install asks the platform where the package is instead of joining a relative+path onto a base URL. If resolve is slow or unavailable, the client downloads+from the official catalog's own package URL and verifies its catalog digest.+Packages on the official resolve path can still come from approved GitHub and+CNB mirrors returned by the platform. These are package mirrors inside the+official channel; they do not change the catalog source. Each mirror's bytes+are checked against its announced digest.Cached catalogs are keyed to their source in `plugins/market/cache-meta.json`.-A snapshot fetched from a different source is ignored rather than deleted —-its package URLs point at the provider the user just switched away from — so-switching back recovers that catalog without a round trip. `settings.set` only-re-pins the source in memory; fetching there would hold the host RPC state lock-behind a marketplace timeout, so the renderer triggers `market.refresh` after-the switch.+The official catalog cache remains the marketplace snapshot. Any cache left by+an older selected source is ignored and not deleted. `settings.set` keeps the+host's marketplace selection pinned to official; remote fetching remains an+explicit `market.refresh` operation so a settings write never holds the host+RPC state lock behind a marketplace timeout.### Device identifier