dsh-zju-lecture-note 2.2.7 → 2.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +85 -2
- package/README.md +47 -22
- package/SECURITY.md +72 -34
- package/docs/technical.md +66 -28
- package/lib/bridge.js +12 -2
- package/lib/client.js +142 -36
- package/lib/index.js +118 -15
- package/lib/tools.js +2 -2
- package/lib/tools.schema.json +2 -2
- package/mcp.json +21 -0
- package/mcp_server.py +85 -21
- package/package.json +5 -2
- package/plugin.json +19 -0
- package/server.mjs +118 -0
- package/skills/scholia-notes.manifest.json +1 -1
- package/skills/zju-lecture-summarizer/SKILL.md +13 -3
- package/skills/zju-lecture-summarizer/SLIDES.md +38 -3
- package/skills/zju-lecture-summarizer-help/SKILL.md +1 -1
- package/skills/zju-lecture-summarizer-help.manifest.json +4 -4
- package/skills/zju-lecture-summarizer-login.manifest.json +1 -1
- package/skills/zju-lecture-summarizer.manifest.json +6 -6
- package/zju_lecture/browser_login.py +174 -221
- package/zju_lecture/cli.py +24 -2
- package/zju_lecture/cookies.py +43 -4
- package/zju_lecture/credential_store.py +621 -0
- package/zju_lecture/deps.py +16 -0
- package/zju_lecture/handout.py +29 -3
- package/zju_lecture/study_notes.py +4 -0
|
@@ -2533,6 +2533,8 @@ def _prelude_text() -> str:
|
|
|
2533
2533
|
|
|
2534
2534
|
|
|
2535
2535
|
def _run_typst(typst: str, args: Sequence[str], cwd: str, timeout: int) -> Tuple[int, str]:
|
|
2536
|
+
from .deps import typst_env
|
|
2537
|
+
|
|
2536
2538
|
try:
|
|
2537
2539
|
completed = subprocess.run(
|
|
2538
2540
|
[typst, *args],
|
|
@@ -2541,6 +2543,8 @@ def _run_typst(typst: str, args: Sequence[str], cwd: str, timeout: int) -> Tuple
|
|
|
2541
2543
|
stderr=subprocess.STDOUT,
|
|
2542
2544
|
timeout=timeout,
|
|
2543
2545
|
check=False,
|
|
2546
|
+
# Never hand the classroom cookie to the compiler subprocess.
|
|
2547
|
+
env=typst_env(),
|
|
2544
2548
|
)
|
|
2545
2549
|
except subprocess.TimeoutExpired:
|
|
2546
2550
|
return 124, f"typst 编译超时({timeout} 秒)。"
|