tokentracker-cli 0.76.0 → 0.76.1
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/dashboard/dist/assets/{ActivityHeatmap-Cc7rHzpc.js → ActivityHeatmap-BteMEtUD.js} +1 -1
- package/dashboard/dist/assets/{Card-i15i_EDL.js → Card-BtxbtU8A.js} +1 -1
- package/dashboard/dist/assets/{ClawdAnimated-DMuZ5d5m.js → ClawdAnimated-DbLXeoA6.js} +1 -1
- package/dashboard/dist/assets/{CommunityStatsModal-cKwxGEGB.js → CommunityStatsModal-BeB9V39j.js} +1 -1
- package/dashboard/dist/assets/{ConfirmModal-Ck-ybj6p.js → ConfirmModal-c2LC0AM4.js} +1 -1
- package/dashboard/dist/assets/{Controls-CxmOdwJ3.js → Controls-DbPKLAdK.js} +1 -1
- package/dashboard/dist/assets/{DashboardPage-ED4-b7kr.js → DashboardPage-D_xgfSW5.js} +1 -1
- package/dashboard/dist/assets/{DevicePage-DcKvkJNR.js → DevicePage-DGKi-xbq.js} +1 -1
- package/dashboard/dist/assets/{DialogClose-C6nuJJ_i.js → DialogClose-8dvI14eq.js} +1 -1
- package/dashboard/dist/assets/DialogDescription-BaqKnvpx.js +1 -0
- package/dashboard/dist/assets/{DialogTitle-D0xEUAQD.js → DialogTitle-CXf0FHYi.js} +1 -1
- package/dashboard/dist/assets/{FadeIn-GWxxEiEG.js → FadeIn-CaJEgKM0.js} +1 -1
- package/dashboard/dist/assets/{HeaderGithubStar-BNs6lPrd.js → HeaderGithubStar-5ujeZQIx.js} +1 -1
- package/dashboard/dist/assets/{IpCheckPage-BHEGYdwZ.js → IpCheckPage-BARqvmMn.js} +1 -1
- package/dashboard/dist/assets/{LandingPage-qCAwHW-r.js → LandingPage-BLkSq_ZA.js} +1 -1
- package/dashboard/dist/assets/{LeaderboardAvatar-aso6D7AA.js → LeaderboardAvatar-BVnaJZ61.js} +1 -1
- package/dashboard/dist/assets/{LeaderboardPage-BVDho0zN.js → LeaderboardPage-CxoUX3j2.js} +2 -2
- package/dashboard/dist/assets/{LeaderboardProfileModal-D5qe822P.js → LeaderboardProfileModal-Di1dZ0yp.js} +1 -1
- package/dashboard/dist/assets/{LeaderboardProfilePage-BhfX0BP4.js → LeaderboardProfilePage-CSAkhKVm.js} +1 -1
- package/dashboard/dist/assets/{LimitsPage-BDld2Tw9.js → LimitsPage-A4pGCRTq.js} +1 -1
- package/dashboard/dist/assets/{LocalOnlyNotice-B7Ws4lUu.js → LocalOnlyNotice-_WUtjmig.js} +1 -1
- package/dashboard/dist/assets/{LoginPage-D7OQrvP6.js → LoginPage-BTVXSJAR.js} +1 -1
- package/dashboard/dist/assets/{PetPage-DsCEXiJf.js → PetPage-BVVPjdTz.js} +1 -1
- package/dashboard/dist/assets/{PopoverPopup-MhHKPgtt.js → PopoverPopup-8LMqPVq2.js} +1 -1
- package/dashboard/dist/assets/{ResetPasswordPage-C3QmfXcI.js → ResetPasswordPage-BaGsC8IK.js} +1 -1
- package/dashboard/dist/assets/{Select-B9zxyBF3.js → Select-C-9KSnes.js} +1 -1
- package/dashboard/dist/assets/{SelectItemText-D-kCTY6-.js → SelectItemText-DTTLvx0S.js} +1 -1
- package/dashboard/dist/assets/{SettingsPage-1NY7r1OL.js → SettingsPage-D9ErGk4m.js} +1 -1
- package/dashboard/dist/assets/{SkillsPage-B6dZnAvn.js → SkillsPage-oeoKkogP.js} +1 -1
- package/dashboard/dist/assets/{WidgetsPage-BY_51IWL.js → WidgetsPage-9rcQItvm.js} +1 -1
- package/dashboard/dist/assets/{WrappedPage-BNvs3dW4.js → WrappedPage-CPW7yGU7.js} +1 -1
- package/dashboard/dist/assets/{agent-logos-Cg92StIs.js → agent-logos-pKTxKIRy.js} +1 -1
- package/dashboard/dist/assets/{arrow-up-right-5jhx4tzl.js → arrow-up-right-BZXsegII.js} +1 -1
- package/dashboard/dist/assets/check-MtNv3HVg.js +1 -0
- package/dashboard/dist/assets/{copy-CcD9E3do.js → copy-CxWvFswL.js} +1 -1
- package/dashboard/dist/assets/{download-hUD-lQh8.js → download-CQX96XGh.js} +1 -1
- package/dashboard/dist/assets/{format-tokens-BPZCO1fQ.js → format-tokens-KjoAtV0_.js} +1 -1
- package/dashboard/dist/assets/{info-4Bz63oh6.js → info-BeLGu7P-.js} +1 -1
- package/dashboard/dist/assets/{main-BI3jOnQS.css → main-C4q97-Dt.css} +1 -1
- package/dashboard/dist/assets/{main-nNmpL8Cj.js → main-zg2QqC7y.js} +2 -2
- package/dashboard/dist/assets/{use-community-stats-D6SkhwbZ.js → use-community-stats-DGcrvtzG.js} +1 -1
- package/dashboard/dist/assets/{use-limits-display-prefs-BAQYB-31.js → use-limits-display-prefs-Cus2CieQ.js} +1 -1
- package/dashboard/dist/assets/{use-native-settings-xp2V6xfM.js → use-native-settings-N_vzBwe4.js} +1 -1
- package/dashboard/dist/assets/{use-ordered-list-C5_uGsrS.js → use-ordered-list-CYhuufyB.js} +1 -1
- package/dashboard/dist/assets/{use-quality-per-dollar-pref-iQsn9WQp.js → use-quality-per-dollar-pref-Dxls0iJb.js} +1 -1
- package/dashboard/dist/assets/{use-usage-limits-6uexiute.js → use-usage-limits-C0j7p1Ky.js} +1 -1
- package/dashboard/dist/assets/{useCurrency-CmVvLPhb.js → useCurrency-BmjwgkxJ.js} +1 -1
- package/dashboard/dist/assets/{useScrollLock-C-uJaCDp.js → useScrollLock-BRp2PG2E.js} +1 -1
- package/dashboard/dist/index.html +2 -2
- package/dashboard/dist/share.html +2 -2
- package/package.json +1 -1
- package/src/lib/pricing/seed-snapshot.json +1 -1
- package/src/lib/rollout.js +40 -10
- package/dashboard/dist/assets/DialogDescription-C6z_szoN.js +0 -1
- package/dashboard/dist/assets/check-DhneqxBx.js +0 -1
package/src/lib/rollout.js
CHANGED
|
@@ -9443,10 +9443,28 @@ async function parseCopilotIncremental({ otelPaths, cursors, queuePath, onProgre
|
|
|
9443
9443
|
attrs["gen_ai.usage.reasoning_tokens"] ??
|
|
9444
9444
|
attrs["gen_ai.usage.reasoning_output_tokens"],
|
|
9445
9445
|
);
|
|
9446
|
-
|
|
9446
|
+
const reasoningClamped = Math.min(reasoning, output);
|
|
9447
|
+
const outputWithoutReasoning = Math.max(0, output - reasoningClamped);
|
|
9448
|
+
const cliSpan = isCopilotV1ChatSpan(record);
|
|
9449
|
+
// CLI input includes both cache reads and writes. Chat-extension
|
|
9450
|
+
// LogRecords expose cache creation separately, so preserve their existing
|
|
9451
|
+
// input-minus-read semantics.
|
|
9447
9452
|
const cacheReadClamped = Math.min(cacheRead, inputRaw);
|
|
9448
|
-
const
|
|
9449
|
-
|
|
9453
|
+
const cacheWriteClamped = Math.min(
|
|
9454
|
+
cacheWrite,
|
|
9455
|
+
Math.max(0, inputRaw - cacheReadClamped),
|
|
9456
|
+
);
|
|
9457
|
+
const cacheWriteForAccounting = cliSpan ? cacheWriteClamped : cacheWrite;
|
|
9458
|
+
const input = Math.max(
|
|
9459
|
+
0,
|
|
9460
|
+
inputRaw - cacheReadClamped - (cliSpan ? cacheWriteClamped : 0),
|
|
9461
|
+
);
|
|
9462
|
+
const totalInteresting =
|
|
9463
|
+
input +
|
|
9464
|
+
outputWithoutReasoning +
|
|
9465
|
+
cacheReadClamped +
|
|
9466
|
+
cacheWriteForAccounting +
|
|
9467
|
+
reasoningClamped;
|
|
9450
9468
|
if (totalInteresting === 0) continue;
|
|
9451
9469
|
|
|
9452
9470
|
// CLI Span uses endTime/startTime; Chat extension LogRecord uses hrTime/hrTimeObserved.
|
|
@@ -9460,15 +9478,22 @@ async function parseCopilotIncremental({ otelPaths, cursors, queuePath, onProgre
|
|
|
9460
9478
|
const bucketStart = toUtcHalfHourStart(tsIso);
|
|
9461
9479
|
if (!bucketStart) continue;
|
|
9462
9480
|
|
|
9463
|
-
const model =
|
|
9481
|
+
const model =
|
|
9482
|
+
normalizeCopilotAppModel(pickCopilotModel(attrs)) ||
|
|
9483
|
+
COPILOT_APP_DEFAULT_MODEL;
|
|
9464
9484
|
|
|
9465
9485
|
const delta = {
|
|
9466
9486
|
input_tokens: input,
|
|
9467
9487
|
cached_input_tokens: cacheReadClamped,
|
|
9468
|
-
cache_creation_input_tokens:
|
|
9469
|
-
output_tokens:
|
|
9470
|
-
reasoning_output_tokens:
|
|
9471
|
-
total_tokens:
|
|
9488
|
+
cache_creation_input_tokens: cacheWriteForAccounting,
|
|
9489
|
+
output_tokens: outputWithoutReasoning,
|
|
9490
|
+
reasoning_output_tokens: reasoningClamped,
|
|
9491
|
+
total_tokens:
|
|
9492
|
+
input +
|
|
9493
|
+
outputWithoutReasoning +
|
|
9494
|
+
cacheReadClamped +
|
|
9495
|
+
cacheWriteForAccounting +
|
|
9496
|
+
reasoningClamped,
|
|
9472
9497
|
conversation_count: 1,
|
|
9473
9498
|
};
|
|
9474
9499
|
|
|
@@ -9735,8 +9760,13 @@ function normalizeCopilotAppTokenDelta(curr, prev) {
|
|
|
9735
9760
|
const cachedDelta = Math.max(0, Number(curr?.cached || 0) - Number(prev?.cached || 0));
|
|
9736
9761
|
const cachedInputTokens = Math.min(cachedDelta, inputDelta);
|
|
9737
9762
|
const inputTokens = Math.max(0, inputDelta - cachedInputTokens);
|
|
9738
|
-
const
|
|
9739
|
-
const
|
|
9763
|
+
const outputDelta = Math.max(0, Number(curr?.output || 0) - Number(prev?.output || 0));
|
|
9764
|
+
const reasoningDelta = Math.max(
|
|
9765
|
+
0,
|
|
9766
|
+
Number(curr?.reasoning || 0) - Number(prev?.reasoning || 0),
|
|
9767
|
+
);
|
|
9768
|
+
const reasoningTokens = Math.min(reasoningDelta, outputDelta);
|
|
9769
|
+
const outputTokens = Math.max(0, outputDelta - reasoningTokens);
|
|
9740
9770
|
const totalTokens = inputTokens + cachedInputTokens + outputTokens + reasoningTokens;
|
|
9741
9771
|
return {
|
|
9742
9772
|
input_tokens: inputTokens,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as n,b9 as a}from"./main-nNmpL8Cj.js";import{u as p}from"./DialogTitle-D0xEUAQD.js";import{u as c}from"./useScrollLock-C-uJaCDp.js";const x=n.forwardRef(function(e,r){const{render:l,className:u,style:m,id:s,...t}=e,{store:i}=p(),o=c(s);return i.useSyncedValueWithCleanup("descriptionElementId",o),a("p",e,{ref:r,props:[{id:o},t]})});export{x as D};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c}from"./main-nNmpL8Cj.js";const e=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],t=c("check",e);export{t as C};
|