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.
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.
_dependencies tried to dedupe requirements via
getattr(requirement, "canonical_name", requirement.name). packaging's
Requirement has no canonical_name attribute, so this always fell back to the
raw requirement.name (merely casefolded). Two spellings of the same PyPI
project that differ only by '.', '-' or '_' (e.g. Flask.Thing and flask-thing)
were treated as distinct, so both passed the duplicate guard and were handed to
the isolated pip install, defeating the check and allowing conflicting pins.
Use packaging.utils.canonicalize_name, which applies PEP 503 normalization.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Ship original-source visual practice, recoverable indexing, unified video
Reading, scientific research tools, managed plugins, and a learning journal
as summarized in assets/releases/ver1-6-14.md.
Improve provider setup and protocol-aware endpoints. Restore missing
localized setup and Ukrainian UI text, keep plugin loading in the plugin
layer, harden research XML parsing, and repair isolated test fixtures and
type-checking errors found by the release gate.
Sync README prose and all eleven translations, bump the package version,
and update the stable release announcement.
Validation: 10180 Python tests and 8 subtests passed (28 skipped); 1303
Node tests passed on Node 22; 24 provider UI tests passed. All pre-commit
hooks, ruff, translation checks, documentation checks, and docs build passed.
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>
* test(plugins): pin entry-point loader contract across load, isolation, duplicate and gating paths
* style(plugins): format test_entrypoint_loader to satisfy ruff format
---------
Co-authored-by: XZH <cto@xzh.ai>
#908 and #911 landed two plugin groups — deeptutor.plugins for registry
capabilities, deeptutor.loop_capabilities for chat-loop ones — each with its own
copy of the same plumbing: read the group, import each target, warn and skip
whatever fails. Only the coercer actually differed.
Move the plumbing into core/entry_points.py, which both layers already depend
on, so the containment guarantee (one bad plugin cannot stop the others) is
stated and tested once instead of twice. Both suites now stub the single seam
rather than a module-local alias.
Drops #908's Python <3.10 entry_points() fallback along the way: the project
requires >=3.11, so the keyword form is the only API in play.
CapabilityRegistry.load_plugins() and /plugins/list already imported deeptutor.plugins.loader behind a try/except, but the module never existed — plugin discovery was a dead path. Implement it: discover manifests from the deeptutor.plugins entry-point group and instantiate BaseCapability subclasses. PluginManifest carries exactly the fields both call sites read.