MCPcopy Create free account
hub / github.com/anomalyco/opencode / usage.ts

File usage.ts

packages/opencode/src/acp/usage.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import type { AgentSideConnection, Usage } from "@agentclientprotocol/sdk"
2import type { AssistantMessage as OpenCodeAssistantMessage, Message } from "@opencode-ai/sdk/v2"
3import { InstanceRef } from "@/effect/instance-ref"
4import { InstanceBootstrap } from "@/project/bootstrap"

Callers

nothing calls this directly

Calls 10

findContextLimitFunction · 0.85
latestAssistantMessageFunction · 0.85
totalSessionCostFunction · 0.85
asMethod · 0.80
listMethod · 0.65
getMethod · 0.65
makeMethod · 0.45
providersMethod · 0.45
setMethod · 0.45
messagesMethod · 0.45

Tested by

no test coverage detected