@cachly-dev/mcp-server 0.10.88 → 0.10.89

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/dist/src/index.js CHANGED
@@ -792,7 +792,7 @@ async function handleTool(name, args) {
792
792
  '',
793
793
  'Run the setup wizard once in your terminal:',
794
794
  ' ```',
795
- ' npx @cachly-dev/mcp-server@latest setup',
795
+ ' npx @cachly-dev/mcp-server@latest autopilot',
796
796
  ' ```',
797
797
  '',
798
798
  'Or get your API key at: https://cachly.dev/setup-ai',
@@ -1406,7 +1406,7 @@ if (process.argv[2] === 'digest') {
1406
1406
  const instanceId = process.env.CACHLY_BRAIN_INSTANCE_ID ?? '';
1407
1407
  if (!apiKey || !instanceId) {
1408
1408
  console.log('\n⚠️ CACHLY_JWT and CACHLY_BRAIN_INSTANCE_ID must be set.');
1409
- console.log(' Run: npx @cachly-dev/mcp-server@latest setup\n');
1409
+ console.log(' Run: npx @cachly-dev/mcp-server@latest autopilot\n');
1410
1410
  process.exit(1);
1411
1411
  }
1412
1412
  process.stdout.write('\n🧠 Fetching your weekly Brain digest...\n\n');
@@ -1495,7 +1495,7 @@ if (process.argv[2] === 'invite') {
1495
1495
  const apiKey = process.env.CACHLY_JWT ?? '';
1496
1496
  if (!apiKey) {
1497
1497
  console.log('\n⚠️ CACHLY_JWT must be set.');
1498
- console.log(' Run: npx @cachly-dev/mcp-server@latest setup\n');
1498
+ console.log(' Run: npx @cachly-dev/mcp-server@latest autopilot\n');
1499
1499
  process.exit(1);
1500
1500
  }
1501
1501
  try {
@@ -1742,7 +1742,7 @@ if (process.argv[2] === 'upgrade') {
1742
1742
  console.log('');
1743
1743
  console.log(' Update your editor configs to pick up the new version:');
1744
1744
  console.log('');
1745
- console.log(' \x1b[32m npx @cachly-dev/mcp-server@latest setup\x1b[0m');
1745
+ console.log(' \x1b[32m npx @cachly-dev/mcp-server@latest autopilot\x1b[0m');
1746
1746
  console.log('');
1747
1747
  console.log(' \x1b[2m(npx always fetches the latest when @latest is specified)\x1b[0m');
1748
1748
  console.log('');
@@ -1905,7 +1905,7 @@ if (process.argv[2] === 'demo') {
1905
1905
  });
1906
1906
  const previewURL = `https://cachly.dev/preview?${previewParams.toString()}`;
1907
1907
  console.log(' \x1b[1mMake this permanent (free, 1–5 minutes):\x1b[0m');
1908
- console.log(' \x1b[32m$ npx @cachly-dev/mcp-server@latest setup\x1b[0m');
1908
+ console.log(' \x1b[32m$ npx @cachly-dev/mcp-server@latest autopilot\x1b[0m');
1909
1909
  console.log('');
1910
1910
  console.log(` \x1b[90m🔗 Shareable preview:\x1b[0m \x1b[36m${previewURL}\x1b[0m`);
1911
1911
  console.log('');
@@ -1922,7 +1922,7 @@ if (process.argv[2] === 'share') {
1922
1922
  const instanceId = process.env.CACHLY_BRAIN_INSTANCE_ID ?? '';
1923
1923
  if (!apiKey || !instanceId) {
1924
1924
  console.log('\n⚠️ CACHLY_JWT and CACHLY_BRAIN_INSTANCE_ID must be set.');
1925
- console.log(' Run: npx @cachly-dev/mcp-server@latest setup (takes 1–5 minutes)\n');
1925
+ console.log(' Run: npx @cachly-dev/mcp-server@latest autopilot (takes 1–5 minutes)\n');
1926
1926
  process.exit(1);
1927
1927
  }
1928
1928
  process.stdout.write('\n🧠 Fetching your Brain stats...\n');
@@ -1954,7 +1954,7 @@ if (process.argv[2] === 'share') {
1954
1954
  console.log('├─────────────────────────────────────────────────────────────┤');
1955
1955
  console.log('│ Works with: Claude Code · Cursor · Windsurf · Copilot │');
1956
1956
  console.log('│ Free · GDPR · German servers │');
1957
- console.log('│ \x1b[35mnpx @cachly-dev/mcp-server@latest setup\x1b[0m │');
1957
+ console.log('│ \x1b[35mnpx @cachly-dev/mcp-server@latest autopilot\x1b[0m │');
1958
1958
  console.log('└─────────────────────────────────────────────────────────────┘');
1959
1959
  console.log('');
1960
1960
  // Tweet text
@@ -1984,7 +1984,7 @@ if (process.argv[2] === 'publish') {
1984
1984
  const instanceId = process.env.CACHLY_BRAIN_INSTANCE_ID ?? '';
1985
1985
  if (!apiKey || !instanceId) {
1986
1986
  console.log('\n⚠️ CACHLY_JWT and CACHLY_BRAIN_INSTANCE_ID must be set.');
1987
- console.log(' Run: npx @cachly-dev/mcp-server@latest setup\n');
1987
+ console.log(' Run: npx @cachly-dev/mcp-server@latest autopilot\n');
1988
1988
  process.exit(1);
1989
1989
  }
1990
1990
  const titleIdx = process.argv.indexOf('--title');
@@ -2079,7 +2079,7 @@ if (process.argv[2] === 'badge') {
2079
2079
  const instanceId = process.env.CACHLY_BRAIN_INSTANCE_ID ?? '';
2080
2080
  if (!instanceId) {
2081
2081
  console.log('\n⚠️ CACHLY_BRAIN_INSTANCE_ID must be set.');
2082
- console.log(' Run: npx @cachly-dev/mcp-server@latest setup (takes 1–5 minutes)\n');
2082
+ console.log(' Run: npx @cachly-dev/mcp-server@latest autopilot (takes 1–5 minutes)\n');
2083
2083
  process.exit(1);
2084
2084
  }
2085
2085
  const badgeUrl = `${API_URL}/api/v1/badge/${instanceId}`;
@@ -2176,7 +2176,7 @@ if (process.argv[2] === 'init') {
2176
2176
  }
2177
2177
  if (!instanceId || !apiKey) {
2178
2178
  console.error('\nUsage: npx @cachly-dev/mcp-server@latest init --instance-id <uuid> --api-key <cky_live_...> [--editor claude|cursor|windsurf|copilot|continue] [--project-dir /path] [--api-url https://your-self-hosted-backend]\n');
2179
- console.error('First time? Run the zero-config wizard (signs you in, auto-provisions): npx @cachly-dev/mcp-server@latest setup\n');
2179
+ console.error('First time? Run the zero-config wizard (signs you in, auto-provisions): npx @cachly-dev/mcp-server@latest autopilot\n');
2180
2180
  console.error('Get your credentials from: https://cachly.dev/setup-ai\n');
2181
2181
  process.exit(1);
2182
2182
  }
@@ -2259,7 +2259,7 @@ if (process.argv[2] === 'status') {
2259
2259
  const instanceId = process.env.CACHLY_BRAIN_INSTANCE_ID ?? '';
2260
2260
  if (!apiKey || !instanceId) {
2261
2261
  console.log('\n⚠️ CACHLY_JWT and CACHLY_BRAIN_INSTANCE_ID must be set.');
2262
- console.log(' Run: npx @cachly-dev/mcp-server@latest setup\n');
2262
+ console.log(' Run: npx @cachly-dev/mcp-server@latest autopilot\n');
2263
2263
  process.exit(1);
2264
2264
  }
2265
2265
  try {
@@ -2337,7 +2337,7 @@ if (process.argv[2] === 'health') {
2337
2337
  console.log('🔑 Auth token');
2338
2338
  const jwt = process.env.CACHLY_JWT ?? '';
2339
2339
  if (!jwt) {
2340
- fail('CACHLY_JWT not set — run: npx @cachly-dev/mcp-server@latest setup');
2340
+ fail('CACHLY_JWT not set — run: npx @cachly-dev/mcp-server@latest autopilot');
2341
2341
  }
2342
2342
  else if (jwt.startsWith('cky_')) {
2343
2343
  // Long-lived API key (the credential `setup` provisions). It is not a JWT and
@@ -2486,7 +2486,7 @@ if (process.argv[2] === 'health') {
2486
2486
  }
2487
2487
  }
2488
2488
  if (configsFound === 0) {
2489
- fail('No editor MCP configs found — run: npx @cachly-dev/mcp-server@latest setup');
2489
+ fail('No editor MCP configs found — run: npx @cachly-dev/mcp-server@latest autopilot');
2490
2490
  }
2491
2491
  // ── 5. Git hook ─────────────────────────────────────────────────────────────
2492
2492
  console.log('\n🪝 Git hook (ambient learning)');
@@ -2509,7 +2509,7 @@ if (process.argv[2] === 'health') {
2509
2509
  }
2510
2510
  }
2511
2511
  else {
2512
- warn('.git/hooks/post-commit not found — run: npx @cachly-dev/mcp-server@latest setup');
2512
+ warn('.git/hooks/post-commit not found — run: npx @cachly-dev/mcp-server@latest autopilot');
2513
2513
  }
2514
2514
  // ── 6. Embedding provider (BYOK) ─────────────────────────────────────────────
2515
2515
  console.log('\n🧬 Embedding provider (semantic search)');
@@ -2542,7 +2542,7 @@ if (process.argv[2] === 'health') {
2542
2542
  }
2543
2543
  else {
2544
2544
  console.log(`❌ ${failed} check(s) failed, ${passed} passed\n`);
2545
- console.log(`💡 Fix issues with: npx @cachly-dev/mcp-server@latest setup\n`);
2545
+ console.log(`💡 Fix issues with: npx @cachly-dev/mcp-server@latest autopilot\n`);
2546
2546
  process.exit(1);
2547
2547
  }
2548
2548
  process.exit(0);
@@ -2732,7 +2732,7 @@ if (process.argv[2] === 'setup' || _isAutopilotCli) {
2732
2732
  sendFunnelEvent('device_flow_failed', { reason: 'non_interactive_no_key' });
2733
2733
  console.error('\n ⚠️ This terminal is non-interactive, so the key cannot be pasted here.');
2734
2734
  console.error(' Get your key at the URL above, then set it and re-run setup:\n');
2735
- console.error(' \x1b[1mCACHLY_JWT=cky_live_xxx npx @cachly-dev/mcp-server@latest setup\x1b[0m\n');
2735
+ console.error(' \x1b[1mCACHLY_JWT=cky_live_xxx npx @cachly-dev/mcp-server@latest autopilot\x1b[0m\n');
2736
2736
  console.error(' Or add it to your editor\'s MCP config under env.CACHLY_JWT.\n');
2737
2737
  rl.close();
2738
2738
  process.exit(1);
@@ -3327,9 +3327,9 @@ if (!JWT && !_cliNoAuthCommands.includes(process.argv[2] ?? '')) {
3327
3327
  '║ ║\n' +
3328
3328
  '║ 👉 https://cachly.dev/setup-ai ║\n' +
3329
3329
  '║ ║\n' +
3330
- '║ Then run the interactive setup wizard: ║\n' +
3330
+ '║ Then run the one-command setup wizard: ║\n' +
3331
3331
  '║ ║\n' +
3332
- '║ npx @cachly-dev/mcp-server@latest setup ║\n' +
3332
+ '║ npx @cachly-dev/mcp-server@latest autopilot ║\n' +
3333
3333
  '║ ║\n' +
3334
3334
  '║ Free tier — no credit card required. ║\n' +
3335
3335
  '╚══════════════════════════════════════════════════════════════════╝\n' +
@@ -3343,7 +3343,7 @@ if (!JWT && !_cliNoAuthCommands.includes(process.argv[2] ?? '')) {
3343
3343
  // hint to stderr (shown in the editor's MCP log) and fall through so the
3344
3344
  // server starts and the zero-credential device flow can run on first tool call.
3345
3345
  process.stderr.write('\n🧠 cachly: no CACHLY_JWT set yet — call any cachly tool and a 10-second browser sign-in starts automatically.\n' +
3346
- ' (Or run once: npx @cachly-dev/mcp-server@latest setup)\n\n');
3346
+ ' (Or run once: npx @cachly-dev/mcp-server@latest autopilot)\n\n');
3347
3347
  }
3348
3348
  }
3349
3349
  else {
@@ -3373,7 +3373,7 @@ if (!process.env.CACHLY_NO_UPDATE_CHECK) {
3373
3373
  const latest = data?.version ?? '';
3374
3374
  if (latest && latest !== CURRENT_VERSION) {
3375
3375
  process.stderr.write(`\n⚡ cachly update available: ${CURRENT_VERSION} → ${latest}\n` +
3376
- ` Run: npx @cachly-dev/mcp-server@latest setup\n\n`);
3376
+ ` Run: npx @cachly-dev/mcp-server@latest autopilot\n\n`);
3377
3377
  }
3378
3378
  }
3379
3379
  }