@ottocode/api 0.1.306 → 0.1.308
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.
|
@@ -1466,6 +1466,7 @@ export type GetConfigResponses = {
|
|
|
1466
1466
|
releaseToSend?: boolean;
|
|
1467
1467
|
fullWidthContent?: boolean;
|
|
1468
1468
|
autoCompactThresholdTokens?: number | null;
|
|
1469
|
+
ottoEnabled?: boolean;
|
|
1469
1470
|
};
|
|
1470
1471
|
};
|
|
1471
1472
|
};
|
|
@@ -1514,6 +1515,8 @@ export type GetAgentDetailsResponses = {
|
|
|
1514
1515
|
source: 'builtin' | 'local' | 'global' | 'merged' | 'embedded';
|
|
1515
1516
|
prompt: string;
|
|
1516
1517
|
promptSource: string;
|
|
1518
|
+
description?: string;
|
|
1519
|
+
defaultDescription?: string;
|
|
1517
1520
|
toolConfig: {
|
|
1518
1521
|
firstClass?: Array<string>;
|
|
1519
1522
|
loadable?: Array<string>;
|
|
@@ -1570,6 +1573,8 @@ export type DeleteAgentResponses = {
|
|
|
1570
1573
|
source: 'builtin' | 'local' | 'global' | 'merged' | 'embedded';
|
|
1571
1574
|
prompt: string;
|
|
1572
1575
|
promptSource: string;
|
|
1576
|
+
description?: string;
|
|
1577
|
+
defaultDescription?: string;
|
|
1573
1578
|
toolConfig: {
|
|
1574
1579
|
firstClass?: Array<string>;
|
|
1575
1580
|
loadable?: Array<string>;
|
|
@@ -1619,6 +1624,8 @@ export type GetAgentResponses = {
|
|
|
1619
1624
|
source: 'builtin' | 'local' | 'global' | 'merged' | 'embedded';
|
|
1620
1625
|
prompt: string;
|
|
1621
1626
|
promptSource: string;
|
|
1627
|
+
description?: string;
|
|
1628
|
+
defaultDescription?: string;
|
|
1622
1629
|
toolConfig: {
|
|
1623
1630
|
firstClass?: Array<string>;
|
|
1624
1631
|
loadable?: Array<string>;
|
|
@@ -1645,6 +1652,7 @@ export type UpsertAgentData = {
|
|
|
1645
1652
|
scope?: 'local' | 'global';
|
|
1646
1653
|
prompt?: string;
|
|
1647
1654
|
promptStorage?: 'file' | 'inline';
|
|
1655
|
+
description?: string | null;
|
|
1648
1656
|
tools?: {
|
|
1649
1657
|
firstClass?: Array<string>;
|
|
1650
1658
|
loadable?: Array<string>;
|
|
@@ -1682,6 +1690,8 @@ export type UpsertAgentResponses = {
|
|
|
1682
1690
|
source: 'builtin' | 'local' | 'global' | 'merged' | 'embedded';
|
|
1683
1691
|
prompt: string;
|
|
1684
1692
|
promptSource: string;
|
|
1693
|
+
description?: string;
|
|
1694
|
+
defaultDescription?: string;
|
|
1685
1695
|
toolConfig: {
|
|
1686
1696
|
firstClass?: Array<string>;
|
|
1687
1697
|
loadable?: Array<string>;
|
|
@@ -1722,7 +1732,7 @@ export type GetConfigToolsResponses = {
|
|
|
1722
1732
|
tools: Array<{
|
|
1723
1733
|
name: string;
|
|
1724
1734
|
description?: string;
|
|
1725
|
-
category: 'first_class' | 'loadable' | 'core' | 'filesystem' | 'search' | 'editing' | 'shell' | 'git' | 'web' | 'mcp' | 'skill' | 'research' | 'custom' | 'other';
|
|
1735
|
+
category: 'first_class' | 'loadable' | 'core' | 'filesystem' | 'search' | 'editing' | 'shell' | 'git' | 'web' | 'mcp' | 'skill' | 'research' | 'orchestration' | 'custom' | 'other';
|
|
1726
1736
|
source: 'builtin' | 'mcp' | 'skill' | 'custom';
|
|
1727
1737
|
activation?: 'first_class' | 'loadable' | 'mcp';
|
|
1728
1738
|
required?: boolean;
|
|
@@ -2002,6 +2012,7 @@ export type UpdateDefaultsData = {
|
|
|
2002
2012
|
releaseToSend?: boolean;
|
|
2003
2013
|
fullWidthContent?: boolean;
|
|
2004
2014
|
autoCompactThresholdTokens?: number | null;
|
|
2015
|
+
ottoEnabled?: boolean;
|
|
2005
2016
|
scope?: 'global' | 'local';
|
|
2006
2017
|
};
|
|
2007
2018
|
path?: never;
|
|
@@ -2035,6 +2046,7 @@ export type UpdateDefaultsResponses = {
|
|
|
2035
2046
|
releaseToSend?: boolean;
|
|
2036
2047
|
fullWidthContent?: boolean;
|
|
2037
2048
|
autoCompactThresholdTokens?: number | null;
|
|
2049
|
+
ottoEnabled?: boolean;
|
|
2038
2050
|
};
|
|
2039
2051
|
};
|
|
2040
2052
|
};
|
|
@@ -3790,6 +3802,382 @@ export type ExportResearchSessionResponses = {
|
|
|
3790
3802
|
};
|
|
3791
3803
|
};
|
|
3792
3804
|
export type ExportResearchSessionResponse = ExportResearchSessionResponses[keyof ExportResearchSessionResponses];
|
|
3805
|
+
export type GetSessionGoalData = {
|
|
3806
|
+
body?: never;
|
|
3807
|
+
path: {
|
|
3808
|
+
sessionId: string;
|
|
3809
|
+
};
|
|
3810
|
+
query?: {
|
|
3811
|
+
/**
|
|
3812
|
+
* Project root override (defaults to current working directory).
|
|
3813
|
+
*/
|
|
3814
|
+
project?: string;
|
|
3815
|
+
};
|
|
3816
|
+
url: '/v1/sessions/{sessionId}/goal';
|
|
3817
|
+
};
|
|
3818
|
+
export type GetSessionGoalErrors = {
|
|
3819
|
+
/**
|
|
3820
|
+
* Goals disabled
|
|
3821
|
+
*/
|
|
3822
|
+
403: {
|
|
3823
|
+
error: string;
|
|
3824
|
+
};
|
|
3825
|
+
};
|
|
3826
|
+
export type GetSessionGoalError = GetSessionGoalErrors[keyof GetSessionGoalErrors];
|
|
3827
|
+
export type GetSessionGoalResponses = {
|
|
3828
|
+
/**
|
|
3829
|
+
* OK
|
|
3830
|
+
*/
|
|
3831
|
+
200: {
|
|
3832
|
+
goal: {
|
|
3833
|
+
id: string;
|
|
3834
|
+
projectPath: string;
|
|
3835
|
+
sessionId: string | null;
|
|
3836
|
+
title: string;
|
|
3837
|
+
status: 'active' | 'completed' | 'abandoned';
|
|
3838
|
+
startedAt: number | null;
|
|
3839
|
+
createdAt: number;
|
|
3840
|
+
updatedAt: number;
|
|
3841
|
+
tasks: Array<{
|
|
3842
|
+
id: string;
|
|
3843
|
+
goalId: string;
|
|
3844
|
+
position: number;
|
|
3845
|
+
content: string;
|
|
3846
|
+
status: 'pending' | 'in_progress' | 'done_pending' | 'completed' | 'blocked' | 'cancelled';
|
|
3847
|
+
note: string | null;
|
|
3848
|
+
createdAt: number;
|
|
3849
|
+
updatedAt: number;
|
|
3850
|
+
}>;
|
|
3851
|
+
} | null;
|
|
3852
|
+
};
|
|
3853
|
+
};
|
|
3854
|
+
export type GetSessionGoalResponse = GetSessionGoalResponses[keyof GetSessionGoalResponses];
|
|
3855
|
+
export type CreateSessionGoalData = {
|
|
3856
|
+
body: {
|
|
3857
|
+
title: string;
|
|
3858
|
+
tasks?: Array<string>;
|
|
3859
|
+
};
|
|
3860
|
+
path: {
|
|
3861
|
+
sessionId: string;
|
|
3862
|
+
};
|
|
3863
|
+
query?: {
|
|
3864
|
+
/**
|
|
3865
|
+
* Project root override (defaults to current working directory).
|
|
3866
|
+
*/
|
|
3867
|
+
project?: string;
|
|
3868
|
+
};
|
|
3869
|
+
url: '/v1/sessions/{sessionId}/goal';
|
|
3870
|
+
};
|
|
3871
|
+
export type CreateSessionGoalErrors = {
|
|
3872
|
+
/**
|
|
3873
|
+
* Goals disabled
|
|
3874
|
+
*/
|
|
3875
|
+
403: {
|
|
3876
|
+
error: string;
|
|
3877
|
+
};
|
|
3878
|
+
/**
|
|
3879
|
+
* Active goal already exists
|
|
3880
|
+
*/
|
|
3881
|
+
409: {
|
|
3882
|
+
error: string;
|
|
3883
|
+
};
|
|
3884
|
+
};
|
|
3885
|
+
export type CreateSessionGoalError = CreateSessionGoalErrors[keyof CreateSessionGoalErrors];
|
|
3886
|
+
export type CreateSessionGoalResponses = {
|
|
3887
|
+
/**
|
|
3888
|
+
* Created
|
|
3889
|
+
*/
|
|
3890
|
+
201: {
|
|
3891
|
+
goal: {
|
|
3892
|
+
id: string;
|
|
3893
|
+
projectPath: string;
|
|
3894
|
+
sessionId: string | null;
|
|
3895
|
+
title: string;
|
|
3896
|
+
status: 'active' | 'completed' | 'abandoned';
|
|
3897
|
+
startedAt: number | null;
|
|
3898
|
+
createdAt: number;
|
|
3899
|
+
updatedAt: number;
|
|
3900
|
+
tasks: Array<{
|
|
3901
|
+
id: string;
|
|
3902
|
+
goalId: string;
|
|
3903
|
+
position: number;
|
|
3904
|
+
content: string;
|
|
3905
|
+
status: 'pending' | 'in_progress' | 'done_pending' | 'completed' | 'blocked' | 'cancelled';
|
|
3906
|
+
note: string | null;
|
|
3907
|
+
createdAt: number;
|
|
3908
|
+
updatedAt: number;
|
|
3909
|
+
}>;
|
|
3910
|
+
};
|
|
3911
|
+
};
|
|
3912
|
+
};
|
|
3913
|
+
export type CreateSessionGoalResponse = CreateSessionGoalResponses[keyof CreateSessionGoalResponses];
|
|
3914
|
+
export type UpdateGoalData = {
|
|
3915
|
+
body: {
|
|
3916
|
+
title?: string;
|
|
3917
|
+
status?: 'active' | 'completed' | 'abandoned';
|
|
3918
|
+
};
|
|
3919
|
+
path: {
|
|
3920
|
+
goalId: string;
|
|
3921
|
+
};
|
|
3922
|
+
query?: {
|
|
3923
|
+
/**
|
|
3924
|
+
* Project root override (defaults to current working directory).
|
|
3925
|
+
*/
|
|
3926
|
+
project?: string;
|
|
3927
|
+
};
|
|
3928
|
+
url: '/v1/goals/{goalId}';
|
|
3929
|
+
};
|
|
3930
|
+
export type UpdateGoalErrors = {
|
|
3931
|
+
/**
|
|
3932
|
+
* Goals disabled
|
|
3933
|
+
*/
|
|
3934
|
+
403: {
|
|
3935
|
+
error: string;
|
|
3936
|
+
};
|
|
3937
|
+
/**
|
|
3938
|
+
* Not Found
|
|
3939
|
+
*/
|
|
3940
|
+
404: {
|
|
3941
|
+
error: string;
|
|
3942
|
+
};
|
|
3943
|
+
};
|
|
3944
|
+
export type UpdateGoalError = UpdateGoalErrors[keyof UpdateGoalErrors];
|
|
3945
|
+
export type UpdateGoalResponses = {
|
|
3946
|
+
/**
|
|
3947
|
+
* OK
|
|
3948
|
+
*/
|
|
3949
|
+
200: {
|
|
3950
|
+
goal: {
|
|
3951
|
+
id: string;
|
|
3952
|
+
projectPath: string;
|
|
3953
|
+
sessionId: string | null;
|
|
3954
|
+
title: string;
|
|
3955
|
+
status: 'active' | 'completed' | 'abandoned';
|
|
3956
|
+
startedAt: number | null;
|
|
3957
|
+
createdAt: number;
|
|
3958
|
+
updatedAt: number;
|
|
3959
|
+
tasks: Array<{
|
|
3960
|
+
id: string;
|
|
3961
|
+
goalId: string;
|
|
3962
|
+
position: number;
|
|
3963
|
+
content: string;
|
|
3964
|
+
status: 'pending' | 'in_progress' | 'done_pending' | 'completed' | 'blocked' | 'cancelled';
|
|
3965
|
+
note: string | null;
|
|
3966
|
+
createdAt: number;
|
|
3967
|
+
updatedAt: number;
|
|
3968
|
+
}>;
|
|
3969
|
+
};
|
|
3970
|
+
};
|
|
3971
|
+
};
|
|
3972
|
+
export type UpdateGoalResponse = UpdateGoalResponses[keyof UpdateGoalResponses];
|
|
3973
|
+
export type AddGoalTasksData = {
|
|
3974
|
+
body: {
|
|
3975
|
+
tasks: Array<string>;
|
|
3976
|
+
};
|
|
3977
|
+
path: {
|
|
3978
|
+
goalId: string;
|
|
3979
|
+
};
|
|
3980
|
+
query?: {
|
|
3981
|
+
/**
|
|
3982
|
+
* Project root override (defaults to current working directory).
|
|
3983
|
+
*/
|
|
3984
|
+
project?: string;
|
|
3985
|
+
};
|
|
3986
|
+
url: '/v1/goals/{goalId}/tasks';
|
|
3987
|
+
};
|
|
3988
|
+
export type AddGoalTasksErrors = {
|
|
3989
|
+
/**
|
|
3990
|
+
* Goals disabled
|
|
3991
|
+
*/
|
|
3992
|
+
403: {
|
|
3993
|
+
error: string;
|
|
3994
|
+
};
|
|
3995
|
+
/**
|
|
3996
|
+
* Not Found
|
|
3997
|
+
*/
|
|
3998
|
+
404: {
|
|
3999
|
+
error: string;
|
|
4000
|
+
};
|
|
4001
|
+
};
|
|
4002
|
+
export type AddGoalTasksError = AddGoalTasksErrors[keyof AddGoalTasksErrors];
|
|
4003
|
+
export type AddGoalTasksResponses = {
|
|
4004
|
+
/**
|
|
4005
|
+
* Created
|
|
4006
|
+
*/
|
|
4007
|
+
201: {
|
|
4008
|
+
goal: {
|
|
4009
|
+
id: string;
|
|
4010
|
+
projectPath: string;
|
|
4011
|
+
sessionId: string | null;
|
|
4012
|
+
title: string;
|
|
4013
|
+
status: 'active' | 'completed' | 'abandoned';
|
|
4014
|
+
startedAt: number | null;
|
|
4015
|
+
createdAt: number;
|
|
4016
|
+
updatedAt: number;
|
|
4017
|
+
tasks: Array<{
|
|
4018
|
+
id: string;
|
|
4019
|
+
goalId: string;
|
|
4020
|
+
position: number;
|
|
4021
|
+
content: string;
|
|
4022
|
+
status: 'pending' | 'in_progress' | 'done_pending' | 'completed' | 'blocked' | 'cancelled';
|
|
4023
|
+
note: string | null;
|
|
4024
|
+
createdAt: number;
|
|
4025
|
+
updatedAt: number;
|
|
4026
|
+
}>;
|
|
4027
|
+
};
|
|
4028
|
+
};
|
|
4029
|
+
};
|
|
4030
|
+
export type AddGoalTasksResponse = AddGoalTasksResponses[keyof AddGoalTasksResponses];
|
|
4031
|
+
export type UpdateGoalTaskData = {
|
|
4032
|
+
body: {
|
|
4033
|
+
content?: string;
|
|
4034
|
+
status?: 'pending' | 'in_progress' | 'done_pending' | 'completed' | 'blocked' | 'cancelled';
|
|
4035
|
+
note?: string | null;
|
|
4036
|
+
};
|
|
4037
|
+
path: {
|
|
4038
|
+
goalId: string;
|
|
4039
|
+
taskId: string;
|
|
4040
|
+
};
|
|
4041
|
+
query?: {
|
|
4042
|
+
/**
|
|
4043
|
+
* Project root override (defaults to current working directory).
|
|
4044
|
+
*/
|
|
4045
|
+
project?: string;
|
|
4046
|
+
};
|
|
4047
|
+
url: '/v1/goals/{goalId}/tasks/{taskId}';
|
|
4048
|
+
};
|
|
4049
|
+
export type UpdateGoalTaskErrors = {
|
|
4050
|
+
/**
|
|
4051
|
+
* Goals disabled
|
|
4052
|
+
*/
|
|
4053
|
+
403: {
|
|
4054
|
+
error: string;
|
|
4055
|
+
};
|
|
4056
|
+
/**
|
|
4057
|
+
* Not Found
|
|
4058
|
+
*/
|
|
4059
|
+
404: {
|
|
4060
|
+
error: string;
|
|
4061
|
+
};
|
|
4062
|
+
};
|
|
4063
|
+
export type UpdateGoalTaskError = UpdateGoalTaskErrors[keyof UpdateGoalTaskErrors];
|
|
4064
|
+
export type UpdateGoalTaskResponses = {
|
|
4065
|
+
/**
|
|
4066
|
+
* OK
|
|
4067
|
+
*/
|
|
4068
|
+
200: {
|
|
4069
|
+
task: {
|
|
4070
|
+
id: string;
|
|
4071
|
+
goalId: string;
|
|
4072
|
+
position: number;
|
|
4073
|
+
content: string;
|
|
4074
|
+
status: 'pending' | 'in_progress' | 'done_pending' | 'completed' | 'blocked' | 'cancelled';
|
|
4075
|
+
note: string | null;
|
|
4076
|
+
createdAt: number;
|
|
4077
|
+
updatedAt: number;
|
|
4078
|
+
};
|
|
4079
|
+
};
|
|
4080
|
+
};
|
|
4081
|
+
export type UpdateGoalTaskResponse = UpdateGoalTaskResponses[keyof UpdateGoalTaskResponses];
|
|
4082
|
+
export type StartGoalData = {
|
|
4083
|
+
body?: never;
|
|
4084
|
+
path: {
|
|
4085
|
+
goalId: string;
|
|
4086
|
+
};
|
|
4087
|
+
query?: {
|
|
4088
|
+
/**
|
|
4089
|
+
* Project root override (defaults to current working directory).
|
|
4090
|
+
*/
|
|
4091
|
+
project?: string;
|
|
4092
|
+
};
|
|
4093
|
+
url: '/v1/goals/{goalId}/start';
|
|
4094
|
+
};
|
|
4095
|
+
export type StartGoalErrors = {
|
|
4096
|
+
/**
|
|
4097
|
+
* Goals disabled
|
|
4098
|
+
*/
|
|
4099
|
+
403: {
|
|
4100
|
+
error: string;
|
|
4101
|
+
};
|
|
4102
|
+
/**
|
|
4103
|
+
* Not Found
|
|
4104
|
+
*/
|
|
4105
|
+
404: {
|
|
4106
|
+
error: string;
|
|
4107
|
+
};
|
|
4108
|
+
/**
|
|
4109
|
+
* Goal cannot be started
|
|
4110
|
+
*/
|
|
4111
|
+
409: {
|
|
4112
|
+
error: string;
|
|
4113
|
+
};
|
|
4114
|
+
};
|
|
4115
|
+
export type StartGoalError = StartGoalErrors[keyof StartGoalErrors];
|
|
4116
|
+
export type StartGoalResponses = {
|
|
4117
|
+
/**
|
|
4118
|
+
* OK
|
|
4119
|
+
*/
|
|
4120
|
+
200: {
|
|
4121
|
+
goal: {
|
|
4122
|
+
id: string;
|
|
4123
|
+
projectPath: string;
|
|
4124
|
+
sessionId: string | null;
|
|
4125
|
+
title: string;
|
|
4126
|
+
status: 'active' | 'completed' | 'abandoned';
|
|
4127
|
+
startedAt: number | null;
|
|
4128
|
+
createdAt: number;
|
|
4129
|
+
updatedAt: number;
|
|
4130
|
+
tasks: Array<{
|
|
4131
|
+
id: string;
|
|
4132
|
+
goalId: string;
|
|
4133
|
+
position: number;
|
|
4134
|
+
content: string;
|
|
4135
|
+
status: 'pending' | 'in_progress' | 'done_pending' | 'completed' | 'blocked' | 'cancelled';
|
|
4136
|
+
note: string | null;
|
|
4137
|
+
createdAt: number;
|
|
4138
|
+
updatedAt: number;
|
|
4139
|
+
}>;
|
|
4140
|
+
};
|
|
4141
|
+
};
|
|
4142
|
+
};
|
|
4143
|
+
export type StartGoalResponse = StartGoalResponses[keyof StartGoalResponses];
|
|
4144
|
+
export type ListSessionSubagentsData = {
|
|
4145
|
+
body?: never;
|
|
4146
|
+
path: {
|
|
4147
|
+
sessionId: string;
|
|
4148
|
+
};
|
|
4149
|
+
query?: {
|
|
4150
|
+
/**
|
|
4151
|
+
* Project root override (defaults to current working directory).
|
|
4152
|
+
*/
|
|
4153
|
+
project?: string;
|
|
4154
|
+
/**
|
|
4155
|
+
* Filter sub-agents by status.
|
|
4156
|
+
*/
|
|
4157
|
+
status?: 'running' | 'completed' | 'failed' | 'cancelled';
|
|
4158
|
+
};
|
|
4159
|
+
url: '/v1/sessions/{sessionId}/subagents';
|
|
4160
|
+
};
|
|
4161
|
+
export type ListSessionSubagentsResponses = {
|
|
4162
|
+
/**
|
|
4163
|
+
* OK
|
|
4164
|
+
*/
|
|
4165
|
+
200: {
|
|
4166
|
+
subagents: Array<{
|
|
4167
|
+
id: string;
|
|
4168
|
+
parentSessionId: string;
|
|
4169
|
+
childSessionId: string;
|
|
4170
|
+
agent: string;
|
|
4171
|
+
task: string;
|
|
4172
|
+
status: 'running' | 'completed' | 'failed' | 'cancelled';
|
|
4173
|
+
summary: string | null;
|
|
4174
|
+
reported: boolean;
|
|
4175
|
+
createdAt: number;
|
|
4176
|
+
updatedAt: number;
|
|
4177
|
+
}>;
|
|
4178
|
+
};
|
|
4179
|
+
};
|
|
4180
|
+
export type ListSessionSubagentsResponse = ListSessionSubagentsResponses[keyof ListSessionSubagentsResponses];
|
|
3793
4181
|
export type GetOttoRouterBalanceData = {
|
|
3794
4182
|
body?: never;
|
|
3795
4183
|
path?: never;
|