Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Opencode-DCP/opencode-dynamic-context-pruning
/ token-counting.test.ts
File
token-counting.test.ts
tests/token-counting.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
assert from
"node:assert/strict"
2
import
test from
"node:test"
3
import
type
{ WithParts } from
"../lib/state"
4
import
{
Callers
nothing calls this directly
Calls
3
extractCompletedToolOutput
Function · 0.90
buildToolPart
Function · 0.85
assertCounted
Function · 0.85
Tested by
no test coverage detected