Commit Graph

13 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
ebcebd4723 Unify migration locks and plugin environments, and cover compatibility boundaries 2026-11-06 02:04:52 +08: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)
9c7791c85b Merge pull request #2060 into validated PR integration 2026-10-29 00:56:13 +08:00
Bingxi Zhao (Frank)
a5b81ca678 fix: deliver worker failures on Python 3.11 and 3.12 2026-10-28 02:21:35 +08:00
Bingxi Zhao (Frank)
7cb31af807 fix: preserve module entry points in source installs 2026-10-28 01:37:28 +08:00
Bingxi Zhao (Frank)
fbab59acbf feat: modularize installation and enforce feature dependency boundaries 2026-10-28 01:02:29 +08:00
Rudy Celekli
22412bf07c fix(plugins): dedupe manifest dependencies by PEP 503 canonical name
_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>
2026-10-26 10:26:43 -04:00
Bingxi Zhao (Frank)
399297e7f0 feat: preserve TypeScript engine migration and workspace updates 2026-10-18 23:09:10 +08:00
Bingxi Zhao (Frank)
6cf793bd86 release: v1.6.14
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.
2026-10-08 11:34:42 +08: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
Bingxi Zhao (Frank)
02ba56793e chore: checkpoint backend stabilization workspace 2026-09-01 21:28:15 +08:00
Bingxi Zhao (Frank)
802a19779f refactor: one place loads plugin entry points
#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.
2026-08-20 00:34:08 +08:00
alanguan73
0c9093db90 feat(plugins): add the deeptutor.plugins entry-point loader (#908)
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.
2026-08-19 23:59:14 +08:00