@meistrari/agent-core 0.2.0-experimental.0 → 0.2.0-experimental.2

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 (90) hide show
  1. package/README.md +82 -0
  2. package/docs/consumer-capability-matrix.md +374 -0
  3. package/package.json +17 -10
  4. package/scripts/generate-codex-protocol.ts +711 -0
  5. package/src/agents/agent-operation.ts +8 -0
  6. package/src/agents/agent-provider.ts +3 -0
  7. package/src/agents/agent-run.ts +14 -2
  8. package/src/agents/agent-runtime-error.ts +28 -0
  9. package/src/agents/agent-session-events.ts +33 -0
  10. package/src/agents/agent-tool-runner.ts +12 -11
  11. package/src/agents/agent-tool.ts +12 -4
  12. package/src/agents/author-context.ts +1 -1
  13. package/src/agents/claude/claude-auth.ts +40 -0
  14. package/src/agents/claude/claude-browser-turn-metadata.ts +70 -0
  15. package/src/agents/claude/claude-code-process.ts +98 -0
  16. package/src/agents/claude/claude-command-mapper.ts +63 -3
  17. package/src/agents/claude/claude-desktop.ts +55 -0
  18. package/src/agents/claude/claude-event-mapper.ts +876 -124
  19. package/src/agents/claude/claude-file-change.ts +128 -0
  20. package/src/agents/claude/claude-provider.ts +344 -29
  21. package/src/agents/claude/claude-run.ts +922 -91
  22. package/src/agents/claude/claude-selected-repository-instructions.ts +91 -0
  23. package/src/agents/claude/claude-skill-catalog.ts +75 -0
  24. package/src/agents/claude/claude-steered-notifications.ts +180 -0
  25. package/src/agents/claude/claude-tool-mapper.ts +81 -2
  26. package/src/agents/claude/claude-workspace-skills.ts +87 -0
  27. package/src/agents/claude/index.ts +2 -0
  28. package/src/agents/codex/codex-auth-mapper.ts +27 -0
  29. package/src/agents/codex/codex-auth.ts +19 -0
  30. package/src/agents/codex/codex-browser-auth-broker.ts +320 -0
  31. package/src/agents/codex/codex-browser-auth-status.ts +55 -0
  32. package/src/agents/codex/codex-command-mapper.ts +38 -3
  33. package/src/agents/codex/codex-event-mapper.ts +375 -64
  34. package/src/agents/codex/codex-json-rpc-client.ts +66 -21
  35. package/src/agents/codex/codex-provider.ts +118 -236
  36. package/src/agents/codex/codex-run-auth.ts +113 -0
  37. package/src/agents/codex/codex-run.ts +428 -48
  38. package/src/agents/codex/codex-tool-mapper.ts +2 -2
  39. package/src/agents/codex/codex.errors.ts +8 -0
  40. package/src/agents/codex/generated/meta.gen.ts +144 -6
  41. package/src/agents/codex/generated/namespaces.gen.ts +92 -3
  42. package/src/agents/codex/generated/schema.gen.ts +24698 -15638
  43. package/src/agents/codex/lazy-codex-run-auth.ts +47 -0
  44. package/src/agents/index.ts +5 -0
  45. package/src/agents/input-attachment-preparation.ts +13 -0
  46. package/src/agents/mcp-tool-content.ts +82 -0
  47. package/src/agents/model-rebinding-run.ts +14 -3
  48. package/src/agents/selected-repository-instructions.ts +202 -0
  49. package/src/agents/session-context.ts +41 -0
  50. package/src/agents/subscription-token-refresh.ts +73 -0
  51. package/src/agents/user-input-request.ts +19 -20
  52. package/src/errors/index.ts +1 -1
  53. package/src/errors/validation-error.ts +6 -0
  54. package/src/protocol/agent-catalog.ts +159 -0
  55. package/src/protocol/agent-command.ts +54 -7
  56. package/src/protocol/agent-content.ts +36 -16
  57. package/src/protocol/agent-event.ts +210 -73
  58. package/src/protocol/agent-identity.ts +29 -0
  59. package/src/protocol/agent-json.ts +122 -8
  60. package/src/protocol/agent-metadata.ts +2 -2
  61. package/src/protocol/agent-model.ts +13 -1
  62. package/src/protocol/agent-notification.ts +110 -0
  63. package/src/protocol/agent-presentation.ts +71 -20
  64. package/src/protocol/agent-tool.ts +66 -10
  65. package/src/protocol/agent-usage.ts +4 -1
  66. package/src/protocol/agent-user-input.ts +4 -4
  67. package/src/protocol/agent-work.ts +12 -10
  68. package/src/protocol/index.ts +2 -0
  69. package/src/protocol/rejected-keys.ts +11 -0
  70. package/src/provenance.gen.ts +3 -3
  71. package/src/steps/contract.ts +4 -1
  72. package/src/steps/projector.ts +17 -1
  73. package/src/supervisor/agent-provider-factory.ts +60 -5
  74. package/src/supervisor/bootstrap-binder.ts +3 -2
  75. package/src/supervisor/index.ts +1 -1
  76. package/src/supervisor/persistence/supervisor-store.ts +22 -8
  77. package/src/supervisor/runtime-handler.ts +30 -2
  78. package/src/supervisor-protocol/agent-event-wrapper.ts +30 -0
  79. package/src/supervisor-protocol/bootstrap.ts +4 -1
  80. package/src/supervisor-protocol/command-body.ts +4 -1
  81. package/src/supervisor-protocol/envelopes/supervisor-to-control-plane.ts +1 -0
  82. package/src/testing/in-memory-runtime-control-plane.ts +118 -12
  83. package/src/testing/index.ts +1 -1
  84. package/src/worker-runtime-client/command-pump.ts +85 -10
  85. package/src/worker-runtime-client/connection-attempt.ts +95 -20
  86. package/src/worker-runtime-client/frame-processor.ts +242 -58
  87. package/src/worker-runtime-client/index.ts +8 -2
  88. package/src/worker-runtime-client/ports.ts +34 -2
  89. package/src/worker-runtime-client/rpc-request-manager.ts +152 -107
  90. package/src/worker-runtime-client/sandbox-connection-runtime.ts +72 -35
@@ -1,5 +1,5 @@
1
1
  import type { JsonValue } from '../../protocol'
2
- import type { AgentTool, AgentToolContext } from '../agent-tool'
2
+ import type { AgentTool, AgentToolContext, AgentToolExecutionResult } from '../agent-tool'
3
3
  import type {
4
4
  CodexDynamicToolCallParams,
5
5
  CodexDynamicToolCallResponse,
@@ -48,7 +48,7 @@ export async function runCodexDynamicTool(input: {
48
48
  }
49
49
  }
50
50
 
51
- function toCodexToolContent(content: { type: 'text', text: string } | { type: 'image', data: string, mimeType: string }): CodexDynamicToolOutputContentItem {
51
+ function toCodexToolContent(content: AgentToolExecutionResult['content'][number]): CodexDynamicToolOutputContentItem {
52
52
  if (content.type === 'text')
53
53
  return { type: 'inputText', text: content.text }
54
54
  return { type: 'inputImage', imageUrl: `data:${content.mimeType};base64,${content.data}` }
@@ -11,6 +11,7 @@ export class CodexJsonRpcResponseError extends AgentProviderProtocolError {
11
11
  readonly responseError: unknown
12
12
  // JSON-RPC error `code` extracted structurally so consumers never parse message text.
13
13
  readonly responseErrorCode: number | undefined
14
+ readonly responseErrorMessage: string | undefined
14
15
 
15
16
  constructor({ method, responseError }: CodexJsonRpcResponseErrorInput) {
16
17
  super({
@@ -20,6 +21,7 @@ export class CodexJsonRpcResponseError extends AgentProviderProtocolError {
20
21
  this.method = method
21
22
  this.responseError = responseError
22
23
  this.responseErrorCode = jsonRpcErrorCode(responseError)
24
+ this.responseErrorMessage = jsonRpcErrorMessage(responseError)
23
25
  }
24
26
  }
25
27
 
@@ -56,6 +58,12 @@ function jsonRpcErrorCode(responseError: unknown): number | undefined {
56
58
  return typeof code === 'number' ? code : undefined
57
59
  }
58
60
 
61
+ function jsonRpcErrorMessage(responseError: unknown): string | undefined {
62
+ if (typeof responseError !== 'object' || responseError === null || !('message' in responseError))
63
+ return undefined
64
+ return typeof responseError.message === 'string' ? responseError.message : undefined
65
+ }
66
+
59
67
  function stringifyJsonRpcError(responseError: unknown): string {
60
68
  if (typeof responseError === 'string')
61
69
  return responseError
@@ -1,11 +1,17 @@
1
1
  /* eslint-disable style/indent, style/member-delimiter-style, style/quotes, style/semi, style/quote-props */
2
2
  // This file is generated by scripts/generate-codex-protocol.ts. Do not edit manually.
3
- // Upstream Codex protocol ref: 25af12f7e61572b0bc18ddb1008be543b91519b0
3
+ // Upstream Codex protocol ref: 3d2ee51ca2d5db578f328aa75e20aa22c0197c9a
4
4
 
5
5
  import type * as CodexSchema from "./schema.gen.js";
6
6
 
7
7
  export const CLIENT_REQUEST_METHODS = {
8
8
  "initialize": "initialize",
9
+ "server/diagnostics": "server/diagnostics",
10
+ "userVerification/status": "userVerification/status",
11
+ "userVerification/enroll": "userVerification/enroll",
12
+ "userVerification/delete": "userVerification/delete",
13
+ "userVerification/verify": "userVerification/verify",
14
+ "userVerification/cancel": "userVerification/cancel",
9
15
  "thread/start": "thread/start",
10
16
  "thread/resume": "thread/resume",
11
17
  "thread/fork": "thread/fork",
@@ -18,10 +24,22 @@ export const CLIENT_REQUEST_METHODS = {
18
24
  "thread/goal/set": "thread/goal/set",
19
25
  "thread/goal/get": "thread/goal/get",
20
26
  "thread/goal/clear": "thread/goal/clear",
27
+ "thread/queue/add": "thread/queue/add",
28
+ "thread/queue/list": "thread/queue/list",
29
+ "thread/queue/update": "thread/queue/update",
30
+ "thread/queue/delete": "thread/queue/delete",
31
+ "thread/queue/reorder": "thread/queue/reorder",
32
+ "thread/queue/start": "thread/queue/start",
21
33
  "thread/metadata/update": "thread/metadata/update",
34
+ "thread/attachment/add": "thread/attachment/add",
35
+ "thread/attachment/list": "thread/attachment/list",
36
+ "thread/attachment/remove": "thread/attachment/remove",
37
+ "thread/section/move": "thread/section/move",
22
38
  "thread/settings/update": "thread/settings/update",
23
39
  "thread/memoryMode/set": "thread/memoryMode/set",
40
+ "memory/status": "memory/status",
24
41
  "memory/reset": "memory/reset",
42
+ "rollout/compress": "rollout/compress",
25
43
  "thread/unarchive": "thread/unarchive",
26
44
  "thread/compact/start": "thread/compact/start",
27
45
  "thread/shellCommand": "thread/shellCommand",
@@ -29,8 +47,19 @@ export const CLIENT_REQUEST_METHODS = {
29
47
  "thread/backgroundTerminals/clean": "thread/backgroundTerminals/clean",
30
48
  "thread/backgroundTerminals/list": "thread/backgroundTerminals/list",
31
49
  "thread/backgroundTerminals/terminate": "thread/backgroundTerminals/terminate",
32
- "thread/rollback": "thread/rollback",
50
+ "thread/revert": "thread/revert",
33
51
  "thread/list": "thread/list",
52
+ "project/list": "project/list",
53
+ "project/read": "project/read",
54
+ "project/create": "project/create",
55
+ "project/import": "project/import",
56
+ "project/update": "project/update",
57
+ "project/move": "project/move",
58
+ "project/delete": "project/delete",
59
+ "threadSection/list": "threadSection/list",
60
+ "threadSection/create": "threadSection/create",
61
+ "threadSection/update": "threadSection/update",
62
+ "threadSection/delete": "threadSection/delete",
34
63
  "thread/search": "thread/search",
35
64
  "thread/searchOccurrences": "thread/searchOccurrences",
36
65
  "thread/loaded/list": "thread/loaded/list",
@@ -45,7 +74,9 @@ export const CLIENT_REQUEST_METHODS = {
45
74
  "marketplace/remove": "marketplace/remove",
46
75
  "marketplace/upgrade": "marketplace/upgrade",
47
76
  "plugin/list": "plugin/list",
77
+ "plugin/search": "plugin/search",
48
78
  "plugin/installed": "plugin/installed",
79
+ "plugin/reconcile": "plugin/reconcile",
49
80
  "plugin/read": "plugin/read",
50
81
  "plugin/skill/read": "plugin/skill/read",
51
82
  "plugin/share/save": "plugin/share/save",
@@ -69,6 +100,7 @@ export const CLIENT_REQUEST_METHODS = {
69
100
  "plugin/install": "plugin/install",
70
101
  "plugin/uninstall": "plugin/uninstall",
71
102
  "turn/start": "turn/start",
103
+ "turn/settings/update": "turn/settings/update",
72
104
  "turn/steer": "turn/steer",
73
105
  "turn/interrupt": "turn/interrupt",
74
106
  "thread/realtime/start": "thread/realtime/start",
@@ -76,6 +108,7 @@ export const CLIENT_REQUEST_METHODS = {
76
108
  "thread/realtime/appendText": "thread/realtime/appendText",
77
109
  "thread/realtime/appendSpeech": "thread/realtime/appendSpeech",
78
110
  "thread/realtime/stop": "thread/realtime/stop",
111
+ "thread/timeline/list": "thread/timeline/list",
79
112
  "thread/realtime/listVoices": "thread/realtime/listVoices",
80
113
  "review/start": "review/start",
81
114
  "model/list": "model/list",
@@ -99,10 +132,14 @@ export const CLIENT_REQUEST_METHODS = {
99
132
  "config/mcpServer/reload": "config/mcpServer/reload",
100
133
  "mcpServerStatus/list": "mcpServerStatus/list",
101
134
  "mcpServer/resource/read": "mcpServer/resource/read",
135
+ "mcpServer/event/stream/start": "mcpServer/event/stream/start",
136
+ "mcpServer/event/stream/stop": "mcpServer/event/stream/stop",
102
137
  "mcpServer/tool/call": "mcpServer/tool/call",
103
138
  "windowsSandbox/setupStart": "windowsSandbox/setupStart",
104
139
  "windowsSandbox/readiness": "windowsSandbox/readiness",
105
140
  "account/login/start": "account/login/start",
141
+ "account/bedrock/discover": "account/bedrock/discover",
142
+ "account/bedrock/setup": "account/bedrock/setup",
106
143
  "account/login/cancel": "account/login/cancel",
107
144
  "account/logout": "account/logout",
108
145
  "account/rateLimits/read": "account/rateLimits/read",
@@ -122,6 +159,7 @@ export const CLIENT_REQUEST_METHODS = {
122
159
  "config/read": "config/read",
123
160
  "externalAgentConfig/detect": "externalAgentConfig/detect",
124
161
  "externalAgentConfig/import": "externalAgentConfig/import",
162
+ "externalAgentConfig/import/recordHistory": "externalAgentConfig/import/recordHistory",
125
163
  "externalAgentConfig/import/readHistories": "externalAgentConfig/import/readHistories",
126
164
  "config/value/write": "config/value/write",
127
165
  "config/batchWrite": "config/batchWrite",
@@ -162,10 +200,15 @@ export const SERVER_NOTIFICATION_METHODS = {
162
200
  "thread/deleted": "thread/deleted",
163
201
  "thread/unarchived": "thread/unarchived",
164
202
  "thread/closed": "thread/closed",
203
+ "thread/reverted": "thread/reverted",
165
204
  "skills/changed": "skills/changed",
166
205
  "thread/name/updated": "thread/name/updated",
206
+ "thread/attachment/updated": "thread/attachment/updated",
167
207
  "thread/goal/updated": "thread/goal/updated",
168
208
  "thread/goal/cleared": "thread/goal/cleared",
209
+ "thread/queue/changed": "thread/queue/changed",
210
+ "project/changed": "project/changed",
211
+ "thread/project/updated": "thread/project/updated",
169
212
  "thread/environment/connected": "thread/environment/connected",
170
213
  "thread/environment/disconnected": "thread/environment/disconnected",
171
214
  "thread/settings/updated": "thread/settings/updated",
@@ -179,6 +222,7 @@ export const SERVER_NOTIFICATION_METHODS = {
179
222
  "item/started": "item/started",
180
223
  "item/autoApprovalReview/started": "item/autoApprovalReview/started",
181
224
  "item/autoApprovalReview/completed": "item/autoApprovalReview/completed",
225
+ "autoApprovalReview/strictReviewRequired": "autoApprovalReview/strictReviewRequired",
182
226
  "item/completed": "item/completed",
183
227
  "rawResponseItem/completed": "rawResponseItem/completed",
184
228
  "rawResponse/completed": "rawResponse/completed",
@@ -195,6 +239,7 @@ export const SERVER_NOTIFICATION_METHODS = {
195
239
  "item/mcpToolCall/progress": "item/mcpToolCall/progress",
196
240
  "mcpServer/oauthLogin/completed": "mcpServer/oauthLogin/completed",
197
241
  "mcpServer/startupStatus/updated": "mcpServer/startupStatus/updated",
242
+ "mcpServer/event/stream/notification": "mcpServer/event/stream/notification",
198
243
  "account/updated": "account/updated",
199
244
  "account/rateLimits/updated": "account/rateLimits/updated",
200
245
  "app/list/updated": "app/list/updated",
@@ -208,6 +253,8 @@ export const SERVER_NOTIFICATION_METHODS = {
208
253
  "thread/compacted": "thread/compacted",
209
254
  "model/rerouted": "model/rerouted",
210
255
  "model/verification": "model/verification",
256
+ "modelProvider/authRecoveryStarted": "modelProvider/authRecoveryStarted",
257
+ "modelProvider/authRecoveryCompleted": "modelProvider/authRecoveryCompleted",
211
258
  "turn/moderationMetadata": "turn/moderationMetadata",
212
259
  "model/safetyBuffering/updated": "model/safetyBuffering/updated",
213
260
  "warning": "warning",
@@ -218,6 +265,9 @@ export const SERVER_NOTIFICATION_METHODS = {
218
265
  "fuzzyFileSearch/sessionCompleted": "fuzzyFileSearch/sessionCompleted",
219
266
  "thread/realtime/started": "thread/realtime/started",
220
267
  "thread/realtime/itemAdded": "thread/realtime/itemAdded",
268
+ "thread/realtime/item/started": "thread/realtime/item/started",
269
+ "thread/realtime/item/transcript/delta": "thread/realtime/item/transcript/delta",
270
+ "thread/realtime/item/completed": "thread/realtime/item/completed",
221
271
  "thread/realtime/transcript/delta": "thread/realtime/transcript/delta",
222
272
  "thread/realtime/transcript/done": "thread/realtime/transcript/done",
223
273
  "thread/realtime/outputAudio/delta": "thread/realtime/outputAudio/delta",
@@ -236,6 +286,12 @@ export type ServerNotificationMethod = keyof typeof SERVER_NOTIFICATION_METHODS;
236
286
 
237
287
  export interface ClientRequestParamsByMethod {
238
288
  readonly "initialize": CodexSchema.V1InitializeParams;
289
+ readonly "server/diagnostics": CodexSchema.V2ServerDiagnosticsParams;
290
+ readonly "userVerification/status": CodexSchema.V2UserVerificationStatusParams;
291
+ readonly "userVerification/enroll": CodexSchema.V2UserVerificationEnrollParams;
292
+ readonly "userVerification/delete": CodexSchema.V2UserVerificationDeleteParams;
293
+ readonly "userVerification/verify": CodexSchema.V2UserVerificationVerifyParams;
294
+ readonly "userVerification/cancel": CodexSchema.V2UserVerificationCancelParams;
239
295
  readonly "thread/start": CodexSchema.V2ThreadStartParams;
240
296
  readonly "thread/resume": CodexSchema.V2ThreadResumeParams;
241
297
  readonly "thread/fork": CodexSchema.V2ThreadForkParams;
@@ -248,10 +304,22 @@ export interface ClientRequestParamsByMethod {
248
304
  readonly "thread/goal/set": CodexSchema.V2ThreadGoalSetParams;
249
305
  readonly "thread/goal/get": CodexSchema.V2ThreadGoalGetParams;
250
306
  readonly "thread/goal/clear": CodexSchema.V2ThreadGoalClearParams;
307
+ readonly "thread/queue/add": CodexSchema.V2ThreadQueueAddParams;
308
+ readonly "thread/queue/list": CodexSchema.V2ThreadQueueListParams;
309
+ readonly "thread/queue/update": CodexSchema.V2ThreadQueueUpdateParams;
310
+ readonly "thread/queue/delete": CodexSchema.V2ThreadQueueDeleteParams;
311
+ readonly "thread/queue/reorder": CodexSchema.V2ThreadQueueReorderParams;
312
+ readonly "thread/queue/start": CodexSchema.V2ThreadQueueStartParams;
251
313
  readonly "thread/metadata/update": CodexSchema.V2ThreadMetadataUpdateParams;
314
+ readonly "thread/attachment/add": CodexSchema.V2ThreadAttachmentAddParams;
315
+ readonly "thread/attachment/list": CodexSchema.V2ThreadAttachmentListParams;
316
+ readonly "thread/attachment/remove": CodexSchema.V2ThreadAttachmentRemoveParams;
317
+ readonly "thread/section/move": CodexSchema.V2ThreadSectionMoveParams;
252
318
  readonly "thread/settings/update": CodexSchema.V2ThreadSettingsUpdateParams;
253
319
  readonly "thread/memoryMode/set": CodexSchema.V2ThreadMemoryModeSetParams;
320
+ readonly "memory/status": CodexSchema.V2MemoryStatusParams;
254
321
  readonly "memory/reset": undefined;
322
+ readonly "rollout/compress": undefined;
255
323
  readonly "thread/unarchive": CodexSchema.V2ThreadUnarchiveParams;
256
324
  readonly "thread/compact/start": CodexSchema.V2ThreadCompactStartParams;
257
325
  readonly "thread/shellCommand": CodexSchema.V2ThreadShellCommandParams;
@@ -259,8 +327,19 @@ export interface ClientRequestParamsByMethod {
259
327
  readonly "thread/backgroundTerminals/clean": CodexSchema.V2ThreadBackgroundTerminalsCleanParams;
260
328
  readonly "thread/backgroundTerminals/list": CodexSchema.V2ThreadBackgroundTerminalsListParams;
261
329
  readonly "thread/backgroundTerminals/terminate": CodexSchema.V2ThreadBackgroundTerminalsTerminateParams;
262
- readonly "thread/rollback": CodexSchema.V2ThreadRollbackParams;
330
+ readonly "thread/revert": CodexSchema.V2ThreadRevertParams;
263
331
  readonly "thread/list": CodexSchema.V2ThreadListParams;
332
+ readonly "project/list": CodexSchema.V2ProjectListParams;
333
+ readonly "project/read": CodexSchema.V2ProjectReadParams;
334
+ readonly "project/create": CodexSchema.V2ProjectCreateParams;
335
+ readonly "project/import": CodexSchema.V2ProjectImportParams;
336
+ readonly "project/update": CodexSchema.V2ProjectUpdateParams;
337
+ readonly "project/move": CodexSchema.V2ProjectMoveParams;
338
+ readonly "project/delete": CodexSchema.V2ProjectDeleteParams;
339
+ readonly "threadSection/list": CodexSchema.V2ThreadSectionListParams;
340
+ readonly "threadSection/create": CodexSchema.V2ThreadSectionCreateParams;
341
+ readonly "threadSection/update": CodexSchema.V2ThreadSectionUpdateParams;
342
+ readonly "threadSection/delete": CodexSchema.V2ThreadSectionDeleteParams;
264
343
  readonly "thread/search": CodexSchema.V2ThreadSearchParams;
265
344
  readonly "thread/searchOccurrences": CodexSchema.V2ThreadSearchOccurrencesParams;
266
345
  readonly "thread/loaded/list": CodexSchema.V2ThreadLoadedListParams;
@@ -275,7 +354,9 @@ export interface ClientRequestParamsByMethod {
275
354
  readonly "marketplace/remove": CodexSchema.V2MarketplaceRemoveParams;
276
355
  readonly "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeParams;
277
356
  readonly "plugin/list": CodexSchema.V2PluginListParams;
357
+ readonly "plugin/search": CodexSchema.V2PluginSearchParams;
278
358
  readonly "plugin/installed": CodexSchema.V2PluginInstalledParams;
359
+ readonly "plugin/reconcile": CodexSchema.V2PluginReconcileParams;
279
360
  readonly "plugin/read": CodexSchema.V2PluginReadParams;
280
361
  readonly "plugin/skill/read": CodexSchema.V2PluginSkillReadParams;
281
362
  readonly "plugin/share/save": CodexSchema.V2PluginShareSaveParams;
@@ -299,6 +380,7 @@ export interface ClientRequestParamsByMethod {
299
380
  readonly "plugin/install": CodexSchema.V2PluginInstallParams;
300
381
  readonly "plugin/uninstall": CodexSchema.V2PluginUninstallParams;
301
382
  readonly "turn/start": CodexSchema.V2TurnStartParams;
383
+ readonly "turn/settings/update": CodexSchema.V2TurnSettingsUpdateParams;
302
384
  readonly "turn/steer": CodexSchema.V2TurnSteerParams;
303
385
  readonly "turn/interrupt": CodexSchema.V2TurnInterruptParams;
304
386
  readonly "thread/realtime/start": CodexSchema.V2ThreadRealtimeStartParams;
@@ -306,6 +388,7 @@ export interface ClientRequestParamsByMethod {
306
388
  readonly "thread/realtime/appendText": CodexSchema.V2ThreadRealtimeAppendTextParams;
307
389
  readonly "thread/realtime/appendSpeech": CodexSchema.V2ThreadRealtimeAppendSpeechParams;
308
390
  readonly "thread/realtime/stop": CodexSchema.V2ThreadRealtimeStopParams;
391
+ readonly "thread/timeline/list": CodexSchema.V2ThreadTimelineListParams;
309
392
  readonly "thread/realtime/listVoices": CodexSchema.V2ThreadRealtimeListVoicesParams;
310
393
  readonly "review/start": CodexSchema.V2ReviewStartParams;
311
394
  readonly "model/list": CodexSchema.V2ModelListParams;
@@ -329,15 +412,19 @@ export interface ClientRequestParamsByMethod {
329
412
  readonly "config/mcpServer/reload": undefined;
330
413
  readonly "mcpServerStatus/list": CodexSchema.V2ListMcpServerStatusParams;
331
414
  readonly "mcpServer/resource/read": CodexSchema.V2McpResourceReadParams;
415
+ readonly "mcpServer/event/stream/start": CodexSchema.V2McpServerEventStreamStartParams;
416
+ readonly "mcpServer/event/stream/stop": CodexSchema.V2McpServerEventStreamStopParams;
332
417
  readonly "mcpServer/tool/call": CodexSchema.V2McpServerToolCallParams;
333
418
  readonly "windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartParams;
334
419
  readonly "windowsSandbox/readiness": undefined;
335
420
  readonly "account/login/start": CodexSchema.V2LoginAccountParams;
421
+ readonly "account/bedrock/discover": CodexSchema.V2BedrockDiscoverParams;
422
+ readonly "account/bedrock/setup": CodexSchema.V2BedrockSetupParams;
336
423
  readonly "account/login/cancel": CodexSchema.V2CancelLoginAccountParams;
337
424
  readonly "account/logout": undefined;
338
- readonly "account/rateLimits/read": undefined;
425
+ readonly "account/rateLimits/read": CodexSchema.V2NullableGetAccountRateLimitsParams | undefined;
339
426
  readonly "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditParams;
340
- readonly "account/usage/read": undefined;
427
+ readonly "account/usage/read": CodexSchema.V2NullableGetAccountTokenUsageParams | undefined;
341
428
  readonly "account/workspaceMessages/read": undefined;
342
429
  readonly "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams;
343
430
  readonly "feedback/upload": CodexSchema.V2FeedbackUploadParams;
@@ -352,6 +439,7 @@ export interface ClientRequestParamsByMethod {
352
439
  readonly "config/read": CodexSchema.V2ConfigReadParams;
353
440
  readonly "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectParams;
354
441
  readonly "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportParams;
442
+ readonly "externalAgentConfig/import/recordHistory": CodexSchema.V2ExternalAgentConfigImportHistoryRecordParams;
355
443
  readonly "externalAgentConfig/import/readHistories": undefined;
356
444
  readonly "config/value/write": CodexSchema.V2ConfigValueWriteParams;
357
445
  readonly "config/batchWrite": CodexSchema.V2ConfigBatchWriteParams;
@@ -368,6 +456,12 @@ export interface ClientRequestParamsByMethod {
368
456
 
369
457
  export interface ClientRequestResponsesByMethod {
370
458
  readonly "initialize": CodexSchema.V1InitializeResponse;
459
+ readonly "server/diagnostics": CodexSchema.V2ServerDiagnosticsResponse;
460
+ readonly "userVerification/status": CodexSchema.V2UserVerificationStatusResponse;
461
+ readonly "userVerification/enroll": CodexSchema.V2UserVerificationEnrollResponse;
462
+ readonly "userVerification/delete": CodexSchema.V2UserVerificationDeleteResponse;
463
+ readonly "userVerification/verify": CodexSchema.V2UserVerificationVerifyResponse;
464
+ readonly "userVerification/cancel": CodexSchema.V2UserVerificationCancelResponse;
371
465
  readonly "thread/start": CodexSchema.V2ThreadStartResponse;
372
466
  readonly "thread/resume": CodexSchema.V2ThreadResumeResponse;
373
467
  readonly "thread/fork": CodexSchema.V2ThreadForkResponse;
@@ -380,10 +474,22 @@ export interface ClientRequestResponsesByMethod {
380
474
  readonly "thread/goal/set": CodexSchema.V2ThreadGoalSetResponse;
381
475
  readonly "thread/goal/get": CodexSchema.V2ThreadGoalGetResponse;
382
476
  readonly "thread/goal/clear": CodexSchema.V2ThreadGoalClearResponse;
477
+ readonly "thread/queue/add": CodexSchema.V2ThreadQueueAddResponse;
478
+ readonly "thread/queue/list": CodexSchema.V2ThreadQueueListResponse;
479
+ readonly "thread/queue/update": CodexSchema.V2ThreadQueueUpdateResponse;
480
+ readonly "thread/queue/delete": CodexSchema.V2ThreadQueueDeleteResponse;
481
+ readonly "thread/queue/reorder": CodexSchema.V2ThreadQueueReorderResponse;
482
+ readonly "thread/queue/start": CodexSchema.V2ThreadQueueStartResponse;
383
483
  readonly "thread/metadata/update": CodexSchema.V2ThreadMetadataUpdateResponse;
484
+ readonly "thread/attachment/add": CodexSchema.V2ThreadAttachmentAddResponse;
485
+ readonly "thread/attachment/list": CodexSchema.V2ThreadAttachmentListResponse;
486
+ readonly "thread/attachment/remove": CodexSchema.V2ThreadAttachmentRemoveResponse;
487
+ readonly "thread/section/move": CodexSchema.V2ThreadSectionMoveResponse;
384
488
  readonly "thread/settings/update": CodexSchema.V2ThreadSettingsUpdateResponse;
385
489
  readonly "thread/memoryMode/set": CodexSchema.V2ThreadMemoryModeSetResponse;
490
+ readonly "memory/status": CodexSchema.V2MemoryStatusResponse;
386
491
  readonly "memory/reset": CodexSchema.V2MemoryResetResponse;
492
+ readonly "rollout/compress": CodexSchema.V2RolloutCompressResponse;
387
493
  readonly "thread/unarchive": CodexSchema.V2ThreadUnarchiveResponse;
388
494
  readonly "thread/compact/start": CodexSchema.V2ThreadCompactStartResponse;
389
495
  readonly "thread/shellCommand": CodexSchema.V2ThreadShellCommandResponse;
@@ -391,8 +497,19 @@ export interface ClientRequestResponsesByMethod {
391
497
  readonly "thread/backgroundTerminals/clean": CodexSchema.V2ThreadBackgroundTerminalsCleanResponse;
392
498
  readonly "thread/backgroundTerminals/list": CodexSchema.V2ThreadBackgroundTerminalsListResponse;
393
499
  readonly "thread/backgroundTerminals/terminate": CodexSchema.V2ThreadBackgroundTerminalsTerminateResponse;
394
- readonly "thread/rollback": CodexSchema.V2ThreadRollbackResponse;
500
+ readonly "thread/revert": CodexSchema.V2ThreadRevertResponse;
395
501
  readonly "thread/list": CodexSchema.V2ThreadListResponse;
502
+ readonly "project/list": CodexSchema.V2ProjectListResponse;
503
+ readonly "project/read": CodexSchema.V2ProjectReadResponse;
504
+ readonly "project/create": CodexSchema.V2ProjectCreateResponse;
505
+ readonly "project/import": CodexSchema.V2ProjectImportResponse;
506
+ readonly "project/update": CodexSchema.V2ProjectUpdateResponse;
507
+ readonly "project/move": CodexSchema.V2ProjectMoveResponse;
508
+ readonly "project/delete": CodexSchema.V2ProjectDeleteResponse;
509
+ readonly "threadSection/list": CodexSchema.V2ThreadSectionListResponse;
510
+ readonly "threadSection/create": CodexSchema.V2ThreadSectionCreateResponse;
511
+ readonly "threadSection/update": CodexSchema.V2ThreadSectionUpdateResponse;
512
+ readonly "threadSection/delete": CodexSchema.V2ThreadSectionDeleteResponse;
396
513
  readonly "thread/search": CodexSchema.V2ThreadSearchResponse;
397
514
  readonly "thread/searchOccurrences": CodexSchema.V2ThreadSearchOccurrencesResponse;
398
515
  readonly "thread/loaded/list": CodexSchema.V2ThreadLoadedListResponse;
@@ -407,7 +524,9 @@ export interface ClientRequestResponsesByMethod {
407
524
  readonly "marketplace/remove": CodexSchema.V2MarketplaceRemoveResponse;
408
525
  readonly "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeResponse;
409
526
  readonly "plugin/list": CodexSchema.V2PluginListResponse;
527
+ readonly "plugin/search": CodexSchema.V2PluginSearchResponse;
410
528
  readonly "plugin/installed": CodexSchema.V2PluginInstalledResponse;
529
+ readonly "plugin/reconcile": CodexSchema.V2PluginReconcileResponse;
411
530
  readonly "plugin/read": CodexSchema.V2PluginReadResponse;
412
531
  readonly "plugin/skill/read": CodexSchema.V2PluginSkillReadResponse;
413
532
  readonly "plugin/share/save": CodexSchema.V2PluginShareSaveResponse;
@@ -431,6 +550,7 @@ export interface ClientRequestResponsesByMethod {
431
550
  readonly "plugin/install": CodexSchema.V2PluginInstallResponse;
432
551
  readonly "plugin/uninstall": CodexSchema.V2PluginUninstallResponse;
433
552
  readonly "turn/start": CodexSchema.V2TurnStartResponse;
553
+ readonly "turn/settings/update": CodexSchema.V2TurnSettingsUpdateResponse;
434
554
  readonly "turn/steer": CodexSchema.V2TurnSteerResponse;
435
555
  readonly "turn/interrupt": CodexSchema.V2TurnInterruptResponse;
436
556
  readonly "thread/realtime/start": CodexSchema.V2ThreadRealtimeStartResponse;
@@ -438,6 +558,7 @@ export interface ClientRequestResponsesByMethod {
438
558
  readonly "thread/realtime/appendText": CodexSchema.V2ThreadRealtimeAppendTextResponse;
439
559
  readonly "thread/realtime/appendSpeech": CodexSchema.V2ThreadRealtimeAppendSpeechResponse;
440
560
  readonly "thread/realtime/stop": CodexSchema.V2ThreadRealtimeStopResponse;
561
+ readonly "thread/timeline/list": CodexSchema.V2ThreadTimelineListResponse;
441
562
  readonly "thread/realtime/listVoices": CodexSchema.V2ThreadRealtimeListVoicesResponse;
442
563
  readonly "review/start": CodexSchema.V2ReviewStartResponse;
443
564
  readonly "model/list": CodexSchema.V2ModelListResponse;
@@ -461,10 +582,14 @@ export interface ClientRequestResponsesByMethod {
461
582
  readonly "config/mcpServer/reload": CodexSchema.V2McpServerRefreshResponse;
462
583
  readonly "mcpServerStatus/list": CodexSchema.V2ListMcpServerStatusResponse;
463
584
  readonly "mcpServer/resource/read": CodexSchema.V2McpResourceReadResponse;
585
+ readonly "mcpServer/event/stream/start": CodexSchema.V2McpServerEventStreamStartResponse;
586
+ readonly "mcpServer/event/stream/stop": CodexSchema.V2McpServerEventStreamStopResponse;
464
587
  readonly "mcpServer/tool/call": CodexSchema.V2McpServerToolCallResponse;
465
588
  readonly "windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartResponse;
466
589
  readonly "windowsSandbox/readiness": CodexSchema.V2WindowsSandboxReadinessResponse;
467
590
  readonly "account/login/start": CodexSchema.V2LoginAccountResponse;
591
+ readonly "account/bedrock/discover": CodexSchema.V2BedrockDiscoverResponse;
592
+ readonly "account/bedrock/setup": CodexSchema.V2BedrockSetupResponse;
468
593
  readonly "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse;
469
594
  readonly "account/logout": CodexSchema.V2LogoutAccountResponse;
470
595
  readonly "account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse;
@@ -484,6 +609,7 @@ export interface ClientRequestResponsesByMethod {
484
609
  readonly "config/read": CodexSchema.V2ConfigReadResponse;
485
610
  readonly "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectResponse;
486
611
  readonly "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportResponse;
612
+ readonly "externalAgentConfig/import/recordHistory": CodexSchema.V2ExternalAgentConfigImportHistoryRecordResponse;
487
613
  readonly "externalAgentConfig/import/readHistories": CodexSchema.V2ExternalAgentConfigImportHistoriesReadResponse;
488
614
  readonly "config/value/write": CodexSchema.V2ConfigWriteResponse;
489
615
  readonly "config/batchWrite": CodexSchema.V2ConfigWriteResponse;
@@ -538,10 +664,15 @@ export interface ServerNotificationParamsByMethod {
538
664
  readonly "thread/deleted": CodexSchema.V2ThreadDeletedNotification;
539
665
  readonly "thread/unarchived": CodexSchema.V2ThreadUnarchivedNotification;
540
666
  readonly "thread/closed": CodexSchema.V2ThreadClosedNotification;
667
+ readonly "thread/reverted": CodexSchema.V2ThreadRevertedNotification;
541
668
  readonly "skills/changed": CodexSchema.V2SkillsChangedNotification;
542
669
  readonly "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification;
670
+ readonly "thread/attachment/updated": CodexSchema.V2ThreadAttachmentUpdatedNotification;
543
671
  readonly "thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification;
544
672
  readonly "thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification;
673
+ readonly "thread/queue/changed": CodexSchema.V2ThreadQueueChangedNotification;
674
+ readonly "project/changed": CodexSchema.V2ProjectChangedNotification;
675
+ readonly "thread/project/updated": CodexSchema.V2ThreadProjectUpdatedNotification;
545
676
  readonly "thread/environment/connected": CodexSchema.V2EnvironmentConnectionNotification;
546
677
  readonly "thread/environment/disconnected": CodexSchema.V2EnvironmentConnectionNotification;
547
678
  readonly "thread/settings/updated": CodexSchema.V2ThreadSettingsUpdatedNotification;
@@ -555,6 +686,7 @@ export interface ServerNotificationParamsByMethod {
555
686
  readonly "item/started": CodexSchema.V2ItemStartedNotification;
556
687
  readonly "item/autoApprovalReview/started": CodexSchema.V2ItemGuardianApprovalReviewStartedNotification;
557
688
  readonly "item/autoApprovalReview/completed": CodexSchema.V2ItemGuardianApprovalReviewCompletedNotification;
689
+ readonly "autoApprovalReview/strictReviewRequired": CodexSchema.V2StrictReviewRequiredNotification;
558
690
  readonly "item/completed": CodexSchema.V2ItemCompletedNotification;
559
691
  readonly "rawResponseItem/completed": CodexSchema.V2RawResponseItemCompletedNotification;
560
692
  readonly "rawResponse/completed": CodexSchema.V2RawResponseCompletedNotification;
@@ -571,6 +703,7 @@ export interface ServerNotificationParamsByMethod {
571
703
  readonly "item/mcpToolCall/progress": CodexSchema.V2McpToolCallProgressNotification;
572
704
  readonly "mcpServer/oauthLogin/completed": CodexSchema.V2McpServerOauthLoginCompletedNotification;
573
705
  readonly "mcpServer/startupStatus/updated": CodexSchema.V2McpServerStatusUpdatedNotification;
706
+ readonly "mcpServer/event/stream/notification": CodexSchema.V2McpServerEventStreamNotification;
574
707
  readonly "account/updated": CodexSchema.V2AccountUpdatedNotification;
575
708
  readonly "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification;
576
709
  readonly "app/list/updated": CodexSchema.V2AppListUpdatedNotification;
@@ -584,6 +717,8 @@ export interface ServerNotificationParamsByMethod {
584
717
  readonly "thread/compacted": CodexSchema.V2ContextCompactedNotification;
585
718
  readonly "model/rerouted": CodexSchema.V2ModelReroutedNotification;
586
719
  readonly "model/verification": CodexSchema.V2ModelVerificationNotification;
720
+ readonly "modelProvider/authRecoveryStarted": CodexSchema.V2AuthRecoveryNotification;
721
+ readonly "modelProvider/authRecoveryCompleted": CodexSchema.V2AuthRecoveryNotification;
587
722
  readonly "turn/moderationMetadata": CodexSchema.V2TurnModerationMetadataNotification;
588
723
  readonly "model/safetyBuffering/updated": CodexSchema.V2ModelSafetyBufferingUpdatedNotification;
589
724
  readonly "warning": CodexSchema.V2WarningNotification;
@@ -594,6 +729,9 @@ export interface ServerNotificationParamsByMethod {
594
729
  readonly "fuzzyFileSearch/sessionCompleted": CodexSchema.FuzzyFileSearchSessionCompletedNotification;
595
730
  readonly "thread/realtime/started": CodexSchema.V2ThreadRealtimeStartedNotification;
596
731
  readonly "thread/realtime/itemAdded": CodexSchema.V2ThreadRealtimeItemAddedNotification;
732
+ readonly "thread/realtime/item/started": CodexSchema.V2ThreadRealtimeItemStartedNotification;
733
+ readonly "thread/realtime/item/transcript/delta": CodexSchema.V2ThreadRealtimeItemTranscriptDeltaNotification;
734
+ readonly "thread/realtime/item/completed": CodexSchema.V2ThreadRealtimeItemCompletedNotification;
597
735
  readonly "thread/realtime/transcript/delta": CodexSchema.V2ThreadRealtimeTranscriptDeltaNotification;
598
736
  readonly "thread/realtime/transcript/done": CodexSchema.V2ThreadRealtimeTranscriptDoneNotification;
599
737
  readonly "thread/realtime/outputAudio/delta": CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification;