@bendyline/gilde 0.2.7 → 0.3.1
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/authoring/chat-models/nanbeige4.2-3b-q4.json +1 -1
- package/authoring/chat-models/nemotron3.5-bolt-e4b-q4.json +137 -0
- package/authoring/tactical/wave.json +18 -18
- package/data/chat-models/index.json +1 -1
- package/data/chat-models/na/nanbeige4.2-3b-q4/manifest.json +1 -1
- package/data/chat-models/ne/nemotron3.5-bolt-e4b-q4/manifest.json +142 -0
- package/data/chat-models/ne/nemotron3.5-bolt-e4b-q4/versions/1.0.0/manifest.json +14 -0
- package/data/chat-models/ne/nemotron3.5-bolt-e4b-q4/versions/1.0.1/manifest.json +14 -0
- package/data/chat-models/raw-index.json +1 -1
- package/data/craftbook-templates/an/anniversary-cut/versions/1.0.8/craftbook.json +411 -0
- package/data/craftbook-templates/an/anniversary-cut/versions/1.0.8/test.json +100 -0
- package/data/craftbook-templates/au/automation-recipe/versions/1.0.6/craftbook.json +354 -0
- package/data/craftbook-templates/au/automation-recipe/versions/1.0.6/test.json +223 -0
- package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.6/craftbook.json +736 -0
- package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.6/test.json +221 -0
- package/data/craftbook-templates/ch/character-sheet/versions/1.0.6/craftbook.json +242 -0
- package/data/craftbook-templates/ch/character-sheet/versions/1.0.6/test.json +143 -0
- package/data/craftbook-templates/ch/character-turnaround/versions/1.0.6/craftbook.json +284 -0
- package/data/craftbook-templates/ch/character-turnaround/versions/1.0.6/test.json +189 -0
- package/data/craftbook-templates/co/codemod-sweep/versions/1.0.5/craftbook.json +607 -0
- package/data/craftbook-templates/co/codemod-sweep/versions/1.0.5/test.json +252 -0
- package/data/craftbook-templates/co/comprehensive-codebase-review/manifest.json +1 -1
- package/data/craftbook-templates/co/comprehensive-codebase-review/versions/1.0.3/craftbook.json +548 -0
- package/data/craftbook-templates/co/comprehensive-codebase-review/versions/1.0.3/test.json +160 -0
- package/data/craftbook-templates/de/dependency-upgrade/versions/1.0.6/craftbook.json +625 -0
- package/data/craftbook-templates/de/dependency-upgrade/versions/1.0.6/test.json +235 -0
- package/data/craftbook-templates/dr/draft-social-post/versions/1.0.6/craftbook.json +343 -0
- package/data/craftbook-templates/dr/draft-social-post/versions/1.0.6/test.json +161 -0
- package/data/craftbook-templates/ed/edit-notes/versions/1.0.5/craftbook.json +341 -0
- package/data/craftbook-templates/ed/edit-notes/versions/1.0.5/test.json +150 -0
- package/data/craftbook-templates/fl/flaky-test-fix/versions/1.0.5/craftbook.json +720 -0
- package/data/craftbook-templates/fl/flaky-test-fix/versions/1.0.5/test.json +239 -0
- package/data/craftbook-templates/in/invitation-design/versions/1.0.5/craftbook.json +269 -0
- package/data/craftbook-templates/in/invitation-design/versions/1.0.5/test.json +121 -0
- package/data/craftbook-templates/in/invoice-run/versions/1.1.8/craftbook.json +405 -0
- package/data/craftbook-templates/in/invoice-run/versions/1.1.8/test.json +140 -0
- package/data/craftbook-templates/index.json +1 -1
- package/data/craftbook-templates/ju/juice-pass/versions/1.0.5/craftbook.json +257 -0
- package/data/craftbook-templates/ju/juice-pass/versions/1.0.5/test.json +116 -0
- package/data/craftbook-templates/mo/mock-interview/versions/1.0.6/craftbook.json +300 -0
- package/data/craftbook-templates/mo/mock-interview/versions/1.0.6/test.json +82 -0
- package/data/craftbook-templates/mo/morning-report/versions/1.0.5/craftbook.json +319 -0
- package/data/craftbook-templates/mo/morning-report/versions/1.0.5/test.json +259 -0
- package/data/craftbook-templates/ni/nightly-fix-sweep/manifest.json +2 -1
- package/data/craftbook-templates/ni/nightly-fix-sweep/versions/1.0.3/craftbook.json +244 -0
- package/data/craftbook-templates/ni/nightly-fix-sweep/versions/1.0.3/test.json +120 -0
- package/data/craftbook-templates/pa/page-spread/versions/1.0.6/craftbook.json +243 -0
- package/data/craftbook-templates/pa/page-spread/versions/1.0.6/test.json +132 -0
- package/data/craftbook-templates/pe/perf-optimization/versions/2.0.5/craftbook.json +699 -0
- package/data/craftbook-templates/pe/perf-optimization/versions/2.0.5/test.json +235 -0
- package/data/craftbook-templates/pr/practice-exam/versions/1.0.5/craftbook.json +326 -0
- package/data/craftbook-templates/pr/practice-exam/versions/1.0.5/test.json +119 -0
- package/data/craftbook-templates/raw-index.json +1 -1
- package/data/craftbook-templates/re/reception-report/versions/1.0.6/craftbook.json +327 -0
- package/data/craftbook-templates/re/reception-report/versions/1.0.6/test.json +168 -0
- package/data/craftbook-templates/re/refactor-module/versions/2.0.6/craftbook.json +699 -0
- package/data/craftbook-templates/re/refactor-module/versions/2.0.6/test.json +241 -0
- package/data/craftbook-templates/ro/rough-cut-assembly/versions/1.0.6/craftbook.json +332 -0
- package/data/craftbook-templates/ro/rough-cut-assembly/versions/1.0.6/test.json +142 -0
- package/data/craftbook-templates/sc/schema-migration/versions/2.0.5/craftbook.json +626 -0
- package/data/craftbook-templates/sc/schema-migration/versions/2.0.5/test.json +225 -0
- package/data/craftbook-templates/sh/ship/versions/1.1.4/craftbook.json +353 -0
- package/data/craftbook-templates/sh/ship/versions/1.1.4/test.json +235 -0
- package/data/craftbook-templates/so/social-digest/versions/1.0.7/craftbook.json +271 -0
- package/data/craftbook-templates/so/social-digest/versions/1.0.7/test.json +168 -0
- package/data/craftbook-templates/te/test-suite-backfill/versions/2.0.6/craftbook.json +596 -0
- package/data/craftbook-templates/te/test-suite-backfill/versions/2.0.6/test.json +195 -0
- package/data/craftbook-templates/th/thank-you-sweep/versions/1.0.5/craftbook.json +310 -0
- package/data/craftbook-templates/th/thank-you-sweep/versions/1.0.5/test.json +146 -0
- package/data/craftbook-templates/ti/tileset-batch/versions/1.0.6/craftbook.json +349 -0
- package/data/craftbook-templates/ti/tileset-batch/versions/1.0.6/test.json +162 -0
- package/data/craftbook-templates/tr/transcribe-index/versions/1.0.5/craftbook.json +359 -0
- package/data/craftbook-templates/tr/transcribe-index/versions/1.0.5/test.json +157 -0
- package/data/craftbook-templates/ty/type-safety-pass/versions/2.0.5/craftbook.json +596 -0
- package/data/craftbook-templates/ty/type-safety-pass/versions/2.0.5/test.json +221 -0
- package/data/craftbook-templates/we/weak-spot-drill/versions/1.0.5/craftbook.json +321 -0
- package/data/craftbook-templates/we/weak-spot-drill/versions/1.0.5/test.json +128 -0
- package/data/craftbook-templates/we/weekly-pipeline-review/versions/1.0.6/craftbook.json +244 -0
- package/data/craftbook-templates/we/weekly-pipeline-review/versions/1.0.6/test.json +80 -0
- package/data/gezel-templates/aa/aanjager/manifest.json +2 -2
- package/data/gezel-templates/aa/aanjager/versions/1.0.1/about.md +22 -0
- package/data/gezel-templates/aa/aanjager/versions/1.0.1/manifest.json +10 -0
- package/data/gezel-templates/ar/archivaris/manifest.json +4 -3
- package/data/gezel-templates/ar/archivaris/versions/1.0.2/about.md +26 -0
- package/data/gezel-templates/ar/archivaris/versions/1.0.2/manifest.json +10 -0
- package/data/gezel-templates/bo/boekwachter/manifest.json +2 -2
- package/data/gezel-templates/bo/boekwachter/versions/1.1.1/about.md +29 -0
- package/data/gezel-templates/bo/boekwachter/versions/1.1.1/manifest.json +16 -0
- package/data/gezel-templates/bu/builder/versions/1.5.1/about.md +34 -0
- package/data/gezel-templates/bu/builder/versions/1.5.1/manifest.json +16 -0
- package/data/gezel-templates/ca/career-coach/manifest.json +2 -2
- package/data/gezel-templates/ca/career-coach/versions/1.0.1/about.md +29 -0
- package/data/gezel-templates/ca/career-coach/versions/1.0.1/manifest.json +10 -0
- package/data/gezel-templates/ce/ceremoniemeester/manifest.json +4 -3
- package/data/gezel-templates/ce/ceremoniemeester/versions/1.0.1/about.md +24 -0
- package/data/gezel-templates/ce/ceremoniemeester/versions/1.0.1/manifest.json +10 -0
- package/data/gezel-templates/ch/checkers-player/manifest.json +2 -2
- package/data/gezel-templates/ch/checkers-player/versions/1.0.2/about.md +24 -0
- package/data/gezel-templates/ch/checkers-player/versions/1.0.2/manifest.json +10 -0
- package/data/gezel-templates/ch/chess-player/manifest.json +2 -2
- package/data/gezel-templates/ch/chess-player/versions/1.0.2/about.md +21 -0
- package/data/gezel-templates/ch/chess-player/versions/1.0.2/manifest.json +10 -0
- package/data/gezel-templates/de/developer/manifest.json +1 -1
- package/data/gezel-templates/de/developer/versions/1.5.1/about.md +34 -0
- package/data/gezel-templates/de/developer/versions/1.5.1/manifest.json +21 -0
- package/data/gezel-templates/go/go-player/manifest.json +2 -2
- package/data/gezel-templates/go/go-player/versions/1.0.2/about.md +22 -0
- package/data/gezel-templates/go/go-player/versions/1.0.2/manifest.json +10 -0
- package/data/gezel-templates/hu/huismeester/manifest.json +2 -2
- package/data/gezel-templates/hu/huismeester/versions/1.0.1/about.md +24 -0
- package/data/gezel-templates/hu/huismeester/versions/1.0.1/manifest.json +10 -0
- package/data/gezel-templates/index.json +1 -1
- package/data/gezel-templates/ka/kantoormeester/manifest.json +4 -3
- package/data/gezel-templates/ka/kantoormeester/versions/1.0.1/about.md +22 -0
- package/data/gezel-templates/ka/kantoormeester/versions/1.0.1/manifest.json +10 -0
- package/data/gezel-templates/ke/keurmeester/manifest.json +4 -3
- package/data/gezel-templates/ke/keurmeester/versions/1.0.1/about.md +17 -0
- package/data/gezel-templates/ke/keurmeester/versions/1.0.1/manifest.json +6 -0
- package/data/gezel-templates/ma/maaltijdplanner/manifest.json +4 -3
- package/data/gezel-templates/ma/maaltijdplanner/versions/1.0.1/about.md +21 -0
- package/data/gezel-templates/ma/maaltijdplanner/versions/1.0.1/manifest.json +10 -0
- package/data/gezel-templates/me/meester/versions/1.4.1/about.md +26 -0
- package/data/gezel-templates/me/meester/versions/1.4.1/manifest.json +9 -0
- package/data/gezel-templates/mo/mock-interviewer/manifest.json +2 -2
- package/data/gezel-templates/mo/mock-interviewer/versions/1.0.1/about.md +28 -0
- package/data/gezel-templates/mo/mock-interviewer/versions/1.0.1/manifest.json +10 -0
- package/data/gezel-templates/om/omroeper/manifest.json +5 -3
- package/data/gezel-templates/om/omroeper/versions/1.0.1/about.md +33 -0
- package/data/gezel-templates/om/omroeper/versions/1.0.1/manifest.json +23 -0
- package/data/gezel-templates/pe/penningmeester/manifest.json +4 -3
- package/data/gezel-templates/pe/penningmeester/versions/1.0.2/about.md +23 -0
- package/data/gezel-templates/pe/penningmeester/versions/1.0.2/manifest.json +10 -0
- package/data/gezel-templates/pu/puzzelaar/manifest.json +4 -3
- package/data/gezel-templates/pu/puzzelaar/versions/1.0.1/about.md +18 -0
- package/data/gezel-templates/pu/puzzelaar/versions/1.0.1/manifest.json +16 -0
- package/data/gezel-templates/raw-index.json +1 -1
- package/data/gezel-templates/re/reisleider/manifest.json +4 -3
- package/data/gezel-templates/re/reisleider/versions/1.0.1/about.md +22 -0
- package/data/gezel-templates/re/reisleider/versions/1.0.1/manifest.json +10 -0
- package/data/gezel-templates/re/reviewer/versions/1.4.1/about.md +49 -0
- package/data/gezel-templates/re/reviewer/versions/1.4.1/manifest.json +21 -0
- package/data/gezel-templates/sc/schrijfmaat/manifest.json +4 -3
- package/data/gezel-templates/sc/schrijfmaat/versions/1.0.1/about.md +25 -0
- package/data/gezel-templates/sc/schrijfmaat/versions/1.0.1/manifest.json +10 -0
- package/data/gezel-templates/st/study-buddy/manifest.json +4 -3
- package/data/gezel-templates/st/study-buddy/versions/1.0.1/about.md +21 -0
- package/data/gezel-templates/st/study-buddy/versions/1.0.1/manifest.json +10 -0
- package/data/gezel-templates/ve/veiligheidsmeester/manifest.json +1 -1
- package/data/gezel-templates/ve/veiligheidsmeester/versions/1.0.1/about.md +27 -0
- package/data/gezel-templates/ve/veiligheidsmeester/versions/1.0.1/manifest.json +21 -0
- package/data/gezel-templates/ve/vertaler/manifest.json +1 -1
- package/data/gezel-templates/ve/vertaler/versions/1.0.1/about.md +26 -0
- package/data/gezel-templates/ve/vertaler/versions/1.0.1/manifest.json +13 -0
- package/data/gezel-templates/vo/voorman/manifest.json +4 -3
- package/data/gezel-templates/vo/voorman/versions/1.6.1/about.md +37 -0
- package/data/gezel-templates/vo/voorman/versions/1.6.1/manifest.json +9 -0
- package/data/gezel-templates/wo/woordsmid/manifest.json +4 -3
- package/data/gezel-templates/wo/woordsmid/versions/1.0.1/about.md +18 -0
- package/data/gezel-templates/wo/woordsmid/versions/1.0.1/manifest.json +16 -0
- package/data/gezel-templates/zo/zorgcoordinator/manifest.json +4 -3
- package/data/gezel-templates/zo/zorgcoordinator/versions/1.0.2/about.md +23 -0
- package/data/gezel-templates/zo/zorgcoordinator/versions/1.0.2/manifest.json +10 -0
- package/data/project-types/ca/caregiving-binder/manifest.json +1 -1
- package/data/project-types/ca/caregiving-binder/versions/1.1.2/about.md +7 -0
- package/data/project-types/ca/caregiving-binder/versions/1.1.2/care.json +4 -0
- package/data/project-types/ca/caregiving-binder/versions/1.1.2/manifest.json +178 -0
- package/data/project-types/ca/caregiving-binder/versions/1.1.2/meds.json +8 -0
- package/data/project-types/ca/caregiving-binder/versions/1.1.2/mission.md +7 -0
- package/data/project-types/ca/caregiving-binder/versions/1.1.2/pages/dashboard/index.html +265 -0
- package/data/project-types/ch/checkers/manifest.json +1 -1
- package/data/project-types/ch/checkers/versions/1.2.4/about.md +9 -0
- package/data/project-types/ch/checkers/versions/1.2.4/game.json +77 -0
- package/data/project-types/ch/checkers/versions/1.2.4/manifest.json +182 -0
- package/data/project-types/ch/checkers/versions/1.2.4/mission.md +9 -0
- package/data/project-types/ch/checkers/versions/1.2.4/pages/board/index.html +1158 -0
- package/data/project-types/ch/chess/manifest.json +1 -1
- package/data/project-types/ch/chess/versions/1.0.7/about.md +9 -0
- package/data/project-types/ch/chess/versions/1.0.7/game.json +127 -0
- package/data/project-types/ch/chess/versions/1.0.7/manifest.json +196 -0
- package/data/project-types/ch/chess/versions/1.0.7/mission.md +8 -0
- package/data/project-types/ch/chess/versions/1.0.7/pages/board/index.html +851 -0
- package/data/project-types/ev/event-planner/manifest.json +1 -1
- package/data/project-types/ev/event-planner/versions/1.0.3/about.md +7 -0
- package/data/project-types/ev/event-planner/versions/1.0.3/budget.json +5 -0
- package/data/project-types/ev/event-planner/versions/1.0.3/guests.json +10 -0
- package/data/project-types/ev/event-planner/versions/1.0.3/manifest.json +171 -0
- package/data/project-types/ev/event-planner/versions/1.0.3/mission.md +6 -0
- package/data/project-types/ev/event-planner/versions/1.0.3/pages/dashboard/index.html +283 -0
- package/data/project-types/fl/flashcards/manifest.json +1 -1
- package/data/project-types/fl/flashcards/versions/1.2.1/about.md +8 -0
- package/data/project-types/fl/flashcards/versions/1.2.1/deck.json +7 -0
- package/data/project-types/fl/flashcards/versions/1.2.1/manifest.json +207 -0
- package/data/project-types/fl/flashcards/versions/1.2.1/mission.md +6 -0
- package/data/project-types/fl/flashcards/versions/1.2.1/pages/review/index.html +549 -0
- package/data/project-types/fr/freelance-office/manifest.json +1 -1
- package/data/project-types/fr/freelance-office/versions/1.0.3/about.md +6 -0
- package/data/project-types/fr/freelance-office/versions/1.0.3/invoices.json +9 -0
- package/data/project-types/fr/freelance-office/versions/1.0.3/manifest.json +143 -0
- package/data/project-types/fr/freelance-office/versions/1.0.3/mission.md +6 -0
- package/data/project-types/fr/freelance-office/versions/1.0.3/pages/dashboard/index.html +258 -0
- package/data/project-types/fu/fundraiser-hq/manifest.json +1 -1
- package/data/project-types/fu/fundraiser-hq/versions/1.0.3/about.md +7 -0
- package/data/project-types/fu/fundraiser-hq/versions/1.0.3/donations.json +7 -0
- package/data/project-types/fu/fundraiser-hq/versions/1.0.3/manifest.json +127 -0
- package/data/project-types/fu/fundraiser-hq/versions/1.0.3/mission.md +6 -0
- package/data/project-types/fu/fundraiser-hq/versions/1.0.3/pages/dashboard/index.html +261 -0
- package/data/project-types/go/go/manifest.json +1 -1
- package/data/project-types/go/go/versions/1.0.5/about.md +9 -0
- package/data/project-types/go/go/versions/1.0.5/game.json +103 -0
- package/data/project-types/go/go/versions/1.0.5/manifest.json +182 -0
- package/data/project-types/go/go/versions/1.0.5/mission.md +8 -0
- package/data/project-types/go/go/versions/1.0.5/pages/board/index.html +855 -0
- package/data/project-types/ho/household-budget/manifest.json +1 -1
- package/data/project-types/ho/household-budget/versions/1.0.4/about.md +6 -0
- package/data/project-types/ho/household-budget/versions/1.0.4/ledger.json +5 -0
- package/data/project-types/ho/household-budget/versions/1.0.4/manifest.json +164 -0
- package/data/project-types/ho/household-budget/versions/1.0.4/mission.md +5 -0
- package/data/project-types/ho/household-budget/versions/1.0.4/pages/dashboard/index.html +340 -0
- package/data/project-types/ho/household-manual/manifest.json +1 -1
- package/data/project-types/ho/household-manual/versions/1.0.3/about.md +7 -0
- package/data/project-types/ho/household-manual/versions/1.0.3/manifest.json +153 -0
- package/data/project-types/ho/household-manual/versions/1.0.3/mission.md +8 -0
- package/data/project-types/ho/household-manual/versions/1.0.3/pages/dashboard/index.html +258 -0
- package/data/project-types/ho/household-manual/versions/1.0.3/systems.json +8 -0
- package/data/project-types/im/image-feed/art.json +1 -1
- package/data/project-types/im/image-feed/manifest.json +1 -1
- package/data/project-types/im/image-feed/versions/1.0.2/about.md +21 -0
- package/data/project-types/im/image-feed/versions/1.0.2/manifest.json +330 -0
- package/data/project-types/im/image-feed/versions/1.0.2/mission.md +10 -0
- package/data/project-types/im/image-feed/versions/1.0.2/pages/gallery/index.html +830 -0
- package/data/project-types/im/image-feed/versions/1.0.2/posts/index.json +4 -0
- package/data/project-types/im/image-feed/versions/1.0.2/style-guide.md +24 -0
- package/data/project-types/index.json +1 -1
- package/data/project-types/jo/job-hunt/versions/1.0.4/about.md +10 -0
- package/data/project-types/jo/job-hunt/versions/1.0.4/activity.json +4 -0
- package/data/project-types/jo/job-hunt/versions/1.0.4/manifest.json +212 -0
- package/data/project-types/jo/job-hunt/versions/1.0.4/mission.md +9 -0
- package/data/project-types/jo/job-hunt/versions/1.0.4/pages/dashboard/index.html +430 -0
- package/data/project-types/jo/job-hunt/versions/1.0.4/pipeline.json +6 -0
- package/data/project-types/li/life-binder/manifest.json +1 -1
- package/data/project-types/li/life-binder/versions/1.0.4/about.md +7 -0
- package/data/project-types/li/life-binder/versions/1.0.4/documents.json +145 -0
- package/data/project-types/li/life-binder/versions/1.0.4/manifest.json +138 -0
- package/data/project-types/li/life-binder/versions/1.0.4/mission.md +6 -0
- package/data/project-types/li/life-binder/versions/1.0.4/pages/dashboard/index.html +248 -0
- package/data/project-types/me/meal-planner/manifest.json +1 -1
- package/data/project-types/me/meal-planner/versions/1.0.3/about.md +6 -0
- package/data/project-types/me/meal-planner/versions/1.0.3/manifest.json +160 -0
- package/data/project-types/me/meal-planner/versions/1.0.3/menu.json +5 -0
- package/data/project-types/me/meal-planner/versions/1.0.3/mission.md +5 -0
- package/data/project-types/me/meal-planner/versions/1.0.3/pages/dashboard/index.html +248 -0
- package/data/project-types/me/meal-planner/versions/1.0.3/pantry.json +9 -0
- package/data/project-types/no/novel-writing-room/manifest.json +1 -1
- package/data/project-types/no/novel-writing-room/versions/1.0.3/about.md +7 -0
- package/data/project-types/no/novel-writing-room/versions/1.0.3/chapters.json +10 -0
- package/data/project-types/no/novel-writing-room/versions/1.0.3/manifest.json +158 -0
- package/data/project-types/no/novel-writing-room/versions/1.0.3/mission.md +7 -0
- package/data/project-types/no/novel-writing-room/versions/1.0.3/pages/dashboard/index.html +264 -0
- package/data/project-types/no/novel-writing-room/versions/1.0.3/sessions.json +6 -0
- package/data/project-types/raw-index.json +1 -1
- package/data/project-types/so/social-feed/art.json +1 -1
- package/data/project-types/so/social-feed/manifest.json +1 -1
- package/data/project-types/so/social-feed/versions/1.0.3/about.md +19 -0
- package/data/project-types/so/social-feed/versions/1.0.3/manifest.json +348 -0
- package/data/project-types/so/social-feed/versions/1.0.3/mission.md +10 -0
- package/data/project-types/so/social-feed/versions/1.0.3/pages/dashboard/index.html +754 -0
- package/data/project-types/so/social-feed/versions/1.0.3/posts/index.json +4 -0
- package/data/project-types/so/social-feed/versions/1.0.3/voice-guide.md +22 -0
- package/data/project-types/so/software-project/art.json +1 -1
- package/data/project-types/so/software-project/manifest.json +1 -1
- package/data/project-types/so/software-project/versions/1.0.1/about.md +3 -0
- package/data/project-types/so/software-project/versions/1.0.1/manifest.json +41 -0
- package/data/project-types/so/software-project/versions/1.0.1/mission.md +4 -0
- package/data/project-types/tr/trip-planner/manifest.json +1 -1
- package/data/project-types/tr/trip-planner/versions/1.0.4/about.md +7 -0
- package/data/project-types/tr/trip-planner/versions/1.0.4/journal.json +4 -0
- package/data/project-types/tr/trip-planner/versions/1.0.4/manifest.json +226 -0
- package/data/project-types/tr/trip-planner/versions/1.0.4/mission.md +4 -0
- package/data/project-types/tr/trip-planner/versions/1.0.4/packing.json +8 -0
- package/data/project-types/tr/trip-planner/versions/1.0.4/pages/dashboard/index.html +368 -0
- package/data/project-types/tr/trip-planner/versions/1.0.4/trip.json +8 -0
- package/data/project-types/wo/word-clues/manifest.json +1 -1
- package/data/project-types/wo/word-clues/versions/1.0.2/about.md +7 -0
- package/data/project-types/wo/word-clues/versions/1.0.2/game.json +14 -0
- package/data/project-types/wo/word-clues/versions/1.0.2/manifest.json +205 -0
- package/data/project-types/wo/word-clues/versions/1.0.2/mission.md +3 -0
- package/data/project-types/wo/word-clues/versions/1.0.2/pages/board/index.html +399 -0
- package/data/project-types/wo/word-clues/versions/1.0.2/words.json +216 -0
- package/package.json +1 -1
- package/schemas/craftbook-doc.schema.json +26 -0
- package/schemas/craftbook-template-version.schema.json +26 -0
- package/schemas/craftbook-test.schema.json +1 -0
|
@@ -0,0 +1,549 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<meta name="gezel-demo" content="standalone" />
|
|
7
|
+
<title>Flashcards</title>
|
|
8
|
+
<style>
|
|
9
|
+
:root {
|
|
10
|
+
color-scheme: light dark;
|
|
11
|
+
--bg: #faf7f2;
|
|
12
|
+
--card: #fff;
|
|
13
|
+
--ink: #2b2620;
|
|
14
|
+
--muted: #7a7166;
|
|
15
|
+
--accent: #b5651d;
|
|
16
|
+
--track: #ece5da;
|
|
17
|
+
--good: #4a7c59;
|
|
18
|
+
--warn: #a4552e;
|
|
19
|
+
}
|
|
20
|
+
:root[data-theme='dark'] {
|
|
21
|
+
--bg: #1c1a17;
|
|
22
|
+
--card: #262320;
|
|
23
|
+
--ink: #efe9e0;
|
|
24
|
+
--muted: #a59a8c;
|
|
25
|
+
--accent: #e0894a;
|
|
26
|
+
--track: #3a352f;
|
|
27
|
+
--good: #7fae8d;
|
|
28
|
+
--warn: #d98a63;
|
|
29
|
+
}
|
|
30
|
+
@media (prefers-color-scheme: dark) {
|
|
31
|
+
:root:not([data-theme='light']) {
|
|
32
|
+
--bg: #1c1a17;
|
|
33
|
+
--card: #262320;
|
|
34
|
+
--ink: #efe9e0;
|
|
35
|
+
--muted: #a59a8c;
|
|
36
|
+
--accent: #e0894a;
|
|
37
|
+
--track: #3a352f;
|
|
38
|
+
--good: #7fae8d;
|
|
39
|
+
--warn: #d98a63;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
* { box-sizing: border-box; }
|
|
43
|
+
body {
|
|
44
|
+
margin: 0;
|
|
45
|
+
font: 15px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
46
|
+
background: var(--bg);
|
|
47
|
+
color: var(--ink);
|
|
48
|
+
padding: 1.5rem 1.25rem;
|
|
49
|
+
}
|
|
50
|
+
main { max-width: 560px; margin: 0 auto; }
|
|
51
|
+
h1 {
|
|
52
|
+
font-family: Georgia, 'PT Serif', 'Times New Roman', serif;
|
|
53
|
+
font-size: 1.35rem;
|
|
54
|
+
font-weight: 600;
|
|
55
|
+
margin: 0 0 0.15rem;
|
|
56
|
+
}
|
|
57
|
+
.sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }
|
|
58
|
+
.dots { display: flex; gap: 0.3rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
|
|
59
|
+
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--track); }
|
|
60
|
+
.dot.done-good { background: var(--good); }
|
|
61
|
+
.dot.done-miss { background: var(--warn); }
|
|
62
|
+
.dot.current { background: var(--accent); }
|
|
63
|
+
.flashcard {
|
|
64
|
+
background: var(--card);
|
|
65
|
+
border: 1px solid var(--track);
|
|
66
|
+
border-radius: 10px;
|
|
67
|
+
min-height: 200px;
|
|
68
|
+
display: grid;
|
|
69
|
+
place-items: center;
|
|
70
|
+
text-align: center;
|
|
71
|
+
padding: 1.5rem;
|
|
72
|
+
font-size: 1.15rem;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
user-select: none;
|
|
75
|
+
}
|
|
76
|
+
.flashcard .face-label {
|
|
77
|
+
display: block;
|
|
78
|
+
font-size: 0.7rem;
|
|
79
|
+
text-transform: uppercase;
|
|
80
|
+
letter-spacing: 0.05em;
|
|
81
|
+
color: var(--muted);
|
|
82
|
+
margin-bottom: 0.6rem;
|
|
83
|
+
}
|
|
84
|
+
.actions { display: flex; gap: 0.6rem; margin-top: 0.85rem; justify-content: center; }
|
|
85
|
+
.actions button {
|
|
86
|
+
border: 1px solid var(--track);
|
|
87
|
+
background: var(--card);
|
|
88
|
+
color: var(--ink);
|
|
89
|
+
border-radius: 6px;
|
|
90
|
+
padding: 0.45rem 1.1rem;
|
|
91
|
+
min-height: 44px;
|
|
92
|
+
font: inherit;
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
}
|
|
95
|
+
.actions button.got { border-color: var(--good); color: var(--good); }
|
|
96
|
+
.actions button.miss { border-color: var(--warn); color: var(--warn); }
|
|
97
|
+
.actions button:disabled { opacity: 0.5; cursor: default; }
|
|
98
|
+
.empty, .done {
|
|
99
|
+
background: var(--card);
|
|
100
|
+
border: 1px dashed var(--track);
|
|
101
|
+
border-radius: 10px;
|
|
102
|
+
padding: 1.5rem;
|
|
103
|
+
text-align: center;
|
|
104
|
+
color: var(--muted);
|
|
105
|
+
}
|
|
106
|
+
.banner {
|
|
107
|
+
border: 1px solid var(--accent);
|
|
108
|
+
border-radius: 6px;
|
|
109
|
+
padding: 0.45rem 0.7rem;
|
|
110
|
+
font-size: 0.85rem;
|
|
111
|
+
margin-bottom: 0.75rem;
|
|
112
|
+
display: none;
|
|
113
|
+
}
|
|
114
|
+
.banner.show { display: block; }
|
|
115
|
+
.hint { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 0.5rem; }
|
|
116
|
+
.note {
|
|
117
|
+
margin: 0 0 0.85rem;
|
|
118
|
+
padding: 0.5rem 0.65rem;
|
|
119
|
+
border: 1px solid var(--track);
|
|
120
|
+
border-radius: 6px;
|
|
121
|
+
background: var(--card);
|
|
122
|
+
color: var(--muted);
|
|
123
|
+
font-size: 0.8rem;
|
|
124
|
+
}
|
|
125
|
+
.demo-banner {
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
justify-content: space-between;
|
|
129
|
+
gap: 0.75rem;
|
|
130
|
+
margin: 0 0 0.85rem;
|
|
131
|
+
padding: 0.5rem 0.65rem;
|
|
132
|
+
border: 1px solid var(--accent);
|
|
133
|
+
border-radius: 6px;
|
|
134
|
+
background: color-mix(in srgb, var(--card) 88%, var(--accent));
|
|
135
|
+
color: var(--ink);
|
|
136
|
+
font-size: 0.8rem;
|
|
137
|
+
}
|
|
138
|
+
.demo-banner[hidden] { display: none; }
|
|
139
|
+
.demo-banner strong { font-weight: 700; }
|
|
140
|
+
.demo-reset {
|
|
141
|
+
flex: none;
|
|
142
|
+
padding: 0.25rem 0.5rem;
|
|
143
|
+
border: 1px solid var(--accent);
|
|
144
|
+
border-radius: 6px;
|
|
145
|
+
background: var(--card);
|
|
146
|
+
color: var(--ink);
|
|
147
|
+
cursor: pointer;
|
|
148
|
+
font: inherit;
|
|
149
|
+
}
|
|
150
|
+
.demo-reset:hover { border-color: var(--ink); }
|
|
151
|
+
.forge {
|
|
152
|
+
margin-top: 1.5rem;
|
|
153
|
+
background: var(--card);
|
|
154
|
+
border: 1px solid var(--track);
|
|
155
|
+
border-radius: 10px;
|
|
156
|
+
padding: 0.85rem 1rem;
|
|
157
|
+
}
|
|
158
|
+
.forge h2 { font-size: 0.95rem; margin: 0 0 0.35rem; }
|
|
159
|
+
.forge p { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.85rem; }
|
|
160
|
+
.forge textarea {
|
|
161
|
+
width: 100%;
|
|
162
|
+
min-height: 7rem;
|
|
163
|
+
resize: vertical;
|
|
164
|
+
font: inherit;
|
|
165
|
+
color: var(--ink);
|
|
166
|
+
background: var(--bg);
|
|
167
|
+
border: 1px solid var(--track);
|
|
168
|
+
border-radius: 6px;
|
|
169
|
+
padding: 0.5rem;
|
|
170
|
+
}
|
|
171
|
+
.forge .actions { justify-content: flex-start; }
|
|
172
|
+
</style>
|
|
173
|
+
</head>
|
|
174
|
+
<body>
|
|
175
|
+
<main>
|
|
176
|
+
<div class="demo-banner" data-gezel-demo-banner hidden>
|
|
177
|
+
<span><strong>Demo mode</strong> — sample data stays in this page.</span>
|
|
178
|
+
<button type="button" class="demo-reset" onclick="location.reload()">Reset demo</button>
|
|
179
|
+
</div>
|
|
180
|
+
<p class="note" id="browser-note" hidden>
|
|
181
|
+
Viewing from a browser tab — the deck stays live, but reviews happen in the app's Output pane.
|
|
182
|
+
</p>
|
|
183
|
+
<div class="banner" id="banner"></div>
|
|
184
|
+
<h1 id="title">Flashcards</h1>
|
|
185
|
+
<p class="sub" id="sub">Loading the deck…</p>
|
|
186
|
+
<div class="dots" id="dots"></div>
|
|
187
|
+
<div id="stage"></div>
|
|
188
|
+
<p class="hint" id="hint"></p>
|
|
189
|
+
<section class="forge" aria-labelledby="forge-title">
|
|
190
|
+
<h2 id="forge-title">Make cards from notes</h2>
|
|
191
|
+
<p>Paste a page of notes. Your study mate turns the key facts into cards.</p>
|
|
192
|
+
<textarea id="forge-notes" maxlength="3000" aria-label="Notes to turn into cards"></textarea>
|
|
193
|
+
<div class="actions"><button type="button" id="forge-go">Make cards</button></div>
|
|
194
|
+
<p id="forge-status" role="status"></p>
|
|
195
|
+
</section>
|
|
196
|
+
</main>
|
|
197
|
+
<script>
|
|
198
|
+
/* gezel-page-demo-stub v1 */
|
|
199
|
+
/*
|
|
200
|
+
* The canonical demo stub for Gezel type pages. MIT License.
|
|
201
|
+
*
|
|
202
|
+
* Paste this file's bytes verbatim into a <script> block ahead of the
|
|
203
|
+
* page's own code, then call makeDemoGezel({ page, tools, data }) with the
|
|
204
|
+
* page's demo handlers. Served by Gezel, the real window.gezel is already
|
|
205
|
+
* injected and the stub steps aside; opened as a raw file (the live demos
|
|
206
|
+
* on gezelgilde.com), it installs a window.gezel whose tools and data are
|
|
207
|
+
* the page-supplied handler maps — one code path in every mode. `tools`
|
|
208
|
+
* and `data` map a tool name / declared read path to a function; data
|
|
209
|
+
* handlers back read() and list(), and url() returns the handler's value
|
|
210
|
+
* or passes a data: URI through. See docs/page-authoring.md.
|
|
211
|
+
*/
|
|
212
|
+
(function () {
|
|
213
|
+
'use strict';
|
|
214
|
+
window.makeDemoGezel = function (opts) {
|
|
215
|
+
if (window.gezel) return window.gezel;
|
|
216
|
+
var page = (opts && opts.page) || {};
|
|
217
|
+
var tools = (opts && opts.tools) || {};
|
|
218
|
+
var data = (opts && opts.data) || {};
|
|
219
|
+
var themeListeners = [];
|
|
220
|
+
var media = window.matchMedia ? window.matchMedia('(prefers-color-scheme: dark)') : null;
|
|
221
|
+
var ui = {
|
|
222
|
+
theme: { mode: media && media.matches ? 'dark' : 'light' },
|
|
223
|
+
onTheme: function (cb) {
|
|
224
|
+
themeListeners.push(cb);
|
|
225
|
+
return function () {
|
|
226
|
+
var at = themeListeners.indexOf(cb);
|
|
227
|
+
if (at >= 0) themeListeners.splice(at, 1);
|
|
228
|
+
};
|
|
229
|
+
},
|
|
230
|
+
};
|
|
231
|
+
if (media && media.addEventListener) {
|
|
232
|
+
media.addEventListener('change', function (ev) {
|
|
233
|
+
ui.theme = { mode: ev.matches ? 'dark' : 'light' };
|
|
234
|
+
themeListeners.slice().forEach(function (cb) { cb(ui.theme); });
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
function fail(code, message) {
|
|
238
|
+
var err = new Error(message);
|
|
239
|
+
err.code = code;
|
|
240
|
+
return Promise.reject(err);
|
|
241
|
+
}
|
|
242
|
+
function run(map, key, arg) {
|
|
243
|
+
if (!Object.prototype.hasOwnProperty.call(map, key)) return null;
|
|
244
|
+
return Promise.resolve().then(function () { return map[key](arg); });
|
|
245
|
+
}
|
|
246
|
+
window.gezel = {
|
|
247
|
+
page: {
|
|
248
|
+
api: 1,
|
|
249
|
+
projectId: 'demo',
|
|
250
|
+
source: 'type',
|
|
251
|
+
entry: page.entry || 'index.html',
|
|
252
|
+
typeName: page.typeName || 'demo',
|
|
253
|
+
params: page.params || {},
|
|
254
|
+
mode: 'demo',
|
|
255
|
+
},
|
|
256
|
+
tools: {
|
|
257
|
+
list: function () { return Promise.resolve(Object.keys(tools)); },
|
|
258
|
+
invoke: function (name, input) {
|
|
259
|
+
var call = run(tools, name, input || {});
|
|
260
|
+
if (!call) return fail('not-allowed', "The demo does not handle the tool '" + name + "'.");
|
|
261
|
+
return call.then(function (output) { return { output: output }; });
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
data: {
|
|
265
|
+
read: function (path, o) {
|
|
266
|
+
return run(data, path, o || {}) || fail('not-allowed', "The demo has no data for '" + path + "'.");
|
|
267
|
+
},
|
|
268
|
+
list: function (path, o) {
|
|
269
|
+
return run(data, path, o || {}) || Promise.resolve([]);
|
|
270
|
+
},
|
|
271
|
+
watch: function () { return function () {}; },
|
|
272
|
+
url: function (path) {
|
|
273
|
+
if (Object.prototype.hasOwnProperty.call(data, path)) return String(data[path]({}));
|
|
274
|
+
return typeof path === 'string' && path.indexOf('data:') === 0 ? path : '';
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
ui: ui,
|
|
278
|
+
refresh: function () {},
|
|
279
|
+
};
|
|
280
|
+
return window.gezel;
|
|
281
|
+
};
|
|
282
|
+
})();
|
|
283
|
+
</script>
|
|
284
|
+
<script>
|
|
285
|
+
(function () {
|
|
286
|
+
'use strict';
|
|
287
|
+
|
|
288
|
+
// ── demo deck (used only when the page opens as a raw file) ──
|
|
289
|
+
var demoDeck = {
|
|
290
|
+
subject: 'Dutch for a market morning',
|
|
291
|
+
cards: [
|
|
292
|
+
{ id: 'card-1', front: 'Hoeveel kost dit?', back: 'How much does this cost?' },
|
|
293
|
+
{ id: 'card-2', front: 'een bos bloemen', back: 'a bunch of flowers' },
|
|
294
|
+
{ id: 'card-3', front: 'Mag ik pinnen?', back: 'Can I pay by card?' },
|
|
295
|
+
{ id: 'card-4', front: 'Dat is alles, dank u.', back: 'That is all, thank you.' },
|
|
296
|
+
],
|
|
297
|
+
dueCardIds: ['card-1', 'card-2', 'card-3', 'card-4'],
|
|
298
|
+
};
|
|
299
|
+
function demoCard(id) {
|
|
300
|
+
return demoDeck.cards.find(function (c) { return c.id === id; }) || null;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
makeDemoGezel({
|
|
304
|
+
page: { entry: 'review/index.html', typeName: 'Flashcards' },
|
|
305
|
+
tools: {
|
|
306
|
+
record_review: function (input) {
|
|
307
|
+
var card = demoCard(input && input.cardId);
|
|
308
|
+
if (!card) throw new Error("No card '" + (input && input.cardId) + "' in the demo deck.");
|
|
309
|
+
// The demo deck stays due so the session can be replayed;
|
|
310
|
+
// Reset demo restores everything else.
|
|
311
|
+
return { summary: card.id + ' marked ' + input.verdict + '.' };
|
|
312
|
+
},
|
|
313
|
+
forge_from_notes: function (input) {
|
|
314
|
+
var notes = String((input && input.notes) || '').trim();
|
|
315
|
+
if (notes.length < 20) throw new Error('Paste a few sentences of notes to make cards from.');
|
|
316
|
+
var n = demoDeck.cards.length;
|
|
317
|
+
notes
|
|
318
|
+
.split(/[.\n]+/)
|
|
319
|
+
.map(function (line) { return line.trim(); })
|
|
320
|
+
.filter(function (line) { return line.length > 12; })
|
|
321
|
+
.slice(0, 3)
|
|
322
|
+
.forEach(function (line, i) {
|
|
323
|
+
var id = 'card-' + (n + i + 1);
|
|
324
|
+
demoDeck.cards.push({ id: id, front: 'Complete: ' + line.split(' ').slice(0, 4).join(' ') + '…', back: line });
|
|
325
|
+
demoDeck.dueCardIds.push(id);
|
|
326
|
+
});
|
|
327
|
+
return { status: 'forging', summary: 'Notes staged.' };
|
|
328
|
+
},
|
|
329
|
+
finish_session: function (input) {
|
|
330
|
+
var reviewed = (input && input.reviewed) || 0;
|
|
331
|
+
var missed = ((input && input.missedIds) || []).length;
|
|
332
|
+
return { summary: 'Reviewed ' + reviewed + ' card(s): ' + (reviewed - missed) + ' got it, ' + missed + ' missed.' };
|
|
333
|
+
},
|
|
334
|
+
},
|
|
335
|
+
data: {
|
|
336
|
+
'deck.json': function () { return demoDeck; },
|
|
337
|
+
},
|
|
338
|
+
});
|
|
339
|
+
|
|
340
|
+
// ── one code path from here: window.gezel exists in every mode ──
|
|
341
|
+
var demoMode = gezel.page.mode === 'demo';
|
|
342
|
+
var browserMode = gezel.page.mode === 'browser';
|
|
343
|
+
|
|
344
|
+
function applyTheme(mode) {
|
|
345
|
+
document.documentElement.setAttribute('data-theme', mode === 'dark' ? 'dark' : 'light');
|
|
346
|
+
}
|
|
347
|
+
applyTheme(gezel.ui.theme.mode);
|
|
348
|
+
gezel.ui.onTheme(function (theme) { applyTheme(theme.mode); });
|
|
349
|
+
|
|
350
|
+
if (demoMode) document.querySelector('[data-gezel-demo-banner]').hidden = false;
|
|
351
|
+
if (browserMode) document.getElementById('browser-note').hidden = false;
|
|
352
|
+
|
|
353
|
+
var deck = null;
|
|
354
|
+
// The session queue is snapshotted from dueCardIds at start so a
|
|
355
|
+
// background change never reshuffles cards mid-session.
|
|
356
|
+
var queue = null;
|
|
357
|
+
var idx = 0;
|
|
358
|
+
var flipped = false;
|
|
359
|
+
var results = [];
|
|
360
|
+
var busy = false;
|
|
361
|
+
|
|
362
|
+
function esc(s) {
|
|
363
|
+
return String(s).replace(/[&<>"]/g, function (c) {
|
|
364
|
+
return { '&': '&', '<': '<', '>': '>', '"': '"' }[c];
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
function setBanner(text) {
|
|
368
|
+
var el = document.getElementById('banner');
|
|
369
|
+
el.textContent = text || '';
|
|
370
|
+
el.className = text ? 'banner show' : 'banner';
|
|
371
|
+
}
|
|
372
|
+
function invokeErrorText(err) {
|
|
373
|
+
if (err && err.code === 'unavailable') {
|
|
374
|
+
return "Reviews happen in the app's Output pane — this browser tab stays view-only.";
|
|
375
|
+
}
|
|
376
|
+
return String(err && err.message ? err.message : err);
|
|
377
|
+
}
|
|
378
|
+
function cardById(id) {
|
|
379
|
+
return (deck.cards || []).find(function (c) { return c.id === id; }) || null;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
function render() {
|
|
383
|
+
var stage = document.getElementById('stage');
|
|
384
|
+
var dots = document.getElementById('dots');
|
|
385
|
+
var hint = document.getElementById('hint');
|
|
386
|
+
if (!deck) return;
|
|
387
|
+
if (deck.subject) document.getElementById('title').textContent = 'Flashcards: ' + deck.subject;
|
|
388
|
+
|
|
389
|
+
if (!deck.cards || deck.cards.length === 0) {
|
|
390
|
+
document.getElementById('sub').textContent = 'The deck is empty.';
|
|
391
|
+
dots.innerHTML = '';
|
|
392
|
+
hint.textContent = '';
|
|
393
|
+
stage.innerHTML =
|
|
394
|
+
'<div class="empty">No cards yet — ask your study partner to write the first ones.</div>';
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
if (queue === null || (idx >= queue.length && queue.length === 0)) {
|
|
399
|
+
document.getElementById('sub').textContent =
|
|
400
|
+
deck.dueCardIds.length > 0
|
|
401
|
+
? deck.dueCardIds.length + ' card(s) due.'
|
|
402
|
+
: 'Nothing due right now.';
|
|
403
|
+
dots.innerHTML = '';
|
|
404
|
+
hint.textContent = '';
|
|
405
|
+
stage.innerHTML =
|
|
406
|
+
deck.dueCardIds.length > 0
|
|
407
|
+
? '<div class="actions"><button type="button" id="start">Start review (' + deck.dueCardIds.length + ')</button></div>'
|
|
408
|
+
: '<div class="done">All caught up — nothing due. Your study partner can always add more.</div>';
|
|
409
|
+
var startBtn = document.getElementById('start');
|
|
410
|
+
if (startBtn) startBtn.addEventListener('click', startSession);
|
|
411
|
+
return;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
if (idx >= queue.length) {
|
|
415
|
+
var missed = results.filter(function (r) { return r.verdict === 'missed'; }).length;
|
|
416
|
+
document.getElementById('sub').textContent =
|
|
417
|
+
'Session done: ' + (results.length - missed) + ' got it, ' + missed + ' missed.';
|
|
418
|
+
hint.textContent = '';
|
|
419
|
+
stage.innerHTML = '<div class="done">Nice work — your study partner has the recap.</div>';
|
|
420
|
+
return;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
var card = cardById(queue[idx]);
|
|
424
|
+
if (!card) {
|
|
425
|
+
idx += 1;
|
|
426
|
+
render();
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
document.getElementById('sub').textContent = 'Card ' + (idx + 1) + ' of ' + queue.length;
|
|
430
|
+
dots.innerHTML = queue
|
|
431
|
+
.map(function (id, i) {
|
|
432
|
+
if (i === idx) return '<span class="dot current"></span>';
|
|
433
|
+
var r = results[i];
|
|
434
|
+
if (!r) return '<span class="dot"></span>';
|
|
435
|
+
return '<span class="dot ' + (r.verdict === 'missed' ? 'done-miss' : 'done-good') + '"></span>';
|
|
436
|
+
})
|
|
437
|
+
.join('');
|
|
438
|
+
stage.innerHTML =
|
|
439
|
+
'<div class="flashcard" id="card"><div><span class="face-label">' +
|
|
440
|
+
(flipped ? 'Back' : 'Front') + '</span>' + esc(flipped ? card.back : card.front) +
|
|
441
|
+
'</div></div>' +
|
|
442
|
+
(flipped
|
|
443
|
+
? '<div class="actions">' +
|
|
444
|
+
'<button type="button" class="got" id="got"' + (busy ? ' disabled' : '') + '>Got it</button>' +
|
|
445
|
+
'<button type="button" class="miss" id="miss"' + (busy ? ' disabled' : '') + '>Missed</button>' +
|
|
446
|
+
'</div>'
|
|
447
|
+
: '');
|
|
448
|
+
hint.textContent = flipped ? '' : 'Tap the card to reveal the answer.';
|
|
449
|
+
document.getElementById('card').addEventListener('click', function () {
|
|
450
|
+
if (!flipped) {
|
|
451
|
+
flipped = true;
|
|
452
|
+
render();
|
|
453
|
+
}
|
|
454
|
+
});
|
|
455
|
+
if (flipped) {
|
|
456
|
+
document.getElementById('got').addEventListener('click', function () { grade('got-it'); });
|
|
457
|
+
document.getElementById('miss').addEventListener('click', function () { grade('missed'); });
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
function startSession() {
|
|
462
|
+
queue = deck.dueCardIds.slice();
|
|
463
|
+
idx = 0;
|
|
464
|
+
flipped = false;
|
|
465
|
+
results = [];
|
|
466
|
+
render();
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
function grade(verdict) {
|
|
470
|
+
if (busy) return;
|
|
471
|
+
busy = true;
|
|
472
|
+
render();
|
|
473
|
+
var cardId = queue[idx];
|
|
474
|
+
gezel.tools
|
|
475
|
+
.invoke('record_review', { cardId: cardId, verdict: verdict })
|
|
476
|
+
.then(function () {
|
|
477
|
+
busy = false;
|
|
478
|
+
results[idx] = { cardId: cardId, verdict: verdict };
|
|
479
|
+
idx += 1;
|
|
480
|
+
flipped = false;
|
|
481
|
+
if (idx >= queue.length) return finishSession();
|
|
482
|
+
render();
|
|
483
|
+
})
|
|
484
|
+
.catch(function (err) {
|
|
485
|
+
busy = false;
|
|
486
|
+
setBanner(invokeErrorText(err));
|
|
487
|
+
render();
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
function finishSession() {
|
|
492
|
+
var missedIds = results
|
|
493
|
+
.filter(function (r) { return r.verdict === 'missed'; })
|
|
494
|
+
.map(function (r) { return r.cardId; });
|
|
495
|
+
return gezel.tools
|
|
496
|
+
.invoke('finish_session', { reviewed: results.length, missedIds: missedIds })
|
|
497
|
+
.catch(function () {})
|
|
498
|
+
.then(function () {
|
|
499
|
+
render();
|
|
500
|
+
return loadDeck();
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
function loadDeck() {
|
|
505
|
+
return gezel.data
|
|
506
|
+
.read('deck.json')
|
|
507
|
+
.then(function (next) {
|
|
508
|
+
deck = next;
|
|
509
|
+
// Only re-render outside an active session — mid-session the
|
|
510
|
+
// snapshot queue drives the UI.
|
|
511
|
+
if (queue === null || idx >= queue.length) render();
|
|
512
|
+
})
|
|
513
|
+
.catch(function () {});
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
var forgeButton = document.getElementById('forge-go');
|
|
517
|
+
var forgeStatus = document.getElementById('forge-status');
|
|
518
|
+
forgeButton.onclick = function () {
|
|
519
|
+
var notes = document.getElementById('forge-notes').value.trim();
|
|
520
|
+
if (notes.length < 20) {
|
|
521
|
+
forgeStatus.textContent = 'Paste a few sentences of notes first.';
|
|
522
|
+
return;
|
|
523
|
+
}
|
|
524
|
+
forgeButton.disabled = true;
|
|
525
|
+
forgeStatus.textContent = '';
|
|
526
|
+
gezel.tools
|
|
527
|
+
.invoke('forge_from_notes', { notes: notes })
|
|
528
|
+
.then(function () {
|
|
529
|
+
document.getElementById('forge-notes').value = '';
|
|
530
|
+
forgeStatus.textContent = demoMode
|
|
531
|
+
? 'Added sample cards from your notes.'
|
|
532
|
+
: 'Your study mate is writing cards from your notes. They appear in the deck when ready.';
|
|
533
|
+
return loadDeck();
|
|
534
|
+
})
|
|
535
|
+
.catch(function (err) {
|
|
536
|
+
forgeStatus.textContent =
|
|
537
|
+
err && err.code === 'unavailable'
|
|
538
|
+
? 'Making cards happens in the app’s Output pane.'
|
|
539
|
+
: (err && err.message) || 'That did not work. Try again.';
|
|
540
|
+
})
|
|
541
|
+
.then(function () { forgeButton.disabled = false; });
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
loadDeck();
|
|
545
|
+
gezel.data.watch('deck.json', function () { loadDeck(); });
|
|
546
|
+
})();
|
|
547
|
+
</script>
|
|
548
|
+
</body>
|
|
549
|
+
</html>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"kind": "project-type",
|
|
4
4
|
"id": "freelance-office",
|
|
5
5
|
"name": "Freelance Office",
|
|
6
|
-
"description": "Run a one-person business without dropping anything. Your
|
|
6
|
+
"description": "Run a one-person business without dropping anything. Your office administrator tracks every invoice to paid, drafts the polite chase, and keeps the income picture one question away.",
|
|
7
7
|
"tags": [
|
|
8
8
|
"freelance",
|
|
9
9
|
"invoices",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
The back office for {{business}}. Tell your office administrator when work is billed,
|
|
2
|
+
sent, or paid, and the invoice book stays honest — with warm, firm payment
|
|
3
|
+
chases drafted the day something goes overdue.
|
|
4
|
+
|
|
5
|
+
The **Output** tab shows the money picture: what's outstanding, what's overdue,
|
|
6
|
+
what got paid this month. All of it lives in plain files on this machine.
|