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.
@@ -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 importRegex = /^include\s+["']([^"']+)["'];?/gm;
1046
- let importMatch;
1047
- while ((importMatch = importRegex.exec(content)) !== null) {
1048
- imports.push(importMatch[1]);
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-2VUY2I5E.js");
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.9";
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-WZVWUFLH.js.map
2308
+ //# sourceMappingURL=chunk-C23TNY65.js.map
@@ -0,0 +1,7 @@
1
+ import {
2
+ vectorStore
3
+ } from "./chunk-C23TNY65.js";
4
+ export {
5
+ vectorStore
6
+ };
7
+ //# sourceMappingURL=db-BCMNMI6F.js.map
package/dist/index.js CHANGED
@@ -9,10 +9,10 @@ import {
9
9
  promptDefinitions,
10
10
  startHttpServer,
11
11
  startServer
12
- } from "./chunk-5PGBYGCG.js";
12
+ } from "./chunk-7KJSVMFI.js";
13
13
  import {
14
14
  logger
15
- } from "./chunk-WZVWUFLH.js";
15
+ } from "./chunk-C23TNY65.js";
16
16
  export {
17
17
  allResources,
18
18
  allTools,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "midnight-mcp",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "Model Context Protocol Server for Midnight Blockchain Development",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,7 +0,0 @@
1
- import {
2
- vectorStore
3
- } from "./chunk-WZVWUFLH.js";
4
- export {
5
- vectorStore
6
- };
7
- //# sourceMappingURL=db-2VUY2I5E.js.map