portacode 2.2.28.dev0__py3-none-any.whl → 2.2.28.dev1__py3-none-any.whl
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.
- portacode/_version.py +2 -2
- portacode/connection/handlers/codex_handlers.py +78 -26
- portacode/connection/terminal.py +21 -0
- portacode/tests/test_codex_handlers.py +59 -15
- {portacode-2.2.28.dev0.dist-info → portacode-2.2.28.dev1.dist-info}/METADATA +1 -1
- {portacode-2.2.28.dev0.dist-info → portacode-2.2.28.dev1.dist-info}/RECORD +10 -10
- {portacode-2.2.28.dev0.dist-info → portacode-2.2.28.dev1.dist-info}/WHEEL +0 -0
- {portacode-2.2.28.dev0.dist-info → portacode-2.2.28.dev1.dist-info}/entry_points.txt +0 -0
- {portacode-2.2.28.dev0.dist-info → portacode-2.2.28.dev1.dist-info}/licenses/LICENSE +0 -0
- {portacode-2.2.28.dev0.dist-info → portacode-2.2.28.dev1.dist-info}/top_level.txt +0 -0
portacode/_version.py
CHANGED
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '2.2.28.
|
|
22
|
-
__version_tuple__ = version_tuple = (2, 2, 28, '
|
|
21
|
+
__version__ = version = '2.2.28.dev1'
|
|
22
|
+
__version_tuple__ = version_tuple = (2, 2, 28, 'dev1')
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -103,18 +103,30 @@ class _SessionAwareSender:
|
|
|
103
103
|
project_id: Optional[str] = None,
|
|
104
104
|
explicit_sessions: Optional[List[str]] = None,
|
|
105
105
|
) -> None:
|
|
106
|
-
target_sessions = set(explicit_sessions or [])
|
|
107
106
|
client_session_manager = self.context.get("client_session_manager")
|
|
107
|
+
target_sessions = set()
|
|
108
108
|
if client_session_manager and client_session_manager.has_interested_clients():
|
|
109
109
|
target_sessions.update(client_session_manager.get_target_sessions(project_id))
|
|
110
|
+
if payload.get("event") == "codex_event":
|
|
111
|
+
params = payload.get("notification", {}).get("params", {})
|
|
112
|
+
thread_id = params.get("threadId") or (params.get("thread") or {}).get("id")
|
|
113
|
+
if not thread_id:
|
|
114
|
+
return
|
|
115
|
+
sessions = client_session_manager.get_sessions()
|
|
116
|
+
target_sessions = {
|
|
117
|
+
name for name in target_sessions
|
|
118
|
+
if (sessions.get(name, {}).get("codex_thread_id") == thread_id
|
|
119
|
+
if "codex_thread_id" in sessions.get(name, {})
|
|
120
|
+
else name in (explicit_sessions or []))
|
|
121
|
+
}
|
|
110
122
|
reply_channel = client_session_manager.get_reply_channel_for_compatibility()
|
|
111
123
|
if reply_channel:
|
|
112
124
|
payload = dict(payload)
|
|
113
125
|
payload["reply_channel"] = reply_channel
|
|
114
|
-
if target_sessions:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
126
|
+
if not target_sessions:
|
|
127
|
+
return
|
|
128
|
+
payload = dict(payload)
|
|
129
|
+
payload["client_sessions"] = sorted(target_sessions)
|
|
118
130
|
await self.control_channel.send(payload)
|
|
119
131
|
|
|
120
132
|
|
|
@@ -130,8 +142,10 @@ class CodexChatManager:
|
|
|
130
142
|
self._thread_project: Dict[str, str] = {}
|
|
131
143
|
self._cwd_project: Dict[str, str] = {}
|
|
132
144
|
self._thread_active_turn: Dict[str, str] = {}
|
|
133
|
-
self._thread_completed_turn: Dict[str, Dict[str, Any]] = {}
|
|
134
145
|
self._thread_sessions: Dict[str, set[str]] = {}
|
|
146
|
+
self._activity: Dict[str, Dict[str, Any]] = {}
|
|
147
|
+
self._activity_revision = 0
|
|
148
|
+
self._activity_lock = asyncio.Lock()
|
|
135
149
|
# Materialized in-progress items live with the device agent, not a
|
|
136
150
|
# browser websocket. New/reconnected tabs receive these on resume.
|
|
137
151
|
self._thread_live_items: Dict[str, Dict[str, Dict[str, Any]]] = {}
|
|
@@ -144,12 +158,43 @@ class CodexChatManager:
|
|
|
144
158
|
"""Rebind outbound transport after reconnect without changing Codex state."""
|
|
145
159
|
self.sender.control_channel = control_channel
|
|
146
160
|
self.sender.context = context
|
|
161
|
+
self._thread_sessions.clear()
|
|
162
|
+
|
|
163
|
+
async def publish_activity(self, thread_id=None) -> None:
|
|
164
|
+
"""Send compact state only when the server explicitly subscribes to it."""
|
|
165
|
+
if not self.sender.context.get("codex_activity_subscription"):
|
|
166
|
+
return
|
|
167
|
+
async with self._activity_lock:
|
|
168
|
+
self._activity_revision += 1
|
|
169
|
+
await self.sender.control_channel.send({
|
|
170
|
+
"event": "codex_activity",
|
|
171
|
+
"revision": self._activity_revision,
|
|
172
|
+
"complete": thread_id is None,
|
|
173
|
+
"threads": copy.deepcopy([self._activity[thread_id]] if thread_id else list(self._activity.values())),
|
|
174
|
+
})
|
|
175
|
+
|
|
176
|
+
def _remember_activity(self, thread_id, project_id, method, params):
|
|
177
|
+
turn = params.get("turn") or {}
|
|
178
|
+
turn_id = params.get("turnId") or turn.get("id")
|
|
179
|
+
self._activity.pop(thread_id, None)
|
|
180
|
+
self._activity[thread_id] = {
|
|
181
|
+
"event": "codex_event", "project_id": project_id,
|
|
182
|
+
"notification": {"method": method, "params": {
|
|
183
|
+
"threadId": thread_id, "turnId": turn_id,
|
|
184
|
+
"turn": {"id": turn_id, "status": turn.get("status"),
|
|
185
|
+
"error": bool(turn.get("error"))},
|
|
186
|
+
}},
|
|
187
|
+
}
|
|
188
|
+
completed = [key for key in self._activity if key not in self._thread_active_turn]
|
|
189
|
+
for key in completed[:-100]:
|
|
190
|
+
self._activity.pop(key, None)
|
|
147
191
|
|
|
148
192
|
async def _on_bridge_exit(self, returncode: Optional[int]) -> None:
|
|
149
193
|
"""Turn an app-server crash into terminal events for waiting browsers."""
|
|
150
194
|
active = list(self._thread_active_turn.items())
|
|
151
195
|
self._thread_active_turn.clear()
|
|
152
196
|
for thread_id, turn_id in active:
|
|
197
|
+
self._thread_live_items.pop(thread_id, None)
|
|
153
198
|
project_id = self._thread_project.get(thread_id)
|
|
154
199
|
if not project_id:
|
|
155
200
|
continue
|
|
@@ -162,6 +207,8 @@ class CodexChatManager:
|
|
|
162
207
|
"additionalDetails": "Portacode is restarting it. Retry the message after it reconnects.",
|
|
163
208
|
},
|
|
164
209
|
}
|
|
210
|
+
self._remember_activity(thread_id, project_id, "error", params)
|
|
211
|
+
await self.publish_activity(thread_id)
|
|
165
212
|
await self.sender.send(
|
|
166
213
|
{
|
|
167
214
|
"event": "codex_event",
|
|
@@ -191,6 +238,9 @@ class CodexChatManager:
|
|
|
191
238
|
thread_id = params.get("threadId") or (params.get("thread") or {}).get("id")
|
|
192
239
|
turn = params.get("turn") if isinstance(params.get("turn"), dict) else {}
|
|
193
240
|
turn_id = params.get("turnId") or turn.get("id")
|
|
241
|
+
if (thread_id and method in {"turn/completed", "error"} and turn_id
|
|
242
|
+
and self._thread_active_turn.get(str(thread_id)) not in {None, str(turn_id)}):
|
|
243
|
+
return
|
|
194
244
|
if thread_id and method == "turn/started" and turn_id:
|
|
195
245
|
self._thread_active_turn[str(thread_id)] = str(turn_id)
|
|
196
246
|
self._thread_live_items[str(thread_id)] = {}
|
|
@@ -200,14 +250,10 @@ class CodexChatManager:
|
|
|
200
250
|
oldest = next(key for key in self._thread_live_items if key != str(thread_id))
|
|
201
251
|
self._thread_live_items.pop(oldest, None)
|
|
202
252
|
elif thread_id and method == "turn/completed":
|
|
203
|
-
self._thread_completed_turn[str(thread_id)] = {
|
|
204
|
-
"id": str(turn_id) if turn_id else None,
|
|
205
|
-
"items": self.live_items(str(thread_id)),
|
|
206
|
-
}
|
|
207
|
-
while len(self._thread_completed_turn) > MAX_TRACKED_LIVE_THREADS:
|
|
208
|
-
self._thread_completed_turn.pop(next(iter(self._thread_completed_turn)))
|
|
209
253
|
self._thread_active_turn.pop(str(thread_id), None)
|
|
210
|
-
#
|
|
254
|
+
# Durable history is authoritative once a turn completes. Keeping
|
|
255
|
+
# its reconnect snapshot would make resume return the same turn in
|
|
256
|
+
# both `items` and `liveItems`.
|
|
211
257
|
self._thread_live_items.pop(str(thread_id), None)
|
|
212
258
|
elif thread_id and method == "error" and not params.get("willRetry"):
|
|
213
259
|
self._thread_active_turn.pop(str(thread_id), None)
|
|
@@ -227,6 +273,11 @@ class CodexChatManager:
|
|
|
227
273
|
"notification": {"method": method, "params": params},
|
|
228
274
|
"project_id": project_id,
|
|
229
275
|
}
|
|
276
|
+
if thread_id and method in {"turn/started", "turn/completed", "error"} and not params.get("willRetry"):
|
|
277
|
+
self._remember_activity(str(thread_id), project_id, method, params)
|
|
278
|
+
await self.publish_activity(str(thread_id))
|
|
279
|
+
if self.sender.context.get("codex_activity_subscription"):
|
|
280
|
+
event_payload["activity_reported"] = True
|
|
230
281
|
await self.sender.send(
|
|
231
282
|
event_payload,
|
|
232
283
|
project_id=project_id,
|
|
@@ -822,12 +873,11 @@ class CodexThreadResumeHandler(CodexAsyncHandler):
|
|
|
822
873
|
already_active=str(thread_id) in manager._thread_active_turn,
|
|
823
874
|
)
|
|
824
875
|
thread = _thread_from_result(resume_result)
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
active_turn = {"id": known_turn_id, "status": "inProgress"}
|
|
876
|
+
if not active_turn:
|
|
877
|
+
known_turn_id = manager._thread_active_turn.get(str(thread_id))
|
|
878
|
+
if known_turn_id:
|
|
879
|
+
active_turn = {"id": known_turn_id, "status": "inProgress"}
|
|
880
|
+
|
|
831
881
|
live_items = manager.live_items(thread_id) if active_turn else []
|
|
832
882
|
# During an active reconnect the live snapshot is the authoritative
|
|
833
883
|
# representation of that turn. Do not also send its possibly partial
|
|
@@ -848,13 +898,7 @@ class CodexThreadResumeHandler(CodexAsyncHandler):
|
|
|
848
898
|
"thread": thread,
|
|
849
899
|
"items": items,
|
|
850
900
|
"liveItems": live_items,
|
|
851
|
-
"syncId": message.get("syncId"),
|
|
852
901
|
}
|
|
853
|
-
completed = manager._thread_completed_turn.get(str(thread_id))
|
|
854
|
-
if completed and not active_turn:
|
|
855
|
-
payload["completedTurnId"] = completed["id"]
|
|
856
|
-
# Recover the tail even if durable history has not flushed yet.
|
|
857
|
-
payload["completedItems"] = completed["items"]
|
|
858
902
|
if active_turn:
|
|
859
903
|
payload["activeTurn"] = active_turn
|
|
860
904
|
active_turn_id = active_turn.get("id") or active_turn.get("turnId")
|
|
@@ -924,8 +968,16 @@ class CodexTurnStartHandler(CodexAsyncHandler):
|
|
|
924
968
|
result = await manager.bridge.call("turn/start", params)
|
|
925
969
|
turn = _turn_from_result(result)
|
|
926
970
|
turn_id = turn.get("id") or turn.get("turnId")
|
|
927
|
-
|
|
971
|
+
activity = manager._activity.get(str(thread_id), {}).get("notification", {})
|
|
972
|
+
already_finished = (activity.get("method") in {"turn/completed", "error"}
|
|
973
|
+
and activity.get("params", {}).get("turnId") == turn_id)
|
|
974
|
+
if turn_id and not already_finished:
|
|
928
975
|
manager._thread_active_turn[str(thread_id)] = str(turn_id)
|
|
976
|
+
if activity.get("params", {}).get("turnId") != turn_id and project_id:
|
|
977
|
+
manager._remember_activity(str(thread_id), project_id, "turn/started", {
|
|
978
|
+
"threadId": thread_id, "turnId": turn_id,
|
|
979
|
+
})
|
|
980
|
+
await manager.publish_activity(str(thread_id))
|
|
929
981
|
|
|
930
982
|
payload = {
|
|
931
983
|
"event": "codex_turn_started",
|
portacode/connection/terminal.py
CHANGED
|
@@ -478,6 +478,8 @@ class TerminalManager:
|
|
|
478
478
|
|
|
479
479
|
def _set_mux(self, mux: Multiplexer, is_initial: bool = False) -> None:
|
|
480
480
|
self.mux = mux
|
|
481
|
+
self._client_sessions_revision = -1
|
|
482
|
+
self._client_session_manager.update_sessions([])
|
|
481
483
|
self._control_channel = self.mux.get_channel(self.CONTROL_CHANNEL_ID)
|
|
482
484
|
|
|
483
485
|
# Only create new session manager on initial setup, preserve existing one on reconnection
|
|
@@ -511,6 +513,7 @@ class TerminalManager:
|
|
|
511
513
|
if manager is not None:
|
|
512
514
|
manager.rebind_transport(self._control_channel, self._context)
|
|
513
515
|
self._guest_host_request_results: Dict[str, Dict[str, Any]] = {}
|
|
516
|
+
self._context["codex_activity_subscription"] = False
|
|
514
517
|
|
|
515
518
|
# Initialize command registry
|
|
516
519
|
self._command_registry = CommandRegistry(self._control_channel, self._context)
|
|
@@ -683,10 +686,28 @@ class TerminalManager:
|
|
|
683
686
|
|
|
684
687
|
# Handle client sessions update directly (special case)
|
|
685
688
|
if cmd == "client_sessions_update":
|
|
689
|
+
revision = message.get("revision")
|
|
690
|
+
if isinstance(revision, int):
|
|
691
|
+
if revision <= self._client_sessions_revision:
|
|
692
|
+
continue
|
|
693
|
+
self._client_sessions_revision = revision
|
|
686
694
|
sessions = message.get("sessions", [])
|
|
687
695
|
logger.info("terminal_manager: 🔔 RECEIVED client_sessions_update with %d sessions", len(sessions))
|
|
688
696
|
logger.debug("terminal_manager: Session details: %s", sessions)
|
|
689
697
|
newly_added_sessions = self._client_session_manager.update_sessions(sessions)
|
|
698
|
+
subscribed = self._context.get("codex_activity_subscription")
|
|
699
|
+
self._context["codex_activity_subscription"] = message.get("codex_activity_subscription") is True
|
|
700
|
+
manager = self._context.get("codex_manager")
|
|
701
|
+
if manager is None and self._context["codex_activity_subscription"]:
|
|
702
|
+
from .handlers.codex_handlers import CodexChatManager
|
|
703
|
+
manager = CodexChatManager(self._control_channel, self._context)
|
|
704
|
+
self._context["codex_manager"] = manager
|
|
705
|
+
if manager is not None:
|
|
706
|
+
live = self._client_session_manager.get_sessions()
|
|
707
|
+
for names in manager._thread_sessions.values():
|
|
708
|
+
names.intersection_update(live)
|
|
709
|
+
if not subscribed:
|
|
710
|
+
await manager.publish_activity()
|
|
690
711
|
logger.info("terminal_manager: ✅ Updated client sessions (%d sessions)", len(sessions))
|
|
691
712
|
|
|
692
713
|
# Auto-send initial data only to newly added clients
|
|
@@ -41,7 +41,11 @@ def test_delegated_codex_allows_non_git_project_folders():
|
|
|
41
41
|
|
|
42
42
|
class DummyClientSessionManager:
|
|
43
43
|
def __init__(self, sessions: list[str] | None = None):
|
|
44
|
-
self.sessions =
|
|
44
|
+
self.sessions = ["sess-1"] if sessions is None else sessions
|
|
45
|
+
self.selected = "th-1"
|
|
46
|
+
|
|
47
|
+
def get_sessions(self):
|
|
48
|
+
return {name: {"codex_thread_id": self.selected} for name in self.sessions}
|
|
45
49
|
|
|
46
50
|
def has_interested_clients(self) -> bool:
|
|
47
51
|
return bool(self.sessions)
|
|
@@ -61,6 +65,57 @@ class DummyControlChannel:
|
|
|
61
65
|
self.sent.append(payload)
|
|
62
66
|
|
|
63
67
|
|
|
68
|
+
@pytest.mark.asyncio
|
|
69
|
+
async def test_unwatched_stream_is_local_but_server_receives_compact_activity():
|
|
70
|
+
channel = DummyControlChannel()
|
|
71
|
+
context = {"client_session_manager": DummyClientSessionManager([]),
|
|
72
|
+
"codex_activity_subscription": True}
|
|
73
|
+
manager = CodexChatManager(channel, context)
|
|
74
|
+
manager.record_thread("th-1", "/tmp/proj", "p-1")
|
|
75
|
+
manager.subscribe_thread("th-1", "closed-tab")
|
|
76
|
+
await manager._on_notification("turn/started", {"threadId": "th-1", "turnId": "turn-1"})
|
|
77
|
+
await manager._on_notification("item/agentMessage/delta", {
|
|
78
|
+
"threadId": "th-1", "itemId": "item-1", "delta": "private transcript",
|
|
79
|
+
})
|
|
80
|
+
assert [message["event"] for message in channel.sent] == ["codex_activity"]
|
|
81
|
+
assert "private transcript" not in str(channel.sent)
|
|
82
|
+
assert manager.live_items("th-1")[0]["text"] == "private transcript"
|
|
83
|
+
await manager._on_notification("turn/completed", {
|
|
84
|
+
"threadId": "th-1", "turn": {"id": "turn-1", "status": "completed"},
|
|
85
|
+
})
|
|
86
|
+
assert len(channel.sent) == 2
|
|
87
|
+
assert channel.sent[-1]["threads"][0]["notification"]["method"] == "turn/completed"
|
|
88
|
+
replacement = DummyControlChannel()
|
|
89
|
+
manager.rebind_transport(replacement, context)
|
|
90
|
+
await manager.publish_activity()
|
|
91
|
+
assert replacement.sent[0]["revision"] > channel.sent[-1]["revision"]
|
|
92
|
+
assert replacement.sent[0]["threads"] == channel.sent[-1]["threads"]
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
@pytest.mark.asyncio
|
|
96
|
+
async def test_thread_switch_and_explicit_close_override_remembered_subscription():
|
|
97
|
+
channel = DummyControlChannel()
|
|
98
|
+
sessions = DummyClientSessionManager()
|
|
99
|
+
manager = CodexChatManager(channel, {"client_session_manager": sessions})
|
|
100
|
+
manager.record_thread("th-1", "/tmp/proj", "p-1")
|
|
101
|
+
manager.subscribe_thread("th-1", "sess-1")
|
|
102
|
+
for selected in ["other-thread", None]:
|
|
103
|
+
sessions.selected = selected
|
|
104
|
+
await manager._on_notification("item/agentMessage/delta", {"threadId": "th-1", "delta": "hidden"})
|
|
105
|
+
assert channel.sent == []
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
@pytest.mark.asyncio
|
|
109
|
+
async def test_activity_requires_server_subscription_and_old_completion_cannot_end_new_turn():
|
|
110
|
+
channel = DummyControlChannel()
|
|
111
|
+
manager = CodexChatManager(channel, {"client_session_manager": DummyClientSessionManager([])})
|
|
112
|
+
manager.record_thread("th-1", "/tmp/proj", "p-1")
|
|
113
|
+
await manager._on_notification("turn/started", {"threadId": "th-1", "turnId": "new-turn"})
|
|
114
|
+
await manager._on_notification("turn/completed", {"threadId": "th-1", "turnId": "old-turn"})
|
|
115
|
+
assert manager._thread_active_turn == {"th-1": "new-turn"}
|
|
116
|
+
assert channel.sent == []
|
|
117
|
+
|
|
118
|
+
|
|
64
119
|
def test_codex_manager_rebind_transport_preserves_bridge_and_state():
|
|
65
120
|
old_channel = DummyControlChannel()
|
|
66
121
|
new_channel = DummyControlChannel()
|
|
@@ -543,7 +598,7 @@ async def test_notification_forwarding_targets_project():
|
|
|
543
598
|
|
|
544
599
|
|
|
545
600
|
@pytest.mark.asyncio
|
|
546
|
-
async def
|
|
601
|
+
async def test_remembered_session_cannot_bypass_live_registry():
|
|
547
602
|
channel = DummyControlChannel()
|
|
548
603
|
context = _context()
|
|
549
604
|
manager = CodexChatManager(channel, context)
|
|
@@ -555,7 +610,7 @@ async def test_resumed_thread_events_include_new_tab_before_session_registry_upd
|
|
|
555
610
|
{"threadId": "th-1", "delta": "live"},
|
|
556
611
|
)
|
|
557
612
|
|
|
558
|
-
assert channel.sent[-1]["client_sessions"] == ["
|
|
613
|
+
assert channel.sent[-1]["client_sessions"] == ["sess-1"]
|
|
559
614
|
|
|
560
615
|
|
|
561
616
|
@pytest.mark.asyncio
|
|
@@ -653,20 +708,8 @@ async def test_completed_turn_snapshot_is_not_replayed_on_resume():
|
|
|
653
708
|
|
|
654
709
|
payload = channel.sent[-1]
|
|
655
710
|
assert payload["liveItems"] == []
|
|
656
|
-
assert payload["completedTurnId"] == "turn-1"
|
|
657
|
-
assert payload["completedItems"][0]["text"] == "hello"
|
|
658
711
|
assert [item["id"] for item in payload["items"]] == ["msg-1"]
|
|
659
712
|
|
|
660
|
-
await manager._on_notification("turn/started", {"threadId": "th-1", "turnId": "turn-2"})
|
|
661
|
-
await handler.handle({
|
|
662
|
-
"cmd": "codex_thread_resume", "project_id": "p-1",
|
|
663
|
-
"threadId": "th-1", "syncId": "recovery-2",
|
|
664
|
-
})
|
|
665
|
-
payload = channel.sent[-1]
|
|
666
|
-
assert payload["syncId"] == "recovery-2"
|
|
667
|
-
assert payload["activeTurn"]["id"] == "turn-2"
|
|
668
|
-
assert "completedTurnId" not in payload
|
|
669
|
-
|
|
670
713
|
|
|
671
714
|
@pytest.mark.asyncio
|
|
672
715
|
async def test_active_turn_history_is_not_duplicated_with_live_snapshot():
|
|
@@ -763,6 +806,7 @@ async def test_codex_turn_start_records_thread_mapping():
|
|
|
763
806
|
async def test_codex_turn_start_routes_notification_before_rpc_response():
|
|
764
807
|
channel = DummyControlChannel()
|
|
765
808
|
context = _context()
|
|
809
|
+
context["client_session_manager"].selected = "th-9"
|
|
766
810
|
manager = CodexChatManager(channel, context)
|
|
767
811
|
manager.bridge = FakeBridge()
|
|
768
812
|
context["codex_manager"] = manager
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
portacode/README.md,sha256=R76fnJCKOnLiBEirTtc7fj4A6j5vAN1pdYMGNGqu1cs,1215
|
|
2
2
|
portacode/__init__.py,sha256=Hwk8wm5KA79qi06r0qKJKT2kjUlHrWaDtH4CyhnWFw8,1086
|
|
3
3
|
portacode/__main__.py,sha256=jmHTGC1hzmo9iKJLv-SSYe9BSIbPPZ2IOpecI03PlTs,296
|
|
4
|
-
portacode/_version.py,sha256=
|
|
4
|
+
portacode/_version.py,sha256=obNhDlKHI_ko41Hcu90RQh_uLpMcJN89grGgiQu8oY0,535
|
|
5
5
|
portacode/browser_cli.py,sha256=MEc_WxTeezR4WP9wKcC89FGDeXbLyN6Ybfs-foUnrEY,5995
|
|
6
6
|
portacode/browser_prepare.py,sha256=xZRMkSEDZxw1YYz4LbiiYbmF9nOkXLcGsgkbGtVFfmQ,4805
|
|
7
7
|
portacode/browser_runtime.py,sha256=YR0duDqZaZrgSy0I9HrfZqV2fzcU2kIvUG1VyBiC93c,4276
|
|
@@ -36,7 +36,7 @@ portacode/connection/client.py,sha256=QDFRwBjATw5tp-wlhkiz5OfL_jVAwRHcVpPOYg6ntO
|
|
|
36
36
|
portacode/connection/codex_app_server.py,sha256=Q16bD78Hf14mtiWQ4QIB8eCTEY4wZrVytrXxr36Mo2E,23245
|
|
37
37
|
portacode/connection/guest_host_protocol.py,sha256=bXghGvUFuj2yg89pPljLuS4ivEYwgM3BwDK7CHIc2Dk,6199
|
|
38
38
|
portacode/connection/multiplex.py,sha256=L-TxqJ_ZEbfNEfu1cwxgJ5vUdyRzZjsMy2Kx1diiZys,5237
|
|
39
|
-
portacode/connection/terminal.py,sha256=
|
|
39
|
+
portacode/connection/terminal.py,sha256=iOiHmz2Zna6BFebY3_eIJvJSTf2_q56eZIZ2lvDB6ik,75520
|
|
40
40
|
portacode/connection/test_guest_host_protocol.py,sha256=KhoXv4YMDYh6ENQrzW5rQNDZ3PMTP7oSN6iSC9KH4NE,2561
|
|
41
41
|
portacode/connection/test_guest_host_terminal.py,sha256=3c54_1fBHljdKmxpj4LYudVpgMZ-W8p_wB14WYVswps,5151
|
|
42
42
|
portacode/connection/test_webmin_proxy_config.py,sha256=52Qv9C0E5UzKUvQDJfREAb3RwJWs5R_CkKECrTWOsNg,1121
|
|
@@ -50,7 +50,7 @@ portacode/connection/handlers/browser_handlers.py,sha256=FRSxxkexiqJVq7zivDoPwEA
|
|
|
50
50
|
portacode/connection/handlers/chunked_content.py,sha256=h6hXRmxSeOgnIxoU8CkmvEf2Odv-ajPrpHIe_W3GKcA,9251
|
|
51
51
|
portacode/connection/handlers/cloudflare_forwarding.py,sha256=NXDKR9PZTngQ0AaH96QLICXPTKZMy-h6RCwa7F7nhVk,46928
|
|
52
52
|
portacode/connection/handlers/cloudflare_tunnel.py,sha256=qHBrm2rATxFmvfoC49YOBj0EUXjh_FETiWw66krxCIg,6655
|
|
53
|
-
portacode/connection/handlers/codex_handlers.py,sha256=
|
|
53
|
+
portacode/connection/handlers/codex_handlers.py,sha256=np7PxFC6nL68Qj99B7VD-1DdCayABR-KlideTxytjwU,53639
|
|
54
54
|
portacode/connection/handlers/diff_handlers.py,sha256=coN8gfY85KctBEs_bL9RCrZ6iymbP7zaB4Mzwgqrsck,24676
|
|
55
55
|
portacode/connection/handlers/file_handlers.py,sha256=ZPenZ14fJu7TTZSS79pLrAF2PKHMdbgmpzz5xZalW2I,44093
|
|
56
56
|
portacode/connection/handlers/file_transfer_handlers.py,sha256=otUb6x4roms-zFuuomyZFH68CNY5abr0A-eUMVgYAO8,7746
|
|
@@ -110,7 +110,7 @@ portacode/tests/test_browser_cli.py,sha256=ZmmNdRkIdLbTybWCKW6lCjktLRHvjK48wy1tQ
|
|
|
110
110
|
portacode/tests/test_browser_prepare.py,sha256=a75un88L1E5vX1B-1Qeh0ng6I_HictNcZ-Wf-F8uqKs,5395
|
|
111
111
|
portacode/tests/test_cli_service_logs.py,sha256=Fog68tVDMEe8zOcpfA1ukPRodhgjOwbTQ6Rm4leH6dQ,1733
|
|
112
112
|
portacode/tests/test_codex_app_server.py,sha256=xUiCno_Gx3Z5KrrhoxN38c5nGJBDgJ9bT7TDvFGZDMs,13993
|
|
113
|
-
portacode/tests/test_codex_handlers.py,sha256=
|
|
113
|
+
portacode/tests/test_codex_handlers.py,sha256=vacHHn0_eujVfsudnYL6WC_WOXbGb6IzS2_JwMcugC4,35432
|
|
114
114
|
portacode/tests/test_codex_loopback_proxy.py,sha256=W51wtATGxNMzODXY-tmRG5IU5N2FqIN8hvqQNxNv1xg,10423
|
|
115
115
|
portacode/tests/test_codex_prepare.py,sha256=n0LyedZq8IVP5OqR1pkd0h6Qvjax5_vDOwOnJGfUou8,13331
|
|
116
116
|
portacode/tests/test_codex_prepare_cli.py,sha256=hhhU3FDbLGfsSv2uC-sLzECfEScgeyyUXc_5JLNFBzw,2666
|
|
@@ -136,7 +136,7 @@ portacode/utils/diff_apply.py,sha256=ArkT-vEQ7iyA1Nfqufq1AiNtRLhoCMnC75FCRh2kNgI
|
|
|
136
136
|
portacode/utils/diff_renderer.py,sha256=S76StnQ2DLfsz4Gg0m07UwPfRp8270PuzbNaQq-rmYk,13850
|
|
137
137
|
portacode/utils/ntp_clock.py,sha256=VqCnWCTehCufE43W23oB-WUdAZGeCcLxkmIOPwInYHc,2499
|
|
138
138
|
portacode/utils/runtime_paths.py,sha256=G9ROho5f5gnDhoQ7vpEAX2XifBzoJTvqTylkF2Hkx8E,1660
|
|
139
|
-
portacode-2.2.28.
|
|
139
|
+
portacode-2.2.28.dev1.dist-info/licenses/LICENSE,sha256=iiV44E3po4OL77NL8diCk3WtYvCNGu6gUci2TYxVUgQ,5520
|
|
140
140
|
test_modules/README.md,sha256=Do_agkm9WhSzueXjRAkV_xEj6Emy5zB3N3VKY5Roce8,9274
|
|
141
141
|
test_modules/__init__.py,sha256=1LcbHodIHsB0g-g4NGjSn6AMuCoGbymvXPYLOb6Z7F0,53
|
|
142
142
|
test_modules/test_device_online.py,sha256=QtYq0Dq9vME8Gp2O4fGSheqVf8LUtpsSKosXXk56gGM,1654
|
|
@@ -162,8 +162,8 @@ testing_framework/core/playwright_manager.py,sha256=asMe7zQg8Kp3a71F7pv92OiFt63B
|
|
|
162
162
|
testing_framework/core/runner.py,sha256=t3fq0mGCVUCE_TbieEPwmLKjxe44ez29SzW8G33ACME,19746
|
|
163
163
|
testing_framework/core/shared_cli_manager.py,sha256=BESSNtyQb7BOlaOvZmm04T8Uezjms4KCBs2MzTxvzYQ,8790
|
|
164
164
|
testing_framework/core/test_discovery.py,sha256=2FZ9fJ8Dp5dloA-fkgXoJ_gCMC_nYPBnA3Hs2xlagzM,4928
|
|
165
|
-
portacode-2.2.28.
|
|
166
|
-
portacode-2.2.28.
|
|
167
|
-
portacode-2.2.28.
|
|
168
|
-
portacode-2.2.28.
|
|
169
|
-
portacode-2.2.28.
|
|
165
|
+
portacode-2.2.28.dev1.dist-info/METADATA,sha256=6k8rk8bpoP6om8s7SfbLEpgIIdngcBBDJyEod-vPDNw,12851
|
|
166
|
+
portacode-2.2.28.dev1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
167
|
+
portacode-2.2.28.dev1.dist-info/entry_points.txt,sha256=0cV_SuIztVnLWACUY5KMR8K8pWdAsLiaFbLXE5He0rk,151
|
|
168
|
+
portacode-2.2.28.dev1.dist-info/top_level.txt,sha256=TGhTYUxfW8SyVZc_zGgzjzc24gGT7nSw8Qf73liVRKM,41
|
|
169
|
+
portacode-2.2.28.dev1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|