@threadcrumbs/common 0.1.1 → 0.1.2

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.
@@ -166,6 +166,7 @@ function emptyState(sidechain, detail) {
166
166
  cost: null,
167
167
  plan: null,
168
168
  prompts: 0,
169
+ uuids: new Set(),
169
170
  }
170
171
  }
171
172
 
@@ -192,6 +193,11 @@ function applyLine(state, line) {
192
193
  }
193
194
 
194
195
  function applyRecord(state, record) {
196
+ const uuid = text(record.uuid)
197
+ if (uuid) {
198
+ if (state.uuids.has(uuid)) return
199
+ state.uuids.add(uuid)
200
+ }
195
201
  const at = Date.parse(record.timestamp)
196
202
  if (at) {
197
203
  if (!state.startedAt) state.startedAt = at
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threadcrumbs/common",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "description": "Code the Threadcrumbs apps share, starting with the readers for each coding-agent harness.",
6
6
  "license": "SEE LICENSE IN LICENSE.md",