@btatum5/codex-bridge 1.3.2 → 1.3.3
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/README.md +17 -9
- package/package.json +22 -22
- package/src/bridge.js +8 -6
package/README.md
CHANGED
|
@@ -115,12 +115,14 @@ If you only want to try Codex, you can install it from npm and run it without cl
|
|
|
115
115
|
|
|
116
116
|
## Quick Start
|
|
117
117
|
|
|
118
|
-
Install the bridge, then run:
|
|
119
|
-
|
|
120
|
-
```sh
|
|
121
|
-
codex-bridge up
|
|
122
|
-
```
|
|
123
|
-
|
|
118
|
+
Install the bridge, then run:
|
|
119
|
+
|
|
120
|
+
```sh
|
|
121
|
+
codex-bridge up
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
If you are running from a source checkout on Windows, use `.\run-local-codex.ps1` from the repo root instead so the local relay starts and the pairing QR can be generated automatically.
|
|
125
|
+
|
|
124
126
|
On first connect, open the Codex app, follow the onboarding flow, then scan the QR code from inside the app.
|
|
125
127
|
|
|
126
128
|
After that first scan:
|
|
@@ -134,12 +136,18 @@ For now, the daemon-backed trusted reconnect path is macOS-only. If you self-hos
|
|
|
134
136
|
|
|
135
137
|
## Run Locally
|
|
136
138
|
|
|
137
|
-
```sh
|
|
138
|
-
git clone https://github.com/NightVibes3/Codex-iOS.git
|
|
139
|
-
cd Codex-iOS
|
|
139
|
+
```sh
|
|
140
|
+
git clone https://github.com/NightVibes3/Codex-iOS.git
|
|
141
|
+
cd Codex-iOS
|
|
140
142
|
./run-local-codex.sh
|
|
141
143
|
```
|
|
142
144
|
|
|
145
|
+
On Windows, use:
|
|
146
|
+
|
|
147
|
+
```powershell
|
|
148
|
+
.\run-local-codex.ps1
|
|
149
|
+
```
|
|
150
|
+
|
|
143
151
|
On Windows PowerShell, use:
|
|
144
152
|
|
|
145
153
|
```powershell
|
package/package.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@btatum5/codex-bridge",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "Local bridge between Codex and the Codex mobile app. Run `codex-bridge up` to start.",
|
|
5
|
-
"main": "src/index.js",
|
|
6
|
-
"bin": {
|
|
7
|
-
"codex-bridge": "bin/codex-bridge.js",
|
|
8
|
-
"remodex": "bin/codex-bridge.js",
|
|
9
|
-
"phodex": "bin/phodex.js"
|
|
10
|
-
},
|
|
11
|
-
"files": [
|
|
12
|
-
"bin/",
|
|
13
|
-
"src/"
|
|
14
|
-
],
|
|
15
|
-
"publishConfig": {
|
|
16
|
-
"access": "public"
|
|
17
|
-
},
|
|
18
|
-
"scripts": {
|
|
19
|
-
"start": "node ./bin/codex-bridge.js up",
|
|
2
|
+
"name": "@btatum5/codex-bridge",
|
|
3
|
+
"version": "1.3.3",
|
|
4
|
+
"description": "Local bridge between Codex and the Codex mobile app. Run `codex-bridge up` to start.",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"codex-bridge": "bin/codex-bridge.js",
|
|
8
|
+
"remodex": "bin/codex-bridge.js",
|
|
9
|
+
"phodex": "bin/phodex.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"bin/",
|
|
13
|
+
"src/"
|
|
14
|
+
],
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"start": "node ./bin/codex-bridge.js up",
|
|
20
20
|
"test": "node --test ./test/*.test.js",
|
|
21
21
|
"prepack": "node ./scripts/prepare-private-defaults.js",
|
|
22
22
|
"postpack": "node ./scripts/cleanup-private-defaults.js"
|
|
23
23
|
},
|
|
24
|
-
"keywords": [
|
|
25
|
-
"codex-bridge",
|
|
26
|
-
"remodex",
|
|
27
|
-
"codex",
|
|
24
|
+
"keywords": [
|
|
25
|
+
"codex-bridge",
|
|
26
|
+
"remodex",
|
|
27
|
+
"codex",
|
|
28
28
|
"bridge",
|
|
29
29
|
"cli"
|
|
30
30
|
],
|
package/src/bridge.js
CHANGED
|
@@ -36,12 +36,14 @@ function startBridge({
|
|
|
36
36
|
onBridgeStatus = null,
|
|
37
37
|
} = {}) {
|
|
38
38
|
const config = explicitConfig || readBridgeConfig();
|
|
39
|
-
const relayBaseUrl = config.relayUrl.replace(/\/+$/, "");
|
|
40
|
-
if (!relayBaseUrl) {
|
|
41
|
-
console.error("[codex-bridge] No relay URL configured.");
|
|
42
|
-
console.error("[codex-bridge]
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
const relayBaseUrl = config.relayUrl.replace(/\/+$/, "");
|
|
40
|
+
if (!relayBaseUrl) {
|
|
41
|
+
console.error("[codex-bridge] No relay URL configured.");
|
|
42
|
+
console.error("[codex-bridge] On Windows source checkouts, run .\\run-local-codex.ps1 from the repo root.");
|
|
43
|
+
console.error("[codex-bridge] On macOS/Linux source checkouts, run ./run-local-codex.sh from the repo root.");
|
|
44
|
+
console.error("[codex-bridge] Otherwise set CODEX_BRIDGE_RELAY to your relay URL before running codex-bridge up.");
|
|
45
|
+
process.exit(1);
|
|
46
|
+
}
|
|
45
47
|
|
|
46
48
|
let deviceState;
|
|
47
49
|
try {
|