promptgraph-mcp 2.3.0 → 2.3.2

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/github-import.js CHANGED
@@ -62,8 +62,8 @@ function sparseClone(url, dest, subdir) {
62
62
  git(['sparse-checkout', 'init', '--cone'], dest, 'pipe');
63
63
  git(['sparse-checkout', 'set', subdir], dest, 'pipe');
64
64
 
65
- // 3. fetch + checkout (depth=1)
66
- const fetch = git(['fetch', '--depth=1', 'origin'], dest);
65
+ // 3. fetch + checkout (depth=1, skip large blobs)
66
+ const fetch = git(['fetch', '--depth=1', '--filter=blob:none', 'origin'], dest);
67
67
  if (fetch.status !== 0) return false;
68
68
 
69
69
  // Try HEAD, then main, then master
@@ -90,16 +90,17 @@ function sparseUpdate(dest, subdir) {
90
90
  }
91
91
 
92
92
  // Fallback: full clone (when no subdir found)
93
+ // --filter=blob:none skips large binaries (images, zips) — only fetches text files
93
94
  function fullClone(url, dest) {
94
95
  if (fs.existsSync(dest)) {
95
- const fetch = git(['fetch', '--depth=1', 'origin'], dest);
96
+ const fetch = git(['fetch', '--depth=1', '--filter=blob:none', 'origin'], dest);
96
97
  if (fetch.status !== 0) return false;
97
98
  for (const ref of ['origin/HEAD', 'origin/main', 'origin/master']) {
98
99
  if (git(['reset', '--hard', ref], dest, 'pipe').status === 0) return true;
99
100
  }
100
101
  return false;
101
102
  }
102
- return git(['clone', '--depth=1', url, dest]).status === 0;
103
+ return git(['clone', '--depth=1', '--filter=blob:none', url, dest]).status === 0;
103
104
  }
104
105
 
105
106
  // After clone: detect actual skills dir on disk
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promptgraph-mcp",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "bin": {
package/parser.js CHANGED
@@ -19,7 +19,7 @@ const SKIP_FILENAMES = new Set([
19
19
  ]);
20
20
 
21
21
  // Filename patterns that are never skills
22
- const SKIP_FILENAME_RE = /^(_|\.)|^v?\d+[\.\-]\d+|^\d{4}[\-_]\d{2}/i; // _template, .hidden, v1.0, 2024-01
22
+ const SKIP_FILENAME_RE = /^(_|\.)|^v?\d+[\.\-]\d+|^\d{4}[\-_]\d{2}|^readme|^license|^changelog|^contributing/i;
23
23
 
24
24
  // Path segments that indicate the file is NOT a skill
25
25
  const SKIP_DIRS = new Set([