repowise 0.1.13 → 0.1.15

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.
@@ -608,10 +608,11 @@ async function handleInterview(syncId, questionId, questionText, questionContext
608
608
  console.log("");
609
609
  console.log(chalk2.cyan.bold(" \u2500\u2500 Interview \u2500\u2500"));
610
610
  console.log(chalk2.dim(" Help us understand your project better. Answer a few short"));
611
- console.log(chalk2.dim(` questions so we can generate more relevant context files (up to ${MAX_QUESTIONS}).`));
612
- console.log("");
613
- console.log(chalk2.dim(' Press Enter or type "skip" to skip a question.'));
614
- console.log(chalk2.dim(' Type "done" to finish the interview early.'));
611
+ console.log(
612
+ chalk2.dim(
613
+ ` questions so we can generate more relevant context files (up to ${MAX_QUESTIONS}).`
614
+ )
615
+ );
615
616
  }
616
617
  const total = Math.min(estimatedQuestions ?? MAX_QUESTIONS, MAX_QUESTIONS);
617
618
  console.log("");
@@ -620,6 +621,7 @@ async function handleInterview(syncId, questionId, questionText, questionContext
620
621
  console.log(chalk2.dim(` ${questionContext}`));
621
622
  }
622
623
  console.log(` ${questionText}`);
624
+ console.log(chalk2.dim(' (Enter to skip \xB7 "done" to finish early)'));
623
625
  let answer;
624
626
  try {
625
627
  answer = await Promise.race([
@@ -860,7 +862,7 @@ var init_progress_renderer = __esm({
860
862
  if (syncResult.discoveryResult) {
861
863
  this.renderDiscovery(syncResult.discoveryResult, spinner);
862
864
  }
863
- if (syncResult.scanProgress?.summary) {
865
+ if (syncResult.scanProgress?.summary && syncResult.scanProgress.summary.totalFiles > 0) {
864
866
  this.renderScanSummary(syncResult.scanProgress.summary, spinner);
865
867
  }
866
868
  if (syncResult.validationProgress) {
@@ -1476,6 +1478,12 @@ You may need to run \`git pull\` manually.`
1476
1478
  console.log(chalk4.cyan(" your context will stay in sync automatically."));
1477
1479
  console.log(chalk4.cyan(" Go back to coding, we've got it from here!"));
1478
1480
  }
1481
+ console.log("");
1482
+ console.log(
1483
+ chalk4.cyan(
1484
+ ' Head back to the dashboard and click "Complete Onboarding" to explore your RepoWise dashboard!'
1485
+ )
1486
+ );
1479
1487
  console.log(chalk4.dim(`
1480
1488
  Total time: ${elapsed}`));
1481
1489
  } catch (err) {
package/package.json CHANGED
@@ -1,20 +1,22 @@
1
1
  {
2
2
  "name": "repowise",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "type": "module",
5
5
  "description": "AI-optimized codebase context generator",
6
6
  "bin": {
7
7
  "repowise": "dist/bin/repowise.js"
8
8
  },
9
9
  "files": [
10
- "dist"
10
+ "dist",
11
+ "scripts/postinstall.js"
11
12
  ],
12
13
  "scripts": {
13
14
  "build": "tsc",
14
15
  "build:bundle": "tsup",
15
16
  "lint": "eslint src/ bin/",
16
17
  "test": "vitest run",
17
- "type-check": "tsc --noEmit"
18
+ "type-check": "tsc --noEmit",
19
+ "postinstall": "node scripts/postinstall.js"
18
20
  },
19
21
  "dependencies": {
20
22
  "chalk": "^5.4.0",
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env node
2
+
3
+ // Lightweight postinstall banner — no dependencies, plain ANSI codes
4
+ const version = process.env.npm_package_version || '';
5
+
6
+ const cyan = (s) => `\x1b[36m${s}\x1b[0m`;
7
+ const bold = (s) => `\x1b[1m${s}\x1b[0m`;
8
+ const dim = (s) => `\x1b[2m${s}\x1b[0m`;
9
+ const green = (s) => `\x1b[32m${s}\x1b[0m`;
10
+
11
+ const v = version ? ` v${version}` : '';
12
+
13
+ try {
14
+ console.log('');
15
+ console.log(cyan(' ╭─────────────────────────────────────────╮'));
16
+ console.log(cyan(' │ │'));
17
+ console.log(cyan(' │ ') + bold(`RepoWise${v} installed`) + green(' ✓') + cyan(' │'));
18
+ console.log(cyan(' │ │'));
19
+ console.log(cyan(' │ ') + dim('Get started:') + cyan(' │'));
20
+ console.log(cyan(' │ $ ') + bold('repowise create') + cyan(' │'));
21
+ console.log(cyan(' │ │'));
22
+ console.log(cyan(' │ ') + dim('Thank you for using RepoWise!') + cyan(' │'));
23
+ console.log(cyan(' │ ') + dim('https://repowise.ai') + cyan(' │'));
24
+ console.log(cyan(' │ │'));
25
+ console.log(cyan(' ╰─────────────────────────────────────────╯'));
26
+ console.log('');
27
+ } catch {
28
+ // Never fail installation on a cosmetic banner
29
+ }