shoplazza-ai-dev-cli 0.1.12 → 0.1.13

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/dist/cli.mjs +4 -1
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -13,7 +13,7 @@ import { homedir, hostname, platform, tmpdir } from "os";
13
13
  import { access, chmod, cp, lstat, mkdir, mkdtemp, readFile, readdir, readlink, realpath, rm, stat, symlink, writeFile } from "fs/promises";
14
14
  import { createServer } from "http";
15
15
  import { gunzipSync } from "node:zlib";
16
- import { mkdirSync as mkdirSync$1, writeFileSync as writeFileSync$1 } from "node:fs";
16
+ import { chmodSync as chmodSync$1, mkdirSync as mkdirSync$1, writeFileSync as writeFileSync$1 } from "node:fs";
17
17
  import { dirname as dirname$1, normalize as normalize$1, resolve as resolve$1, sep as sep$1 } from "node:path";
18
18
  import { parse } from "yaml";
19
19
  import * as readline from "readline";
@@ -1342,6 +1342,8 @@ function extractTarGz(gz, dest) {
1342
1342
  const header = tar.subarray(offset, offset + 512);
1343
1343
  if (header[0] === 0) break;
1344
1344
  const name = readCStr(header, 0, 100);
1345
+ const modeOctal = readCStr(header, 100, 8).trim();
1346
+ const mode = parseInt(modeOctal || "0", 8);
1345
1347
  const sizeOctal = readCStr(header, 124, 12).trim();
1346
1348
  const size = parseInt(sizeOctal || "0", 8);
1347
1349
  const typeFlag = String.fromCharCode(header[156] || 0);
@@ -1359,6 +1361,7 @@ function extractTarGz(gz, dest) {
1359
1361
  else if (typeFlag === "0" || typeFlag === "\0") {
1360
1362
  mkdirSync$1(dirname$1(targetAbs), { recursive: true });
1361
1363
  writeFileSync$1(targetAbs, tar.subarray(offset + 512, offset + 512 + size));
1364
+ if (mode & 73) chmodSync$1(targetAbs, mode & 511);
1362
1365
  }
1363
1366
  offset += advance;
1364
1367
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoplazza-ai-dev-cli",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Shoplazza AI Dev CLI: install, publish and manage AI agent skills/rules",
5
5
  "type": "module",
6
6
  "bin": {