@gakr-gakr/codex 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.
- package/autobot.plugin.json +374 -0
- package/doctor-contract-api.ts +68 -0
- package/harness.ts +72 -0
- package/index.ts +124 -0
- package/media-understanding-provider.ts +521 -0
- package/package.json +40 -0
- package/prompt-overlay.ts +21 -0
- package/provider-catalog.ts +83 -0
- package/provider-discovery.ts +45 -0
- package/provider.ts +243 -0
- package/src/app-server/app-inventory-cache.ts +324 -0
- package/src/app-server/approval-bridge.ts +1211 -0
- package/src/app-server/auth-bridge.ts +614 -0
- package/src/app-server/capabilities.ts +27 -0
- package/src/app-server/client-factory.ts +24 -0
- package/src/app-server/client.ts +715 -0
- package/src/app-server/compact.ts +512 -0
- package/src/app-server/computer-use.ts +683 -0
- package/src/app-server/config.ts +1038 -0
- package/src/app-server/context-engine-projection.ts +403 -0
- package/src/app-server/dynamic-tool-diagnostics.ts +73 -0
- package/src/app-server/dynamic-tool-profile.ts +70 -0
- package/src/app-server/dynamic-tools.ts +623 -0
- package/src/app-server/elicitation-bridge.ts +783 -0
- package/src/app-server/event-projector.ts +2065 -0
- package/src/app-server/image-payload-sanitizer.ts +167 -0
- package/src/app-server/local-runtime-attribution.ts +39 -0
- package/src/app-server/managed-binary.ts +193 -0
- package/src/app-server/models.ts +172 -0
- package/src/app-server/native-hook-relay.ts +150 -0
- package/src/app-server/native-subagent-task-mirror.ts +497 -0
- package/src/app-server/plugin-activation.ts +283 -0
- package/src/app-server/plugin-app-cache-key.ts +74 -0
- package/src/app-server/plugin-approval-roundtrip.ts +122 -0
- package/src/app-server/plugin-inventory.ts +357 -0
- package/src/app-server/plugin-thread-config.ts +455 -0
- package/src/app-server/protocol-generated/json/DynamicToolCallParams.json +33 -0
- package/src/app-server/protocol-generated/json/v2/ErrorNotification.json +199 -0
- package/src/app-server/protocol-generated/json/v2/GetAccountResponse.json +102 -0
- package/src/app-server/protocol-generated/json/v2/ModelListResponse.json +227 -0
- package/src/app-server/protocol-generated/json/v2/ThreadResumeResponse.json +2630 -0
- package/src/app-server/protocol-generated/json/v2/ThreadStartResponse.json +2630 -0
- package/src/app-server/protocol-generated/json/v2/TurnCompletedNotification.json +1659 -0
- package/src/app-server/protocol-generated/json/v2/TurnStartResponse.json +1655 -0
- package/src/app-server/protocol-validators.ts +203 -0
- package/src/app-server/protocol.ts +520 -0
- package/src/app-server/rate-limit-cache.ts +48 -0
- package/src/app-server/rate-limits.ts +583 -0
- package/src/app-server/request.ts +73 -0
- package/src/app-server/run-attempt.ts +4862 -0
- package/src/app-server/session-binding.ts +398 -0
- package/src/app-server/session-history.ts +44 -0
- package/src/app-server/shared-client.ts +289 -0
- package/src/app-server/side-question.ts +1009 -0
- package/src/app-server/test-support.ts +48 -0
- package/src/app-server/thread-lifecycle.ts +959 -0
- package/src/app-server/timeout.ts +9 -0
- package/src/app-server/tool-progress-normalization.ts +77 -0
- package/src/app-server/trajectory.ts +368 -0
- package/src/app-server/transcript-mirror.ts +208 -0
- package/src/app-server/transport-stdio.ts +107 -0
- package/src/app-server/transport-websocket.ts +90 -0
- package/src/app-server/transport.ts +117 -0
- package/src/app-server/user-input-bridge.ts +316 -0
- package/src/app-server/version.ts +4 -0
- package/src/app-server/vision-tools.ts +12 -0
- package/src/command-account.ts +544 -0
- package/src/command-formatters.ts +426 -0
- package/src/command-handlers.ts +2021 -0
- package/src/command-plugins-management.ts +137 -0
- package/src/command-rpc.ts +142 -0
- package/src/commands.ts +65 -0
- package/src/conversation-binding-data.ts +124 -0
- package/src/conversation-binding.ts +561 -0
- package/src/conversation-control.ts +303 -0
- package/src/conversation-turn-collector.ts +186 -0
- package/src/conversation-turn-input.ts +106 -0
- package/src/migration/apply.ts +501 -0
- package/src/migration/helpers.ts +55 -0
- package/src/migration/plan.ts +461 -0
- package/src/migration/provider.ts +41 -0
- package/src/migration/source.ts +643 -0
- package/src/migration/targets.ts +25 -0
- package/src/node-cli-sessions.ts +711 -0
- package/test-api.ts +95 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "GetAccountResponse",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": [
|
|
6
|
+
"requiresOpenaiAuth"
|
|
7
|
+
],
|
|
8
|
+
"properties": {
|
|
9
|
+
"account": {
|
|
10
|
+
"anyOf": [
|
|
11
|
+
{
|
|
12
|
+
"$ref": "#/definitions/Account"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "null"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"requiresOpenaiAuth": {
|
|
20
|
+
"type": "boolean"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"definitions": {
|
|
24
|
+
"Account": {
|
|
25
|
+
"oneOf": [
|
|
26
|
+
{
|
|
27
|
+
"type": "object",
|
|
28
|
+
"required": [
|
|
29
|
+
"type"
|
|
30
|
+
],
|
|
31
|
+
"properties": {
|
|
32
|
+
"type": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"enum": [
|
|
35
|
+
"apiKey"
|
|
36
|
+
],
|
|
37
|
+
"title": "ApiKeyAccountType"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"title": "ApiKeyAccount"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"type": "object",
|
|
44
|
+
"required": [
|
|
45
|
+
"email",
|
|
46
|
+
"planType",
|
|
47
|
+
"type"
|
|
48
|
+
],
|
|
49
|
+
"properties": {
|
|
50
|
+
"email": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"planType": {
|
|
54
|
+
"$ref": "#/definitions/PlanType"
|
|
55
|
+
},
|
|
56
|
+
"type": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"enum": [
|
|
59
|
+
"chatgpt"
|
|
60
|
+
],
|
|
61
|
+
"title": "ChatgptAccountType"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"title": "ChatgptAccount"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"type": "object",
|
|
68
|
+
"required": [
|
|
69
|
+
"type"
|
|
70
|
+
],
|
|
71
|
+
"properties": {
|
|
72
|
+
"type": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"enum": [
|
|
75
|
+
"amazonBedrock"
|
|
76
|
+
],
|
|
77
|
+
"title": "AmazonBedrockAccountType"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"title": "AmazonBedrockAccount"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"PlanType": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"enum": [
|
|
87
|
+
"free",
|
|
88
|
+
"go",
|
|
89
|
+
"plus",
|
|
90
|
+
"pro",
|
|
91
|
+
"prolite",
|
|
92
|
+
"team",
|
|
93
|
+
"self_serve_business_usage_based",
|
|
94
|
+
"business",
|
|
95
|
+
"enterprise_cbp_usage_based",
|
|
96
|
+
"enterprise",
|
|
97
|
+
"edu",
|
|
98
|
+
"unknown"
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "ModelListResponse",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": [
|
|
6
|
+
"data"
|
|
7
|
+
],
|
|
8
|
+
"properties": {
|
|
9
|
+
"data": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"items": {
|
|
12
|
+
"$ref": "#/definitions/Model"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"nextCursor": {
|
|
16
|
+
"description": "Opaque cursor to pass to the next call to continue after the last item. If None, there are no more items to return.",
|
|
17
|
+
"type": [
|
|
18
|
+
"string",
|
|
19
|
+
"null"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"definitions": {
|
|
24
|
+
"InputModality": {
|
|
25
|
+
"description": "Canonical user-input modality tags advertised by a model.",
|
|
26
|
+
"oneOf": [
|
|
27
|
+
{
|
|
28
|
+
"description": "Plain text turns and tool payloads.",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"enum": [
|
|
31
|
+
"text"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"description": "Image attachments included in user turns.",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"enum": [
|
|
38
|
+
"image"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"Model": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"required": [
|
|
46
|
+
"defaultReasoningEffort",
|
|
47
|
+
"description",
|
|
48
|
+
"displayName",
|
|
49
|
+
"hidden",
|
|
50
|
+
"id",
|
|
51
|
+
"isDefault",
|
|
52
|
+
"model",
|
|
53
|
+
"supportedReasoningEfforts"
|
|
54
|
+
],
|
|
55
|
+
"properties": {
|
|
56
|
+
"additionalSpeedTiers": {
|
|
57
|
+
"description": "Deprecated: use `serviceTiers` instead.",
|
|
58
|
+
"default": [],
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"availabilityNux": {
|
|
65
|
+
"anyOf": [
|
|
66
|
+
{
|
|
67
|
+
"$ref": "#/definitions/ModelAvailabilityNux"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "null"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"defaultReasoningEffort": {
|
|
75
|
+
"$ref": "#/definitions/ReasoningEffort"
|
|
76
|
+
},
|
|
77
|
+
"description": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
},
|
|
80
|
+
"displayName": {
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
"hidden": {
|
|
84
|
+
"type": "boolean"
|
|
85
|
+
},
|
|
86
|
+
"id": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"inputModalities": {
|
|
90
|
+
"default": [
|
|
91
|
+
"text",
|
|
92
|
+
"image"
|
|
93
|
+
],
|
|
94
|
+
"type": "array",
|
|
95
|
+
"items": {
|
|
96
|
+
"$ref": "#/definitions/InputModality"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"isDefault": {
|
|
100
|
+
"type": "boolean"
|
|
101
|
+
},
|
|
102
|
+
"model": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
"serviceTiers": {
|
|
106
|
+
"default": [],
|
|
107
|
+
"type": "array",
|
|
108
|
+
"items": {
|
|
109
|
+
"$ref": "#/definitions/ModelServiceTier"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"supportedReasoningEfforts": {
|
|
113
|
+
"type": "array",
|
|
114
|
+
"items": {
|
|
115
|
+
"$ref": "#/definitions/ReasoningEffortOption"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"supportsPersonality": {
|
|
119
|
+
"default": false,
|
|
120
|
+
"type": "boolean"
|
|
121
|
+
},
|
|
122
|
+
"upgrade": {
|
|
123
|
+
"type": [
|
|
124
|
+
"string",
|
|
125
|
+
"null"
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"upgradeInfo": {
|
|
129
|
+
"anyOf": [
|
|
130
|
+
{
|
|
131
|
+
"$ref": "#/definitions/ModelUpgradeInfo"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"type": "null"
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"ModelAvailabilityNux": {
|
|
141
|
+
"type": "object",
|
|
142
|
+
"required": [
|
|
143
|
+
"message"
|
|
144
|
+
],
|
|
145
|
+
"properties": {
|
|
146
|
+
"message": {
|
|
147
|
+
"type": "string"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"ModelServiceTier": {
|
|
152
|
+
"type": "object",
|
|
153
|
+
"required": [
|
|
154
|
+
"description",
|
|
155
|
+
"id",
|
|
156
|
+
"name"
|
|
157
|
+
],
|
|
158
|
+
"properties": {
|
|
159
|
+
"description": {
|
|
160
|
+
"type": "string"
|
|
161
|
+
},
|
|
162
|
+
"id": {
|
|
163
|
+
"type": "string"
|
|
164
|
+
},
|
|
165
|
+
"name": {
|
|
166
|
+
"type": "string"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"ModelUpgradeInfo": {
|
|
171
|
+
"type": "object",
|
|
172
|
+
"required": [
|
|
173
|
+
"model"
|
|
174
|
+
],
|
|
175
|
+
"properties": {
|
|
176
|
+
"migrationMarkdown": {
|
|
177
|
+
"type": [
|
|
178
|
+
"string",
|
|
179
|
+
"null"
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
"model": {
|
|
183
|
+
"type": "string"
|
|
184
|
+
},
|
|
185
|
+
"modelLink": {
|
|
186
|
+
"type": [
|
|
187
|
+
"string",
|
|
188
|
+
"null"
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
"upgradeCopy": {
|
|
192
|
+
"type": [
|
|
193
|
+
"string",
|
|
194
|
+
"null"
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"ReasoningEffort": {
|
|
200
|
+
"description": "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
|
|
201
|
+
"type": "string",
|
|
202
|
+
"enum": [
|
|
203
|
+
"none",
|
|
204
|
+
"minimal",
|
|
205
|
+
"low",
|
|
206
|
+
"medium",
|
|
207
|
+
"high",
|
|
208
|
+
"xhigh"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
"ReasoningEffortOption": {
|
|
212
|
+
"type": "object",
|
|
213
|
+
"required": [
|
|
214
|
+
"description",
|
|
215
|
+
"reasoningEffort"
|
|
216
|
+
],
|
|
217
|
+
"properties": {
|
|
218
|
+
"description": {
|
|
219
|
+
"type": "string"
|
|
220
|
+
},
|
|
221
|
+
"reasoningEffort": {
|
|
222
|
+
"$ref": "#/definitions/ReasoningEffort"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|