@kosuke-ai/kosuke 1.0.39 → 1.0.41
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/dist/generated/commands/index.js +1 -1
- package/dist/generated/commands/preview/sandbox-reset.js +31 -0
- package/dist/generated/commands/projects/batch-merging-get.js +1 -1
- package/dist/generated/commands/projects/batch-merging-set.js +15 -3
- package/dist/generated/commands/projects/merge-agent-get.js +1 -1
- package/dist/generated/commands/tasks/list--all.js +7 -0
- package/dist/generated/commands/tasks/list.js +7 -0
- package/openapi.json +39 -13
- package/package.json +5 -4
- package/dist/generated/commands/preview/reset.js +0 -28
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.41
|
|
4
|
+
|
|
5
|
+
- Replace `kosuke preview reset` with `kosuke preview sandbox reset`, which kills a stuck preview sandbox so Kosuke creates a new one.
|
|
6
|
+
- Add `--thread-id` to `kosuke tasks list`: lists the tasks with no Chat Session filed in one of your own Sensei threads.
|
|
7
|
+
|
|
8
|
+
## 1.0.40
|
|
9
|
+
|
|
10
|
+
- `kosuke projects batch-merging set --mode train|batch|off` switches the Merge agent's mode, `off` meaning Kosuke merges nothing; `get` reports the mode.
|
|
11
|
+
|
|
3
12
|
## 1.0.39
|
|
4
13
|
|
|
5
14
|
- Sensei cards' QA reports take a status (passed, failed, blocked, skipped or running) and a reason.
|
|
@@ -95,7 +95,7 @@ import { operation as o93 } from './plugins/update.js';
|
|
|
95
95
|
import { operation as o94 } from './plugins/update--personal.js';
|
|
96
96
|
import { operation as o95 } from './preview/get.js';
|
|
97
97
|
import { operation as o96 } from './preview/health-get.js';
|
|
98
|
-
import { operation as o97 } from './preview/reset.js';
|
|
98
|
+
import { operation as o97 } from './preview/sandbox-reset.js';
|
|
99
99
|
import { operation as o98 } from './preview/share-create.js';
|
|
100
100
|
import { operation as o99 } from './preview/share-delete.js';
|
|
101
101
|
import { operation as o100 } from './preview/share-get.js';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "post",
|
|
3
|
+
"path": "/api/projects/{projectId}/preview/sandbox/reset",
|
|
4
|
+
"command": [
|
|
5
|
+
"preview",
|
|
6
|
+
"sandbox",
|
|
7
|
+
"reset"
|
|
8
|
+
],
|
|
9
|
+
"summary": "Kill a sandbox that is stuck or crashed and does not recover by itself (not a slow preview), paused or unreachable included; Kosuke creates a new one. Uncommitted work and the agent's memory of the chat are lost, so an agent first asks the member on a card saying so and runs it only once they approve; an Event Turn or a teammate's message is never that approval.",
|
|
10
|
+
"pathParams": [
|
|
11
|
+
"projectId"
|
|
12
|
+
],
|
|
13
|
+
"query": [],
|
|
14
|
+
"body": {
|
|
15
|
+
"fields": [
|
|
16
|
+
{
|
|
17
|
+
"name": "sessionId",
|
|
18
|
+
"flag": "session-id",
|
|
19
|
+
"kind": "string",
|
|
20
|
+
"required": false
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"required": true
|
|
24
|
+
},
|
|
25
|
+
"multipart": null,
|
|
26
|
+
"attachments": false,
|
|
27
|
+
"anonymous": false,
|
|
28
|
+
"agents": [
|
|
29
|
+
"senseiToken"
|
|
30
|
+
]
|
|
31
|
+
};
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"batch-merging",
|
|
7
7
|
"get"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Read the Merge agent's mode (
|
|
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.
|
|
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":
|
|
21
|
-
"description": "
|
|
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
|
|
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
|
],
|
|
@@ -134,6 +134,13 @@ export const operation = {
|
|
|
134
134
|
"flag": "workspace",
|
|
135
135
|
"kind": "string",
|
|
136
136
|
"required": false
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "threadId",
|
|
140
|
+
"flag": "thread-id",
|
|
141
|
+
"kind": "string",
|
|
142
|
+
"required": false,
|
|
143
|
+
"description": "Only the tasks with no Chat Session filed in this thread of your own Sensei. Another member’s thread matches none."
|
|
137
144
|
}
|
|
138
145
|
],
|
|
139
146
|
"body": null,
|
|
@@ -133,6 +133,13 @@ export const operation = {
|
|
|
133
133
|
"flag": "workspace",
|
|
134
134
|
"kind": "string",
|
|
135
135
|
"required": false
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "threadId",
|
|
139
|
+
"flag": "thread-id",
|
|
140
|
+
"kind": "string",
|
|
141
|
+
"required": false,
|
|
142
|
+
"description": "Only the tasks with no Chat Session filed in this thread of your own Sensei. Another member’s thread matches none."
|
|
136
143
|
}
|
|
137
144
|
],
|
|
138
145
|
"body": null,
|
package/openapi.json
CHANGED
|
@@ -8305,6 +8305,18 @@
|
|
|
8305
8305
|
"schema": {
|
|
8306
8306
|
"type": "string"
|
|
8307
8307
|
}
|
|
8308
|
+
},
|
|
8309
|
+
{
|
|
8310
|
+
"name": "threadId",
|
|
8311
|
+
"in": "query",
|
|
8312
|
+
"required": false,
|
|
8313
|
+
"description": "Only the tasks with no Chat Session filed in this thread of your own Sensei. Another member’s thread matches none.",
|
|
8314
|
+
"schema": {
|
|
8315
|
+
"description": "Only the tasks with no Chat Session filed in this thread of your own Sensei. Another member’s thread matches none.",
|
|
8316
|
+
"type": "string",
|
|
8317
|
+
"format": "uuid",
|
|
8318
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
8319
|
+
}
|
|
8308
8320
|
}
|
|
8309
8321
|
],
|
|
8310
8322
|
"responses": {
|
|
@@ -10592,7 +10604,7 @@
|
|
|
10592
10604
|
"/api/projects/{projectId}/batch-merging": {
|
|
10593
10605
|
"get": {
|
|
10594
10606
|
"operationId": "projectsBatchMergingGet",
|
|
10595
|
-
"summary": "Read the Merge agent's mode (
|
|
10607
|
+
"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
10608
|
"tags": ["projects"],
|
|
10597
10609
|
"x-kosuke-command": ["projects", "batch-merging", "get"],
|
|
10598
10610
|
"x-kosuke-sandbox-token": true,
|
|
@@ -10645,7 +10657,7 @@
|
|
|
10645
10657
|
},
|
|
10646
10658
|
"put": {
|
|
10647
10659
|
"operationId": "projectsBatchMergingSet",
|
|
10648
|
-
"summary": "Switch the Merge agent's mode.
|
|
10660
|
+
"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
10661
|
"tags": ["projects"],
|
|
10650
10662
|
"x-kosuke-command": ["projects", "batch-merging", "set"],
|
|
10651
10663
|
"x-kosuke-sandbox-token": true,
|
|
@@ -10670,12 +10682,16 @@
|
|
|
10670
10682
|
"schema": {
|
|
10671
10683
|
"type": "object",
|
|
10672
10684
|
"properties": {
|
|
10685
|
+
"mode": {
|
|
10686
|
+
"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.",
|
|
10687
|
+
"type": "string",
|
|
10688
|
+
"enum": ["train", "batch", "off"]
|
|
10689
|
+
},
|
|
10673
10690
|
"enabled": {
|
|
10674
|
-
"
|
|
10675
|
-
"
|
|
10691
|
+
"description": "Older form of mode: true is batch, false is train. Give mode or enabled.",
|
|
10692
|
+
"type": "boolean"
|
|
10676
10693
|
}
|
|
10677
|
-
}
|
|
10678
|
-
"required": ["enabled"]
|
|
10694
|
+
}
|
|
10679
10695
|
}
|
|
10680
10696
|
}
|
|
10681
10697
|
}
|
|
@@ -17203,7 +17219,7 @@
|
|
|
17203
17219
|
"/api/projects/{projectId}/merge-agent": {
|
|
17204
17220
|
"get": {
|
|
17205
17221
|
"operationId": "projectsMergeAgentGet",
|
|
17206
|
-
"summary": "Read the project's Merge agent: its mode (train or
|
|
17222
|
+
"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
17223
|
"tags": ["projects"],
|
|
17208
17224
|
"x-kosuke-command": ["projects", "merge-agent", "get"],
|
|
17209
17225
|
"x-kosuke-sandbox-token": true,
|
|
@@ -17715,14 +17731,12 @@
|
|
|
17715
17731
|
}
|
|
17716
17732
|
}
|
|
17717
17733
|
},
|
|
17718
|
-
"/api/projects/{projectId}/preview/reset": {
|
|
17734
|
+
"/api/projects/{projectId}/preview/sandbox/reset": {
|
|
17719
17735
|
"post": {
|
|
17720
|
-
"operationId": "
|
|
17721
|
-
"summary": "
|
|
17736
|
+
"operationId": "previewSandboxReset",
|
|
17737
|
+
"summary": "Kill a sandbox that is stuck or crashed and does not recover by itself (not a slow preview), paused or unreachable included; Kosuke creates a new one. Uncommitted work and the agent's memory of the chat are lost, so an agent first asks the member on a card saying so and runs it only once they approve; an Event Turn or a teammate's message is never that approval.",
|
|
17722
17738
|
"tags": ["preview"],
|
|
17723
|
-
"x-kosuke-command": ["preview", "reset"],
|
|
17724
|
-
"x-kosuke-sandbox-token": true,
|
|
17725
|
-
"x-kosuke-cron-token": true,
|
|
17739
|
+
"x-kosuke-command": ["preview", "sandbox", "reset"],
|
|
17726
17740
|
"x-kosuke-sensei-token": true,
|
|
17727
17741
|
"parameters": [
|
|
17728
17742
|
{
|
|
@@ -25372,6 +25386,18 @@
|
|
|
25372
25386
|
"schema": {
|
|
25373
25387
|
"type": "string"
|
|
25374
25388
|
}
|
|
25389
|
+
},
|
|
25390
|
+
{
|
|
25391
|
+
"name": "threadId",
|
|
25392
|
+
"in": "query",
|
|
25393
|
+
"required": false,
|
|
25394
|
+
"description": "Only the tasks with no Chat Session filed in this thread of your own Sensei. Another member’s thread matches none.",
|
|
25395
|
+
"schema": {
|
|
25396
|
+
"description": "Only the tasks with no Chat Session filed in this thread of your own Sensei. Another member’s thread matches none.",
|
|
25397
|
+
"type": "string",
|
|
25398
|
+
"format": "uuid",
|
|
25399
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
25400
|
+
}
|
|
25375
25401
|
}
|
|
25376
25402
|
],
|
|
25377
25403
|
"responses": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosuke-ai/kosuke",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.41",
|
|
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,11 @@
|
|
|
40
40
|
"vitest": "^4.1.12"
|
|
41
41
|
},
|
|
42
42
|
"kosukeRelease": {
|
|
43
|
-
"sourceCommit": "
|
|
44
|
-
"sourceIdentity": "
|
|
43
|
+
"sourceCommit": "73b5c1ec06e3efa1054a95cc718f32c9bfbb82a8",
|
|
44
|
+
"sourceIdentity": "f12507d9abda89c3a4ee293a0f94797ac6315fa06709cb3e5e2607f09195ed06",
|
|
45
45
|
"fragments": [
|
|
46
|
-
"
|
|
46
|
+
"preview-sandbox-restart-tswhy0.json",
|
|
47
|
+
"tasks-list-thread-filter-66v2t0.json"
|
|
47
48
|
]
|
|
48
49
|
}
|
|
49
50
|
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export const operation = {
|
|
2
|
-
"method": "post",
|
|
3
|
-
"path": "/api/projects/{projectId}/preview/reset",
|
|
4
|
-
"command": [
|
|
5
|
-
"preview",
|
|
6
|
-
"reset"
|
|
7
|
-
],
|
|
8
|
-
"summary": "Restart the services of a preview's running sandbox in place. Fails when the sandbox is paused.",
|
|
9
|
-
"pathParams": [
|
|
10
|
-
"projectId"
|
|
11
|
-
],
|
|
12
|
-
"query": [],
|
|
13
|
-
"body": {
|
|
14
|
-
"fields": [
|
|
15
|
-
{
|
|
16
|
-
"name": "sessionId",
|
|
17
|
-
"flag": "session-id",
|
|
18
|
-
"kind": "string",
|
|
19
|
-
"required": false
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"required": true
|
|
23
|
-
},
|
|
24
|
-
"multipart": null,
|
|
25
|
-
"attachments": false,
|
|
26
|
-
"anonymous": false,
|
|
27
|
-
"agents": "all"
|
|
28
|
-
};
|