MCPcopy
hub / github.com/anomalyco/opencode / from

Method from

packages/llm/src/schema/events.ts:71–73  ·  view source on GitHub ↗
(input: UsageInput)

Source from the content-addressed store, hash-verified

69 }
70
71 static from(input: UsageInput) {
72 return input instanceof Usage ? input : new Usage(input)
73 }
74}
75
76export type UsageInput = Usage | ConstructorParameters<typeof Usage>[0]

Callers 15

effect.test.tsFile · 0.45
fetchMethod · 0.45
getDataMethod · 0.45
exportDebugLogsFunction · 0.45
writeZipFunction · 0.45
checkHealthFunction · 0.45
shell-env.test.tsFile · 0.45
detectOutputEncodingFunction · 0.45
fetchFunction · 0.45
successFunction · 0.45

Calls

no outgoing calls

Tested by 15

failWithFunction · 0.36
activeCountsFunction · 0.36
eventCountFunction · 0.36
resetFunction · 0.36
replaySessionProjectionFunction · 0.36
verifyEphemeralDeltasFunction · 0.36
storedFunction · 0.36
writeFunction · 0.36
runFunction · 0.36
runFunction · 0.36
sessionSequenceFunction · 0.36
sessionSequenceOwnerFunction · 0.36