@hippox/codegenie 3.32.2026 → 3.34.2026

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.
@@ -43,6 +43,21 @@ function resolvePlatformPackageDir(packageName) {
43
43
  return path.dirname(packageJsonPath)
44
44
  }
45
45
 
46
+ function ensureExecutable(binaryPath) {
47
+ if (process.platform === "win32") {
48
+ return
49
+ }
50
+ try {
51
+ const stats = fs.statSync(binaryPath)
52
+ const mode = stats.mode & 0o777
53
+ if (mode !== 0o755 && mode !== 0o775 && mode !== 0o777) {
54
+ fs.chmodSync(binaryPath, 0o755)
55
+ }
56
+ } catch {
57
+ // ignore permission check failure
58
+ }
59
+ }
60
+
46
61
  function resolveBinary() {
47
62
  const packageName = resolvePackageName()
48
63
  let platformDir = ""
@@ -72,6 +87,8 @@ function resolveBinary() {
72
87
  throw new Error(`[codegenie] Binary file missing from ${packageName}: ${binaryPath}`)
73
88
  }
74
89
 
90
+ ensureExecutable(binaryPath)
91
+
75
92
  return {
76
93
  packageName,
77
94
  binaryPath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hippox/codegenie",
3
- "version": "3.32.2026",
3
+ "version": "3.34.2026",
4
4
  "private": false,
5
5
  "description": "HarmonyOS AI 开发 CLI,通过 npm 分发平台二进制",
6
6
  "license": "MIT",
@@ -26,9 +26,9 @@
26
26
  "ai"
27
27
  ],
28
28
  "optionalDependencies": {
29
- "@hippox/codegenie-darwin-arm64": "3.32.2026",
30
- "@hippox/codegenie-darwin-x64": "3.32.2026",
31
- "@hippox/codegenie-win32-x64": "3.32.2026"
29
+ "@hippox/codegenie-darwin-arm64": "3.34.2026",
30
+ "@hippox/codegenie-darwin-x64": "3.34.2026",
31
+ "@hippox/codegenie-win32-x64": "3.34.2026"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"