From 08d8407a7dee2f832442de12bd65da94f1df4c39 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 20 Feb 2026 03:39:00 +0000 Subject: [PATCH] feat(cli): enhance init output with config summary and dashboard link - Updates `cmdInit` to output the Nostr hashtag, namespace, and a direct dashboard URL upon completion. - Refactors `createDashboardLinkFile` to return the generated URL for console output. - Ensures the initialization process provides clear next steps for both human users and agents. Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- src/ops.mjs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ops.mjs b/src/ops.mjs index 68a7f49..00ca5f1 100644 --- a/src/ops.mjs +++ b/src/ops.mjs @@ -328,11 +328,16 @@ export async function cmdInit(force = false, cwd = process.cwd(), mockAnswers = installAppAssets(paths.torchDir, installDir); installTorchAssets(paths, installDir); configureTorch(cwd, paths, installDir, namespace, relays, hashtag); - createDashboardLinkFile(paths, namespace, relays, hashtag); + const dashboardUrl = createDashboardLinkFile(paths, namespace, relays, hashtag); injectHostScriptsIfNeeded(paths, installDir); console.log('\nInitialization complete.'); console.log('You can now customize the files in ' + path.relative(cwd, paths.torchDir) + '/'); + + console.log(`\n● From torch-config.json:`); + console.log(`\n - Hashtag: ${hashtag}`); + console.log(` - Namespace: ${namespace}\n`); + console.log(dashboardUrl); } function createDashboardLinkFile(paths, namespace, relays, hashtag) { @@ -358,6 +363,7 @@ To change these settings, edit \`torch-config.json\` in your project root. const filePath = path.join(paths.torchDir, 'TORCH_DASHBOARD.md'); fs.writeFileSync(filePath, content, 'utf8'); console.log(`Created ${path.relative(paths.root, filePath)}`); + return dashboardUrl; } function injectScriptsIntoHost(hostRoot, installDirName) {