@kosuke-ai/kosuke 1.0.103 → 1.0.105

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.
Files changed (25) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/commands/merge-train-order.js +2 -1
  3. package/dist/generated/commands/index.js +242 -246
  4. package/dist/generated/commands/projects/create.js +0 -1
  5. package/dist/generated/commands/projects/merge-agent-ci-check-fix-start.js +20 -0
  6. package/dist/generated/commands/projects/merge-agent-ci-check-get.js +20 -0
  7. package/dist/generated/commands/projects/merge-agent-finish.js +30 -0
  8. package/dist/generated/commands/projects/merge-agent-get.js +1 -1
  9. package/dist/generated/commands/projects/merge-agent-model-set.js +1 -1
  10. package/dist/generated/commands/projects/merge-agent-runs-list.js +1 -1
  11. package/dist/generated/commands/projects/{batch-merging-set.js → merge-agent-set.js} +4 -12
  12. package/dist/generated/commands/sessions/go-ahead-delete.js +1 -1
  13. package/dist/generated/commands/sessions/go-ahead-set.js +1 -1
  14. package/dist/generated/commands/sessions/list--all.js +1 -1
  15. package/dist/generated/commands/sessions/list.js +1 -1
  16. package/dist/generated/commands/sessions/qa-runs-finish.js +0 -21
  17. package/dist/generated/commands/sessions/send.js +1 -1
  18. package/dist/generated/commands/sessions/steer.js +1 -1
  19. package/openapi.json +272 -477
  20. package/package.json +4 -4
  21. package/dist/generated/commands/projects/batch-merging-finish.js +0 -30
  22. package/dist/generated/commands/projects/batch-merging-get.js +0 -19
  23. package/dist/generated/commands/projects/batch-merging-members-create.js +0 -31
  24. package/dist/generated/commands/projects/batch-merging-members-delete.js +0 -45
  25. package/dist/generated/commands/projects/batch-merging-picks-set.js +0 -32
@@ -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, batch, 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 next run with their QA, recorded head, stored review decision and state word (merged, ejected, in-batch, waiting, failed or ready, the one the Tasks board shows), the Batch the queue is split by (its CI, review, QA, members and ejections, each with its state word), 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 (what the Batch pull request still needs, the merge queue) are null.",
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 (train or Batch) 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.",
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, Batches and train runs, newest first, a page at a time: each one's number, mode, session id (for `kosuke sessions get`), pull request, state, finish reason and dates. Pass nextCursor back as cursor for the older runs. The runs' sessions stay out of the session lists.",
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}/batch-merging",
3
+ "path": "/api/projects/{projectId}/merge-agent",
4
4
  "command": [
5
5
  "projects",
6
- "batch-merging",
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 batch: Batch merging, a batch agent combines go-ahead pull requests into one Batch pull request, reviews and QAs it, then an admin approves it. train: the merge train merges them one at a time. off, the mode an imported repository starts in: the platform merges, enqueues and batches nothing; members merge their pull requests themselves, and a run already open finishes what it carries. Batches run as the member who turned Batch merging on. 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 or batch starts a run for the go-ahead pull requests that wait.",
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. batch: Batch merging. off: the platform merges nothing, members merge their pull requests themselves.",
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 neither the Merge agent nor a Batch merges its pull request until it is given again. The callers of `sessions go-ahead set`.",
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, or Batch merging when it is on) is woken and merges it only at that head. Members and their Sensei only.",
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 (Batches and Merge train runs), which only its panel lists by default."
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 (Batches and Merge train runs), which only its panel lists by default."
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 Batch merging, or on the merge train and the pull request has the go-ahead, unless a member started the Turn: the merge agent syncs those.",
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 Batch merging, or on the merge train and the pull request has the go-ahead, unless a member started the Turn: the merge agent syncs those.",
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"