@kosuke-ai/kosuke 1.0.40 → 1.0.42

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,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.42
4
+
5
+ - Merge agent status lists each pull request's state: merged, ejected, in-batch, waiting, failed or ready.
6
+
7
+ ## 1.0.41
8
+
9
+ - Replace `kosuke preview reset` with `kosuke preview sandbox reset`, which kills a stuck preview sandbox so Kosuke creates a new one.
10
+ - Add `--thread-id` to `kosuke tasks list`: lists the tasks with no Chat Session filed in one of your own Sensei threads.
11
+
3
12
  ## 1.0.40
4
13
 
5
14
  - `kosuke projects batch-merging set --mode train|batch|off` switches the Merge agent's mode, `off` meaning Kosuke merges nothing; `get` reports the mode.
@@ -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
  "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 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, 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), 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 (what the Batch pull request still needs, 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": {
@@ -17207,7 +17219,7 @@
17207
17219
  "/api/projects/{projectId}/merge-agent": {
17208
17220
  "get": {
17209
17221
  "operationId": "projectsMergeAgentGet",
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.",
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, 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), 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 (what the Batch pull request still needs, the merge queue) are null.",
17211
17223
  "tags": ["projects"],
17212
17224
  "x-kosuke-command": ["projects", "merge-agent", "get"],
17213
17225
  "x-kosuke-sandbox-token": true,
@@ -17719,14 +17731,12 @@
17719
17731
  }
17720
17732
  }
17721
17733
  },
17722
- "/api/projects/{projectId}/preview/reset": {
17734
+ "/api/projects/{projectId}/preview/sandbox/reset": {
17723
17735
  "post": {
17724
- "operationId": "previewReset",
17725
- "summary": "Restart the services of a preview's running sandbox in place. Fails when the sandbox is paused.",
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.",
17726
17738
  "tags": ["preview"],
17727
- "x-kosuke-command": ["preview", "reset"],
17728
- "x-kosuke-sandbox-token": true,
17729
- "x-kosuke-cron-token": true,
17739
+ "x-kosuke-command": ["preview", "sandbox", "reset"],
17730
17740
  "x-kosuke-sensei-token": true,
17731
17741
  "parameters": [
17732
17742
  {
@@ -25376,6 +25386,18 @@
25376
25386
  "schema": {
25377
25387
  "type": "string"
25378
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
+ }
25379
25401
  }
25380
25402
  ],
25381
25403
  "responses": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/kosuke",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
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": "65e08c362387af8e546c813e7520bdb6e5f152a0",
44
- "sourceIdentity": "7b2373747a437fed1fd16ddcc17917a4d1d9337161dcc26e8c791f9ff1ab6676",
43
+ "sourceCommit": "2f429b6ca7079f52ca03a4153817b32a0fe3b0d8",
44
+ "sourceIdentity": "568f28903ea01a29696b105f3cbc5db49c44c9594b7485177ec9a17a5f81e82e",
45
45
  "fragments": [
46
- "merge-agent-off-x2wlh6.json"
46
+ "merge-agent-state-word-h7xhsh.json"
47
47
  ]
48
48
  }
49
49
  }
@@ -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
- };