remote-codex 0.11.52 → 0.11.54
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/apps/relay-server/dist/index.js +6 -7
- package/apps/supervisor-api/dist/index.js +527 -72
- package/apps/supervisor-web/dist/assets/{index-BBq6mr8o.js → index-Bnury8uP.js} +6 -6
- package/apps/supervisor-web/dist/index.html +1 -1
- package/bin/remote-codex.mjs +17 -3
- package/package.json +1 -1
- package/packages/codex/src/historyItems.test.ts +9 -0
- package/packages/codex/src/historyItems.ts +20 -8
- package/packages/codex/src/local-session-store.test.ts +455 -0
- package/packages/codex/src/local-session-store.ts +505 -40
- package/scripts/windows/build-device-manager.ps1 +0 -7
|
@@ -3713,6 +3713,8 @@ var HostedSandboxService = class {
|
|
|
3713
3713
|
var RELAY_REQUEST_TIMEOUT_MS = 3e4;
|
|
3714
3714
|
var RELAY_PORTAL_METADATA_TIMEOUT_MS = 900;
|
|
3715
3715
|
var WEBSOCKET_OPEN = 1;
|
|
3716
|
+
var SUPERVISOR_REPLACED_CLOSE_CODE = 1012;
|
|
3717
|
+
var SUPERVISOR_REPLACED_CLOSE_REASON = "Supervisor connection replaced.";
|
|
3716
3718
|
var hostedBootstrapPromises = /* @__PURE__ */ new Map();
|
|
3717
3719
|
var RELAY_COOKIE_NAME = "remote_codex_relay_session";
|
|
3718
3720
|
var threadAccessSchema = z.enum(["read", "control"]);
|
|
@@ -4654,16 +4656,13 @@ function buildRelayServer(config2, options = {}) {
|
|
|
4654
4656
|
}
|
|
4655
4657
|
const connectedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
4656
4658
|
const existing = state.supervisors.get(deviceId);
|
|
4657
|
-
existing?.socket.send(
|
|
4658
|
-
JSON.stringify({
|
|
4659
|
-
type: "relay.connected",
|
|
4660
|
-
timestamp: connectedAt,
|
|
4661
|
-
deviceId
|
|
4662
|
-
})
|
|
4663
|
-
);
|
|
4664
4659
|
existing?.clientSockets.forEach(
|
|
4665
4660
|
(clientConnection) => clientConnection.socket.close()
|
|
4666
4661
|
);
|
|
4662
|
+
existing?.socket.close(
|
|
4663
|
+
SUPERVISOR_REPLACED_CLOSE_CODE,
|
|
4664
|
+
SUPERVISOR_REPLACED_CLOSE_REASON
|
|
4665
|
+
);
|
|
4667
4666
|
const connection = {
|
|
4668
4667
|
deviceId,
|
|
4669
4668
|
socket,
|