Phase 7: serve the vet sample from the template tools and docs
- build.py: _TEMPLATE_COMPONENTS rewritten around the vet sample (53 kinds —
per-resource slices, jobs, worked appointment_reminder family, tests);
seed tokens dropped from the manifest ('sample: vet' instead)
- registry.py: get_app_component(kind) no longer renames item/example seeds;
prompts and tool docs updated to 'copy a slice and adapt'
- templates/README.md, 01_build_recipe, 40_ui_admin, wiki/03 updated off the
old seed scheme; repo inventory/config now exclude vet (docs move under
standards; react/vet itself is deleted in a later phase)
- regenerated MCP bundle, vendored templates, and site output
This commit is contained in:
@@ -12,12 +12,19 @@ from init import init, shutdown
|
||||
|
||||
|
||||
async def main() -> None:
|
||||
"""Seed one demo item and shut down cleanly."""
|
||||
"""Seed minimal demo records and shut down cleanly."""
|
||||
resources = await init()
|
||||
try:
|
||||
item_svc = resources["item_svc"]
|
||||
await item_svc.create({"name": "seed", "quantity": 1})
|
||||
print("Seeded one item.")
|
||||
await resources["parent_svc"].create(
|
||||
{"name": "Alice Parker", "email": "alice@vet.example"}
|
||||
)
|
||||
await resources["vet_svc"].create(
|
||||
{"name": "Dr. Chen", "specialty": "Canine", "email": "chen@vet.example"}
|
||||
)
|
||||
await resources["treatment_svc"].create(
|
||||
{"label": "Checkup", "description": "Routine wellness exam"}
|
||||
)
|
||||
print("Seeded demo parents/vets/treatments.")
|
||||
finally:
|
||||
await shutdown()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user