Tribes.createTribe now provisions the tribe code directory with routes/models/
schema/dataprocess/wwws, a node_modules symlink to apxtri/node_modules (so tribe
routes can require express etc.), and an example route. This lets a mayor drop
custom routes/models right after creating a tribe — the town ("admin") tribe
has no code dir by design.
documents/17-TEAMDEV.md: new Part E "Custom town routes (mayor logic)" using
the "admin tribe" documentation convention (name left free).
- aigenerator.js: broken (requires @google/generative-ai, not a dependency) and superseded by opencode agents
- apxchat.js: unfinished PGP chat experiment (nodepgp missing, undefined vars)
- suneditor-entry.js: manual esbuild entry; the built bundle is committed and served from cdn/lib/suneditor
- documents/12-WEBAPP.md: add CDN section + SunEditor full-bundle rebuild command
The town tribe has no code dir anymore ({NODEPATH}/{TOWN} does not exist):
- utils/webapps.js: getWebappSource/listWebappNames resolve the town tribe's
webapp sources to the apxtri repository (mainapp/cdn) and runtime (apidoc)
- Caddy.discoverWebapps, Wwws.buildpwa/getTribestyle/saveStyle/createSubapp/
rename/deleteSubapp, routes/wwws.js and apxtri._setupDraftSymlinks now use
the resolver
- init.sh: no longer creates the town code dir; apidoc config is written into
the runtime data dir
- remove the now-pointless MAINAPP_DEV apidoc skeleton promotion in buildpwa
- docs updated (AGENTS.md, 17-TEAMDEV.md, 01-SETUP.md)
- init.sh: drop pointless cdn/lib + mainapp mkdirs, stale comment
- promote-to-skeleton.sh: only promote schema/ + objects/ (mainapp/cdn now live in the apxtri repo)
- AGENTS.md: New Tribe Setup reflects repo-versioned mainapp/cdn (symlinks)
- documents/01-SETUP.md: current directory layout + mainapp/cdn note
- mainapp/ and cdn/ now versioned at the apxtri repository root
- init.sh provisions them via symlinks ({NODEPATH}/{TOWN}/wwws/{mainapp,cdn})
- runtime cdn static parts (fonts/lib/conf.json) symlinked, share/ stays local
- remove mainapp/cdn from setup/skeletons/newtribe
- mainapp/appconf.json: drop hardcoded dns (multi-instance fix; DOMAIN route serves it)
- Wwws.buildpwa: only apidoc promoted to skeleton anymore
- update.sh: rebuild mainapp dist after pull
- documents/17-TEAMDEV.md: new layout + mainapp/cdn dev workflow