Clean up models directory
Move test-only models that are not straight-up examples out of
models/ and into models/test/. Update set-model (and any path
helpers / with-model) so it also checks models/test/ when
resolving a model name. Keep real examples
(todos, modelbank, chores, books, etc.) at the top level.
Document the split in models/README.md if present.
The dc-eclectic package contains a directory-listing function that might come in handy for this.
Resolved via models-dir-plan-grok.org
Commit: 253e046 Clean up models directory
Files moved (via git mv):
models/test-model.lisp→models/test/test-model.lispmodels/m2m-test.lisp→models/test/m2m-test.lispmodels/nullable-fk-test.lisp→models/test/nullable-fk-test.lispmodels/static-select-test.lisp→models/test/static-select-test.lisp
New file:
models/test/modelbank-test.lisp— copy ofmodelbank-dev.lisp(since merged intomodelbank.lisp) with:name "modelbank-test"
Lisp changes (lisp/model.lisp):
- Added
resolve-model-path— two-path probe (top-level thentest/),report-eon miss - Updated
set-modelstring method to useresolve-model-path - Filtered
list-modelsto excludemodels/test/paths
Test changes:
tests/helpers.lisp—run-generator-testsuses"modelbank-test"tests/generator-tests.lisp— suite description and section comments updatedtests/form-fields-tests.lisp— switched to recursiveu:directory-listing, skip onlywidgetstests/widget-tests.lisp— same treatment
Docs updated: models/README.md, docs/model-reference.md, AGENT.md
Verification: All 767 checks passed across 12 groups (23.4s). list-models returns 9 top-level models only. resolve-model-path correctly finds files in both locations. Unknown names produce a clear report-e error.
- Slot
- 24500
- Status
- 60 Done
- Tags
- mvp, maintenance
- Contributors
- Donnie