@khanhcan148/mk 0.1.1 → 0.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanhcan148/mk",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "CLI to install and manage MyClaudeKit (.claude/) in your projects",
5
5
  "type": "module",
6
6
  "bin": {
@@ -117,6 +117,19 @@ class TarExtractor extends Writable {
117
117
 
118
118
  const typeFlag = String.fromCharCode(block[156]) || '0';
119
119
 
120
+ // Skip PAX extended headers ('x') and PAX global headers ('g') without
121
+ // participating in root-prefix detection. GitHub tarballs prepend a
122
+ // pax_global_header whose name has no slash; if we let it set rootPrefix
123
+ // to '' every subsequent entry fails the '.claude/' filter → 0 files.
124
+ if (typeFlag === 'g' || typeFlag === 'x') {
125
+ this._consumeBuffer(512);
126
+ if (size > 0) {
127
+ this._paddedSize = Math.ceil(size / 512) * 512;
128
+ this._state = 'skip';
129
+ }
130
+ return;
131
+ }
132
+
120
133
  // Detect and strip root prefix (first directory component)
121
134
  if (this._rootPrefix === null) {
122
135
  const firstSlash = fullName.indexOf('/');