@aiusage/cli 1.7.7 → 1.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +6 -2
- package/package.json +1 -1
- package/pricing-catalog.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1310,7 +1310,7 @@ var inflection = {
|
|
|
1310
1310
|
};
|
|
1311
1311
|
|
|
1312
1312
|
// ../shared/src/pricing/catalog.ts
|
|
1313
|
-
var PRICING_VERSION = "2026-07-
|
|
1313
|
+
var PRICING_VERSION = "2026-07-20-gpt-5.6-kimi-k3-v1", aliases = {
|
|
1314
1314
|
"claude-opus-4-7-20260201": "claude-opus-4-7",
|
|
1315
1315
|
"claude-sonnet-4-6-20250301": "claude-sonnet-4-6",
|
|
1316
1316
|
"claude-opus-4-6-20250301": "claude-opus-4-6",
|
|
@@ -1976,7 +1976,11 @@ function extractSuccessEvent(line) {
|
|
|
1976
1976
|
let parts = line.split("|").map((part) => part.trim());
|
|
1977
1977
|
if (parts.length < 3 || parts[1] !== "success") return null;
|
|
1978
1978
|
let requestId = parts[0].match(/ccreq:([^.|\s]+)/)?.[1] ?? `${timestamp.getTime()}`, model = normalizeModel(parts[2]);
|
|
1979
|
-
return model ? { requestId, timestamp, model }
|
|
1979
|
+
return !model || isBackgroundRequest(parts[4], model) ? null : { requestId, timestamp, model };
|
|
1980
|
+
}
|
|
1981
|
+
function isBackgroundRequest(rawScope, model) {
|
|
1982
|
+
let scope = rawScope?.replace(/^\[|\]$/g, "").trim().toLowerCase();
|
|
1983
|
+
return scope === "xtabprovider" || scope === "settingseditorsearchsuggestions" ? !0 : model.startsWith("copilot-suggestions-") || model.startsWith("copilot-nes-") || model.startsWith("dd_");
|
|
1980
1984
|
}
|
|
1981
1985
|
function normalizeModel(raw) {
|
|
1982
1986
|
let parts = raw.split("->").map((part) => part.trim()).filter(Boolean);
|
package/package.json
CHANGED
package/pricing-catalog.json
CHANGED