@kosuke-ai/kosuke 1.0.92 → 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.
Files changed (29) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/generated/commands/crons/delete--personal.js +1 -1
  3. package/dist/generated/commands/crons/delete.js +1 -1
  4. package/dist/generated/commands/crons/{artifacts-list--personal.js → files-list--personal.js} +5 -5
  5. package/dist/generated/commands/crons/{artifacts-list.js → files-list.js} +5 -5
  6. package/dist/generated/commands/crons/runs-cancel.js +1 -1
  7. package/dist/generated/commands/crons/{runs-artifacts-get--personal.js → runs-files-get--personal.js} +4 -4
  8. package/dist/generated/commands/crons/{runs-artifacts-get.js → runs-files-get.js} +4 -4
  9. package/dist/generated/commands/crons/{runs-artifacts-list--personal.js → runs-files-list--personal.js} +3 -3
  10. package/dist/generated/commands/crons/{runs-artifacts-list.js → runs-files-list.js} +3 -3
  11. package/dist/generated/commands/crons/runs-get--personal.js +1 -1
  12. package/dist/generated/commands/files/delete--personal.js +1 -1
  13. package/dist/generated/commands/files/delete.js +1 -1
  14. package/dist/generated/commands/files/move--personal.js +1 -1
  15. package/dist/generated/commands/files/move.js +1 -1
  16. package/dist/generated/commands/index.js +73 -75
  17. package/dist/generated/commands/preview/{shared-artifacts-get.js → shared-files-get.js} +4 -5
  18. package/dist/generated/commands/prototypes/create.js +2 -2
  19. package/dist/generated/commands/sessions/{artifacts-create.js → files-attach.js} +5 -5
  20. package/dist/generated/commands/sessions/files-get.js +5 -12
  21. package/dist/generated/commands/sessions/files-list.js +2 -2
  22. package/dist/generated/commands/sessions/sandbox-files-get.js +28 -0
  23. package/dist/generated/commands/sessions/{artifacts-list.js → sandbox-files-list.js} +3 -3
  24. package/dist/generated/commands/sessions/{files-set.js → sandbox-files-set.js} +1 -1
  25. package/dist/runtime/thread-text.js +9 -0
  26. package/openapi.json +1026 -191
  27. package/package.json +4 -4
  28. package/dist/generated/commands/sessions/artifacts-get.js +0 -21
  29. package/dist/generated/commands/workspaces/artifacts-search.js +0 -27
@@ -3,7 +3,7 @@ export const operation = {
3
3
  "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/preview/files/content",
4
4
  "command": [
5
5
  "sessions",
6
- "files",
6
+ "sandbox-files",
7
7
  "set"
8
8
  ],
9
9
  "summary": "Write one file in the session's sandbox. Refused while a turn is running, and for binary content.",
@@ -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
  }