@meistrari/agent-core 0.0.0 → 0.1.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.
Files changed (83) hide show
  1. package/README.md +24 -3
  2. package/bin/supervisor.ts +116 -0
  3. package/package.json +42 -3
  4. package/scripts/build-supervisor-executable.ts +32 -0
  5. package/src/agents/agent-error-serializer.ts +23 -0
  6. package/src/agents/agent-event-stream.ts +81 -0
  7. package/src/agents/agent-id.ts +17 -0
  8. package/src/agents/agent-operation.ts +11 -0
  9. package/src/agents/agent-provider.ts +37 -0
  10. package/src/agents/agent-run.ts +32 -0
  11. package/src/agents/agent-runtime-error.ts +161 -0
  12. package/src/agents/agent-session-events.ts +32 -0
  13. package/src/agents/agent-tool-runner.ts +83 -0
  14. package/src/agents/agent-tool.ts +111 -0
  15. package/src/agents/author-context.ts +36 -0
  16. package/src/agents/claude/claude-command-mapper.ts +234 -0
  17. package/src/agents/claude/claude-event-mapper.ts +736 -0
  18. package/src/agents/claude/claude-provider.ts +191 -0
  19. package/src/agents/claude/claude-run.ts +464 -0
  20. package/src/agents/claude/claude-tool-mapper.ts +186 -0
  21. package/src/agents/claude/index.ts +1 -0
  22. package/src/agents/codex/codex-auth.ts +34 -0
  23. package/src/agents/codex/codex-command-mapper.ts +78 -0
  24. package/src/agents/codex/codex-event-mapper.ts +708 -0
  25. package/src/agents/codex/codex-json-rpc-client.ts +326 -0
  26. package/src/agents/codex/codex-protocol.ts +36 -0
  27. package/src/agents/codex/codex-provider.ts +1050 -0
  28. package/src/agents/codex/codex-run.ts +404 -0
  29. package/src/agents/codex/codex-skill-catalog.ts +158 -0
  30. package/src/agents/codex/codex-skill-roots.ts +19 -0
  31. package/src/agents/codex/codex-tool-mapper.ts +55 -0
  32. package/src/agents/codex/codex.errors.ts +68 -0
  33. package/src/agents/codex/generated/meta.gen.ts +606 -0
  34. package/src/agents/codex/generated/namespaces.gen.ts +311 -0
  35. package/src/agents/codex/generated/schema.gen.ts +34883 -0
  36. package/src/agents/codex/index.ts +2 -0
  37. package/src/agents/index.ts +14 -0
  38. package/src/agents/input-attachment-preparation.ts +86 -0
  39. package/src/agents/input-attachment.errors.ts +16 -0
  40. package/src/agents/instructions.ts +8 -0
  41. package/src/agents/materialized-input-attachment.ts +26 -0
  42. package/src/agents/message-id.ts +23 -0
  43. package/src/agents/normalize.ts +8 -0
  44. package/src/agents/sandbox-environment.ts +1 -0
  45. package/src/agents/tools/ping.tool.ts +13 -0
  46. package/src/agents/user-input-request.ts +470 -0
  47. package/src/provenance.gen.ts +3 -3
  48. package/src/supervisor/agent-provider-factory.ts +189 -0
  49. package/src/supervisor/bootstrap-binder.ts +125 -0
  50. package/src/supervisor/config.ts +49 -0
  51. package/src/supervisor/control-authority-verifier.ts +135 -0
  52. package/src/supervisor/create-supervisor-runtime.ts +25 -0
  53. package/src/supervisor/errors.ts +24 -0
  54. package/src/supervisor/index.ts +34 -0
  55. package/src/supervisor/persistence/json.ts +21 -0
  56. package/src/supervisor/persistence/state-discovery.ts +56 -0
  57. package/src/supervisor/persistence/supervisor-store.ts +364 -0
  58. package/src/supervisor/ports/index.ts +109 -0
  59. package/src/supervisor/provider-factory.ts +37 -0
  60. package/src/supervisor/resident.ts +143 -0
  61. package/src/supervisor/rpc-client.ts +120 -0
  62. package/src/supervisor/runtime-handler.ts +309 -0
  63. package/src/supervisor/websocket-server.ts +434 -0
  64. package/src/supervisor-protocol/bootstrap.ts +1 -1
  65. package/src/template-onboarding.ts +47 -0
  66. package/src/testing/es256-test-keys.ts +73 -0
  67. package/src/testing/in-memory-runtime-control-plane.ts +205 -0
  68. package/src/testing/index.ts +6 -0
  69. package/src/testing/loopback-supervisor-connection.ts +71 -0
  70. package/src/testing/scripted-provider.ts +64 -0
  71. package/src/worker-runtime-client/command-pump.ts +132 -0
  72. package/src/worker-runtime-client/connection-attempt.ts +340 -0
  73. package/src/worker-runtime-client/control-authority-signer.ts +100 -0
  74. package/src/worker-runtime-client/e2b-supervisor-connection.ts +102 -0
  75. package/src/worker-runtime-client/frame-processor.ts +178 -0
  76. package/src/worker-runtime-client/index.ts +27 -0
  77. package/src/worker-runtime-client/lease-reconciler.ts +14 -0
  78. package/src/worker-runtime-client/ports.ts +137 -0
  79. package/src/worker-runtime-client/postgres-notification-listener.ts +91 -0
  80. package/src/worker-runtime-client/rpc-dispatcher.ts +27 -0
  81. package/src/worker-runtime-client/rpc-request-manager.ts +141 -0
  82. package/src/worker-runtime-client/sandbox-connection-runtime.ts +300 -0
  83. package/src/worker-runtime-client/token-crypto.ts +46 -0
@@ -0,0 +1,606 @@
1
+ /* eslint-disable style/indent, style/member-delimiter-style, style/quotes, style/semi, style/quote-props */
2
+ // This file is generated by scripts/generate-codex-protocol.ts. Do not edit manually.
3
+ // Upstream Codex protocol ref: 25af12f7e61572b0bc18ddb1008be543b91519b0
4
+
5
+ import type * as CodexSchema from "./schema.gen.js";
6
+
7
+ export const CLIENT_REQUEST_METHODS = {
8
+ "initialize": "initialize",
9
+ "thread/start": "thread/start",
10
+ "thread/resume": "thread/resume",
11
+ "thread/fork": "thread/fork",
12
+ "thread/archive": "thread/archive",
13
+ "thread/delete": "thread/delete",
14
+ "thread/unsubscribe": "thread/unsubscribe",
15
+ "thread/increment_elicitation": "thread/increment_elicitation",
16
+ "thread/decrement_elicitation": "thread/decrement_elicitation",
17
+ "thread/name/set": "thread/name/set",
18
+ "thread/goal/set": "thread/goal/set",
19
+ "thread/goal/get": "thread/goal/get",
20
+ "thread/goal/clear": "thread/goal/clear",
21
+ "thread/metadata/update": "thread/metadata/update",
22
+ "thread/settings/update": "thread/settings/update",
23
+ "thread/memoryMode/set": "thread/memoryMode/set",
24
+ "memory/reset": "memory/reset",
25
+ "thread/unarchive": "thread/unarchive",
26
+ "thread/compact/start": "thread/compact/start",
27
+ "thread/shellCommand": "thread/shellCommand",
28
+ "thread/approveGuardianDeniedAction": "thread/approveGuardianDeniedAction",
29
+ "thread/backgroundTerminals/clean": "thread/backgroundTerminals/clean",
30
+ "thread/backgroundTerminals/list": "thread/backgroundTerminals/list",
31
+ "thread/backgroundTerminals/terminate": "thread/backgroundTerminals/terminate",
32
+ "thread/rollback": "thread/rollback",
33
+ "thread/list": "thread/list",
34
+ "thread/search": "thread/search",
35
+ "thread/searchOccurrences": "thread/searchOccurrences",
36
+ "thread/loaded/list": "thread/loaded/list",
37
+ "thread/read": "thread/read",
38
+ "thread/turns/list": "thread/turns/list",
39
+ "thread/items/list": "thread/items/list",
40
+ "thread/inject_items": "thread/inject_items",
41
+ "skills/list": "skills/list",
42
+ "skills/extraRoots/set": "skills/extraRoots/set",
43
+ "hooks/list": "hooks/list",
44
+ "marketplace/add": "marketplace/add",
45
+ "marketplace/remove": "marketplace/remove",
46
+ "marketplace/upgrade": "marketplace/upgrade",
47
+ "plugin/list": "plugin/list",
48
+ "plugin/installed": "plugin/installed",
49
+ "plugin/read": "plugin/read",
50
+ "plugin/skill/read": "plugin/skill/read",
51
+ "plugin/share/save": "plugin/share/save",
52
+ "plugin/share/updateTargets": "plugin/share/updateTargets",
53
+ "plugin/share/list": "plugin/share/list",
54
+ "plugin/share/checkout": "plugin/share/checkout",
55
+ "plugin/share/delete": "plugin/share/delete",
56
+ "app/read": "app/read",
57
+ "app/list": "app/list",
58
+ "app/installed": "app/installed",
59
+ "fs/readFile": "fs/readFile",
60
+ "fs/writeFile": "fs/writeFile",
61
+ "fs/createDirectory": "fs/createDirectory",
62
+ "fs/getMetadata": "fs/getMetadata",
63
+ "fs/readDirectory": "fs/readDirectory",
64
+ "fs/remove": "fs/remove",
65
+ "fs/copy": "fs/copy",
66
+ "fs/watch": "fs/watch",
67
+ "fs/unwatch": "fs/unwatch",
68
+ "skills/config/write": "skills/config/write",
69
+ "plugin/install": "plugin/install",
70
+ "plugin/uninstall": "plugin/uninstall",
71
+ "turn/start": "turn/start",
72
+ "turn/steer": "turn/steer",
73
+ "turn/interrupt": "turn/interrupt",
74
+ "thread/realtime/start": "thread/realtime/start",
75
+ "thread/realtime/appendAudio": "thread/realtime/appendAudio",
76
+ "thread/realtime/appendText": "thread/realtime/appendText",
77
+ "thread/realtime/appendSpeech": "thread/realtime/appendSpeech",
78
+ "thread/realtime/stop": "thread/realtime/stop",
79
+ "thread/realtime/listVoices": "thread/realtime/listVoices",
80
+ "review/start": "review/start",
81
+ "model/list": "model/list",
82
+ "modelProvider/capabilities/read": "modelProvider/capabilities/read",
83
+ "experimentalFeature/list": "experimentalFeature/list",
84
+ "permissionProfile/list": "permissionProfile/list",
85
+ "experimentalFeature/enablement/set": "experimentalFeature/enablement/set",
86
+ "remoteControl/enable": "remoteControl/enable",
87
+ "remoteControl/disable": "remoteControl/disable",
88
+ "remoteControl/status/read": "remoteControl/status/read",
89
+ "remoteControl/pairing/start": "remoteControl/pairing/start",
90
+ "remoteControl/pairing/status": "remoteControl/pairing/status",
91
+ "remoteControl/client/list": "remoteControl/client/list",
92
+ "remoteControl/client/revoke": "remoteControl/client/revoke",
93
+ "collaborationMode/list": "collaborationMode/list",
94
+ "mock/experimentalMethod": "mock/experimentalMethod",
95
+ "environment/add": "environment/add",
96
+ "environment/info": "environment/info",
97
+ "environment/status": "environment/status",
98
+ "mcpServer/oauth/login": "mcpServer/oauth/login",
99
+ "config/mcpServer/reload": "config/mcpServer/reload",
100
+ "mcpServerStatus/list": "mcpServerStatus/list",
101
+ "mcpServer/resource/read": "mcpServer/resource/read",
102
+ "mcpServer/tool/call": "mcpServer/tool/call",
103
+ "windowsSandbox/setupStart": "windowsSandbox/setupStart",
104
+ "windowsSandbox/readiness": "windowsSandbox/readiness",
105
+ "account/login/start": "account/login/start",
106
+ "account/login/cancel": "account/login/cancel",
107
+ "account/logout": "account/logout",
108
+ "account/rateLimits/read": "account/rateLimits/read",
109
+ "account/rateLimitResetCredit/consume": "account/rateLimitResetCredit/consume",
110
+ "account/usage/read": "account/usage/read",
111
+ "account/workspaceMessages/read": "account/workspaceMessages/read",
112
+ "account/sendAddCreditsNudgeEmail": "account/sendAddCreditsNudgeEmail",
113
+ "feedback/upload": "feedback/upload",
114
+ "command/exec": "command/exec",
115
+ "command/exec/write": "command/exec/write",
116
+ "command/exec/terminate": "command/exec/terminate",
117
+ "command/exec/resize": "command/exec/resize",
118
+ "process/spawn": "process/spawn",
119
+ "process/writeStdin": "process/writeStdin",
120
+ "process/kill": "process/kill",
121
+ "process/resizePty": "process/resizePty",
122
+ "config/read": "config/read",
123
+ "externalAgentConfig/detect": "externalAgentConfig/detect",
124
+ "externalAgentConfig/import": "externalAgentConfig/import",
125
+ "externalAgentConfig/import/readHistories": "externalAgentConfig/import/readHistories",
126
+ "config/value/write": "config/value/write",
127
+ "config/batchWrite": "config/batchWrite",
128
+ "configRequirements/read": "configRequirements/read",
129
+ "account/read": "account/read",
130
+ "getConversationSummary": "getConversationSummary",
131
+ "gitDiffToRemote": "gitDiffToRemote",
132
+ "getAuthStatus": "getAuthStatus",
133
+ "fuzzyFileSearch": "fuzzyFileSearch",
134
+ "fuzzyFileSearch/sessionStart": "fuzzyFileSearch/sessionStart",
135
+ "fuzzyFileSearch/sessionUpdate": "fuzzyFileSearch/sessionUpdate",
136
+ "fuzzyFileSearch/sessionStop": "fuzzyFileSearch/sessionStop",
137
+ } as const;
138
+
139
+ export const CLIENT_NOTIFICATION_METHODS = {
140
+ "initialized": "initialized",
141
+ } as const;
142
+
143
+ export const SERVER_REQUEST_METHODS = {
144
+ "item/commandExecution/requestApproval": "item/commandExecution/requestApproval",
145
+ "item/fileChange/requestApproval": "item/fileChange/requestApproval",
146
+ "item/tool/requestUserInput": "item/tool/requestUserInput",
147
+ "mcpServer/elicitation/request": "mcpServer/elicitation/request",
148
+ "item/permissions/requestApproval": "item/permissions/requestApproval",
149
+ "item/tool/call": "item/tool/call",
150
+ "account/chatgptAuthTokens/refresh": "account/chatgptAuthTokens/refresh",
151
+ "attestation/generate": "attestation/generate",
152
+ "currentTime/read": "currentTime/read",
153
+ "applyPatchApproval": "applyPatchApproval",
154
+ "execCommandApproval": "execCommandApproval",
155
+ } as const;
156
+
157
+ export const SERVER_NOTIFICATION_METHODS = {
158
+ "error": "error",
159
+ "thread/started": "thread/started",
160
+ "thread/status/changed": "thread/status/changed",
161
+ "thread/archived": "thread/archived",
162
+ "thread/deleted": "thread/deleted",
163
+ "thread/unarchived": "thread/unarchived",
164
+ "thread/closed": "thread/closed",
165
+ "skills/changed": "skills/changed",
166
+ "thread/name/updated": "thread/name/updated",
167
+ "thread/goal/updated": "thread/goal/updated",
168
+ "thread/goal/cleared": "thread/goal/cleared",
169
+ "thread/environment/connected": "thread/environment/connected",
170
+ "thread/environment/disconnected": "thread/environment/disconnected",
171
+ "thread/settings/updated": "thread/settings/updated",
172
+ "thread/tokenUsage/updated": "thread/tokenUsage/updated",
173
+ "turn/started": "turn/started",
174
+ "hook/started": "hook/started",
175
+ "turn/completed": "turn/completed",
176
+ "hook/completed": "hook/completed",
177
+ "turn/diff/updated": "turn/diff/updated",
178
+ "turn/plan/updated": "turn/plan/updated",
179
+ "item/started": "item/started",
180
+ "item/autoApprovalReview/started": "item/autoApprovalReview/started",
181
+ "item/autoApprovalReview/completed": "item/autoApprovalReview/completed",
182
+ "item/completed": "item/completed",
183
+ "rawResponseItem/completed": "rawResponseItem/completed",
184
+ "rawResponse/completed": "rawResponse/completed",
185
+ "item/agentMessage/delta": "item/agentMessage/delta",
186
+ "item/plan/delta": "item/plan/delta",
187
+ "command/exec/outputDelta": "command/exec/outputDelta",
188
+ "process/outputDelta": "process/outputDelta",
189
+ "process/exited": "process/exited",
190
+ "item/commandExecution/outputDelta": "item/commandExecution/outputDelta",
191
+ "item/commandExecution/terminalInteraction": "item/commandExecution/terminalInteraction",
192
+ "item/fileChange/outputDelta": "item/fileChange/outputDelta",
193
+ "item/fileChange/patchUpdated": "item/fileChange/patchUpdated",
194
+ "serverRequest/resolved": "serverRequest/resolved",
195
+ "item/mcpToolCall/progress": "item/mcpToolCall/progress",
196
+ "mcpServer/oauthLogin/completed": "mcpServer/oauthLogin/completed",
197
+ "mcpServer/startupStatus/updated": "mcpServer/startupStatus/updated",
198
+ "account/updated": "account/updated",
199
+ "account/rateLimits/updated": "account/rateLimits/updated",
200
+ "app/list/updated": "app/list/updated",
201
+ "remoteControl/status/changed": "remoteControl/status/changed",
202
+ "externalAgentConfig/import/progress": "externalAgentConfig/import/progress",
203
+ "externalAgentConfig/import/completed": "externalAgentConfig/import/completed",
204
+ "fs/changed": "fs/changed",
205
+ "item/reasoning/summaryTextDelta": "item/reasoning/summaryTextDelta",
206
+ "item/reasoning/summaryPartAdded": "item/reasoning/summaryPartAdded",
207
+ "item/reasoning/textDelta": "item/reasoning/textDelta",
208
+ "thread/compacted": "thread/compacted",
209
+ "model/rerouted": "model/rerouted",
210
+ "model/verification": "model/verification",
211
+ "turn/moderationMetadata": "turn/moderationMetadata",
212
+ "model/safetyBuffering/updated": "model/safetyBuffering/updated",
213
+ "warning": "warning",
214
+ "guardianWarning": "guardianWarning",
215
+ "deprecationNotice": "deprecationNotice",
216
+ "configWarning": "configWarning",
217
+ "fuzzyFileSearch/sessionUpdated": "fuzzyFileSearch/sessionUpdated",
218
+ "fuzzyFileSearch/sessionCompleted": "fuzzyFileSearch/sessionCompleted",
219
+ "thread/realtime/started": "thread/realtime/started",
220
+ "thread/realtime/itemAdded": "thread/realtime/itemAdded",
221
+ "thread/realtime/transcript/delta": "thread/realtime/transcript/delta",
222
+ "thread/realtime/transcript/done": "thread/realtime/transcript/done",
223
+ "thread/realtime/outputAudio/delta": "thread/realtime/outputAudio/delta",
224
+ "thread/realtime/sdp": "thread/realtime/sdp",
225
+ "thread/realtime/error": "thread/realtime/error",
226
+ "thread/realtime/closed": "thread/realtime/closed",
227
+ "windows/worldWritableWarning": "windows/worldWritableWarning",
228
+ "windowsSandbox/setupCompleted": "windowsSandbox/setupCompleted",
229
+ "account/login/completed": "account/login/completed",
230
+ } as const;
231
+
232
+ export type ClientRequestMethod = keyof typeof CLIENT_REQUEST_METHODS;
233
+ export type ClientNotificationMethod = keyof typeof CLIENT_NOTIFICATION_METHODS;
234
+ export type ServerRequestMethod = keyof typeof SERVER_REQUEST_METHODS;
235
+ export type ServerNotificationMethod = keyof typeof SERVER_NOTIFICATION_METHODS;
236
+
237
+ export interface ClientRequestParamsByMethod {
238
+ readonly "initialize": CodexSchema.V1InitializeParams;
239
+ readonly "thread/start": CodexSchema.V2ThreadStartParams;
240
+ readonly "thread/resume": CodexSchema.V2ThreadResumeParams;
241
+ readonly "thread/fork": CodexSchema.V2ThreadForkParams;
242
+ readonly "thread/archive": CodexSchema.V2ThreadArchiveParams;
243
+ readonly "thread/delete": CodexSchema.V2ThreadDeleteParams;
244
+ readonly "thread/unsubscribe": CodexSchema.V2ThreadUnsubscribeParams;
245
+ readonly "thread/increment_elicitation": CodexSchema.V2ThreadIncrementElicitationParams;
246
+ readonly "thread/decrement_elicitation": CodexSchema.V2ThreadDecrementElicitationParams;
247
+ readonly "thread/name/set": CodexSchema.V2ThreadSetNameParams;
248
+ readonly "thread/goal/set": CodexSchema.V2ThreadGoalSetParams;
249
+ readonly "thread/goal/get": CodexSchema.V2ThreadGoalGetParams;
250
+ readonly "thread/goal/clear": CodexSchema.V2ThreadGoalClearParams;
251
+ readonly "thread/metadata/update": CodexSchema.V2ThreadMetadataUpdateParams;
252
+ readonly "thread/settings/update": CodexSchema.V2ThreadSettingsUpdateParams;
253
+ readonly "thread/memoryMode/set": CodexSchema.V2ThreadMemoryModeSetParams;
254
+ readonly "memory/reset": undefined;
255
+ readonly "thread/unarchive": CodexSchema.V2ThreadUnarchiveParams;
256
+ readonly "thread/compact/start": CodexSchema.V2ThreadCompactStartParams;
257
+ readonly "thread/shellCommand": CodexSchema.V2ThreadShellCommandParams;
258
+ readonly "thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionParams;
259
+ readonly "thread/backgroundTerminals/clean": CodexSchema.V2ThreadBackgroundTerminalsCleanParams;
260
+ readonly "thread/backgroundTerminals/list": CodexSchema.V2ThreadBackgroundTerminalsListParams;
261
+ readonly "thread/backgroundTerminals/terminate": CodexSchema.V2ThreadBackgroundTerminalsTerminateParams;
262
+ readonly "thread/rollback": CodexSchema.V2ThreadRollbackParams;
263
+ readonly "thread/list": CodexSchema.V2ThreadListParams;
264
+ readonly "thread/search": CodexSchema.V2ThreadSearchParams;
265
+ readonly "thread/searchOccurrences": CodexSchema.V2ThreadSearchOccurrencesParams;
266
+ readonly "thread/loaded/list": CodexSchema.V2ThreadLoadedListParams;
267
+ readonly "thread/read": CodexSchema.V2ThreadReadParams;
268
+ readonly "thread/turns/list": CodexSchema.V2ThreadTurnsListParams;
269
+ readonly "thread/items/list": CodexSchema.V2ThreadItemsListParams;
270
+ readonly "thread/inject_items": CodexSchema.V2ThreadInjectItemsParams;
271
+ readonly "skills/list": CodexSchema.V2SkillsListParams;
272
+ readonly "skills/extraRoots/set": CodexSchema.V2SkillsExtraRootsSetParams;
273
+ readonly "hooks/list": CodexSchema.V2HooksListParams;
274
+ readonly "marketplace/add": CodexSchema.V2MarketplaceAddParams;
275
+ readonly "marketplace/remove": CodexSchema.V2MarketplaceRemoveParams;
276
+ readonly "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeParams;
277
+ readonly "plugin/list": CodexSchema.V2PluginListParams;
278
+ readonly "plugin/installed": CodexSchema.V2PluginInstalledParams;
279
+ readonly "plugin/read": CodexSchema.V2PluginReadParams;
280
+ readonly "plugin/skill/read": CodexSchema.V2PluginSkillReadParams;
281
+ readonly "plugin/share/save": CodexSchema.V2PluginShareSaveParams;
282
+ readonly "plugin/share/updateTargets": CodexSchema.V2PluginShareUpdateTargetsParams;
283
+ readonly "plugin/share/list": CodexSchema.V2PluginShareListParams;
284
+ readonly "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutParams;
285
+ readonly "plugin/share/delete": CodexSchema.V2PluginShareDeleteParams;
286
+ readonly "app/read": CodexSchema.V2AppsReadParams;
287
+ readonly "app/list": CodexSchema.V2AppsListParams;
288
+ readonly "app/installed": CodexSchema.V2AppsInstalledParams;
289
+ readonly "fs/readFile": CodexSchema.V2FsReadFileParams;
290
+ readonly "fs/writeFile": CodexSchema.V2FsWriteFileParams;
291
+ readonly "fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams;
292
+ readonly "fs/getMetadata": CodexSchema.V2FsGetMetadataParams;
293
+ readonly "fs/readDirectory": CodexSchema.V2FsReadDirectoryParams;
294
+ readonly "fs/remove": CodexSchema.V2FsRemoveParams;
295
+ readonly "fs/copy": CodexSchema.V2FsCopyParams;
296
+ readonly "fs/watch": CodexSchema.V2FsWatchParams;
297
+ readonly "fs/unwatch": CodexSchema.V2FsUnwatchParams;
298
+ readonly "skills/config/write": CodexSchema.V2SkillsConfigWriteParams;
299
+ readonly "plugin/install": CodexSchema.V2PluginInstallParams;
300
+ readonly "plugin/uninstall": CodexSchema.V2PluginUninstallParams;
301
+ readonly "turn/start": CodexSchema.V2TurnStartParams;
302
+ readonly "turn/steer": CodexSchema.V2TurnSteerParams;
303
+ readonly "turn/interrupt": CodexSchema.V2TurnInterruptParams;
304
+ readonly "thread/realtime/start": CodexSchema.V2ThreadRealtimeStartParams;
305
+ readonly "thread/realtime/appendAudio": CodexSchema.V2ThreadRealtimeAppendAudioParams;
306
+ readonly "thread/realtime/appendText": CodexSchema.V2ThreadRealtimeAppendTextParams;
307
+ readonly "thread/realtime/appendSpeech": CodexSchema.V2ThreadRealtimeAppendSpeechParams;
308
+ readonly "thread/realtime/stop": CodexSchema.V2ThreadRealtimeStopParams;
309
+ readonly "thread/realtime/listVoices": CodexSchema.V2ThreadRealtimeListVoicesParams;
310
+ readonly "review/start": CodexSchema.V2ReviewStartParams;
311
+ readonly "model/list": CodexSchema.V2ModelListParams;
312
+ readonly "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadParams;
313
+ readonly "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListParams;
314
+ readonly "permissionProfile/list": CodexSchema.V2PermissionProfileListParams;
315
+ readonly "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetParams;
316
+ readonly "remoteControl/enable": CodexSchema.V2NullableRemoteControlEnableParams;
317
+ readonly "remoteControl/disable": CodexSchema.V2NullableRemoteControlDisableParams;
318
+ readonly "remoteControl/status/read": undefined;
319
+ readonly "remoteControl/pairing/start": CodexSchema.V2RemoteControlPairingStartParams;
320
+ readonly "remoteControl/pairing/status": CodexSchema.V2RemoteControlPairingStatusParams;
321
+ readonly "remoteControl/client/list": CodexSchema.V2RemoteControlClientsListParams;
322
+ readonly "remoteControl/client/revoke": CodexSchema.V2RemoteControlClientsRevokeParams;
323
+ readonly "collaborationMode/list": CodexSchema.V2CollaborationModeListParams;
324
+ readonly "mock/experimentalMethod": CodexSchema.V2MockExperimentalMethodParams;
325
+ readonly "environment/add": CodexSchema.V2EnvironmentAddParams;
326
+ readonly "environment/info": CodexSchema.V2EnvironmentInfoParams;
327
+ readonly "environment/status": CodexSchema.V2EnvironmentStatusParams;
328
+ readonly "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginParams;
329
+ readonly "config/mcpServer/reload": undefined;
330
+ readonly "mcpServerStatus/list": CodexSchema.V2ListMcpServerStatusParams;
331
+ readonly "mcpServer/resource/read": CodexSchema.V2McpResourceReadParams;
332
+ readonly "mcpServer/tool/call": CodexSchema.V2McpServerToolCallParams;
333
+ readonly "windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartParams;
334
+ readonly "windowsSandbox/readiness": undefined;
335
+ readonly "account/login/start": CodexSchema.V2LoginAccountParams;
336
+ readonly "account/login/cancel": CodexSchema.V2CancelLoginAccountParams;
337
+ readonly "account/logout": undefined;
338
+ readonly "account/rateLimits/read": undefined;
339
+ readonly "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditParams;
340
+ readonly "account/usage/read": undefined;
341
+ readonly "account/workspaceMessages/read": undefined;
342
+ readonly "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams;
343
+ readonly "feedback/upload": CodexSchema.V2FeedbackUploadParams;
344
+ readonly "command/exec": CodexSchema.V2CommandExecParams;
345
+ readonly "command/exec/write": CodexSchema.V2CommandExecWriteParams;
346
+ readonly "command/exec/terminate": CodexSchema.V2CommandExecTerminateParams;
347
+ readonly "command/exec/resize": CodexSchema.V2CommandExecResizeParams;
348
+ readonly "process/spawn": CodexSchema.V2ProcessSpawnParams;
349
+ readonly "process/writeStdin": CodexSchema.V2ProcessWriteStdinParams;
350
+ readonly "process/kill": CodexSchema.V2ProcessKillParams;
351
+ readonly "process/resizePty": CodexSchema.V2ProcessResizePtyParams;
352
+ readonly "config/read": CodexSchema.V2ConfigReadParams;
353
+ readonly "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectParams;
354
+ readonly "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportParams;
355
+ readonly "externalAgentConfig/import/readHistories": undefined;
356
+ readonly "config/value/write": CodexSchema.V2ConfigValueWriteParams;
357
+ readonly "config/batchWrite": CodexSchema.V2ConfigBatchWriteParams;
358
+ readonly "configRequirements/read": undefined;
359
+ readonly "account/read": CodexSchema.V2GetAccountParams;
360
+ readonly "getConversationSummary": CodexSchema.GetConversationSummaryParams;
361
+ readonly "gitDiffToRemote": CodexSchema.GitDiffToRemoteParams;
362
+ readonly "getAuthStatus": CodexSchema.GetAuthStatusParams;
363
+ readonly "fuzzyFileSearch": CodexSchema.FuzzyFileSearchParams;
364
+ readonly "fuzzyFileSearch/sessionStart": CodexSchema.FuzzyFileSearchSessionStartParams;
365
+ readonly "fuzzyFileSearch/sessionUpdate": CodexSchema.FuzzyFileSearchSessionUpdateParams;
366
+ readonly "fuzzyFileSearch/sessionStop": CodexSchema.FuzzyFileSearchSessionStopParams;
367
+ }
368
+
369
+ export interface ClientRequestResponsesByMethod {
370
+ readonly "initialize": CodexSchema.V1InitializeResponse;
371
+ readonly "thread/start": CodexSchema.V2ThreadStartResponse;
372
+ readonly "thread/resume": CodexSchema.V2ThreadResumeResponse;
373
+ readonly "thread/fork": CodexSchema.V2ThreadForkResponse;
374
+ readonly "thread/archive": CodexSchema.V2ThreadArchiveResponse;
375
+ readonly "thread/delete": CodexSchema.V2ThreadDeleteResponse;
376
+ readonly "thread/unsubscribe": CodexSchema.V2ThreadUnsubscribeResponse;
377
+ readonly "thread/increment_elicitation": CodexSchema.V2ThreadIncrementElicitationResponse;
378
+ readonly "thread/decrement_elicitation": CodexSchema.V2ThreadDecrementElicitationResponse;
379
+ readonly "thread/name/set": CodexSchema.V2ThreadSetNameResponse;
380
+ readonly "thread/goal/set": CodexSchema.V2ThreadGoalSetResponse;
381
+ readonly "thread/goal/get": CodexSchema.V2ThreadGoalGetResponse;
382
+ readonly "thread/goal/clear": CodexSchema.V2ThreadGoalClearResponse;
383
+ readonly "thread/metadata/update": CodexSchema.V2ThreadMetadataUpdateResponse;
384
+ readonly "thread/settings/update": CodexSchema.V2ThreadSettingsUpdateResponse;
385
+ readonly "thread/memoryMode/set": CodexSchema.V2ThreadMemoryModeSetResponse;
386
+ readonly "memory/reset": CodexSchema.V2MemoryResetResponse;
387
+ readonly "thread/unarchive": CodexSchema.V2ThreadUnarchiveResponse;
388
+ readonly "thread/compact/start": CodexSchema.V2ThreadCompactStartResponse;
389
+ readonly "thread/shellCommand": CodexSchema.V2ThreadShellCommandResponse;
390
+ readonly "thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionResponse;
391
+ readonly "thread/backgroundTerminals/clean": CodexSchema.V2ThreadBackgroundTerminalsCleanResponse;
392
+ readonly "thread/backgroundTerminals/list": CodexSchema.V2ThreadBackgroundTerminalsListResponse;
393
+ readonly "thread/backgroundTerminals/terminate": CodexSchema.V2ThreadBackgroundTerminalsTerminateResponse;
394
+ readonly "thread/rollback": CodexSchema.V2ThreadRollbackResponse;
395
+ readonly "thread/list": CodexSchema.V2ThreadListResponse;
396
+ readonly "thread/search": CodexSchema.V2ThreadSearchResponse;
397
+ readonly "thread/searchOccurrences": CodexSchema.V2ThreadSearchOccurrencesResponse;
398
+ readonly "thread/loaded/list": CodexSchema.V2ThreadLoadedListResponse;
399
+ readonly "thread/read": CodexSchema.V2ThreadReadResponse;
400
+ readonly "thread/turns/list": CodexSchema.V2ThreadTurnsListResponse;
401
+ readonly "thread/items/list": CodexSchema.V2ThreadItemsListResponse;
402
+ readonly "thread/inject_items": CodexSchema.V2ThreadInjectItemsResponse;
403
+ readonly "skills/list": CodexSchema.V2SkillsListResponse;
404
+ readonly "skills/extraRoots/set": CodexSchema.V2SkillsExtraRootsSetResponse;
405
+ readonly "hooks/list": CodexSchema.V2HooksListResponse;
406
+ readonly "marketplace/add": CodexSchema.V2MarketplaceAddResponse;
407
+ readonly "marketplace/remove": CodexSchema.V2MarketplaceRemoveResponse;
408
+ readonly "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeResponse;
409
+ readonly "plugin/list": CodexSchema.V2PluginListResponse;
410
+ readonly "plugin/installed": CodexSchema.V2PluginInstalledResponse;
411
+ readonly "plugin/read": CodexSchema.V2PluginReadResponse;
412
+ readonly "plugin/skill/read": CodexSchema.V2PluginSkillReadResponse;
413
+ readonly "plugin/share/save": CodexSchema.V2PluginShareSaveResponse;
414
+ readonly "plugin/share/updateTargets": CodexSchema.V2PluginShareUpdateTargetsResponse;
415
+ readonly "plugin/share/list": CodexSchema.V2PluginShareListResponse;
416
+ readonly "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutResponse;
417
+ readonly "plugin/share/delete": CodexSchema.V2PluginShareDeleteResponse;
418
+ readonly "app/read": CodexSchema.V2AppsReadResponse;
419
+ readonly "app/list": CodexSchema.V2AppsListResponse;
420
+ readonly "app/installed": CodexSchema.V2AppsInstalledResponse;
421
+ readonly "fs/readFile": CodexSchema.V2FsReadFileResponse;
422
+ readonly "fs/writeFile": CodexSchema.V2FsWriteFileResponse;
423
+ readonly "fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse;
424
+ readonly "fs/getMetadata": CodexSchema.V2FsGetMetadataResponse;
425
+ readonly "fs/readDirectory": CodexSchema.V2FsReadDirectoryResponse;
426
+ readonly "fs/remove": CodexSchema.V2FsRemoveResponse;
427
+ readonly "fs/copy": CodexSchema.V2FsCopyResponse;
428
+ readonly "fs/watch": CodexSchema.V2FsWatchResponse;
429
+ readonly "fs/unwatch": CodexSchema.V2FsUnwatchResponse;
430
+ readonly "skills/config/write": CodexSchema.V2SkillsConfigWriteResponse;
431
+ readonly "plugin/install": CodexSchema.V2PluginInstallResponse;
432
+ readonly "plugin/uninstall": CodexSchema.V2PluginUninstallResponse;
433
+ readonly "turn/start": CodexSchema.V2TurnStartResponse;
434
+ readonly "turn/steer": CodexSchema.V2TurnSteerResponse;
435
+ readonly "turn/interrupt": CodexSchema.V2TurnInterruptResponse;
436
+ readonly "thread/realtime/start": CodexSchema.V2ThreadRealtimeStartResponse;
437
+ readonly "thread/realtime/appendAudio": CodexSchema.V2ThreadRealtimeAppendAudioResponse;
438
+ readonly "thread/realtime/appendText": CodexSchema.V2ThreadRealtimeAppendTextResponse;
439
+ readonly "thread/realtime/appendSpeech": CodexSchema.V2ThreadRealtimeAppendSpeechResponse;
440
+ readonly "thread/realtime/stop": CodexSchema.V2ThreadRealtimeStopResponse;
441
+ readonly "thread/realtime/listVoices": CodexSchema.V2ThreadRealtimeListVoicesResponse;
442
+ readonly "review/start": CodexSchema.V2ReviewStartResponse;
443
+ readonly "model/list": CodexSchema.V2ModelListResponse;
444
+ readonly "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadResponse;
445
+ readonly "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListResponse;
446
+ readonly "permissionProfile/list": CodexSchema.V2PermissionProfileListResponse;
447
+ readonly "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetResponse;
448
+ readonly "remoteControl/enable": CodexSchema.V2RemoteControlEnableResponse;
449
+ readonly "remoteControl/disable": CodexSchema.V2RemoteControlDisableResponse;
450
+ readonly "remoteControl/status/read": CodexSchema.V2RemoteControlStatusReadResponse;
451
+ readonly "remoteControl/pairing/start": CodexSchema.V2RemoteControlPairingStartResponse;
452
+ readonly "remoteControl/pairing/status": CodexSchema.V2RemoteControlPairingStatusResponse;
453
+ readonly "remoteControl/client/list": CodexSchema.V2RemoteControlClientsListResponse;
454
+ readonly "remoteControl/client/revoke": CodexSchema.V2RemoteControlClientsRevokeResponse;
455
+ readonly "collaborationMode/list": CodexSchema.V2CollaborationModeListResponse;
456
+ readonly "mock/experimentalMethod": CodexSchema.V2MockExperimentalMethodResponse;
457
+ readonly "environment/add": CodexSchema.V2EnvironmentAddResponse;
458
+ readonly "environment/info": CodexSchema.V2EnvironmentInfoResponse;
459
+ readonly "environment/status": CodexSchema.V2EnvironmentStatusResponse;
460
+ readonly "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginResponse;
461
+ readonly "config/mcpServer/reload": CodexSchema.V2McpServerRefreshResponse;
462
+ readonly "mcpServerStatus/list": CodexSchema.V2ListMcpServerStatusResponse;
463
+ readonly "mcpServer/resource/read": CodexSchema.V2McpResourceReadResponse;
464
+ readonly "mcpServer/tool/call": CodexSchema.V2McpServerToolCallResponse;
465
+ readonly "windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartResponse;
466
+ readonly "windowsSandbox/readiness": CodexSchema.V2WindowsSandboxReadinessResponse;
467
+ readonly "account/login/start": CodexSchema.V2LoginAccountResponse;
468
+ readonly "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse;
469
+ readonly "account/logout": CodexSchema.V2LogoutAccountResponse;
470
+ readonly "account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse;
471
+ readonly "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditResponse;
472
+ readonly "account/usage/read": CodexSchema.V2GetAccountTokenUsageResponse;
473
+ readonly "account/workspaceMessages/read": CodexSchema.V2GetWorkspaceMessagesResponse;
474
+ readonly "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailResponse;
475
+ readonly "feedback/upload": CodexSchema.V2FeedbackUploadResponse;
476
+ readonly "command/exec": CodexSchema.V2CommandExecResponse;
477
+ readonly "command/exec/write": CodexSchema.V2CommandExecWriteResponse;
478
+ readonly "command/exec/terminate": CodexSchema.V2CommandExecTerminateResponse;
479
+ readonly "command/exec/resize": CodexSchema.V2CommandExecResizeResponse;
480
+ readonly "process/spawn": CodexSchema.V2ProcessSpawnResponse;
481
+ readonly "process/writeStdin": CodexSchema.V2ProcessWriteStdinResponse;
482
+ readonly "process/kill": CodexSchema.V2ProcessKillResponse;
483
+ readonly "process/resizePty": CodexSchema.V2ProcessResizePtyResponse;
484
+ readonly "config/read": CodexSchema.V2ConfigReadResponse;
485
+ readonly "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectResponse;
486
+ readonly "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportResponse;
487
+ readonly "externalAgentConfig/import/readHistories": CodexSchema.V2ExternalAgentConfigImportHistoriesReadResponse;
488
+ readonly "config/value/write": CodexSchema.V2ConfigWriteResponse;
489
+ readonly "config/batchWrite": CodexSchema.V2ConfigWriteResponse;
490
+ readonly "configRequirements/read": CodexSchema.V2ConfigRequirementsReadResponse;
491
+ readonly "account/read": CodexSchema.V2GetAccountResponse;
492
+ readonly "getConversationSummary": CodexSchema.GetConversationSummaryResponse;
493
+ readonly "gitDiffToRemote": CodexSchema.GitDiffToRemoteResponse;
494
+ readonly "getAuthStatus": CodexSchema.GetAuthStatusResponse;
495
+ readonly "fuzzyFileSearch": CodexSchema.FuzzyFileSearchResponse;
496
+ readonly "fuzzyFileSearch/sessionStart": CodexSchema.FuzzyFileSearchSessionStartResponse;
497
+ readonly "fuzzyFileSearch/sessionUpdate": CodexSchema.FuzzyFileSearchSessionUpdateResponse;
498
+ readonly "fuzzyFileSearch/sessionStop": CodexSchema.FuzzyFileSearchSessionStopResponse;
499
+ }
500
+
501
+ export interface ClientNotificationParamsByMethod {
502
+ readonly "initialized": undefined;
503
+ }
504
+
505
+ export interface ServerRequestParamsByMethod {
506
+ readonly "item/commandExecution/requestApproval": CodexSchema.CommandExecutionRequestApprovalParams;
507
+ readonly "item/fileChange/requestApproval": CodexSchema.FileChangeRequestApprovalParams;
508
+ readonly "item/tool/requestUserInput": CodexSchema.ToolRequestUserInputParams;
509
+ readonly "mcpServer/elicitation/request": CodexSchema.McpServerElicitationRequestParams;
510
+ readonly "item/permissions/requestApproval": CodexSchema.PermissionsRequestApprovalParams;
511
+ readonly "item/tool/call": CodexSchema.DynamicToolCallParams;
512
+ readonly "account/chatgptAuthTokens/refresh": CodexSchema.ChatgptAuthTokensRefreshParams;
513
+ readonly "attestation/generate": CodexSchema.AttestationGenerateParams;
514
+ readonly "currentTime/read": CodexSchema.CurrentTimeReadParams;
515
+ readonly "applyPatchApproval": CodexSchema.ApplyPatchApprovalParams;
516
+ readonly "execCommandApproval": CodexSchema.ExecCommandApprovalParams;
517
+ }
518
+
519
+ export interface ServerRequestResponsesByMethod {
520
+ readonly "item/commandExecution/requestApproval": CodexSchema.CommandExecutionRequestApprovalResponse;
521
+ readonly "item/fileChange/requestApproval": CodexSchema.FileChangeRequestApprovalResponse;
522
+ readonly "item/tool/requestUserInput": CodexSchema.ToolRequestUserInputResponse;
523
+ readonly "mcpServer/elicitation/request": CodexSchema.McpServerElicitationRequestResponse;
524
+ readonly "item/permissions/requestApproval": CodexSchema.PermissionsRequestApprovalResponse;
525
+ readonly "item/tool/call": CodexSchema.DynamicToolCallResponse;
526
+ readonly "account/chatgptAuthTokens/refresh": CodexSchema.ChatgptAuthTokensRefreshResponse;
527
+ readonly "attestation/generate": CodexSchema.AttestationGenerateResponse;
528
+ readonly "currentTime/read": CodexSchema.CurrentTimeReadResponse;
529
+ readonly "applyPatchApproval": CodexSchema.ApplyPatchApprovalResponse;
530
+ readonly "execCommandApproval": CodexSchema.ExecCommandApprovalResponse;
531
+ }
532
+
533
+ export interface ServerNotificationParamsByMethod {
534
+ readonly "error": CodexSchema.V2ErrorNotification;
535
+ readonly "thread/started": CodexSchema.V2ThreadStartedNotification;
536
+ readonly "thread/status/changed": CodexSchema.V2ThreadStatusChangedNotification;
537
+ readonly "thread/archived": CodexSchema.V2ThreadArchivedNotification;
538
+ readonly "thread/deleted": CodexSchema.V2ThreadDeletedNotification;
539
+ readonly "thread/unarchived": CodexSchema.V2ThreadUnarchivedNotification;
540
+ readonly "thread/closed": CodexSchema.V2ThreadClosedNotification;
541
+ readonly "skills/changed": CodexSchema.V2SkillsChangedNotification;
542
+ readonly "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification;
543
+ readonly "thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification;
544
+ readonly "thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification;
545
+ readonly "thread/environment/connected": CodexSchema.V2EnvironmentConnectionNotification;
546
+ readonly "thread/environment/disconnected": CodexSchema.V2EnvironmentConnectionNotification;
547
+ readonly "thread/settings/updated": CodexSchema.V2ThreadSettingsUpdatedNotification;
548
+ readonly "thread/tokenUsage/updated": CodexSchema.V2ThreadTokenUsageUpdatedNotification;
549
+ readonly "turn/started": CodexSchema.V2TurnStartedNotification;
550
+ readonly "hook/started": CodexSchema.V2HookStartedNotification;
551
+ readonly "turn/completed": CodexSchema.V2TurnCompletedNotification;
552
+ readonly "hook/completed": CodexSchema.V2HookCompletedNotification;
553
+ readonly "turn/diff/updated": CodexSchema.V2TurnDiffUpdatedNotification;
554
+ readonly "turn/plan/updated": CodexSchema.V2TurnPlanUpdatedNotification;
555
+ readonly "item/started": CodexSchema.V2ItemStartedNotification;
556
+ readonly "item/autoApprovalReview/started": CodexSchema.V2ItemGuardianApprovalReviewStartedNotification;
557
+ readonly "item/autoApprovalReview/completed": CodexSchema.V2ItemGuardianApprovalReviewCompletedNotification;
558
+ readonly "item/completed": CodexSchema.V2ItemCompletedNotification;
559
+ readonly "rawResponseItem/completed": CodexSchema.V2RawResponseItemCompletedNotification;
560
+ readonly "rawResponse/completed": CodexSchema.V2RawResponseCompletedNotification;
561
+ readonly "item/agentMessage/delta": CodexSchema.V2AgentMessageDeltaNotification;
562
+ readonly "item/plan/delta": CodexSchema.V2PlanDeltaNotification;
563
+ readonly "command/exec/outputDelta": CodexSchema.V2CommandExecOutputDeltaNotification;
564
+ readonly "process/outputDelta": CodexSchema.V2ProcessOutputDeltaNotification;
565
+ readonly "process/exited": CodexSchema.V2ProcessExitedNotification;
566
+ readonly "item/commandExecution/outputDelta": CodexSchema.V2CommandExecutionOutputDeltaNotification;
567
+ readonly "item/commandExecution/terminalInteraction": CodexSchema.V2TerminalInteractionNotification;
568
+ readonly "item/fileChange/outputDelta": CodexSchema.V2FileChangeOutputDeltaNotification;
569
+ readonly "item/fileChange/patchUpdated": CodexSchema.V2FileChangePatchUpdatedNotification;
570
+ readonly "serverRequest/resolved": CodexSchema.V2ServerRequestResolvedNotification;
571
+ readonly "item/mcpToolCall/progress": CodexSchema.V2McpToolCallProgressNotification;
572
+ readonly "mcpServer/oauthLogin/completed": CodexSchema.V2McpServerOauthLoginCompletedNotification;
573
+ readonly "mcpServer/startupStatus/updated": CodexSchema.V2McpServerStatusUpdatedNotification;
574
+ readonly "account/updated": CodexSchema.V2AccountUpdatedNotification;
575
+ readonly "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification;
576
+ readonly "app/list/updated": CodexSchema.V2AppListUpdatedNotification;
577
+ readonly "remoteControl/status/changed": CodexSchema.V2RemoteControlStatusChangedNotification;
578
+ readonly "externalAgentConfig/import/progress": CodexSchema.V2ExternalAgentConfigImportProgressNotification;
579
+ readonly "externalAgentConfig/import/completed": CodexSchema.V2ExternalAgentConfigImportCompletedNotification;
580
+ readonly "fs/changed": CodexSchema.V2FsChangedNotification;
581
+ readonly "item/reasoning/summaryTextDelta": CodexSchema.V2ReasoningSummaryTextDeltaNotification;
582
+ readonly "item/reasoning/summaryPartAdded": CodexSchema.V2ReasoningSummaryPartAddedNotification;
583
+ readonly "item/reasoning/textDelta": CodexSchema.V2ReasoningTextDeltaNotification;
584
+ readonly "thread/compacted": CodexSchema.V2ContextCompactedNotification;
585
+ readonly "model/rerouted": CodexSchema.V2ModelReroutedNotification;
586
+ readonly "model/verification": CodexSchema.V2ModelVerificationNotification;
587
+ readonly "turn/moderationMetadata": CodexSchema.V2TurnModerationMetadataNotification;
588
+ readonly "model/safetyBuffering/updated": CodexSchema.V2ModelSafetyBufferingUpdatedNotification;
589
+ readonly "warning": CodexSchema.V2WarningNotification;
590
+ readonly "guardianWarning": CodexSchema.V2GuardianWarningNotification;
591
+ readonly "deprecationNotice": CodexSchema.V2DeprecationNoticeNotification;
592
+ readonly "configWarning": CodexSchema.V2ConfigWarningNotification;
593
+ readonly "fuzzyFileSearch/sessionUpdated": CodexSchema.FuzzyFileSearchSessionUpdatedNotification;
594
+ readonly "fuzzyFileSearch/sessionCompleted": CodexSchema.FuzzyFileSearchSessionCompletedNotification;
595
+ readonly "thread/realtime/started": CodexSchema.V2ThreadRealtimeStartedNotification;
596
+ readonly "thread/realtime/itemAdded": CodexSchema.V2ThreadRealtimeItemAddedNotification;
597
+ readonly "thread/realtime/transcript/delta": CodexSchema.V2ThreadRealtimeTranscriptDeltaNotification;
598
+ readonly "thread/realtime/transcript/done": CodexSchema.V2ThreadRealtimeTranscriptDoneNotification;
599
+ readonly "thread/realtime/outputAudio/delta": CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification;
600
+ readonly "thread/realtime/sdp": CodexSchema.V2ThreadRealtimeSdpNotification;
601
+ readonly "thread/realtime/error": CodexSchema.V2ThreadRealtimeErrorNotification;
602
+ readonly "thread/realtime/closed": CodexSchema.V2ThreadRealtimeClosedNotification;
603
+ readonly "windows/worldWritableWarning": CodexSchema.V2WindowsWorldWritableWarningNotification;
604
+ readonly "windowsSandbox/setupCompleted": CodexSchema.V2WindowsSandboxSetupCompletedNotification;
605
+ readonly "account/login/completed": CodexSchema.V2AccountLoginCompletedNotification;
606
+ }