yats-toolkit 0.2.1 → 0.2.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/setup.js +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yats-toolkit",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
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",
package/src/setup.js CHANGED
@@ -154,6 +154,7 @@ function pad(s) {
154
154
  /** Center text within width, preserving ANSI codes */
155
155
  function center(text, width = W) {
156
156
  const vlen = visibleLen(text);
157
+ if (vlen >= width) return text;
157
158
  const left = Math.floor((width - vlen) / 2);
158
159
  const right = width - vlen - left;
159
160
  return " ".repeat(left) + text + " ".repeat(right);
@@ -775,11 +776,11 @@ async function main(options = {}) {
775
776
 
776
777
  if (osPlatform === "win32") {
777
778
  // Windows: create a .cmd wrapper
778
- const cmdScript = `@echo off\r\nnpx yats %*\r\n`;
779
+ const cmdScript = `@echo off\r\nnpx yats-toolkit %*\r\n`;
779
780
  writeFileSync(join(YATS_BIN_DIR, "yats.cmd"), cmdScript);
780
781
  } else {
781
782
  // Linux/macOS: create a shell wrapper
782
- const shScript = `#!/usr/bin/env bash\nnpx yats "$@"\n`;
783
+ const shScript = `#!/usr/bin/env bash\nnpx yats-toolkit "$@"\n`;
783
784
  writeFileSync(join(YATS_BIN_DIR, "yats"), shScript);
784
785
  chmodSync(join(YATS_BIN_DIR, "yats"), 0o755);
785
786
  }
@@ -835,7 +836,7 @@ async function main(options = {}) {
835
836
  `{ "command": "npx", "args": ["yats-bridge"] }`,
836
837
  "",
837
838
  `${D}For more: yats connect${R}`,
838
- `${C}https://github.com/fvinciarelli/yats.ai/tree/master/connect${R}`,
839
+ `${C}github.com/fvinciarelli/yats.ai/connect${R}`,
839
840
  ]);
840
841
  console.log("");
841
842
  console.log(` ${B}Try:${R} ${C}"how does auth work in this project?"${R}`);