@makerbi/remodex 2.0.1 → 2.3.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/package.json +2 -2
- package/src/account-status.js +5 -4
- package/src/bridge.js +1809 -689
- package/src/codex-desktop-refresher.js +35 -7
- package/src/cursor-acp-client.js +242 -0
- package/src/cursor-models.js +134 -0
- package/src/cursor-provider.js +1197 -0
- package/src/desktop-ipc-action-follower.js +2331 -964
- package/src/desktop-ipc-conversation-adapter.js +1132 -0
- package/src/desktop-ipc-conversation-projector.js +1169 -0
- package/src/desktop-ipc-live-owner.js +1790 -0
- package/src/desktop-ipc-owner-transport.js +750 -0
- package/src/desktop-ipc-shared.js +473 -0
- package/src/desktop-ipc-state-patches.js +218 -0
- package/src/opencode-models.js +108 -0
- package/src/opencode-provider.js +1151 -0
- package/src/project-handler.js +50 -7
- package/src/project-registry.js +466 -0
- package/src/push-notification-tracker.js +4 -4
- package/src/rollout-live-mirror.js +930 -218
- package/src/rollout-turn-semantics.js +20 -0
- package/src/runtime-provider-models.js +164 -0
- package/src/runtime-provider-router.js +365 -0
- package/src/scripts/codex-refresh.applescript +26 -15
- package/src/secure-transport.js +204 -9
- package/src/session-jsonl-history.js +429 -39
- package/src/thread-context-handler.js +8 -6
- package/src/thread-runtime-settings-store.js +247 -0
- package/src/voice-audio.js +344 -0
- package/src/voice-handler.js +363 -173
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@makerbi/remodex",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Local bridge between Codex and the Remodex mobile app. Run `remodex up` to start.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,6 +35,6 @@
|
|
|
35
35
|
"type": "commonjs",
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"qrcode-terminal": "^0.12.0",
|
|
38
|
-
"ws": "^8.
|
|
38
|
+
"ws": "^8.21.0"
|
|
39
39
|
}
|
|
40
40
|
}
|
package/src/account-status.js
CHANGED
|
@@ -23,11 +23,11 @@ function composeAccountStatus({
|
|
|
23
23
|
normalizeString(authStatus?.authMethod),
|
|
24
24
|
normalizeString(account?.type),
|
|
25
25
|
]) || null;
|
|
26
|
-
|
|
26
|
+
// Voice transcription now uses ChatGPT session auth only; API-key tokens must not advertise voice readiness.
|
|
27
|
+
const tokenReady = Boolean(authToken) && isChatGPTAuthMethod(authMethod);
|
|
27
28
|
const requiresOpenaiAuth = Boolean(accountRead?.requiresOpenaiAuth || authStatus?.requiresOpenaiAuth);
|
|
28
29
|
const hasPriorLoginContext = hasAccountLogin || Boolean(authMethod);
|
|
29
|
-
const
|
|
30
|
-
const needsReauth = !loginInFlight && requiresOpenaiAuth && hasPriorLoginContext && !hasUsableChatGPTToken;
|
|
30
|
+
const needsReauth = !loginInFlight && requiresOpenaiAuth && hasPriorLoginContext && !tokenReady;
|
|
31
31
|
const isAuthenticated = !needsReauth && (tokenReady || hasAccountLogin);
|
|
32
32
|
const status = isAuthenticated
|
|
33
33
|
? "authenticated"
|
|
@@ -55,7 +55,8 @@ function composeAccountStatus({
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
function isChatGPTAuthMethod(authMethod) {
|
|
58
|
-
|
|
58
|
+
const normalized = normalizeString(authMethod).toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
59
|
+
return normalized === "chatgpt" || normalized === "chatgptauthtokens";
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
// Removes any token-bearing fields before the bridge sends auth state to the phone.
|