@kosuke-ai/kosuke 1.0.1 → 1.0.3
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/CHANGELOG.md +9 -0
- package/README.md +1 -1
- package/dist/generated/commands/crons/runs-diagnostics.js +4 -1
- package/dist/generated/commands/index.js +248 -240
- package/dist/generated/commands/projects/batch-merging-add-member.js +30 -0
- package/dist/generated/commands/projects/labels-color.js +1 -1
- package/dist/generated/commands/projects/labels-delete.js +1 -1
- package/dist/generated/commands/sensei/merge-rule.js +1 -1
- package/dist/generated/commands/sensei/merge.js +1 -1
- package/dist/generated/commands/sessions/all.js +1 -1
- package/dist/generated/commands/sessions/go-ahead-clear.js +22 -0
- package/dist/generated/commands/sessions/go-ahead-set.js +40 -0
- package/dist/generated/commands/sessions/labels-edit.js +1 -1
- package/dist/generated/commands/sessions/labels-set.js +1 -1
- package/dist/generated/commands/tasks/create.js +46 -0
- package/dist/generated/commands/tasks/move.js +32 -0
- package/dist/generated/commands/tasks/update.js +13 -0
- package/openapi.json +362 -8
- package/package.json +5 -61
|
@@ -5,7 +5,7 @@ export const operation = {
|
|
|
5
5
|
"sensei",
|
|
6
6
|
"merge-rule"
|
|
7
7
|
],
|
|
8
|
-
"summary": "Turn your Merge rule on or off. While it is on,
|
|
8
|
+
"summary": "Turn your Merge rule on or off. While it is on, your Sensei gives the go-ahead to merge each pull request of a Chat Session you are the Assignee of once it is approved and its QA passed. Changed only when you ask. Answers whether it is on now.",
|
|
9
9
|
"pathParams": [],
|
|
10
10
|
"query": [],
|
|
11
11
|
"body": {
|
|
@@ -5,7 +5,7 @@ export const operation = {
|
|
|
5
5
|
"sensei",
|
|
6
6
|
"merge"
|
|
7
7
|
],
|
|
8
|
-
"summary": "Merge the pull request of any Chat Session in a workspace you belong to, as you on GitHub, whenever GitHub allows it: added to GitHub's merge queue where the base has one, updated first where GitHub requires an up-to-date branch, merged otherwise, pinned to the head read. GitHub alone decides: Kosuke adds no hold of its own on approvals, reviews, checks or a working session. Asking is your go-ahead
|
|
8
|
+
"summary": "Merge the pull request of any Chat Session in a workspace you belong to, as you on GitHub, whenever GitHub allows it: added to GitHub's merge queue where the base has one, updated first where GitHub requires an up-to-date branch, merged otherwise, pinned to the head read. GitHub alone decides: Kosuke adds no hold of its own on approvals, reviews, checks or a working session. Asking is your go-ahead, recorded on the session for its member on the head read with Kosuke merging it, so it merges later when GitHub refuses now. A push to another head takes it away. Answers the outcome, the head it decided on and why. Refused with the reason unless you have GitHub connected and the head is still `headSha` when given, and with GitHub's own reason when GitHub refuses the merge.",
|
|
9
9
|
"pathParams": [],
|
|
10
10
|
"query": [],
|
|
11
11
|
"body": {
|
|
@@ -5,7 +5,7 @@ export const operation = {
|
|
|
5
5
|
"sessions",
|
|
6
6
|
"all"
|
|
7
7
|
],
|
|
8
|
-
"summary": "List chat sessions across every workspace you belong to, each with its workspace, project, URL and Needs You reason. q narrows them to titles containing it, ids to the sessions it names. With needsYou, at most 100, most severe first. An agent token reads its own workspace only. Each session carries waitingForDeploy: true while it waits for the Deploy to finish, false once the Deploy ends, before its sandbox starts.",
|
|
8
|
+
"summary": "List chat sessions across every workspace you belong to, each with its workspace, project, URL and Needs You reason. q narrows them to titles containing it, ids to the sessions it names. With needsYou, at most 100, most severe first. An agent token reads its own workspace only. Each session carries waitingForDeploy: true while it waits for the Deploy to finish, false once the Deploy ends, before its sandbox starts; goAheadSha and goAheadMerges, its go-ahead on its open pull request; and mergeRule, its Assignee's Merge rule.",
|
|
9
9
|
"pathParams": [],
|
|
10
10
|
"query": [
|
|
11
11
|
{
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "post",
|
|
3
|
+
"path": "/api/projects/{projectId}/chat-sessions/{sessionId}/go-ahead/clear",
|
|
4
|
+
"command": [
|
|
5
|
+
"sessions",
|
|
6
|
+
"go-ahead",
|
|
7
|
+
"clear"
|
|
8
|
+
],
|
|
9
|
+
"summary": "Take the session's go-ahead away, so neither Kosuke nor a Batch merges its pull request until it is given again. The callers of `sessions go-ahead set`.",
|
|
10
|
+
"pathParams": [
|
|
11
|
+
"projectId",
|
|
12
|
+
"sessionId"
|
|
13
|
+
],
|
|
14
|
+
"query": [],
|
|
15
|
+
"body": null,
|
|
16
|
+
"multipart": null,
|
|
17
|
+
"attachments": false,
|
|
18
|
+
"anonymous": false,
|
|
19
|
+
"agents": [
|
|
20
|
+
"senseiToken"
|
|
21
|
+
]
|
|
22
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "put",
|
|
3
|
+
"path": "/api/projects/{projectId}/chat-sessions/{sessionId}/go-ahead",
|
|
4
|
+
"command": [
|
|
5
|
+
"sessions",
|
|
6
|
+
"go-ahead",
|
|
7
|
+
"set"
|
|
8
|
+
],
|
|
9
|
+
"summary": "Give the session's pull request the go-ahead to merge, as the session's member, on one head: goAheadSha, goAheadBy, goAheadAt and goAheadMerges. A push to another head takes it away. With `merge`, Kosuke merges it on its own; without, it waits for whoever merges it, and Batch Merging is asked to look. Members and their Sensei only.",
|
|
10
|
+
"pathParams": [
|
|
11
|
+
"projectId",
|
|
12
|
+
"sessionId"
|
|
13
|
+
],
|
|
14
|
+
"query": [],
|
|
15
|
+
"body": {
|
|
16
|
+
"fields": [
|
|
17
|
+
{
|
|
18
|
+
"name": "sha",
|
|
19
|
+
"flag": "sha",
|
|
20
|
+
"kind": "string",
|
|
21
|
+
"required": false,
|
|
22
|
+
"description": "The head commit the go-ahead is given on. Defaults to the head the session last read from GitHub."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "merge",
|
|
26
|
+
"flag": "merge",
|
|
27
|
+
"kind": "boolean",
|
|
28
|
+
"required": false,
|
|
29
|
+
"description": "Kosuke merges it on its own, now or once GitHub allows. Without it the pull request is left for whoever merges it, such as the next Batch."
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"required": true
|
|
33
|
+
},
|
|
34
|
+
"multipart": null,
|
|
35
|
+
"attachments": false,
|
|
36
|
+
"anonymous": false,
|
|
37
|
+
"agents": [
|
|
38
|
+
"senseiToken"
|
|
39
|
+
]
|
|
40
|
+
};
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"labels",
|
|
7
7
|
"edit"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Add and remove Session Labels, leaving the session's other labels as they are. color sets the initial project color only for newly created labels in add; existing label colors stay unchanged. A session token nobody stands behind may edit only its own session.
|
|
9
|
+
"summary": "Add and remove Session Labels, leaving the session's other labels as they are. color sets the initial project color only for newly created labels in add; existing label colors stay unchanged. A session token nobody stands behind may edit only its own session. Session Labels stay in Kosuke: none is written to the pull request.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"projectId",
|
|
12
12
|
"sessionId"
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"labels",
|
|
7
7
|
"set"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Replace the session's Session Labels. New names join the project's labels
|
|
9
|
+
"summary": "Replace the session's Session Labels. New names join the project's labels. Session Labels stay in Kosuke: none is written to the pull request.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"projectId",
|
|
12
12
|
"sessionId"
|
|
@@ -113,6 +113,29 @@ export const operation = {
|
|
|
113
113
|
"flag": "hint-project",
|
|
114
114
|
"kind": "string",
|
|
115
115
|
"required": false
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "status",
|
|
119
|
+
"flag": "status",
|
|
120
|
+
"kind": "string",
|
|
121
|
+
"required": false,
|
|
122
|
+
"choices": [
|
|
123
|
+
"todo",
|
|
124
|
+
"in_progress",
|
|
125
|
+
"done"
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "dueOn",
|
|
130
|
+
"flag": "due-on",
|
|
131
|
+
"kind": "string",
|
|
132
|
+
"required": false
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "threadId",
|
|
136
|
+
"flag": "thread-id",
|
|
137
|
+
"kind": "string",
|
|
138
|
+
"required": false
|
|
116
139
|
}
|
|
117
140
|
],
|
|
118
141
|
"required": true
|
|
@@ -219,6 +242,29 @@ export const operation = {
|
|
|
219
242
|
"flag": "hint-project",
|
|
220
243
|
"kind": "string",
|
|
221
244
|
"required": false
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"name": "status",
|
|
248
|
+
"flag": "status",
|
|
249
|
+
"kind": "string",
|
|
250
|
+
"required": false,
|
|
251
|
+
"choices": [
|
|
252
|
+
"todo",
|
|
253
|
+
"in_progress",
|
|
254
|
+
"done"
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "dueOn",
|
|
259
|
+
"flag": "due-on",
|
|
260
|
+
"kind": "string",
|
|
261
|
+
"required": false
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"name": "threadId",
|
|
265
|
+
"flag": "thread-id",
|
|
266
|
+
"kind": "string",
|
|
267
|
+
"required": false
|
|
222
268
|
}
|
|
223
269
|
],
|
|
224
270
|
"attachments": {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "post",
|
|
3
|
+
"path": "/api/organizations/{workspaceId}/tasks/{taskId}/move",
|
|
4
|
+
"command": [
|
|
5
|
+
"tasks",
|
|
6
|
+
"move"
|
|
7
|
+
],
|
|
8
|
+
"summary": "Move a Todo or In progress Personal task into a workspace. Members and Sensei only.",
|
|
9
|
+
"pathParams": [
|
|
10
|
+
"workspaceId",
|
|
11
|
+
"taskId"
|
|
12
|
+
],
|
|
13
|
+
"query": [],
|
|
14
|
+
"body": {
|
|
15
|
+
"fields": [
|
|
16
|
+
{
|
|
17
|
+
"name": "orgId",
|
|
18
|
+
"flag": "org-id",
|
|
19
|
+
"kind": "string",
|
|
20
|
+
"required": true,
|
|
21
|
+
"description": "The target workspace you belong to."
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"required": true
|
|
25
|
+
},
|
|
26
|
+
"multipart": null,
|
|
27
|
+
"attachments": false,
|
|
28
|
+
"anonymous": false,
|
|
29
|
+
"agents": [
|
|
30
|
+
"senseiToken"
|
|
31
|
+
]
|
|
32
|
+
};
|
|
@@ -103,10 +103,23 @@ export const operation = {
|
|
|
103
103
|
"required": false,
|
|
104
104
|
"choices": [
|
|
105
105
|
"todo",
|
|
106
|
+
"in_progress",
|
|
106
107
|
"done",
|
|
107
108
|
"archived"
|
|
108
109
|
]
|
|
109
110
|
},
|
|
111
|
+
{
|
|
112
|
+
"name": "dueOn",
|
|
113
|
+
"flag": "due-on",
|
|
114
|
+
"kind": "string",
|
|
115
|
+
"required": false
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "threadId",
|
|
119
|
+
"flag": "thread-id",
|
|
120
|
+
"kind": "string",
|
|
121
|
+
"required": false
|
|
122
|
+
},
|
|
110
123
|
{
|
|
111
124
|
"name": "description",
|
|
112
125
|
"flag": "description",
|