The file:llms.txt (320 lines, the llms.txt format) at the package root. It is added to files (npm) and publish.include (JSR) and lands at node_modules/@green-tea/core/llms.txt. It covers:
the mental model;
a complete app with serving per runtime;
a cheat sheet of decorators and built-in tokens;
responses and errors;
validation and streaming;
the createApp options;
common mistakes from Express and Nest;
testing with app.fetch and overrides;
inspection with matcha;
stability and links.
Verified:
Every ts block typechecks against src/ (strict, experimentalDecorators).
The main examples run under tsx.
Each behavioural claim was checked with a small probe app.
npm pack --dry-run and deno publish --dry-run both include the file.
npm test passes (1213); npm audit is clean.
Freeze: the public API does not change. This only adds a file to the package (api:check unaffected).
Found while writing it (the RC.1 docs will be fixed in docs #29):
An unknown token in overrides fails in boot()/fetch(), not when the app is created.
A step cannot declare needs: ['cookies'].
events is also a built-in node.
app.listen should be awaited.
Part B of the LLM-guidance plan. The other parts:
- **A:** Matcha #19, an `AGENTS.md` in every project, pointing here.
- **C:** docs #30, `/docs/llms-full.txt`.
- **F:** Matcha #18, `routes`/`tokens --json`.
- **G:** an evaluation, in progress.
**The file:** `llms.txt` (320 lines, the llms.txt format) at the package root. It is added to `files` (npm) and `publish.include` (JSR) and lands at `node_modules/@green-tea/core/llms.txt`. It covers:
- the mental model;
- a complete app with serving per runtime;
- a cheat sheet of decorators and built-in tokens;
- responses and errors;
- validation and streaming;
- the `createApp` options;
- common mistakes from Express and Nest;
- testing with `app.fetch` and `overrides`;
- inspection with `matcha`;
- stability and links.
**Verified:**
- Every `ts` block typechecks against `src/` (strict, `experimentalDecorators`).
- The main examples run under `tsx`.
- Each behavioural claim was checked with a small probe app.
- `npm pack --dry-run` and `deno publish --dry-run` both include the file.
- `npm test` passes (1213); `npm audit` is clean.
**Freeze:** the public API does not change. This only adds a file to the package (`api:check` unaffected).
**Found while writing it** (the RC.1 docs will be fixed in docs #29):
- An unknown token in `overrides` fails in `boot()`/`fetch()`, not when the app is created.
- A step cannot declare `needs: ['cookies']`.
- `events` is also a built-in node.
- `app.listen` should be awaited.
green-tea is new, so coding agents have no training data on it and
write Express: app.use, next(), res.status().json(). llms.txt states
what differs: the mental model, a complete app, the decorators and
built-in tokens, how to return responses, the options agents usually
need, common mistakes with the correct form, testing, and how to
inspect an app first.
Every code block was typechecked against src/, and each behavioural
claim was checked with a small probe app.
The file ships inside the package, so it always matches the installed
version. matcha's scaffolded AGENTS.md points at it. Only a packaged
file is added; the API is unchanged.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
Follows core's fix: a provider returning its value bare fails the boot,
and a returned Response fails the request. Merge after that fix.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part B of the LLM-guidance plan. The other parts:
AGENTS.mdin every project, pointing here./docs/llms-full.txt.routes/tokens --json.The file:
llms.txt(320 lines, the llms.txt format) at the package root. It is added tofiles(npm) andpublish.include(JSR) and lands atnode_modules/@green-tea/core/llms.txt. It covers:createAppoptions;app.fetchandoverrides;matcha;Verified:
tsblock typechecks againstsrc/(strict,experimentalDecorators).tsx.npm pack --dry-runanddeno publish --dry-runboth include the file.npm testpasses (1213);npm auditis clean.Freeze: the public API does not change. This only adds a file to the package (
api:checkunaffected).Found while writing it (the RC.1 docs will be fixed in docs #29):
overridesfails inboot()/fetch(), not when the app is created.needs: ['cookies'].eventsis also a built-in node.app.listenshould be awaited.3b02734aa9tofa788d17da