@kosuke-ai/kosuke 1.0.43 → 1.0.45

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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.45
4
+
5
+ - `sessions messages list` and `sessions messages get --agent-output summary|compact` now describe the blocks they return as stored: heavy tool inputs, results and subagent output are previews flagged `inputCompacted`, `resultCompacted` or `outputOmitted` only when cut.
6
+
7
+ ## 1.0.44
8
+
9
+ - `sessions messages list` and `messages get` show a running Turn's progress: its assistant message has `streaming: true` and the blocks produced so far; `--live false` reads it as stored.
10
+
3
11
  ## 1.0.43
4
12
 
5
13
  - Add `--on-conflict rename` to `kosuke files set` for personal Files: a name the folder already holds is stored as the first free "name (2).ext" instead of replacing the file.
@@ -6,7 +6,7 @@ export const operation = {
6
6
  "messages",
7
7
  "get"
8
8
  ],
9
- "summary": "Read one message of a chat session with every block as recorded: whole tool inputs, results and subagent output, unless agentOutput is compact (subagent output cut) or summary (blocks as `kosuke sessions messages list` returns them).",
9
+ "summary": "Read one message of a chat session with every block as recorded: whole tool inputs, results and subagent output, unless agentOutput is compact (subagent output as stored) or summary (blocks as stored, as `kosuke sessions messages list` returns them). The assistant message of a running Turn has streaming: true and the blocks the Turn has produced so far, as the web app shows them; any other message has streaming: false.",
10
10
  "pathParams": [
11
11
  "projectId",
12
12
  "sessionId",
@@ -18,7 +18,7 @@ export const operation = {
18
18
  "flag": "agent-output",
19
19
  "kind": "string",
20
20
  "required": false,
21
- "description": "full (the default) returns every block as recorded; compact returns whole tool inputs and results and cuts subagent output, to its last entry with outputCount, or every entry cut short in a message recorded before previews were stored; summary returns the blocks as `kosuke sessions messages list` does.",
21
+ "description": "full (the default) returns every block as recorded; compact returns whole tool inputs and results and subagent output as stored, its last entry with outputCount; summary returns the blocks as stored, as `kosuke sessions messages list` does.",
22
22
  "choices": [
23
23
  "summary",
24
24
  "compact",
@@ -6,7 +6,7 @@ export const operation = {
6
6
  "messages",
7
7
  "list"
8
8
  ],
9
- "summary": "Read a chat session conversation oldest first: the whole of it, its last limit messages, the page before an olderCursor, or everything from one; newestCursor is what a poll passes as from to read only what changed since. messageCount counts the whole conversation. Blocks come summarized: a tool call's input keeps its short fields (inputCompacted), a result over 500 characters its first 500 (resultCompacted), and a subagent its last output entry with outputCount (outputOmitted). `kosuke sessions messages get` reads one message whole.",
9
+ "summary": "Read a chat session conversation oldest first: the whole of it, its last limit messages, the page before an olderCursor, or everything from one; newestCursor is what a poll passes as from to read only what changed since. messageCount counts the whole conversation. A running Turn's assistant message has streaming: true and the blocks the Turn has produced so far, as the web app shows them; every other message has streaming: false. Blocks come as stored: a tool call's input keeps its short fields (inputCompacted when cut), a result over 500 characters its first 500 (resultCompacted), and a subagent its last output entry with outputCount (outputOmitted when cut). `kosuke sessions messages get` reads one message whole.",
10
10
  "pathParams": [
11
11
  "projectId",
12
12
  "sessionId"
@@ -32,6 +32,17 @@ export const operation = {
32
32
  "kind": "string",
33
33
  "required": false,
34
34
  "description": "An olderCursor or newestCursor from an earlier read: the oldest or the newest message of that read, and every message after it."
35
+ },
36
+ {
37
+ "name": "live",
38
+ "flag": "live",
39
+ "kind": "string",
40
+ "required": false,
41
+ "description": "false leaves a running Turn's assistant message as stored, blocks null until the Turn ends, for a reader with a socket on its stream, as the web app has. By default that message carries what the Turn has done so far.",
42
+ "choices": [
43
+ "true",
44
+ "false"
45
+ ]
35
46
  }
36
47
  ],
37
48
  "body": null,
package/openapi.json CHANGED
@@ -13077,7 +13077,7 @@
13077
13077
  "/api/projects/{projectId}/chat-sessions/{sessionId}/messages": {
13078
13078
  "get": {
13079
13079
  "operationId": "sessionsMessagesList",
13080
- "summary": "Read a chat session conversation oldest first: the whole of it, its last limit messages, the page before an olderCursor, or everything from one; newestCursor is what a poll passes as from to read only what changed since. messageCount counts the whole conversation. Blocks come summarized: a tool call's input keeps its short fields (inputCompacted), a result over 500 characters its first 500 (resultCompacted), and a subagent its last output entry with outputCount (outputOmitted). `kosuke sessions messages get` reads one message whole.",
13080
+ "summary": "Read a chat session conversation oldest first: the whole of it, its last limit messages, the page before an olderCursor, or everything from one; newestCursor is what a poll passes as from to read only what changed since. messageCount counts the whole conversation. A running Turn's assistant message has streaming: true and the blocks the Turn has produced so far, as the web app shows them; every other message has streaming: false. Blocks come as stored: a tool call's input keeps its short fields (inputCompacted when cut), a result over 500 characters its first 500 (resultCompacted), and a subagent its last output entry with outputCount (outputOmitted when cut). `kosuke sessions messages get` reads one message whole.",
13081
13081
  "tags": ["sessions"],
13082
13082
  "x-kosuke-command": ["sessions", "messages", "list"],
13083
13083
  "x-kosuke-sandbox-token": true,
@@ -13135,6 +13135,17 @@
13135
13135
  "description": "An olderCursor or newestCursor from an earlier read: the oldest or the newest message of that read, and every message after it.",
13136
13136
  "type": "string"
13137
13137
  }
13138
+ },
13139
+ {
13140
+ "name": "live",
13141
+ "in": "query",
13142
+ "required": false,
13143
+ "description": "false leaves a running Turn's assistant message as stored, blocks null until the Turn ends, for a reader with a socket on its stream, as the web app has. By default that message carries what the Turn has done so far.",
13144
+ "schema": {
13145
+ "description": "false leaves a running Turn's assistant message as stored, blocks null until the Turn ends, for a reader with a socket on its stream, as the web app has. By default that message carries what the Turn has done so far.",
13146
+ "type": "string",
13147
+ "enum": ["true", "false"]
13148
+ }
13138
13149
  }
13139
13150
  ],
13140
13151
  "responses": {
@@ -13174,7 +13185,7 @@
13174
13185
  "/api/projects/{projectId}/chat-sessions/{sessionId}/messages/{messageId}": {
13175
13186
  "get": {
13176
13187
  "operationId": "sessionsMessagesGet",
13177
- "summary": "Read one message of a chat session with every block as recorded: whole tool inputs, results and subagent output, unless agentOutput is compact (subagent output cut) or summary (blocks as `kosuke sessions messages list` returns them).",
13188
+ "summary": "Read one message of a chat session with every block as recorded: whole tool inputs, results and subagent output, unless agentOutput is compact (subagent output as stored) or summary (blocks as stored, as `kosuke sessions messages list` returns them). The assistant message of a running Turn has streaming: true and the blocks the Turn has produced so far, as the web app shows them; any other message has streaming: false.",
13178
13189
  "tags": ["sessions"],
13179
13190
  "x-kosuke-command": ["sessions", "messages", "get"],
13180
13191
  "x-kosuke-sandbox-token": true,
@@ -13215,9 +13226,9 @@
13215
13226
  "name": "agentOutput",
13216
13227
  "in": "query",
13217
13228
  "required": false,
13218
- "description": "full (the default) returns every block as recorded; compact returns whole tool inputs and results and cuts subagent output, to its last entry with outputCount, or every entry cut short in a message recorded before previews were stored; summary returns the blocks as `kosuke sessions messages list` does.",
13229
+ "description": "full (the default) returns every block as recorded; compact returns whole tool inputs and results and subagent output as stored, its last entry with outputCount; summary returns the blocks as stored, as `kosuke sessions messages list` does.",
13219
13230
  "schema": {
13220
- "description": "full (the default) returns every block as recorded; compact returns whole tool inputs and results and cuts subagent output, to its last entry with outputCount, or every entry cut short in a message recorded before previews were stored; summary returns the blocks as `kosuke sessions messages list` does.",
13231
+ "description": "full (the default) returns every block as recorded; compact returns whole tool inputs and results and subagent output as stored, its last entry with outputCount; summary returns the blocks as stored, as `kosuke sessions messages list` does.",
13221
13232
  "type": "string",
13222
13233
  "enum": ["summary", "compact", "full"]
13223
13234
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/kosuke",
3
- "version": "1.0.43",
3
+ "version": "1.0.45",
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": "8d3004f83bccdc2258305caa89d1ef657d39967e",
44
- "sourceIdentity": "37df94a39a60f8639dc0f8cc5a04d50419e307f6091538bbd1005316dc5461f9",
43
+ "sourceCommit": "d1b8a395921f1292919a6c8d61a7aa80b7bb3360",
44
+ "sourceIdentity": "fab8c40a0305d925f88525b3a95e534a0cdfe9fe4ae0b56659996ca2a0093c26",
45
45
  "fragments": [
46
- "personal-files-rename-on-conflict-s3n5qa.json"
46
+ "messages-blocks-as-stored-zedc5c.json"
47
47
  ]
48
48
  }
49
49
  }