@tikoci/rosetta 0.5.2 → 0.6.1
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/README.md +9 -1
- package/package.json +1 -1
- package/src/browse.ts +90 -0
- package/src/db.ts +130 -7
- package/src/extract-commands.ts +55 -10
- package/src/extract-dude.ts +409 -0
- package/src/mcp-http.test.ts +7 -5
- package/src/mcp.ts +287 -2
- package/src/paths.ts +1 -1
- package/src/query.test.ts +124 -6
- package/src/query.ts +93 -2
- package/src/release.test.ts +32 -0
- package/src/setup.ts +2 -2
package/src/setup.ts
CHANGED
|
@@ -72,7 +72,7 @@ export async function runSetup(force = false) {
|
|
|
72
72
|
const needsDownload = force || !dbHasData(dbPath);
|
|
73
73
|
if (!needsDownload) {
|
|
74
74
|
console.log(`Database already exists: ${dbPath}`);
|
|
75
|
-
console.log(` (use --setup --force to re-download)`);
|
|
75
|
+
console.log(` (use --refresh or --setup --force to re-download)`);
|
|
76
76
|
} else {
|
|
77
77
|
await downloadDb(dbPath);
|
|
78
78
|
}
|
|
@@ -94,7 +94,7 @@ export async function runSetup(force = false) {
|
|
|
94
94
|
} catch (e) {
|
|
95
95
|
console.error(`✗ Database validation failed: ${e}`);
|
|
96
96
|
const retryCmd = mode === "compiled" ? "rosetta" : mode === "package" ? "bunx @tikoci/rosetta" : "bun run src/setup.ts";
|
|
97
|
-
console.error(` Try re-downloading with: ${retryCmd} --
|
|
97
|
+
console.error(` Try re-downloading with: ${retryCmd} --refresh`);
|
|
98
98
|
process.exit(1);
|
|
99
99
|
}
|
|
100
100
|
|