@prave/cli 1.0.7 → 1.0.8

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.
@@ -76,6 +76,22 @@ export async function findCommand(query, opts = {}) {
76
76
  }
77
77
  catch (err) {
78
78
  spinner.stop();
79
+ if (err instanceof ApiError && err.status === 402) {
80
+ // Server returned the semantic-search upsell. Render it as a
81
+ // structured upgrade hint instead of a raw error so the message
82
+ // reads like guidance, not a crash.
83
+ log.error(err.message);
84
+ console.log();
85
+ console.log(chalk.dim(' Pro · $12/mo includes:'));
86
+ console.log(chalk.dim(' · `prave search "<natural language>"` ranked by intent'));
87
+ console.log(chalk.dim(' · Skill Intelligence audit + 30-day trigger telemetry'));
88
+ console.log(chalk.dim(' · Cross-machine sync · Tester · Authoring'));
89
+ console.log();
90
+ console.log(` ${chalk.bold('→ Upgrade:')} ${chalk.cyan('https://prave.app/#pricing')}`);
91
+ console.log(chalk.dim(' Or browse the registry without semantic search:'), chalk.cyan('https://prave.app/discover'));
92
+ process.exitCode = 1;
93
+ return;
94
+ }
79
95
  log.error(err instanceof ApiError ? err.message : err.message);
80
96
  process.exitCode = 1;
81
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prave/cli",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Prave CLI — import, export, install, sync Claude Skills.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -16,7 +16,7 @@
16
16
  "open": "^10.1.0",
17
17
  "ora": "^8.0.1",
18
18
  "undici": "^6.18.0",
19
- "@prave/shared": "1.0.7"
19
+ "@prave/shared": "1.0.8"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/node": "^20.12.7",