@kosuke-ai/cli 5.10.1 → 5.12.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/dist/generated/commands/index.js +21 -19
- package/dist/generated/commands/sessions/all.js +11 -0
- package/dist/generated/commands/sessions/create.js +15 -1
- package/dist/generated/commands/workspaces/lead-merge.js +32 -0
- package/dist/generated/commands/workspaces/lead-triage.js +2 -2
- package/openapi.json +98 -20
- package/package.json +1 -1
|
@@ -145,25 +145,26 @@ import { operation as o143 } from './workspaces/integrations-sentry-get.js';
|
|
|
145
145
|
import { operation as o144 } from './workspaces/integrations-sentry-remove.js';
|
|
146
146
|
import { operation as o145 } from './workspaces/integrations-slack-get.js';
|
|
147
147
|
import { operation as o146 } from './workspaces/lead-cards.js';
|
|
148
|
-
import { operation as o147 } from './workspaces/lead-
|
|
149
|
-
import { operation as o148 } from './workspaces/lead-
|
|
150
|
-
import { operation as o149 } from './workspaces/lead-
|
|
151
|
-
import { operation as o150 } from './workspaces/
|
|
152
|
-
import { operation as o151 } from './workspaces/
|
|
153
|
-
import { operation as o152 } from './workspaces/
|
|
154
|
-
import { operation as o153 } from './workspaces/plugins-
|
|
155
|
-
import { operation as o154 } from './workspaces/
|
|
156
|
-
import { operation as o155 } from './workspaces/provider-login-claude-
|
|
157
|
-
import { operation as o156 } from './workspaces/provider-login-
|
|
158
|
-
import { operation as o157 } from './workspaces/provider-login-codex-
|
|
159
|
-
import { operation as o158 } from './workspaces/
|
|
160
|
-
import { operation as o159 } from './workspaces/
|
|
161
|
-
import { operation as o160 } from './workspaces/skills-
|
|
162
|
-
import { operation as o161 } from './workspaces/skills-
|
|
163
|
-
import { operation as o162 } from './workspaces/skills-
|
|
164
|
-
import { operation as o163 } from './workspaces/skills-
|
|
165
|
-
import { operation as o164 } from './workspaces/
|
|
166
|
-
import { operation as o165 } from './workspaces/
|
|
148
|
+
import { operation as o147 } from './workspaces/lead-merge.js';
|
|
149
|
+
import { operation as o148 } from './workspaces/lead-notifications-open.js';
|
|
150
|
+
import { operation as o149 } from './workspaces/lead-proposals-create.js';
|
|
151
|
+
import { operation as o150 } from './workspaces/lead-triage.js';
|
|
152
|
+
import { operation as o151 } from './workspaces/list.js';
|
|
153
|
+
import { operation as o152 } from './workspaces/members.js';
|
|
154
|
+
import { operation as o153 } from './workspaces/plugins-list.js';
|
|
155
|
+
import { operation as o154 } from './workspaces/plugins-update.js';
|
|
156
|
+
import { operation as o155 } from './workspaces/provider-login-claude-complete.js';
|
|
157
|
+
import { operation as o156 } from './workspaces/provider-login-claude-start.js';
|
|
158
|
+
import { operation as o157 } from './workspaces/provider-login-codex-complete.js';
|
|
159
|
+
import { operation as o158 } from './workspaces/provider-login-codex-start.js';
|
|
160
|
+
import { operation as o159 } from './workspaces/sandbox-limit.js';
|
|
161
|
+
import { operation as o160 } from './workspaces/skills-create.js';
|
|
162
|
+
import { operation as o161 } from './workspaces/skills-delete.js';
|
|
163
|
+
import { operation as o162 } from './workspaces/skills-get.js';
|
|
164
|
+
import { operation as o163 } from './workspaces/skills-list.js';
|
|
165
|
+
import { operation as o164 } from './workspaces/skills-update.js';
|
|
166
|
+
import { operation as o165 } from './workspaces/stop-sandboxes.js';
|
|
167
|
+
import { operation as o166 } from './workspaces/usage.js';
|
|
167
168
|
export const operations = [
|
|
168
169
|
o0,
|
|
169
170
|
o1,
|
|
@@ -331,4 +332,5 @@ export const operations = [
|
|
|
331
332
|
o163,
|
|
332
333
|
o164,
|
|
333
334
|
o165,
|
|
335
|
+
o166,
|
|
334
336
|
];
|
|
@@ -64,6 +64,17 @@ export const operation = {
|
|
|
64
64
|
"required": false,
|
|
65
65
|
"description": "Only sessions whose title contains this text, case-insensitive and trimmed. Narrows the count and every page, and Needs You with it."
|
|
66
66
|
},
|
|
67
|
+
{
|
|
68
|
+
"name": "createdBy",
|
|
69
|
+
"flag": "created-by",
|
|
70
|
+
"kind": "string",
|
|
71
|
+
"required": false,
|
|
72
|
+
"description": "'agent' keeps the sessions a chat agent filed; 'member' keeps every other one.",
|
|
73
|
+
"choices": [
|
|
74
|
+
"agent",
|
|
75
|
+
"member"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
67
78
|
{
|
|
68
79
|
"name": "includeArchived",
|
|
69
80
|
"flag": "include-archived",
|
|
@@ -5,7 +5,7 @@ export const operation = {
|
|
|
5
5
|
"sessions",
|
|
6
6
|
"create"
|
|
7
7
|
],
|
|
8
|
-
"summary": "Start a chat session, or file a backlog one with status=backlog. Title or content is required; a backlog session needs content. Attachments ride along as multipart. From a sandbox or a Cron Run, only status=backlog. From a Cron Run, Kosuke files it and is its Assignee, and a model the workspace cannot run falls back to the Cron's: model says which one it will run on.",
|
|
8
|
+
"summary": "Start a chat session, or file a backlog one with status=backlog. Title or content is required; a backlog session needs content. Attachments ride along as multipart. From a sandbox or a Cron Run, only status=backlog, and reason is required: one line on why the ticket exists. From a Cron Run, Kosuke files it and is its Assignee, and a model the workspace cannot run falls back to the Cron's: model says which one it will run on.",
|
|
9
9
|
"pathParams": [
|
|
10
10
|
"projectId"
|
|
11
11
|
],
|
|
@@ -63,6 +63,13 @@ export const operation = {
|
|
|
63
63
|
"flag": "start-branch",
|
|
64
64
|
"kind": "string",
|
|
65
65
|
"required": false
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "reason",
|
|
69
|
+
"flag": "reason",
|
|
70
|
+
"kind": "string",
|
|
71
|
+
"required": false,
|
|
72
|
+
"description": "Why this session is being filed and what turned it up, in one line. Required from a sandbox or a Cron Run, ignored from anyone else."
|
|
66
73
|
}
|
|
67
74
|
],
|
|
68
75
|
"required": true
|
|
@@ -119,6 +126,13 @@ export const operation = {
|
|
|
119
126
|
"flag": "start-branch",
|
|
120
127
|
"kind": "string",
|
|
121
128
|
"required": false
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "reason",
|
|
132
|
+
"flag": "reason",
|
|
133
|
+
"kind": "string",
|
|
134
|
+
"required": false,
|
|
135
|
+
"description": "Why this session is being filed and what turned it up, in one line. Required from a sandbox or a Cron Run, ignored from anyone else."
|
|
122
136
|
}
|
|
123
137
|
],
|
|
124
138
|
"attachments": true,
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "post",
|
|
3
|
+
"path": "/api/organizations/{workspaceId}/lead/merge",
|
|
4
|
+
"command": [
|
|
5
|
+
"workspaces",
|
|
6
|
+
"lead-merge"
|
|
7
|
+
],
|
|
8
|
+
"summary": "Put the pull request of one of your own Chat Sessions in the Merge Queue, as your Merge tap on its Lead Card does. Refused with the reason when the pull request is not approved yet, or when its Merge card is not yours.",
|
|
9
|
+
"pathParams": [
|
|
10
|
+
"workspaceId"
|
|
11
|
+
],
|
|
12
|
+
"query": [],
|
|
13
|
+
"body": {
|
|
14
|
+
"fields": [
|
|
15
|
+
{
|
|
16
|
+
"name": "sessionId",
|
|
17
|
+
"flag": "session-id",
|
|
18
|
+
"kind": "string",
|
|
19
|
+
"required": true,
|
|
20
|
+
"description": "The Chat Session whose pull request to queue."
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"required": true
|
|
24
|
+
},
|
|
25
|
+
"multipart": null,
|
|
26
|
+
"attachments": false,
|
|
27
|
+
"anonymous": false,
|
|
28
|
+
"sandboxToken": false,
|
|
29
|
+
"orchestratorToken": false,
|
|
30
|
+
"cronToken": false,
|
|
31
|
+
"leadToken": true
|
|
32
|
+
};
|
|
@@ -5,7 +5,7 @@ export const operation = {
|
|
|
5
5
|
"workspaces",
|
|
6
6
|
"lead-triage"
|
|
7
7
|
],
|
|
8
|
-
"summary": "Write the triage of your own open Lead Cards in a workspace: their order, one line of why per card, who reviews
|
|
8
|
+
"summary": "Write the triage of your own open Lead Cards in a workspace: their order, one line of why per card, who reviews a ready pull request, one notification, and the Welcome back sentence. Answers what was ranked, whether the notification went out, and every part it refused with the reason.",
|
|
9
9
|
"pathParams": [
|
|
10
10
|
"workspaceId"
|
|
11
11
|
],
|
|
@@ -31,7 +31,7 @@ export const operation = {
|
|
|
31
31
|
"flag": "picks",
|
|
32
32
|
"kind": "json",
|
|
33
33
|
"required": false,
|
|
34
|
-
"description": "Who reviews
|
|
34
|
+
"description": "Who reviews the pull request of a To approve card: every candidate but its author, at most 15. A JSON array."
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"name": "notify",
|
package/openapi.json
CHANGED
|
@@ -322,6 +322,17 @@
|
|
|
322
322
|
"type": "string"
|
|
323
323
|
}
|
|
324
324
|
},
|
|
325
|
+
{
|
|
326
|
+
"name": "createdBy",
|
|
327
|
+
"in": "query",
|
|
328
|
+
"required": false,
|
|
329
|
+
"description": "'agent' keeps the sessions a chat agent filed; 'member' keeps every other one.",
|
|
330
|
+
"schema": {
|
|
331
|
+
"description": "'agent' keeps the sessions a chat agent filed; 'member' keeps every other one.",
|
|
332
|
+
"type": "string",
|
|
333
|
+
"enum": ["agent", "member"]
|
|
334
|
+
}
|
|
335
|
+
},
|
|
325
336
|
{
|
|
326
337
|
"name": "includeArchived",
|
|
327
338
|
"in": "query",
|
|
@@ -2930,6 +2941,77 @@
|
|
|
2930
2941
|
}
|
|
2931
2942
|
}
|
|
2932
2943
|
},
|
|
2944
|
+
"/api/organizations/{workspaceId}/lead/merge": {
|
|
2945
|
+
"post": {
|
|
2946
|
+
"operationId": "workspacesLeadMerge",
|
|
2947
|
+
"summary": "Put the pull request of one of your own Chat Sessions in the Merge Queue, as your Merge tap on its Lead Card does. Refused with the reason when the pull request is not approved yet, or when its Merge card is not yours.",
|
|
2948
|
+
"tags": ["workspaces"],
|
|
2949
|
+
"x-kosuke-command": ["workspaces", "lead-merge"],
|
|
2950
|
+
"x-kosuke-lead-token": true,
|
|
2951
|
+
"parameters": [
|
|
2952
|
+
{
|
|
2953
|
+
"name": "workspaceId",
|
|
2954
|
+
"in": "path",
|
|
2955
|
+
"required": true,
|
|
2956
|
+
"schema": {
|
|
2957
|
+
"type": "string",
|
|
2958
|
+
"minLength": 1
|
|
2959
|
+
}
|
|
2960
|
+
}
|
|
2961
|
+
],
|
|
2962
|
+
"requestBody": {
|
|
2963
|
+
"required": true,
|
|
2964
|
+
"content": {
|
|
2965
|
+
"application/json": {
|
|
2966
|
+
"schema": {
|
|
2967
|
+
"type": "object",
|
|
2968
|
+
"properties": {
|
|
2969
|
+
"sessionId": {
|
|
2970
|
+
"type": "string",
|
|
2971
|
+
"format": "uuid",
|
|
2972
|
+
"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)$",
|
|
2973
|
+
"description": "The Chat Session whose pull request to queue."
|
|
2974
|
+
}
|
|
2975
|
+
},
|
|
2976
|
+
"required": ["sessionId"]
|
|
2977
|
+
}
|
|
2978
|
+
}
|
|
2979
|
+
}
|
|
2980
|
+
},
|
|
2981
|
+
"responses": {
|
|
2982
|
+
"2XX": {
|
|
2983
|
+
"description": "Success envelope",
|
|
2984
|
+
"content": {
|
|
2985
|
+
"application/json": {
|
|
2986
|
+
"schema": {
|
|
2987
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
2988
|
+
}
|
|
2989
|
+
}
|
|
2990
|
+
}
|
|
2991
|
+
},
|
|
2992
|
+
"4XX": {
|
|
2993
|
+
"description": "Error envelope",
|
|
2994
|
+
"content": {
|
|
2995
|
+
"application/json": {
|
|
2996
|
+
"schema": {
|
|
2997
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2998
|
+
}
|
|
2999
|
+
}
|
|
3000
|
+
}
|
|
3001
|
+
},
|
|
3002
|
+
"5XX": {
|
|
3003
|
+
"description": "Error envelope",
|
|
3004
|
+
"content": {
|
|
3005
|
+
"application/json": {
|
|
3006
|
+
"schema": {
|
|
3007
|
+
"$ref": "#/components/schemas/ApiError"
|
|
3008
|
+
}
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
}
|
|
3012
|
+
}
|
|
3013
|
+
}
|
|
3014
|
+
},
|
|
2933
3015
|
"/api/organizations/{workspaceId}/lead/notifications/{notificationId}/open": {
|
|
2934
3016
|
"post": {
|
|
2935
3017
|
"operationId": "workspacesLeadNotificationsOpen",
|
|
@@ -3255,7 +3337,7 @@
|
|
|
3255
3337
|
"/api/organizations/{workspaceId}/lead/triage": {
|
|
3256
3338
|
"post": {
|
|
3257
3339
|
"operationId": "workspacesLeadTriage",
|
|
3258
|
-
"summary": "Write the triage of your own open Lead Cards in a workspace: their order, one line of why per card, who reviews
|
|
3340
|
+
"summary": "Write the triage of your own open Lead Cards in a workspace: their order, one line of why per card, who reviews a ready pull request, one notification, and the Welcome back sentence. Answers what was ranked, whether the notification went out, and every part it refused with the reason.",
|
|
3259
3341
|
"tags": ["workspaces"],
|
|
3260
3342
|
"x-kosuke-command": ["workspaces", "lead-triage"],
|
|
3261
3343
|
"x-kosuke-sandbox-token": true,
|
|
@@ -3312,7 +3394,7 @@
|
|
|
3312
3394
|
}
|
|
3313
3395
|
},
|
|
3314
3396
|
"picks": {
|
|
3315
|
-
"description": "Who reviews
|
|
3397
|
+
"description": "Who reviews the pull request of a To approve card: every candidate but its author, at most 15. A JSON array.",
|
|
3316
3398
|
"maxItems": 50,
|
|
3317
3399
|
"type": "array",
|
|
3318
3400
|
"items": {
|
|
@@ -3324,7 +3406,7 @@
|
|
|
3324
3406
|
"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)$"
|
|
3325
3407
|
},
|
|
3326
3408
|
"reviewers": {
|
|
3327
|
-
"maxItems":
|
|
3409
|
+
"maxItems": 15,
|
|
3328
3410
|
"type": "array",
|
|
3329
3411
|
"items": {
|
|
3330
3412
|
"type": "object",
|
|
@@ -3342,22 +3424,6 @@
|
|
|
3342
3424
|
},
|
|
3343
3425
|
"required": ["id", "why"]
|
|
3344
3426
|
}
|
|
3345
|
-
},
|
|
3346
|
-
"merger": {
|
|
3347
|
-
"type": "object",
|
|
3348
|
-
"properties": {
|
|
3349
|
-
"id": {
|
|
3350
|
-
"type": "string",
|
|
3351
|
-
"minLength": 1,
|
|
3352
|
-
"description": "A member id from the candidates list."
|
|
3353
|
-
},
|
|
3354
|
-
"why": {
|
|
3355
|
-
"type": "string",
|
|
3356
|
-
"minLength": 1,
|
|
3357
|
-
"maxLength": 300
|
|
3358
|
-
}
|
|
3359
|
-
},
|
|
3360
|
-
"required": ["id", "why"]
|
|
3361
3427
|
}
|
|
3362
3428
|
},
|
|
3363
3429
|
"required": ["cardId"]
|
|
@@ -4980,7 +5046,7 @@
|
|
|
4980
5046
|
},
|
|
4981
5047
|
"post": {
|
|
4982
5048
|
"operationId": "sessionsCreate",
|
|
4983
|
-
"summary": "Start a chat session, or file a backlog one with status=backlog. Title or content is required; a backlog session needs content. Attachments ride along as multipart. From a sandbox or a Cron Run, only status=backlog. From a Cron Run, Kosuke files it and is its Assignee, and a model the workspace cannot run falls back to the Cron's: model says which one it will run on.",
|
|
5049
|
+
"summary": "Start a chat session, or file a backlog one with status=backlog. Title or content is required; a backlog session needs content. Attachments ride along as multipart. From a sandbox or a Cron Run, only status=backlog, and reason is required: one line on why the ticket exists. From a Cron Run, Kosuke files it and is its Assignee, and a model the workspace cannot run falls back to the Cron's: model says which one it will run on.",
|
|
4984
5050
|
"tags": ["sessions"],
|
|
4985
5051
|
"x-kosuke-command": ["sessions", "create"],
|
|
4986
5052
|
"x-kosuke-attachments": true,
|
|
@@ -5036,6 +5102,12 @@
|
|
|
5036
5102
|
"type": "string",
|
|
5037
5103
|
"minLength": 1,
|
|
5038
5104
|
"maxLength": 255
|
|
5105
|
+
},
|
|
5106
|
+
"reason": {
|
|
5107
|
+
"description": "Why this session is being filed and what turned it up, in one line. Required from a sandbox or a Cron Run, ignored from anyone else.",
|
|
5108
|
+
"type": "string",
|
|
5109
|
+
"minLength": 1,
|
|
5110
|
+
"maxLength": 200
|
|
5039
5111
|
}
|
|
5040
5112
|
}
|
|
5041
5113
|
}
|
|
@@ -5073,6 +5145,12 @@
|
|
|
5073
5145
|
"type": "string",
|
|
5074
5146
|
"minLength": 1,
|
|
5075
5147
|
"maxLength": 255
|
|
5148
|
+
},
|
|
5149
|
+
"reason": {
|
|
5150
|
+
"description": "Why this session is being filed and what turned it up, in one line. Required from a sandbox or a Cron Run, ignored from anyone else.",
|
|
5151
|
+
"type": "string",
|
|
5152
|
+
"minLength": 1,
|
|
5153
|
+
"maxLength": 200
|
|
5076
5154
|
}
|
|
5077
5155
|
}
|
|
5078
5156
|
}
|