@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,368 @@
|
|
|
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>Trip planner</title>
|
|
8
|
+
<style>
|
|
9
|
+
:root {
|
|
10
|
+
color-scheme: light dark;
|
|
11
|
+
--bg: #faf7f2; --card: #fff; --ink: #2b2620; --muted: #7a7166;
|
|
12
|
+
--accent: #b5651d; --track: #ece5da; --good: #4a7c59; --warn: #a4552e;
|
|
13
|
+
}
|
|
14
|
+
:root[data-theme='dark'] {
|
|
15
|
+
--bg: #1c1a17; --card: #262320; --ink: #efe9e0; --muted: #a59a8c;
|
|
16
|
+
--accent: #e0894a; --track: #3a352f; --good: #7fae8d; --warn: #d98a63;
|
|
17
|
+
}
|
|
18
|
+
@media (prefers-color-scheme: dark) {
|
|
19
|
+
:root:not([data-theme='light']) {
|
|
20
|
+
--bg: #1c1a17; --card: #262320; --ink: #efe9e0; --muted: #a59a8c;
|
|
21
|
+
--accent: #e0894a; --track: #3a352f; --good: #7fae8d; --warn: #d98a63;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
* { box-sizing: border-box; }
|
|
25
|
+
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--ink); padding: 1.5rem 1.25rem; }
|
|
26
|
+
main { max-width: 680px; margin: 0 auto; }
|
|
27
|
+
h1 { font-family: Georgia, 'PT Serif', 'Times New Roman', serif; font-size: 1.35rem; font-weight: 600; margin: 0 0 0.15rem; }
|
|
28
|
+
.sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.9rem; }
|
|
29
|
+
.banner { border: 1px solid var(--accent); border-radius: 6px; padding: 0.45rem 0.7rem; font-size: 0.85rem; margin-bottom: 0.75rem; display: none; }
|
|
30
|
+
.banner.show { display: block; }
|
|
31
|
+
.note { margin: 0 0 0.85rem; padding: 0.5rem 0.65rem; border: 1px solid var(--track); border-radius: 6px; background: var(--card); color: var(--muted); font-size: 0.8rem; }
|
|
32
|
+
.cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0.6rem; }
|
|
33
|
+
.panel { background: var(--card); border: 1px solid var(--track); border-radius: 10px; padding: 0.85rem 1rem; font-size: 0.9rem; }
|
|
34
|
+
.panel h2 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 0.5rem; }
|
|
35
|
+
.day { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.6rem; padding: 0.4rem 0; }
|
|
36
|
+
.day .date { color: var(--muted); }
|
|
37
|
+
.day .date small { display: block; font-size: 0.8rem; }
|
|
38
|
+
.day .plan p { margin: 0; }
|
|
39
|
+
.day .plan p + p { color: var(--muted); }
|
|
40
|
+
.pack { list-style: none; margin: 0; padding: 0; }
|
|
41
|
+
.pack li { display: flex; gap: 0.5rem; align-items: center; min-height: 44px; margin: 0; cursor: pointer; }
|
|
42
|
+
.pack li.packed { color: var(--muted); text-decoration: line-through; cursor: default; }
|
|
43
|
+
.pack .box { display: inline-block; width: 0.85rem; height: 0.85rem; border: 1px solid var(--track); border-radius: 4px; flex: none; }
|
|
44
|
+
.pack li.packed .box { background: var(--good); border-color: var(--good); }
|
|
45
|
+
.journal li { color: var(--muted); margin: 0.25rem 0; }
|
|
46
|
+
.journal li strong { color: var(--ink); font-weight: 600; }
|
|
47
|
+
.empty { color: var(--muted); font-style: italic; }
|
|
48
|
+
@media (max-width: 640px) { .cols { grid-template-columns: 1fr; } }
|
|
49
|
+
.demo-banner {
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: space-between;
|
|
53
|
+
gap: 0.75rem;
|
|
54
|
+
margin: 0 0 0.85rem;
|
|
55
|
+
padding: 0.5rem 0.65rem;
|
|
56
|
+
border: 1px solid var(--accent);
|
|
57
|
+
border-radius: 6px;
|
|
58
|
+
background: color-mix(in srgb, var(--card) 88%, var(--accent));
|
|
59
|
+
color: var(--ink);
|
|
60
|
+
font-size: 0.8rem;
|
|
61
|
+
}
|
|
62
|
+
.demo-banner[hidden] { display: none; }
|
|
63
|
+
.demo-banner strong { font-weight: 700; }
|
|
64
|
+
.demo-reset {
|
|
65
|
+
flex: none;
|
|
66
|
+
padding: 0.25rem 0.5rem;
|
|
67
|
+
border: 1px solid var(--accent);
|
|
68
|
+
border-radius: 6px;
|
|
69
|
+
background: var(--card);
|
|
70
|
+
color: var(--ink);
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
font: inherit;
|
|
73
|
+
}
|
|
74
|
+
.demo-reset:hover { border-color: var(--ink); }
|
|
75
|
+
</style>
|
|
76
|
+
</head>
|
|
77
|
+
<body>
|
|
78
|
+
<main>
|
|
79
|
+
<div class="demo-banner" data-gezel-demo-banner hidden>
|
|
80
|
+
<span><strong>Demo mode</strong> — sample data stays in this page.</span>
|
|
81
|
+
<button type="button" class="demo-reset" onclick="location.reload()">Reset demo</button>
|
|
82
|
+
</div>
|
|
83
|
+
<p class="note" id="browser-note" hidden>
|
|
84
|
+
Viewing from a browser tab — the trip stays live, but packing happens in the app's Output pane.
|
|
85
|
+
</p>
|
|
86
|
+
<div class="banner" id="banner"></div>
|
|
87
|
+
<h1 id="title">Trip planner</h1>
|
|
88
|
+
<p class="sub" id="sub">Loading the trip…</p>
|
|
89
|
+
<div class="cols">
|
|
90
|
+
<div class="panel">
|
|
91
|
+
<h2>Itinerary</h2>
|
|
92
|
+
<div id="days"><p class="empty">No days planned yet — sketch the spine with your trip planner.</p></div>
|
|
93
|
+
<h2 style="margin-top: 0.9rem">Journal</h2>
|
|
94
|
+
<ul class="journal" id="journal" style="margin:0;padding-left:1.05rem"><li class="empty">A line a day, once you're on the road.</li></ul>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="panel">
|
|
97
|
+
<h2>Packing <span id="packcount"></span></h2>
|
|
98
|
+
<ul class="pack" id="pack"><li class="empty">Nothing listed yet.</li></ul>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</main>
|
|
102
|
+
<script>
|
|
103
|
+
/* gezel-page-demo-stub v1 */
|
|
104
|
+
/*
|
|
105
|
+
* The canonical demo stub for Gezel type pages. MIT License.
|
|
106
|
+
*
|
|
107
|
+
* Paste this file's bytes verbatim into a <script> block ahead of the
|
|
108
|
+
* page's own code, then call makeDemoGezel({ page, tools, data }) with the
|
|
109
|
+
* page's demo handlers. Served by Gezel, the real window.gezel is already
|
|
110
|
+
* injected and the stub steps aside; opened as a raw file (the live demos
|
|
111
|
+
* on gezelgilde.com), it installs a window.gezel whose tools and data are
|
|
112
|
+
* the page-supplied handler maps — one code path in every mode. `tools`
|
|
113
|
+
* and `data` map a tool name / declared read path to a function; data
|
|
114
|
+
* handlers back read() and list(), and url() returns the handler's value
|
|
115
|
+
* or passes a data: URI through. See docs/page-authoring.md.
|
|
116
|
+
*/
|
|
117
|
+
(function () {
|
|
118
|
+
'use strict';
|
|
119
|
+
window.makeDemoGezel = function (opts) {
|
|
120
|
+
if (window.gezel) return window.gezel;
|
|
121
|
+
var page = (opts && opts.page) || {};
|
|
122
|
+
var tools = (opts && opts.tools) || {};
|
|
123
|
+
var data = (opts && opts.data) || {};
|
|
124
|
+
var themeListeners = [];
|
|
125
|
+
var media = window.matchMedia ? window.matchMedia('(prefers-color-scheme: dark)') : null;
|
|
126
|
+
var ui = {
|
|
127
|
+
theme: { mode: media && media.matches ? 'dark' : 'light' },
|
|
128
|
+
onTheme: function (cb) {
|
|
129
|
+
themeListeners.push(cb);
|
|
130
|
+
return function () {
|
|
131
|
+
var at = themeListeners.indexOf(cb);
|
|
132
|
+
if (at >= 0) themeListeners.splice(at, 1);
|
|
133
|
+
};
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
if (media && media.addEventListener) {
|
|
137
|
+
media.addEventListener('change', function (ev) {
|
|
138
|
+
ui.theme = { mode: ev.matches ? 'dark' : 'light' };
|
|
139
|
+
themeListeners.slice().forEach(function (cb) { cb(ui.theme); });
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
function fail(code, message) {
|
|
143
|
+
var err = new Error(message);
|
|
144
|
+
err.code = code;
|
|
145
|
+
return Promise.reject(err);
|
|
146
|
+
}
|
|
147
|
+
function run(map, key, arg) {
|
|
148
|
+
if (!Object.prototype.hasOwnProperty.call(map, key)) return null;
|
|
149
|
+
return Promise.resolve().then(function () { return map[key](arg); });
|
|
150
|
+
}
|
|
151
|
+
window.gezel = {
|
|
152
|
+
page: {
|
|
153
|
+
api: 1,
|
|
154
|
+
projectId: 'demo',
|
|
155
|
+
source: 'type',
|
|
156
|
+
entry: page.entry || 'index.html',
|
|
157
|
+
typeName: page.typeName || 'demo',
|
|
158
|
+
params: page.params || {},
|
|
159
|
+
mode: 'demo',
|
|
160
|
+
},
|
|
161
|
+
tools: {
|
|
162
|
+
list: function () { return Promise.resolve(Object.keys(tools)); },
|
|
163
|
+
invoke: function (name, input) {
|
|
164
|
+
var call = run(tools, name, input || {});
|
|
165
|
+
if (!call) return fail('not-allowed', "The demo does not handle the tool '" + name + "'.");
|
|
166
|
+
return call.then(function (output) { return { output: output }; });
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
data: {
|
|
170
|
+
read: function (path, o) {
|
|
171
|
+
return run(data, path, o || {}) || fail('not-allowed', "The demo has no data for '" + path + "'.");
|
|
172
|
+
},
|
|
173
|
+
list: function (path, o) {
|
|
174
|
+
return run(data, path, o || {}) || Promise.resolve([]);
|
|
175
|
+
},
|
|
176
|
+
watch: function () { return function () {}; },
|
|
177
|
+
url: function (path) {
|
|
178
|
+
if (Object.prototype.hasOwnProperty.call(data, path)) return String(data[path]({}));
|
|
179
|
+
return typeof path === 'string' && path.indexOf('data:') === 0 ? path : '';
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
ui: ui,
|
|
183
|
+
refresh: function () {},
|
|
184
|
+
};
|
|
185
|
+
return window.gezel;
|
|
186
|
+
};
|
|
187
|
+
})();
|
|
188
|
+
</script>
|
|
189
|
+
<script>
|
|
190
|
+
(function () {
|
|
191
|
+
'use strict';
|
|
192
|
+
var busy = false;
|
|
193
|
+
|
|
194
|
+
// ── demo trip (used only when the page opens as a raw file) ──
|
|
195
|
+
var demoStart = new Date(Date.now() + 18 * 86400000);
|
|
196
|
+
var demoDate = function (offset) { return new Date(demoStart.getTime() + offset * 86400000).toISOString().slice(0, 10); };
|
|
197
|
+
var demoTrip = { destination: 'Lisbon', startDate: demoDate(0), travellers: '4', days: {} };
|
|
198
|
+
demoTrip.days[demoDate(0)] = 'Arrive, settle in, and walk the Alfama lanes.\nFado in the evening if you still have energy.';
|
|
199
|
+
demoTrip.days[demoDate(1)] = 'Markets, the tile museum, and a sunset miradouro.\nA slow lunch wherever looks good.';
|
|
200
|
+
demoTrip.days[demoDate(2)] = 'Day train to Sintra.\nBack in time for dinner, or stay for the sunset at Cabo da Roca.';
|
|
201
|
+
var demoPacking = { records: [
|
|
202
|
+
{ id: 'pack-1', status: 'packed', fields: { name: 'Passport and wallet' } },
|
|
203
|
+
{ id: 'pack-2', status: 'unpacked', fields: { name: 'Walking shoes' } },
|
|
204
|
+
{ id: 'pack-3', status: 'unpacked', fields: { name: 'Light rain jacket' } },
|
|
205
|
+
{ id: 'pack-4', status: 'unpacked', fields: { name: 'Phone charger' } },
|
|
206
|
+
] };
|
|
207
|
+
var demoJournal = { events: [
|
|
208
|
+
{ at: new Date().toISOString(), note: 'Reserved the Sintra train and palace entry.' },
|
|
209
|
+
{ at: new Date(Date.now() - 86400000).toISOString(), note: 'Saved three neighborhood dinner options.' },
|
|
210
|
+
] };
|
|
211
|
+
|
|
212
|
+
makeDemoGezel({
|
|
213
|
+
page: { entry: 'dashboard/index.html', typeName: 'Trip Planner', params: { destination: 'somewhere wonderful', start: '2026-12-01' } },
|
|
214
|
+
tools: {
|
|
215
|
+
mark_packed: function (input) {
|
|
216
|
+
var item = demoPacking.records.find(function (r) { return r.id === (input && input.id); });
|
|
217
|
+
if (!item) throw new Error("No packing item '" + (input && input.id) + "' in the demo list.");
|
|
218
|
+
item.status = 'packed';
|
|
219
|
+
return { summary: (item.fields.name || item.id) + ' packed.' };
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
data: {
|
|
223
|
+
'trip.json': function () { return demoTrip; },
|
|
224
|
+
'packing.json': function () { return demoPacking; },
|
|
225
|
+
'journal.json': function () { return demoJournal; },
|
|
226
|
+
},
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
// ── one code path from here: window.gezel exists in every mode ──
|
|
230
|
+
var demoMode = gezel.page.mode === 'demo';
|
|
231
|
+
var browserMode = gezel.page.mode === 'browser';
|
|
232
|
+
|
|
233
|
+
function applyTheme(mode) {
|
|
234
|
+
document.documentElement.setAttribute('data-theme', mode === 'dark' ? 'dark' : 'light');
|
|
235
|
+
}
|
|
236
|
+
applyTheme(gezel.ui.theme.mode);
|
|
237
|
+
gezel.ui.onTheme(function (theme) { applyTheme(theme.mode); });
|
|
238
|
+
|
|
239
|
+
if (demoMode) document.querySelector('[data-gezel-demo-banner]').hidden = false;
|
|
240
|
+
if (browserMode) document.getElementById('browser-note').hidden = false;
|
|
241
|
+
|
|
242
|
+
function esc(s) { return String(s).replace(/[&<>"]/g, function (c) { return { '&': '&', '<': '<', '>': '>', '"': '"' }[c]; }); }
|
|
243
|
+
function setBanner(text) { var el = document.getElementById('banner'); el.textContent = text || ''; el.className = text ? 'banner show' : 'banner'; }
|
|
244
|
+
function invokeErrorText(err) {
|
|
245
|
+
if (err && err.code === 'unavailable') {
|
|
246
|
+
return "Packing happens in the app's Output pane — this browser tab stays view-only.";
|
|
247
|
+
}
|
|
248
|
+
return String(err && err.message ? err.message : err);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
function plural(n, one, many) { return n + ' ' + (n === 1 ? one : many); }
|
|
252
|
+
|
|
253
|
+
// A plan written as "Anchor: … Options: … Slack: …" reads as plain
|
|
254
|
+
// lines without the labels; a plan with line breaks keeps them.
|
|
255
|
+
var PLAN_LABEL = /(?:^|\s)(?:anchor|options?|alternatives?|slack|free time)\s*:\s*/i;
|
|
256
|
+
var PLAN_LABELS = /(?:^|\s)(?:anchor|options?|alternatives?|slack|free time)\s*:\s*/gi;
|
|
257
|
+
function planLines(plan) {
|
|
258
|
+
var text = String(plan || '');
|
|
259
|
+
var lines = text.split(/\n+/);
|
|
260
|
+
if (lines.length === 1 && PLAN_LABEL.test(text)) lines = text.split(PLAN_LABELS);
|
|
261
|
+
return lines
|
|
262
|
+
.map(function (l) { return l.replace(PLAN_LABELS, ' ').replace(/^[\s*•-]+/, '').trim(); })
|
|
263
|
+
.filter(Boolean);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
function isoDay(key) { return /^\d{4}-\d{2}-\d{2}$/.test(key); }
|
|
267
|
+
function dayNumber(key) { var m = /^day\s*(\d+)$/i.exec(key); return m ? Number(m[1]) : null; }
|
|
268
|
+
function longDate(iso) {
|
|
269
|
+
var when = new Date(iso + 'T12:00:00Z');
|
|
270
|
+
if (!isFinite(when.getTime())) return iso;
|
|
271
|
+
return when.toLocaleDateString(undefined, { weekday: 'short', day: 'numeric', month: 'short', timeZone: 'UTC' });
|
|
272
|
+
}
|
|
273
|
+
function sortDays(keys) {
|
|
274
|
+
return keys.slice().sort(function (a, b) {
|
|
275
|
+
var na = dayNumber(a), nb = dayNumber(b);
|
|
276
|
+
if (na !== null && nb !== null) return na - nb;
|
|
277
|
+
return a < b ? -1 : a > b ? 1 : 0;
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
// "2026-12-03" reads as a date; "Day 3" stays "Day 3", with its
|
|
281
|
+
// date beneath once the departure date is known.
|
|
282
|
+
function dayLabel(key, startDate) {
|
|
283
|
+
if (isoDay(key)) return esc(longDate(key));
|
|
284
|
+
var n = dayNumber(key);
|
|
285
|
+
if (n === null) return esc(key);
|
|
286
|
+
var label = 'Day ' + n;
|
|
287
|
+
if (isoDay(String(startDate || '').slice(0, 10))) {
|
|
288
|
+
var when = new Date(String(startDate).slice(0, 10) + 'T12:00:00Z');
|
|
289
|
+
when.setUTCDate(when.getUTCDate() + n - 1);
|
|
290
|
+
return label + '<small>' + esc(longDate(when.toISOString().slice(0, 10))) + '</small>';
|
|
291
|
+
}
|
|
292
|
+
return label;
|
|
293
|
+
}
|
|
294
|
+
function travellersText(travellers) {
|
|
295
|
+
var text = String(travellers || '').trim();
|
|
296
|
+
if (!text) return '';
|
|
297
|
+
if (/^\d+$/.test(text)) return plural(Number(text), 'traveller', 'travellers');
|
|
298
|
+
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
function render(trip, packing, journal) {
|
|
302
|
+
if (trip.destination) document.getElementById('title').textContent = 'Trip: ' + trip.destination;
|
|
303
|
+
var days = trip.days || {};
|
|
304
|
+
var dates = sortDays(Object.keys(days));
|
|
305
|
+
var parts = [];
|
|
306
|
+
var who = travellersText(trip.travellers);
|
|
307
|
+
if (who) parts.push(who);
|
|
308
|
+
var start = String(trip.startDate || '').trim();
|
|
309
|
+
if (isoDay(start.slice(0, 10))) {
|
|
310
|
+
var d = Math.ceil((Date.parse(start) - Date.now()) / 86400000);
|
|
311
|
+
if (isFinite(d)) parts.push(d > 0 ? plural(d, 'day', 'days') + ' until departure' : d === 0 ? 'Departure day!' : 'On the road');
|
|
312
|
+
} else if (start && start !== 'soon') {
|
|
313
|
+
parts.push('Leaving ' + start);
|
|
314
|
+
}
|
|
315
|
+
parts.push(dates.length ? plural(dates.length, 'day', 'days') + ' planned' : 'No days planned yet');
|
|
316
|
+
document.getElementById('sub').textContent = parts.join(' · ');
|
|
317
|
+
|
|
318
|
+
if (dates.length) {
|
|
319
|
+
document.getElementById('days').innerHTML = dates.map(function (d) {
|
|
320
|
+
var lines = planLines(days[d]).map(function (l) { return '<p>' + esc(l) + '</p>'; }).join('');
|
|
321
|
+
return '<div class="day"><span class="date">' + dayLabel(d, trip.startDate) + '</span><div class="plan">' + lines + '</div></div>';
|
|
322
|
+
}).join('');
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
var items = (packing && packing.records) || [];
|
|
326
|
+
var unpacked = items.filter(function (r) { return r.status === 'unpacked'; }).length;
|
|
327
|
+
document.getElementById('packcount').textContent = items.length ? '· ' + unpacked + ' to go' : '';
|
|
328
|
+
if (items.length) {
|
|
329
|
+
document.getElementById('pack').innerHTML = items.map(function (r) {
|
|
330
|
+
return '<li class="' + r.status + '" data-id="' + esc(r.id) + '"><span class="box"></span><span>' + esc((r.fields && r.fields.name) || r.id) + '</span></li>';
|
|
331
|
+
}).join('');
|
|
332
|
+
Array.prototype.forEach.call(document.querySelectorAll('.pack li.unpacked'), function (li) {
|
|
333
|
+
li.addEventListener('click', function () {
|
|
334
|
+
if (busy) return;
|
|
335
|
+
busy = true;
|
|
336
|
+
gezel.tools
|
|
337
|
+
.invoke('mark_packed', { id: li.getAttribute('data-id') })
|
|
338
|
+
.then(function () { setBanner(''); return loadTrip(); })
|
|
339
|
+
.catch(function (err) { setBanner(invokeErrorText(err)); })
|
|
340
|
+
.then(function () { busy = false; });
|
|
341
|
+
});
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
var entries = ((journal && journal.events) || []).slice(-4).reverse();
|
|
346
|
+
if (entries.length) {
|
|
347
|
+
document.getElementById('journal').innerHTML = entries.map(function (e) {
|
|
348
|
+
return '<li><strong>' + esc(String(e.at).slice(5, 10)) + '</strong> — ' + esc(e.note || '') + '</li>';
|
|
349
|
+
}).join('');
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
function loadTrip() {
|
|
354
|
+
return Promise.all([
|
|
355
|
+
gezel.data.read('trip.json').catch(function () { return { days: {} }; }),
|
|
356
|
+
gezel.data.read('packing.json').catch(function () { return { records: [] }; }),
|
|
357
|
+
gezel.data.read('journal.json').catch(function () { return { events: [] }; }),
|
|
358
|
+
]).then(function (results) { render(results[0] || { days: {} }, results[1], results[2]); });
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
loadTrip();
|
|
362
|
+
gezel.data.watch('trip.json', function () { loadTrip(); });
|
|
363
|
+
gezel.data.watch('packing.json', function () { loadTrip(); });
|
|
364
|
+
gezel.data.watch('journal.json', function () { loadTrip(); });
|
|
365
|
+
})();
|
|
366
|
+
</script>
|
|
367
|
+
</body>
|
|
368
|
+
</html>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"kind": "project-type",
|
|
4
4
|
"id": "word-clues",
|
|
5
5
|
"name": "Word Clues",
|
|
6
|
-
"description": "Find your six words on a board of sixteen from one-word clues, and steer clear of the trap. Two
|
|
6
|
+
"description": "Find your six words on a board of sixteen from one-word clues, and steer clear of the trap. Two gezels take turns giving clues: a lively clue giver and a careful puzzler.",
|
|
7
7
|
"tags": [
|
|
8
8
|
"game",
|
|
9
9
|
"words",
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
A word-association game on the **Output** tab. The board holds sixteen words: six are
|
|
2
|
+
yours to find, nine are bystanders, and one is the trap.
|
|
3
|
+
|
|
4
|
+
Your clue-givers take turns. Each gives one word and a number, such as **OCEAN, 2**,
|
|
5
|
+
meaning two of your words go with "ocean". Tap the words you think they mean. You may
|
|
6
|
+
pick one more than the number. A bystander ends your turn, the trap ends the game, and
|
|
7
|
+
finding all six wins it.
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"releasedAt": "2026-10-25T16:48:51Z",
|
|
5
|
+
"minGezelVersion": "1.26280",
|
|
6
|
+
"meesterManaged": false,
|
|
7
|
+
"indexingEnabled": false,
|
|
8
|
+
"leanProfile": true,
|
|
9
|
+
"tabVisibility": {
|
|
10
|
+
"overview": false,
|
|
11
|
+
"tasks": false,
|
|
12
|
+
"approvals": false,
|
|
13
|
+
"workspace": false,
|
|
14
|
+
"artifacts": false,
|
|
15
|
+
"map": false
|
|
16
|
+
},
|
|
17
|
+
"nameTemplate": "Word Clues",
|
|
18
|
+
"aboutTemplate": "about.md",
|
|
19
|
+
"missionTemplate": "mission.md",
|
|
20
|
+
"gezels": [
|
|
21
|
+
{
|
|
22
|
+
"templateId": "woordsmid",
|
|
23
|
+
"voorman": true
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"templateId": "puzzelaar"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"clue-store": "import { type InferredInput, defineScript, gezel } from '@bendyline/gezel-sdk';\n\nexport const meta = defineScript({\n name: 'clue-store',\n description:\n \"The word-clue game's engine (game.json). action:'board' reads the game; 'give_clue' records a clue; 'guess' reveals a word the player picked; 'pass' ends the player's guessing; 'new_game' deals a fresh board.\",\n inputs: {\n action: {\n type: 'string',\n description: \"One of 'board', 'give_clue', 'guess', 'pass', 'new_game'.\",\n required: true,\n },\n clue: { type: 'string', description: 'For give_clue: one word, not on the board.' },\n count: { type: 'number', description: 'For give_clue: how many of the player’s words it points at.' },\n say: { type: 'string', description: 'For give_clue: one short line of table talk.' },\n word: { type: 'string', description: 'For guess: the board word the player picked.' },\n },\n outputs: {\n status: {\n type: 'string',\n description: \"'clue_needed', 'guessing', 'won', 'lost' or 'new'.\",\n },\n giver: { type: 'string', description: \"Whose clue is next: 'a' (Clue Giver) or 'b' (Puzzler).\" },\n result: { type: 'string', description: \"For guess: 'target', 'neutral', 'trap', or ''.\" },\n display: { type: 'string', description: 'For give_clue: the clue as shown to the player.' },\n modelState: { type: 'json', description: 'What the clue-giver sees: its words, the trap, the rest.' },\n summary: { type: 'string', description: 'A short summary of the game.' },\n },\n requires: ['workspace.read', 'workspace.write'],\n} as const);\n\nconst input = gezel.input as InferredInput<typeof meta>;\n\n// ── clue-rules-start ──\n// The board is sixteen words: six are the player's, nine are neutral, one\n// is the trap. A clue-giver who knows the board gives one word and a count;\n// the player then picks up to count + 1 words. A neutral word ends their\n// turn, the trap ends the game, and finding all six wins it. Kept\n// self-contained between these sentinels so unit tests execute the shipped\n// bytes.\nvar BOARD_SIZE = 16;\nvar TARGETS = 6;\n\nfunction shuffle(list, random) {\n var out = list.slice();\n for (var i = out.length - 1; i > 0; i -= 1) {\n var j = Math.floor(random() * (i + 1));\n var t = out[i];\n out[i] = out[j];\n out[j] = t;\n }\n return out;\n}\n\nfunction deal(bank, random) {\n var picked = shuffle(bank, random).slice(0, BOARD_SIZE);\n var cells = picked.map(function (word, i) {\n return { word: word, kind: i < TARGETS ? 'target' : i === TARGETS ? 'trap' : 'neutral', revealed: false };\n });\n return shuffle(cells, random);\n}\n\nfunction remaining(words, kind) {\n return words.filter(function (w) { return w.kind === kind && !w.revealed; }).map(function (w) { return w.word; });\n}\n\n// Why a clue is not allowed on this board, or '' when it is.\nfunction clueProblem(words, clue, count) {\n var c = String(clue || '').trim().toLowerCase();\n if (!/^[a-zÀ-ɏ'-]{2,24}$/.test(c)) return 'A clue is one word of letters, like \"ocean\".';\n for (var i = 0; i < words.length; i += 1) {\n var w = words[i].word.toLowerCase();\n if (w === c) return '\"' + c + '\" is on the board.';\n // Forms of a board word (plurals, compounds that start with it) give the\n // answer away; a word that merely contains one (\"planet\", \"net\") does not.\n var shorter = c.length < w.length ? c : w;\n var longer = c.length < w.length ? w : c;\n if (shorter.length >= 3 && longer.indexOf(shorter) === 0)\n return '\"' + c + '\" is a form of the board word \"' + w + '\".';\n }\n var left = remaining(words, 'target').length;\n if (!(count >= 1 && count <= left && Math.floor(count) === count))\n return 'The count must be a whole number from 1 to ' + left + '.';\n return '';\n}\n\nfunction applyGuess(game, word) {\n var pick = String(word || '').trim().toLowerCase();\n var cell = game.words.find(function (w) { return w.word.toLowerCase() === pick; });\n if (!cell) return { error: '\"' + word + '\" is not on the board.' };\n if (cell.revealed) return { error: '\"' + cell.word + '\" is already revealed.' };\n cell.revealed = true;\n var result = cell.kind;\n if (result === 'trap') {\n game.status = 'lost';\n } else if (remaining(game.words, 'target').length === 0) {\n game.status = 'won';\n } else if (result === 'neutral') {\n endGuessing(game);\n } else {\n game.clue.guessesLeft -= 1;\n if (game.clue.guessesLeft <= 0) endGuessing(game);\n }\n return { result: result };\n}\n\nfunction endGuessing(game) {\n game.status = 'clue_needed';\n game.giver = game.giver === 'a' ? 'b' : 'a';\n}\n// ── clue-rules-end ──\n\ninterface Cell {\n word: string;\n kind: 'target' | 'neutral' | 'trap';\n revealed: boolean;\n}\n\ninterface Game {\n version: number;\n status: 'new' | 'clue_needed' | 'guessing' | 'won' | 'lost';\n giver: 'a' | 'b';\n words: Cell[];\n clue: { word: string; count: number; guessesLeft: number; giver: 'a' | 'b' } | null;\n round: number;\n history: Array<{ round: number; clue: string; count: number; found: string[] }>;\n stats: { played: number; won: number; lost: number };\n}\n\nconst GAME_FILE = 'game.json';\n\nasync function load(): Promise<Game> {\n let parsed: Partial<Game> = {};\n try {\n parsed = JSON.parse(await gezel.fs.read(GAME_FILE)) as Partial<Game>;\n } catch {\n // A missing game is a new one.\n }\n return {\n version: 1,\n status: parsed.status ?? 'new',\n giver: parsed.giver === 'b' ? 'b' : 'a',\n words: Array.isArray(parsed.words) ? parsed.words : [],\n clue: parsed.clue ?? null,\n round: parsed.round ?? 0,\n history: Array.isArray(parsed.history) ? parsed.history : [],\n stats: parsed.stats ?? { played: 0, won: 0, lost: 0 },\n };\n}\n\nasync function save(game: Game): Promise<void> {\n await gezel.fs.write(GAME_FILE, `${JSON.stringify(game, null, 2)}\\n`);\n}\n\n// A table nobody has dealt yet gets its first board from the first look at\n// it, so a clue-giver asked to start a game can (new_game is the page's).\nasync function dealInto(game: Game): Promise<void> {\n let bank: string[] = [];\n try {\n bank = (JSON.parse(await gezel.fs.read('words.json')) as { words?: string[] }).words ?? [];\n } catch {\n bank = [];\n }\n if (bank.length < BOARD_SIZE) throw new Error('words.json needs at least 16 words.');\n game.words = deal(bank, Math.random);\n game.status = 'clue_needed';\n game.giver = game.stats.played % 2 === 0 ? 'a' : 'b';\n game.clue = null;\n game.round = 0;\n game.history = [];\n}\n\nconst game = await load();\nlet result = '';\nlet display = '';\nlet changed = false;\n\nswitch (input.action) {\n case 'new_game': {\n await dealInto(game);\n changed = true;\n break;\n }\n case 'give_clue': {\n if (game.status !== 'clue_needed')\n throw new Error(\n game.status === 'guessing'\n ? 'The player is still guessing; no clue is needed yet.'\n : game.status === 'new'\n ? 'No board is dealt yet. Call board first; it deals one.'\n : 'The game is over. Offer a new game instead of a clue.',\n );\n const count = Number(input.count);\n const problem = clueProblem(game.words, input.clue, count);\n if (problem) {\n // Point a struggling clue-giver at one word to hint at: a small model\n // given the whole board tends to offer a board word back.\n const left = remaining(game.words, 'target');\n const hint = left[Math.floor(Math.random() * left.length)];\n throw new Error(\n `${problem} Your clue must be a new word that is not on the board. Think of a word linked to \"${hint}\", and give it with count 1.`,\n );\n }\n const word = String(input.clue).trim().toUpperCase();\n game.clue = { word, count, guessesLeft: count + 1, giver: game.giver };\n game.status = 'guessing';\n game.round += 1;\n game.history = [...game.history, { round: game.round, clue: word, count, found: [] }];\n const say = String(input.say ?? '').replace(/\\s+/g, ' ').trim().slice(0, 160);\n display = `Clue: ${word}, ${count}.${say ? ` ${say}` : ''}`;\n changed = true;\n break;\n }\n case 'guess': {\n if (game.status !== 'guessing') throw new Error('Wait for a clue before guessing.');\n const outcome = applyGuess(game, input.word);\n if (outcome.error) throw new Error(outcome.error);\n result = outcome.result;\n if (result === 'target') game.history[game.history.length - 1]?.found.push(String(input.word));\n if (game.status === 'won' || game.status === 'lost') {\n game.stats.played += 1;\n if (game.status === 'won') game.stats.won += 1;\n else game.stats.lost += 1;\n }\n changed = true;\n break;\n }\n case 'pass': {\n if (game.status !== 'guessing') throw new Error('There is no guessing turn to end.');\n endGuessing(game);\n changed = true;\n break;\n }\n case 'board': {\n if (game.status === 'new' && game.words.length === 0) {\n await dealInto(game);\n changed = true;\n }\n break;\n }\n default:\n throw new Error(`Unknown action '${input.action}'.`);\n}\n\nif (changed) await save(game);\n\nconst over = game.status === 'won' || game.status === 'lost';\ngezel.output({\n status: game.status,\n giver: game.giver,\n result,\n display,\n modelState: {\n status: game.status,\n yourWords: remaining(game.words, 'target'),\n trap: game.words.find((w) => w.kind === 'trap')?.word ?? '',\n otherWords: remaining(game.words, 'neutral'),\n rule: 'Your clue must be a word that is NOT in yourWords, otherWords or trap.',\n found: game.words.filter((w) => w.kind === 'target' && w.revealed).map((w) => w.word),\n round: game.round,\n ...(game.clue && game.status === 'guessing' ? { currentClue: `${game.clue.word} ${game.clue.count}` } : {}),\n },\n summary: over\n ? `The player ${game.status === 'won' ? 'found all six words' : 'hit the trap'} in ${game.round} round(s). Games: ${game.stats.won} won, ${game.stats.lost} lost.`\n : `Round ${game.round}: ${remaining(game.words, 'target').length} of 6 words still to find.`,\n});\n"
|
|
31
|
+
},
|
|
32
|
+
"tools": [
|
|
33
|
+
{
|
|
34
|
+
"name": "board",
|
|
35
|
+
"description": "Read the game: your words still to find, the trap, the other words, and whether a clue is needed. Deals the first board when none is on the table.",
|
|
36
|
+
"script": "clue-store",
|
|
37
|
+
"inputs": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"properties": {}
|
|
40
|
+
},
|
|
41
|
+
"bind": {
|
|
42
|
+
"action": "board"
|
|
43
|
+
},
|
|
44
|
+
"state": true,
|
|
45
|
+
"answer": {
|
|
46
|
+
"tool": "give_clue",
|
|
47
|
+
"when": {
|
|
48
|
+
"op": "equals",
|
|
49
|
+
"field": "status",
|
|
50
|
+
"value": "clue_needed"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "give_clue",
|
|
56
|
+
"description": "Give the player's next clue: one word that is not on the board, the number of their words it points at, and one short line of table talk.",
|
|
57
|
+
"script": "clue-store",
|
|
58
|
+
"inputs": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"properties": {
|
|
61
|
+
"clue": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "One word, not on the board."
|
|
64
|
+
},
|
|
65
|
+
"count": {
|
|
66
|
+
"type": "number",
|
|
67
|
+
"description": "How many of the player's words it points at."
|
|
68
|
+
},
|
|
69
|
+
"say": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "One short line of table talk (max 160 characters)."
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"required": [
|
|
75
|
+
"clue",
|
|
76
|
+
"count"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"bind": {
|
|
80
|
+
"action": "give_clue"
|
|
81
|
+
},
|
|
82
|
+
"turn": {
|
|
83
|
+
"say": "say",
|
|
84
|
+
"show": "display",
|
|
85
|
+
"fallback": "Your clue is on the board."
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "new_game",
|
|
90
|
+
"description": "Deal a fresh board.",
|
|
91
|
+
"script": "clue-store",
|
|
92
|
+
"inputs": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"properties": {}
|
|
95
|
+
},
|
|
96
|
+
"bind": {
|
|
97
|
+
"action": "new_game"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "guess",
|
|
102
|
+
"description": "The player picks a word on the board.",
|
|
103
|
+
"script": "clue-store",
|
|
104
|
+
"inputs": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"properties": {
|
|
107
|
+
"word": {
|
|
108
|
+
"type": "string"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"required": [
|
|
112
|
+
"word"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"bind": {
|
|
116
|
+
"action": "guess"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "pass",
|
|
121
|
+
"description": "The player stops guessing this turn.",
|
|
122
|
+
"script": "clue-store",
|
|
123
|
+
"inputs": {
|
|
124
|
+
"type": "object",
|
|
125
|
+
"properties": {}
|
|
126
|
+
},
|
|
127
|
+
"bind": {
|
|
128
|
+
"action": "pass"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "ask_clue_a",
|
|
133
|
+
"description": "The board asks for the next clue.",
|
|
134
|
+
"script": "clue-store",
|
|
135
|
+
"inputs": {
|
|
136
|
+
"type": "object",
|
|
137
|
+
"properties": {}
|
|
138
|
+
},
|
|
139
|
+
"bind": {
|
|
140
|
+
"action": "board"
|
|
141
|
+
},
|
|
142
|
+
"reaction": {
|
|
143
|
+
"gezel": "woordsmid",
|
|
144
|
+
"hideSeed": true,
|
|
145
|
+
"standalone": true,
|
|
146
|
+
"prompt": "It is your turn in Word Clues. The game engine returned this state:\n```json\n{{output.modelState}}\n```\nIf `status` is `clue_needed`, call give_clue once: `clue` is one NEW word, not on the board, that links some of `yourWords`, `count` is how many it points at, and `say` is one short line of table talk. Never pick a clue that also fits `trap`, and avoid ones that fit `otherWords`. If the game is over, give no clue: say one warm line about how it went and offer another game.",
|
|
147
|
+
"turn": {
|
|
148
|
+
"tool": "give_clue",
|
|
149
|
+
"when": {
|
|
150
|
+
"op": "equals",
|
|
151
|
+
"field": "status",
|
|
152
|
+
"value": "clue_needed"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "ask_clue_b",
|
|
159
|
+
"description": "The board asks for the next clue.",
|
|
160
|
+
"script": "clue-store",
|
|
161
|
+
"inputs": {
|
|
162
|
+
"type": "object",
|
|
163
|
+
"properties": {}
|
|
164
|
+
},
|
|
165
|
+
"bind": {
|
|
166
|
+
"action": "board"
|
|
167
|
+
},
|
|
168
|
+
"reaction": {
|
|
169
|
+
"gezel": "puzzelaar",
|
|
170
|
+
"hideSeed": true,
|
|
171
|
+
"standalone": true,
|
|
172
|
+
"prompt": "It is your turn in Word Clues. The game engine returned this state:\n```json\n{{output.modelState}}\n```\nIf `status` is `clue_needed`, call give_clue once: `clue` is one NEW word, not on the board, that links some of `yourWords`, `count` is how many it points at, and `say` is one short line of table talk. Never pick a clue that also fits `trap`, and avoid ones that fit `otherWords`. If the game is over, give no clue: say one warm line about how it went and offer another game.",
|
|
173
|
+
"turn": {
|
|
174
|
+
"tool": "give_clue",
|
|
175
|
+
"when": {
|
|
176
|
+
"op": "equals",
|
|
177
|
+
"field": "status",
|
|
178
|
+
"value": "clue_needed"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"pages": {
|
|
185
|
+
"entry": "board/index.html",
|
|
186
|
+
"api": 1,
|
|
187
|
+
"reads": [
|
|
188
|
+
{
|
|
189
|
+
"source": "workspace",
|
|
190
|
+
"path": "game.json"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"tools": [
|
|
194
|
+
"new_game",
|
|
195
|
+
"guess",
|
|
196
|
+
"pass",
|
|
197
|
+
"ask_clue_a",
|
|
198
|
+
"ask_clue_b"
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
"workspaceSeed": [
|
|
202
|
+
"game.json",
|
|
203
|
+
"words.json"
|
|
204
|
+
]
|
|
205
|
+
}
|