@kosuke-ai/kosuke 1.0.93 → 1.0.94

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.94
4
+
5
+ - Include card answer text when reading Sensei threads.
6
+
3
7
  ## 1.0.93
4
8
 
5
9
  - Files replace Artifacts. Add `sessions files list|get|attach`, `crons runs files list|get`, `crons files list` and `preview shared-files get`, which replace the `artifacts` commands. Attaching points a ticket at a file instead of copying it. The sandbox source-tree commands moved from `sessions files list|get|set` to `sessions sandbox-files list|get|set`, because `sessions files` now means the session's Files. Installed CLIs keep working: the old routes stay served, deprecated.
@@ -150,6 +150,13 @@ function textView(data) {
150
150
  view.upNext = upNextView(data.upNext);
151
151
  return view;
152
152
  }
153
+ function cardText(card) {
154
+ return (records(card.blocks)
155
+ .filter((block) => block.type === 'text')
156
+ .map((block) => str(block.text))
157
+ .filter(Boolean)
158
+ .join('\n\n') || undefined);
159
+ }
153
160
  function threadHeader(thread) {
154
161
  return compact({
155
162
  id: str(thread.id),
@@ -170,6 +177,7 @@ function threadHeader(thread) {
170
177
  id: str(card.id),
171
178
  key: str(card.key),
172
179
  headline: str(card.headline) ?? str(card.title),
180
+ text: cardText(card),
173
181
  })),
174
182
  });
175
183
  }
@@ -211,6 +219,7 @@ function cardView(block, context) {
211
219
  key: str(card.key),
212
220
  headline: str(card.headline) ?? str(card.title) ?? firstLine(str(block.content)),
213
221
  state: cardState(card),
222
+ text: cardText(card),
214
223
  verb: short(card.verb) ?? short(action?.label),
215
224
  });
216
225
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/kosuke",
3
- "version": "1.0.93",
3
+ "version": "1.0.94",
4
4
  "description": "Sensei platform CLI. The client customers install to drive app.kosuke.ai from their own machine.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -43,10 +43,10 @@
43
43
  "minimatch": "^11.0.1"
44
44
  },
45
45
  "kosukeRelease": {
46
- "sourceCommit": "949e4e27c824b1c81e698f80667de2b486565454",
47
- "sourceIdentity": "60754951ff60b57f12e8ef47282bd43df2a92aa0b8400ad20b9bc7f43a81047a",
46
+ "sourceCommit": "6e64c588427a58636295966321337a025a7c0a1e",
47
+ "sourceIdentity": "3b8fc052997386af7e066992ecd5f95c544b5e8c467a0c375c700d3c09fd58f1",
48
48
  "fragments": [
49
- "files-replace-artifacts-6i1jci.json"
49
+ "card-answers-in-thread-reader-axloi5.json"
50
50
  ]
51
51
  }
52
52
  }