promptgraph-mcp 2.3.0 → 2.3.1

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.
Files changed (2) hide show
  1. package/github-import.js +5 -4
  2. package/package.json +1 -1
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.1",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "bin": {