@agi-cli/api 0.1.60
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/README.md +256 -0
- package/dist/generated/client/client.gen.d.ts +3 -0
- package/dist/generated/client/client.gen.d.ts.map +1 -0
- package/dist/generated/client/client.gen.js +133 -0
- package/dist/generated/client/client.gen.js.map +1 -0
- package/dist/generated/client/index.d.ts +9 -0
- package/dist/generated/client/index.d.ts.map +1 -0
- package/dist/generated/client/index.js +7 -0
- package/dist/generated/client/index.js.map +1 -0
- package/dist/generated/client/types.gen.d.ts +96 -0
- package/dist/generated/client/types.gen.d.ts.map +1 -0
- package/dist/generated/client/types.gen.js +3 -0
- package/dist/generated/client/types.gen.js.map +1 -0
- package/dist/generated/client/utils.gen.d.ts +15 -0
- package/dist/generated/client/utils.gen.d.ts.map +1 -0
- package/dist/generated/client/utils.gen.js +171 -0
- package/dist/generated/client/utils.gen.js.map +1 -0
- package/dist/generated/client.gen.d.ts +13 -0
- package/dist/generated/client.gen.d.ts.map +1 -0
- package/dist/generated/client.gen.js +5 -0
- package/dist/generated/client.gen.js.map +1 -0
- package/dist/generated/core/auth.gen.d.ts +19 -0
- package/dist/generated/core/auth.gen.d.ts.map +1 -0
- package/dist/generated/core/auth.gen.js +15 -0
- package/dist/generated/core/auth.gen.js.map +1 -0
- package/dist/generated/core/bodySerializer.gen.d.ts +18 -0
- package/dist/generated/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/bodySerializer.gen.js +58 -0
- package/dist/generated/core/bodySerializer.gen.js.map +1 -0
- package/dist/generated/core/params.gen.d.ts +34 -0
- package/dist/generated/core/params.gen.d.ts.map +1 -0
- package/dist/generated/core/params.gen.js +89 -0
- package/dist/generated/core/params.gen.js.map +1 -0
- package/dist/generated/core/pathSerializer.gen.d.ts +34 -0
- package/dist/generated/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/pathSerializer.gen.js +115 -0
- package/dist/generated/core/pathSerializer.gen.js.map +1 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/queryKeySerializer.gen.js +100 -0
- package/dist/generated/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/generated/core/serverSentEvents.gen.js +136 -0
- package/dist/generated/core/serverSentEvents.gen.js.map +1 -0
- package/dist/generated/core/types.gen.d.ts +79 -0
- package/dist/generated/core/types.gen.d.ts.map +1 -0
- package/dist/generated/core/types.gen.js +3 -0
- package/dist/generated/core/types.gen.js.map +1 -0
- package/dist/generated/core/utils.gen.d.ts +20 -0
- package/dist/generated/core/utils.gen.d.ts.map +1 -0
- package/dist/generated/core/utils.gen.js +88 -0
- package/dist/generated/core/utils.gen.js.map +1 -0
- package/dist/generated/index.d.ts +3 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/index.js +4 -0
- package/dist/generated/index.js.map +1 -0
- package/dist/generated/schemas.gen.d.ts +476 -0
- package/dist/generated/schemas.gen.d.ts.map +1 -0
- package/dist/generated/schemas.gen.js +480 -0
- package/dist/generated/schemas.gen.js.map +1 -0
- package/dist/generated/sdk.gen.d.ts +98 -0
- package/dist/generated/sdk.gen.d.ts.map +1 -0
- package/dist/generated/sdk.gen.js +227 -0
- package/dist/generated/sdk.gen.js.map +1 -0
- package/dist/generated/types.gen.d.ts +745 -0
- package/dist/generated/types.gen.d.ts.map +1 -0
- package/dist/generated/types.gen.js +10 -0
- package/dist/generated/types.gen.js.map +1 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +48 -0
- package/dist/index.js.map +1 -0
- package/dist/runtime-config.d.ts +11 -0
- package/dist/runtime-config.d.ts.map +1 -0
- package/dist/runtime-config.js +15 -0
- package/dist/runtime-config.js.map +1 -0
- package/dist/streaming.d.ts +134 -0
- package/dist/streaming.d.ts.map +1 -0
- package/dist/streaming.js +128 -0
- package/dist/streaming.js.map +1 -0
- package/dist/utils.d.ts +17 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +34 -0
- package/dist/utils.js.map +1 -0
- package/package.json +42 -0
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
export const ProviderSchema = {
|
|
3
|
+
type: 'string',
|
|
4
|
+
enum: ['openai', 'anthropic', 'google', 'openrouter', 'opencode']
|
|
5
|
+
};
|
|
6
|
+
export const AskResponseSchema = {
|
|
7
|
+
type: 'object',
|
|
8
|
+
properties: {
|
|
9
|
+
sessionId: {
|
|
10
|
+
type: 'string'
|
|
11
|
+
},
|
|
12
|
+
header: {
|
|
13
|
+
'$ref': '#/components/schemas/AskResponseHeader'
|
|
14
|
+
},
|
|
15
|
+
provider: {
|
|
16
|
+
'$ref': '#/components/schemas/Provider'
|
|
17
|
+
},
|
|
18
|
+
model: {
|
|
19
|
+
type: 'string'
|
|
20
|
+
},
|
|
21
|
+
agent: {
|
|
22
|
+
type: 'string'
|
|
23
|
+
},
|
|
24
|
+
assistantMessageId: {
|
|
25
|
+
type: 'string'
|
|
26
|
+
},
|
|
27
|
+
message: {
|
|
28
|
+
'$ref': '#/components/schemas/AskResponseMessage',
|
|
29
|
+
nullable: true,
|
|
30
|
+
description: 'Present when the request created a new session or reused the last session for the project.'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
required: ['sessionId', 'header', 'provider', 'model', 'agent', 'assistantMessageId']
|
|
34
|
+
};
|
|
35
|
+
export const AskResponseHeaderSchema = {
|
|
36
|
+
type: 'object',
|
|
37
|
+
properties: {
|
|
38
|
+
sessionId: {
|
|
39
|
+
type: 'string'
|
|
40
|
+
},
|
|
41
|
+
agent: {
|
|
42
|
+
type: 'string',
|
|
43
|
+
nullable: true
|
|
44
|
+
},
|
|
45
|
+
provider: {
|
|
46
|
+
'$ref': '#/components/schemas/Provider',
|
|
47
|
+
nullable: true
|
|
48
|
+
},
|
|
49
|
+
model: {
|
|
50
|
+
type: 'string',
|
|
51
|
+
nullable: true
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
required: ['sessionId']
|
|
55
|
+
};
|
|
56
|
+
export const AskResponseMessageSchema = {
|
|
57
|
+
type: 'object',
|
|
58
|
+
properties: {
|
|
59
|
+
kind: {
|
|
60
|
+
type: 'string',
|
|
61
|
+
enum: ['created', 'last']
|
|
62
|
+
},
|
|
63
|
+
sessionId: {
|
|
64
|
+
type: 'string'
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
required: ['kind', 'sessionId']
|
|
68
|
+
};
|
|
69
|
+
export const SessionSchema = {
|
|
70
|
+
type: 'object',
|
|
71
|
+
properties: {
|
|
72
|
+
id: {
|
|
73
|
+
type: 'string'
|
|
74
|
+
},
|
|
75
|
+
title: {
|
|
76
|
+
type: 'string',
|
|
77
|
+
nullable: true
|
|
78
|
+
},
|
|
79
|
+
agent: {
|
|
80
|
+
type: 'string'
|
|
81
|
+
},
|
|
82
|
+
provider: {
|
|
83
|
+
'$ref': '#/components/schemas/Provider'
|
|
84
|
+
},
|
|
85
|
+
model: {
|
|
86
|
+
type: 'string'
|
|
87
|
+
},
|
|
88
|
+
projectPath: {
|
|
89
|
+
type: 'string'
|
|
90
|
+
},
|
|
91
|
+
createdAt: {
|
|
92
|
+
type: 'integer',
|
|
93
|
+
format: 'int64'
|
|
94
|
+
},
|
|
95
|
+
lastActiveAt: {
|
|
96
|
+
type: 'integer',
|
|
97
|
+
format: 'int64',
|
|
98
|
+
nullable: true
|
|
99
|
+
},
|
|
100
|
+
totalInputTokens: {
|
|
101
|
+
type: 'integer',
|
|
102
|
+
nullable: true
|
|
103
|
+
},
|
|
104
|
+
totalOutputTokens: {
|
|
105
|
+
type: 'integer',
|
|
106
|
+
nullable: true
|
|
107
|
+
},
|
|
108
|
+
totalToolTimeMs: {
|
|
109
|
+
type: 'integer',
|
|
110
|
+
nullable: true
|
|
111
|
+
},
|
|
112
|
+
toolCounts: {
|
|
113
|
+
type: 'object',
|
|
114
|
+
additionalProperties: {
|
|
115
|
+
type: 'integer'
|
|
116
|
+
},
|
|
117
|
+
nullable: true
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
required: ['id', 'agent', 'provider', 'model', 'projectPath', 'createdAt']
|
|
121
|
+
};
|
|
122
|
+
export const MessageSchema = {
|
|
123
|
+
type: 'object',
|
|
124
|
+
properties: {
|
|
125
|
+
id: {
|
|
126
|
+
type: 'string'
|
|
127
|
+
},
|
|
128
|
+
sessionId: {
|
|
129
|
+
type: 'string'
|
|
130
|
+
},
|
|
131
|
+
role: {
|
|
132
|
+
type: 'string',
|
|
133
|
+
enum: ['system', 'user', 'assistant', 'tool']
|
|
134
|
+
},
|
|
135
|
+
status: {
|
|
136
|
+
type: 'string',
|
|
137
|
+
enum: ['pending', 'complete', 'error']
|
|
138
|
+
},
|
|
139
|
+
agent: {
|
|
140
|
+
type: 'string'
|
|
141
|
+
},
|
|
142
|
+
provider: {
|
|
143
|
+
'$ref': '#/components/schemas/Provider'
|
|
144
|
+
},
|
|
145
|
+
model: {
|
|
146
|
+
type: 'string'
|
|
147
|
+
},
|
|
148
|
+
createdAt: {
|
|
149
|
+
type: 'integer',
|
|
150
|
+
format: 'int64'
|
|
151
|
+
},
|
|
152
|
+
completedAt: {
|
|
153
|
+
type: 'integer',
|
|
154
|
+
format: 'int64',
|
|
155
|
+
nullable: true
|
|
156
|
+
},
|
|
157
|
+
latencyMs: {
|
|
158
|
+
type: 'integer',
|
|
159
|
+
nullable: true
|
|
160
|
+
},
|
|
161
|
+
promptTokens: {
|
|
162
|
+
type: 'integer',
|
|
163
|
+
nullable: true
|
|
164
|
+
},
|
|
165
|
+
completionTokens: {
|
|
166
|
+
type: 'integer',
|
|
167
|
+
nullable: true
|
|
168
|
+
},
|
|
169
|
+
totalTokens: {
|
|
170
|
+
type: 'integer',
|
|
171
|
+
nullable: true
|
|
172
|
+
},
|
|
173
|
+
error: {
|
|
174
|
+
type: 'string',
|
|
175
|
+
nullable: true
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
required: ['id', 'sessionId', 'role', 'status', 'agent', 'provider', 'model', 'createdAt']
|
|
179
|
+
};
|
|
180
|
+
export const MessagePartSchema = {
|
|
181
|
+
type: 'object',
|
|
182
|
+
properties: {
|
|
183
|
+
id: {
|
|
184
|
+
type: 'string'
|
|
185
|
+
},
|
|
186
|
+
messageId: {
|
|
187
|
+
type: 'string'
|
|
188
|
+
},
|
|
189
|
+
index: {
|
|
190
|
+
type: 'integer',
|
|
191
|
+
format: 'int64'
|
|
192
|
+
},
|
|
193
|
+
type: {
|
|
194
|
+
type: 'string',
|
|
195
|
+
enum: ['text', 'tool_call', 'tool_result', 'image', 'error']
|
|
196
|
+
},
|
|
197
|
+
content: {
|
|
198
|
+
type: 'string',
|
|
199
|
+
description: 'JSON-encoded content. For text: {"text": string}. For tool_call: {"name": string, "args": object}. For tool_result: {"name": string, "result"?: any, "artifact"?: Artifact}.'
|
|
200
|
+
},
|
|
201
|
+
agent: {
|
|
202
|
+
type: 'string'
|
|
203
|
+
},
|
|
204
|
+
provider: {
|
|
205
|
+
'$ref': '#/components/schemas/Provider'
|
|
206
|
+
},
|
|
207
|
+
model: {
|
|
208
|
+
type: 'string'
|
|
209
|
+
},
|
|
210
|
+
startedAt: {
|
|
211
|
+
type: 'integer',
|
|
212
|
+
format: 'int64',
|
|
213
|
+
nullable: true
|
|
214
|
+
},
|
|
215
|
+
completedAt: {
|
|
216
|
+
type: 'integer',
|
|
217
|
+
format: 'int64',
|
|
218
|
+
nullable: true
|
|
219
|
+
},
|
|
220
|
+
toolName: {
|
|
221
|
+
type: 'string',
|
|
222
|
+
nullable: true
|
|
223
|
+
},
|
|
224
|
+
toolCallId: {
|
|
225
|
+
type: 'string',
|
|
226
|
+
nullable: true
|
|
227
|
+
},
|
|
228
|
+
toolDurationMs: {
|
|
229
|
+
type: 'integer',
|
|
230
|
+
nullable: true
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
required: ['id', 'messageId', 'index', 'type', 'content', 'agent', 'provider', 'model']
|
|
234
|
+
};
|
|
235
|
+
export const ArtifactSchema = {
|
|
236
|
+
oneOf: [
|
|
237
|
+
{
|
|
238
|
+
'$ref': '#/components/schemas/FileDiffArtifact'
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
'$ref': '#/components/schemas/FileArtifact'
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
};
|
|
245
|
+
export const FileDiffArtifactSchema = {
|
|
246
|
+
type: 'object',
|
|
247
|
+
properties: {
|
|
248
|
+
kind: {
|
|
249
|
+
type: 'string',
|
|
250
|
+
enum: ['file_diff']
|
|
251
|
+
},
|
|
252
|
+
patchFormat: {
|
|
253
|
+
type: 'string',
|
|
254
|
+
enum: ['unified']
|
|
255
|
+
},
|
|
256
|
+
patch: {
|
|
257
|
+
type: 'string'
|
|
258
|
+
},
|
|
259
|
+
summary: {
|
|
260
|
+
type: 'object',
|
|
261
|
+
properties: {
|
|
262
|
+
files: {
|
|
263
|
+
type: 'integer'
|
|
264
|
+
},
|
|
265
|
+
additions: {
|
|
266
|
+
type: 'integer'
|
|
267
|
+
},
|
|
268
|
+
deletions: {
|
|
269
|
+
type: 'integer'
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
additionalProperties: false
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
required: ['kind', 'patchFormat', 'patch']
|
|
276
|
+
};
|
|
277
|
+
export const FileArtifactSchema = {
|
|
278
|
+
type: 'object',
|
|
279
|
+
properties: {
|
|
280
|
+
kind: {
|
|
281
|
+
type: 'string',
|
|
282
|
+
enum: ['file']
|
|
283
|
+
},
|
|
284
|
+
path: {
|
|
285
|
+
type: 'string'
|
|
286
|
+
},
|
|
287
|
+
mime: {
|
|
288
|
+
type: 'string'
|
|
289
|
+
},
|
|
290
|
+
size: {
|
|
291
|
+
type: 'integer'
|
|
292
|
+
},
|
|
293
|
+
sha256: {
|
|
294
|
+
type: 'string'
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
required: ['kind', 'path']
|
|
298
|
+
};
|
|
299
|
+
export const ConfigSchema = {
|
|
300
|
+
type: 'object',
|
|
301
|
+
properties: {
|
|
302
|
+
agents: {
|
|
303
|
+
type: 'array',
|
|
304
|
+
items: {
|
|
305
|
+
type: 'string'
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
providers: {
|
|
309
|
+
type: 'array',
|
|
310
|
+
items: {
|
|
311
|
+
'$ref': '#/components/schemas/Provider'
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
defaults: {
|
|
315
|
+
type: 'object',
|
|
316
|
+
properties: {
|
|
317
|
+
agent: {
|
|
318
|
+
type: 'string'
|
|
319
|
+
},
|
|
320
|
+
provider: {
|
|
321
|
+
'$ref': '#/components/schemas/Provider'
|
|
322
|
+
},
|
|
323
|
+
model: {
|
|
324
|
+
type: 'string'
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
required: ['agent', 'provider', 'model']
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
required: ['agents', 'providers', 'defaults']
|
|
331
|
+
};
|
|
332
|
+
export const ModelSchema = {
|
|
333
|
+
type: 'object',
|
|
334
|
+
properties: {
|
|
335
|
+
id: {
|
|
336
|
+
type: 'string'
|
|
337
|
+
},
|
|
338
|
+
label: {
|
|
339
|
+
type: 'string'
|
|
340
|
+
},
|
|
341
|
+
toolCall: {
|
|
342
|
+
type: 'boolean'
|
|
343
|
+
},
|
|
344
|
+
reasoning: {
|
|
345
|
+
type: 'boolean'
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
required: ['id', 'label']
|
|
349
|
+
};
|
|
350
|
+
export const GitStatusSchema = {
|
|
351
|
+
type: 'object',
|
|
352
|
+
properties: {
|
|
353
|
+
branch: {
|
|
354
|
+
type: 'string'
|
|
355
|
+
},
|
|
356
|
+
ahead: {
|
|
357
|
+
type: 'integer'
|
|
358
|
+
},
|
|
359
|
+
behind: {
|
|
360
|
+
type: 'integer'
|
|
361
|
+
},
|
|
362
|
+
staged: {
|
|
363
|
+
type: 'array',
|
|
364
|
+
items: {
|
|
365
|
+
'$ref': '#/components/schemas/GitFile'
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
unstaged: {
|
|
369
|
+
type: 'array',
|
|
370
|
+
items: {
|
|
371
|
+
'$ref': '#/components/schemas/GitFile'
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
untracked: {
|
|
375
|
+
type: 'array',
|
|
376
|
+
items: {
|
|
377
|
+
'$ref': '#/components/schemas/GitFile'
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
hasChanges: {
|
|
381
|
+
type: 'boolean'
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
required: ['branch', 'ahead', 'behind', 'staged', 'unstaged', 'untracked', 'hasChanges']
|
|
385
|
+
};
|
|
386
|
+
export const GitFileSchema = {
|
|
387
|
+
type: 'object',
|
|
388
|
+
properties: {
|
|
389
|
+
path: {
|
|
390
|
+
type: 'string'
|
|
391
|
+
},
|
|
392
|
+
status: {
|
|
393
|
+
type: 'string',
|
|
394
|
+
enum: ['modified', 'added', 'deleted', 'renamed', 'untracked']
|
|
395
|
+
},
|
|
396
|
+
staged: {
|
|
397
|
+
type: 'boolean'
|
|
398
|
+
},
|
|
399
|
+
insertions: {
|
|
400
|
+
type: 'integer'
|
|
401
|
+
},
|
|
402
|
+
deletions: {
|
|
403
|
+
type: 'integer'
|
|
404
|
+
},
|
|
405
|
+
oldPath: {
|
|
406
|
+
type: 'string'
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
required: ['path', 'status', 'staged']
|
|
410
|
+
};
|
|
411
|
+
export const GitDiffSchema = {
|
|
412
|
+
type: 'object',
|
|
413
|
+
properties: {
|
|
414
|
+
file: {
|
|
415
|
+
type: 'string'
|
|
416
|
+
},
|
|
417
|
+
diff: {
|
|
418
|
+
type: 'string'
|
|
419
|
+
},
|
|
420
|
+
insertions: {
|
|
421
|
+
type: 'integer'
|
|
422
|
+
},
|
|
423
|
+
deletions: {
|
|
424
|
+
type: 'integer'
|
|
425
|
+
},
|
|
426
|
+
language: {
|
|
427
|
+
type: 'string'
|
|
428
|
+
},
|
|
429
|
+
binary: {
|
|
430
|
+
type: 'boolean'
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
required: ['file', 'diff', 'insertions', 'deletions', 'language', 'binary']
|
|
434
|
+
};
|
|
435
|
+
export const GitBranchSchema = {
|
|
436
|
+
type: 'object',
|
|
437
|
+
properties: {
|
|
438
|
+
current: {
|
|
439
|
+
type: 'string'
|
|
440
|
+
},
|
|
441
|
+
upstream: {
|
|
442
|
+
type: 'string'
|
|
443
|
+
},
|
|
444
|
+
ahead: {
|
|
445
|
+
type: 'integer'
|
|
446
|
+
},
|
|
447
|
+
behind: {
|
|
448
|
+
type: 'integer'
|
|
449
|
+
},
|
|
450
|
+
all: {
|
|
451
|
+
type: 'array',
|
|
452
|
+
items: {
|
|
453
|
+
type: 'string'
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
required: ['current', 'upstream', 'ahead', 'behind', 'all']
|
|
458
|
+
};
|
|
459
|
+
export const GitCommitSchema = {
|
|
460
|
+
type: 'object',
|
|
461
|
+
properties: {
|
|
462
|
+
hash: {
|
|
463
|
+
type: 'string'
|
|
464
|
+
},
|
|
465
|
+
message: {
|
|
466
|
+
type: 'string'
|
|
467
|
+
},
|
|
468
|
+
filesChanged: {
|
|
469
|
+
type: 'integer'
|
|
470
|
+
},
|
|
471
|
+
insertions: {
|
|
472
|
+
type: 'integer'
|
|
473
|
+
},
|
|
474
|
+
deletions: {
|
|
475
|
+
type: 'integer'
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
required: ['hash', 'message', 'filesChanged', 'insertions', 'deletions']
|
|
479
|
+
};
|
|
480
|
+
//# sourceMappingURL=schemas.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.gen.js","sourceRoot":"","sources":["../../src/generated/schemas.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,CAAC,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,CAAC;CAC3D,CAAC;AAEX,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;SACjB;QACD,MAAM,EAAE;YACJ,MAAM,EAAE,wCAAwC;SACnD;QACD,QAAQ,EAAE;YACN,MAAM,EAAE,+BAA+B;SAC1C;QACD,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;SACjB;QACD,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;SACjB;QACD,kBAAkB,EAAE;YAChB,IAAI,EAAE,QAAQ;SACjB;QACD,OAAO,EAAE;YACL,MAAM,EAAE,yCAAyC;YACjD,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,4FAA4F;SAC5G;KACJ;IACD,QAAQ,EAAE,CAAC,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,oBAAoB,CAAC;CAC/E,CAAC;AAEX,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;SACjB;QACD,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD,QAAQ,EAAE;YACN,MAAM,EAAE,+BAA+B;YACvC,QAAQ,EAAE,IAAI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E,QAAQ;SACjB;QACD,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;SAClB;KACJ;IACD,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,CAAC;CACrE,CAAC;AAEX,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;SACjB;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,QAAQ;SACjB;QACD,KAAK,EAAE;YACH,IAAI,EAAE,SAAS;SAClB;QACD,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;SAClB;QACD,GAAG,EAAE;YACD,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;SACJ;KACJ;IACD,QAAQ,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC;CACrD,CAAC;AAEX,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;SACjB;QACD,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;SACjB;QACD,YAAY,EAAE;YACV,IAAI,EAAE,SAAS;SAClB;QACD,UAAU,EAAE;YACR,IAAI,EAAE,SAAS;SAClB;QACD,SAAS,EAAE;YACP,IAAI,EAAE,SAAS;SAClB;KACJ;IACD,QAAQ,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,CAAC;CAClE,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { Client, Options as Options2, TDataShape } from './client';
|
|
2
|
+
import type { AbortSessionData, AbortSessionResponses, AskData, AskErrors, AskResponses, CommitChangesData, CommitChangesErrors, CommitChangesResponses, CreateMessageData, CreateMessageErrors, CreateMessageResponses, CreateSessionData, CreateSessionErrors, CreateSessionResponses, GenerateCommitMessageData, GenerateCommitMessageErrors, GenerateCommitMessageResponses, GetAgentsData, GetAgentsResponses, GetConfigData, GetConfigResponses, GetCwdData, GetCwdResponses, GetGitBranchData, GetGitBranchErrors, GetGitBranchResponses, GetGitDiffData, GetGitDiffErrors, GetGitDiffResponses, GetGitStatusData, GetGitStatusErrors, GetGitStatusResponses, GetProviderModelsData, GetProviderModelsErrors, GetProviderModelsResponses, GetProvidersData, GetProvidersResponses, ListMessagesData, ListMessagesResponses, ListSessionsData, ListSessionsResponses, StageFilesData, StageFilesErrors, StageFilesResponses, SubscribeSessionStreamData, SubscribeSessionStreamResponses, UnstageFilesData, UnstageFilesErrors, UnstageFilesResponses } from './types.gen';
|
|
3
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
|
+
/**
|
|
5
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
6
|
+
* individual options. This might be also useful if you want to implement a
|
|
7
|
+
* custom client.
|
|
8
|
+
*/
|
|
9
|
+
client?: Client;
|
|
10
|
+
/**
|
|
11
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
12
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
13
|
+
*/
|
|
14
|
+
meta?: Record<string, unknown>;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Send a prompt using the ask service
|
|
18
|
+
* Streamlined endpoint used by the CLI to send prompts and receive assistant responses. Creates sessions as needed and reuses the last session when requested.
|
|
19
|
+
*/
|
|
20
|
+
export declare const ask: <ThrowOnError extends boolean = false>(options: Options<AskData, ThrowOnError>) => import("./client").RequestResult<AskResponses, AskErrors, ThrowOnError>;
|
|
21
|
+
/**
|
|
22
|
+
* List sessions
|
|
23
|
+
*/
|
|
24
|
+
export declare const listSessions: <ThrowOnError extends boolean = false>(options?: Options<ListSessionsData, ThrowOnError>) => import("./client").RequestResult<ListSessionsResponses, unknown, ThrowOnError>;
|
|
25
|
+
/**
|
|
26
|
+
* Create a new session
|
|
27
|
+
*/
|
|
28
|
+
export declare const createSession: <ThrowOnError extends boolean = false>(options?: Options<CreateSessionData, ThrowOnError>) => import("./client").RequestResult<CreateSessionResponses, CreateSessionErrors, ThrowOnError>;
|
|
29
|
+
/**
|
|
30
|
+
* List messages for a session
|
|
31
|
+
*/
|
|
32
|
+
export declare const listMessages: <ThrowOnError extends boolean = false>(options: Options<ListMessagesData, ThrowOnError>) => import("./client").RequestResult<ListMessagesResponses, unknown, ThrowOnError>;
|
|
33
|
+
/**
|
|
34
|
+
* Send a user message and enqueue assistant run
|
|
35
|
+
*/
|
|
36
|
+
export declare const createMessage: <ThrowOnError extends boolean = false>(options: Options<CreateMessageData, ThrowOnError>) => import("./client").RequestResult<CreateMessageResponses, CreateMessageErrors, ThrowOnError>;
|
|
37
|
+
/**
|
|
38
|
+
* Subscribe to session event stream (SSE)
|
|
39
|
+
*/
|
|
40
|
+
export declare const subscribeSessionStream: <ThrowOnError extends boolean = false>(options: Options<SubscribeSessionStreamData, ThrowOnError>) => Promise<import("./core/serverSentEvents.gen").ServerSentEventsResult<SubscribeSessionStreamResponses, unknown>>;
|
|
41
|
+
/**
|
|
42
|
+
* Abort a running session
|
|
43
|
+
* Aborts any currently running assistant generation for the session
|
|
44
|
+
*/
|
|
45
|
+
export declare const abortSession: <ThrowOnError extends boolean = false>(options: Options<AbortSessionData, ThrowOnError>) => import("./client").RequestResult<AbortSessionResponses, unknown, ThrowOnError>;
|
|
46
|
+
/**
|
|
47
|
+
* Get full configuration
|
|
48
|
+
* Returns agents, authorized providers, models, and defaults
|
|
49
|
+
*/
|
|
50
|
+
export declare const getConfig: <ThrowOnError extends boolean = false>(options?: Options<GetConfigData, ThrowOnError>) => import("./client").RequestResult<GetConfigResponses, unknown, ThrowOnError>;
|
|
51
|
+
/**
|
|
52
|
+
* Get current working directory info
|
|
53
|
+
*/
|
|
54
|
+
export declare const getCwd: <ThrowOnError extends boolean = false>(options?: Options<GetCwdData, ThrowOnError>) => import("./client").RequestResult<GetCwdResponses, unknown, ThrowOnError>;
|
|
55
|
+
/**
|
|
56
|
+
* Get available agents
|
|
57
|
+
*/
|
|
58
|
+
export declare const getAgents: <ThrowOnError extends boolean = false>(options?: Options<GetAgentsData, ThrowOnError>) => import("./client").RequestResult<GetAgentsResponses, unknown, ThrowOnError>;
|
|
59
|
+
/**
|
|
60
|
+
* Get available providers
|
|
61
|
+
* Returns only providers that have been authorized
|
|
62
|
+
*/
|
|
63
|
+
export declare const getProviders: <ThrowOnError extends boolean = false>(options?: Options<GetProvidersData, ThrowOnError>) => import("./client").RequestResult<GetProvidersResponses, unknown, ThrowOnError>;
|
|
64
|
+
/**
|
|
65
|
+
* Get available models for a provider
|
|
66
|
+
*/
|
|
67
|
+
export declare const getProviderModels: <ThrowOnError extends boolean = false>(options: Options<GetProviderModelsData, ThrowOnError>) => import("./client").RequestResult<GetProviderModelsResponses, GetProviderModelsErrors, ThrowOnError>;
|
|
68
|
+
/**
|
|
69
|
+
* Get git status
|
|
70
|
+
* Returns current git status including staged, unstaged, and untracked files
|
|
71
|
+
*/
|
|
72
|
+
export declare const getGitStatus: <ThrowOnError extends boolean = false>(options?: Options<GetGitStatusData, ThrowOnError>) => import("./client").RequestResult<GetGitStatusResponses, GetGitStatusErrors, ThrowOnError>;
|
|
73
|
+
/**
|
|
74
|
+
* Get git diff for a file
|
|
75
|
+
*/
|
|
76
|
+
export declare const getGitDiff: <ThrowOnError extends boolean = false>(options: Options<GetGitDiffData, ThrowOnError>) => import("./client").RequestResult<GetGitDiffResponses, GetGitDiffErrors, ThrowOnError>;
|
|
77
|
+
/**
|
|
78
|
+
* Get git branch information
|
|
79
|
+
*/
|
|
80
|
+
export declare const getGitBranch: <ThrowOnError extends boolean = false>(options?: Options<GetGitBranchData, ThrowOnError>) => import("./client").RequestResult<GetGitBranchResponses, GetGitBranchErrors, ThrowOnError>;
|
|
81
|
+
/**
|
|
82
|
+
* Stage files
|
|
83
|
+
*/
|
|
84
|
+
export declare const stageFiles: <ThrowOnError extends boolean = false>(options: Options<StageFilesData, ThrowOnError>) => import("./client").RequestResult<StageFilesResponses, StageFilesErrors, ThrowOnError>;
|
|
85
|
+
/**
|
|
86
|
+
* Unstage files
|
|
87
|
+
*/
|
|
88
|
+
export declare const unstageFiles: <ThrowOnError extends boolean = false>(options: Options<UnstageFilesData, ThrowOnError>) => import("./client").RequestResult<UnstageFilesResponses, UnstageFilesErrors, ThrowOnError>;
|
|
89
|
+
/**
|
|
90
|
+
* Commit staged changes
|
|
91
|
+
*/
|
|
92
|
+
export declare const commitChanges: <ThrowOnError extends boolean = false>(options: Options<CommitChangesData, ThrowOnError>) => import("./client").RequestResult<CommitChangesResponses, CommitChangesErrors, ThrowOnError>;
|
|
93
|
+
/**
|
|
94
|
+
* Generate AI-powered commit message
|
|
95
|
+
* Uses AI to generate a commit message based on staged changes
|
|
96
|
+
*/
|
|
97
|
+
export declare const generateCommitMessage: <ThrowOnError extends boolean = false>(options?: Options<GenerateCommitMessageData, ThrowOnError>) => import("./client").RequestResult<GenerateCommitMessageResponses, GenerateCommitMessageErrors, ThrowOnError>;
|
|
98
|
+
//# sourceMappingURL=sdk.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.gen.d.ts","sourceRoot":"","sources":["../../src/generated/sdk.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,IAAI,QAAQ,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAExE,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,2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