clawdex-mobile 4.0.0 → 5.0.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/{codex-rust-bridge → .artifacts/bridge-binaries/bridge-binaries-darwin-arm64/codex-rust-bridge} +0 -0
- package/.artifacts/bridge-binaries/bridge-binaries-darwin-x64/codex-rust-bridge +0 -0
- package/.artifacts/bridge-binaries/bridge-binaries-linux-x64/codex-rust-bridge +0 -0
- package/{codex-rust-bridge.exe → .artifacts/bridge-binaries/bridge-binaries-win32-x64/codex-rust-bridge.exe} +0 -0
- package/.github/workflows/npm-release.yml +39 -3
- package/README.md +3 -1
- package/apps/mobile/app.json +1 -1
- package/apps/mobile/package.json +1 -1
- package/docs/setup-and-operations.md +3 -1
- package/docs/troubleshooting.md +2 -1
- package/package.json +1 -1
- package/scripts/bridge-binary.js +6 -0
- package/scripts/setup-wizard.sh +0 -54
- package/services/rust-bridge/Cargo.lock +1 -1
- package/services/rust-bridge/Cargo.toml +1 -1
- package/services/rust-bridge/package.json +1 -1
- package/vendor/bridge-binaries/darwin-arm64/codex-rust-bridge +0 -0
- package/vendor/bridge-binaries/darwin-x64/codex-rust-bridge +0 -0
- package/vendor/bridge-binaries/linux-x64/codex-rust-bridge +0 -0
- package/vendor/bridge-binaries/win32-x64/codex-rust-bridge.exe +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -24,10 +24,14 @@ jobs:
|
|
|
24
24
|
fail-fast: false
|
|
25
25
|
matrix:
|
|
26
26
|
include:
|
|
27
|
-
- runner: macos-
|
|
27
|
+
- runner: macos-26
|
|
28
28
|
package_target: darwin-arm64
|
|
29
29
|
rust_target: aarch64-apple-darwin
|
|
30
30
|
binary_path: services/rust-bridge/target/aarch64-apple-darwin/release/codex-rust-bridge
|
|
31
|
+
- runner: macos-26-intel
|
|
32
|
+
package_target: darwin-x64
|
|
33
|
+
rust_target: x86_64-apple-darwin
|
|
34
|
+
binary_path: services/rust-bridge/target/x86_64-apple-darwin/release/codex-rust-bridge
|
|
31
35
|
- runner: ubuntu-latest
|
|
32
36
|
package_target: linux-x64
|
|
33
37
|
rust_target: x86_64-unknown-linux-gnu
|
|
@@ -100,8 +104,31 @@ jobs:
|
|
|
100
104
|
uses: actions/download-artifact@v7
|
|
101
105
|
with:
|
|
102
106
|
pattern: bridge-binaries-*
|
|
103
|
-
path: .
|
|
104
|
-
|
|
107
|
+
path: .artifacts/bridge-binaries
|
|
108
|
+
|
|
109
|
+
- name: Restage packaged bridge binaries
|
|
110
|
+
run: |
|
|
111
|
+
rm -rf vendor/bridge-binaries
|
|
112
|
+
mkdir -p vendor/bridge-binaries
|
|
113
|
+
for target in darwin-arm64 darwin-x64 linux-x64 win32-x64; do
|
|
114
|
+
case "$target" in
|
|
115
|
+
win32-x64) binary_name="codex-rust-bridge.exe" ;;
|
|
116
|
+
*) binary_name="codex-rust-bridge" ;;
|
|
117
|
+
esac
|
|
118
|
+
source_path=".artifacts/bridge-binaries/bridge-binaries-${target}/${binary_name}"
|
|
119
|
+
if [ ! -f "$source_path" ]; then
|
|
120
|
+
echo "Missing downloaded bridge artifact for ${target}: ${source_path}"
|
|
121
|
+
exit 1
|
|
122
|
+
fi
|
|
123
|
+
node scripts/bridge-binary.js stage --target "$target" --from "$source_path"
|
|
124
|
+
done
|
|
125
|
+
|
|
126
|
+
- name: Verify packaged bridge bundle layout
|
|
127
|
+
run: |
|
|
128
|
+
test -f vendor/bridge-binaries/darwin-arm64/codex-rust-bridge
|
|
129
|
+
test -f vendor/bridge-binaries/darwin-x64/codex-rust-bridge
|
|
130
|
+
test -f vendor/bridge-binaries/linux-x64/codex-rust-bridge
|
|
131
|
+
test -f vendor/bridge-binaries/win32-x64/codex-rust-bridge.exe
|
|
105
132
|
|
|
106
133
|
- name: Verify Rust bridge compiles
|
|
107
134
|
working-directory: services/rust-bridge
|
|
@@ -130,6 +157,15 @@ jobs:
|
|
|
130
157
|
- name: Show package contents
|
|
131
158
|
run: npm pack --dry-run
|
|
132
159
|
|
|
160
|
+
- name: Verify tarball contains packaged bridge targets
|
|
161
|
+
run: |
|
|
162
|
+
TMPDIR="$(mktemp -d)"
|
|
163
|
+
TARBALL="$(npm pack --silent --pack-destination "$TMPDIR" | tail -n 1)"
|
|
164
|
+
tar -tzf "$TMPDIR/$TARBALL" | grep -q '^package/vendor/bridge-binaries/darwin-arm64/codex-rust-bridge$'
|
|
165
|
+
tar -tzf "$TMPDIR/$TARBALL" | grep -q '^package/vendor/bridge-binaries/darwin-x64/codex-rust-bridge$'
|
|
166
|
+
tar -tzf "$TMPDIR/$TARBALL" | grep -q '^package/vendor/bridge-binaries/linux-x64/codex-rust-bridge$'
|
|
167
|
+
tar -tzf "$TMPDIR/$TARBALL" | grep -q '^package/vendor/bridge-binaries/win32-x64/codex-rust-bridge.exe$'
|
|
168
|
+
|
|
133
169
|
- name: Resolve publish target
|
|
134
170
|
id: publish_target
|
|
135
171
|
run: |
|
package/README.md
CHANGED
|
@@ -41,7 +41,9 @@ clawdex init
|
|
|
41
41
|
|
|
42
42
|
This is the primary starting point.
|
|
43
43
|
|
|
44
|
-
Published npm releases bundle prebuilt Rust bridge binaries for `darwin-arm64`, `linux-x64`, and `win32-x64`, so supported hosts do not need to compile the bridge during normal startup.
|
|
44
|
+
Published npm releases bundle prebuilt Rust bridge binaries for `darwin-arm64`, `darwin-x64`, `linux-x64`, and `win32-x64`, so supported hosts do not need to compile the bridge during normal startup. The interactive shell-based setup helpers are still macOS/Linux-oriented today.
|
|
45
|
+
|
|
46
|
+
`clawdex init` does not run a project-local `npm install`. The global package install is the only npm install needed for the published bridge flow.
|
|
45
47
|
|
|
46
48
|
`clawdex init` guides you through:
|
|
47
49
|
|
package/apps/mobile/app.json
CHANGED
package/apps/mobile/package.json
CHANGED
|
@@ -11,7 +11,9 @@ After `clawdex init`, expected sequence:
|
|
|
11
11
|
3. A pairing QR is printed for the mobile app
|
|
12
12
|
4. Bridge logs stay attached until you stop the process
|
|
13
13
|
|
|
14
|
-
Published npm releases bundle prebuilt bridge binaries for `darwin-arm64`, `linux-x64`, and `win32-x64`. On those hosts, normal bridge startup does not require a Rust compile.
|
|
14
|
+
Published npm releases bundle prebuilt bridge binaries for `darwin-arm64`, `darwin-x64`, `linux-x64`, and `win32-x64`. On those hosts, normal bridge startup does not require a Rust compile.
|
|
15
|
+
|
|
16
|
+
`clawdex init` does not run a project-local `npm install` for the published CLI path. The only required npm install there is `npm install -g clawdex-mobile@latest`.
|
|
15
17
|
|
|
16
18
|
## Manual Secure Setup (No Wizard)
|
|
17
19
|
|
package/docs/troubleshooting.md
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
## Bridge startup seems slow
|
|
4
4
|
|
|
5
5
|
- `clawdex init` no longer starts Expo for the shipped app.
|
|
6
|
-
- Published npm installs should use a bundled bridge binary on `darwin-arm64`, `linux-x64`, and `win32-x64`.
|
|
6
|
+
- Published npm installs should use a bundled bridge binary on `darwin-arm64`, `darwin-x64`, `linux-x64`, and `win32-x64`.
|
|
7
|
+
- `clawdex init` should not run a repo `npm install` on the published CLI path.
|
|
7
8
|
- If startup is still compiling Rust, you are usually on a source checkout, an unsupported host, or a package without bundled bridge binaries.
|
|
8
9
|
- The slow parts are usually npm dependency install/repair or the first Rust bridge build on source-based setups.
|
|
9
10
|
- If you want to skip the interactive wizard after initial setup, use `npm run secure:bridge`.
|
package/package.json
CHANGED
package/scripts/bridge-binary.js
CHANGED
|
@@ -12,6 +12,12 @@ const SUPPORTED_RUNTIME_TARGETS = {
|
|
|
12
12
|
rustTarget: "aarch64-apple-darwin",
|
|
13
13
|
binaryName: "codex-rust-bridge",
|
|
14
14
|
},
|
|
15
|
+
"darwin-x64": {
|
|
16
|
+
platform: "darwin",
|
|
17
|
+
arch: "x64",
|
|
18
|
+
rustTarget: "x86_64-apple-darwin",
|
|
19
|
+
binaryName: "codex-rust-bridge",
|
|
20
|
+
},
|
|
15
21
|
"linux-x64": {
|
|
16
22
|
platform: "linux",
|
|
17
23
|
arch: "x64",
|
package/scripts/setup-wizard.sh
CHANGED
|
@@ -1152,59 +1152,6 @@ confirm_phone_network_ready() {
|
|
|
1152
1152
|
esac
|
|
1153
1153
|
}
|
|
1154
1154
|
|
|
1155
|
-
has_mobile_react_native_runtime() {
|
|
1156
|
-
local root_touchable="$ROOT_DIR/node_modules/react-native/Libraries/Components/Touchable/BoundingDimensions.js"
|
|
1157
|
-
local workspace_touchable="$ROOT_DIR/apps/mobile/node_modules/react-native/Libraries/Components/Touchable/BoundingDimensions.js"
|
|
1158
|
-
local root_devtools="$ROOT_DIR/node_modules/react-native/src/private/devsupport/rndevtools/specs/NativeReactDevToolsRuntimeSettingsModule.js"
|
|
1159
|
-
local workspace_devtools="$ROOT_DIR/apps/mobile/node_modules/react-native/src/private/devsupport/rndevtools/specs/NativeReactDevToolsRuntimeSettingsModule.js"
|
|
1160
|
-
|
|
1161
|
-
local touchable_ok="false"
|
|
1162
|
-
local devtools_ok="false"
|
|
1163
|
-
|
|
1164
|
-
if [[ -f "$root_touchable" ]] || [[ -f "$workspace_touchable" ]]; then
|
|
1165
|
-
touchable_ok="true"
|
|
1166
|
-
fi
|
|
1167
|
-
if [[ -f "$root_devtools" ]] || [[ -f "$workspace_devtools" ]]; then
|
|
1168
|
-
devtools_ok="true"
|
|
1169
|
-
fi
|
|
1170
|
-
|
|
1171
|
-
[[ "$touchable_ok" == "true" ]] && [[ "$devtools_ok" == "true" ]]
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
|
-
repair_mobile_runtime_dependencies() {
|
|
1175
|
-
info "Repairing mobile runtime dependencies (React Native + Expo toolchain)..."
|
|
1176
|
-
run_quiet_command "React Native dependency repair" bash -lc "cd \"$ROOT_DIR\" && npm install --include=dev --force && npm install --include=dev --force -w apps/mobile && npm dedupe"
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
install_project_dependencies() {
|
|
1180
|
-
local should_install="false"
|
|
1181
|
-
local need_install="false"
|
|
1182
|
-
|
|
1183
|
-
if [[ ! -d "$ROOT_DIR/node_modules" ]] || [[ ! -d "$ROOT_DIR/node_modules/@codex" ]]; then
|
|
1184
|
-
need_install="true"
|
|
1185
|
-
fi
|
|
1186
|
-
|
|
1187
|
-
if [[ "$need_install" == "true" ]]; then
|
|
1188
|
-
if confirm_prompt "Install project npm dependencies now?" "Y"; then
|
|
1189
|
-
should_install="true"
|
|
1190
|
-
else
|
|
1191
|
-
if [[ "$AUTO_START" == "true" ]]; then
|
|
1192
|
-
abort_wizard "Dependencies are required before starting the bridge."
|
|
1193
|
-
fi
|
|
1194
|
-
fi
|
|
1195
|
-
else
|
|
1196
|
-
if [[ "$FLOW" == "manual" ]] && confirm_prompt "Refresh npm dependencies now?" "N"; then
|
|
1197
|
-
should_install="true"
|
|
1198
|
-
fi
|
|
1199
|
-
fi
|
|
1200
|
-
|
|
1201
|
-
if [[ "$should_install" == "true" ]]; then
|
|
1202
|
-
info "Installing npm dependencies (including dev tooling; this can take a few minutes)..."
|
|
1203
|
-
run_quiet_command "Project dependency install" bash -lc "cd \"$ROOT_DIR\" && npm install --include=dev && npm dedupe"
|
|
1204
|
-
ok "Dependencies installed."
|
|
1205
|
-
fi
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
1155
|
start_bridge_foreground() {
|
|
1209
1156
|
rail_echo "Starting bridge in foreground."
|
|
1210
1157
|
rail_echo "Press Ctrl+C to stop the bridge."
|
|
@@ -1242,7 +1189,6 @@ else
|
|
|
1242
1189
|
ensure_local_rust_build_toolchain
|
|
1243
1190
|
fi
|
|
1244
1191
|
ensure_codex_cli
|
|
1245
|
-
install_project_dependencies
|
|
1246
1192
|
|
|
1247
1193
|
section "Config handling"
|
|
1248
1194
|
choose_config_action
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|