@cubic-dev-ai/cli 1.6.2-beijing.1 → 1.6.2-beijing.2

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.cmd CHANGED
@@ -25,7 +25,7 @@ if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
25
25
  set "arch=x64"
26
26
  )
27
27
 
28
- set "name=cubic-!platform!-!arch!"
28
+ set "name=@cubic-dev-ai\cli-!platform!-!arch!"
29
29
  set "binary=cubic.exe"
30
30
 
31
31
  rem Search for the binary starting from script location
package/git-ai.json CHANGED
File without changes
package/package.json CHANGED
@@ -1,29 +1,27 @@
1
1
  {
2
2
  "name": "@cubic-dev-ai/cli",
3
+ "version": "1.6.2-beijing.2",
4
+ "type": "module",
3
5
  "bin": {
4
- "cubic": "./bin/cubic"
6
+ "cubic": "./bin/cubic.cmd"
5
7
  },
6
8
  "scripts": {
7
- "preinstall": "bun ./preinstall.mjs || node ./preinstall.mjs",
8
- "postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
9
+ "preinstall": "node ./preinstall.mjs",
10
+ "postinstall": "node ./postinstall.mjs"
9
11
  },
10
- "version": "1.6.2-beijing.1",
12
+ "os": [
13
+ "win32"
14
+ ],
15
+ "cpu": [
16
+ "x64"
17
+ ],
11
18
  "repository": {
12
19
  "type": "git",
13
20
  "url": "git+https://github.com/mrge-io/cubic-cli.git",
14
21
  "directory": "packages/cubic"
15
22
  },
16
23
  "optionalDependencies": {
17
- "@cubic-dev-ai/cli-linux-arm64": "1.6.2-beijing.1",
18
- "@cubic-dev-ai/cli-linux-x64": "1.6.2-beijing.1",
19
- "@cubic-dev-ai/cli-linux-x64-baseline": "1.6.2-beijing.1",
20
- "@cubic-dev-ai/cli-linux-arm64-musl": "1.6.2-beijing.1",
21
- "@cubic-dev-ai/cli-linux-x64-musl": "1.6.2-beijing.1",
22
- "@cubic-dev-ai/cli-linux-x64-baseline-musl": "1.6.2-beijing.1",
23
- "@cubic-dev-ai/cli-darwin-arm64": "1.6.2-beijing.1",
24
- "@cubic-dev-ai/cli-darwin-x64": "1.6.2-beijing.1",
25
- "@cubic-dev-ai/cli-darwin-x64-baseline": "1.6.2-beijing.1",
26
- "@cubic-dev-ai/cli-windows-x64": "1.6.2-beijing.1",
27
- "@cubic-dev-ai/cli-windows-x64-baseline": "1.6.2-beijing.1"
24
+ "@cubic-dev-ai/cli-windows-x64": "1.6.2-beijing.2",
25
+ "@cubic-dev-ai/cli-windows-x64-baseline": "1.6.2-beijing.2"
28
26
  }
29
- }
27
+ }
package/postinstall.mjs CHANGED
File without changes
package/preinstall.mjs CHANGED
File without changes
package/bin/cubic DELETED
@@ -1,71 +0,0 @@
1
- #!/bin/sh
2
- set -e
3
-
4
- if [ -n "$CUBIC_BIN_PATH" ]; then
5
- resolved="$CUBIC_BIN_PATH"
6
- else
7
- # Get the real path of this script, resolving any symlinks
8
- script_path="$0"
9
- while [ -L "$script_path" ]; do
10
- link_target="$(readlink "$script_path")"
11
- case "$link_target" in
12
- /*) script_path="$link_target" ;;
13
- *) script_path="$(dirname "$script_path")/$link_target" ;;
14
- esac
15
- done
16
- script_dir="$(dirname "$script_path")"
17
- script_dir="$(cd "$script_dir" && pwd)"
18
-
19
- # Map platform names
20
- case "$(uname -s)" in
21
- Darwin) platform="darwin" ;;
22
- Linux) platform="linux" ;;
23
- MINGW*|CYGWIN*|MSYS*) platform="win32" ;;
24
- *) platform="$(uname -s | tr '[:upper:]' '[:lower:]')" ;;
25
- esac
26
-
27
- # Map architecture names
28
- case "$(uname -m)" in
29
- x86_64|amd64) arch="x64" ;;
30
- aarch64) arch="arm64" ;;
31
- armv7l) arch="arm" ;;
32
- *) arch="$(uname -m)" ;;
33
- esac
34
-
35
- name="@cubic-dev-ai/cli-${platform}-${arch}"
36
- binary="cubic"
37
- [ "$platform" = "win32" ] && binary="cubic.exe"
38
-
39
- # Search for the binary starting from real script location
40
- resolved=""
41
- current_dir="$script_dir"
42
- while [ "$current_dir" != "/" ]; do
43
- candidate="$current_dir/node_modules/$name/bin/$binary"
44
- if [ -f "$candidate" ]; then
45
- resolved="$candidate"
46
- break
47
- fi
48
- current_dir="$(dirname "$current_dir")"
49
- done
50
-
51
- if [ -z "$resolved" ]; then
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
- exit 1
54
- fi
55
- fi
56
-
57
- # Handle SIGINT gracefully
58
- trap '' INT
59
-
60
- # Intercept installer command from npx wrapper context
61
- if [ "$1" = "install" ]; then
62
- exec "$resolved" "$@"
63
- fi
64
-
65
- # npx with no args should bootstrap setup flow in exec context
66
- if [ "$#" -eq 0 ] && [ "${npm_command:-}" = "exec" ]; then
67
- exec "$resolved" setup --mode install
68
- fi
69
-
70
- # Execute the binary with all arguments
71
- exec "$resolved" "$@"
package/bin/cubic.wrapper DELETED
@@ -1,71 +0,0 @@
1
- #!/bin/sh
2
- set -e
3
-
4
- if [ -n "$CUBIC_BIN_PATH" ]; then
5
- resolved="$CUBIC_BIN_PATH"
6
- else
7
- # Get the real path of this script, resolving any symlinks
8
- script_path="$0"
9
- while [ -L "$script_path" ]; do
10
- link_target="$(readlink "$script_path")"
11
- case "$link_target" in
12
- /*) script_path="$link_target" ;;
13
- *) script_path="$(dirname "$script_path")/$link_target" ;;
14
- esac
15
- done
16
- script_dir="$(dirname "$script_path")"
17
- script_dir="$(cd "$script_dir" && pwd)"
18
-
19
- # Map platform names
20
- case "$(uname -s)" in
21
- Darwin) platform="darwin" ;;
22
- Linux) platform="linux" ;;
23
- MINGW*|CYGWIN*|MSYS*) platform="win32" ;;
24
- *) platform="$(uname -s | tr '[:upper:]' '[:lower:]')" ;;
25
- esac
26
-
27
- # Map architecture names
28
- case "$(uname -m)" in
29
- x86_64|amd64) arch="x64" ;;
30
- aarch64) arch="arm64" ;;
31
- armv7l) arch="arm" ;;
32
- *) arch="$(uname -m)" ;;
33
- esac
34
-
35
- name="@cubic-dev-ai/cli-${platform}-${arch}"
36
- binary="cubic"
37
- [ "$platform" = "win32" ] && binary="cubic.exe"
38
-
39
- # Search for the binary starting from real script location
40
- resolved=""
41
- current_dir="$script_dir"
42
- while [ "$current_dir" != "/" ]; do
43
- candidate="$current_dir/node_modules/$name/bin/$binary"
44
- if [ -f "$candidate" ]; then
45
- resolved="$candidate"
46
- break
47
- fi
48
- current_dir="$(dirname "$current_dir")"
49
- done
50
-
51
- if [ -z "$resolved" ]; then
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
- exit 1
54
- fi
55
- fi
56
-
57
- # Handle SIGINT gracefully
58
- trap '' INT
59
-
60
- # Intercept installer command from npx wrapper context
61
- if [ "$1" = "install" ]; then
62
- exec "$resolved" "$@"
63
- fi
64
-
65
- # npx with no args should bootstrap setup flow in exec context
66
- if [ "$#" -eq 0 ] && [ "${npm_command:-}" = "exec" ]; then
67
- exec "$resolved" setup --mode install
68
- fi
69
-
70
- # Execute the binary with all arguments
71
- exec "$resolved" "$@"