codexed 1.1.2__tar.gz → 1.1.3__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.
Files changed (33) hide show
  1. {codexed-1.1.2 → codexed-1.1.3}/PKG-INFO +1 -1
  2. {codexed-1.1.2 → codexed-1.1.3}/pyproject.toml +1 -1
  3. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/client/client.py +2 -2
  4. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/models/codex_types.py +0 -1
  5. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/models/request_params.py +3 -47
  6. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/models/responses.py +10 -11
  7. {codexed-1.1.2 → codexed-1.1.3}/LICENSE +0 -0
  8. {codexed-1.1.2 → codexed-1.1.3}/README.md +0 -0
  9. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/README.md +0 -0
  10. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/__init__.py +0 -0
  11. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/client/__init__.py +0 -0
  12. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/client/dispatch.py +0 -0
  13. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/client/fs.py +0 -0
  14. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/client/realtime.py +0 -0
  15. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/client/session.py +0 -0
  16. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/client/skills.py +0 -0
  17. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/exceptions.py +0 -0
  18. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/helpers.py +0 -0
  19. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/log.py +0 -0
  20. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/models/__init__.py +3 -3
  21. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/models/base.py +0 -0
  22. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/models/event_data.py +0 -0
  23. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/models/events.py +0 -0
  24. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/models/mcp_server.py +0 -0
  25. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/models/misc.py +0 -0
  26. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/models/response_item.py +0 -0
  27. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/models/thread_item.py +0 -0
  28. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/models/tool_config.py +0 -0
  29. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/models/user_input.py +0 -0
  30. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/models/v2_protocol.py +0 -0
  31. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/py.typed +0 -0
  32. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/request_handlers.py +0 -0
  33. {codexed-1.1.2 → codexed-1.1.3}/src/codexed/transport.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codexed
3
- Version: 1.1.2
3
+ Version: 1.1.3
4
4
  Summary: Alternative codex app-server client
5
5
  Keywords:
6
6
  Author: Philipp Temminghoff
@@ -2,7 +2,7 @@
2
2
 
3
3
  [project]
4
4
  name = "codexed"
5
- version = "1.1.2"
5
+ version = "1.1.3"
6
6
  description = "Alternative codex app-server client"
7
7
  readme = "README.md"
8
8
  requires-python = ">=3.13"
@@ -190,11 +190,11 @@ class CodexClient:
190
190
  async def __aenter__(self) -> Self:
191
191
  """Async context manager entry - starts the app-server."""
192
192
  import codexed
193
- from codexed.models import InitializeParams
193
+ from codexed.models import ClientInfo, InitializeParams
194
194
 
195
195
  await self.dispatch.start()
196
196
  version = codexed.__version__
197
- init_params = InitializeParams.create(name="codexed", version=version)
197
+ init_params = InitializeParams(client_info=ClientInfo(name="codexed", version=version))
198
198
  await self.dispatch.send_request("initialize", init_params)
199
199
  return self
200
200
 
@@ -13,7 +13,6 @@ from codexed.models.v2_protocol import NetworkAccess, RestrictedReadOnlyAccess
13
13
  # Type aliases for Codex types
14
14
  ApprovalPolicy = Literal["untrusted", "on-failure", "on-request", "never"]
15
15
  ItemStatus = Literal["pending", "running", "completed", "error"]
16
- McpElicitationAction = Literal["accept", "decline", "cancel"]
17
16
  McpServerStartupState = Literal["starting", "ready", "failed", "cancelled"]
18
17
  """Action taken by the user on an elicitation request."""
19
18
  ApprovalDecision = Literal["allow", "allowForSession", "deny", "denyForSession"]
@@ -1,12 +1,11 @@
1
1
  from __future__ import annotations
2
2
 
3
- from collections.abc import Sequence
4
- from typing import TYPE_CHECKING, Annotated, Any, Literal, Required, Self, TypedDict
3
+ from typing import TYPE_CHECKING, Annotated, Any, Literal, Required, TypedDict
5
4
 
6
5
  from pydantic import Discriminator, TypeAdapter
7
6
 
8
7
  from codexed.models.base import CodexBaseModel
9
- from codexed.models.codex_types import ApprovalDecision, ApprovalPolicy
8
+ from codexed.models.codex_types import ApprovalDecision
10
9
  from codexed.models.misc import (
11
10
  ExecPolicyAmendment,
12
11
  NetworkApprovalContext,
@@ -14,16 +13,11 @@ from codexed.models.misc import (
14
13
  ToolRequestUserInputQuestion,
15
14
  )
16
15
  from codexed.models.response_item import ResponseItem
17
- from codexed.models.user_input import UserInput
18
16
  from codexed.models.v2_protocol import (
19
17
  ApprovalsReviewer,
20
18
  AskForApproval,
21
- ClientInfo,
22
- CollaborationMode,
23
19
  CommandAction,
24
20
  Personality,
25
- ReasoningEffort,
26
- ReasoningSummary,
27
21
  SandboxMode,
28
22
  ServiceTier,
29
23
  )
@@ -35,16 +29,7 @@ if TYPE_CHECKING:
35
29
 
36
30
  HazelnutScope = Literal["example", "workspace-shared", "all-shared", "personal"]
37
31
  ProductSurface = Literal["chatgpt", "codex", "api", "atlas"]
38
-
39
-
40
- class InitializeParams(CodexBaseModel):
41
- """Parameters for initialize request."""
42
-
43
- client_info: ClientInfo
44
-
45
- @classmethod
46
- def create(cls, name: str, version: str) -> Self:
47
- return cls(client_info=ClientInfo(name=name, version=version))
32
+ PersistOption = Literal["session", "always"]
48
33
 
49
34
 
50
35
  class ThreadResumeParams(CodexBaseModel):
@@ -67,32 +52,6 @@ class ThreadResumeParams(CodexBaseModel):
67
52
  persist_extended_history: bool = False
68
53
 
69
54
 
70
- class TurnStartParams(CodexBaseModel):
71
- """Parameters for turn/start request."""
72
-
73
- thread_id: str
74
- input: Sequence[UserInput]
75
- model: str | None = None
76
- effort: ReasoningEffort | None = None
77
- approval_policy: ApprovalPolicy | None = None
78
- approvals_reviewer: ApprovalsReviewer | None = None
79
- cwd: str | None = None
80
- sandbox_policy: dict[str, Any] | None = None # Sandbox config - flexible structure
81
- service_tier: ServiceTier | None = None
82
- summary: ReasoningSummary | None = None
83
- output_schema: dict[str, Any] | None = None # JSON Schema - arbitrary structure
84
- personality: Personality | None = None
85
- collaboration_mode: CollaborationMode | None = None
86
-
87
-
88
- class TurnSteerParams(CodexBaseModel):
89
- """Parameters for turn/steer request."""
90
-
91
- thread_id: str
92
- input: Sequence[UserInput]
93
- expected_turn_id: str
94
-
95
-
96
55
  class SkillsRemoteListParams(CodexBaseModel):
97
56
  """Parameters for skills/remote/list request."""
98
57
 
@@ -166,9 +125,6 @@ class DynamicToolCallParams(CodexBaseModel):
166
125
  arguments: Any
167
126
 
168
127
 
169
- PersistOption = Literal["session", "always"]
170
-
171
-
172
128
  class ToolApprovalParamDisplay(TypedDict):
173
129
  """A rendered tool parameter for display."""
174
130
 
@@ -1,11 +1,16 @@
1
1
  from __future__ import annotations
2
2
 
3
- from typing import Any, Literal
3
+ from typing import Any
4
4
 
5
5
  import mcp.types
6
6
 
7
7
  from codexed.models.base import CodexBaseModel
8
- from codexed.models.codex_types import ApprovalDecision, AskForApproval, SandboxPolicy
8
+ from codexed.models.codex_types import (
9
+ ApprovalDecision,
10
+ AskForApproval,
11
+ ElicitationAction,
12
+ SandboxPolicy,
13
+ )
9
14
  from codexed.models.misc import (
10
15
  McpServerStatusEntry,
11
16
  Thread,
@@ -16,8 +21,8 @@ from codexed.models.misc import (
16
21
  from codexed.models.v2_protocol import (
17
22
  AuthMode,
18
23
  DynamicToolCallOutputContentItem,
19
- ExternalAgentConfigMigrationItem,
20
24
  ReasoningEffort,
25
+ ServiceTier,
21
26
  )
22
27
 
23
28
 
@@ -49,7 +54,7 @@ class DynamicToolCallResponse(CodexBaseModel):
49
54
  class McpServerElicitationResponse(CodexBaseModel):
50
55
  """Response for mcpServer/elicitation/request server request."""
51
56
 
52
- action: Literal["accept", "decline", "cancel"]
57
+ action: ElicitationAction
53
58
  content: Any | None = None
54
59
  meta: Any | None = None
55
60
  """Optional metadata to include in the response.
@@ -86,7 +91,7 @@ class ThreadResponse(CodexBaseModel):
86
91
  approval_policy: AskForApproval
87
92
  sandbox: SandboxPolicy
88
93
  reasoning_effort: ReasoningEffort | None = None
89
- service_tier: Literal["flex", "fast"] | None = None
94
+ service_tier: ServiceTier | None = None
90
95
 
91
96
 
92
97
  class TurnStartResponse(CodexBaseModel):
@@ -161,9 +166,3 @@ class LoginAccountResponse(CodexBaseModel):
161
166
  type: AuthMode
162
167
  login_id: str | None = None
163
168
  auth_url: str | None = None
164
-
165
-
166
- class ExternalAgentConfigDetectResponse(CodexBaseModel):
167
- """Response for externalAgentConfig/detect request."""
168
-
169
- items: list[ExternalAgentConfigMigrationItem]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -68,11 +68,11 @@ from codexed.models.misc import (
68
68
  TurnData,
69
69
  )
70
70
  from codexed.models.request_params import (
71
- InitializeParams,
72
71
  HazelnutScope,
73
72
  ProductSurface,
74
73
  CommandExecutionRequestApprovalParams,
75
74
  DynamicToolCallParams,
75
+ ThreadResumeParams,
76
76
  FileChangeRequestApprovalParams,
77
77
  McpElicitationFormParams,
78
78
  McpElicitationUrlParams,
@@ -86,7 +86,6 @@ from codexed.models.request_params import (
86
86
  from codexed.models.responses import (
87
87
  CommandExecutionRequestApprovalResponse,
88
88
  DynamicToolCallResponse,
89
- ExternalAgentConfigDetectResponse,
90
89
  FileChangeRequestApprovalResponse,
91
90
  ListMcpServerStatusResponse,
92
91
  LoginAccountResponse,
@@ -161,11 +160,13 @@ from codexed.models.user_input import (
161
160
  from codexed.models.v2_protocol import (
162
161
  ByteRange,
163
162
  ExternalAgentConfigImportParams,
163
+ InitializeParams,
164
164
  CommandExecParams,
165
165
  ThreadStartParams,
166
166
  ThreadForkParams,
167
167
  CompactionResponseItem,
168
168
  ContentItem,
169
+ ExternalAgentConfigDetectResponse,
169
170
  CustomToolCallOutputResponseItem,
170
171
  CustomToolCallResponseItem,
171
172
  FunctionCallOutputResponseItem,
@@ -180,7 +181,6 @@ from codexed.models.v2_protocol import (
180
181
  WebSearchCallResponseItem,
181
182
  ReviewStartParams,
182
183
  ReviewTarget,
183
- ThreadResumeParams,
184
184
  TurnStartParams,
185
185
  TurnSteerParams,
186
186
  ConfigBatchWriteParams,
File without changes