@holdyourvoice/hyv 2.8.3 → 2.8.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@holdyourvoice/hyv",
3
- "version": "2.8.3",
3
+ "version": "2.8.5",
4
4
  "description": "Free local AI writing scan for cursor & claude. MCP server, 220+ pattern detection, voice profiles. npx @holdyourvoice/hyv welcome",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -31,16 +31,8 @@ function print(msg) {
31
31
  }
32
32
 
33
33
  print('');
34
- print(' make your ai agent sound exactly like you!');
35
- print(' Free local scan engine ready (works offline)');
36
- print('');
37
- print(' Free local — no account, works offline:');
38
- print(' npx @holdyourvoice/hyv scan your-draft.md');
39
- print(' npx @holdyourvoice/hyv welcome');
40
- print(' hyv fix | hyv check | hyv mcp');
41
- print('');
42
- print(' 30+ free web tools: https://holdyourvoice.com/tools');
43
- print(' Profiles + learning (paid): hyv init | hyv plan --free');
34
+ print(' hold your voice installed free local scan ready');
35
+ print(' next: hyv scan draft.md | hyv init | hyv mcp --setup');
44
36
  print('');
45
37
 
46
38
  const configured = [];
@@ -123,8 +115,11 @@ if (configured.length > 0) {
123
115
  print('');
124
116
  }
125
117
 
126
- // First install → run onboarding immediately (no y/N prompt)
127
- if (!quiet && !hasCompletedOnboarding(hyvDir)) {
118
+ // First install → onboarding during install when npm shows script output; else first `hyv` runs it
119
+ const canShowOnboarding =
120
+ process.stdout.isTTY || process.env.npm_config_foreground_scripts === 'true';
121
+
122
+ if (!quiet && !hasCompletedOnboarding(hyvDir) && canShowOnboarding) {
128
123
  print('');
129
124
  print(' starting onboarding...');
130
125
  print('');