@cubic-dev-ai/cli 0.16.0 → 0.16.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.
- package/bin/cubic +6 -6
- package/bin/cubic.cmd +1 -0
- package/package.json +12 -12
- package/postinstall.mjs +16 -18
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
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.
|
|
10
|
+
"version": "0.16.1",
|
|
11
11
|
"optionalDependencies": {
|
|
12
|
-
"@cubic-dev-ai/cli-linux-arm64": "0.16.
|
|
13
|
-
"@cubic-dev-ai/cli-linux-x64": "0.16.
|
|
14
|
-
"@cubic-dev-ai/cli-linux-x64-baseline": "0.16.
|
|
15
|
-
"@cubic-dev-ai/cli-linux-arm64-musl": "0.16.
|
|
16
|
-
"@cubic-dev-ai/cli-linux-x64-musl": "0.16.
|
|
17
|
-
"@cubic-dev-ai/cli-linux-x64-baseline-musl": "0.16.
|
|
18
|
-
"@cubic-dev-ai/cli-darwin-arm64": "0.16.
|
|
19
|
-
"@cubic-dev-ai/cli-darwin-x64": "0.16.
|
|
20
|
-
"@cubic-dev-ai/cli-darwin-x64-baseline": "0.16.
|
|
21
|
-
"@cubic-dev-ai/cli-windows-x64": "0.16.
|
|
22
|
-
"@cubic-dev-ai/cli-windows-x64-baseline": "0.16.
|
|
12
|
+
"@cubic-dev-ai/cli-linux-arm64": "0.16.1",
|
|
13
|
+
"@cubic-dev-ai/cli-linux-x64": "0.16.1",
|
|
14
|
+
"@cubic-dev-ai/cli-linux-x64-baseline": "0.16.1",
|
|
15
|
+
"@cubic-dev-ai/cli-linux-arm64-musl": "0.16.1",
|
|
16
|
+
"@cubic-dev-ai/cli-linux-x64-musl": "0.16.1",
|
|
17
|
+
"@cubic-dev-ai/cli-linux-x64-baseline-musl": "0.16.1",
|
|
18
|
+
"@cubic-dev-ai/cli-darwin-arm64": "0.16.1",
|
|
19
|
+
"@cubic-dev-ai/cli-darwin-x64": "0.16.1",
|
|
20
|
+
"@cubic-dev-ai/cli-darwin-x64-baseline": "0.16.1",
|
|
21
|
+
"@cubic-dev-ai/cli-windows-x64": "0.16.1",
|
|
22
|
+
"@cubic-dev-ai/cli-windows-x64-baseline": "0.16.1"
|
|
23
23
|
}
|
|
24
24
|
}
|
package/postinstall.mjs
CHANGED
|
@@ -13,19 +13,6 @@ 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
|
|
|
@@ -55,6 +42,20 @@ if (!isValidVersion(GIT_AI_VERSION)) {
|
|
|
55
42
|
GIT_AI_VERSION = "v1.1.2"
|
|
56
43
|
}
|
|
57
44
|
|
|
45
|
+
function shouldRunInstallWizard() {
|
|
46
|
+
if (process.env.CUBIC_DISABLE_INSTALL_WIZARD === "true") return false
|
|
47
|
+
if (process.env.npm_config_ignore_scripts === "true") return false
|
|
48
|
+
if (process.env.CI && process.env.CI !== "false") return false
|
|
49
|
+
if (process.env.npm_config_yes === "true") return false
|
|
50
|
+
if (process.env.TERM === "dumb") return false
|
|
51
|
+
if (!process.stdin.isTTY) return false
|
|
52
|
+
if (!process.stdout.isTTY) return false
|
|
53
|
+
if (!process.stderr.isTTY) return false
|
|
54
|
+
if (process.platform === "win32") return false
|
|
55
|
+
if (!fs.existsSync("/dev/tty")) return false
|
|
56
|
+
return true
|
|
57
|
+
}
|
|
58
|
+
|
|
58
59
|
function detectPlatformAndArch() {
|
|
59
60
|
// Map platform names
|
|
60
61
|
let platform
|
|
@@ -243,9 +244,7 @@ async function main() {
|
|
|
243
244
|
binaryPath = findBinary()
|
|
244
245
|
} catch (error) {
|
|
245
246
|
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
|
-
)
|
|
247
|
+
console.log(`cubic: setup skipped (${message}) - run \`npm i -g @cubic-dev-ai/cli\` again in a minute`)
|
|
249
248
|
return
|
|
250
249
|
}
|
|
251
250
|
const binScript = path.join(__dirname, "bin", "cubic")
|
|
@@ -277,10 +276,9 @@ async function main() {
|
|
|
277
276
|
try {
|
|
278
277
|
execFileSync(binaryPath, ["setup", "--mode", "install-time"], {
|
|
279
278
|
stdio: "inherit",
|
|
280
|
-
timeout:
|
|
279
|
+
timeout: 300000,
|
|
281
280
|
env: {
|
|
282
281
|
...process.env,
|
|
283
|
-
CUBIC_INSTALL_TTY: "0",
|
|
284
282
|
},
|
|
285
283
|
})
|
|
286
284
|
} catch (error) {
|