midnight-mcp 0.2.9 → 0.2.10
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 +18 -11
- package/dist/bin.js +3 -3
- package/dist/{chunk-5PGBYGCG.js → chunk-7KJSVMFI.js} +957 -473
- package/dist/{chunk-WZVWUFLH.js → chunk-C23TNY65.js} +16 -7
- package/dist/db-BCMNMI6F.js +7 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/db-2VUY2I5E.js +0 -7
|
@@ -1042,10 +1042,19 @@ function parseCompactFile(path, content) {
|
|
|
1042
1042
|
let hasLedger = false;
|
|
1043
1043
|
let hasCircuits = false;
|
|
1044
1044
|
let hasWitnesses = false;
|
|
1045
|
-
const
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1045
|
+
const importPatterns = [
|
|
1046
|
+
/^import\s+([A-Za-z_][A-Za-z0-9_]*)\s*;/gm,
|
|
1047
|
+
// import CompactStandardLibrary;
|
|
1048
|
+
/^import\s+["']([^"']+)["']\s*(?:prefix\s+\w+_)?\s*;?/gm,
|
|
1049
|
+
// import "path" prefix X_;
|
|
1050
|
+
/^include\s+["']([^"']+)["'];?/gm
|
|
1051
|
+
// legacy: include "std";
|
|
1052
|
+
];
|
|
1053
|
+
for (const importRegex of importPatterns) {
|
|
1054
|
+
let importMatch;
|
|
1055
|
+
while ((importMatch = importRegex.exec(content)) !== null) {
|
|
1056
|
+
imports.push(importMatch[1]);
|
|
1057
|
+
}
|
|
1049
1058
|
}
|
|
1050
1059
|
const ledgerRegex = /ledger\s*\{([^}]*(?:\{[^}]*\}[^}]*)*)\}/gs;
|
|
1051
1060
|
let ledgerMatch;
|
|
@@ -1612,7 +1621,7 @@ async function checkGitHubAPI() {
|
|
|
1612
1621
|
}
|
|
1613
1622
|
async function checkVectorStore() {
|
|
1614
1623
|
try {
|
|
1615
|
-
const { vectorStore: vectorStore2 } = await import("./db-
|
|
1624
|
+
const { vectorStore: vectorStore2 } = await import("./db-BCMNMI6F.js");
|
|
1616
1625
|
if (vectorStore2) {
|
|
1617
1626
|
return {
|
|
1618
1627
|
status: "pass",
|
|
@@ -2087,7 +2096,7 @@ function serialize(data) {
|
|
|
2087
2096
|
}
|
|
2088
2097
|
|
|
2089
2098
|
// src/utils/version.ts
|
|
2090
|
-
var CURRENT_VERSION = "0.2.
|
|
2099
|
+
var CURRENT_VERSION = "0.2.10";
|
|
2091
2100
|
|
|
2092
2101
|
// src/db/vectorStore.ts
|
|
2093
2102
|
var VectorStore = class {
|
|
@@ -2296,4 +2305,4 @@ export {
|
|
|
2296
2305
|
serialize,
|
|
2297
2306
|
CURRENT_VERSION
|
|
2298
2307
|
};
|
|
2299
|
-
//# sourceMappingURL=chunk-
|
|
2308
|
+
//# sourceMappingURL=chunk-C23TNY65.js.map
|
package/dist/index.js
CHANGED
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
promptDefinitions,
|
|
10
10
|
startHttpServer,
|
|
11
11
|
startServer
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7KJSVMFI.js";
|
|
13
13
|
import {
|
|
14
14
|
logger
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-C23TNY65.js";
|
|
16
16
|
export {
|
|
17
17
|
allResources,
|
|
18
18
|
allTools,
|
package/package.json
CHANGED