ReviewOS

also looking at this

stacks/postline

chore(deps): upgrade vendored Stacks framework to 0.70.163

#29
Merged glennmichael123 wants to merge chore/upgrade-0.70.163 into main
224 files +3516 -874
storage/framework/core/ai/README.mdmodified+30-0
Changes to storage/framework/core/ai/README.md
@@ -35,6 +35,36 @@ const client = useAI()
3535// client...
3636```
3737
38## Compact project context
39
40Stacks conventions reduce the amount of application-owned code a coding model
41must generate. A model can describe domain shape once, use known Model-View-Action
42locations, and rely on framework traits and generators for migrations, validation,
43routes, API artifacts, and types where those paths are supported. Installed
44dependencies still exist, but their `node_modules` implementation is package-manager
45state, not application context an LLM should ingest or reproduce.
46
47Generate a deterministic context payload for any coding model or agent:
48
49```bash
50buddy ai:context
51buddy ai:context --json
52buddy ai:context --json --output .stacks/ai-context.json
53buddy ai:context --max-chars 4000 --model claude-sonnet-4
54```
55
56The versioned JSON contract identifies canonical source roles, instruction files,
57available application surfaces, safe package metadata, and representative source
58paths. It excludes dependency, build, cache, lock, environment, credential, key,
59and secret paths by default. Existing Buddy AI calls consume the same compact text
60representation.
61
62Output metrics include the enforced character budget and a heuristic token estimate.
63They also compare the payload with the previous unstructured context shape. This is
64evidence about prompt size only. It is not evidence that a particular model will
65write correct code, and exact billing tokens require the selected provider's
66tokenizer.
67
3868Learn more in the docs.
3969
4070## 🧪 Testing