dsh-plugin-lookatstudy 0.14.1 → 0.16.0
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/README.md +5 -4
- package/lib/client.js +2123 -100
- package/lib/client.js.map +1 -1
- package/lib/index.mjs +1149 -283
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,10 +6,10 @@ Turn any markdown document, local folder, or GitHub learning repository into a g
|
|
|
6
6
|
|
|
7
7
|
| | |
|
|
8
8
|
|---|---|
|
|
9
|
-
|  | **The 学习 panel** — LookatStudy's Duolingo-dark UI 1:1: the floating XP/streak app header, the three-column surface ladder (rail / chat / notebook, depth by color step), 3D push-down buttons, and the chat's typing dots; opened from the sidebar's 学习 row. |
|
|
10
10
|
|  | **讲解** — server-sanitized markdown rendered rich on demand: KaTeX formulas, syntax-highlighted code, mermaid diagrams (CDN loaders, silent degrade offline). |
|
|
11
11
|
|  | **🕸 概念图** — the lesson's knowledge components laid out as a draw.io-style concept graph (bundled ELK layout, no external service). |
|
|
12
|
-
|  | **课程栏** — the balloon course map: frosted gold-rim signposts, state spheres (stone-locked / glowing green / blue in-progress / gold mastered / purple exam boss), sagging brand ropes that draw themselves in as you walk them, sky backdrop, due badges; signposts still collapse. |
|
|
13
13
|
|
|
14
14
|
## Install
|
|
15
15
|
|
|
@@ -55,11 +55,12 @@ Beyond the tab, the plugin rides the host's own integration points:
|
|
|
55
55
|
- **Tool cards in the conversation tab** — keyed `tool.call.toolview` entries for `study_record_answer` (✓/✗ + concept), `study_lesson`, `study_due_reviews`, `study_exam_result`.
|
|
56
56
|
- **Boot-tier prefetch** — `dsh.client.immediately: true`, so the sidebar 学习 row renders on first paint with no bundle fetch.
|
|
57
57
|
|
|
58
|
-
## Tool surface (
|
|
58
|
+
## Tool surface (30)
|
|
59
59
|
|
|
60
60
|
Import: `study_import_markdown` / `study_import_folder` (12 doc formats incl. EPUB/DOCX/PPTX/PDF text) / `study_import_github` (jsDelivr CDN, works where github.com is unreachable) / `study_import_url` (articles, arXiv, video metadata) + `study_apply_design` (the tutor-designed structure protocol)
|
|
61
61
|
Learn: `study_courses` (progress + full-text search), `study_map`, `study_lesson`
|
|
62
62
|
Progress: `study_define_concepts`, `study_record_answer`, `study_complete_lesson`, `study_exam_result` (star grades)
|
|
63
|
+
Artifacts (0.15.0): `study_generate_quiz` (interactive practice card), `study_pose_guess`, `study_compare_table`, `study_draw_diagram` (mermaid), `study_code_walkthrough` — each renders as an in-panel card and settles into the notebook
|
|
63
64
|
Memory: `study_consolidate`, `study_translate_lesson` (bilingual lessons), `study_export` (course pack markdown)
|
|
64
65
|
Proposals: `study_propose_mastery`, `study_resolve_proposal`
|
|
65
66
|
Reviews: `study_due_reviews`, `study_record_review`
|
|
@@ -78,7 +79,7 @@ Misc: `study_set_mode`, `study_delete_course`
|
|
|
78
79
|
|
|
79
80
|
## What is intentionally not restored
|
|
80
81
|
|
|
81
|
-
|
|
82
|
+
The companion creature IS ported (0.15.0, minimal DOM form: five selectable forms in the panel corner, mood-linked to read-aloud/rating/quiz moments, reduced-motion static) — but its Electron-native life system (microphone envelopes, typing squeeze, drag-and-throw) is not. Persistent text highlighting is ported through text-search anchors (selection → 提问这段/加到笔记, quotes restore as marks). Read-aloud itself IS ported (0.13.0) — Edge neural voices synthesized host-side with the browser's speechSynthesis as fallback. Everything else — engine, contracts, data models, exam mode with star grades, XP & streak, bilingual translation, image inlining, math/code/diagram rendering — is ported (diagram renderers load from CDN on demand and degrade silently offline).
|
|
82
83
|
|
|
83
84
|
## Development
|
|
84
85
|
|