vaspera-pm 2.10.3 → 2.11.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.
package/README.md CHANGED
@@ -50,37 +50,42 @@ All 18 core tools now at **5-star quality** with:
50
50
 
51
51
  ---
52
52
 
53
- ## Quick Start (Zero Friction)
53
+ ## Quick Start
54
54
 
55
- ### Option 1: Use npx (Recommended - No Install)
55
+ ### Option 1: VasperaPM Cloud (Recommended)
56
56
 
57
57
  ```bash
58
- # One command - that's it!
59
- npx vaspera-pm analyze .
58
+ # Connect to VasperaPM (opens browser for login)
59
+ npx vaspera-pm connect
60
60
 
61
- # Or with your Anthropic API key
62
- ANTHROPIC_API_KEY=sk-ant-xxx npx vaspera-pm analyze .
61
+ # This automatically:
62
+ # - Authenticates you via browser
63
+ # - Creates .mcp.json for Claude Code
64
+ # - Configures your API key
65
+
66
+ # Then reload VS Code (Cmd+Shift+P → "Developer: Reload Window")
67
+ # Ask Claude: "Use vaspera-pm to analyze this codebase"
63
68
  ```
64
69
 
65
- ### Option 2: Global Install
70
+ ### Option 2: Use Your Own Anthropic Key
66
71
 
67
72
  ```bash
68
- # Install once
69
- npm install -g vaspera-pm
73
+ # Set your Anthropic API key
74
+ export ANTHROPIC_API_KEY=sk-ant-xxx
75
+
76
+ # Run analysis directly
77
+ npx vaspera-pm analyze .
70
78
 
71
- # Use anywhere
72
- vaspera-pm analyze .
79
+ # Or set up for Claude Code
80
+ npx vaspera-pm install
73
81
  ```
74
82
 
75
- ### Option 3: Claude Code Integration
83
+ ### Option 3: CLI Only (No Claude Code)
76
84
 
77
85
  ```bash
78
- # Set up MCP server for Claude Code
79
- npx vaspera-pm install
80
-
81
- # Restart VSCode/Claude Code, then try:
82
- # "Generate a PRD for a user authentication system"
83
- # "Analyze this codebase and create a PRD"
86
+ # Run any command directly with your key
87
+ ANTHROPIC_API_KEY=sk-ant-xxx npx vaspera-pm analyze .
88
+ ANTHROPIC_API_KEY=sk-ant-xxx npx vaspera-pm verify .
84
89
  ```
85
90
 
86
91
  ---
@@ -243,9 +248,11 @@ Features:
243
248
 
244
249
  VasperaPM uses sensible defaults - no configuration required.
245
250
 
246
- Optional configuration locations:
247
- - `~/.vasperapm/config.json` - Your settings and cloud API key
248
- - `~/.claude/claude_desktop_config.json` - Claude Code MCP integration
251
+ Configuration locations:
252
+ - `.mcp.json` - **Project-level** MCP config (Claude Code reads this)
253
+ - `.vaspera/config.json` - Project credentials (created by `connect`)
254
+ - `~/.vasperapm/config.json` - Global settings
255
+ - `VASPERA_API_KEY` - Environment variable for cloud mode
249
256
  - `ANTHROPIC_API_KEY` - Environment variable for local mode
250
257
 
251
258
  ---
package/dist/cli.js CHANGED
@@ -94,7 +94,8 @@ var init_dist = __esm({
94
94
  "track_estimates",
95
95
  "get_audit_trail",
96
96
  "run_benchmark",
97
- "estimate_migration"
97
+ "estimate_migration",
98
+ "detect_contradictions"
98
99
  ]
99
100
  };
100
101
  TRIAL_CALL_LIMIT = 10;
@@ -31715,7 +31716,7 @@ var BANNER = `
31715
31716
  \u2551 \u2551
31716
31717
  \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D\x1B[0m
31717
31718
  `;
31718
- var VERSION7 = true ? "2.10.3" : "2.3.1";
31719
+ var VERSION7 = true ? "2.11.0" : "2.3.1";
31719
31720
  var HELP = `
31720
31721
  \x1B[1mUsage:\x1B[0m vaspera-pm <command> [path] [options]
31721
31722
 
@@ -32262,13 +32263,27 @@ async function connect() {
32262
32263
  if (claudeMdResult.updated) {
32263
32264
  success(`${claudeMdResult.action} ${claudeMdResult.file} with VasperaPM context`);
32264
32265
  }
32266
+ console.log("\n\x1B[1m6. Configuring Claude Code MCP...\x1B[0m");
32267
+ const mcpConfigPath = join23(process.cwd(), ".mcp.json");
32268
+ const mcpResult = mergeMcpConfig(mcpConfigPath, apiKey, "");
32269
+ if (mcpResult.success) {
32270
+ if (mcpResult.action === "unchanged") {
32271
+ info("MCP config already up to date");
32272
+ } else {
32273
+ success(`${mcpResult.action === "created" ? "Created" : "Updated"} .mcp.json with vaspera-pm`);
32274
+ }
32275
+ } else {
32276
+ warn(`Could not update .mcp.json: ${mcpResult.message}`);
32277
+ }
32265
32278
  console.log("\n");
32266
32279
  success("Project connected successfully!");
32267
- console.log("\n\x1B[1mConfiguration saved to:\x1B[0m .vaspera/config.json");
32280
+ console.log("\n\x1B[1mConfiguration saved to:\x1B[0m");
32281
+ console.log(" \u2022 .vaspera/config.json (project credentials)");
32282
+ console.log(" \u2022 .mcp.json (Claude Code MCP server config)");
32268
32283
  console.log("\n\x1B[1mNext steps:\x1B[0m");
32269
- console.log(" 1. Run analysis: \x1B[36mvaspera-pm analyze .\x1B[0m");
32270
- console.log(" 2. Check status: \x1B[36mvaspera-pm status\x1B[0m");
32271
- console.log(" 3. Configure integrations: \x1B[36mhttps://vasperapm.com/dashboard/integrations\x1B[0m\n");
32284
+ console.log(' 1. \x1B[33mReload VS Code\x1B[0m (Cmd+Shift+P \u2192 "Developer: Reload Window")');
32285
+ console.log(' 2. Ask Claude: "Use vaspera-pm to analyze this codebase"');
32286
+ console.log(" 3. Or run directly: \x1B[36mnpx vaspera-pm analyze .\x1B[0m\n");
32272
32287
  }
32273
32288
  async function status() {
32274
32289
  console.log(BANNER);