yats-toolkit 0.1.1 → 0.1.2
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/package.json +1 -1
- package/src/setup.js +6 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yats-toolkit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
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": "MIT",
|
package/src/setup.js
CHANGED
|
@@ -298,7 +298,8 @@ async function checkPort(port) {
|
|
|
298
298
|
|
|
299
299
|
async function checkYatsRunning() {
|
|
300
300
|
return new Promise((resolve) => {
|
|
301
|
-
|
|
301
|
+
// Only match the YATS setup containers (not dev containers)
|
|
302
|
+
const proc = spawn("docker", ["ps", "--format", "{{.Names}}", "--filter", "name=yats-yats"], { stdio: "pipe" });
|
|
302
303
|
let out = "";
|
|
303
304
|
proc.stdout.on("data", (d) => (out += d));
|
|
304
305
|
proc.on("close", () => resolve(out.trim().length > 0));
|
|
@@ -383,12 +384,12 @@ async function main() {
|
|
|
383
384
|
// Check for existing YATS containers BEFORE the wizard
|
|
384
385
|
const existingContainers = await checkYatsRunning();
|
|
385
386
|
if (existingContainers) {
|
|
386
|
-
console.log(` ${Y}YATS
|
|
387
|
+
console.log(` ${Y}YATS is already running on this machine.${R}`);
|
|
387
388
|
console.log("");
|
|
388
|
-
console.log(` To start fresh
|
|
389
|
-
console.log(` ${C}
|
|
389
|
+
console.log(` To start fresh ${B}(destroys all indexed data):${R}`);
|
|
390
|
+
console.log(` ${C}cd ~/.yats && docker compose down -v${R}`);
|
|
390
391
|
console.log("");
|
|
391
|
-
console.log(`
|
|
392
|
+
console.log(` To reconnect your AI agent, just point it at ${C}http://localhost:5555/mcp${R}`);
|
|
392
393
|
console.log("");
|
|
393
394
|
process.exit(0);
|
|
394
395
|
}
|