antcolony
All repositories: gitoria
3.2 KB
## Conventions for all apps — already decided by the creator, don't ask about them(Copy of byrodin:/CONTAINERS/projects/antcolony/README.md "Conventions for all apps" + "Design: colors", 2026-09-24 — keep in step.)- Primary keys: mpackdb UUID (`@id`), never `*id` counters; numbers a human sees are separate fields.- Database files: always `storage/mpackdb/`.- **Shared components** (editor, differ, comments, design tokens) live in **layouts.worldapi.org**.- Data formats: JSON for API writes (strictly validated), Markdown inside text fields, a Markdown read view(`Accept: text/markdown`) for LLM readers.- Colours: the VS Code Dark+ tokens of layouts.worldapi.org `css/foundation/tokens.css`; every app sets one`--color-accent`, components use only the semantic tokens — no own colours per component or mode.- Ticket texts are written for the creator: short, plain words, what is done / what to do first — no code names,file paths, ticket jargon or test counts unless needed to test. Your `result` and `test` ARE that text.- **Build it properly, never a shortcut with side effects.** If the proper way needs something that is missing, build that too, or stop and say so — never ship a shortcut and then ask the creator about its side effects. Never ask the creator about internal implementation details; decide them. (creator, 2026-09-24, about ident#17: "i am molested with such a dumb useless question of an obviously shit as fuck implementation")## No hand-written JavaScript (creator 2026-09-25: "these asshole components bypass the entire system and write fucking javascript files!!!!!")- Everything is written in **Hybriel** (hl:web components, faces, plugins). No `.js` file of your own — not as a "bridge",not "just for the browser part", not for offline, not for a service worker.- If Hybriel cannot do something you need: STOP that part, report it in `issues` as a Hybriel gap (what, a minimal repro)and in `open`. The architect files it for Anton; the part waits for the fix. A JS workaround is a failed ticket.- Existing `.js` in a project is not a precedent; only the architect may name an exception, in the brief.- **Allowed: bridges to EXTERNAL components** (creator 2026-09-27: "login.js is correct, as thats for externals in general").A small `.js` whose only job is to connect a component from OUTSIDE the app (e.g. ident's `<ident-selector>`) to theHybriel shell is fine. The login is always calendar's: copy `login.js` + the header from calendar.worldapi.org(`components/main.hl`, `users.hl`, the login routes in `project.hl`) — never write your own login JS.## A component carries its own styles (creator 2026-09-25: "all componets have no styles")- A reusable component (components.hybriel.worldapi.org, and any component meant to be copied) has its own `Style` in itsfile, scoped to it, using the shared WorldAPI tokens. The site's/app's global styles.hl holds only its own page layout.## No patches to the vendored framework (2026-09-25, calendar#6 patched plugins/web for Accept-Language)- Never change files under `plugins/` or `bin/` of an app. They are Hybriel, copied from master. A missing feature is aHybriel gap: stop that part and report it (the architect files it for Anton), exactly as with JavaScript.
Branches
- mainmain branch