@opencode-ai/schema
Advanced tools
@@ -14,1 +14,2 @@ export * as TokenUsage from "./token-usage.js"; | ||
| }>; | ||
| export declare function total(tokens: Info): number; |
@@ -12,1 +12,4 @@ export * as TokenUsage from "./token-usage.js"; | ||
| }).annotate({ identifier: "TokenUsage.Info" }); | ||
| export function total(tokens) { | ||
| return tokens.input + tokens.output + tokens.reasoning + tokens.cache.read + tokens.cache.write; | ||
| } |
+1
-1
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/schema", | ||
| "version": "0.0.0-dev-18819", | ||
| "version": "0.0.0-dev-18821", | ||
| "type": "module", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
3767213
059594
0.01%