@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/CHANGELOG.md +5 -0
- package/dist/index.js +385 -375
- package/package.json +1 -1
- package/scripts/postinstall.js +7 -12
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -31,16 +31,8 @@ function print(msg) {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
print('');
|
|
34
|
-
print('
|
|
35
|
-
print('
|
|
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 →
|
|
127
|
-
|
|
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('');
|