@kosuke-ai/kosuke 1.0.40 → 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 CHANGED
@@ -1,5 +1,10 @@
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
+
3
8
  ## 1.0.40
4
9
 
5
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.
@@ -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
+ };
@@ -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": {
@@ -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.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": "65e08c362387af8e546c813e7520bdb6e5f152a0",
44
- "sourceIdentity": "7b2373747a437fed1fd16ddcc17917a4d1d9337161dcc26e8c791f9ff1ab6676",
43
+ "sourceCommit": "73b5c1ec06e3efa1054a95cc718f32c9bfbb82a8",
44
+ "sourceIdentity": "f12507d9abda89c3a4ee293a0f94797ac6315fa06709cb3e5e2607f09195ed06",
45
45
  "fragments": [
46
- "merge-agent-off-x2wlh6.json"
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
- };