@lead-routing/cli 0.6.3 → 0.6.4

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/dist/index.js +18 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1405,6 +1405,24 @@ Files created: docker-compose.yml, Caddyfile, .env.web, .env.engine, lead-routin
1405
1405
  The managed package is already installed \u2014 just click "Connect Salesforce" to authorize.`,
1406
1406
  "Next: Connect Salesforce"
1407
1407
  );
1408
+ let webhookSecret = "";
1409
+ try {
1410
+ const envEngineContent = readFileSync4(join5(dir, ".env.engine"), "utf-8");
1411
+ const match = envEngineContent.match(/^WEBHOOK_SECRET=(.+)$/m);
1412
+ if (match) webhookSecret = match[1].trim();
1413
+ } catch {
1414
+ }
1415
+ if (webhookSecret) {
1416
+ const mcpCmd = `claude mcp add lead-routing \\
1417
+ -e APP_URL=${cfg.appUrl} \\
1418
+ -e ENGINE_URL=${cfg.engineUrl} \\
1419
+ -e WEBHOOK_SECRET=${webhookSecret} \\
1420
+ -- npx -y @lead-routing/mcp`;
1421
+ note3(
1422
+ "Paste this command in your terminal to connect Lead Routing to Claude Code:\n\n" + chalk2.cyan(mcpCmd),
1423
+ "Claude Code MCP"
1424
+ );
1425
+ }
1408
1426
  outro(
1409
1427
  chalk2.green("\u2714 You're live!") + `
1410
1428
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lead-routing/cli",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "Self-hosted deployment CLI for Lead Routing",
5
5
  "homepage": "https://github.com/lead-routing/lead-routing",
6
6
  "keywords": [