@meistrari/agent-core 0.2.0-experimental.1 → 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 (71) hide show
  1. package/README.md +50 -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 +864 -135
  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 +893 -130
  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 +423 -53
  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 +52 -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 +3 -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/supervisor-protocol/agent-event-wrapper.ts +30 -0
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable style/indent, 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
  export const v1 = {
6
6
  "InitializeParams": "V1InitializeParams",
@@ -19,6 +19,11 @@ export const v2 = {
19
19
  "AppsListResponse": "V2AppsListResponse",
20
20
  "AppsReadParams": "V2AppsReadParams",
21
21
  "AppsReadResponse": "V2AppsReadResponse",
22
+ "AuthRecoveryNotification": "V2AuthRecoveryNotification",
23
+ "BedrockDiscoverParams": "V2BedrockDiscoverParams",
24
+ "BedrockDiscoverResponse": "V2BedrockDiscoverResponse",
25
+ "BedrockSetupParams": "V2BedrockSetupParams",
26
+ "BedrockSetupResponse": "V2BedrockSetupResponse",
22
27
  "CancelLoginAccountParams": "V2CancelLoginAccountParams",
23
28
  "CancelLoginAccountResponse": "V2CancelLoginAccountResponse",
24
29
  "CollaborationModeListParams": "V2CollaborationModeListParams",
@@ -60,6 +65,8 @@ export const v2 = {
60
65
  "ExternalAgentConfigDetectResponse": "V2ExternalAgentConfigDetectResponse",
61
66
  "ExternalAgentConfigImportCompletedNotification": "V2ExternalAgentConfigImportCompletedNotification",
62
67
  "ExternalAgentConfigImportHistoriesReadResponse": "V2ExternalAgentConfigImportHistoriesReadResponse",
68
+ "ExternalAgentConfigImportHistoryRecordParams": "V2ExternalAgentConfigImportHistoryRecordParams",
69
+ "ExternalAgentConfigImportHistoryRecordResponse": "V2ExternalAgentConfigImportHistoryRecordResponse",
63
70
  "ExternalAgentConfigImportParams": "V2ExternalAgentConfigImportParams",
64
71
  "ExternalAgentConfigImportProgressNotification": "V2ExternalAgentConfigImportProgressNotification",
65
72
  "ExternalAgentConfigImportResponse": "V2ExternalAgentConfigImportResponse",
@@ -113,6 +120,11 @@ export const v2 = {
113
120
  "MarketplaceUpgradeResponse": "V2MarketplaceUpgradeResponse",
114
121
  "McpResourceReadParams": "V2McpResourceReadParams",
115
122
  "McpResourceReadResponse": "V2McpResourceReadResponse",
123
+ "McpServerEventStreamNotification": "V2McpServerEventStreamNotification",
124
+ "McpServerEventStreamStartParams": "V2McpServerEventStreamStartParams",
125
+ "McpServerEventStreamStartResponse": "V2McpServerEventStreamStartResponse",
126
+ "McpServerEventStreamStopParams": "V2McpServerEventStreamStopParams",
127
+ "McpServerEventStreamStopResponse": "V2McpServerEventStreamStopResponse",
116
128
  "McpServerOauthLoginCompletedNotification": "V2McpServerOauthLoginCompletedNotification",
117
129
  "McpServerOauthLoginParams": "V2McpServerOauthLoginParams",
118
130
  "McpServerOauthLoginResponse": "V2McpServerOauthLoginResponse",
@@ -122,6 +134,8 @@ export const v2 = {
122
134
  "McpServerToolCallResponse": "V2McpServerToolCallResponse",
123
135
  "McpToolCallProgressNotification": "V2McpToolCallProgressNotification",
124
136
  "MemoryResetResponse": "V2MemoryResetResponse",
137
+ "MemoryStatusParams": "V2MemoryStatusParams",
138
+ "MemoryStatusResponse": "V2MemoryStatusResponse",
125
139
  "MockExperimentalMethodParams": "V2MockExperimentalMethodParams",
126
140
  "MockExperimentalMethodResponse": "V2MockExperimentalMethodResponse",
127
141
  "ModelListParams": "V2ModelListParams",
@@ -131,6 +145,8 @@ export const v2 = {
131
145
  "ModelReroutedNotification": "V2ModelReroutedNotification",
132
146
  "ModelSafetyBufferingUpdatedNotification": "V2ModelSafetyBufferingUpdatedNotification",
133
147
  "ModelVerificationNotification": "V2ModelVerificationNotification",
148
+ "NullableGetAccountRateLimitsParams": "V2NullableGetAccountRateLimitsParams",
149
+ "NullableGetAccountTokenUsageParams": "V2NullableGetAccountTokenUsageParams",
134
150
  "NullableRemoteControlDisableParams": "V2NullableRemoteControlDisableParams",
135
151
  "NullableRemoteControlEnableParams": "V2NullableRemoteControlEnableParams",
136
152
  "PermissionProfileListParams": "V2PermissionProfileListParams",
@@ -144,6 +160,10 @@ export const v2 = {
144
160
  "PluginListResponse": "V2PluginListResponse",
145
161
  "PluginReadParams": "V2PluginReadParams",
146
162
  "PluginReadResponse": "V2PluginReadResponse",
163
+ "PluginReconcileParams": "V2PluginReconcileParams",
164
+ "PluginReconcileResponse": "V2PluginReconcileResponse",
165
+ "PluginSearchParams": "V2PluginSearchParams",
166
+ "PluginSearchResponse": "V2PluginSearchResponse",
147
167
  "PluginShareCheckoutParams": "V2PluginShareCheckoutParams",
148
168
  "PluginShareCheckoutResponse": "V2PluginShareCheckoutResponse",
149
169
  "PluginShareDeleteParams": "V2PluginShareDeleteParams",
@@ -168,6 +188,21 @@ export const v2 = {
168
188
  "ProcessSpawnResponse": "V2ProcessSpawnResponse",
169
189
  "ProcessWriteStdinParams": "V2ProcessWriteStdinParams",
170
190
  "ProcessWriteStdinResponse": "V2ProcessWriteStdinResponse",
191
+ "ProjectChangedNotification": "V2ProjectChangedNotification",
192
+ "ProjectCreateParams": "V2ProjectCreateParams",
193
+ "ProjectCreateResponse": "V2ProjectCreateResponse",
194
+ "ProjectDeleteParams": "V2ProjectDeleteParams",
195
+ "ProjectDeleteResponse": "V2ProjectDeleteResponse",
196
+ "ProjectImportParams": "V2ProjectImportParams",
197
+ "ProjectImportResponse": "V2ProjectImportResponse",
198
+ "ProjectListParams": "V2ProjectListParams",
199
+ "ProjectListResponse": "V2ProjectListResponse",
200
+ "ProjectMoveParams": "V2ProjectMoveParams",
201
+ "ProjectMoveResponse": "V2ProjectMoveResponse",
202
+ "ProjectReadParams": "V2ProjectReadParams",
203
+ "ProjectReadResponse": "V2ProjectReadResponse",
204
+ "ProjectUpdateParams": "V2ProjectUpdateParams",
205
+ "ProjectUpdateResponse": "V2ProjectUpdateResponse",
171
206
  "RawResponseCompletedNotification": "V2RawResponseCompletedNotification",
172
207
  "RawResponseItemCompletedNotification": "V2RawResponseItemCompletedNotification",
173
208
  "ReasoningSummaryPartAddedNotification": "V2ReasoningSummaryPartAddedNotification",
@@ -187,8 +222,11 @@ export const v2 = {
187
222
  "RemoteControlStatusReadResponse": "V2RemoteControlStatusReadResponse",
188
223
  "ReviewStartParams": "V2ReviewStartParams",
189
224
  "ReviewStartResponse": "V2ReviewStartResponse",
225
+ "RolloutCompressResponse": "V2RolloutCompressResponse",
190
226
  "SendAddCreditsNudgeEmailParams": "V2SendAddCreditsNudgeEmailParams",
191
227
  "SendAddCreditsNudgeEmailResponse": "V2SendAddCreditsNudgeEmailResponse",
228
+ "ServerDiagnosticsParams": "V2ServerDiagnosticsParams",
229
+ "ServerDiagnosticsResponse": "V2ServerDiagnosticsResponse",
192
230
  "ServerRequestResolvedNotification": "V2ServerRequestResolvedNotification",
193
231
  "SkillsChangedNotification": "V2SkillsChangedNotification",
194
232
  "SkillsConfigWriteParams": "V2SkillsConfigWriteParams",
@@ -197,12 +235,20 @@ export const v2 = {
197
235
  "SkillsExtraRootsSetResponse": "V2SkillsExtraRootsSetResponse",
198
236
  "SkillsListParams": "V2SkillsListParams",
199
237
  "SkillsListResponse": "V2SkillsListResponse",
238
+ "StrictReviewRequiredNotification": "V2StrictReviewRequiredNotification",
200
239
  "TerminalInteractionNotification": "V2TerminalInteractionNotification",
201
240
  "ThreadApproveGuardianDeniedActionParams": "V2ThreadApproveGuardianDeniedActionParams",
202
241
  "ThreadApproveGuardianDeniedActionResponse": "V2ThreadApproveGuardianDeniedActionResponse",
203
242
  "ThreadArchivedNotification": "V2ThreadArchivedNotification",
204
243
  "ThreadArchiveParams": "V2ThreadArchiveParams",
205
244
  "ThreadArchiveResponse": "V2ThreadArchiveResponse",
245
+ "ThreadAttachmentAddParams": "V2ThreadAttachmentAddParams",
246
+ "ThreadAttachmentAddResponse": "V2ThreadAttachmentAddResponse",
247
+ "ThreadAttachmentListParams": "V2ThreadAttachmentListParams",
248
+ "ThreadAttachmentListResponse": "V2ThreadAttachmentListResponse",
249
+ "ThreadAttachmentRemoveParams": "V2ThreadAttachmentRemoveParams",
250
+ "ThreadAttachmentRemoveResponse": "V2ThreadAttachmentRemoveResponse",
251
+ "ThreadAttachmentUpdatedNotification": "V2ThreadAttachmentUpdatedNotification",
206
252
  "ThreadBackgroundTerminalsCleanParams": "V2ThreadBackgroundTerminalsCleanParams",
207
253
  "ThreadBackgroundTerminalsCleanResponse": "V2ThreadBackgroundTerminalsCleanResponse",
208
254
  "ThreadBackgroundTerminalsListParams": "V2ThreadBackgroundTerminalsListParams",
@@ -242,6 +288,20 @@ export const v2 = {
242
288
  "ThreadMetadataUpdateParams": "V2ThreadMetadataUpdateParams",
243
289
  "ThreadMetadataUpdateResponse": "V2ThreadMetadataUpdateResponse",
244
290
  "ThreadNameUpdatedNotification": "V2ThreadNameUpdatedNotification",
291
+ "ThreadProjectUpdatedNotification": "V2ThreadProjectUpdatedNotification",
292
+ "ThreadQueueAddParams": "V2ThreadQueueAddParams",
293
+ "ThreadQueueAddResponse": "V2ThreadQueueAddResponse",
294
+ "ThreadQueueChangedNotification": "V2ThreadQueueChangedNotification",
295
+ "ThreadQueueDeleteParams": "V2ThreadQueueDeleteParams",
296
+ "ThreadQueueDeleteResponse": "V2ThreadQueueDeleteResponse",
297
+ "ThreadQueueListParams": "V2ThreadQueueListParams",
298
+ "ThreadQueueListResponse": "V2ThreadQueueListResponse",
299
+ "ThreadQueueReorderParams": "V2ThreadQueueReorderParams",
300
+ "ThreadQueueReorderResponse": "V2ThreadQueueReorderResponse",
301
+ "ThreadQueueStartParams": "V2ThreadQueueStartParams",
302
+ "ThreadQueueStartResponse": "V2ThreadQueueStartResponse",
303
+ "ThreadQueueUpdateParams": "V2ThreadQueueUpdateParams",
304
+ "ThreadQueueUpdateResponse": "V2ThreadQueueUpdateResponse",
245
305
  "ThreadReadParams": "V2ThreadReadParams",
246
306
  "ThreadReadResponse": "V2ThreadReadResponse",
247
307
  "ThreadRealtimeAppendAudioParams": "V2ThreadRealtimeAppendAudioParams",
@@ -253,6 +313,9 @@ export const v2 = {
253
313
  "ThreadRealtimeClosedNotification": "V2ThreadRealtimeClosedNotification",
254
314
  "ThreadRealtimeErrorNotification": "V2ThreadRealtimeErrorNotification",
255
315
  "ThreadRealtimeItemAddedNotification": "V2ThreadRealtimeItemAddedNotification",
316
+ "ThreadRealtimeItemCompletedNotification": "V2ThreadRealtimeItemCompletedNotification",
317
+ "ThreadRealtimeItemStartedNotification": "V2ThreadRealtimeItemStartedNotification",
318
+ "ThreadRealtimeItemTranscriptDeltaNotification": "V2ThreadRealtimeItemTranscriptDeltaNotification",
256
319
  "ThreadRealtimeListVoicesParams": "V2ThreadRealtimeListVoicesParams",
257
320
  "ThreadRealtimeListVoicesResponse": "V2ThreadRealtimeListVoicesResponse",
258
321
  "ThreadRealtimeOutputAudioDeltaNotification": "V2ThreadRealtimeOutputAudioDeltaNotification",
@@ -266,12 +329,23 @@ export const v2 = {
266
329
  "ThreadRealtimeTranscriptDoneNotification": "V2ThreadRealtimeTranscriptDoneNotification",
267
330
  "ThreadResumeParams": "V2ThreadResumeParams",
268
331
  "ThreadResumeResponse": "V2ThreadResumeResponse",
269
- "ThreadRollbackParams": "V2ThreadRollbackParams",
270
- "ThreadRollbackResponse": "V2ThreadRollbackResponse",
332
+ "ThreadRevertedNotification": "V2ThreadRevertedNotification",
333
+ "ThreadRevertParams": "V2ThreadRevertParams",
334
+ "ThreadRevertResponse": "V2ThreadRevertResponse",
271
335
  "ThreadSearchOccurrencesParams": "V2ThreadSearchOccurrencesParams",
272
336
  "ThreadSearchOccurrencesResponse": "V2ThreadSearchOccurrencesResponse",
273
337
  "ThreadSearchParams": "V2ThreadSearchParams",
274
338
  "ThreadSearchResponse": "V2ThreadSearchResponse",
339
+ "ThreadSectionCreateParams": "V2ThreadSectionCreateParams",
340
+ "ThreadSectionCreateResponse": "V2ThreadSectionCreateResponse",
341
+ "ThreadSectionDeleteParams": "V2ThreadSectionDeleteParams",
342
+ "ThreadSectionDeleteResponse": "V2ThreadSectionDeleteResponse",
343
+ "ThreadSectionListParams": "V2ThreadSectionListParams",
344
+ "ThreadSectionListResponse": "V2ThreadSectionListResponse",
345
+ "ThreadSectionMoveParams": "V2ThreadSectionMoveParams",
346
+ "ThreadSectionMoveResponse": "V2ThreadSectionMoveResponse",
347
+ "ThreadSectionUpdateParams": "V2ThreadSectionUpdateParams",
348
+ "ThreadSectionUpdateResponse": "V2ThreadSectionUpdateResponse",
275
349
  "ThreadSetNameParams": "V2ThreadSetNameParams",
276
350
  "ThreadSetNameResponse": "V2ThreadSetNameResponse",
277
351
  "ThreadSettingsUpdatedNotification": "V2ThreadSettingsUpdatedNotification",
@@ -283,6 +357,8 @@ export const v2 = {
283
357
  "ThreadStartParams": "V2ThreadStartParams",
284
358
  "ThreadStartResponse": "V2ThreadStartResponse",
285
359
  "ThreadStatusChangedNotification": "V2ThreadStatusChangedNotification",
360
+ "ThreadTimelineListParams": "V2ThreadTimelineListParams",
361
+ "ThreadTimelineListResponse": "V2ThreadTimelineListResponse",
286
362
  "ThreadTokenUsageUpdatedNotification": "V2ThreadTokenUsageUpdatedNotification",
287
363
  "ThreadTurnsListParams": "V2ThreadTurnsListParams",
288
364
  "ThreadTurnsListResponse": "V2ThreadTurnsListResponse",
@@ -297,11 +373,24 @@ export const v2 = {
297
373
  "TurnInterruptResponse": "V2TurnInterruptResponse",
298
374
  "TurnModerationMetadataNotification": "V2TurnModerationMetadataNotification",
299
375
  "TurnPlanUpdatedNotification": "V2TurnPlanUpdatedNotification",
376
+ "TurnSettingsUpdateParams": "V2TurnSettingsUpdateParams",
377
+ "TurnSettingsUpdateResponse": "V2TurnSettingsUpdateResponse",
300
378
  "TurnStartedNotification": "V2TurnStartedNotification",
301
379
  "TurnStartParams": "V2TurnStartParams",
302
380
  "TurnStartResponse": "V2TurnStartResponse",
303
381
  "TurnSteerParams": "V2TurnSteerParams",
304
382
  "TurnSteerResponse": "V2TurnSteerResponse",
383
+ "UserVerificationCancelParams": "V2UserVerificationCancelParams",
384
+ "UserVerificationCancelResponse": "V2UserVerificationCancelResponse",
385
+ "UserVerificationDeleteParams": "V2UserVerificationDeleteParams",
386
+ "UserVerificationDeleteResponse": "V2UserVerificationDeleteResponse",
387
+ "UserVerificationEnrollParams": "V2UserVerificationEnrollParams",
388
+ "UserVerificationEnrollResponse": "V2UserVerificationEnrollResponse",
389
+ "UserVerificationRpcError": "V2UserVerificationRpcError",
390
+ "UserVerificationStatusParams": "V2UserVerificationStatusParams",
391
+ "UserVerificationStatusResponse": "V2UserVerificationStatusResponse",
392
+ "UserVerificationVerifyParams": "V2UserVerificationVerifyParams",
393
+ "UserVerificationVerifyResponse": "V2UserVerificationVerifyResponse",
305
394
  "WarningNotification": "V2WarningNotification",
306
395
  "WindowsSandboxReadinessResponse": "V2WindowsSandboxReadinessResponse",
307
396
  "WindowsSandboxSetupCompletedNotification": "V2WindowsSandboxSetupCompletedNotification",