@kosuke-ai/cli 6.6.0 → 6.8.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.
@@ -106,75 +106,76 @@ import { operation as o104 } from './sessions/runtime-command.js';
106
106
  import { operation as o105 } from './sessions/search.js';
107
107
  import { operation as o106 } from './sessions/send.js';
108
108
  import { operation as o107 } from './sessions/steer.js';
109
- import { operation as o108 } from './sessions/title-generate.js';
110
- import { operation as o109 } from './sessions/update.js';
111
- import { operation as o110 } from './user/auth-token-revoke.js';
112
- import { operation as o111 } from './user/integrations-list.js';
113
- import { operation as o112 } from './user/integrations-remove.js';
114
- import { operation as o113 } from './user/plugins-list.js';
115
- import { operation as o114 } from './user/plugins-update.js';
116
- import { operation as o115 } from './user/profile.js';
117
- import { operation as o116 } from './user/push-devices-register.js';
118
- import { operation as o117 } from './user/push-devices-remove.js';
119
- import { operation as o118 } from './user/skills-create.js';
120
- import { operation as o119 } from './user/skills-delete.js';
121
- import { operation as o120 } from './user/skills-get.js';
122
- import { operation as o121 } from './user/skills-list.js';
123
- import { operation as o122 } from './user/skills-update.js';
124
- import { operation as o123 } from './user/subscriptions-delete.js';
125
- import { operation as o124 } from './user/subscriptions-get.js';
126
- import { operation as o125 } from './user/subscriptions-login-claude-complete.js';
127
- import { operation as o126 } from './user/subscriptions-login-claude-start.js';
128
- import { operation as o127 } from './user/subscriptions-login-codex-complete.js';
129
- import { operation as o128 } from './user/subscriptions-login-codex-start.js';
130
- import { operation as o129 } from './user/subscriptions-logins-delete.js';
131
- import { operation as o130 } from './user/subscriptions-logins-reorder.js';
132
- import { operation as o131 } from './user/subscriptions-set-default-model.js';
133
- import { operation as o132 } from './user/subscriptions-set-key.js';
134
- import { operation as o133 } from './user/subscriptions-usage.js';
135
- import { operation as o134 } from './workspaces/access-status.js';
136
- import { operation as o135 } from './workspaces/ai-provider-get.js';
137
- import { operation as o136 } from './workspaces/ai-provider-logins-reorder.js';
138
- import { operation as o137 } from './workspaces/ai-provider-remove.js';
139
- import { operation as o138 } from './workspaces/ai-provider-set.js';
140
- import { operation as o139 } from './workspaces/ai-provider-usage-claude.js';
141
- import { operation as o140 } from './workspaces/ai-provider-usage-codex.js';
142
- import { operation as o141 } from './workspaces/ai-provider-usage-coding-plan.js';
143
- import { operation as o142 } from './workspaces/ai-provider-usage-deepseek.js';
144
- import { operation as o143 } from './workspaces/ai-provider-usage-kimi-code.js';
145
- import { operation as o144 } from './workspaces/artifacts.js';
146
- import { operation as o145 } from './workspaces/credits.js';
147
- import { operation as o146 } from './workspaces/get.js';
148
- import { operation as o147 } from './workspaces/getting-started-get.js';
149
- import { operation as o148 } from './workspaces/getting-started-update.js';
150
- import { operation as o149 } from './workspaces/integrations-get.js';
151
- import { operation as o150 } from './workspaces/integrations-list.js';
152
- import { operation as o151 } from './workspaces/integrations-remove.js';
153
- import { operation as o152 } from './workspaces/integrations-slack-get.js';
154
- import { operation as o153 } from './workspaces/lead-cards.js';
155
- import { operation as o154 } from './workspaces/lead-merge.js';
156
- import { operation as o155 } from './workspaces/lead-notifications-open.js';
157
- import { operation as o156 } from './workspaces/lead-proposals-create.js';
158
- import { operation as o157 } from './workspaces/lead-review-request.js';
159
- import { operation as o158 } from './workspaces/lead-session-send.js';
160
- import { operation as o159 } from './workspaces/lead-triage.js';
161
- import { operation as o160 } from './workspaces/list.js';
162
- import { operation as o161 } from './workspaces/members.js';
163
- import { operation as o162 } from './workspaces/plugins-list.js';
164
- import { operation as o163 } from './workspaces/plugins-update.js';
165
- import { operation as o164 } from './workspaces/provider-login-claude-complete.js';
166
- import { operation as o165 } from './workspaces/provider-login-claude-start.js';
167
- import { operation as o166 } from './workspaces/provider-login-codex-complete.js';
168
- import { operation as o167 } from './workspaces/provider-login-codex-start.js';
169
- import { operation as o168 } from './workspaces/sandbox-limit.js';
170
- import { operation as o169 } from './workspaces/skills-create.js';
171
- import { operation as o170 } from './workspaces/skills-delete.js';
172
- import { operation as o171 } from './workspaces/skills-get.js';
173
- import { operation as o172 } from './workspaces/skills-list.js';
174
- import { operation as o173 } from './workspaces/skills-update.js';
175
- import { operation as o174 } from './workspaces/stop-sandboxes.js';
176
- import { operation as o175 } from './workspaces/timezone-set.js';
177
- import { operation as o176 } from './workspaces/usage.js';
109
+ import { operation as o108 } from './sessions/sync.js';
110
+ import { operation as o109 } from './sessions/title-generate.js';
111
+ import { operation as o110 } from './sessions/update.js';
112
+ import { operation as o111 } from './user/auth-token-revoke.js';
113
+ import { operation as o112 } from './user/integrations-list.js';
114
+ import { operation as o113 } from './user/integrations-remove.js';
115
+ import { operation as o114 } from './user/plugins-list.js';
116
+ import { operation as o115 } from './user/plugins-update.js';
117
+ import { operation as o116 } from './user/profile.js';
118
+ import { operation as o117 } from './user/push-devices-register.js';
119
+ import { operation as o118 } from './user/push-devices-remove.js';
120
+ import { operation as o119 } from './user/skills-create.js';
121
+ import { operation as o120 } from './user/skills-delete.js';
122
+ import { operation as o121 } from './user/skills-get.js';
123
+ import { operation as o122 } from './user/skills-list.js';
124
+ import { operation as o123 } from './user/skills-update.js';
125
+ import { operation as o124 } from './user/subscriptions-delete.js';
126
+ import { operation as o125 } from './user/subscriptions-get.js';
127
+ import { operation as o126 } from './user/subscriptions-login-claude-complete.js';
128
+ import { operation as o127 } from './user/subscriptions-login-claude-start.js';
129
+ import { operation as o128 } from './user/subscriptions-login-codex-complete.js';
130
+ import { operation as o129 } from './user/subscriptions-login-codex-start.js';
131
+ import { operation as o130 } from './user/subscriptions-logins-delete.js';
132
+ import { operation as o131 } from './user/subscriptions-logins-reorder.js';
133
+ import { operation as o132 } from './user/subscriptions-set-default-model.js';
134
+ import { operation as o133 } from './user/subscriptions-set-key.js';
135
+ import { operation as o134 } from './user/subscriptions-usage.js';
136
+ import { operation as o135 } from './workspaces/access-status.js';
137
+ import { operation as o136 } from './workspaces/ai-provider-get.js';
138
+ import { operation as o137 } from './workspaces/ai-provider-logins-reorder.js';
139
+ import { operation as o138 } from './workspaces/ai-provider-remove.js';
140
+ import { operation as o139 } from './workspaces/ai-provider-set.js';
141
+ import { operation as o140 } from './workspaces/ai-provider-usage-claude.js';
142
+ import { operation as o141 } from './workspaces/ai-provider-usage-codex.js';
143
+ import { operation as o142 } from './workspaces/ai-provider-usage-coding-plan.js';
144
+ import { operation as o143 } from './workspaces/ai-provider-usage-deepseek.js';
145
+ import { operation as o144 } from './workspaces/ai-provider-usage-kimi-code.js';
146
+ import { operation as o145 } from './workspaces/artifacts.js';
147
+ import { operation as o146 } from './workspaces/credits.js';
148
+ import { operation as o147 } from './workspaces/get.js';
149
+ import { operation as o148 } from './workspaces/getting-started-get.js';
150
+ import { operation as o149 } from './workspaces/getting-started-update.js';
151
+ import { operation as o150 } from './workspaces/integrations-get.js';
152
+ import { operation as o151 } from './workspaces/integrations-list.js';
153
+ import { operation as o152 } from './workspaces/integrations-remove.js';
154
+ import { operation as o153 } from './workspaces/integrations-slack-get.js';
155
+ import { operation as o154 } from './workspaces/lead-cards.js';
156
+ import { operation as o155 } from './workspaces/lead-merge.js';
157
+ import { operation as o156 } from './workspaces/lead-notifications-open.js';
158
+ import { operation as o157 } from './workspaces/lead-proposals-create.js';
159
+ import { operation as o158 } from './workspaces/lead-review-request.js';
160
+ import { operation as o159 } from './workspaces/lead-session-send.js';
161
+ import { operation as o160 } from './workspaces/lead-triage.js';
162
+ import { operation as o161 } from './workspaces/list.js';
163
+ import { operation as o162 } from './workspaces/members.js';
164
+ import { operation as o163 } from './workspaces/plugins-list.js';
165
+ import { operation as o164 } from './workspaces/plugins-update.js';
166
+ import { operation as o165 } from './workspaces/provider-login-claude-complete.js';
167
+ import { operation as o166 } from './workspaces/provider-login-claude-start.js';
168
+ import { operation as o167 } from './workspaces/provider-login-codex-complete.js';
169
+ import { operation as o168 } from './workspaces/provider-login-codex-start.js';
170
+ import { operation as o169 } from './workspaces/sandbox-limit.js';
171
+ import { operation as o170 } from './workspaces/skills-create.js';
172
+ import { operation as o171 } from './workspaces/skills-delete.js';
173
+ import { operation as o172 } from './workspaces/skills-get.js';
174
+ import { operation as o173 } from './workspaces/skills-list.js';
175
+ import { operation as o174 } from './workspaces/skills-update.js';
176
+ import { operation as o175 } from './workspaces/stop-sandboxes.js';
177
+ import { operation as o176 } from './workspaces/timezone-set.js';
178
+ import { operation as o177 } from './workspaces/usage.js';
178
179
  export const operations = [
179
180
  o0,
180
181
  o1,
@@ -353,4 +354,5 @@ export const operations = [
353
354
  o174,
354
355
  o175,
355
356
  o176,
357
+ o177,
356
358
  ];
@@ -30,6 +30,13 @@ export const operation = {
30
30
  "kind": "string",
31
31
  "required": false
32
32
  },
33
+ {
34
+ "name": "auto",
35
+ "flag": "auto",
36
+ "kind": "boolean",
37
+ "required": false,
38
+ "description": "True starts the session on Auto: Kosuke picks the Model and Provider of each Turn. False keeps it off. Absent follows your Default Model."
39
+ },
33
40
  {
34
41
  "name": "status",
35
42
  "flag": "status",
@@ -93,6 +100,13 @@ export const operation = {
93
100
  "kind": "string",
94
101
  "required": false
95
102
  },
103
+ {
104
+ "name": "auto",
105
+ "flag": "auto",
106
+ "kind": "boolean",
107
+ "required": false,
108
+ "description": "True starts the session on Auto: Kosuke picks the Model and Provider of each Turn. False keeps it off. Absent follows your Default Model."
109
+ },
96
110
  {
97
111
  "name": "status",
98
112
  "flag": "status",
@@ -26,6 +26,17 @@ export const operation = {
26
26
  "kind": "string",
27
27
  "required": false
28
28
  },
29
+ {
30
+ "name": "auto",
31
+ "flag": "auto",
32
+ "kind": "string",
33
+ "required": false,
34
+ "description": "true puts the ticket on Auto: Kosuke picks the Model and Provider of each Turn. false takes it off; send it with model when choosing a Model. Absent leaves it as it is.",
35
+ "choices": [
36
+ "true",
37
+ "false"
38
+ ]
39
+ },
29
40
  {
30
41
  "name": "ownerId",
31
42
  "flag": "owner-id",
@@ -25,6 +25,13 @@ export const operation = {
25
25
  "kind": "string",
26
26
  "required": false
27
27
  },
28
+ {
29
+ "name": "auto",
30
+ "flag": "auto",
31
+ "kind": "boolean",
32
+ "required": false,
33
+ "description": "True puts the session on Auto from this Turn: Kosuke picks its Model and Provider. False takes it off, with model or the session's own. Absent keeps the session as it is."
34
+ },
28
35
  {
29
36
  "name": "previewContext",
30
37
  "flag": "preview-context",
@@ -67,6 +74,17 @@ export const operation = {
67
74
  "kind": "string",
68
75
  "required": false
69
76
  },
77
+ {
78
+ "name": "auto",
79
+ "flag": "auto",
80
+ "kind": "string",
81
+ "required": false,
82
+ "description": "As the JSON body's auto.",
83
+ "choices": [
84
+ "true",
85
+ "false"
86
+ ]
87
+ },
70
88
  {
71
89
  "name": "previewContext",
72
90
  "flag": "preview-context",
@@ -0,0 +1,40 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/sync",
4
+ "command": [
5
+ "sessions",
6
+ "sync"
7
+ ],
8
+ "summary": "Merge the Target Branch, or the open pull request's base, into the session's branch on GitHub, like GitHub's Update branch, and refresh its sandbox. Without an open pull request, uses the project Target Branch, then its default branch. Starts no turn: outcome agent needs /kosuke:sync-branch; pending means GitHub accepted the merge and completion is queued. Poll statusJobId for refreshed or refresh_failed. Failed status includes recovery: retry for a transient refresh failure, observe while GitHub is unconfirmed, repair for an explicit agent repair after a confirmed merge, or stale when the branch or pull request changed. Retrying completion never requests another merge.",
9
+ "pathParams": [
10
+ "projectId",
11
+ "sessionId"
12
+ ],
13
+ "query": [],
14
+ "body": {
15
+ "fields": [
16
+ {
17
+ "name": "completion",
18
+ "flag": "completion",
19
+ "kind": "json",
20
+ "required": false,
21
+ "description": "Retry only the observation and sandbox refresh returned by a previous Sync. Never requests another merge."
22
+ },
23
+ {
24
+ "name": "statusJobId",
25
+ "flag": "status-job-id",
26
+ "kind": "string",
27
+ "required": false,
28
+ "description": "Read the completion job status without requesting a merge or refresh."
29
+ }
30
+ ],
31
+ "required": false
32
+ },
33
+ "multipart": null,
34
+ "attachments": false,
35
+ "anonymous": false,
36
+ "sandboxToken": true,
37
+ "orchestratorToken": true,
38
+ "cronToken": true,
39
+ "leadToken": true
40
+ };
@@ -5,7 +5,7 @@ export const operation = {
5
5
  "sessions",
6
6
  "update"
7
7
  ],
8
- "summary": "Change title, status, model, Assignee or priority. Which changes are legal depends on the current status; the handler decides.",
8
+ "summary": "Change title, status, model, Auto, Assignee or priority. Which changes are legal depends on the current status; the handler decides.",
9
9
  "pathParams": [
10
10
  "projectId",
11
11
  "sessionId"
@@ -44,6 +44,13 @@ export const operation = {
44
44
  "kind": "string",
45
45
  "required": false
46
46
  },
47
+ {
48
+ "name": "auto",
49
+ "flag": "auto",
50
+ "kind": "boolean",
51
+ "required": false,
52
+ "description": "True puts the session on Auto, from its next Turn. False takes it off; send it with model when choosing a Model. Absent leaves it as it is."
53
+ },
47
54
  {
48
55
  "name": "ownerId",
49
56
  "flag": "owner-id",
@@ -6,7 +6,7 @@ export const operation = {
6
6
  "subscriptions",
7
7
  "get"
8
8
  ],
9
- "summary": "Read your Claude, Codex, GLM Coding Plan, Kimi Code and DeepSeek API subscriptions and your default model. Per provider: the login in use (connected, needsReauth, accountEmail, and maskedApiKey for a pasted key) and every login in the order it is used (logins).",
9
+ "summary": "Read your Claude, Codex, GLM Coding Plan, Kimi Code and DeepSeek API subscriptions and your default model, with defaultAuto when it is Auto. Per provider: the login in use (connected, needsReauth, accountEmail, and maskedApiKey for a pasted key) and every login in the order it is used (logins).",
10
10
  "pathParams": [],
11
11
  "query": [],
12
12
  "body": null,
@@ -6,7 +6,7 @@ export const operation = {
6
6
  "subscriptions",
7
7
  "set-default-model"
8
8
  ],
9
- "summary": "Save the model new chat sessions start on, as an encoded id such as anthropic:sonnet__medium, or null to let Kosuke choose. Answers 204.",
9
+ "summary": "Save the model new chat sessions start on, as an encoded id such as anthropic:sonnet__medium, or null to let Kosuke choose, or defaultAuto: true to start them on Auto. Answers 204.",
10
10
  "pathParams": [],
11
11
  "query": [],
12
12
  "body": {
@@ -15,7 +15,14 @@ export const operation = {
15
15
  "name": "defaultModel",
16
16
  "flag": "default-model",
17
17
  "kind": "string",
18
- "required": true
18
+ "required": false
19
+ },
20
+ {
21
+ "name": "defaultAuto",
22
+ "flag": "default-auto",
23
+ "kind": "boolean",
24
+ "required": false,
25
+ "description": "True makes Auto your Default Model; defaultModel stays as it is unless sent."
19
26
  }
20
27
  ],
21
28
  "required": true
package/openapi.json CHANGED
@@ -6049,6 +6049,10 @@
6049
6049
  "type": "string",
6050
6050
  "minLength": 1
6051
6051
  },
6052
+ "auto": {
6053
+ "description": "True starts the session on Auto: Kosuke picks the Model and Provider of each Turn. False keeps it off. Absent follows your Default Model.",
6054
+ "type": "boolean"
6055
+ },
6052
6056
  "status": {
6053
6057
  "type": "string",
6054
6058
  "const": "backlog"
@@ -6092,6 +6096,10 @@
6092
6096
  "type": "string",
6093
6097
  "minLength": 1
6094
6098
  },
6099
+ "auto": {
6100
+ "description": "True starts the session on Auto: Kosuke picks the Model and Provider of each Turn. False keeps it off. Absent follows your Default Model.",
6101
+ "type": "boolean"
6102
+ },
6095
6103
  "status": {
6096
6104
  "type": "string",
6097
6105
  "const": "backlog"
@@ -6221,7 +6229,7 @@
6221
6229
  },
6222
6230
  "put": {
6223
6231
  "operationId": "sessionsUpdate",
6224
- "summary": "Change title, status, model, Assignee or priority. Which changes are legal depends on the current status; the handler decides.",
6232
+ "summary": "Change title, status, model, Auto, Assignee or priority. Which changes are legal depends on the current status; the handler decides.",
6225
6233
  "tags": ["sessions"],
6226
6234
  "x-kosuke-command": ["sessions", "update"],
6227
6235
  "x-kosuke-sandbox-token": true,
@@ -6282,6 +6290,10 @@
6282
6290
  "type": "string",
6283
6291
  "minLength": 1
6284
6292
  },
6293
+ "auto": {
6294
+ "description": "True puts the session on Auto, from its next Turn. False takes it off; send it with model when choosing a Model. Absent leaves it as it is.",
6295
+ "type": "boolean"
6296
+ },
6285
6297
  "ownerId": {
6286
6298
  "anyOf": [
6287
6299
  {
@@ -7170,6 +7182,10 @@
7170
7182
  "type": "string",
7171
7183
  "minLength": 1
7172
7184
  },
7185
+ "auto": {
7186
+ "description": "True puts the session on Auto from this Turn: Kosuke picks its Model and Provider. False takes it off, with model or the session's own. Absent keeps the session as it is.",
7187
+ "type": "boolean"
7188
+ },
7173
7189
  "previewContext": {
7174
7190
  "type": "object",
7175
7191
  "properties": {
@@ -7273,6 +7289,11 @@
7273
7289
  "type": "string",
7274
7290
  "minLength": 1
7275
7291
  },
7292
+ "auto": {
7293
+ "description": "As the JSON body's auto.",
7294
+ "type": "string",
7295
+ "enum": ["true", "false"]
7296
+ },
7276
7297
  "previewContext": {
7277
7298
  "description": "JSON-encoded { frontendName, path }.",
7278
7299
  "type": "string"
@@ -9001,6 +9022,11 @@
9001
9022
  "type": "string",
9002
9023
  "minLength": 1
9003
9024
  },
9025
+ "auto": {
9026
+ "description": "true puts the ticket on Auto: Kosuke picks the Model and Provider of each Turn. false takes it off; send it with model when choosing a Model. Absent leaves it as it is.",
9027
+ "type": "string",
9028
+ "enum": ["true", "false"]
9029
+ },
9004
9030
  "ownerId": {
9005
9031
  "description": "A member id to assign, or an empty string to unassign.",
9006
9032
  "type": "string"
@@ -9862,6 +9888,111 @@
9862
9888
  }
9863
9889
  }
9864
9890
  },
9891
+ "/api/projects/{projectId}/chat-sessions/{sessionId}/sync": {
9892
+ "post": {
9893
+ "operationId": "sessionsSync",
9894
+ "summary": "Merge the Target Branch, or the open pull request's base, into the session's branch on GitHub, like GitHub's Update branch, and refresh its sandbox. Without an open pull request, uses the project Target Branch, then its default branch. Starts no turn: outcome agent needs /kosuke:sync-branch; pending means GitHub accepted the merge and completion is queued. Poll statusJobId for refreshed or refresh_failed. Failed status includes recovery: retry for a transient refresh failure, observe while GitHub is unconfirmed, repair for an explicit agent repair after a confirmed merge, or stale when the branch or pull request changed. Retrying completion never requests another merge.",
9895
+ "tags": ["sessions"],
9896
+ "x-kosuke-command": ["sessions", "sync"],
9897
+ "x-kosuke-sandbox-token": true,
9898
+ "x-kosuke-orchestrator-token": true,
9899
+ "x-kosuke-cron-token": true,
9900
+ "x-kosuke-lead-token": true,
9901
+ "parameters": [
9902
+ {
9903
+ "name": "projectId",
9904
+ "in": "path",
9905
+ "required": true,
9906
+ "schema": {
9907
+ "type": "string",
9908
+ "format": "uuid",
9909
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
9910
+ }
9911
+ },
9912
+ {
9913
+ "name": "sessionId",
9914
+ "in": "path",
9915
+ "required": true,
9916
+ "schema": {
9917
+ "type": "string",
9918
+ "format": "uuid",
9919
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
9920
+ }
9921
+ }
9922
+ ],
9923
+ "requestBody": {
9924
+ "required": false,
9925
+ "content": {
9926
+ "application/json": {
9927
+ "schema": {
9928
+ "type": "object",
9929
+ "properties": {
9930
+ "completion": {
9931
+ "description": "Retry only the observation and sandbox refresh returned by a previous Sync. Never requests another merge.",
9932
+ "type": "object",
9933
+ "properties": {
9934
+ "branch": {
9935
+ "type": "string",
9936
+ "minLength": 1,
9937
+ "maxLength": 255
9938
+ },
9939
+ "pullNumber": {
9940
+ "type": "integer",
9941
+ "exclusiveMinimum": 0,
9942
+ "maximum": 9007199254740991
9943
+ },
9944
+ "previousHead": {
9945
+ "type": "string",
9946
+ "pattern": "^[0-9a-f]{40,64}$"
9947
+ }
9948
+ },
9949
+ "required": ["branch"]
9950
+ },
9951
+ "statusJobId": {
9952
+ "description": "Read the completion job status without requesting a merge or refresh.",
9953
+ "type": "string",
9954
+ "pattern": "^sync-[0-9a-f-]{36}$"
9955
+ }
9956
+ },
9957
+ "additionalProperties": false
9958
+ }
9959
+ }
9960
+ }
9961
+ },
9962
+ "responses": {
9963
+ "2XX": {
9964
+ "description": "Success envelope",
9965
+ "content": {
9966
+ "application/json": {
9967
+ "schema": {
9968
+ "$ref": "#/components/schemas/ApiSuccess"
9969
+ }
9970
+ }
9971
+ }
9972
+ },
9973
+ "4XX": {
9974
+ "description": "Error envelope",
9975
+ "content": {
9976
+ "application/json": {
9977
+ "schema": {
9978
+ "$ref": "#/components/schemas/ApiError"
9979
+ }
9980
+ }
9981
+ }
9982
+ },
9983
+ "5XX": {
9984
+ "description": "Error envelope",
9985
+ "content": {
9986
+ "application/json": {
9987
+ "schema": {
9988
+ "$ref": "#/components/schemas/ApiError"
9989
+ }
9990
+ }
9991
+ }
9992
+ }
9993
+ }
9994
+ }
9995
+ },
9865
9996
  "/api/projects/{projectId}/chat-sessions/{sessionId}/title/generate": {
9866
9997
  "post": {
9867
9998
  "operationId": "sessionsTitleGenerate",
@@ -13694,7 +13825,7 @@
13694
13825
  "/api/user/subscriptions": {
13695
13826
  "get": {
13696
13827
  "operationId": "userSubscriptionsGet",
13697
- "summary": "Read your Claude, Codex, GLM Coding Plan, Kimi Code and DeepSeek API subscriptions and your default model. Per provider: the login in use (connected, needsReauth, accountEmail, and maskedApiKey for a pasted key) and every login in the order it is used (logins).",
13828
+ "summary": "Read your Claude, Codex, GLM Coding Plan, Kimi Code and DeepSeek API subscriptions and your default model, with defaultAuto when it is Auto. Per provider: the login in use (connected, needsReauth, accountEmail, and maskedApiKey for a pasted key) and every login in the order it is used (logins).",
13698
13829
  "tags": ["user"],
13699
13830
  "x-kosuke-command": ["user", "subscriptions", "get"],
13700
13831
  "x-kosuke-sandbox-token": true,
@@ -13736,7 +13867,7 @@
13736
13867
  },
13737
13868
  "patch": {
13738
13869
  "operationId": "userSubscriptionsSetDefaultModel",
13739
- "summary": "Save the model new chat sessions start on, as an encoded id such as anthropic:sonnet__medium, or null to let Kosuke choose. Answers 204.",
13870
+ "summary": "Save the model new chat sessions start on, as an encoded id such as anthropic:sonnet__medium, or null to let Kosuke choose, or defaultAuto: true to start them on Auto. Answers 204.",
13740
13871
  "tags": ["user"],
13741
13872
  "x-kosuke-command": ["user", "subscriptions", "set-default-model"],
13742
13873
  "requestBody": {
@@ -13748,9 +13879,12 @@
13748
13879
  "properties": {
13749
13880
  "defaultModel": {
13750
13881
  "type": ["string", "null"]
13882
+ },
13883
+ "defaultAuto": {
13884
+ "description": "True makes Auto your Default Model; defaultModel stays as it is unless sent.",
13885
+ "type": "boolean"
13751
13886
  }
13752
- },
13753
- "required": ["defaultModel"]
13887
+ }
13754
13888
  }
13755
13889
  }
13756
13890
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/cli",
3
- "version": "6.6.0",
3
+ "version": "6.8.0",
4
4
  "description": "Kosuke platform CLI. The client customers install to drive app.kosuke.ai from their own machine.",
5
5
  "license": "MIT",
6
6
  "repository": {