rebrand better-clawd and ship initial npm-ready release
This commit is contained in:
27
src/services/contextCollapse/index.ts
Normal file
27
src/services/contextCollapse/index.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
type CollapseStats = {
|
||||
collapsedSpans: number
|
||||
stagedSpans: number
|
||||
health: {
|
||||
totalErrors: number
|
||||
totalEmptySpawns: number
|
||||
emptySpawnWarningEmitted: boolean
|
||||
}
|
||||
}
|
||||
|
||||
const EMPTY_STATS: CollapseStats = {
|
||||
collapsedSpans: 0,
|
||||
stagedSpans: 0,
|
||||
health: {
|
||||
totalErrors: 0,
|
||||
totalEmptySpawns: 0,
|
||||
emptySpawnWarningEmitted: false,
|
||||
},
|
||||
}
|
||||
|
||||
export function getStats(): CollapseStats {
|
||||
return EMPTY_STATS
|
||||
}
|
||||
|
||||
export function subscribe(_listener: () => void): () => void {
|
||||
return () => {}
|
||||
}
|
||||
Reference in New Issue
Block a user