feat: ship llms.txt, a guide for LLM coding agents, in the npm and JSR packages

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>
This commit is contained in:
chrnx committed 2026-10-30 20:30:05 -05:00
1 parent 6eaa519059
commit 4877ea1754
5 files changed
+330 -1

No files matched your search

+7
View File
@@ -164,6 +164,13 @@ npm treats versions as semver and semver forbids leading zeros.
### Added
- **`llms.txt` ships in the package** (`node_modules/@green-tea/core/llms.txt`, and in the JSR
package). It is a guide for LLM coding agents, which have no training data on green-tea and fall back
on Express habits. It covers the mental model, a complete app, the decorators and built-in tokens,
how responses are returned, the options agents usually need, the common mistakes with their correct
form, testing, and how to inspect an app before editing it. Every code block typechecks against this
release. Projects scaffolded by matcha point their `AGENTS.md` at it.
- **Every type a public signature uses can now be imported.** These were already in the
declarations, but nothing exported them, so code could call the API and could not name what it
passed or got back. From the root: `ModuleOptions`, `Ctor`, `BusLike`, `ArgSource`,