yats-toolkit 0.1.12 → 0.1.14
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 +1 -1
- package/benchmark/README.md +54 -0
- package/benchmark/questions/csharp/Carter/01-modules.md +1 -0
- package/benchmark/questions/csharp/Carter/02-handlers.md +1 -0
- package/benchmark/questions/csharp/MediatR/01-pipeline.md +1 -0
- package/benchmark/questions/csharp/MediatR/02-dispatch.md +1 -0
- package/benchmark/questions/csharp/eShopOnWeb/01-repository.md +1 -0
- package/benchmark/questions/csharp/eShopOnWeb/02-architecture.md +1 -0
- package/benchmark/questions/go/gin/01-middleware.md +1 -0
- package/benchmark/questions/go/gin/02-routing.md +1 -0
- package/benchmark/questions/go/lab_hub/01-protocol-translation.md +1 -0
- package/benchmark/questions/go/lab_hub/02-bidirectional-flow.md +1 -0
- package/benchmark/questions/go/terraform/01-providers.md +1 -0
- package/benchmark/questions/go/terraform/02-graph.md +1 -0
- package/benchmark/questions/php/laravel/01-container.md +1 -0
- package/benchmark/questions/php/laravel/02-routing.md +1 -0
- package/benchmark/questions/php/symfony/01-dependency-injection.md +1 -0
- package/benchmark/questions/php/symfony/02-event-dispatcher.md +1 -0
- package/benchmark/questions/python/01-middleware.md +8 -0
- package/benchmark/questions/python/02-routing.md +9 -0
- package/benchmark/questions/python/django/01-middleware.md +1 -0
- package/benchmark/questions/python/django/01-orm.md +1 -0
- package/benchmark/questions/python/fastapi/01-middleware.md +1 -0
- package/benchmark/questions/python/fastapi/02-routing.md +1 -0
- package/benchmark/questions/typescript/nestjs/01-decorators.md +1 -0
- package/benchmark/questions/typescript/nestjs/02-modules.md +1 -0
- package/benchmark/questions/typescript/nextjs/01-rendering.md +1 -0
- package/benchmark/questions/typescript/nextjs/02-routing.md +1 -0
- package/benchmark/run.sh +288 -0
- package/benchmark/scripts/compare-codex-mcp.sh +94 -0
- package/benchmark/scripts/compare.py +42 -0
- package/benchmark/scripts/parse-copilot.sh +34 -0
- package/benchmark/scripts/report.py +123 -0
- package/benchmark/targets/repos.json +23 -0
- package/package.json +6 -2
- package/src/bridge.js +158 -75
- package/src/setup.js +3 -3
- package/src/watch.js +155 -0
- package/bin/setup.js +0 -80
package/bin/setup.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* YATS Toolkit — Code intelligence for AI agents.
|
|
4
|
-
*
|
|
5
|
-
* Usage:
|
|
6
|
-
* yats setup # One-time setup wizard
|
|
7
|
-
* yats index <path> # Index a repository
|
|
8
|
-
* yats search <query> # Search indexed code
|
|
9
|
-
* yats list # List indexed repositories
|
|
10
|
-
* yats summary <repo> # Show repository summary
|
|
11
|
-
* yats clear <repo> # Delete indexed data
|
|
12
|
-
* yats status # Check indexed repos
|
|
13
|
-
* yats stop # Stop all YATS services
|
|
14
|
-
* yats bridge # MCP stdio ↔ HTTP proxy (for Copilot, Claude)
|
|
15
|
-
* yats benchmark # AI agent token comparison
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
const cmd = process.argv[2] || "setup";
|
|
19
|
-
const args = process.argv.slice(3);
|
|
20
|
-
|
|
21
|
-
switch (cmd) {
|
|
22
|
-
case "setup":
|
|
23
|
-
import("../src/setup.js").then(m => m.default());
|
|
24
|
-
break;
|
|
25
|
-
case "index":
|
|
26
|
-
case "add": {
|
|
27
|
-
const skipDocs = args.includes("--skip-docs");
|
|
28
|
-
const cleanArgs = args.filter(a => a !== "--skip-docs");
|
|
29
|
-
import("../src/indexer.js").then(m => m.default(cleanArgs, { skipDocs }));
|
|
30
|
-
break;
|
|
31
|
-
}
|
|
32
|
-
case "search":
|
|
33
|
-
import("../src/search.js").then(m => m.default(args));
|
|
34
|
-
break;
|
|
35
|
-
case "list":
|
|
36
|
-
import("../src/list.js").then(m => m.default());
|
|
37
|
-
break;
|
|
38
|
-
case "summary":
|
|
39
|
-
import("../src/summary.js").then(m => m.default(args));
|
|
40
|
-
break;
|
|
41
|
-
case "clear":
|
|
42
|
-
import("../src/clear.js").then(m => m.default(args));
|
|
43
|
-
break;
|
|
44
|
-
case "status":
|
|
45
|
-
import("../src/status.js").then(m => m.default());
|
|
46
|
-
break;
|
|
47
|
-
case "stop":
|
|
48
|
-
import("../src/stop.js").then(m => m.default());
|
|
49
|
-
break;
|
|
50
|
-
case "bridge":
|
|
51
|
-
import("../src/bridge.js");
|
|
52
|
-
break;
|
|
53
|
-
case "benchmark":
|
|
54
|
-
import("../src/benchmark.js").then(m => m.runBenchmark());
|
|
55
|
-
break;
|
|
56
|
-
case "--version":
|
|
57
|
-
case "-v":
|
|
58
|
-
try {
|
|
59
|
-
const { readFileSync } = await import("node:fs");
|
|
60
|
-
const pkg = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf-8"));
|
|
61
|
-
console.log(`yats v${pkg.version}`);
|
|
62
|
-
} catch {
|
|
63
|
-
console.log("yats v0.1.10");
|
|
64
|
-
}
|
|
65
|
-
break;
|
|
66
|
-
default:
|
|
67
|
-
console.log(`YATS Toolkit — Code intelligence for AI agents`);
|
|
68
|
-
console.log(``);
|
|
69
|
-
console.log(` yats setup Setup wizard`);
|
|
70
|
-
console.log(` yats index <path> Index a repository`);
|
|
71
|
-
console.log(` yats search <query> Search indexed code`);
|
|
72
|
-
console.log(` yats list List indexed repositories`);
|
|
73
|
-
console.log(` yats summary <repo> Show repository summary`);
|
|
74
|
-
console.log(` yats clear <repo> Delete indexed data`);
|
|
75
|
-
console.log(` yats status Check indexed repos`);
|
|
76
|
-
console.log(` yats stop Stop YATS services`);
|
|
77
|
-
console.log(` yats bridge Stdio proxy for Copilot/Claude`);
|
|
78
|
-
console.log(` yats benchmark AI agent token comparison`);
|
|
79
|
-
break;
|
|
80
|
-
}
|