progmune-runtime 3.3.2 → 3.3.3

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.
@@ -10,9 +10,13 @@ import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextpro
10
10
  import * as fs from "fs";
11
11
  import * as path from "path";
12
12
  import { fileURLToPath } from "url";
13
+ import { createRequire } from "module";
13
14
  import { createLogger } from "./logger.js";
14
- // ── ESM-compatible __dirname (the compiled output is an .mjs module) ──
15
+ // ── ESM-compatible __dirname + require (the compiled output is an .mjs
16
+ // module, but the codebase uses lazy require() for circular-dependency
17
+ // handling — createRequire keeps those working in ESM scope) ──
15
18
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
19
+ const require = createRequire(import.meta.url);
16
20
  // ── Load .env(包目录 + 项目目录,后者优先) ──
17
21
  for (const envPath of [
18
22
  path.resolve(process.env.PROGMUNE_PROJECT_DIR || process.cwd(), ".env"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "progmune-runtime",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "Progmune — AI Trust Decision Engine. Verify AI-generated code before it reaches production. Outputs APPROVED / NEEDS_REVIEW / BLOCKED with evidence.",
5
5
  "files": [
6
6
  "dist/",