promptgraph-mcp 2.6.1 → 2.6.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.
@@ -14,7 +14,7 @@ export default async function handler(args, bin) {
14
14
  try {
15
15
  latest = await new Promise((res, rej) => {
16
16
  const r = https.get('https://registry.npmjs.org/promptgraph-mcp/latest',
17
- { headers: { Accept: 'application/json' }, timeout: 8000 },
17
+ { headers: { Accept: 'application/json' }, timeout: 8000, family: 4 },
18
18
  (resp) => {
19
19
  let d = ''; resp.setEncoding('utf8');
20
20
  resp.on('data', c => d += c);
package/index.js CHANGED
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env node
2
+ import dns from 'dns';
3
+ dns.setDefaultResultOrder('ipv4first');
2
4
  // Only lightweight imports at top. Heavy modules (fastembed/ONNX, vectra,
3
5
  // better-sqlite3) are dynamically imported inside the command that needs them,
4
6
  // so fast CLI commands (help, marketplace) start instantly.
@@ -87,7 +89,7 @@ const COMMAND_MAP = {
87
89
 
88
90
  if (COMMAND_MAP[args[0]]) {
89
91
  const mod = await import(COMMAND_MAP[args[0]])
90
- await mod.handler(args, bin)
92
+ await mod.default(args, bin)
91
93
  // handler calls process.exit() internally
92
94
  }
93
95
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promptgraph-mcp",
3
- "version": "2.6.1",
3
+ "version": "2.6.3",
4
4
  "files": [
5
5
  "*.js",
6
6
  "commands/",