@kosuke-ai/kosuke 1.0.39 → 1.0.40

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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.40
4
+
5
+ - `kosuke projects batch-merging set --mode train|batch|off` switches the Merge agent's mode, `off` meaning Kosuke merges nothing; `get` reports the mode.
6
+
3
7
  ## 1.0.39
4
8
 
5
9
  - Sensei cards' QA reports take a status (passed, failed, blocked, skipped or running) and a reason.
@@ -6,7 +6,7 @@ export const operation = {
6
6
  "batch-merging",
7
7
  "get"
8
8
  ],
9
- "summary": "Read the Merge agent's mode (true: Batch merging, false: the merge train), how many go-ahead pull requests wait, and the run open now.",
9
+ "summary": "Read the Merge agent's mode (train: the merge train, batch: Batch merging, off: Kosuke merges nothing and members merge themselves; enabled is true for batch), how many go-ahead pull requests wait, and the run open now.",
10
10
  "pathParams": [
11
11
  "projectId"
12
12
  ],
@@ -6,19 +6,31 @@ export const operation = {
6
6
  "batch-merging",
7
7
  "set"
8
8
  ],
9
- "summary": "Switch the Merge agent's mode. On: Batch merging, a batch agent combines go-ahead pull requests into one Batch pull request, reviews and QAs it, then an admin approves it. Off: the merge train merges them one at a time. Batches run as the member who turned it on. The next go-ahead starts a run in the new mode.",
9
+ "summary": "Switch the Merge agent's 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 a new project starts in: Kosuke 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. Switching to train or batch starts a run for the go-ahead pull requests that wait.",
10
10
  "pathParams": [
11
11
  "projectId"
12
12
  ],
13
13
  "query": [],
14
14
  "body": {
15
15
  "fields": [
16
+ {
17
+ "name": "mode",
18
+ "flag": "mode",
19
+ "kind": "string",
20
+ "required": false,
21
+ "description": "train: the merge train merges go-ahead pull requests one at a time. batch: Batch merging. off: Kosuke merges nothing, members merge their pull requests themselves.",
22
+ "choices": [
23
+ "train",
24
+ "batch",
25
+ "off"
26
+ ]
27
+ },
16
28
  {
17
29
  "name": "enabled",
18
30
  "flag": "enabled",
19
31
  "kind": "boolean",
20
- "required": true,
21
- "description": "True runs Batch merging; false runs the merge train, one pull request at a time."
32
+ "required": false,
33
+ "description": "Older form of mode: true is batch, false is train. Give mode or enabled."
22
34
  }
23
35
  ],
24
36
  "required": true
@@ -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 or batch), 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 and GitHub's review decision now, the Batch the queue is split by (its CI, review, QA, members and ejections), 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 Kosuke's own data only: no GitHub call, and GitHub's facts (each waiting pull request's head and review decision, the Batch pull request's review, the merge queue) are null.",
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 and GitHub's review decision now, the Batch the queue is split by (its CI, review, QA, members and ejections), 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 Kosuke's own data only: no GitHub call, and GitHub's facts (each waiting pull request's head and review decision, the Batch pull request's review, the merge queue) are null.",
10
10
  "pathParams": [
11
11
  "projectId"
12
12
  ],
package/openapi.json CHANGED
@@ -10592,7 +10592,7 @@
10592
10592
  "/api/projects/{projectId}/batch-merging": {
10593
10593
  "get": {
10594
10594
  "operationId": "projectsBatchMergingGet",
10595
- "summary": "Read the Merge agent's mode (true: Batch merging, false: the merge train), how many go-ahead pull requests wait, and the run open now.",
10595
+ "summary": "Read the Merge agent's mode (train: the merge train, batch: Batch merging, off: Kosuke merges nothing and members merge themselves; enabled is true for batch), how many go-ahead pull requests wait, and the run open now.",
10596
10596
  "tags": ["projects"],
10597
10597
  "x-kosuke-command": ["projects", "batch-merging", "get"],
10598
10598
  "x-kosuke-sandbox-token": true,
@@ -10645,7 +10645,7 @@
10645
10645
  },
10646
10646
  "put": {
10647
10647
  "operationId": "projectsBatchMergingSet",
10648
- "summary": "Switch the Merge agent's mode. On: Batch merging, a batch agent combines go-ahead pull requests into one Batch pull request, reviews and QAs it, then an admin approves it. Off: the merge train merges them one at a time. Batches run as the member who turned it on. The next go-ahead starts a run in the new mode.",
10648
+ "summary": "Switch the Merge agent's 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 a new project starts in: Kosuke 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. Switching to train or batch starts a run for the go-ahead pull requests that wait.",
10649
10649
  "tags": ["projects"],
10650
10650
  "x-kosuke-command": ["projects", "batch-merging", "set"],
10651
10651
  "x-kosuke-sandbox-token": true,
@@ -10670,12 +10670,16 @@
10670
10670
  "schema": {
10671
10671
  "type": "object",
10672
10672
  "properties": {
10673
+ "mode": {
10674
+ "description": "train: the merge train merges go-ahead pull requests one at a time. batch: Batch merging. off: Kosuke merges nothing, members merge their pull requests themselves.",
10675
+ "type": "string",
10676
+ "enum": ["train", "batch", "off"]
10677
+ },
10673
10678
  "enabled": {
10674
- "type": "boolean",
10675
- "description": "True runs Batch merging; false runs the merge train, one pull request at a time."
10679
+ "description": "Older form of mode: true is batch, false is train. Give mode or enabled.",
10680
+ "type": "boolean"
10676
10681
  }
10677
- },
10678
- "required": ["enabled"]
10682
+ }
10679
10683
  }
10680
10684
  }
10681
10685
  }
@@ -17203,7 +17207,7 @@
17203
17207
  "/api/projects/{projectId}/merge-agent": {
17204
17208
  "get": {
17205
17209
  "operationId": "projectsMergeAgentGet",
17206
- "summary": "Read the project's Merge agent: its mode (train or batch), 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 and GitHub's review decision now, the Batch the queue is split by (its CI, review, QA, members and ejections), 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 Kosuke's own data only: no GitHub call, and GitHub's facts (each waiting pull request's head and review decision, the Batch pull request's review, the merge queue) are null.",
17210
+ "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 and GitHub's review decision now, the Batch the queue is split by (its CI, review, QA, members and ejections), 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 Kosuke's own data only: no GitHub call, and GitHub's facts (each waiting pull request's head and review decision, the Batch pull request's review, the merge queue) are null.",
17207
17211
  "tags": ["projects"],
17208
17212
  "x-kosuke-command": ["projects", "merge-agent", "get"],
17209
17213
  "x-kosuke-sandbox-token": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/kosuke",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "description": "Kosuke platform CLI. The client customers install to drive app.kosuke.ai from their own machine.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -40,10 +40,10 @@
40
40
  "vitest": "^4.1.12"
41
41
  },
42
42
  "kosukeRelease": {
43
- "sourceCommit": "e7521e8e91ef975c37fcf860a200e527cc2297b1",
44
- "sourceIdentity": "89386b8fc27c2523af6c021efc223147dfc8a511b8406509545619e807d356e9",
43
+ "sourceCommit": "65e08c362387af8e546c813e7520bdb6e5f152a0",
44
+ "sourceIdentity": "7b2373747a437fed1fd16ddcc17917a4d1d9337161dcc26e8c791f9ff1ab6676",
45
45
  "fragments": [
46
- "sensei-qa-report-status-st4.json"
46
+ "merge-agent-off-x2wlh6.json"
47
47
  ]
48
48
  }
49
49
  }