@spunto/design-system 0.33.0 → 0.34.0
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/package.json
CHANGED
|
@@ -381,10 +381,17 @@ function useTimeline(events: TaskEvent[]) {
|
|
|
381
381
|
let lastMessage = ""
|
|
382
382
|
|
|
383
383
|
for (const event of events) {
|
|
384
|
-
if (
|
|
384
|
+
if (
|
|
385
|
+
event.type === "raw" ||
|
|
386
|
+
event.type === "usage" ||
|
|
387
|
+
event.type === "session.title" ||
|
|
388
|
+
event.type === "session.background"
|
|
389
|
+
) {
|
|
385
390
|
// `usage` is a fact about the whole session, not a moment in it — the sidebar shows it.
|
|
386
391
|
// `session.title` is the same kind of fact: the name the session gave itself, already
|
|
387
|
-
// read at the top of the page as the task's own title.
|
|
392
|
+
// read at the top of the page as the task's own title. `session.background` too: what
|
|
393
|
+
// the harness still runs behind the turn, which the task's state already accounts for —
|
|
394
|
+
// the call that started it is on the timeline as a tool call.
|
|
388
395
|
if (event.type === "raw") raw.push(event)
|
|
389
396
|
continue
|
|
390
397
|
}
|
|
@@ -56,7 +56,7 @@ export interface TaskConversation extends TaskItem {
|
|
|
56
56
|
export interface TaskEvent {
|
|
57
57
|
seq: number
|
|
58
58
|
ts: string
|
|
59
|
-
/** `message` | `thinking` | `plan` | `tool.call` | `tool.result` | `session.started` | `session.ended` | `usage` | `session.title` | `raw` … */
|
|
59
|
+
/** `message` | `thinking` | `plan` | `tool.call` | `tool.result` | `session.started` | `session.ended` | `usage` | `session.title` | `session.background` | `raw` … */
|
|
60
60
|
type: string
|
|
61
61
|
payload: Record<string, unknown>
|
|
62
62
|
}
|