repowise 0.1.74 → 0.1.76
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 +10 -7
- package/package.json +1 -1
package/dist/bin/repowise.js
CHANGED
|
@@ -1719,9 +1719,9 @@ function generateReference(tool, repoName, contextFolder, contextFiles) {
|
|
|
1719
1719
|
`## Project Context \u2014 ${safeName}`,
|
|
1720
1720
|
"",
|
|
1721
1721
|
`This repository has AI-optimized context files generated by RepoWise.`,
|
|
1722
|
-
|
|
1722
|
+
`**IMPORTANT: Before answering questions about the codebase or making any changes, ALWAYS check the \`${contextFolder}/\` folder first.** These files contain pre-analyzed architecture, patterns, API contracts, and domain knowledge that will answer most questions without needing to search the codebase.`,
|
|
1723
1723
|
"",
|
|
1724
|
-
`**Start here:** \`${contextFolder}/project-overview.md\` \u2014 the routing document that
|
|
1724
|
+
`**Start here:** \`${contextFolder}/project-overview.md\` \u2014 the routing document that maps every context file to its domain. Read it first to find which context file has the answer you need.`,
|
|
1725
1725
|
""
|
|
1726
1726
|
];
|
|
1727
1727
|
if (hasFiles) {
|
|
@@ -1741,11 +1741,14 @@ function generateReference(tool, repoName, contextFolder, contextFiles) {
|
|
|
1741
1741
|
`# Project Context \u2014 ${safeName}`,
|
|
1742
1742
|
"#",
|
|
1743
1743
|
`# This repository has AI-optimized context files generated by RepoWise.`,
|
|
1744
|
-
`# Before
|
|
1745
|
-
`#
|
|
1744
|
+
`# IMPORTANT: Before answering questions about the codebase or making any changes,`,
|
|
1745
|
+
`# ALWAYS check the ${contextFolder}/ folder first. These files contain pre-analyzed`,
|
|
1746
|
+
`# architecture, patterns, API contracts, and domain knowledge that will answer`,
|
|
1747
|
+
`# most questions without needing to search the codebase.`,
|
|
1746
1748
|
"#",
|
|
1747
1749
|
`# Start here: ${contextFolder}/project-overview.md`,
|
|
1748
|
-
`# The routing document that
|
|
1750
|
+
`# The routing document that maps every context file to its domain.`,
|
|
1751
|
+
`# Read it first to find which context file has the answer you need.`
|
|
1749
1752
|
];
|
|
1750
1753
|
if (hasFiles) {
|
|
1751
1754
|
lines.push(
|
|
@@ -2294,7 +2297,7 @@ function formatElapsed(ms) {
|
|
|
2294
2297
|
return seconds > 0 ? `${minutes}m ${seconds}s` : `${minutes}m`;
|
|
2295
2298
|
}
|
|
2296
2299
|
var POLL_INTERVAL_MS = 3e3;
|
|
2297
|
-
var MAX_POLL_ATTEMPTS =
|
|
2300
|
+
var MAX_POLL_ATTEMPTS = 7200;
|
|
2298
2301
|
var DEFAULT_CONTEXT_FOLDER = "repowise-context";
|
|
2299
2302
|
async function create() {
|
|
2300
2303
|
const startTime = Date.now();
|
|
@@ -2772,7 +2775,7 @@ import { join as join15 } from "path";
|
|
|
2772
2775
|
import chalk8 from "chalk";
|
|
2773
2776
|
import ora3 from "ora";
|
|
2774
2777
|
var POLL_INTERVAL_MS2 = 3e3;
|
|
2775
|
-
var MAX_POLL_ATTEMPTS2 =
|
|
2778
|
+
var MAX_POLL_ATTEMPTS2 = 7200;
|
|
2776
2779
|
var DEFAULT_CONTEXT_FOLDER2 = "repowise-context";
|
|
2777
2780
|
function detectRepoRoot2() {
|
|
2778
2781
|
return execSync2("git rev-parse --show-toplevel", { encoding: "utf-8" }).trim();
|