total-recall-brain 3.12.0 → 3.12.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/package.json +1 -1
- package/src/cli/init.mjs +6 -6
package/package.json
CHANGED
package/src/cli/init.mjs
CHANGED
|
@@ -395,14 +395,14 @@ export default async function init(args) {
|
|
|
395
395
|
const runOpenwiki = (await ask('\n [3.8] Would you like to initialize OpenWiki for auto-documentation? (y/N): ')).trim().toLowerCase();
|
|
396
396
|
if (runOpenwiki === 'y' || runOpenwiki === 'yes') {
|
|
397
397
|
console.error('\n Starting OpenWiki interactive setup...');
|
|
398
|
-
spawnSync('npx', ['openwiki', '--init'], { stdio: 'inherit', cwd: process.cwd() });
|
|
398
|
+
spawnSync('npx', ['-y', 'openwiki', '--init'], { stdio: 'inherit', cwd: process.cwd() });
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
const runOkf = (await ask('\n [3.9] Would you like to import an existing OKF knowledge bundle? (y/N): ')).trim().toLowerCase();
|
|
402
402
|
if (runOkf === 'y' || runOkf === 'yes') {
|
|
403
403
|
const bundlePath = (await ask(' Enter path to OKF bundle: ')).trim();
|
|
404
404
|
if (bundlePath) {
|
|
405
|
-
spawnSync('npx', ['total-recall', 'ingest', 'okf', bundlePath], { stdio: 'inherit', cwd: process.cwd() });
|
|
405
|
+
spawnSync('npx', ['-y', 'total-recall', 'ingest', 'okf', bundlePath], { stdio: 'inherit', cwd: process.cwd() });
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
|
|
@@ -477,18 +477,18 @@ export default async function init(args) {
|
|
|
477
477
|
if (domain) {
|
|
478
478
|
current['cfg-domain'] = domain;
|
|
479
479
|
current['cfg-api-url'] = `https://${domain}`;
|
|
480
|
-
current['cfg-dash-url'] = `https://${domain}
|
|
480
|
+
current['cfg-dash-url'] = `https://${domain}/`;
|
|
481
481
|
current['cfg-health-url'] = `https://${domain}/health`;
|
|
482
482
|
}
|
|
483
483
|
} else if (deployMode === 'custom-domain') {
|
|
484
484
|
current['cfg-domain'] = domain;
|
|
485
485
|
current['cfg-api-url'] = `https://${domain}`;
|
|
486
|
-
current['cfg-dash-url'] = `https://${domain}
|
|
486
|
+
current['cfg-dash-url'] = `https://${domain}/`;
|
|
487
487
|
current['cfg-health-url'] = `https://${domain}/health`;
|
|
488
488
|
} else if (deployMode === 'local') {
|
|
489
489
|
current['cfg-domain'] = 'localhost';
|
|
490
490
|
current['cfg-api-url'] = 'http://localhost:3000';
|
|
491
|
-
current['cfg-dash-url'] = 'http://localhost:3000/
|
|
491
|
+
current['cfg-dash-url'] = 'http://localhost:3000/';
|
|
492
492
|
current['cfg-health-url'] = 'http://localhost:3000/health';
|
|
493
493
|
}
|
|
494
494
|
|
|
@@ -704,7 +704,7 @@ export default async function init(args) {
|
|
|
704
704
|
}
|
|
705
705
|
current['cfg-domain'] = tunnelUrl.replace('https://', '');
|
|
706
706
|
current['cfg-api-url'] = tunnelUrl;
|
|
707
|
-
current['cfg-dash-url'] = `${tunnelUrl}
|
|
707
|
+
current['cfg-dash-url'] = `${tunnelUrl}/`;
|
|
708
708
|
current['cfg-health-url'] = `${tunnelUrl}/health`;
|
|
709
709
|
|
|
710
710
|
fs.writeFileSync(configFile, JSON.stringify(current, null, 2), { encoding: 'utf8', mode: 0o600 });
|