@ottocode/api 0.1.310 → 0.1.311
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.
|
@@ -152,6 +152,10 @@ export type ListSessionsData = {
|
|
|
152
152
|
* Offset for pagination
|
|
153
153
|
*/
|
|
154
154
|
offset?: number | null;
|
|
155
|
+
/**
|
|
156
|
+
* Filter to a specific session type. Currently only "otto" is supported; omit for the default listing (which excludes otto sessions).
|
|
157
|
+
*/
|
|
158
|
+
sessionType?: 'otto';
|
|
155
159
|
};
|
|
156
160
|
url: '/v1/sessions';
|
|
157
161
|
};
|
|
@@ -182,7 +186,7 @@ export type ListSessionsResponses = {
|
|
|
182
186
|
lastCompactedAt?: number | null;
|
|
183
187
|
parentSessionId?: string | null;
|
|
184
188
|
branchPointMessageId?: string | null;
|
|
185
|
-
sessionType?: 'main' | 'branch' | 'handoff' | 'btw';
|
|
189
|
+
sessionType?: 'main' | 'branch' | 'handoff' | 'btw' | 'otto';
|
|
186
190
|
toolCounts?: {
|
|
187
191
|
[key: string]: number;
|
|
188
192
|
};
|
|
@@ -193,7 +197,7 @@ export type ListSessionsResponses = {
|
|
|
193
197
|
deletions: number;
|
|
194
198
|
operations: number;
|
|
195
199
|
};
|
|
196
|
-
[key: string]: unknown | string | string | null | number | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | string | null | number | null | string | null | string | null | 'main' | 'branch' | 'handoff' | 'btw' | {
|
|
200
|
+
[key: string]: unknown | string | string | null | number | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | string | null | number | null | string | null | string | null | 'main' | 'branch' | 'handoff' | 'btw' | 'otto' | {
|
|
197
201
|
[key: string]: number;
|
|
198
202
|
} | boolean | {
|
|
199
203
|
changedFiles: number;
|
|
@@ -223,7 +227,7 @@ export type CreateSessionData = {
|
|
|
223
227
|
*/
|
|
224
228
|
model?: string;
|
|
225
229
|
parentSessionId?: string | null;
|
|
226
|
-
sessionType?: 'main' | 'btw';
|
|
230
|
+
sessionType?: 'main' | 'btw' | 'otto';
|
|
227
231
|
};
|
|
228
232
|
path?: never;
|
|
229
233
|
query?: {
|
|
@@ -269,7 +273,7 @@ export type CreateSessionResponses = {
|
|
|
269
273
|
lastCompactedAt?: number | null;
|
|
270
274
|
parentSessionId?: string | null;
|
|
271
275
|
branchPointMessageId?: string | null;
|
|
272
|
-
sessionType?: 'main' | 'branch' | 'handoff' | 'btw';
|
|
276
|
+
sessionType?: 'main' | 'branch' | 'handoff' | 'btw' | 'otto';
|
|
273
277
|
toolCounts?: {
|
|
274
278
|
[key: string]: number;
|
|
275
279
|
};
|
|
@@ -280,7 +284,7 @@ export type CreateSessionResponses = {
|
|
|
280
284
|
deletions: number;
|
|
281
285
|
operations: number;
|
|
282
286
|
};
|
|
283
|
-
[key: string]: unknown | string | string | null | number | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | string | null | number | null | string | null | string | null | 'main' | 'branch' | 'handoff' | 'btw' | {
|
|
287
|
+
[key: string]: unknown | string | string | null | number | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | string | null | number | null | string | null | string | null | 'main' | 'branch' | 'handoff' | 'btw' | 'otto' | {
|
|
284
288
|
[key: string]: number;
|
|
285
289
|
} | boolean | {
|
|
286
290
|
changedFiles: number;
|
|
@@ -370,7 +374,7 @@ export type GetSessionResponses = {
|
|
|
370
374
|
lastCompactedAt?: number | null;
|
|
371
375
|
parentSessionId?: string | null;
|
|
372
376
|
branchPointMessageId?: string | null;
|
|
373
|
-
sessionType?: 'main' | 'branch' | 'handoff' | 'btw';
|
|
377
|
+
sessionType?: 'main' | 'branch' | 'handoff' | 'btw' | 'otto';
|
|
374
378
|
toolCounts?: {
|
|
375
379
|
[key: string]: number;
|
|
376
380
|
};
|
|
@@ -381,7 +385,7 @@ export type GetSessionResponses = {
|
|
|
381
385
|
deletions: number;
|
|
382
386
|
operations: number;
|
|
383
387
|
};
|
|
384
|
-
[key: string]: unknown | string | string | null | number | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | string | null | number | null | string | null | string | null | 'main' | 'branch' | 'handoff' | 'btw' | {
|
|
388
|
+
[key: string]: unknown | string | string | null | number | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | string | null | number | null | string | null | string | null | 'main' | 'branch' | 'handoff' | 'btw' | 'otto' | {
|
|
385
389
|
[key: string]: number;
|
|
386
390
|
} | boolean | {
|
|
387
391
|
changedFiles: number;
|
|
@@ -452,7 +456,7 @@ export type UpdateSessionResponses = {
|
|
|
452
456
|
lastCompactedAt?: number | null;
|
|
453
457
|
parentSessionId?: string | null;
|
|
454
458
|
branchPointMessageId?: string | null;
|
|
455
|
-
sessionType?: 'main' | 'branch' | 'handoff' | 'btw';
|
|
459
|
+
sessionType?: 'main' | 'branch' | 'handoff' | 'btw' | 'otto';
|
|
456
460
|
toolCounts?: {
|
|
457
461
|
[key: string]: number;
|
|
458
462
|
};
|
|
@@ -463,7 +467,7 @@ export type UpdateSessionResponses = {
|
|
|
463
467
|
deletions: number;
|
|
464
468
|
operations: number;
|
|
465
469
|
};
|
|
466
|
-
[key: string]: unknown | string | string | null | number | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | string | null | number | null | string | null | string | null | 'main' | 'branch' | 'handoff' | 'btw' | {
|
|
470
|
+
[key: string]: unknown | string | string | null | number | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | string | null | number | null | string | null | string | null | 'main' | 'branch' | 'handoff' | 'btw' | 'otto' | {
|
|
467
471
|
[key: string]: number;
|
|
468
472
|
} | boolean | {
|
|
469
473
|
changedFiles: number;
|
|
@@ -519,7 +523,7 @@ export type MarkSessionViewedResponses = {
|
|
|
519
523
|
lastCompactedAt?: number | null;
|
|
520
524
|
parentSessionId?: string | null;
|
|
521
525
|
branchPointMessageId?: string | null;
|
|
522
|
-
sessionType?: 'main' | 'branch' | 'handoff' | 'btw';
|
|
526
|
+
sessionType?: 'main' | 'branch' | 'handoff' | 'btw' | 'otto';
|
|
523
527
|
toolCounts?: {
|
|
524
528
|
[key: string]: number;
|
|
525
529
|
};
|
|
@@ -530,7 +534,7 @@ export type MarkSessionViewedResponses = {
|
|
|
530
534
|
deletions: number;
|
|
531
535
|
operations: number;
|
|
532
536
|
};
|
|
533
|
-
[key: string]: unknown | string | string | null | number | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | string | null | number | null | string | null | string | null | 'main' | 'branch' | 'handoff' | 'btw' | {
|
|
537
|
+
[key: string]: unknown | string | string | null | number | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | number | null | string | null | number | null | string | null | string | null | 'main' | 'branch' | 'handoff' | 'btw' | 'otto' | {
|
|
534
538
|
[key: string]: number;
|
|
535
539
|
} | boolean | {
|
|
536
540
|
changedFiles: number;
|
|
@@ -3802,6 +3806,56 @@ export type ExportResearchSessionResponses = {
|
|
|
3802
3806
|
};
|
|
3803
3807
|
};
|
|
3804
3808
|
export type ExportResearchSessionResponse = ExportResearchSessionResponses[keyof ExportResearchSessionResponses];
|
|
3809
|
+
export type ListGoalsData = {
|
|
3810
|
+
body?: never;
|
|
3811
|
+
path?: never;
|
|
3812
|
+
query?: {
|
|
3813
|
+
/**
|
|
3814
|
+
* Project root override (defaults to current working directory).
|
|
3815
|
+
*/
|
|
3816
|
+
project?: string;
|
|
3817
|
+
};
|
|
3818
|
+
url: '/v1/goals';
|
|
3819
|
+
};
|
|
3820
|
+
export type ListGoalsErrors = {
|
|
3821
|
+
/**
|
|
3822
|
+
* Goals disabled
|
|
3823
|
+
*/
|
|
3824
|
+
403: {
|
|
3825
|
+
error: string;
|
|
3826
|
+
};
|
|
3827
|
+
};
|
|
3828
|
+
export type ListGoalsError = ListGoalsErrors[keyof ListGoalsErrors];
|
|
3829
|
+
export type ListGoalsResponses = {
|
|
3830
|
+
/**
|
|
3831
|
+
* OK
|
|
3832
|
+
*/
|
|
3833
|
+
200: {
|
|
3834
|
+
goals: Array<{
|
|
3835
|
+
id: string;
|
|
3836
|
+
projectPath: string;
|
|
3837
|
+
sessionId: string | null;
|
|
3838
|
+
ottoSessionId: string | null;
|
|
3839
|
+
title: string;
|
|
3840
|
+
status: 'active' | 'completed' | 'abandoned';
|
|
3841
|
+
startedAt: number | null;
|
|
3842
|
+
createdAt: number;
|
|
3843
|
+
updatedAt: number;
|
|
3844
|
+
tasks: Array<{
|
|
3845
|
+
id: string;
|
|
3846
|
+
goalId: string;
|
|
3847
|
+
sessionId: string | null;
|
|
3848
|
+
position: number;
|
|
3849
|
+
content: string;
|
|
3850
|
+
status: 'pending' | 'in_progress' | 'completed' | 'blocked' | 'cancelled';
|
|
3851
|
+
note: string | null;
|
|
3852
|
+
createdAt: number;
|
|
3853
|
+
updatedAt: number;
|
|
3854
|
+
}>;
|
|
3855
|
+
}>;
|
|
3856
|
+
};
|
|
3857
|
+
};
|
|
3858
|
+
export type ListGoalsResponse = ListGoalsResponses[keyof ListGoalsResponses];
|
|
3805
3859
|
export type GetSessionGoalData = {
|
|
3806
3860
|
body?: never;
|
|
3807
3861
|
path: {
|
|
@@ -3833,6 +3887,7 @@ export type GetSessionGoalResponses = {
|
|
|
3833
3887
|
id: string;
|
|
3834
3888
|
projectPath: string;
|
|
3835
3889
|
sessionId: string | null;
|
|
3890
|
+
ottoSessionId: string | null;
|
|
3836
3891
|
title: string;
|
|
3837
3892
|
status: 'active' | 'completed' | 'abandoned';
|
|
3838
3893
|
startedAt: number | null;
|
|
@@ -3841,9 +3896,10 @@ export type GetSessionGoalResponses = {
|
|
|
3841
3896
|
tasks: Array<{
|
|
3842
3897
|
id: string;
|
|
3843
3898
|
goalId: string;
|
|
3899
|
+
sessionId: string | null;
|
|
3844
3900
|
position: number;
|
|
3845
3901
|
content: string;
|
|
3846
|
-
status: 'pending' | 'in_progress' | '
|
|
3902
|
+
status: 'pending' | 'in_progress' | 'completed' | 'blocked' | 'cancelled';
|
|
3847
3903
|
note: string | null;
|
|
3848
3904
|
createdAt: number;
|
|
3849
3905
|
updatedAt: number;
|
|
@@ -3892,6 +3948,7 @@ export type CreateSessionGoalResponses = {
|
|
|
3892
3948
|
id: string;
|
|
3893
3949
|
projectPath: string;
|
|
3894
3950
|
sessionId: string | null;
|
|
3951
|
+
ottoSessionId: string | null;
|
|
3895
3952
|
title: string;
|
|
3896
3953
|
status: 'active' | 'completed' | 'abandoned';
|
|
3897
3954
|
startedAt: number | null;
|
|
@@ -3900,9 +3957,10 @@ export type CreateSessionGoalResponses = {
|
|
|
3900
3957
|
tasks: Array<{
|
|
3901
3958
|
id: string;
|
|
3902
3959
|
goalId: string;
|
|
3960
|
+
sessionId: string | null;
|
|
3903
3961
|
position: number;
|
|
3904
3962
|
content: string;
|
|
3905
|
-
status: 'pending' | 'in_progress' | '
|
|
3963
|
+
status: 'pending' | 'in_progress' | 'completed' | 'blocked' | 'cancelled';
|
|
3906
3964
|
note: string | null;
|
|
3907
3965
|
createdAt: number;
|
|
3908
3966
|
updatedAt: number;
|
|
@@ -3951,6 +4009,7 @@ export type UpdateGoalResponses = {
|
|
|
3951
4009
|
id: string;
|
|
3952
4010
|
projectPath: string;
|
|
3953
4011
|
sessionId: string | null;
|
|
4012
|
+
ottoSessionId: string | null;
|
|
3954
4013
|
title: string;
|
|
3955
4014
|
status: 'active' | 'completed' | 'abandoned';
|
|
3956
4015
|
startedAt: number | null;
|
|
@@ -3959,9 +4018,10 @@ export type UpdateGoalResponses = {
|
|
|
3959
4018
|
tasks: Array<{
|
|
3960
4019
|
id: string;
|
|
3961
4020
|
goalId: string;
|
|
4021
|
+
sessionId: string | null;
|
|
3962
4022
|
position: number;
|
|
3963
4023
|
content: string;
|
|
3964
|
-
status: 'pending' | 'in_progress' | '
|
|
4024
|
+
status: 'pending' | 'in_progress' | 'completed' | 'blocked' | 'cancelled';
|
|
3965
4025
|
note: string | null;
|
|
3966
4026
|
createdAt: number;
|
|
3967
4027
|
updatedAt: number;
|
|
@@ -4009,6 +4069,7 @@ export type AddGoalTasksResponses = {
|
|
|
4009
4069
|
id: string;
|
|
4010
4070
|
projectPath: string;
|
|
4011
4071
|
sessionId: string | null;
|
|
4072
|
+
ottoSessionId: string | null;
|
|
4012
4073
|
title: string;
|
|
4013
4074
|
status: 'active' | 'completed' | 'abandoned';
|
|
4014
4075
|
startedAt: number | null;
|
|
@@ -4017,9 +4078,10 @@ export type AddGoalTasksResponses = {
|
|
|
4017
4078
|
tasks: Array<{
|
|
4018
4079
|
id: string;
|
|
4019
4080
|
goalId: string;
|
|
4081
|
+
sessionId: string | null;
|
|
4020
4082
|
position: number;
|
|
4021
4083
|
content: string;
|
|
4022
|
-
status: 'pending' | 'in_progress' | '
|
|
4084
|
+
status: 'pending' | 'in_progress' | 'completed' | 'blocked' | 'cancelled';
|
|
4023
4085
|
note: string | null;
|
|
4024
4086
|
createdAt: number;
|
|
4025
4087
|
updatedAt: number;
|
|
@@ -4028,10 +4090,75 @@ export type AddGoalTasksResponses = {
|
|
|
4028
4090
|
};
|
|
4029
4091
|
};
|
|
4030
4092
|
export type AddGoalTasksResponse = AddGoalTasksResponses[keyof AddGoalTasksResponses];
|
|
4093
|
+
export type DeleteGoalTaskData = {
|
|
4094
|
+
body?: never;
|
|
4095
|
+
path: {
|
|
4096
|
+
goalId: string;
|
|
4097
|
+
taskId: string;
|
|
4098
|
+
};
|
|
4099
|
+
query?: {
|
|
4100
|
+
/**
|
|
4101
|
+
* Project root override (defaults to current working directory).
|
|
4102
|
+
*/
|
|
4103
|
+
project?: string;
|
|
4104
|
+
};
|
|
4105
|
+
url: '/v1/goals/{goalId}/tasks/{taskId}';
|
|
4106
|
+
};
|
|
4107
|
+
export type DeleteGoalTaskErrors = {
|
|
4108
|
+
/**
|
|
4109
|
+
* Goals disabled
|
|
4110
|
+
*/
|
|
4111
|
+
403: {
|
|
4112
|
+
error: string;
|
|
4113
|
+
};
|
|
4114
|
+
/**
|
|
4115
|
+
* Not Found
|
|
4116
|
+
*/
|
|
4117
|
+
404: {
|
|
4118
|
+
error: string;
|
|
4119
|
+
};
|
|
4120
|
+
/**
|
|
4121
|
+
* Task cannot be deleted
|
|
4122
|
+
*/
|
|
4123
|
+
409: {
|
|
4124
|
+
error: string;
|
|
4125
|
+
};
|
|
4126
|
+
};
|
|
4127
|
+
export type DeleteGoalTaskError = DeleteGoalTaskErrors[keyof DeleteGoalTaskErrors];
|
|
4128
|
+
export type DeleteGoalTaskResponses = {
|
|
4129
|
+
/**
|
|
4130
|
+
* OK
|
|
4131
|
+
*/
|
|
4132
|
+
200: {
|
|
4133
|
+
goal: {
|
|
4134
|
+
id: string;
|
|
4135
|
+
projectPath: string;
|
|
4136
|
+
sessionId: string | null;
|
|
4137
|
+
ottoSessionId: string | null;
|
|
4138
|
+
title: string;
|
|
4139
|
+
status: 'active' | 'completed' | 'abandoned';
|
|
4140
|
+
startedAt: number | null;
|
|
4141
|
+
createdAt: number;
|
|
4142
|
+
updatedAt: number;
|
|
4143
|
+
tasks: Array<{
|
|
4144
|
+
id: string;
|
|
4145
|
+
goalId: string;
|
|
4146
|
+
sessionId: string | null;
|
|
4147
|
+
position: number;
|
|
4148
|
+
content: string;
|
|
4149
|
+
status: 'pending' | 'in_progress' | 'completed' | 'blocked' | 'cancelled';
|
|
4150
|
+
note: string | null;
|
|
4151
|
+
createdAt: number;
|
|
4152
|
+
updatedAt: number;
|
|
4153
|
+
}>;
|
|
4154
|
+
};
|
|
4155
|
+
};
|
|
4156
|
+
};
|
|
4157
|
+
export type DeleteGoalTaskResponse = DeleteGoalTaskResponses[keyof DeleteGoalTaskResponses];
|
|
4031
4158
|
export type UpdateGoalTaskData = {
|
|
4032
4159
|
body: {
|
|
4033
4160
|
content?: string;
|
|
4034
|
-
status?: 'pending' | 'in_progress' | '
|
|
4161
|
+
status?: 'pending' | 'in_progress' | 'completed' | 'blocked' | 'cancelled';
|
|
4035
4162
|
note?: string | null;
|
|
4036
4163
|
};
|
|
4037
4164
|
path: {
|
|
@@ -4069,9 +4196,10 @@ export type UpdateGoalTaskResponses = {
|
|
|
4069
4196
|
task: {
|
|
4070
4197
|
id: string;
|
|
4071
4198
|
goalId: string;
|
|
4199
|
+
sessionId: string | null;
|
|
4072
4200
|
position: number;
|
|
4073
4201
|
content: string;
|
|
4074
|
-
status: 'pending' | 'in_progress' | '
|
|
4202
|
+
status: 'pending' | 'in_progress' | 'completed' | 'blocked' | 'cancelled';
|
|
4075
4203
|
note: string | null;
|
|
4076
4204
|
createdAt: number;
|
|
4077
4205
|
updatedAt: number;
|
|
@@ -4122,6 +4250,7 @@ export type StartGoalResponses = {
|
|
|
4122
4250
|
id: string;
|
|
4123
4251
|
projectPath: string;
|
|
4124
4252
|
sessionId: string | null;
|
|
4253
|
+
ottoSessionId: string | null;
|
|
4125
4254
|
title: string;
|
|
4126
4255
|
status: 'active' | 'completed' | 'abandoned';
|
|
4127
4256
|
startedAt: number | null;
|
|
@@ -4130,9 +4259,10 @@ export type StartGoalResponses = {
|
|
|
4130
4259
|
tasks: Array<{
|
|
4131
4260
|
id: string;
|
|
4132
4261
|
goalId: string;
|
|
4262
|
+
sessionId: string | null;
|
|
4133
4263
|
position: number;
|
|
4134
4264
|
content: string;
|
|
4135
|
-
status: 'pending' | 'in_progress' | '
|
|
4265
|
+
status: 'pending' | 'in_progress' | 'completed' | 'blocked' | 'cancelled';
|
|
4136
4266
|
note: string | null;
|
|
4137
4267
|
createdAt: number;
|
|
4138
4268
|
updatedAt: number;
|