@kosuke-ai/kosuke 1.0.102 → 1.0.104
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 +11 -0
- package/dist/agent/summary.js +13 -3
- package/dist/commands/merge-train-order.js +2 -1
- package/dist/generated/commands/index.js +242 -246
- package/dist/generated/commands/projects/create.js +0 -1
- package/dist/generated/commands/projects/merge-agent-ci-check-fix-start.js +20 -0
- package/dist/generated/commands/projects/merge-agent-ci-check-get.js +20 -0
- package/dist/generated/commands/projects/merge-agent-finish.js +30 -0
- package/dist/generated/commands/projects/merge-agent-get.js +1 -1
- package/dist/generated/commands/projects/merge-agent-model-set.js +1 -1
- package/dist/generated/commands/projects/merge-agent-runs-list.js +1 -1
- package/dist/generated/commands/projects/{batch-merging-set.js → merge-agent-set.js} +4 -12
- package/dist/generated/commands/sessions/go-ahead-delete.js +1 -1
- package/dist/generated/commands/sessions/go-ahead-set.js +1 -1
- package/dist/generated/commands/sessions/list--all.js +1 -1
- package/dist/generated/commands/sessions/list.js +1 -1
- package/dist/generated/commands/sessions/qa-runs-finish.js +0 -21
- package/dist/generated/commands/sessions/send.js +1 -1
- package/dist/generated/commands/sessions/steer.js +1 -1
- package/openapi.json +272 -477
- package/package.json +7 -4
- package/dist/generated/commands/projects/batch-merging-finish.js +0 -30
- package/dist/generated/commands/projects/batch-merging-get.js +0 -19
- package/dist/generated/commands/projects/batch-merging-members-create.js +0 -31
- package/dist/generated/commands/projects/batch-merging-members-delete.js +0 -45
- package/dist/generated/commands/projects/batch-merging-picks-set.js +0 -32
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "post",
|
|
3
|
+
"path": "/api/projects/{projectId}/merge-agent/ci-check/fix",
|
|
4
|
+
"command": [
|
|
5
|
+
"projects",
|
|
6
|
+
"merge-agent",
|
|
7
|
+
"ci-check",
|
|
8
|
+
"fix",
|
|
9
|
+
"start"
|
|
10
|
+
],
|
|
11
|
+
"summary": "Start the Fix of the Merge agent's CI check, for a GitHub Actions repository whose pull request CI tests GitHub's merge with the base: files and starts a session in the project with --skill ship that opens one pull request setting every pull_request checkout step to the pull request's own commit. Workspace owners and admins only, in the app or with their own API key: no agent token reaches it. Refused (409) unless the stored check is blocking on GitHub Actions with no fix working or open; two requests at once start one. A start that is refused archives the filed session and answers the refusal's status and code, with nothing changed. Answers the CI check as projects merge-agent ci-check get reads it, its fix working.",
|
|
12
|
+
"pathParams": [
|
|
13
|
+
"projectId"
|
|
14
|
+
],
|
|
15
|
+
"query": [],
|
|
16
|
+
"body": null,
|
|
17
|
+
"multipart": null,
|
|
18
|
+
"attachments": false,
|
|
19
|
+
"anonymous": false
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "get",
|
|
3
|
+
"path": "/api/projects/{projectId}/merge-agent/ci-check",
|
|
4
|
+
"command": [
|
|
5
|
+
"projects",
|
|
6
|
+
"merge-agent",
|
|
7
|
+
"ci-check",
|
|
8
|
+
"get"
|
|
9
|
+
],
|
|
10
|
+
"summary": "Read the Merge agent's CI check: whether the repository's pull request CI tests GitHub's merge of each pull request with the base while the base requires its checks, so a red base fails every pull request and GitHub refuses every merge. Kosuke reads the required checks and the CI files (GitHub Actions, CircleCI, Buildkite, Jenkins) once an hour, when the Merge agent is turned on and when a fix pull request merges; this read makes no GitHub call. row is null while the Merge agent is off, before the first read, when nothing blocks merges and when the CI could not be read. A blocking row names the service, base, repository, the required checks it feeds, the one change (detail) and, for GitHub Actions, where its Fix stands (fix: idle, working, or open with its pull request). A fixed row shows the fix pull request for a day after it merged. canFix: the reader is a workspace owner or admin.",
|
|
11
|
+
"pathParams": [
|
|
12
|
+
"projectId"
|
|
13
|
+
],
|
|
14
|
+
"query": [],
|
|
15
|
+
"body": null,
|
|
16
|
+
"multipart": null,
|
|
17
|
+
"attachments": false,
|
|
18
|
+
"anonymous": false,
|
|
19
|
+
"agents": "all"
|
|
20
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "post",
|
|
3
|
+
"path": "/api/projects/{projectId}/merge-agent/finish",
|
|
4
|
+
"command": [
|
|
5
|
+
"projects",
|
|
6
|
+
"merge-agent",
|
|
7
|
+
"finish"
|
|
8
|
+
],
|
|
9
|
+
"summary": "The open merge train run's own session only: end the run once nothing waits, neither waiting nor in progress, with what it merged. Its saved merge order stops showing on the tasks' boards, and the next go-ahead starts a new run.",
|
|
10
|
+
"pathParams": [
|
|
11
|
+
"projectId"
|
|
12
|
+
],
|
|
13
|
+
"query": [],
|
|
14
|
+
"body": {
|
|
15
|
+
"fields": [
|
|
16
|
+
{
|
|
17
|
+
"name": "reason",
|
|
18
|
+
"flag": "reason",
|
|
19
|
+
"kind": "string",
|
|
20
|
+
"required": true,
|
|
21
|
+
"description": "What this run merged, or why it ends with nothing waiting."
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"required": true
|
|
25
|
+
},
|
|
26
|
+
"multipart": null,
|
|
27
|
+
"attachments": false,
|
|
28
|
+
"anonymous": false,
|
|
29
|
+
"agents": "all"
|
|
30
|
+
};
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"merge-agent",
|
|
7
7
|
"get"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Read the project's Merge agent: its mode (train,
|
|
9
|
+
"summary": "Read the project's Merge agent: its mode (train, or off, where a new project starts), the base and whether it has GitHub's merge queue, the model the next run starts on (null: the Default Model), the go-ahead pull requests waiting for the merge train with their QA, recorded head, stored review decision and state word (merged, waiting, failed or ready, the one the Tasks board shows), the merge train's order as its open run saved it (trainOrder: each waiting pull request's place, group and reason, else null), and the open run and the last ten earlier runs, each with the model and effort its session runs on. `kosuke projects merge-agent runs list` lists every run. --live false reads Sensei's own data only: no GitHub call, and GitHub's facts (the merge queue) are null.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"projectId"
|
|
12
12
|
],
|
|
@@ -7,7 +7,7 @@ export const operation = {
|
|
|
7
7
|
"model",
|
|
8
8
|
"set"
|
|
9
9
|
],
|
|
10
|
-
"summary": "Pick the Merge agent's model, as an encoded id such as anthropic:opus__high, or default for the Default Model: the open run
|
|
10
|
+
"summary": "Pick the Merge agent's model, as an encoded id such as anthropic:opus__high, or default for the Default Model: the open run switches to it from its next turn, and the next run starts on it. The answer's run says whether the open run took it, and why not.",
|
|
11
11
|
"pathParams": [
|
|
12
12
|
"projectId"
|
|
13
13
|
],
|
|
@@ -7,7 +7,7 @@ export const operation = {
|
|
|
7
7
|
"runs",
|
|
8
8
|
"list"
|
|
9
9
|
],
|
|
10
|
-
"summary": "List every Merge agent run of the project,
|
|
10
|
+
"summary": "List every Merge agent run of the project, newest first, a page at a time: each one's number, mode (always train), session id (for `kosuke sessions get`), state, finish reason and dates. Pass nextCursor back as cursor for the older runs. The runs' sessions stay out of the session lists.",
|
|
11
11
|
"pathParams": [
|
|
12
12
|
"projectId"
|
|
13
13
|
],
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export const operation = {
|
|
2
2
|
"method": "put",
|
|
3
|
-
"path": "/api/projects/{projectId}/
|
|
3
|
+
"path": "/api/projects/{projectId}/merge-agent",
|
|
4
4
|
"command": [
|
|
5
5
|
"projects",
|
|
6
|
-
"
|
|
6
|
+
"merge-agent",
|
|
7
7
|
"set"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Switch the Merge agent's mode, its Go-ahead, or Wait for QA; give any of them, and the others stay. mode
|
|
9
|
+
"summary": "Switch the Merge agent's mode, its Go-ahead, or Wait for QA; give any of them, and the others stay. mode train: the merge train merges go-ahead pull requests one at a time. off, the mode an imported repository starts in: the platform merges and enqueues nothing; members merge their pull requests themselves, and a run already open finishes what it carries. goAhead, under the merge train: member, a member gives each pull request the go-ahead (QA must pass too); checks, a pull request a platform agent works on whose required checks pass on its latest commit has the go-ahead with nobody giving it, and waitForQa true makes it wait for QA to pass there too. Leaving train with checks takes back every go-ahead the checks gave. Switching to train starts a run for the go-ahead pull requests that wait.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"projectId"
|
|
12
12
|
],
|
|
@@ -18,20 +18,12 @@ export const operation = {
|
|
|
18
18
|
"flag": "mode",
|
|
19
19
|
"kind": "string",
|
|
20
20
|
"required": false,
|
|
21
|
-
"description": "train: the merge train merges go-ahead pull requests one at a time.
|
|
21
|
+
"description": "train: the merge train merges go-ahead pull requests one at a time. off: the platform merges nothing, members merge their pull requests themselves.",
|
|
22
22
|
"choices": [
|
|
23
23
|
"train",
|
|
24
|
-
"batch",
|
|
25
24
|
"off"
|
|
26
25
|
]
|
|
27
26
|
},
|
|
28
|
-
{
|
|
29
|
-
"name": "enabled",
|
|
30
|
-
"flag": "enabled",
|
|
31
|
-
"kind": "boolean",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "Older form of mode, still accepted: true is batch, false is train, never off. Give mode or enabled. Reads return mode alone."
|
|
34
|
-
},
|
|
35
27
|
{
|
|
36
28
|
"name": "goAhead",
|
|
37
29
|
"flag": "go-ahead",
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"go-ahead",
|
|
7
7
|
"delete"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Take the session's go-ahead away, so
|
|
9
|
+
"summary": "Take the session's go-ahead away, so the Merge agent does not merge its pull request until it is given again. The callers of `sessions go-ahead set`.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"projectId",
|
|
12
12
|
"sessionId"
|
|
@@ -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 and goAheadAt. A draft pull request is first marked ready for review on GitHub as the member; when GitHub refuses, nothing is saved (503). The project's Merge agent (the merge train,
|
|
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. A draft pull request is first marked ready for review on GitHub as the member; when GitHub refuses, nothing is saved (503). The project's Merge agent (the merge train, 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"
|
|
@@ -33,7 +33,7 @@ export const operation = {
|
|
|
33
33
|
"flag": "include-merge-agent-runs",
|
|
34
34
|
"kind": "boolean",
|
|
35
35
|
"required": false,
|
|
36
|
-
"description": "Keep the Merge agent's run sessions (
|
|
36
|
+
"description": "Keep the Merge agent's run sessions (Merge train runs), which only its panel lists by default."
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"name": "completedSince",
|
|
@@ -126,7 +126,7 @@ export const operation = {
|
|
|
126
126
|
"flag": "include-merge-agent-runs",
|
|
127
127
|
"kind": "boolean",
|
|
128
128
|
"required": false,
|
|
129
|
-
"description": "Keep the Merge agent's run sessions (
|
|
129
|
+
"description": "Keep the Merge agent's run sessions (Merge train runs), which only its panel lists by default."
|
|
130
130
|
}
|
|
131
131
|
],
|
|
132
132
|
"body": null,
|
|
@@ -40,27 +40,6 @@ export const operation = {
|
|
|
40
40
|
"description": "The run's Delegated Run usage: `--usage-file <path>`.",
|
|
41
41
|
"file": true,
|
|
42
42
|
"shape": "{final?: boolean, collectedAt: string, runs: {[key: string]: unknown}[] (max 500)}"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"name": "acceptBlocked",
|
|
46
|
-
"flag": "accept-blocked",
|
|
47
|
-
"kind": "string",
|
|
48
|
-
"required": false,
|
|
49
|
-
"description": "The running Batch's session only: the BLOCKED item ids it accepts, comma separated."
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"name": "acceptFailed",
|
|
53
|
-
"flag": "accept-failed",
|
|
54
|
-
"kind": "string",
|
|
55
|
-
"required": false,
|
|
56
|
-
"description": "The running Batch's session only: the minor FAILED item ids it accepts, comma separated."
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "why",
|
|
60
|
-
"flag": "why",
|
|
61
|
-
"kind": "string",
|
|
62
|
-
"required": false,
|
|
63
|
-
"description": "With --accept-blocked or --accept-failed: one line on why those items may merge."
|
|
64
43
|
}
|
|
65
44
|
],
|
|
66
45
|
"required": true
|
|
@@ -5,7 +5,7 @@ export const operation = {
|
|
|
5
5
|
"sessions",
|
|
6
6
|
"send"
|
|
7
7
|
],
|
|
8
|
-
"summary": "Send a message: starts a turn, or waits Up next while one is running. To steer the running turn with it, steer the Queued Message it becomes. Attachments ride along as multipart. Use it over steer only for attachments, a message that runs a skill, or text over 10,000 characters. From Sensei, /kosuke:sync-branch is refused with 409 SYNC_OWNED_BY_MERGE_AGENT when the project is on
|
|
8
|
+
"summary": "Send a message: starts a turn, or waits Up next while one is running. To steer the running turn with it, steer the Queued Message it becomes. Attachments ride along as multipart. Use it over steer only for attachments, a message that runs a skill, or text over 10,000 characters. From Sensei, /kosuke:sync-branch is refused with 409 SYNC_OWNED_BY_MERGE_AGENT when the project is on the merge train and the pull request has the go-ahead, unless a member started the Turn: the merge agent syncs those.",
|
|
9
9
|
"pathParams": [
|
|
10
10
|
"projectId",
|
|
11
11
|
"sessionId"
|
|
@@ -5,7 +5,7 @@ export const operation = {
|
|
|
5
5
|
"sessions",
|
|
6
6
|
"steer"
|
|
7
7
|
],
|
|
8
|
-
"summary": "Send a message and steer it into your running turn. Answers delivery steer, queued (the turn could not take it), job (no turn was running) or refused (the turn was stopped). Use it for plain text up to 10,000 characters; on queued or refused, say where the message is. From Sensei, /kosuke:sync-branch is refused with 409 SYNC_OWNED_BY_MERGE_AGENT when the project is on
|
|
8
|
+
"summary": "Send a message and steer it into your running turn. Answers delivery steer, queued (the turn could not take it), job (no turn was running) or refused (the turn was stopped). Use it for plain text up to 10,000 characters; on queued or refused, say where the message is. From Sensei, /kosuke:sync-branch is refused with 409 SYNC_OWNED_BY_MERGE_AGENT when the project is on the merge train and the pull request has the go-ahead, unless a member started the Turn: the merge agent syncs those.",
|
|
9
9
|
"pathParams": [
|
|
10
10
|
"projectId",
|
|
11
11
|
"sessionId"
|