MCPcopy Create free account

hub / github.com/junhoyeo/tokscale / functions

Functions4,973 in github.com/junhoyeo/tokscale

↓ 2 callersMethodexact_match_models_dev
(&self, model_id: &str)
crates/tokscale-core/src/pricing/lookup.rs:927
↓ 2 callersMethodexact_match_openrouter_full_key
Full-key (`provider/model`) exact match against OpenRouter — the id's own canonical key. This wins even under a provider hint.
crates/tokscale-core/src/pricing/lookup.rs:911
↓ 2 callersMethodexact_match_openrouter_model_part
Model-part exact match against OpenRouter — matches any provider whose model-part equals `model_id`. A provider hint must take precedence over this (s
crates/tokscale-core/src/pricing/lookup.rs:921
↓ 2 callersMethodexact_match_sakana
(&self, model_id: &str)
crates/tokscale-core/src/pricing/lookup.rs:963
↓ 2 callersFunctionexchange_token
Call the `ExchangeToken` endpoint to mint a new `access_token` from a `refresh_token`.
crates/tokscale-cli/src/trae.rs:431
↓ 2 callersFunctionexpected_cursor_usage_cache_paths_in
(home_dir: &Path)
crates/tokscale-cli/src/cursor.rs:675
↓ 2 callersFunctionextra_scan_paths_for
( settings: &ScannerSettings, enabled: &HashSet<ClientId>, )
crates/tokscale-core/src/scanner.rs:400
↓ 2 callersFunctionextract_claude_headless_message
( value: &Value, session_id: &str, fallback_timestamp: i64, client_id: &str, default_provi
crates/tokscale-core/src/sessions/claudecode.rs:1181
↓ 2 callersFunctionextract_codex_content
(jsonl_path: &Path, session_id: &str)
crates/tokscale-core/src/content_extractor.rs:145
↓ 2 callersFunctionextract_csrf_token
(command: &str)
crates/tokscale-cli/src/antigravity.rs:957
↓ 2 callersFunctionextract_declared_port
(command: &str)
crates/tokscale-cli/src/antigravity.rs:966
↓ 2 callersFunctionextract_flag_value
(command: &str, flag: &str)
crates/tokscale-cli/src/antigravity.rs:972
↓ 2 callersFunctionextract_gemini_content
(json_path: &Path, session_id: &str)
crates/tokscale-core/src/content_extractor.rs:231
↓ 2 callersFunctionextract_gemini_usage_from_value
(model: String, value: &Value)
crates/tokscale-core/src/sessions/gemini.rs:571
↓ 2 callersFunctionextract_json_array
(text: &str)
crates/tokscale-cli/src/commands/report.rs:979
↓ 2 callersFunctionextract_model_and_agent
(content: &str)
crates/tokscale-core/src/sessions/roocode.rs:113
↓ 2 callersFunctionextract_model_family
(model_id: &str)
crates/tokscale-core/src/pricing/lookup.rs:1273
↓ 2 callersFunctionextract_model_from_value
(value: &Value)
crates/tokscale-core/src/sessions/codex.rs:1105
↓ 2 callersFunctionextract_user_id_from_session_token
(token: &str)
crates/tokscale-cli/src/cursor.rs:241
↓ 2 callersFunctionextract_yaml_frontmatter
(content: &str)
crates/tokscale-core/src/mcp.rs:148
↓ 2 callersFunctionfamily_matches
(key: &str, family: &str)
crates/tokscale-core/src/pricing/lookup.rs:1341
↓ 2 callersFunctionfamily_tier
Position of a model's family within its provider's lineup; lower tiers get darker shades. Only Anthropic has a known hierarchy — other providers rank
crates/tokscale-cli/src/tui/colors.rs:68
↓ 2 callersFunctionfar_future_reset_timestamp
An RFC3339 instant far enough ahead of "now" that `helpers::format_reset_time` always takes the absolute-date branch (`resets <month> <day> <time>`),
crates/tokscale-cli/src/tui/ui/usage.rs:2545
↓ 2 callersFunctionfetch
()
crates/tokscale-cli/src/commands/usage/amp.rs:142
↓ 2 callersFunctionfetch
()
crates/tokscale-cli/src/commands/usage/codex.rs:1290
↓ 2 callersFunctionfetchExistingDeviceDays
()
packages/frontend/src/app/api/submit/route.ts:276
↓ 2 callersFunctionfetchPeriodLeaderboardRows
( period: Exclude<Period, "all">, customFrom?: string, customTo?: string )
packages/frontend/src/lib/leaderboard/getLeaderboard.ts:279
↓ 2 callersFunctionfetch_all_report_inner
(intent: CodexFetchIntent)
crates/tokscale-cli/src/commands/usage/codex.rs:1400
↓ 2 callersFunctionfetch_all_with_errors
Fetch usage for every active provider in parallel, returning both the successful outputs and the per-provider errors. Previously a provider whose `fe
crates/tokscale-cli/src/commands/usage/mod.rs:373
↓ 2 callersFunctionfetch_and_cache_image
( client: &reqwest::Client, url: &str, filename: &str, )
crates/tokscale-cli/src/commands/wrapped.rs:1149
↓ 2 callersFunctionfetch_current_auth_report
(diagnostics: Vec<UsageFetchDiagnostic>)
crates/tokscale-cli/src/commands/usage/codex.rs:1353
↓ 2 callersFunctionfetch_session_artifact
( summary: &TrajectorySummary, connections: &[AntigravityConnection], )
crates/tokscale-cli/src/antigravity.rs:1991
↓ 2 callersMethodfetch_subscription_usage
(&mut self)
crates/tokscale-cli/src/tui/app.rs:937
↓ 2 callersMethodfetch_subscription_usage_preserving_status
(&mut self)
crates/tokscale-cli/src/tui/app.rs:941
↓ 2 callersMethodfetch_subscription_usage_with_status
(&mut self, preserve_status: bool)
crates/tokscale-cli/src/tui/app.rs:945
↓ 2 callersFunctionfetch_usage
( client: &reqwest::Client, token: &str, account_id: Option<&str>, )
crates/tokscale-cli/src/commands/usage/codex.rs:1011
↓ 2 callersFunctionfetch_usage
(client: &reqwest::Client, token: &str)
crates/tokscale-cli/src/commands/usage/kimi.rs:147
↓ 2 callersFunctionfetch_usage
(client: &reqwest::Client, token: &str)
crates/tokscale-cli/src/commands/usage/claude.rs:129
↓ 2 callersFunctionfile_fingerprint_parts
(path: &Path)
crates/tokscale-core/src/message_cache.rs:673
↓ 2 callersFunctionfindBestDay
(contributions: DailyContribution[])
packages/frontend/src/lib/utils.ts:277
↓ 2 callersFunctionfindPendingInviteByToken
(token: string)
packages/frontend/src/lib/groups/invites.ts:61
↓ 2 callersFunctionfind_kiro_snapshot_model_id
(value: &Value)
crates/tokscale-core/src/sessions/kiro.rs:458
↓ 2 callersFunctionfind_monthly_price
Find the monthly price for the pattern `\$(\d+)\s*/\s*mo`, e.g. `$20 / mo`, `$20/mo`. Returns (price, byte index of the `$` that matched).
crates/tokscale-cli/src/commands/usage/sakana.rs:123
↓ 2 callersFunctionfind_window_label_positions
Collect window label positions matching `>(5-hour|Weekly)<`, sorted by document order. Returns (byte index of the label, label).
crates/tokscale-cli/src/commands/usage/sakana.rs:250
↓ 2 callersFunctionfirst_positive
(values: &[Option<i64>])
crates/tokscale-core/src/sessions/tencent_buddy.rs:131
↓ 2 callersFunctionformatCompact
(value: number, kind: "number" | "currency")
packages/frontend/src/lib/format.ts:14
↓ 2 callersFunctionformat_cost_per_million
(cost: f64, total_tokens: i64)
crates/tokscale-cli/src/main.rs:3418
↓ 2 callersMethodfuzzy_match_litellm
( &self, model_id: &str, provider_id: Option<&str>, )
crates/tokscale-core/src/pricing/lookup.rs:1045
↓ 2 callersMethodfuzzy_match_openrouter
( &self, model_id: &str, provider_id: Option<&str>, )
crates/tokscale-core/src/pricing/lookup.rs:1077
↓ 2 callersFunctiongenerateProjectHash
()
packages/benchmarks/generate.ts:136
↓ 2 callersFunctiongenerateUniqueGroupSlug
( name: string, queryDb: SlugDb = db )
packages/frontend/src/lib/groups/slugs.ts:9
↓ 2 callersFunctiongenerate_graph
(options: ReportOptions)
crates/tokscale-core/src/lib.rs:2258
↓ 2 callersMethodget
(&self, path: &Path)
crates/tokscale-core/src/message_cache.rs:418
↓ 2 callersFunctiongetBaseUrl
()
packages/frontend/src/app/u/[username]/page.tsx:13
↓ 2 callersFunctiongetContributionHeightValue
(contribution: EmbedContributionDay)
packages/frontend/src/lib/embed/renderIsometric3DSvg.ts:163
↓ 2 callersFunctiongetContributionLocalDate
(contrib: { date: string; timestampMs?: number | null })
packages/frontend/src/lib/date-utils.ts:13
↓ 2 callersFunctiongetDb
()
packages/frontend/src/lib/db/index.ts:59
↓ 2 callersFunctiongetGradeColor
(palette: GraphColorPalette, intensity: 0 | 1 | 2 | 3 | 4)
packages/frontend/src/lib/themes.ts:106
↓ 2 callersFunctiongetGroupMemberCount
(groupId: string)
packages/frontend/src/lib/groups/queries.ts:22
↓ 2 callersFunctiongetMemoryUsage
()
packages/benchmarks/runner.ts:248
↓ 2 callersFunctiongetPalette
(name: ColorPaletteName)
packages/frontend/src/lib/themes.ts:103
↓ 2 callersFunctiongetStoredSettings
()
packages/frontend/src/lib/useSettings.ts:35
↓ 2 callersFunctionget_author_provider_name
Model ID prefix to provider name mapping. Translates model ID prefixes like `z-ai` to their corresponding provider names in the endpoints API, such a
crates/tokscale-core/src/pricing/openrouter.rs:67
↓ 2 callersFunctionget_cache_path
(filename: &str)
crates/tokscale-core/src/pricing/cache.rs:12
↓ 2 callersFunctionget_cache_path
()
crates/tokscale-cli/src/tui/remote.rs:176
↓ 2 callersFunctionget_cursor_credentials_path
()
crates/tokscale-cli/src/cursor.rs:102
↓ 2 callersFunctionget_date_range_label_for_date
( date: &DateRangeFlags, current_date: chrono::NaiveDate, )
crates/tokscale-cli/src/main.rs:1566
↓ 2 callersFunctionget_default_model_from_provider
Get default model name based on provider when model field is missing
crates/tokscale-core/src/sessions/droid.rs:95
↓ 2 callersFunctionget_font_cache_dir
()
crates/tokscale-cli/src/commands/wrapped.rs:1259
↓ 2 callersFunctionget_image_cache_dir
()
crates/tokscale-cli/src/commands/wrapped.rs:1255
↓ 2 callersMethodget_provider_display_name
(&self, provider: &str)
crates/tokscale-cli/src/tui/config.rs:63
↓ 2 callersMethodget_sorted_hourly
(&self)
crates/tokscale-cli/src/tui/app.rs:2334
↓ 2 callersFunctiongroupByWeek
(contributions: DailyContribution[], year: string)
packages/frontend/src/lib/utils.ts:20
↓ 2 callersFunctionhandleSaveDeviceName
(device: SettingsDevice)
packages/frontend/src/app/settings/SettingsClient.tsx:820
↓ 2 callersFunctionhandleTabChange
(tab: ActiveTab)
packages/frontend/src/app/(main)/leaderboard/GroupsBrowser.tsx:373
↓ 2 callersFunctionhardcoded_password
()
crates/tokscale-cli/src/trae.rs:725
↓ 2 callersFunctionhasUnsafeRelativeStart
(value: string)
packages/frontend/src/lib/auth/returnTo.ts:4
↓ 2 callersFunctionhas_codex_error
(error: &anyhow::Error, predicate: impl Fn(&CodexUsageError) -> bool)
crates/tokscale-cli/src/commands/usage/codex.rs:200
↓ 2 callersFunctionhas_cursor_usage_cache_in_home
(home_dir: &Path)
crates/tokscale-cli/src/cursor.rs:651
↓ 2 callersFunctionhas_non_empty_env_var
(name: &str)
crates/tokscale-cli/src/auth.rs:175
↓ 2 callersMethodhas_signal
(&self)
crates/tokscale-core/src/sessions/codebuff.rs:216
↓ 2 callersFunctionheadless_roots
(home_dir: &str)
crates/tokscale-core/src/scanner.rs:222
↓ 2 callersMethodhermes_db_paths
Return every Hermes SQLite database that should be parsed. Hermes has a default `state.db` path plus optional profile databases discovered through `s
crates/tokscale-core/src/scanner.rs:154
↓ 2 callersFunctionhexToRgba
(hex: string, alpha: number)
packages/frontend/src/lib/embed/embedShared.ts:194
↓ 2 callersFunctionhex_value
(byte: u8)
crates/tokscale-core/src/sessions/antigravity_cli.rs:268
↓ 2 callersFunctionhex_value
(byte: u8)
crates/tokscale-core/src/sessions/grok.rs:501
↓ 2 callersFunctionhourly_model_display_name
(group_by: &GroupBy, provider_id: &str, model: &str)
crates/tokscale-cli/src/tui/data/mod.rs:273
↓ 2 callersFunctionhourly_model_key
(group_by: &GroupBy, provider_id: &str, model: &str)
crates/tokscale-cli/src/tui/data/mod.rs:262
↓ 2 callersFunctionimport_unless_cancelled
Imports the login auth file unless the slot was cancelled, holding the slot lock across the cancelled check and the persistent import so the two are a
crates/tokscale-cli/src/tui/codex_login.rs:161
↓ 2 callersFunctioninsertPersonalToken
( client: PersonalTokenDb, { userId, name, expiresAt, }: { userId: string; name: str
packages/frontend/src/lib/auth/personalTokens.ts:60
↓ 2 callersFunctioninsert_child_session
(conn: &Connection, id: &str, parent_id: &str)
crates/tokscale-core/src/sessions/crush.rs:295
↓ 2 callersFunctioninsert_zed_thread
(conn: &rusqlite::Connection, id: &str, model: &str)
crates/tokscale-core/src/lib.rs:3505
↓ 2 callersMethodinto_contribution
(self, date: String)
crates/tokscale-core/src/aggregator.rs:408
↓ 2 callersMethodinto_unified
(self, thread_id: &str)
crates/tokscale-core/src/sessions/amp.rs:94
↓ 2 callersFunctionisValidContributionData
(data: unknown)
packages/frontend/src/lib/utils.ts:286
↓ 2 callersFunctionisValidDateString
(value: string | null)
packages/frontend/src/app/api/leaderboard/user/[username]/route.ts:13
↓ 2 callersFunctionis_agent_summary_span_record
(value: &Value, attributes: &Map<String, Value>)
crates/tokscale-core/src/sessions/copilot.rs:436
↓ 2 callersFunctionis_antigravity_process
(command: &str)
crates/tokscale-cli/src/antigravity.rs:923
↓ 2 callersFunctionis_command_not_found
(err: &anyhow::Error)
crates/tokscale-cli/src/antigravity.rs:1072
↓ 2 callersFunctionis_detailed_workbuddy_source
(path: &Path)
crates/tokscale-core/src/sessions/workbuddy.rs:30
← previousnext →1,001–1,100 of 4,973, ranked by callers