@threadcrumbs/common 0.1.8 → 0.1.9
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/harnesses/claude-code.mjs +578 -578
- package/harnesses/hermes.mjs +2 -1
- package/lib/claude-transcript.mjs +16 -0
- package/lib/opencode-store.mjs +734 -734
- package/package.json +1 -1
- package/telemetry/README.md +290 -290
- package/telemetry/claude-code.mjs +3 -2
- package/telemetry/codex.mjs +700 -700
- package/telemetry/hermes.mjs +441 -441
- package/ui/rows.css +5 -0
|
@@ -192,13 +192,14 @@ export function claudeCode({
|
|
|
192
192
|
const sub = path.join(subagentDir(file, id), `agent-${agentId}.jsonl`)
|
|
193
193
|
const stat = await fsp.stat(sub).catch(() => null)
|
|
194
194
|
if (!stat) return null
|
|
195
|
-
const state = await subagentDetails.read(sub, stat, { sidechain: true })
|
|
195
|
+
const [state, limits] = await Promise.all([subagentDetails.read(sub, stat, { sidechain: true }), contextLimits()])
|
|
196
196
|
return {
|
|
197
197
|
id: `claude-code:${id}`,
|
|
198
198
|
sessionId: id,
|
|
199
199
|
agentId,
|
|
200
200
|
source: sub,
|
|
201
201
|
...transcriptDetail(state),
|
|
202
|
+
contextLimit: contextLimit(limits, state.model) || null,
|
|
202
203
|
contextBreakdown: null,
|
|
203
204
|
subagents: null,
|
|
204
205
|
}
|
|
@@ -382,7 +383,7 @@ function toSession({ id, state, stat, running, subagents, workingSubagents, awai
|
|
|
382
383
|
return {
|
|
383
384
|
id: `claude-code:${id}`,
|
|
384
385
|
harness: 'claude-code',
|
|
385
|
-
title: state.customTitle || state.aiTitle || running?.name || state.summary || promptTitle || 'Untitled session',
|
|
386
|
+
title: titleFromPrompt(state.customTitle || state.aiTitle || running?.name || state.summary || promptTitle) || 'Untitled session',
|
|
386
387
|
project,
|
|
387
388
|
projectPath,
|
|
388
389
|
worktree,
|