midnight-mcp 0.2.9 → 0.2.11

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.
@@ -631,6 +631,9 @@ function validateNumber(value, options) {
631
631
  return { isValid: true, value: num };
632
632
  }
633
633
 
634
+ // src/utils/health.ts
635
+ import { createRequire } from "module";
636
+
634
637
  // src/pipeline/github.ts
635
638
  import { Octokit } from "octokit";
636
639
  var RETRY_CONFIG = {
@@ -1042,10 +1045,19 @@ function parseCompactFile(path, content) {
1042
1045
  let hasLedger = false;
1043
1046
  let hasCircuits = false;
1044
1047
  let hasWitnesses = false;
1045
- const importRegex = /^include\s+["']([^"']+)["'];?/gm;
1046
- let importMatch;
1047
- while ((importMatch = importRegex.exec(content)) !== null) {
1048
- imports.push(importMatch[1]);
1048
+ const importPatterns = [
1049
+ /^import\s+([A-Za-z_][A-Za-z0-9_]*)\s*;/gm,
1050
+ // import CompactStandardLibrary;
1051
+ /^import\s+["']([^"']+)["']\s*(?:prefix\s+\w+_)?\s*;?/gm,
1052
+ // import "path" prefix X_;
1053
+ /^include\s+["']([^"']+)["'];?/gm
1054
+ // legacy: include "std";
1055
+ ];
1056
+ for (const importRegex of importPatterns) {
1057
+ let importMatch;
1058
+ while ((importMatch = importRegex.exec(content)) !== null) {
1059
+ imports.push(importMatch[1]);
1060
+ }
1049
1061
  }
1050
1062
  const ledgerRegex = /ledger\s*\{([^}]*(?:\{[^}]*\}[^}]*)*)\}/gs;
1051
1063
  let ledgerMatch;
@@ -1584,7 +1596,9 @@ var releaseTracker = new ReleaseTracker();
1584
1596
 
1585
1597
  // src/utils/health.ts
1586
1598
  var startTime = Date.now();
1587
- var VERSION = process.env.npm_package_version || "0.0.3";
1599
+ var require2 = createRequire(import.meta.url);
1600
+ var packageJson = require2("../../package.json");
1601
+ var VERSION = packageJson.version || "0.2.10";
1588
1602
  async function checkGitHubAPI() {
1589
1603
  const start = Date.now();
1590
1604
  try {
@@ -1612,7 +1626,7 @@ async function checkGitHubAPI() {
1612
1626
  }
1613
1627
  async function checkVectorStore() {
1614
1628
  try {
1615
- const { vectorStore: vectorStore2 } = await import("./db-2VUY2I5E.js");
1629
+ const { vectorStore: vectorStore2 } = await import("./db-GPPFF6IJ.js");
1616
1630
  if (vectorStore2) {
1617
1631
  return {
1618
1632
  status: "pass",
@@ -2087,7 +2101,7 @@ function serialize(data) {
2087
2101
  }
2088
2102
 
2089
2103
  // src/utils/version.ts
2090
- var CURRENT_VERSION = "0.2.9";
2104
+ var CURRENT_VERSION = "0.2.11";
2091
2105
 
2092
2106
  // src/db/vectorStore.ts
2093
2107
  var VectorStore = class {
@@ -2296,4 +2310,4 @@ export {
2296
2310
  serialize,
2297
2311
  CURRENT_VERSION
2298
2312
  };
2299
- //# sourceMappingURL=chunk-WZVWUFLH.js.map
2313
+ //# sourceMappingURL=chunk-Q64R3OLA.js.map
@@ -0,0 +1,7 @@
1
+ import {
2
+ vectorStore
3
+ } from "./chunk-Q64R3OLA.js";
4
+ export {
5
+ vectorStore
6
+ };
7
+ //# sourceMappingURL=db-GPPFF6IJ.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-JFPWAWXS.js";
13
13
  import {
14
14
  logger
15
- } from "./chunk-WZVWUFLH.js";
15
+ } from "./chunk-Q64R3OLA.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.11",
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