4 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
39a50f8d65 Merge #2271 from Plastic-time 2026-11-06 01:56:39 +08:00
RRFZ
6e87980a2a test(plugins): lay out the fake venv the way the platform does
The plugin lifecycle tests stub `python -m venv` with a runner that
always creates bin/python and lib/python3.13/site-packages. On Windows
the installer looks for Scripts/python.exe and Lib/site-packages
(_venv_python, _installed_package_path), so six lifecycle and recovery
tests failed there with "installed plugin package root is missing"
before reaching what they test.

Build the stub with the installer's own _venv_python and the
platform's site-packages path. No assertion changes.
2026-10-31 22:29:21 -04:00
RRFZ
e80c26bd16 fix(plugins): keep Windows system variables in plugin subprocess envs
The plugin installer and the plugin worker run their children with a
POSIX-only allowlist (PATH, HOME, LANG, TMPDIR, ...). On Windows that
drops SYSTEMROOT, which Winsock and the TLS providers need: pip fails
to build its SSL context, so every plugin install exited 2, and a worker
cannot open a socket (WinError 10106), so asyncio and HTTP clients fail
before plugin code runs.

Keep SYSTEMROOT, WINDIR, TEMP, TMP, USERPROFILE and PATHEXT when present.
They carry no credentials; provider keys are still dropped.
2026-10-31 21:12:11 -04:00
Bingxi Zhao (Frank)
7885daa98a feat(plugins): add reviewed managed lifecycle and revocable runtime gates (#1307)
Adapt the Phase 1 foundation from PR #1309 and complete scoped API lifecycle, pre-import approval, artifact-bound revocation, recovery, bounded workers and frontend isolation. Keep the stronger ecosystem roadmap explicit in the RFC.

Co-authored-by: XZH <cto@xzh.ai>
2026-10-08 08:50:05 +08:00