repowisestage 0.0.38 → 0.0.39
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/bin/repowise.js +53 -18
- package/package.json +1 -1
package/dist/bin/repowise.js
CHANGED
|
@@ -7152,7 +7152,7 @@ async function handleInterview(syncId, questionId, questionText, questionContext
|
|
|
7152
7152
|
console.log(chalk3.dim(` ${questionContext}`));
|
|
7153
7153
|
}
|
|
7154
7154
|
console.log(` ${questionText}`);
|
|
7155
|
-
console.log(chalk3.dim(' (Enter to submit \xB7 Enter to skip \xB7 "done" to finish early)'));
|
|
7155
|
+
console.log(chalk3.dim(' (double Enter to submit \xB7 Enter to skip \xB7 "done" to finish early)'));
|
|
7156
7156
|
let answer;
|
|
7157
7157
|
try {
|
|
7158
7158
|
answer = await Promise.race([
|
|
@@ -7245,8 +7245,11 @@ function computeOverallProgress(syncResult) {
|
|
|
7245
7245
|
var ProgressRenderer = class {
|
|
7246
7246
|
privacyShieldShown = false;
|
|
7247
7247
|
discoveryShown = false;
|
|
7248
|
+
interviewCompleteShown = false;
|
|
7248
7249
|
scanHeaderShown = false;
|
|
7249
7250
|
scanSummaryShown = false;
|
|
7251
|
+
graphSubtitleShown = false;
|
|
7252
|
+
graphSummaryShown = false;
|
|
7250
7253
|
generationHeaderShown = false;
|
|
7251
7254
|
coreSubtitleShown = false;
|
|
7252
7255
|
coreCompleteShown = false;
|
|
@@ -7341,17 +7344,29 @@ var ProgressRenderer = class {
|
|
|
7341
7344
|
printNode(child, "", idx === topLevel.length - 1);
|
|
7342
7345
|
});
|
|
7343
7346
|
}
|
|
7347
|
+
/**
|
|
7348
|
+
* Coffee-and-context message shown once, after the user-driven interview
|
|
7349
|
+
* completes. This is the gate between user input and the long
|
|
7350
|
+
* machine-driven scan/generate/validate phases.
|
|
7351
|
+
*/
|
|
7352
|
+
renderInterviewComplete(spinner) {
|
|
7353
|
+
if (this.interviewCompleteShown) return;
|
|
7354
|
+
this.interviewCompleteShown = true;
|
|
7355
|
+
spinner.stop();
|
|
7356
|
+
console.log("");
|
|
7357
|
+
console.log(
|
|
7358
|
+
chalk4.cyan(" \u2615 Sit back and grab a coffee \u2014 we'll handle the rest from here.")
|
|
7359
|
+
);
|
|
7360
|
+
console.log("");
|
|
7361
|
+
spinner.start();
|
|
7362
|
+
}
|
|
7344
7363
|
renderScanProgress(progress, spinner) {
|
|
7345
7364
|
if (!this.scanHeaderShown) {
|
|
7365
|
+
this.renderInterviewComplete(spinner);
|
|
7346
7366
|
this.scanHeaderShown = true;
|
|
7347
7367
|
spinner.stop();
|
|
7348
7368
|
console.log("");
|
|
7349
7369
|
console.log(chalk4.cyan.bold(" \u2500\u2500 Code Analysis \u2500\u2500"));
|
|
7350
|
-
console.log(
|
|
7351
|
-
chalk4.cyan(
|
|
7352
|
-
" \u2615 This takes a few minutes \u2014 grab a coffee, we'll handle the rest!"
|
|
7353
|
-
)
|
|
7354
|
-
);
|
|
7355
7370
|
console.log(chalk4.dim(" Analyzing your codebase structure, functions, and relationships."));
|
|
7356
7371
|
spinner.start();
|
|
7357
7372
|
}
|
|
@@ -7365,6 +7380,25 @@ var ProgressRenderer = class {
|
|
|
7365
7380
|
console.log("");
|
|
7366
7381
|
spinner.start();
|
|
7367
7382
|
}
|
|
7383
|
+
if (progress.summary && !this.graphSubtitleShown) {
|
|
7384
|
+
this.graphSubtitleShown = true;
|
|
7385
|
+
spinner.stop();
|
|
7386
|
+
console.log(
|
|
7387
|
+
chalk4.dim(" Building knowledge graph \u2014 mapping how your code connects\u2026")
|
|
7388
|
+
);
|
|
7389
|
+
spinner.start();
|
|
7390
|
+
}
|
|
7391
|
+
if (progress.summary && !this.graphSummaryShown && typeof progress.summary.graphNodes === "number" && typeof progress.summary.graphEdges === "number") {
|
|
7392
|
+
this.graphSummaryShown = true;
|
|
7393
|
+
const nodes = progress.summary.graphNodes;
|
|
7394
|
+
const edges = progress.summary.graphEdges;
|
|
7395
|
+
spinner.stop();
|
|
7396
|
+
console.log(
|
|
7397
|
+
` ${chalk4.green("\u2713")} Knowledge graph ready: ${nodes} nodes \xB7 ${edges} edges`
|
|
7398
|
+
);
|
|
7399
|
+
console.log("");
|
|
7400
|
+
spinner.start();
|
|
7401
|
+
}
|
|
7368
7402
|
}
|
|
7369
7403
|
renderFileStatuses(fileStatuses, spinner) {
|
|
7370
7404
|
if (!this.generationHeaderShown) {
|
|
@@ -7930,23 +7964,24 @@ Files are stored on our servers (not in git). Retry when online.`
|
|
|
7930
7964
|
}
|
|
7931
7965
|
const elapsed = formatElapsed(Date.now() - startTime);
|
|
7932
7966
|
console.log("");
|
|
7933
|
-
console.log(chalk5.green.bold(
|
|
7934
|
-
console.log(
|
|
7935
|
-
chalk5.green(
|
|
7936
|
-
` Your AI tools now have access to project context for ${chalk5.bold(repoName)}.`
|
|
7937
|
-
)
|
|
7938
|
-
);
|
|
7967
|
+
console.log(chalk5.green.bold(` \u2728 Setup complete \u2014 ${repoName} is ready.`));
|
|
7939
7968
|
if (listenerRunning) {
|
|
7940
7969
|
console.log("");
|
|
7941
|
-
console.log(chalk5.cyan("
|
|
7942
|
-
console.log(
|
|
7943
|
-
|
|
7970
|
+
console.log(chalk5.cyan(" What\u2019s running now"));
|
|
7971
|
+
console.log(
|
|
7972
|
+
` ${chalk5.green("\u2022")} The RepoWise Listener is Live \u2014 context auto-updates on every push.`
|
|
7973
|
+
);
|
|
7974
|
+
console.log(
|
|
7975
|
+
` ${chalk5.green("\u2022")} The RepoWise MCP is Live \u2014 your AI tools can query the knowledge graph directly.`
|
|
7976
|
+
);
|
|
7944
7977
|
}
|
|
7945
7978
|
console.log("");
|
|
7979
|
+
console.log(chalk5.cyan(" Next steps"));
|
|
7946
7980
|
console.log(
|
|
7947
|
-
chalk5.cyan(
|
|
7948
|
-
|
|
7949
|
-
|
|
7981
|
+
` ${chalk5.cyan("\u2022")} Open Claude Code / Cursor and ask: "What does this repo do?"`
|
|
7982
|
+
);
|
|
7983
|
+
console.log(
|
|
7984
|
+
` ${chalk5.cyan("\u2022")} Head to the dashboard \u2192 "Complete Onboarding" to explore quality scores and gaps.`
|
|
7950
7985
|
);
|
|
7951
7986
|
console.log(chalk5.dim(`
|
|
7952
7987
|
Total time: ${elapsed}`));
|