@cubic-dev-ai/cli 0.16.1 → 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/git-ai.json +1 -1
- package/package.json +12 -12
- package/postinstall.mjs +3 -2
package/git-ai.json
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.
|
|
10
|
+
"version": "0.17.0",
|
|
11
11
|
"optionalDependencies": {
|
|
12
|
-
"@cubic-dev-ai/cli-linux-arm64": "0.
|
|
13
|
-
"@cubic-dev-ai/cli-linux-x64": "0.
|
|
14
|
-
"@cubic-dev-ai/cli-linux-x64-baseline": "0.
|
|
15
|
-
"@cubic-dev-ai/cli-linux-arm64-musl": "0.
|
|
16
|
-
"@cubic-dev-ai/cli-linux-x64-musl": "0.
|
|
17
|
-
"@cubic-dev-ai/cli-linux-x64-baseline-musl": "0.
|
|
18
|
-
"@cubic-dev-ai/cli-darwin-arm64": "0.
|
|
19
|
-
"@cubic-dev-ai/cli-darwin-x64": "0.
|
|
20
|
-
"@cubic-dev-ai/cli-darwin-x64-baseline": "0.
|
|
21
|
-
"@cubic-dev-ai/cli-windows-x64": "0.
|
|
22
|
-
"@cubic-dev-ai/cli-windows-x64-baseline": "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
|
@@ -17,7 +17,8 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
|
17
17
|
const require = createRequire(import.meta.url)
|
|
18
18
|
|
|
19
19
|
// Read git-ai version from JSON (single source of truth for JS/TS)
|
|
20
|
-
|
|
20
|
+
const GIT_AI_FALLBACK_VERSION = "v1.1.8"
|
|
21
|
+
let GIT_AI_VERSION = GIT_AI_FALLBACK_VERSION
|
|
21
22
|
try {
|
|
22
23
|
// In published package, git-ai.json is a sibling file
|
|
23
24
|
// In development, it's at src/constants/git-ai.json relative to script/
|
|
@@ -39,7 +40,7 @@ function isValidVersion(version) {
|
|
|
39
40
|
|
|
40
41
|
if (!isValidVersion(GIT_AI_VERSION)) {
|
|
41
42
|
console.warn(`Invalid git-ai version format: ${GIT_AI_VERSION}, using fallback`)
|
|
42
|
-
GIT_AI_VERSION =
|
|
43
|
+
GIT_AI_VERSION = GIT_AI_FALLBACK_VERSION
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
function shouldRunInstallWizard() {
|