youparle 0.1.0__tar.gz
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.
- youparle-0.1.0/.gitignore +10 -0
- youparle-0.1.0/LICENSE +21 -0
- youparle-0.1.0/PKG-INFO +162 -0
- youparle-0.1.0/README.md +133 -0
- youparle-0.1.0/docs/README.md +23 -0
- youparle-0.1.0/docs/decisions.md +143 -0
- youparle-0.1.0/docs/exercises.md +319 -0
- youparle-0.1.0/docs/harnesses/claude-code.md +23 -0
- youparle-0.1.0/docs/harnesses/codex.md +36 -0
- youparle-0.1.0/docs/harnesses/opencode.md +34 -0
- youparle-0.1.0/docs/invariants.md +57 -0
- youparle-0.1.0/docs/media.md +231 -0
- youparle-0.1.0/docs/pages.md +113 -0
- youparle-0.1.0/docs/publishing.md +145 -0
- youparle-0.1.0/docs/reading.md +355 -0
- youparle-0.1.0/docs/server.md +72 -0
- youparle-0.1.0/docs/vault.md +90 -0
- youparle-0.1.0/docs/voice.md +261 -0
- youparle-0.1.0/pyproject.toml +79 -0
- youparle-0.1.0/src/youparle/__init__.py +17 -0
- youparle-0.1.0/src/youparle/__main__.py +8 -0
- youparle-0.1.0/src/youparle/agents.py +151 -0
- youparle-0.1.0/src/youparle/agents_block.md +60 -0
- youparle-0.1.0/src/youparle/cli.py +511 -0
- youparle-0.1.0/src/youparle/commands/__init__.py +0 -0
- youparle-0.1.0/src/youparle/commands/build.py +59 -0
- youparle-0.1.0/src/youparle/commands/cards.py +49 -0
- youparle-0.1.0/src/youparle/commands/check.py +246 -0
- youparle-0.1.0/src/youparle/commands/exercise.py +65 -0
- youparle-0.1.0/src/youparle/commands/fetch.py +83 -0
- youparle-0.1.0/src/youparle/commands/guide.py +275 -0
- youparle-0.1.0/src/youparle/commands/html_reader.py +386 -0
- youparle-0.1.0/src/youparle/commands/init.py +243 -0
- youparle-0.1.0/src/youparle/commands/journal.py +20 -0
- youparle-0.1.0/src/youparle/commands/json_reader.py +260 -0
- youparle-0.1.0/src/youparle/commands/open_note.py +45 -0
- youparle-0.1.0/src/youparle/commands/publish.py +34 -0
- youparle-0.1.0/src/youparle/commands/server.py +87 -0
- youparle-0.1.0/src/youparle/commands/skill.py +91 -0
- youparle-0.1.0/src/youparle/commands/tmp.py +21 -0
- youparle-0.1.0/src/youparle/commands/tts.py +42 -0
- youparle-0.1.0/src/youparle/commands/voice.py +119 -0
- youparle-0.1.0/src/youparle/contract.py +237 -0
- youparle-0.1.0/src/youparle/documents/__init__.py +3 -0
- youparle-0.1.0/src/youparle/documents/cards.py +217 -0
- youparle-0.1.0/src/youparle/documents/embeds.py +33 -0
- youparle-0.1.0/src/youparle/documents/frontmatter.py +84 -0
- youparle-0.1.0/src/youparle/documents/lesson.py +41 -0
- youparle-0.1.0/src/youparle/documents/publish.py +122 -0
- youparle-0.1.0/src/youparle/documents/separators.py +108 -0
- youparle-0.1.0/src/youparle/documents/transient.py +142 -0
- youparle-0.1.0/src/youparle/errors.py +54 -0
- youparle-0.1.0/src/youparle/exercises/__init__.py +7 -0
- youparle-0.1.0/src/youparle/exercises/answers.py +289 -0
- youparle-0.1.0/src/youparle/exercises/format.py +24 -0
- youparle-0.1.0/src/youparle/exercises/render.py +155 -0
- youparle-0.1.0/src/youparle/exercises/rules.py +70 -0
- youparle-0.1.0/src/youparle/exercises/schema.py +49 -0
- youparle-0.1.0/src/youparle/exercises/shape.py +212 -0
- youparle-0.1.0/src/youparle/exercises/store.py +234 -0
- youparle-0.1.0/src/youparle/fields.py +279 -0
- youparle-0.1.0/src/youparle/file_naming.py +76 -0
- youparle-0.1.0/src/youparle/fs.py +65 -0
- youparle-0.1.0/src/youparle/harness.py +211 -0
- youparle-0.1.0/src/youparle/journal.py +92 -0
- youparle-0.1.0/src/youparle/media.py +793 -0
- youparle-0.1.0/src/youparle/memory.py +40 -0
- youparle-0.1.0/src/youparle/pages.py +68 -0
- youparle-0.1.0/src/youparle/proposal.py +338 -0
- youparle-0.1.0/src/youparle/reading/__init__.py +9 -0
- youparle-0.1.0/src/youparle/reading/display.py +94 -0
- youparle-0.1.0/src/youparle/reading/entries.py +72 -0
- youparle-0.1.0/src/youparle/reading/files.py +119 -0
- youparle-0.1.0/src/youparle/reading/outline.py +215 -0
- youparle-0.1.0/src/youparle/reading/page_outline.py +206 -0
- youparle-0.1.0/src/youparle/reading/page_text.py +196 -0
- youparle-0.1.0/src/youparle/reading/paths.py +636 -0
- youparle-0.1.0/src/youparle/reading/selectors.py +547 -0
- youparle-0.1.0/src/youparle/reading/tree.py +399 -0
- youparle-0.1.0/src/youparle/rules.py +69 -0
- youparle-0.1.0/src/youparle/server/__init__.py +3 -0
- youparle-0.1.0/src/youparle/server/__main__.py +28 -0
- youparle-0.1.0/src/youparle/server/app.py +100 -0
- youparle-0.1.0/src/youparle/server/control.py +243 -0
- youparle-0.1.0/src/youparle/server/filelock.py +46 -0
- youparle-0.1.0/src/youparle/server/handler.py +520 -0
- youparle-0.1.0/src/youparle/server/runtime.py +160 -0
- youparle-0.1.0/src/youparle/skills/card.md +64 -0
- youparle-0.1.0/src/youparle/skills/exercise-page.md +73 -0
- youparle-0.1.0/src/youparle/skills/exercise.md +61 -0
- youparle-0.1.0/src/youparle/skills/feedback.md +23 -0
- youparle-0.1.0/src/youparle/skills/harness.md +23 -0
- youparle-0.1.0/src/youparle/skills/lesson.md +45 -0
- youparle-0.1.0/src/youparle/skills/minimal-pairs.md +92 -0
- youparle-0.1.0/src/youparle/skills/onboarding.md +28 -0
- youparle-0.1.0/src/youparle/skills/remember.md +44 -0
- youparle-0.1.0/src/youparle/skills/resource-search.md +70 -0
- youparle-0.1.0/src/youparle/skills/resources.md +151 -0
- youparle-0.1.0/src/youparle/skills/session-start.md +46 -0
- youparle-0.1.0/src/youparle/skills/shadowing.md +80 -0
- youparle-0.1.0/src/youparle/skills/update.md +21 -0
- youparle-0.1.0/src/youparle/skills/voice.md +62 -0
- youparle-0.1.0/src/youparle/speech.py +311 -0
- youparle-0.1.0/src/youparle/static/base.css +350 -0
- youparle-0.1.0/src/youparle/static/beacon.js +17 -0
- youparle-0.1.0/src/youparle/static/cards.css +263 -0
- youparle-0.1.0/src/youparle/static/cards.js +340 -0
- youparle-0.1.0/src/youparle/static/dates.js +11 -0
- youparle-0.1.0/src/youparle/static/direction.js +30 -0
- youparle-0.1.0/src/youparle/static/exercise.css +705 -0
- youparle-0.1.0/src/youparle/static/exercise.js +472 -0
- youparle-0.1.0/src/youparle/static/fonts/Fredoka-OFL.txt +93 -0
- youparle-0.1.0/src/youparle/static/fonts/Ubuntu-UFL.txt +96 -0
- youparle-0.1.0/src/youparle/static/fonts/fonts.css +219 -0
- youparle-0.1.0/src/youparle/static/fonts/fredoka-hebrew.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/fredoka-latin-ext.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/fredoka-latin.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/ubuntu-400-cyrillic-ext.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/ubuntu-400-cyrillic.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/ubuntu-400-greek-ext.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/ubuntu-400-greek.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/ubuntu-400-latin-ext.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/ubuntu-400-latin.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/ubuntu-500-cyrillic-ext.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/ubuntu-500-cyrillic.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/ubuntu-500-greek-ext.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/ubuntu-500-greek.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/ubuntu-500-latin-ext.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/ubuntu-500-latin.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/ubuntu-700-cyrillic-ext.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/ubuntu-700-cyrillic.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/ubuntu-700-greek-ext.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/ubuntu-700-greek.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/ubuntu-700-latin-ext.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/fonts/ubuntu-700-latin.woff2 +0 -0
- youparle-0.1.0/src/youparle/static/logo.webp +0 -0
- youparle-0.1.0/src/youparle/static/matching.js +221 -0
- youparle-0.1.0/src/youparle/static/motion.js +273 -0
- youparle-0.1.0/src/youparle/static/ordering.js +195 -0
- youparle-0.1.0/src/youparle/static/player.js +191 -0
- youparle-0.1.0/src/youparle/static/shadowing.js +628 -0
- youparle-0.1.0/src/youparle/static/steps.js +90 -0
- youparle-0.1.0/src/youparle/static/stretch.js +104 -0
- youparle-0.1.0/src/youparle/templates/base.html +42 -0
- youparle-0.1.0/src/youparle/templates/card.html +61 -0
- youparle-0.1.0/src/youparle/templates/cards.html +44 -0
- youparle-0.1.0/src/youparle/templates/exercise.html +236 -0
- youparle-0.1.0/src/youparle/templates/icons.html +55 -0
- youparle-0.1.0/src/youparle/templates/media.html +11 -0
- youparle-0.1.0/src/youparle/templates/player.html +33 -0
- youparle-0.1.0/src/youparle/vault.py +128 -0
- youparle-0.1.0/src/youparle/vault_template/.claude/settings.json +24 -0
- youparle-0.1.0/src/youparle/vault_template/.codex/config.toml +8 -0
- youparle-0.1.0/src/youparle/vault_template/.codex/hooks.json +16 -0
- youparle-0.1.0/src/youparle/vault_template/.codex/rules/youparle.rules +3 -0
- youparle-0.1.0/src/youparle/vault_template/.obsidian/app.json +5 -0
- youparle-0.1.0/src/youparle/vault_template/.obsidian/appearance.json +1 -0
- youparle-0.1.0/src/youparle/vault_template/.obsidian/community-plugins.json +3 -0
- youparle-0.1.0/src/youparle/vault_template/.obsidian/core-plugins.json +33 -0
- youparle-0.1.0/src/youparle/vault_template/.obsidian/file-recovery.json +4 -0
- youparle-0.1.0/src/youparle/vault_template/.obsidian/plugins/obsidian-spaced-repetition/LICENSE +21 -0
- youparle-0.1.0/src/youparle/vault_template/.obsidian/plugins/obsidian-spaced-repetition/THIRD-PARTY-NOTICES.txt +288 -0
- youparle-0.1.0/src/youparle/vault_template/.obsidian/plugins/obsidian-spaced-repetition/data.json +91 -0
- youparle-0.1.0/src/youparle/vault_template/.obsidian/plugins/obsidian-spaced-repetition/main.js +37404 -0
- youparle-0.1.0/src/youparle/vault_template/.obsidian/plugins/obsidian-spaced-repetition/manifest.json +12 -0
- youparle-0.1.0/src/youparle/vault_template/.obsidian/plugins/obsidian-spaced-repetition/styles.css +1202 -0
- youparle-0.1.0/src/youparle/vault_template/.obsidian/workspace.json +197 -0
- youparle-0.1.0/src/youparle/vault_template/.opencode/opencode.json +7 -0
- youparle-0.1.0/src/youparle/vault_template/.opencode/plugins/youparle.js +33 -0
- youparle-0.1.0/src/youparle/vault_template/AGENTS.md +2 -0
- youparle-0.1.0/src/youparle/vault_template/CLAUDE.md +1 -0
- youparle-0.1.0/src/youparle/vault_template/agent/exercises/.gitkeep +0 -0
- youparle-0.1.0/src/youparle/vault_template/agent/journal/.gitkeep +0 -0
- youparle-0.1.0/src/youparle/vault_template/agent/media/.gitkeep +0 -0
- youparle-0.1.0/src/youparle/vault_template/agent/preferences.md +0 -0
- youparle-0.1.0/src/youparle/vault_template/agent/progress.md +0 -0
- youparle-0.1.0/src/youparle/vault_template/agent/reports/.gitkeep +0 -0
- youparle-0.1.0/src/youparle/vault_template/agent/resources/index.md +17 -0
- youparle-0.1.0/src/youparle/vault_template/agent/resources/wiktionary-en.md +124 -0
- youparle-0.1.0/src/youparle/vault_template/agent/tmp/.gitkeep +0 -0
- youparle-0.1.0/src/youparle/vault_template/agent/user.md +0 -0
- youparle-0.1.0/src/youparle/vault_template/cards/.gitkeep +0 -0
- youparle-0.1.0/src/youparle/vault_template/lessons/.gitkeep +0 -0
- youparle-0.1.0/src/youparle/vault_template/library/.gitkeep +0 -0
- youparle-0.1.0/src/youparle/vault_template/notes/.gitkeep +0 -0
- youparle-0.1.0/src/youparle/voice/__init__.py +8 -0
- youparle-0.1.0/src/youparle/voice/install.py +256 -0
- youparle-0.1.0/src/youparle/voice/locales.py +51 -0
- youparle-0.1.0/src/youparle/voice/protocol.py +238 -0
- youparle-0.1.0/src/youparle/voice/providers.py +169 -0
- youparle-0.1.0/src/youparle/voice/scripts/speak_edge.py +50 -0
- youparle-0.1.0/src/youparle/voice/scripts/youparle_provider.py +55 -0
- youparle-0.1.0/tests/conftest.py +113 -0
- youparle-0.1.0/tests/fake_provider.py +86 -0
- youparle-0.1.0/tests/page_shapes.py +170 -0
- youparle-0.1.0/tests/source_shapes.py +308 -0
- youparle-0.1.0/tests/test_agents.py +52 -0
- youparle-0.1.0/tests/test_answers.py +350 -0
- youparle-0.1.0/tests/test_cards.py +198 -0
- youparle-0.1.0/tests/test_check.py +149 -0
- youparle-0.1.0/tests/test_cli.py +72 -0
- youparle-0.1.0/tests/test_cli_publish.py +84 -0
- youparle-0.1.0/tests/test_exercise_command.py +248 -0
- youparle-0.1.0/tests/test_exercise_pages.py +707 -0
- youparle-0.1.0/tests/test_exercises.py +447 -0
- youparle-0.1.0/tests/test_file_naming.py +64 -0
- youparle-0.1.0/tests/test_fs.py +97 -0
- youparle-0.1.0/tests/test_guide.py +404 -0
- youparle-0.1.0/tests/test_harness.py +192 -0
- youparle-0.1.0/tests/test_html_command.py +612 -0
- youparle-0.1.0/tests/test_html_outline.py +157 -0
- youparle-0.1.0/tests/test_html_selectors.py +356 -0
- youparle-0.1.0/tests/test_html_text.py +211 -0
- youparle-0.1.0/tests/test_html_tree.py +387 -0
- youparle-0.1.0/tests/test_init.py +418 -0
- youparle-0.1.0/tests/test_journal.py +92 -0
- youparle-0.1.0/tests/test_json_command.py +585 -0
- youparle-0.1.0/tests/test_json_outline.py +229 -0
- youparle-0.1.0/tests/test_json_paths.py +586 -0
- youparle-0.1.0/tests/test_media.py +1154 -0
- youparle-0.1.0/tests/test_page_consistency.py +170 -0
- youparle-0.1.0/tests/test_page_leaks.py +115 -0
- youparle-0.1.0/tests/test_proposal.py +423 -0
- youparle-0.1.0/tests/test_publish.py +391 -0
- youparle-0.1.0/tests/test_separators.py +134 -0
- youparle-0.1.0/tests/test_server_commands.py +184 -0
- youparle-0.1.0/tests/test_server_handler.py +272 -0
- youparle-0.1.0/tests/test_server_lifecycle.py +327 -0
- youparle-0.1.0/tests/test_server_runtime.py +122 -0
- youparle-0.1.0/tests/test_shape.py +202 -0
- youparle-0.1.0/tests/test_skill.py +136 -0
- youparle-0.1.0/tests/test_speech.py +281 -0
- youparle-0.1.0/tests/test_vault.py +104 -0
- youparle-0.1.0/tests/test_voice.py +220 -0
youparle-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Franck Burlot
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
youparle-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: youparle
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Local tooling for a YouParle language learning vault
|
|
5
|
+
Project-URL: Homepage, https://gitlab.com/franckbrl/youparle
|
|
6
|
+
Project-URL: Source, https://gitlab.com/franckbrl/youparle
|
|
7
|
+
Author: Franck Burlot
|
|
8
|
+
License-Expression: MIT AND BlueOak-1.0.0 AND OFL-1.1 AND Ubuntu-font-1.0
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
License-File: src/youparle/static/fonts/Fredoka-OFL.txt
|
|
11
|
+
License-File: src/youparle/static/fonts/Ubuntu-UFL.txt
|
|
12
|
+
License-File: src/youparle/vault_template/.obsidian/plugins/obsidian-spaced-repetition/LICENSE
|
|
13
|
+
License-File: src/youparle/vault_template/.obsidian/plugins/obsidian-spaced-repetition/THIRD-PARTY-NOTICES.txt
|
|
14
|
+
Keywords: language-learning,local-first,obsidian
|
|
15
|
+
Classifier: Development Status :: 3 - Alpha
|
|
16
|
+
Classifier: Environment :: Console
|
|
17
|
+
Classifier: Intended Audience :: Education
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Topic :: Education
|
|
22
|
+
Requires-Python: >=3.11
|
|
23
|
+
Requires-Dist: jinja2==3.1.6
|
|
24
|
+
Requires-Dist: numpy==2.4.6
|
|
25
|
+
Requires-Dist: pillow==12.3.0
|
|
26
|
+
Requires-Dist: platformdirs==4.11.10
|
|
27
|
+
Requires-Dist: soundfile==0.14.0
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
|
|
30
|
+
# youparle
|
|
31
|
+
|
|
32
|
+
Local tooling for a YouParle language learning vault.
|
|
33
|
+
|
|
34
|
+
A student learns a language with an LLM agent that lives in a folder on their
|
|
35
|
+
machine. This package is what that agent calls for everything it is not allowed
|
|
36
|
+
to do by itself: publishing lessons and cards, rendering exercises, fetching
|
|
37
|
+
media and what sources answer, showing the student a picture or a sound. There
|
|
38
|
+
is no server and no account. No data leaves the machine, unless the student
|
|
39
|
+
chooses the Microsoft voice, which sends the texts it speaks to Microsoft.
|
|
40
|
+
|
|
41
|
+
The package also makes that folder. `youparle init` copies a template that
|
|
42
|
+
ships inside the package, `src/youparle/vault_template/`: the agent's
|
|
43
|
+
instructions, the config of each harness that runs it, and the Obsidian
|
|
44
|
+
settings with the Spaced Repetition plugin. After that the folder belongs to
|
|
45
|
+
the student. The one part the package rewrites is the youparle block at the
|
|
46
|
+
top of `AGENTS.md`, which holds the agent's instructions; the student writes
|
|
47
|
+
their own below it.
|
|
48
|
+
The package recognises a vault by its contents alone: `AGENTS.md` and `agent/`
|
|
49
|
+
at the root.
|
|
50
|
+
|
|
51
|
+
## Installing
|
|
52
|
+
|
|
53
|
+
The student's agent installs youparle. The student opens an empty folder in
|
|
54
|
+
their harness and pastes the prompt in [INSTALL.md](INSTALL.md). The agent
|
|
55
|
+
installs [uv](https://docs.astral.sh/uv/) the way its system needs, then
|
|
56
|
+
youparle with `uv tool install`, and runs `youparle init` in that folder. It
|
|
57
|
+
asks the student to install Obsidian and open the folder in it, runs
|
|
58
|
+
`youparle check`, and asks them to restart the harness. No administrator
|
|
59
|
+
rights are needed.
|
|
60
|
+
|
|
61
|
+
By hand, from the course folder:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
uv tool install --managed-python --python 3.13 "youparle @ https://gitlab.com/franckbrl/youparle/-/archive/main/youparle-main.tar.gz"
|
|
65
|
+
uv tool update-shell
|
|
66
|
+
youparle init
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
`init` also takes a path. The folder must be empty, or
|
|
70
|
+
must not exist yet. Hidden folders a harness or Obsidian made there (`.claude`,
|
|
71
|
+
`.codex`, `.obsidian`, `.opencode`) are allowed. Run `init` again in a vault, and it creates only what is
|
|
72
|
+
missing and rewrites the youparle block in `AGENTS.md`. Any other folder is
|
|
73
|
+
refused: for `init`, a vault is a folder whose `AGENTS.md` holds that block.
|
|
74
|
+
|
|
75
|
+
`init` writes the config of each harness whose desktop app is installed, in a
|
|
76
|
+
version it knows: today, Claude Code in the Claude app, Codex in the ChatGPT
|
|
77
|
+
app, and the OpenCode app. The config lets the agent run youparle, write in `agent/` only,
|
|
78
|
+
and read the vault only. It puts the output of `youparle guide` in the agent's
|
|
79
|
+
context at the start of each session. Install the app first. Run `init` again
|
|
80
|
+
after installing or updating one: it adds the missing config. An update never
|
|
81
|
+
rewrites a config.
|
|
82
|
+
|
|
83
|
+
Then, from the course folder:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
youparle check
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
To update, ask the agent. It follows `youparle skill update`: it stops the
|
|
90
|
+
server, runs `uv tool upgrade youparle`, then `youparle voice update`, then
|
|
91
|
+
`youparle init` to rewrite the block, then `youparle check`.
|
|
92
|
+
|
|
93
|
+
Installing youparle installs no voice. The agent offers one when it meets the
|
|
94
|
+
student, with the `voice` skill: the Microsoft voice, a program of the
|
|
95
|
+
student's own, or none. See [docs/voice.md](docs/voice.md).
|
|
96
|
+
|
|
97
|
+
## Commands
|
|
98
|
+
|
|
99
|
+
| Command | What it does |
|
|
100
|
+
|---|---|
|
|
101
|
+
| `youparle init [path]` | Make a vault from the template, or create what a vault is missing and rewrite the youparle block in `AGENTS.md`. Overwrites nothing else. |
|
|
102
|
+
| `youparle guide` | Print what to do at the start of a session, the skills, the tools, the rules that hold everywhere, and who the student is and how they want to be taught. |
|
|
103
|
+
| `youparle tmp clear` | Empty `agent/tmp/`, folders included. Run at the start of a session. |
|
|
104
|
+
| `youparle journal add <line>…` | Add lines at the end of today's journal, `agent/journal/YYYY-MM-DD.md`. A line about practice is checked: its competences, and its exercise. |
|
|
105
|
+
| `youparle skill <name>` | Print the steps for one task: `exercise`, `exercise-page`, `minimal-pairs`, `shadowing`, `lesson`, `card`, `feedback`, `onboarding`, `session-start`, `remember`, `update`, `harness`, `voice`. |
|
|
106
|
+
| `youparle check` | Diagnose the installation: folder, memory files, Obsidian plugins, and the voice, which it tests by having it speak. |
|
|
107
|
+
| `youparle server start\|stop\|status` | Explicit control over the local server. The normal lifecycle is automatic. |
|
|
108
|
+
| `youparle exercise new <source.json>` | Validate an exercise and write it into `agent/exercises/`. |
|
|
109
|
+
| `youparle build-exercise <id>` | Render an exercise and open it in the browser. |
|
|
110
|
+
| `youparle lesson publish <draft.md> [--title …]` | Publish a draft into `lessons/`. |
|
|
111
|
+
| `youparle cards <proposal.json>` | Open the page where the student edits the proposed cards; each one validated is written into `cards/`. |
|
|
112
|
+
| `youparle fetch <url>… [--name …] [--header …]` | Download pictures, sounds, or files to read (JSON, JSON Lines, HTML, XML, text) into `agent/tmp/`, several at once. An address is typed as it reads, in any script. A header a source requires is sent with `--header`. |
|
|
113
|
+
| `youparle json <file>… [--path …]` | Print the outline of JSON or JSON Lines files in the vault, or what each path leads to in them. A path that finds nothing says what is there instead. |
|
|
114
|
+
| `youparle html <file>… [--select …] [--from …]` | Print the outline of HTML pages in the vault, or the text of what each selector matches in them, a table a row a line. `--from` reads the HTML that a JSON file holds. A selector that matches nothing says what is there instead. |
|
|
115
|
+
| `youparle tts --locale <locale> <text>… [--name …]` | Speak texts into mp3s in `agent/tmp/`, a voice drawn per text. |
|
|
116
|
+
| `youparle voice` | Show the voice of this machine. `voice use edge\|none\|custom` installs one or switches to one; `voice update` updates it. |
|
|
117
|
+
| `youparle open <path>` | Open a note of the vault in Obsidian. |
|
|
118
|
+
|
|
119
|
+
Every command but `init` resolves its vault from the current directory, and
|
|
120
|
+
every command takes `--json`.
|
|
121
|
+
A refusal says what was refused and what to do instead, on stderr, with a
|
|
122
|
+
non-zero exit code.
|
|
123
|
+
|
|
124
|
+
`youparle guide` and `youparle skill` are what the agent is told, and they ship
|
|
125
|
+
with the code, so they cannot describe a version that is not installed.
|
|
126
|
+
`youparle <command> --help` has the options.
|
|
127
|
+
|
|
128
|
+
## Documentation
|
|
129
|
+
|
|
130
|
+
[docs/](docs/) explains why the package is built the way it is, and which rules
|
|
131
|
+
a change must not break. Start at [docs/README.md](docs/README.md).
|
|
132
|
+
|
|
133
|
+
## Developing
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
uv sync --group dev
|
|
137
|
+
uv run pytest
|
|
138
|
+
uv run ruff check . && uv run ruff format --check .
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Everything in this repository is in English — names, comments, tests and the
|
|
142
|
+
messages the CLI prints. The system is agnostic about the language being
|
|
143
|
+
taught, and French is only one course among others.
|
|
144
|
+
|
|
145
|
+
A running server holds the code it was started with, so run `youparle server
|
|
146
|
+
stop` after changing anything it serves.
|
|
147
|
+
|
|
148
|
+
What a new vault holds is the folder `src/youparle/vault_template/`. See
|
|
149
|
+
[docs/vault.md](docs/vault.md) before changing it.
|
|
150
|
+
|
|
151
|
+
## Licence
|
|
152
|
+
|
|
153
|
+
MIT. See [LICENSE](LICENSE).
|
|
154
|
+
|
|
155
|
+
The vault template includes the Obsidian plugin
|
|
156
|
+
[Spaced Repetition](https://github.com/st3v3nmw/obsidian-spaced-repetition)
|
|
157
|
+
by Stephen Mwangi, under the MIT licence. Its `main.js` bundles other
|
|
158
|
+
libraries, all MIT except minimatch, which is under the Blue Oak Model License
|
|
159
|
+
1.0.0. The plugin's folder,
|
|
160
|
+
`src/youparle/vault_template/.obsidian/plugins/obsidian-spaced-repetition/`,
|
|
161
|
+
holds its `LICENSE` and a `THIRD-PARTY-NOTICES.txt` with the licence of each
|
|
162
|
+
bundled library, so both reach every vault.
|
youparle-0.1.0/README.md
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# youparle
|
|
2
|
+
|
|
3
|
+
Local tooling for a YouParle language learning vault.
|
|
4
|
+
|
|
5
|
+
A student learns a language with an LLM agent that lives in a folder on their
|
|
6
|
+
machine. This package is what that agent calls for everything it is not allowed
|
|
7
|
+
to do by itself: publishing lessons and cards, rendering exercises, fetching
|
|
8
|
+
media and what sources answer, showing the student a picture or a sound. There
|
|
9
|
+
is no server and no account. No data leaves the machine, unless the student
|
|
10
|
+
chooses the Microsoft voice, which sends the texts it speaks to Microsoft.
|
|
11
|
+
|
|
12
|
+
The package also makes that folder. `youparle init` copies a template that
|
|
13
|
+
ships inside the package, `src/youparle/vault_template/`: the agent's
|
|
14
|
+
instructions, the config of each harness that runs it, and the Obsidian
|
|
15
|
+
settings with the Spaced Repetition plugin. After that the folder belongs to
|
|
16
|
+
the student. The one part the package rewrites is the youparle block at the
|
|
17
|
+
top of `AGENTS.md`, which holds the agent's instructions; the student writes
|
|
18
|
+
their own below it.
|
|
19
|
+
The package recognises a vault by its contents alone: `AGENTS.md` and `agent/`
|
|
20
|
+
at the root.
|
|
21
|
+
|
|
22
|
+
## Installing
|
|
23
|
+
|
|
24
|
+
The student's agent installs youparle. The student opens an empty folder in
|
|
25
|
+
their harness and pastes the prompt in [INSTALL.md](INSTALL.md). The agent
|
|
26
|
+
installs [uv](https://docs.astral.sh/uv/) the way its system needs, then
|
|
27
|
+
youparle with `uv tool install`, and runs `youparle init` in that folder. It
|
|
28
|
+
asks the student to install Obsidian and open the folder in it, runs
|
|
29
|
+
`youparle check`, and asks them to restart the harness. No administrator
|
|
30
|
+
rights are needed.
|
|
31
|
+
|
|
32
|
+
By hand, from the course folder:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
uv tool install --managed-python --python 3.13 "youparle @ https://gitlab.com/franckbrl/youparle/-/archive/main/youparle-main.tar.gz"
|
|
36
|
+
uv tool update-shell
|
|
37
|
+
youparle init
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
`init` also takes a path. The folder must be empty, or
|
|
41
|
+
must not exist yet. Hidden folders a harness or Obsidian made there (`.claude`,
|
|
42
|
+
`.codex`, `.obsidian`, `.opencode`) are allowed. Run `init` again in a vault, and it creates only what is
|
|
43
|
+
missing and rewrites the youparle block in `AGENTS.md`. Any other folder is
|
|
44
|
+
refused: for `init`, a vault is a folder whose `AGENTS.md` holds that block.
|
|
45
|
+
|
|
46
|
+
`init` writes the config of each harness whose desktop app is installed, in a
|
|
47
|
+
version it knows: today, Claude Code in the Claude app, Codex in the ChatGPT
|
|
48
|
+
app, and the OpenCode app. The config lets the agent run youparle, write in `agent/` only,
|
|
49
|
+
and read the vault only. It puts the output of `youparle guide` in the agent's
|
|
50
|
+
context at the start of each session. Install the app first. Run `init` again
|
|
51
|
+
after installing or updating one: it adds the missing config. An update never
|
|
52
|
+
rewrites a config.
|
|
53
|
+
|
|
54
|
+
Then, from the course folder:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
youparle check
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
To update, ask the agent. It follows `youparle skill update`: it stops the
|
|
61
|
+
server, runs `uv tool upgrade youparle`, then `youparle voice update`, then
|
|
62
|
+
`youparle init` to rewrite the block, then `youparle check`.
|
|
63
|
+
|
|
64
|
+
Installing youparle installs no voice. The agent offers one when it meets the
|
|
65
|
+
student, with the `voice` skill: the Microsoft voice, a program of the
|
|
66
|
+
student's own, or none. See [docs/voice.md](docs/voice.md).
|
|
67
|
+
|
|
68
|
+
## Commands
|
|
69
|
+
|
|
70
|
+
| Command | What it does |
|
|
71
|
+
|---|---|
|
|
72
|
+
| `youparle init [path]` | Make a vault from the template, or create what a vault is missing and rewrite the youparle block in `AGENTS.md`. Overwrites nothing else. |
|
|
73
|
+
| `youparle guide` | Print what to do at the start of a session, the skills, the tools, the rules that hold everywhere, and who the student is and how they want to be taught. |
|
|
74
|
+
| `youparle tmp clear` | Empty `agent/tmp/`, folders included. Run at the start of a session. |
|
|
75
|
+
| `youparle journal add <line>…` | Add lines at the end of today's journal, `agent/journal/YYYY-MM-DD.md`. A line about practice is checked: its competences, and its exercise. |
|
|
76
|
+
| `youparle skill <name>` | Print the steps for one task: `exercise`, `exercise-page`, `minimal-pairs`, `shadowing`, `lesson`, `card`, `feedback`, `onboarding`, `session-start`, `remember`, `update`, `harness`, `voice`. |
|
|
77
|
+
| `youparle check` | Diagnose the installation: folder, memory files, Obsidian plugins, and the voice, which it tests by having it speak. |
|
|
78
|
+
| `youparle server start\|stop\|status` | Explicit control over the local server. The normal lifecycle is automatic. |
|
|
79
|
+
| `youparle exercise new <source.json>` | Validate an exercise and write it into `agent/exercises/`. |
|
|
80
|
+
| `youparle build-exercise <id>` | Render an exercise and open it in the browser. |
|
|
81
|
+
| `youparle lesson publish <draft.md> [--title …]` | Publish a draft into `lessons/`. |
|
|
82
|
+
| `youparle cards <proposal.json>` | Open the page where the student edits the proposed cards; each one validated is written into `cards/`. |
|
|
83
|
+
| `youparle fetch <url>… [--name …] [--header …]` | Download pictures, sounds, or files to read (JSON, JSON Lines, HTML, XML, text) into `agent/tmp/`, several at once. An address is typed as it reads, in any script. A header a source requires is sent with `--header`. |
|
|
84
|
+
| `youparle json <file>… [--path …]` | Print the outline of JSON or JSON Lines files in the vault, or what each path leads to in them. A path that finds nothing says what is there instead. |
|
|
85
|
+
| `youparle html <file>… [--select …] [--from …]` | Print the outline of HTML pages in the vault, or the text of what each selector matches in them, a table a row a line. `--from` reads the HTML that a JSON file holds. A selector that matches nothing says what is there instead. |
|
|
86
|
+
| `youparle tts --locale <locale> <text>… [--name …]` | Speak texts into mp3s in `agent/tmp/`, a voice drawn per text. |
|
|
87
|
+
| `youparle voice` | Show the voice of this machine. `voice use edge\|none\|custom` installs one or switches to one; `voice update` updates it. |
|
|
88
|
+
| `youparle open <path>` | Open a note of the vault in Obsidian. |
|
|
89
|
+
|
|
90
|
+
Every command but `init` resolves its vault from the current directory, and
|
|
91
|
+
every command takes `--json`.
|
|
92
|
+
A refusal says what was refused and what to do instead, on stderr, with a
|
|
93
|
+
non-zero exit code.
|
|
94
|
+
|
|
95
|
+
`youparle guide` and `youparle skill` are what the agent is told, and they ship
|
|
96
|
+
with the code, so they cannot describe a version that is not installed.
|
|
97
|
+
`youparle <command> --help` has the options.
|
|
98
|
+
|
|
99
|
+
## Documentation
|
|
100
|
+
|
|
101
|
+
[docs/](docs/) explains why the package is built the way it is, and which rules
|
|
102
|
+
a change must not break. Start at [docs/README.md](docs/README.md).
|
|
103
|
+
|
|
104
|
+
## Developing
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
uv sync --group dev
|
|
108
|
+
uv run pytest
|
|
109
|
+
uv run ruff check . && uv run ruff format --check .
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Everything in this repository is in English — names, comments, tests and the
|
|
113
|
+
messages the CLI prints. The system is agnostic about the language being
|
|
114
|
+
taught, and French is only one course among others.
|
|
115
|
+
|
|
116
|
+
A running server holds the code it was started with, so run `youparle server
|
|
117
|
+
stop` after changing anything it serves.
|
|
118
|
+
|
|
119
|
+
What a new vault holds is the folder `src/youparle/vault_template/`. See
|
|
120
|
+
[docs/vault.md](docs/vault.md) before changing it.
|
|
121
|
+
|
|
122
|
+
## Licence
|
|
123
|
+
|
|
124
|
+
MIT. See [LICENSE](LICENSE).
|
|
125
|
+
|
|
126
|
+
The vault template includes the Obsidian plugin
|
|
127
|
+
[Spaced Repetition](https://github.com/st3v3nmw/obsidian-spaced-repetition)
|
|
128
|
+
by Stephen Mwangi, under the MIT licence. Its `main.js` bundles other
|
|
129
|
+
libraries, all MIT except minimatch, which is under the Blue Oak Model License
|
|
130
|
+
1.0.0. The plugin's folder,
|
|
131
|
+
`src/youparle/vault_template/.obsidian/plugins/obsidian-spaced-repetition/`,
|
|
132
|
+
holds its `LICENSE` and a `THIRD-PARTY-NOTICES.txt` with the licence of each
|
|
133
|
+
bundled library, so both reach every vault.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Documentation
|
|
2
|
+
|
|
3
|
+
Written for whoever works on this package. Why it is built the way it is, and
|
|
4
|
+
which rules a change must not break.
|
|
5
|
+
|
|
6
|
+
What the *agent* is told is a separate thing, and not here: `youparle guide`
|
|
7
|
+
and `youparle skill` print that, and they ship with the code so they cannot
|
|
8
|
+
drift from the installed version. This folder explains the design; the guide
|
|
9
|
+
and the skills state the contract.
|
|
10
|
+
|
|
11
|
+
| | |
|
|
12
|
+
|---|---|
|
|
13
|
+
| [invariants.md](invariants.md) | The rules every command keeps: the vault, paths, writes, failures. |
|
|
14
|
+
| [vault.md](vault.md) | The template a vault is made from, and how `init` copies it. |
|
|
15
|
+
| [harnesses/](harnesses/) | What Claude Code, Codex and opencode really do with the config a vault gives them. |
|
|
16
|
+
| [publishing.md](publishing.md) | Drafts, lessons, the cards page and card files, and the Spaced Repetition separators. |
|
|
17
|
+
| [server.md](server.md) | One server per vault, an ephemeral port, three guards. |
|
|
18
|
+
| [exercises.md](exercises.md) | The six types, how entries are placed, how answers come back, shadowing. |
|
|
19
|
+
| [media.md](media.md) | `fetch`: pictures, sounds, and files to read; and `tts`. |
|
|
20
|
+
| [reading.md](reading.md) | `youparle json` and `youparle html`: reading what a source answered, with paths or selectors, and what one that finds nothing says. |
|
|
21
|
+
| [voice.md](voice.md) | Which program speaks, `youparle voice`, and plugging in a program of one's own. |
|
|
22
|
+
| [pages.md](pages.md) | Adding a page without starting a second product. |
|
|
23
|
+
| [decisions.md](decisions.md) | Tried and removed, deliberately not built, still open. |
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# Decisions
|
|
2
|
+
|
|
3
|
+
What was tried and taken out, what is deliberately absent, and what is still
|
|
4
|
+
open. Here so that none of it is rediscovered from scratch.
|
|
5
|
+
|
|
6
|
+
## Tried and removed
|
|
7
|
+
|
|
8
|
+
### `cards state` — a list of cards sorted by how fragile they are
|
|
9
|
+
|
|
10
|
+
Built and removed the same day; `git log` has it.
|
|
11
|
+
|
|
12
|
+
It reimplemented the Spaced Repetition plugin's parser with no reference to
|
|
13
|
+
check against, and every way it went wrong went wrong quietly. Cards written in
|
|
14
|
+
a note outside `cards/` were invisible — absent from the list *and* from the
|
|
15
|
+
list of files it could not read. A note holding several cards was dropped
|
|
16
|
+
whole. A state comment one field longer than the expected
|
|
17
|
+
`<!--SR:!date,interval,ease-->` parsed as *never reviewed*, which the sort then
|
|
18
|
+
placed above every real card: a word the student knew well, presented as the
|
|
19
|
+
most urgent thing in the vault.
|
|
20
|
+
|
|
21
|
+
`data.json` also holds `scheduleData` with an algorithm per entry, so the plugin
|
|
22
|
+
can keep schedules there and supports FSRS. The `<!--SR:-->` comment is not
|
|
23
|
+
necessarily the source of truth at all.
|
|
24
|
+
|
|
25
|
+
It broke the rule in [invariants.md](invariants.md): reading and searching stay
|
|
26
|
+
with the harness. An LLM meeting an unfamiliar comment notices it; a regular
|
|
27
|
+
expression returns nothing and says nothing.
|
|
28
|
+
|
|
29
|
+
Strictness is safe on the way in and dangerous on the way out. The same
|
|
30
|
+
separator reading is right when a card is written — a card it would split
|
|
31
|
+
wrongly is a refusal someone acts on — and wrong in a reader, where a card it
|
|
32
|
+
cannot parse is a card nobody hears about again.
|
|
33
|
+
|
|
34
|
+
There is also a reason not to want the list. Spaced repetition measures recall,
|
|
35
|
+
and the measurement means something only if it is uncontaminated. A word the
|
|
36
|
+
agent puts in a lesson in the morning is a word the student recalls that
|
|
37
|
+
evening *because* they saw it that morning; the plugin extends the interval on
|
|
38
|
+
the strength of it, and the word is genuinely forgotten by the time it returns.
|
|
39
|
+
Any future version has to answer that, and the answer is likelier to be a rule
|
|
40
|
+
in the agent's skill than a flag here.
|
|
41
|
+
|
|
42
|
+
If it is ever rebuilt: raw, whole-vault, no sort, no interpretation — every
|
|
43
|
+
file carrying `#flashcards` with its state comments verbatim, several per file,
|
|
44
|
+
and the agent deciding what they mean.
|
|
45
|
+
|
|
46
|
+
### Correcting a card's separator instead of refusing it
|
|
47
|
+
|
|
48
|
+
Also built and removed. When the student had changed a separator, `card
|
|
49
|
+
publish` rewrote the draft's `::` to whatever was in force, by role, so the
|
|
50
|
+
agent never had to know.
|
|
51
|
+
|
|
52
|
+
Writing cards from fields does the job better: nobody writes a separator, so
|
|
53
|
+
there is none to correct. The package chooses it from the settings at the
|
|
54
|
+
moment the card is written.
|
|
55
|
+
|
|
56
|
+
### A voice that works offline: Piper
|
|
57
|
+
|
|
58
|
+
Built and removed; `git log` has it.
|
|
59
|
+
|
|
60
|
+
Piper (`piper-tts`) spoke without the network, with the three best voices of
|
|
61
|
+
each locale in its catalog. It was listened to on 2026-10-07, in English,
|
|
62
|
+
French, Russian and Ukrainian, and it could not be used for learning. Every
|
|
63
|
+
English voice read "I read that book last year" with the vowel of the present
|
|
64
|
+
tense. The Russian voices put the stress on the wrong syllable, one French
|
|
65
|
+
voice added an [n] between two words, and the Ukrainian voices had both wrong
|
|
66
|
+
stresses and an artificial flow. Piper turns the text into phonemes with
|
|
67
|
+
espeak-ng, whose rules do not understand the sentence, and most of its voices
|
|
68
|
+
are medium models trained on little data.
|
|
69
|
+
|
|
70
|
+
A learner imitates what they hear, and cannot tell when the voice is wrong. So
|
|
71
|
+
a voice that mispronounces is worse than no voice.
|
|
72
|
+
|
|
73
|
+
The other local voices, measured on an M4 and listened to on 2026-10-04, did
|
|
74
|
+
no better. Kokoro was not better than Piper in French or Ukrainian, had one
|
|
75
|
+
French voice only, and its int8 model gave silent files (NaN). sherpa-onnx
|
|
76
|
+
runs the same Piper models with the same espeak-ng, so it has the same faults. Supertonic 3 was archived by
|
|
77
|
+
its authors on 2026-09-09. Chatterbox, Qwen3-TTS, VoxCPM2 and XTTS need a GPU
|
|
78
|
+
or several GB. The system's own voices differ from one machine to the next,
|
|
79
|
+
and the good Windows voices are not open to other programs. A student who
|
|
80
|
+
wants one of them can plug it in as a provider of their own
|
|
81
|
+
([voice.md](voice.md)).
|
|
82
|
+
|
|
83
|
+
## Deliberately not built
|
|
84
|
+
|
|
85
|
+
- **Judging the student's pronunciation.** `shadowing` records, plays back
|
|
86
|
+
and draws the envelope; the `minimal-pairs` skill builds an `mcq`. Nothing
|
|
87
|
+
tells a right take from a wrong one. A take never reaches the server.
|
|
88
|
+
|
|
89
|
+
- **An MCP server exposing the commands as tools.** `youparle guide --json`
|
|
90
|
+
already returns what such a server would build its tool descriptions from.
|
|
91
|
+
|
|
92
|
+
- **Layered updating of the installed folder**: skill versioning, file
|
|
93
|
+
fingerprints, diagnostics for a folder that has drifted from what was
|
|
94
|
+
installed.
|
|
95
|
+
|
|
96
|
+
- **Switching voice by itself.** When the voice fails, youparle does not try
|
|
97
|
+
another provider. The agent tells the student, and the student decides.
|
|
98
|
+
|
|
99
|
+
- **A provider per locale.** The provider that speaks refuses the locales it
|
|
100
|
+
does not have, even when another one installed would have them.
|
|
101
|
+
|
|
102
|
+
- **Checking what `tts` made.** A sound could be transcribed and compared with
|
|
103
|
+
its text before an exercise uses it. `check` only finds speech in one sound.
|
|
104
|
+
|
|
105
|
+
- **A query language for `youparle json`: JMESPath, or jq.** A missing key
|
|
106
|
+
gives `null` without a word, and the errors do not help a model fix its
|
|
107
|
+
query: `In function contains(), invalid type for value: None…`. Each would
|
|
108
|
+
also be a dependency, and jq comes with macOS but not with Windows. The
|
|
109
|
+
readers walk a path of their own one step at a time, so that a step that
|
|
110
|
+
finds nothing can say what is there. See [reading.md](reading.md).
|
|
111
|
+
|
|
112
|
+
- **A command for one source**, such as `youparle wiktionary <Language>
|
|
113
|
+
<word>`. It would tie the package to one website: when the site changes,
|
|
114
|
+
the fix waits for a release. It would also do nothing for the sources that
|
|
115
|
+
each agent finds for itself, in every language. The agent's resource files
|
|
116
|
+
hold the addresses and the paths, and the agent fixes a file in one turn.
|
|
117
|
+
|
|
118
|
+
- **`lang` on pages.** We do not know the language of what the agent wrote,
|
|
119
|
+
and a wrong one picks the wrong fonts and screen-reader voice. If kanji show
|
|
120
|
+
in their Chinese forms, the fix is a `lang` the agent sets, on the items only.
|
|
121
|
+
|
|
122
|
+
## Still open
|
|
123
|
+
|
|
124
|
+
- **Competence as an enumeration.** `contract.COMPETENCES` documents the five
|
|
125
|
+
expected values, but the field is accepted as a free string. Enforcing the
|
|
126
|
+
list would catch a typo in a draft's frontmatter at publication; it would
|
|
127
|
+
also refuse a competence the teaching side adds before the package knows
|
|
128
|
+
about it. Nothing depends on the choice today: competences appear in
|
|
129
|
+
frontmatter and in journal lines, never in file names.
|
|
130
|
+
|
|
131
|
+
- **Testing on Windows.** The code avoids OS-specific shell commands and goes
|
|
132
|
+
through `os`, `subprocess` and `platformdirs`. The server's lock and its
|
|
133
|
+
detachment flags have Windows code that has not run on Windows yet. The
|
|
134
|
+
lifecycle tests (`tests/test_server_lifecycle.py`) are what should run there
|
|
135
|
+
first. They kill the server with `SIGKILL`, which Windows does not have.
|
|
136
|
+
|
|
137
|
+
## Settled by checking
|
|
138
|
+
|
|
139
|
+
- **The Spaced Repetition separator key names.** Confirmed against the plugin's
|
|
140
|
+
source and against an installed `main.js` (v1.13.8). All four names and all
|
|
141
|
+
four defaults are right. What was wrong was where we looked: they sit under
|
|
142
|
+
`data.json`'s `settings` key, not at the top level. See
|
|
143
|
+
[publishing.md](publishing.md).
|