yats-toolkit 0.2.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -2
- package/benchmark/questions/go/chi/01-routing.md +1 -0
- package/benchmark/questions/go/chi/02-middleware.md +1 -0
- package/benchmark/questions/php/slim/01-routing.md +1 -0
- package/benchmark/questions/php/slim/02-container.md +1 -0
- package/benchmark/questions/python/flask/01-routing.md +1 -0
- package/benchmark/questions/python/flask/02-context.md +1 -0
- package/benchmark/questions/typescript/express/01-middleware.md +1 -0
- package/benchmark/questions/typescript/express/02-router.md +1 -0
- package/benchmark/questions/typescript/koa/01-middleware.md +1 -0
- package/benchmark/questions/typescript/koa/02-context.md +1 -0
- package/benchmark/targets/repos.json +5 -6
- package/package.json +1 -1
- package/src/benchmark.js +1316 -335
- package/src/bridge.js +8 -6
- package/benchmark/questions/go/terraform/01-providers.md +0 -1
- package/benchmark/questions/go/terraform/02-graph.md +0 -1
- package/benchmark/questions/php/laravel/01-container.md +0 -1
- package/benchmark/questions/php/laravel/02-routing.md +0 -1
- package/benchmark/questions/php/symfony/01-dependency-injection.md +0 -1
- package/benchmark/questions/php/symfony/02-event-dispatcher.md +0 -1
- package/benchmark/questions/python/01-middleware.md +0 -8
- package/benchmark/questions/python/02-routing.md +0 -9
- package/benchmark/questions/python/django/01-middleware.md +0 -1
- package/benchmark/questions/python/django/01-orm.md +0 -1
- package/benchmark/questions/typescript/nestjs/01-decorators.md +0 -1
- package/benchmark/questions/typescript/nestjs/02-modules.md +0 -1
- package/benchmark/questions/typescript/nextjs/01-rendering.md +0 -1
- package/benchmark/questions/typescript/nextjs/02-routing.md +0 -1
- /package/benchmark/questions/go/{lab_hub → hub-lab}/01-protocol-translation.md +0 -0
- /package/benchmark/questions/go/{lab_hub → hub-lab}/02-bidirectional-flow.md +0 -0
package/README.md
CHANGED
|
@@ -172,8 +172,20 @@ Deletes all indexed data for a repository (symbols, relationships, vectors). Use
|
|
|
172
172
|
yats benchmark
|
|
173
173
|
```
|
|
174
174
|
Runs an interactive AI agent benchmark. Compares token usage answering the same
|
|
175
|
-
codebase questions with and without YATS. Supports Claude
|
|
176
|
-
|
|
175
|
+
codebase questions with and without YATS. Supports Claude, Codex, Copilot, Gemini,
|
|
176
|
+
and Cursor (CLI). Clones/indexes test repos and saves results with averages.
|
|
177
|
+
|
|
178
|
+
**Where your agent's keys come from** — the benchmark runs *your* agent, which uses
|
|
179
|
+
*your* credentials with its provider. It auto-loads `.env` (from the current dir,
|
|
180
|
+
walking up to the repo root) into the environment; shell env vars take precedence.
|
|
181
|
+
|
|
182
|
+
| Agent | Credential |
|
|
183
|
+
|---|---|
|
|
184
|
+
| Gemini | `GEMINI_API_KEY` (free: aistudio.google.com/apikey) |
|
|
185
|
+
| Claude | `ANTHROPIC_API_KEY`, or `claude` OAuth login |
|
|
186
|
+
| Codex | `OPENAI_API_KEY`, or `codex` login (`~/.codex/auth.json`) |
|
|
187
|
+
| Copilot | GitHub Copilot login (no env var) |
|
|
188
|
+
| Cursor | `cursor-agent` login |
|
|
177
189
|
|
|
178
190
|
## License
|
|
179
191
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
How does chi register and match routes? Trace from route registration to dispatch, covering the routing tree, Context, and the middleware chain.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
How does chi compose middleware? Identify the key types (Mux, Middlewares, ChainHandler) and how a request flows through them.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
How does Slim route requests and handle middleware? Trace from the app entry point to the response, covering Route, Middleware, and the route resolver.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
How does Slim organize its architecture? Identify Controllers, Routes, Middleware, and how the dependency injection container wires them together.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
How does Flask route a request? Trace from app creation to the view function dispatch — URL rule registration, the route decorator, and the request context used during handling.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
How do Flask's application and request contexts work? Identify the key classes (Flask, RequestContext, AppContext, LocalStack) and how they are pushed/popped during a request.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
How does Express handle middleware and routing? Trace a request from entering app() to the response, covering the middleware stack, Layer, and Route matching.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
How is Express's Router structured? Identify the key components (Router, Layer, Route, handle) and how they compose to dispatch a request.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
How does Koa's middleware system work? Trace the onion-model composition (compose) and how the context (ctx) is created per request.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
How does Koa build its request/response context? Identify the key classes (Application, Context, Request, Response) and how ctx delegates to request/response.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"python": [
|
|
3
3
|
{ "name": "fastapi", "url": "https://github.com/fastapi/fastapi", "desc": "FastAPI web framework" },
|
|
4
|
-
{ "name": "
|
|
4
|
+
{ "name": "flask", "url": "https://github.com/pallets/flask", "desc": "Flask micro web framework" }
|
|
5
5
|
],
|
|
6
6
|
"typescript": [
|
|
7
|
-
{ "name": "
|
|
8
|
-
{ "name": "
|
|
7
|
+
{ "name": "express", "url": "https://github.com/expressjs/express", "desc": "Express web framework" },
|
|
8
|
+
{ "name": "koa", "url": "https://github.com/koajs/koa", "desc": "Koa web framework" }
|
|
9
9
|
],
|
|
10
10
|
"go": [
|
|
11
11
|
{ "name": "gin", "url": "https://github.com/gin-gonic/gin", "desc": "Gin HTTP web framework" },
|
|
12
|
-
{ "name": "
|
|
12
|
+
{ "name": "chi", "url": "https://github.com/go-chi/chi", "desc": "Chi lightweight router" }
|
|
13
13
|
],
|
|
14
14
|
"csharp": [
|
|
15
15
|
{ "name": "MediatR", "url": "https://github.com/jbogard/MediatR", "desc": "MediatR CQRS/Mediator library" },
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
{ "name": "Carter", "url": "https://github.com/CarterCommunity/Carter", "desc": "Minimal APIs framework for ASP.NET Core" }
|
|
18
18
|
],
|
|
19
19
|
"php": [
|
|
20
|
-
{ "name": "
|
|
21
|
-
{ "name": "symfony", "url": "https://github.com/symfony/symfony", "desc": "Symfony PHP framework" }
|
|
20
|
+
{ "name": "slim", "url": "https://github.com/slimphp/Slim", "desc": "Slim PHP micro framework" }
|
|
22
21
|
]
|
|
23
22
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yats-toolkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "YATS — Yet Another Token Saver. One-command MCP server that indexes your codebase into a knowledge graph so AI agents (Claude, Cursor, Copilot) can search and navigate it without burning tokens.",
|
|
5
5
|
"author": "Franco Vinciarelli <vinciarellifranco@gmail.com>",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|