@kosuke-ai/kosuke 1.0.25 → 1.0.27
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 +12 -0
- package/dist/generated/commands/devices/list.js +1 -1
- package/dist/generated/commands/devices/locks-delete.js +1 -1
- package/dist/generated/commands/devices/requests-create.js +2 -2
- package/dist/generated/commands/index.js +201 -207
- package/dist/generated/commands/projects/batch-merging-get.js +1 -1
- package/dist/generated/commands/projects/batch-merging-set.js +2 -2
- package/dist/generated/commands/projects/merge-agent-get.js +19 -0
- package/dist/generated/commands/projects/merge-agent-merge.js +56 -0
- package/dist/generated/commands/projects/merge-agent-sync.js +37 -0
- package/dist/generated/commands/sensei/cards-set.js +21 -3
- package/dist/generated/commands/sensei/memory-set.js +2 -2
- package/dist/generated/commands/sessions/go-ahead-set.js +1 -8
- package/dist/generated/commands/sessions/list--all.js +1 -1
- package/dist/generated/commands/sessions/qa-set.js +1 -1
- package/dist/runtime/aliases.js +0 -3
- package/openapi.json +515 -559
- package/package.json +4 -5
- package/dist/generated/commands/sensei/merge.js +0 -34
- package/dist/generated/commands/sensei/reels-ranks-list.js +0 -18
- package/dist/generated/commands/sensei/review-approvals-create.js +0 -36
- package/dist/generated/commands/sensei/review-requests-create.js +0 -43
- package/dist/generated/commands/sessions/pull-request-mark-ready.js +0 -40
- package/dist/generated/commands/sessions/sync.js +0 -37
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "post",
|
|
3
|
+
"path": "/api/projects/{projectId}/merge-agent/merges",
|
|
4
|
+
"command": [
|
|
5
|
+
"projects",
|
|
6
|
+
"merge-agent",
|
|
7
|
+
"merge"
|
|
8
|
+
],
|
|
9
|
+
"summary": "The open Merge agent run's own session only: merge a pull request into the run's base as the Kosuke GitHub App, or add it to GitHub's merge queue with --queue, only at the head its member gave the go-ahead on and GitHub holds now. Refused for any other head, base or caller.",
|
|
10
|
+
"pathParams": [
|
|
11
|
+
"projectId"
|
|
12
|
+
],
|
|
13
|
+
"query": [],
|
|
14
|
+
"body": {
|
|
15
|
+
"fields": [
|
|
16
|
+
{
|
|
17
|
+
"name": "number",
|
|
18
|
+
"flag": "number",
|
|
19
|
+
"kind": "integer",
|
|
20
|
+
"required": true,
|
|
21
|
+
"description": "The pull request to merge."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "sha",
|
|
25
|
+
"flag": "sha",
|
|
26
|
+
"kind": "string",
|
|
27
|
+
"required": true,
|
|
28
|
+
"description": "The head to merge: the go-ahead head, and the head GitHub holds now."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "method",
|
|
32
|
+
"flag": "method",
|
|
33
|
+
"kind": "string",
|
|
34
|
+
"required": false,
|
|
35
|
+
"description": "How to merge. Defaults to the one the repository and its rules allow.",
|
|
36
|
+
"choices": [
|
|
37
|
+
"squash",
|
|
38
|
+
"merge",
|
|
39
|
+
"rebase"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "queue",
|
|
44
|
+
"flag": "queue",
|
|
45
|
+
"kind": "boolean",
|
|
46
|
+
"required": false,
|
|
47
|
+
"description": "Add it to the base's GitHub merge queue instead of merging it."
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"required": true
|
|
51
|
+
},
|
|
52
|
+
"multipart": null,
|
|
53
|
+
"attachments": false,
|
|
54
|
+
"anonymous": false,
|
|
55
|
+
"agents": "all"
|
|
56
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "post",
|
|
3
|
+
"path": "/api/projects/{projectId}/merge-agent/syncs",
|
|
4
|
+
"command": [
|
|
5
|
+
"projects",
|
|
6
|
+
"merge-agent",
|
|
7
|
+
"sync"
|
|
8
|
+
],
|
|
9
|
+
"summary": "The open Merge agent run's own session only: bring the run's base into an open pull request's branch as the Kosuke GitHub App, as GitHub's Update branch does. A conflict is refused with GitHub's words.",
|
|
10
|
+
"pathParams": [
|
|
11
|
+
"projectId"
|
|
12
|
+
],
|
|
13
|
+
"query": [],
|
|
14
|
+
"body": {
|
|
15
|
+
"fields": [
|
|
16
|
+
{
|
|
17
|
+
"name": "number",
|
|
18
|
+
"flag": "number",
|
|
19
|
+
"kind": "integer",
|
|
20
|
+
"required": true,
|
|
21
|
+
"description": "The pull request whose branch is behind."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "sha",
|
|
25
|
+
"flag": "sha",
|
|
26
|
+
"kind": "string",
|
|
27
|
+
"required": false,
|
|
28
|
+
"description": "Update only while the head is this commit. Defaults to the head GitHub holds now."
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"required": true
|
|
32
|
+
},
|
|
33
|
+
"multipart": null,
|
|
34
|
+
"attachments": false,
|
|
35
|
+
"anonymous": false,
|
|
36
|
+
"agents": "all"
|
|
37
|
+
};
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"cards",
|
|
7
7
|
"set"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Open a card in your Turn's own thread, or update its open card with that key by passing the revision you read. Refused when the card moved, closed or is being sent, when your Turn stopped, when the
|
|
9
|
+
"summary": "Open a card in your Turn's own thread, or update its open card with that key by passing the revision you read. Refused when the card moved, closed or is being sent, when your Turn stopped, when the session now lives in another thread (SESSION_MOVED), or when an id it names is not in the member's reach.",
|
|
10
10
|
"pathParams": [],
|
|
11
11
|
"query": [],
|
|
12
12
|
"body": {
|
|
@@ -40,7 +40,7 @@ export const operation = {
|
|
|
40
40
|
"flag": "open",
|
|
41
41
|
"kind": "json",
|
|
42
42
|
"required": false,
|
|
43
|
-
"description": "The page the primary button opens in place of an instruction, such as the link a teammate's message shares. The verb is the button's label (\"Open\", \"Read\"), and the tap opens the page, closes the card and sends nothing to Sensei. It takes a verb and an outcome, and no instruction, clarification block, Deploy form, action or covers
|
|
43
|
+
"description": "The page the primary button opens in place of an instruction, such as the link a teammate's message shares. The verb is the button's label (\"Open\", \"Read\"), and the tap opens the page, closes the card and sends nothing to Sensei. It takes a verb and an outcome, and no instruction, clarification block, Deploy form, action or covers."
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"name": "verb",
|
|
@@ -48,6 +48,24 @@ export const operation = {
|
|
|
48
48
|
"kind": "string",
|
|
49
49
|
"required": false
|
|
50
50
|
},
|
|
51
|
+
{
|
|
52
|
+
"name": "actions",
|
|
53
|
+
"flag": "actions",
|
|
54
|
+
"kind": "json",
|
|
55
|
+
"required": false,
|
|
56
|
+
"description": "The card's buttons beside Reply and the negative button, 1 to 3 with the verb counted among them: each a label of 24 characters at most, the prompt its tap sends to Sensei in this thread as the member's message, exactly as written and shown under the button, and a tone: primary (the filled button a swipe right taps, one at most, and none beside a verb, which is the primary), default, or destructive."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "urgency",
|
|
60
|
+
"flag": "urgency",
|
|
61
|
+
"kind": "string",
|
|
62
|
+
"required": false,
|
|
63
|
+
"description": "Whether the card notifies the member's devices: now sends a push notification, later waits in its thread with none. Omit it for now.",
|
|
64
|
+
"choices": [
|
|
65
|
+
"now",
|
|
66
|
+
"later"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
51
69
|
{
|
|
52
70
|
"name": "negativeLabel",
|
|
53
71
|
"flag": "negative-label",
|
|
@@ -125,7 +143,7 @@ export const operation = {
|
|
|
125
143
|
"flag": "covers",
|
|
126
144
|
"kind": "json",
|
|
127
145
|
"required": false,
|
|
128
|
-
"description": "The ids of the incoming_message events of this thread that this card answers.
|
|
146
|
+
"description": "The ids of the incoming_message events of this thread that this card answers. Every card an Event Turn writes in a message thread names them: a reply covers the message it answers, a task or calendar card the message in its evidence, an FYI the event of every row, and of each message among this Turn’s events that it only counts. An FYI update keeps unread commitments and the events in its current evidence, discarding processed history; name at most 50 events per write. The open FYI keeps a reference to every message it has covered, which its Mark read marks, and its card read gives their count and the newest. An incoming event no card covers is read again later."
|
|
129
147
|
},
|
|
130
148
|
{
|
|
131
149
|
"name": "stateKey",
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"memory",
|
|
7
7
|
"set"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Save a Memory file at the revision you read.
|
|
9
|
+
"summary": "Save a Memory file at the revision you read. Refused with 409 when it changed since.",
|
|
10
10
|
"pathParams": [],
|
|
11
11
|
"query": [],
|
|
12
12
|
"body": {
|
|
@@ -39,7 +39,7 @@ export const operation = {
|
|
|
39
39
|
"flag": "card-id",
|
|
40
40
|
"kind": "string",
|
|
41
41
|
"required": false,
|
|
42
|
-
"description": "The Memory card
|
|
42
|
+
"description": "The Memory card this write answers, if any. Kosuke reads nothing from it."
|
|
43
43
|
}
|
|
44
44
|
],
|
|
45
45
|
"required": true
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"go-ahead",
|
|
7
7
|
"set"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Give the session's pull request the go-ahead to merge, as the session's member, on one head: goAheadSha, goAheadBy
|
|
9
|
+
"summary": "Give the session's pull request the go-ahead to merge, as the session's member, on one head: goAheadSha, goAheadBy and goAheadAt. The project's Merge agent (the merge train, or Batch merging when it is on) is woken and merges it only at that head. Members and their Sensei only.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"projectId",
|
|
12
12
|
"sessionId"
|
|
@@ -20,13 +20,6 @@ export const operation = {
|
|
|
20
20
|
"kind": "string",
|
|
21
21
|
"required": false,
|
|
22
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
23
|
}
|
|
31
24
|
],
|
|
32
25
|
"required": true
|
|
@@ -8,7 +8,7 @@ export const operation = {
|
|
|
8
8
|
"variant": {
|
|
9
9
|
"scope": "all"
|
|
10
10
|
},
|
|
11
|
-
"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
|
|
11
|
+
"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, the head its open pull request has the go-ahead on; and mergeRule, its Assignee's Merge rule.",
|
|
12
12
|
"pathParams": [],
|
|
13
13
|
"query": [
|
|
14
14
|
{
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"qa",
|
|
7
7
|
"set"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Record the commit QA passed on as the session's qaPassedSha: a member's override
|
|
9
|
+
"summary": "Record the commit QA passed on as the session's qaPassedSha: a member's override, or the session's own agent. `sessions qa runs finish` records it when the whole checklist passed. A pull request is done when qaPassedSha equals its head.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"projectId",
|
|
12
12
|
"sessionId"
|
package/dist/runtime/aliases.js
CHANGED
|
@@ -137,10 +137,7 @@ export const FORMER_COMMANDS = [
|
|
|
137
137
|
operation: 'POST /api/sensei/notifications/{notificationId}/open',
|
|
138
138
|
},
|
|
139
139
|
{ from: 'sensei reels activity', operation: 'GET /api/sensei/reels/activity' },
|
|
140
|
-
{ from: 'sensei reels ranks', operation: 'GET /api/sensei/reels/ranks' },
|
|
141
140
|
{ from: 'sensei repository', operation: 'POST /api/sensei/repository' },
|
|
142
|
-
{ from: 'sensei review approve', operation: 'POST /api/sensei/review/approve' },
|
|
143
|
-
{ from: 'sensei review ask', operation: 'POST /api/sensei/review/ask' },
|
|
144
141
|
{ from: 'sensei review context', operation: 'GET /api/sensei/review/context' },
|
|
145
142
|
{ from: 'sensei sessions assess', operation: 'POST /api/sensei/sessions/assess' },
|
|
146
143
|
{ from: 'sensei sessions facts', operation: 'GET /api/sensei/sessions/facts' },
|