feat: ship llms.txt, a guide for LLM coding agents, in the npm and JSR packages
CI / dco (pull_request) Successful in 5s
CI / runtimes (bun) (pull_request) Successful in 20s
CI / build (pull_request) Successful in 31s
CI / runtimes (edge) (pull_request) Successful in 23s
CI / runtimes (deno) (pull_request) Successful in 32s

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 11:01:50 -05:00
1 parent 2744b225a5
commit 895ae7f27f
5 files changed
+330 -1

No files matched your search

+7
View File
@@ -143,6 +143,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`,