MCPcopy Create free account
hub / github.com/arctic-cli/interface / safe

Function safe

packages/arctic/src/session/index.ts:338–341  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

336 ? (input.usage.inputTokens ?? 0)
337 : (input.usage.inputTokens ?? 0) - cachedInputTokens
338 const safe = (value: number) => {
339 if (!Number.isFinite(value)) return 0
340 return value
341 }
342
343 const tokens = {
344 input: safe(adjustedInputTokens),

Callers 1

index.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected