GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — usage/NOTICE at main · kimi-builders/usage Expand file tree/ Copy pathNOTICEMore file actions 445 lines (372 loc) · 24.5 KB / Copy pathNOTICEFile metadata and controls445 lines (372 loc) · 24.5 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 THIRD-PARTY NOTICES AND ACKNOWLEDGEMENTS This file distinguishes four different relationships: 1. source code that was adapted; 2. products and repositories used as direct research references; 3. a first-party visual baseline shared with kimi.builders; and 4. third-party packages or assets included in the built dashboard. Research reference does not by itself mean that source code was copied. Unless the "code adaptation" section says otherwise, the implementation in this repository was written for Kimi Builders Usage. CODE ADAPTATION =============== @vibe-cafe/vibe-usage --------------------- Project: @vibe-cafe/vibe-usage Source: https://github.com/vibe-cafe/vibe-usage License: MIT, as declared by the upstream package and README Audited snapshot: 850f27dcf1db511b8c48a7ec93a27f77d1b35437 The initial implementations and related tests/fixtures for parts of the parser layer were adapted from this project. The affected area includes shared parser aggregation patterns and source readers for Kimi Code, Claude Code, Codex, OpenCode, Gemini CLI, Antigravity, GitHub Copilot CLI, Cursor, and Roo Code, as well as later Pi Coding Agent, ZCode, and WorkBuddy compatibility work, including supporting SQLite utilities where applicable. Subsequent adaptations include Grok CLI, Trae CLI, MiniMax Code, Qoder/Qoder CN and DeepSeek Harness (DSH, session formats V0–V4) readers and corresponding test fixtures. The Codex streaming Zstandard frame reader is adapted from src/parsers/zstd-file.js at upstream ea26f1d (MIT, Copyright (c) 2026 VibeCafé). The Kimi Work discovery and Claude call-level deduplication are informed by the same release. Local accounting, pricing and sync continue to use the Kimi.Builders contracts. The OpenCode reader's 2.x store compatibility (sqlite_master table detection, session_message projection reads with session/session_v2 directory joins, legacy-priority deduplication for migrated stores, and explicit warnings for unrecognized table layouts) is adapted from upstream commit f1dd16688826e8005b7d71a14a1b4bacc3e74cfd (2026-09-26) and re-expressed in this repository's separate SQLite/JSON reader structure and five-field mutually-exclusive token contract. That commit's write-cache pricing change has no equivalent here, because this project already counts tokens.cache.write in its own cacheWriteInputTokens bucket. The MiniMax Code reader's multi-store data-root coverage (the CLI's own MINIMAX_DATA_DIR / MAVIS_DATA_DIR relocation variables, per-profile ~/.minimax-<profile> homes, the pre-npm ~/.minimax-code and pre-rename ~/.mavis stores, physical-path deduplication for compat links, cross-store folding of byte-identical ledger rows that keeps duplicates inside a single store, and degraded extra-store warnings instead of blanking the live store, plus the matching background-service environment whitelist entries) is adapted from upstream commit af609278e0e27f73910b1481964f423ef3561546 (2026-09-28) and re-expressed in this repository's parser-level root resolver, five-field mutually-exclusive token contract with request counts, English warning text, and the registry roots() gating that decides whether a source is installed. The subscription-limit contract's optional machine-readable emptyReason vocabulary for empty quota results (limitReached / noWindow / notEntitled / sessionWithoutPlanLimits, with unknown values rejected instead of passed through) and the OpenCode Go HTTP 403 → notEntitled mapping for a valid API key without an active Go subscription are adapted from upstream commit 1287a8a3a42da0a5b74222778fbd94781f546e5b (2026-09-27) and re-expressed in this repository's assertProviderContract browser allowlist instead of a dedicated schema module. This repository keeps its single contract revision and does not introduce a schemaVersion mechanism; only the API-key path maps 403, while the Cookie workspace path keeps its existing failure semantics. The OpenCode Go quota path's read-only local credential discovery — selecting only the opencode-go integration key from OpenCode's own credential table through the shared read-only SQLite helper, falling back to the 1.x auth.json `opencode.key` entry when the table holds no Go row or cannot be read, and reporting a concrete store failure only when the fallback has no key either — was initially adapted from upstream commits 166f735084a0ed55b60a1db5e8345ce38d9f6651 (2026-09-22) and e21bd2d6fa6058bd6f319d193e06f6dc9c7b2d50 (2026-09-26), and re-expressed in this repository's limits provider: local discovery is an explicit connection mode with a credential-scoped, hashed history identity. Manually configured API Key / Cookie + Workspace accounts never fall back to another local login. The OpenCode store stays strictly read-only, and the key never reaches the result, history, logs, or cache. Upstream's quota registry entry, schema list, disposable cache-scope hashing, and VIBE_USAGE_OPENCODE_DIRS override have no equivalent here; this repository reuses its existing KBU_USAGE_OPENCODE_DIR data-root override and honors its XDG_DATA_HOME resolution instead. Upstream commit 6530c6d5f7f44c710cc324db989472dbe7a8f3cd (2026-09-27), which builds the data root test expectations with node:path's join and the platform delimiter so they hold on Windows, is reflected in the corresponding tests here. The later active CLI login handling is informed by CodexBar commit 77914457d3bfe4124122174dfdd307c2699ed5b6. It supersedes the above fallback: an existing credential table is authoritative, and missing, ambiguous, expired or unreadable current credentials cannot fall back to an old account. Only a missing table permits the legacy file; valid active OpenCode OAuth can be used for the explicit local Go mode. Tokens are never refreshed or written back. The Kimi Code quota path's support for the current CLI 2.x generation — probing the official OAuth credential across `$KIMI_SHARE_DIR`, then `$KIMI_CODE_HOME` / `~/.kimi-code`, then the legacy `~/.kimi` and keeping the first existing login (naming the 2.x path when no login exists), together with parsing the 2.x keyed `usages` response (limit_5h / limit_7d / limit_month_total / limit_month_code entries with used_ratio and reset fields) beside the legacy limits/usage arrays — is adapted from upstream commits 72683931ca0fad512dec2967e3362362cf07e5a0 (2026-09-19) and f1dd16688826e8005b7d71a14a1b4bacc3e74cfd (2026-09-26), and re-expressed in this repository's shared credentials loader and window-based quota contract: the winning login's directory also owns the device identity file and the OAuth refresh lock, keyed windows reuse the existing window ids for the same periods, hybrid responses deduplicate by window id, and monthly ratios render as local quota windows with a matching notice instead of upstream's separate meter list. The daemon source-location contract additionally captures KIMI_SHARE_DIR so the background service resolves the same login; upstream's daemon PRESERVED_SERVICE_ENV list itself has no equivalent here. The Grok CLI reader's Grok 1.0 usage.json ledger fallback — preferring the ACP stream's turn_completed usage and consulting the per-session ledger only when the stream carries none so a session reporting both is never counted twice, pairing the timestamp-less ledger turns with the stream's turn_completed order, folding the ledger's cacheCreationTokens into input because Grok publishes no separate cache-write rate, and attributing the ledger's modelUsage entries per model — together with the two silent-empty format sentinels (a Cursor export header check that turns an unrecognised header into a skipped run with a warning instead of an empty snapshot, and a Grok signals.json canary that warns when a session reports completed turns and models used without any readable usage) is adapted from upstream commit b4a38745785a243ea23f5130285d78624f89a9f5 (2026-09-20) and re-expressed in this repository's five-field mutually-exclusive token contract, KBU_USAGE_* root resolution, and English parser warnings carried through the shared snapshot collector's existing skipped/warnings fields. The adapted code has since been substantially modified for this project, including exclusive cache-write/cache-read/reasoning counters, canonical model metadata, reasoning effort and Agent version dimensions, bounded activity-hour slices, installation-salted session identifiers, source-level failure isolation, and the kimi.builders v2 sync protocol. The Codex durable token_usage_record accounting and legacy UI-mirror test scenarios were adapted from vibe-usage commit 86aeaa956c6093480d49f4d2a00fede85559200b (2026-10-08), with request ownership and response-identity safeguards informed by the CodexBar ledger work listed below. This project retains its streaming, stateless scans and exclusive token fields rather than importing either upstream's incremental cache. The Windows OpenCode LOCALAPPDATA discovery is adapted from vibe-usage commit acb315c2d50694d71e6fb9cc1567db898a7a3332 (2026-10-08), using a shared resolver for scanning and explicit local Go login, with cross-store message deduplication. The late-October compatibility pass adapts Antigravity step-metadata usage, retry identities, the inclusive output/reasoning wire contract and cache-write field from vibe-usage commit 194333575d9321d4e29bbfcb1204469cc6260b19. This implementation keeps exact index/identity clocks, does not carry a prior model name onto an unknown call, rejects malformed protobuf instead of silently discarding it, and marks unprovable overlap or missing clocks incomplete. Cursor empty/export-header failure protection is informed by upstream commit 68b346207d54c32d857743b53ed86fb8beb92870. Its authenticated online events fallback and account metadata persistence are NOT imported: our Cursor Token collector remains an explicitly configured, offline CSV importer. CodexBar provider integrations ------------------------------ Project: CodexBar Source: https://github.com/steipete/CodexBar License: MIT Copyright: Copyright (c) 2026 Peter Steinberger Audited snapshot: 211781be7b815cbd93d676a83ab6e7fbb22c9ded Additional Coding Plan review: f9bc62c344b3ba5fa758632c94a5c43af8fae90e (2026-09-12) Provider-specific endpoint knowledge, request shapes, response mapping, local credential discovery, and related test cases in the subscription-limit layer were adapted or reimplemented from CodexBar's provider integrations. This particularly applies to Codex, Claude, Cursor, GitHub Copilot, OpenCode Go, Kiro, Qoder, Warp, Antigravity, DeepSeek, and JetBrains AI where the corresponding source exists upstream. The October 2026 correctness adaptations include Kimi matching-cycle counter / ratio reconciliation (8ab81e2ebd592589f2c4c47fccd689a00dc19e31), JetBrains monthly versus purchased-credit balance selection (ea2babcd31e7228fba3aafcaddf55f1e8271cadf), bounded same-installation idea.log quota parsing (39ba7c649da14dd5a6d9973febb3012797c1df6e), and Antigravity unsupported consumer OAuth client rejection before placeholder quota publication (9699239f0ddc16777c84e5cc6116e526e9a4f71a). Codex request identity, ownership, and mirror-accounting safeguards were informed by a555a82bad569e801e1628a43ceb507b0764b337. These are re-expressed in JavaScript with sanitized fixture tests and the existing provider / collector contracts; no account-promotion, automatic sign-in, or provider app management is included. The second October 2026 batch adapts WorkBuddy resource-summary/package-list request shapes from Resources/Plugins/workbuddy.ts; Claude reset inventory, promotional cloud credits, and verified subscription metadata from the Claude provider; and measured Codex turn timing rules from CostUsageScanner's turn performance implementation. WorkBuddy uses an explicit Cookie/User-Agent tuple instead of upstream browser import. Claude metadata verifies the exact account and organization without importing cookies. Codex performance stays local-only, requires complete owned durable usage, and never enters community uploads. The late-October provider pass adapts WorkBuddy paid-cycle precedence (7141477080ff9bc096066af4f2a51c0782bd071e), Antigravity's daily-host OAuth summary (1c14f5abd44b7387212950778076ac9d021389b6) and versioned Gemini group labels (7f077ba0604931132af4ea374e100e3a4419839c), Cursor unified personal weekly pools and additional monthly spend (0538e94b464db0c12776e4bf6e7b11c66e44d275 and 36a37fe66), and JetBrains JbaiQuota/refill and Junie quota_update log shapes (bab8d5dd2bc488ab2fbfff7bfe76d0a3d484cae0). Optional requests retain the selected account boundary and bounded deadlines. No browser decryption, app management, CLI sign-in recovery, new quota provider, or upstream pricing table is imported. The later GLM / Z.ai, MiniMax Coding / Token Plan, and Alibaba Coding Plan integrations adapt endpoint/request shapes and sanitized quota fixtures from the corresponding CodexBar providers. They retain separate quota units, omit unverifiable capacity, isolate region-specific credentials/history, and do not copy cross-region credential retries or custom endpoint overrides. Alibaba's new personal/team Token Plan and GLM team scopes are not included. The Antigravity OAuth quota path preferring the grouped model-family summary endpoint (v1internal:retrieveUserQuotaSummary) over the per-model fallback chain, with weekly-only Starter free-tier pools reported at an explicit weekly cadence, is adapted from upstream commit 62acfd8ead86a3ae443ec2d76c30c93ec72e09b4 (2026-09-28) and re-expressed in this repository's single JavaScript provider module. The grouped summary parser itself already existed here for the local loopback path, so only the endpoint preference, its logged-out error semantics, and the fallback order were added. The Codex OAuth quota path's bounded auth.json reread — retrying the local credential read twice at 50 ms intervals when the file is missing, only partially published, or its access token is expired or about to expire, before reporting the login as missing or stale, without ever redeeming the CLI's own refresh token — together with the plan-change invalidation that stops an old subscription's quota/reset evidence from being presented as the new plan's current evidence, is adapted from upstream commit 9013fd81b218dc211f4230188b3291d7bfa75eed (2026-09-28) and re-expressed in this repository's JavaScript credential loader and Codex provider. Upstream invalidates reset backfill and weekly reset confirmation baselines at publication time; the equivalent here is an optional sanitized plan identity on subscription-history observations (history schema v2) plus segmentation of pooled observation evidence by the current plan in the dashboard insights, where records without a plan stay unknown-plan evidence. The settings detection path keeps its single read, matching upstream availability probing. The Kimi monthly-membership binding cap — projecting shorter quota windows as blocked while a longer monthly pool is observed exhausted, carrying the blocking pool's reset horizon without promising an earlier recovery time, and clearing pace for the blocked display — together with the Z.ai / GLM explicit "Coding Plan usage unavailable" annotation when a quota response contains unsupported limit shapes or no convertible quota, is adapted from upstream commit e9b2823d6fd0e883d392f23b42038757f67b39ea (2026-09-28). Upstream applies the projection while building its menu-card model and replaces the displayed percentage there; the equivalent here keeps every raw provider window and history observation untouched and expresses the block as a derived dashboard display marker plus a provider notice, so no projected number is persisted as a provider observation and no quota amount is invented. The Kimi stale-CLI-credential recovery copy — directing an expired or rejected Kimi Code CLI login to run `kimi` to renew, noting that the next query rereads the credential file so restarting this tool is unnecessary, naming the unattended `KIMI_AUTH_TOKEN` environment-variable/keychain alternative, and recording that Kimi rotates refresh tokens so an in-memory-only refresh would invalidate the CLI's saved token while writing back can race with the CLI's own renewal — is adapted from upstream commit 6dcac3df4b1b8f077ab4d3704f711797ec364e31 (2026-09-28) and re-expressed in this repository's provider error copy and a new Kimi Code login document. Upstream keeps CLI-owned credentials strictly read-only; this repository deliberately keeps its existing redeem-and-write-back renewal with its own process lock, reread under the lock, 400-triggered reread, and atomic rename, so upstream's read-only stance and its KIMI_CODE_API_KEY setting have no equivalent here. The Cursor forbidden-request back-off — classifying a geo-blocked HTTP 403 on quota fetches as its own error category instead of an expired login, cooling the affected provider down for at least six hours on a provider-and-account scope so automatic refreshes stop re-requesting a region-blocked endpoint on every poll, and lifting the cooldown immediately on manual refresh, account or settings changes, and cache clears — is adapted from upstream commit 1c0f70e3618d3c0c3c2e0e3648f0166e0530414d (2026-09-23) and re-expressed in this repository's Cursor-specific service error classifier and in-memory cooldown map. Other providers retain their authentication recovery, including MiniMax's same-region legacy endpoint retry on HTTP 403. The cooldown state exists only inside the running process, never reaches the payload, history, exports, or community sync, and upstream's per-provider token-publication scope signatures have no equivalent here because settings saves already clear this repository's whole limit cache. The implementation here translates those provider facts into JavaScript and a different normalized quota contract, then adds a provider allowlist, loopback- only credential boundary, macOS Keychain handling, redacted browser responses, isolated refresh failures, and the Kimi Builders setup UI. No CodexBar binary is distributed in this package. DIRECT PRODUCT AND ENGINEERING REFERENCES ========================================= Step-Code --------- Project: Step-Code by StepFun Source: https://github.com/stepfun-ai/Step-Code The official StepCode session-format and account-usage documentation and its personal Plan usage protocol were consulted for interoperability. The reader and quota adapter in this repository are independent implementations. Kimi multi-account quota references ---------------------------------- Project: llm-key-matrix Source: https://github.com/JulianJin1024/llm-key-matrix License: MIT; Copyright (c) 2026 LLM Key Matrix contributors Project: KimiCodeBar Source: https://github.com/xifandev/KimiCodeBar License: MIT; Copyright (c) 2026 xifandev Used to cross-check Coding API-key authentication at /coding/v1/usages, optional weekly / five-hour / monthly response windows, and account-versus-key quota ownership. The JavaScript multi-account settings, installation-scoped HMAC identities, history isolation and dashboard controls are implemented here. Neither application nor account-switching/CLI-configuration-writing code is bundled. Retained upstream MIT terms for these protocol references: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Vibe Usage for macOS -------------------- Project: Vibe Usage Source: https://github.com/vibe-cafe/vibe-usage-app License: MIT, as declared by the upstream README Audited snapshot: 9c762033be1a1109019840495432930d873669ec Used as a product research reference for desktop-friendly usage presentation, manual/background sync language, common time ranges, subscription-limit placement, and the distinction between a quick status surface and a complete dashboard. No macOS application source is bundled in this package. Vibe Usage for Windows ---------------------- Project: Vibe Usage for Windows Source: https://github.com/vibe-cafe/vibe-usage-windows License: MIT, as declared by the upstream README Audited snapshot: 928fc836a34a5152ca180722c9f4a0d2e7466fb7 Used as a cross-platform research reference for per-user installation, background sync, system-tray lifecycle, packaged-runtime expectations, and Windows Task Scheduler behaviour. No Tauri, Rust, or Windows application source from that repository is bundled in this package. CodexBar also served as the product reference for broad provider coverage, quota-window terminology, reset countdowns, authentication choices, failure isolation, and setup guidance. Kimi Builders Usage intentionally understands CodexBar's local Antigravity credential location and fixed loopback quota-service strategy so a user can reuse an existing login or an already-running Antigravity process. It does not launch, manage, or terminate that process. The code relationship is recorded separately in the code-adaptation section above. FIRST-PARTY DESIGN BASELINE =========================== kimi.builders Usage ------------------- Product: kimi.builders community usage dashboard Source: https://kimi.builders/usage The local dashboard, responsive navigation, analytics hierarchy, calculation explanations, export flow, and poster system intentionally share a visual and product language with the Kimi Builders community page. This is a first-party baseline maintained by the same project, not a third-party attribution claim. The local implementation changes the identity, privacy, navigation, sharing, and sync behaviour wherever a private loopback product requires a different contract. BUNDLED PACKAGES AND ASSETS =========================== The built local dashboard contains output from the following direct runtime dependencies. Their package versions are pinned in dashboard/package-lock.json. - LobeHub Icons / @lobehub/icons-static-svg (MIT) https://github.com/lobehub/lobe-icons Agent and provider brand SVGs used for identification. - JetBrains Mono via @fontsource/jetbrains-mono (SIL Open Font License 1.1) https://github.com/JetBrains/JetBrainsMono https://fontsource.org/fonts/jetbrains-mono - Lucide / lucide-react (ISC) https://github.com/lucide-icons/lucide - html-to-image (MIT) https://github.com/bubkoo/html-to-image - React and React DOM (MIT) https://github.com/facebook/react Full license and copyright texts for bundled output, including Lucide’s Feather attribution and the JetBrains Mono OFL, are included in THIRD_PARTY_LICENSES.txt and the built dashboard at /THIRD_PARTY_LICENSES.txt. The build generates this file from installed, lockfile-verified packages and the reviewed licenses/ inputs; the package audit rejects missing or stale texts. Package metadata fallbacks are explicitly identified where an upstream npm archive omits a license file. Build-only dependencies and their complete transitive versions are recorded in dashboard/package-lock.json. Each dependency remains subject to its own license. Product names, service names, and logos are trademarks of their respective owners and are used only to identify compatible data sources or services. PROJECT-ORIGINAL SCOPE ====================== The local web dashboard and poster implementation, local HTTP capability-token security boundary, provider-agnostic quota orchestration and settings UI, standard-API price engine, device metadata, community authorization and sync runtime, background-service management, export UX, and Kimi Builders product integration were implemented for this project. Provider-specific quota protocol adaptations and the parser layer remain subject to the code-adaptation sections above. These notices record provenance and thanks. They do not imply affiliation, endorsement, joint ownership, or ongoing maintenance by any referenced project. The project as distributed is licensed under the MIT License in LICENSE; the upstream MIT terms continue to apply to the portions adapted from @vibe-cafe/vibe-usage, and bundled dependencies retain their own licenses. |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |