codexed 1.1.5__tar.gz → 1.1.6__tar.gz
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.
- {codexed-1.1.5 → codexed-1.1.6}/PKG-INFO +1 -1
- {codexed-1.1.5 → codexed-1.1.6}/pyproject.toml +1 -1
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/models/thread_item.py +41 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/transport.py +1 -1
- {codexed-1.1.5 → codexed-1.1.6}/LICENSE +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/README.md +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/README.md +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/__init__.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/client/__init__.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/client/client.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/client/dispatch.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/client/fs.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/client/realtime.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/client/session.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/client/skills.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/exceptions.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/helpers.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/log.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/models/__init__.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/models/base.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/models/codex_types.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/models/event_data.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/models/events.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/models/mcp_server.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/models/misc.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/models/request_params.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/models/responses.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/models/tool_config.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/models/user_input.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/models/v2_protocol.py +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/py.typed +0 -0
- {codexed-1.1.5 → codexed-1.1.6}/src/codexed/request_handlers.py +0 -0
|
@@ -51,6 +51,14 @@ class BaseThreadItem(CodexBaseModel):
|
|
|
51
51
|
|
|
52
52
|
id: str
|
|
53
53
|
|
|
54
|
+
@property
|
|
55
|
+
def inferred_arguments(self) -> dict[str, Any] | None:
|
|
56
|
+
"""Best-effort reconstruction of tool-call-like arguments.
|
|
57
|
+
|
|
58
|
+
Returns a dict for tool-like items, None for non-tool items.
|
|
59
|
+
"""
|
|
60
|
+
return None
|
|
61
|
+
|
|
54
62
|
|
|
55
63
|
class ThreadItemUserMessage(BaseThreadItem):
|
|
56
64
|
"""User message item."""
|
|
@@ -96,6 +104,10 @@ class ThreadItemCommandExecution(BaseThreadItem):
|
|
|
96
104
|
exit_code: int | None = None
|
|
97
105
|
duration_ms: int | None = None
|
|
98
106
|
|
|
107
|
+
@property
|
|
108
|
+
def inferred_arguments(self) -> dict[str, Any]:
|
|
109
|
+
return {"command": self.command, "cwd": self.cwd}
|
|
110
|
+
|
|
99
111
|
@property
|
|
100
112
|
def item_summary(self) -> str:
|
|
101
113
|
"""Human-readable summary of this command execution."""
|
|
@@ -113,6 +125,10 @@ class ThreadItemFileChange(BaseThreadItem):
|
|
|
113
125
|
changes: list[FileUpdateChange]
|
|
114
126
|
status: PatchApplyStatus
|
|
115
127
|
|
|
128
|
+
@property
|
|
129
|
+
def inferred_arguments(self) -> dict[str, Any]:
|
|
130
|
+
return {"changes": [c.model_dump() for c in self.changes]}
|
|
131
|
+
|
|
116
132
|
@property
|
|
117
133
|
def item_summary(self) -> str:
|
|
118
134
|
"""Human-readable summary of file changes."""
|
|
@@ -134,6 +150,10 @@ class ThreadItemMcpToolCall(BaseThreadItem):
|
|
|
134
150
|
error: McpToolCallError | None = None
|
|
135
151
|
duration_ms: int | None = None
|
|
136
152
|
|
|
153
|
+
@property
|
|
154
|
+
def inferred_arguments(self) -> dict[str, Any] | None:
|
|
155
|
+
return self.arguments
|
|
156
|
+
|
|
137
157
|
@property
|
|
138
158
|
def item_summary(self) -> str:
|
|
139
159
|
"""Human-readable summary of this MCP tool call."""
|
|
@@ -155,6 +175,10 @@ class ThreadItemDynamicToolCall(BaseThreadItem):
|
|
|
155
175
|
success: bool | None = None
|
|
156
176
|
duration_ms: int | None = None
|
|
157
177
|
|
|
178
|
+
@property
|
|
179
|
+
def inferred_arguments(self) -> dict[str, Any] | None:
|
|
180
|
+
return self.arguments
|
|
181
|
+
|
|
158
182
|
|
|
159
183
|
class ThreadItemWebSearch(BaseThreadItem):
|
|
160
184
|
"""Web search item."""
|
|
@@ -163,6 +187,10 @@ class ThreadItemWebSearch(BaseThreadItem):
|
|
|
163
187
|
query: str
|
|
164
188
|
action: WebSearchAction | None = None
|
|
165
189
|
|
|
190
|
+
@property
|
|
191
|
+
def inferred_arguments(self) -> dict[str, Any]:
|
|
192
|
+
return {"query": self.query}
|
|
193
|
+
|
|
166
194
|
@property
|
|
167
195
|
def item_summary(self) -> str:
|
|
168
196
|
"""Human-readable summary of this web search."""
|
|
@@ -175,6 +203,10 @@ class ThreadItemImageView(BaseThreadItem):
|
|
|
175
203
|
type: Literal["imageView"] = "imageView"
|
|
176
204
|
path: str
|
|
177
205
|
|
|
206
|
+
@property
|
|
207
|
+
def inferred_arguments(self) -> dict[str, Any]:
|
|
208
|
+
return {"path": self.path}
|
|
209
|
+
|
|
178
210
|
@property
|
|
179
211
|
def item_summary(self) -> str:
|
|
180
212
|
"""Human-readable summary of this image view."""
|
|
@@ -222,6 +254,15 @@ class ThreadItemCollabAgentToolCall(BaseThreadItem):
|
|
|
222
254
|
prompt: str | None = None
|
|
223
255
|
agents_states: dict[str, CollabAgentState] = Field(default_factory=dict)
|
|
224
256
|
|
|
257
|
+
@property
|
|
258
|
+
def inferred_arguments(self) -> dict[str, Any]:
|
|
259
|
+
args: dict[str, Any] = {"tool": self.tool}
|
|
260
|
+
if self.prompt is not None:
|
|
261
|
+
args["prompt"] = self.prompt
|
|
262
|
+
if self.receiver_thread_ids:
|
|
263
|
+
args["receiver_thread_ids"] = self.receiver_thread_ids
|
|
264
|
+
return args
|
|
265
|
+
|
|
225
266
|
@property
|
|
226
267
|
def item_summary(self) -> str:
|
|
227
268
|
"""Human-readable summary of this collab agent tool call."""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|