@c4t4/heyamigo 0.1.0 → 0.1.2
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/dist/cli/service.js +2 -2
- package/dist/cli/setup.js +3 -4
- package/package.json +1 -1
package/dist/cli/service.js
CHANGED
|
@@ -50,7 +50,7 @@ export async function serviceCmd(action) {
|
|
|
50
50
|
if (child.pid) {
|
|
51
51
|
writeFileSync(PID_FILE, String(child.pid));
|
|
52
52
|
console.log(`Started (PID: ${child.pid})`);
|
|
53
|
-
console.log(`Logs: heyamigo logs`);
|
|
53
|
+
console.log(`Logs: npx @c4t4/heyamigo logs`);
|
|
54
54
|
}
|
|
55
55
|
else {
|
|
56
56
|
console.error('Failed to start');
|
|
@@ -82,7 +82,7 @@ export async function serviceCmd(action) {
|
|
|
82
82
|
}
|
|
83
83
|
case 'logs': {
|
|
84
84
|
if (!existsSync(LOG_FILE)) {
|
|
85
|
-
console.log('No logs yet. Start the bot first: heyamigo start');
|
|
85
|
+
console.log('No logs yet. Start the bot first: npx @c4t4/heyamigo start');
|
|
86
86
|
return;
|
|
87
87
|
}
|
|
88
88
|
spawnSync('tail', ['-f', '-n', '50', LOG_FILE], {
|
package/dist/cli/setup.js
CHANGED
|
@@ -45,7 +45,7 @@ function scaffoldProject(targetDir, pkgDir) {
|
|
|
45
45
|
private: true,
|
|
46
46
|
type: 'module',
|
|
47
47
|
dependencies: {
|
|
48
|
-
heyamigo: '*',
|
|
48
|
+
'@c4t4/heyamigo': '*',
|
|
49
49
|
},
|
|
50
50
|
};
|
|
51
51
|
writeFileSync(resolve(targetDir, 'package.json'), JSON.stringify(projectPkg, null, 2) + '\n');
|
|
@@ -393,8 +393,7 @@ export async function runSetup() {
|
|
|
393
393
|
validate: (v) => {
|
|
394
394
|
if (!v || !v.trim())
|
|
395
395
|
return 'Required';
|
|
396
|
-
|
|
397
|
-
if (!ex(v.trim()))
|
|
396
|
+
if (!existsSync(v.trim()))
|
|
398
397
|
return 'Folder not found';
|
|
399
398
|
return undefined;
|
|
400
399
|
},
|
|
@@ -562,7 +561,7 @@ export async function runSetup() {
|
|
|
562
561
|
}
|
|
563
562
|
}
|
|
564
563
|
else {
|
|
565
|
-
p.log.info('Skipped. Pair later: heyamigo
|
|
564
|
+
p.log.info('Skipped. Pair later: npx @c4t4/heyamigo setup');
|
|
566
565
|
}
|
|
567
566
|
}
|
|
568
567
|
// ── Name your amigo ───────────────────────────────────────────
|