@gurulu/cli 0.2.1 → 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.
@@ -537,6 +537,26 @@ async function runInstallFlow(args, deps, scriptsDir) {
537
537
  log(deps, 'info', ` Run ${(0, ui_1.cyan)('gurulu events tail')} to watch live events`);
538
538
  log(deps, 'info', ` Visit ${(0, ui_1.cyan)('https://gurulu.io/dashboard')} to view analytics`);
539
539
  console.log('');
540
+ // AI assistant integration prompt
541
+ const siteId = args.siteId || args.site || '';
542
+ console.log((0, ui_1.dim)(' ─────────────────────────────────────────────────'));
543
+ console.log('');
544
+ log(deps, 'info', `${(0, ui_1.cyan)('AI Assistant Integration')} (Claude Code / Cursor / Codex)`);
545
+ console.log('');
546
+ log(deps, 'info', ` ${(0, ui_1.dim)('MCP Server (real-time analytics in your editor):')}`);
547
+ log(deps, 'info', ` ${(0, ui_1.cyan)('npx @gurulu/mcp-server')} with env GURULU_API_KEY`);
548
+ console.log('');
549
+ log(deps, 'info', ` ${(0, ui_1.dim)('Or paste this prompt into your AI assistant:')}`);
550
+ console.log('');
551
+ console.log((0, ui_1.dim)(' ┌─────────────────────────────────────────────'));
552
+ console.log((0, ui_1.dim)(' │ ') + 'I have Gurulu analytics installed. Site ID: ' + (0, ui_1.cyan)(siteId));
553
+ console.log((0, ui_1.dim)(' │ ') + 'Analyze my codebase and add gurulu.track() calls to');
554
+ console.log((0, ui_1.dim)(' │ ') + 'important user actions: signups, purchases, form submits,');
555
+ console.log((0, ui_1.dim)(' │ ') + 'button clicks, and key conversions. Use the Gurulu MCP');
556
+ console.log((0, ui_1.dim)(' │ ') + 'server (@gurulu/mcp-server) for live event verification.');
557
+ console.log((0, ui_1.dim)(' │ ') + 'Docs: https://gurulu.io/docs/quick-start');
558
+ console.log((0, ui_1.dim)(' └─────────────────────────────────────────────'));
559
+ console.log('');
540
560
  }
541
561
  return summary;
542
562
  }
@@ -653,6 +673,7 @@ async function runAuthenticatedInstallFlow(args, authDeps, installDeps, scriptsD
653
673
  installDeps.log?.warn(`Intent analyzer failed: ${err.message}`);
654
674
  installDeps.log?.warn('⚠ Falling back to built-in generic event set.');
655
675
  intentRecord.error = `analyze_failed:${err.message}`;
676
+ intentRecord.analyzed = true; // Mark as analyzed so auto-instrument proceeds
656
677
  // Client-side fallback: produce a minimal generic intent so
657
678
  // auto-instrument and pre-seed still work even when the API is down.
658
679
  intent = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gurulu/cli",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Gurulu.io CLI — setup analytics in seconds",
5
5
  "bin": {
6
6
  "gurulu": "bin/gurulu.js"