@cubic-dev-ai/cli 0.16.0 → 0.17.0

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/bin/cubic CHANGED
@@ -15,7 +15,7 @@ else
15
15
  done
16
16
  script_dir="$(dirname "$script_path")"
17
17
  script_dir="$(cd "$script_dir" && pwd)"
18
-
18
+
19
19
  # Map platform names
20
20
  case "$(uname -s)" in
21
21
  Darwin) platform="darwin" ;;
@@ -23,19 +23,19 @@ else
23
23
  MINGW*|CYGWIN*|MSYS*) platform="win32" ;;
24
24
  *) platform="$(uname -s | tr '[:upper:]' '[:lower:]')" ;;
25
25
  esac
26
-
27
- # Map architecture names
26
+
27
+ # Map architecture names
28
28
  case "$(uname -m)" in
29
29
  x86_64|amd64) arch="x64" ;;
30
30
  aarch64) arch="arm64" ;;
31
31
  armv7l) arch="arm" ;;
32
32
  *) arch="$(uname -m)" ;;
33
33
  esac
34
-
34
+
35
35
  name="@cubic-dev-ai/cli-${platform}-${arch}"
36
36
  binary="cubic"
37
37
  [ "$platform" = "win32" ] && binary="cubic.exe"
38
-
38
+
39
39
  # Search for the binary starting from real script location
40
40
  resolved=""
41
41
  current_dir="$script_dir"
@@ -47,7 +47,7 @@ else
47
47
  fi
48
48
  current_dir="$(dirname "$current_dir")"
49
49
  done
50
-
50
+
51
51
  if [ -z "$resolved" ]; then
52
52
  printf "It seems that your package manager failed to install the right version of the cubic CLI for your platform. You can try manually installing the \"%s\" package\n" "$name" >&2
53
53
  exit 1
package/bin/cubic.cmd CHANGED
@@ -21,6 +21,7 @@ if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
21
21
  ) else if "%PROCESSOR_ARCHITECTURE%"=="x86" (
22
22
  set "arch=x86"
23
23
  ) else (
24
+ echo Warning: Unknown PROCESSOR_ARCHITECTURE "!PROCESSOR_ARCHITECTURE!", defaulting to x64 >&2
24
25
  set "arch=x64"
25
26
  )
26
27
 
package/git-ai.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "v1.1.2"
2
+ "version": "v1.1.8"
3
3
  }
package/package.json CHANGED
@@ -7,18 +7,18 @@
7
7
  "preinstall": "bun ./preinstall.mjs || node ./preinstall.mjs",
8
8
  "postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
9
9
  },
10
- "version": "0.16.0",
10
+ "version": "0.17.0",
11
11
  "optionalDependencies": {
12
- "@cubic-dev-ai/cli-linux-arm64": "0.16.0",
13
- "@cubic-dev-ai/cli-linux-x64": "0.16.0",
14
- "@cubic-dev-ai/cli-linux-x64-baseline": "0.16.0",
15
- "@cubic-dev-ai/cli-linux-arm64-musl": "0.16.0",
16
- "@cubic-dev-ai/cli-linux-x64-musl": "0.16.0",
17
- "@cubic-dev-ai/cli-linux-x64-baseline-musl": "0.16.0",
18
- "@cubic-dev-ai/cli-darwin-arm64": "0.16.0",
19
- "@cubic-dev-ai/cli-darwin-x64": "0.16.0",
20
- "@cubic-dev-ai/cli-darwin-x64-baseline": "0.16.0",
21
- "@cubic-dev-ai/cli-windows-x64": "0.16.0",
22
- "@cubic-dev-ai/cli-windows-x64-baseline": "0.16.0"
12
+ "@cubic-dev-ai/cli-linux-arm64": "0.17.0",
13
+ "@cubic-dev-ai/cli-linux-x64": "0.17.0",
14
+ "@cubic-dev-ai/cli-linux-x64-baseline": "0.17.0",
15
+ "@cubic-dev-ai/cli-linux-arm64-musl": "0.17.0",
16
+ "@cubic-dev-ai/cli-linux-x64-musl": "0.17.0",
17
+ "@cubic-dev-ai/cli-linux-x64-baseline-musl": "0.17.0",
18
+ "@cubic-dev-ai/cli-darwin-arm64": "0.17.0",
19
+ "@cubic-dev-ai/cli-darwin-x64": "0.17.0",
20
+ "@cubic-dev-ai/cli-darwin-x64-baseline": "0.17.0",
21
+ "@cubic-dev-ai/cli-windows-x64": "0.17.0",
22
+ "@cubic-dev-ai/cli-windows-x64-baseline": "0.17.0"
23
23
  }
24
24
  }
package/postinstall.mjs CHANGED
@@ -13,24 +13,12 @@ function packagePrefix() {
13
13
  return process.env.CUBIC_PACKAGE_PREFIX || "@cubic-dev-ai/cli-"
14
14
  }
15
15
 
16
- function shouldRunInstallWizard() {
17
- if (process.env.CUBIC_DISABLE_INSTALL_WIZARD === "true") return false
18
- if (process.env.npm_config_ignore_scripts === "true") return false
19
- if (process.env.CI && process.env.CI !== "false") return false
20
- if (process.env.npm_config_yes === "true") return false
21
- if (process.env.TERM === "dumb") return false
22
- if (!process.stdin.isTTY) return false
23
- if (!process.stdout.isTTY) return false
24
- if (process.platform === "win32") return false
25
- if (!fs.existsSync("/dev/tty")) return false
26
- return true
27
- }
28
-
29
16
  const __dirname = path.dirname(fileURLToPath(import.meta.url))
30
17
  const require = createRequire(import.meta.url)
31
18
 
32
19
  // Read git-ai version from JSON (single source of truth for JS/TS)
33
- let GIT_AI_VERSION = "v1.1.2" // fallback
20
+ const GIT_AI_FALLBACK_VERSION = "v1.1.8"
21
+ let GIT_AI_VERSION = GIT_AI_FALLBACK_VERSION
34
22
  try {
35
23
  // In published package, git-ai.json is a sibling file
36
24
  // In development, it's at src/constants/git-ai.json relative to script/
@@ -52,7 +40,21 @@ function isValidVersion(version) {
52
40
 
53
41
  if (!isValidVersion(GIT_AI_VERSION)) {
54
42
  console.warn(`Invalid git-ai version format: ${GIT_AI_VERSION}, using fallback`)
55
- GIT_AI_VERSION = "v1.1.2"
43
+ GIT_AI_VERSION = GIT_AI_FALLBACK_VERSION
44
+ }
45
+
46
+ function shouldRunInstallWizard() {
47
+ if (process.env.CUBIC_DISABLE_INSTALL_WIZARD === "true") return false
48
+ if (process.env.npm_config_ignore_scripts === "true") return false
49
+ if (process.env.CI && process.env.CI !== "false") return false
50
+ if (process.env.npm_config_yes === "true") return false
51
+ if (process.env.TERM === "dumb") return false
52
+ if (!process.stdin.isTTY) return false
53
+ if (!process.stdout.isTTY) return false
54
+ if (!process.stderr.isTTY) return false
55
+ if (process.platform === "win32") return false
56
+ if (!fs.existsSync("/dev/tty")) return false
57
+ return true
56
58
  }
57
59
 
58
60
  function detectPlatformAndArch() {
@@ -243,9 +245,7 @@ async function main() {
243
245
  binaryPath = findBinary()
244
246
  } catch (error) {
245
247
  const message = error instanceof Error ? error.message : String(error)
246
- console.log(
247
- `cubic: setup skipped (${message}) - run \`npm i -g @cubic-plugin/cli-manila-test\` again in a minute`,
248
- )
248
+ console.log(`cubic: setup skipped (${message}) - run \`npm i -g @cubic-dev-ai/cli\` again in a minute`)
249
249
  return
250
250
  }
251
251
  const binScript = path.join(__dirname, "bin", "cubic")
@@ -277,10 +277,9 @@ async function main() {
277
277
  try {
278
278
  execFileSync(binaryPath, ["setup", "--mode", "install-time"], {
279
279
  stdio: "inherit",
280
- timeout: 60000,
280
+ timeout: 300000,
281
281
  env: {
282
282
  ...process.env,
283
- CUBIC_INSTALL_TTY: "0",
284
283
  },
285
284
  })
286
285
  } catch (error) {