Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/junhoyeo/tokscale
/ functions
Functions
4,973 in github.com/junhoyeo/tokscale
⨍
Functions
4,973
◇
Types & classes
735
↓ 2 callers
Method
exact_match_models_dev
(&self, model_id: &str)
crates/tokscale-core/src/pricing/lookup.rs:927
↓ 2 callers
Method
exact_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 callers
Method
exact_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 callers
Method
exact_match_sakana
(&self, model_id: &str)
crates/tokscale-core/src/pricing/lookup.rs:963
↓ 2 callers
Function
exchange_token
Call the `ExchangeToken` endpoint to mint a new `access_token` from a `refresh_token`.
crates/tokscale-cli/src/trae.rs:431
↓ 2 callers
Function
expected_cursor_usage_cache_paths_in
(home_dir: &Path)
crates/tokscale-cli/src/cursor.rs:675
↓ 2 callers
Function
extra_scan_paths_for
( settings: &ScannerSettings, enabled: &HashSet<ClientId>, )
crates/tokscale-core/src/scanner.rs:400
↓ 2 callers
Function
extract_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 callers
Function
extract_codex_content
(jsonl_path: &Path, session_id: &str)
crates/tokscale-core/src/content_extractor.rs:145
↓ 2 callers
Function
extract_csrf_token
(command: &str)
crates/tokscale-cli/src/antigravity.rs:957
↓ 2 callers
Function
extract_declared_port
(command: &str)
crates/tokscale-cli/src/antigravity.rs:966
↓ 2 callers
Function
extract_flag_value
(command: &str, flag: &str)
crates/tokscale-cli/src/antigravity.rs:972
↓ 2 callers
Function
extract_gemini_content
(json_path: &Path, session_id: &str)
crates/tokscale-core/src/content_extractor.rs:231
↓ 2 callers
Function
extract_gemini_usage_from_value
(model: String, value: &Value)
crates/tokscale-core/src/sessions/gemini.rs:571
↓ 2 callers
Function
extract_json_array
(text: &str)
crates/tokscale-cli/src/commands/report.rs:979
↓ 2 callers
Function
extract_model_and_agent
(content: &str)
crates/tokscale-core/src/sessions/roocode.rs:113
↓ 2 callers
Function
extract_model_family
(model_id: &str)
crates/tokscale-core/src/pricing/lookup.rs:1273
↓ 2 callers
Function
extract_model_from_value
(value: &Value)
crates/tokscale-core/src/sessions/codex.rs:1105
↓ 2 callers
Function
extract_user_id_from_session_token
(token: &str)
crates/tokscale-cli/src/cursor.rs:241
↓ 2 callers
Function
extract_yaml_frontmatter
(content: &str)
crates/tokscale-core/src/mcp.rs:148
↓ 2 callers
Function
family_matches
(key: &str, family: &str)
crates/tokscale-core/src/pricing/lookup.rs:1341
↓ 2 callers
Function
family_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 callers
Function
far_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 callers
Function
fetch
()
crates/tokscale-cli/src/commands/usage/amp.rs:142
↓ 2 callers
Function
fetch
()
crates/tokscale-cli/src/commands/usage/codex.rs:1290
↓ 2 callers
Function
fetchExistingDeviceDays
()
packages/frontend/src/app/api/submit/route.ts:276
↓ 2 callers
Function
fetchPeriodLeaderboardRows
( period: Exclude<Period, "all">, customFrom?: string, customTo?: string )
packages/frontend/src/lib/leaderboard/getLeaderboard.ts:279
↓ 2 callers
Function
fetch_all_report_inner
(intent: CodexFetchIntent)
crates/tokscale-cli/src/commands/usage/codex.rs:1400
↓ 2 callers
Function
fetch_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 callers
Function
fetch_and_cache_image
( client: &reqwest::Client, url: &str, filename: &str, )
crates/tokscale-cli/src/commands/wrapped.rs:1149
↓ 2 callers
Function
fetch_current_auth_report
(diagnostics: Vec<UsageFetchDiagnostic>)
crates/tokscale-cli/src/commands/usage/codex.rs:1353
↓ 2 callers
Function
fetch_session_artifact
( summary: &TrajectorySummary, connections: &[AntigravityConnection], )
crates/tokscale-cli/src/antigravity.rs:1991
↓ 2 callers
Method
fetch_subscription_usage
(&mut self)
crates/tokscale-cli/src/tui/app.rs:937
↓ 2 callers
Method
fetch_subscription_usage_preserving_status
(&mut self)
crates/tokscale-cli/src/tui/app.rs:941
↓ 2 callers
Method
fetch_subscription_usage_with_status
(&mut self, preserve_status: bool)
crates/tokscale-cli/src/tui/app.rs:945
↓ 2 callers
Function
fetch_usage
( client: &reqwest::Client, token: &str, account_id: Option<&str>, )
crates/tokscale-cli/src/commands/usage/codex.rs:1011
↓ 2 callers
Function
fetch_usage
(client: &reqwest::Client, token: &str)
crates/tokscale-cli/src/commands/usage/kimi.rs:147
↓ 2 callers
Function
fetch_usage
(client: &reqwest::Client, token: &str)
crates/tokscale-cli/src/commands/usage/claude.rs:129
↓ 2 callers
Function
file_fingerprint_parts
(path: &Path)
crates/tokscale-core/src/message_cache.rs:673
↓ 2 callers
Function
findBestDay
(contributions: DailyContribution[])
packages/frontend/src/lib/utils.ts:277
↓ 2 callers
Function
findPendingInviteByToken
(token: string)
packages/frontend/src/lib/groups/invites.ts:61
↓ 2 callers
Function
find_kiro_snapshot_model_id
(value: &Value)
crates/tokscale-core/src/sessions/kiro.rs:458
↓ 2 callers
Function
find_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 callers
Function
find_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 callers
Function
first_positive
(values: &[Option<i64>])
crates/tokscale-core/src/sessions/tencent_buddy.rs:131
↓ 2 callers
Function
formatCompact
(value: number, kind: "number" | "currency")
packages/frontend/src/lib/format.ts:14
↓ 2 callers
Function
format_cost_per_million
(cost: f64, total_tokens: i64)
crates/tokscale-cli/src/main.rs:3418
↓ 2 callers
Method
fuzzy_match_litellm
( &self, model_id: &str, provider_id: Option<&str>, )
crates/tokscale-core/src/pricing/lookup.rs:1045
↓ 2 callers
Method
fuzzy_match_openrouter
( &self, model_id: &str, provider_id: Option<&str>, )
crates/tokscale-core/src/pricing/lookup.rs:1077
↓ 2 callers
Function
generateProjectHash
()
packages/benchmarks/generate.ts:136
↓ 2 callers
Function
generateUniqueGroupSlug
( name: string, queryDb: SlugDb = db )
packages/frontend/src/lib/groups/slugs.ts:9
↓ 2 callers
Function
generate_graph
(options: ReportOptions)
crates/tokscale-core/src/lib.rs:2258
↓ 2 callers
Method
get
(&self, path: &Path)
crates/tokscale-core/src/message_cache.rs:418
↓ 2 callers
Function
getBaseUrl
()
packages/frontend/src/app/u/[username]/page.tsx:13
↓ 2 callers
Function
getContributionHeightValue
(contribution: EmbedContributionDay)
packages/frontend/src/lib/embed/renderIsometric3DSvg.ts:163
↓ 2 callers
Function
getContributionLocalDate
(contrib: { date: string; timestampMs?: number | null })
packages/frontend/src/lib/date-utils.ts:13
↓ 2 callers
Function
getDb
()
packages/frontend/src/lib/db/index.ts:59
↓ 2 callers
Function
getGradeColor
(palette: GraphColorPalette, intensity: 0 | 1 | 2 | 3 | 4)
packages/frontend/src/lib/themes.ts:106
↓ 2 callers
Function
getGroupMemberCount
(groupId: string)
packages/frontend/src/lib/groups/queries.ts:22
↓ 2 callers
Function
getMemoryUsage
()
packages/benchmarks/runner.ts:248
↓ 2 callers
Function
getPalette
(name: ColorPaletteName)
packages/frontend/src/lib/themes.ts:103
↓ 2 callers
Function
getStoredSettings
()
packages/frontend/src/lib/useSettings.ts:35
↓ 2 callers
Function
get_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 callers
Function
get_cache_path
(filename: &str)
crates/tokscale-core/src/pricing/cache.rs:12
↓ 2 callers
Function
get_cache_path
()
crates/tokscale-cli/src/tui/remote.rs:176
↓ 2 callers
Function
get_cursor_credentials_path
()
crates/tokscale-cli/src/cursor.rs:102
↓ 2 callers
Function
get_date_range_label_for_date
( date: &DateRangeFlags, current_date: chrono::NaiveDate, )
crates/tokscale-cli/src/main.rs:1566
↓ 2 callers
Function
get_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 callers
Function
get_font_cache_dir
()
crates/tokscale-cli/src/commands/wrapped.rs:1259
↓ 2 callers
Function
get_image_cache_dir
()
crates/tokscale-cli/src/commands/wrapped.rs:1255
↓ 2 callers
Method
get_provider_display_name
(&self, provider: &str)
crates/tokscale-cli/src/tui/config.rs:63
↓ 2 callers
Method
get_sorted_hourly
(&self)
crates/tokscale-cli/src/tui/app.rs:2334
↓ 2 callers
Function
groupByWeek
(contributions: DailyContribution[], year: string)
packages/frontend/src/lib/utils.ts:20
↓ 2 callers
Function
handleSaveDeviceName
(device: SettingsDevice)
packages/frontend/src/app/settings/SettingsClient.tsx:820
↓ 2 callers
Function
handleTabChange
(tab: ActiveTab)
packages/frontend/src/app/(main)/leaderboard/GroupsBrowser.tsx:373
↓ 2 callers
Function
hardcoded_password
()
crates/tokscale-cli/src/trae.rs:725
↓ 2 callers
Function
hasUnsafeRelativeStart
(value: string)
packages/frontend/src/lib/auth/returnTo.ts:4
↓ 2 callers
Function
has_codex_error
(error: &anyhow::Error, predicate: impl Fn(&CodexUsageError) -> bool)
crates/tokscale-cli/src/commands/usage/codex.rs:200
↓ 2 callers
Function
has_cursor_usage_cache_in_home
(home_dir: &Path)
crates/tokscale-cli/src/cursor.rs:651
↓ 2 callers
Function
has_non_empty_env_var
(name: &str)
crates/tokscale-cli/src/auth.rs:175
↓ 2 callers
Method
has_signal
(&self)
crates/tokscale-core/src/sessions/codebuff.rs:216
↓ 2 callers
Function
headless_roots
(home_dir: &str)
crates/tokscale-core/src/scanner.rs:222
↓ 2 callers
Method
hermes_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 callers
Function
hexToRgba
(hex: string, alpha: number)
packages/frontend/src/lib/embed/embedShared.ts:194
↓ 2 callers
Function
hex_value
(byte: u8)
crates/tokscale-core/src/sessions/antigravity_cli.rs:268
↓ 2 callers
Function
hex_value
(byte: u8)
crates/tokscale-core/src/sessions/grok.rs:501
↓ 2 callers
Function
hourly_model_display_name
(group_by: &GroupBy, provider_id: &str, model: &str)
crates/tokscale-cli/src/tui/data/mod.rs:273
↓ 2 callers
Function
hourly_model_key
(group_by: &GroupBy, provider_id: &str, model: &str)
crates/tokscale-cli/src/tui/data/mod.rs:262
↓ 2 callers
Function
import_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 callers
Function
insertPersonalToken
( client: PersonalTokenDb, { userId, name, expiresAt, }: { userId: string; name: str
packages/frontend/src/lib/auth/personalTokens.ts:60
↓ 2 callers
Function
insert_child_session
(conn: &Connection, id: &str, parent_id: &str)
crates/tokscale-core/src/sessions/crush.rs:295
↓ 2 callers
Function
insert_zed_thread
(conn: &rusqlite::Connection, id: &str, model: &str)
crates/tokscale-core/src/lib.rs:3505
↓ 2 callers
Method
into_contribution
(self, date: String)
crates/tokscale-core/src/aggregator.rs:408
↓ 2 callers
Method
into_unified
(self, thread_id: &str)
crates/tokscale-core/src/sessions/amp.rs:94
↓ 2 callers
Function
isValidContributionData
(data: unknown)
packages/frontend/src/lib/utils.ts:286
↓ 2 callers
Function
isValidDateString
(value: string | null)
packages/frontend/src/app/api/leaderboard/user/[username]/route.ts:13
↓ 2 callers
Function
is_agent_summary_span_record
(value: &Value, attributes: &Map<String, Value>)
crates/tokscale-core/src/sessions/copilot.rs:436
↓ 2 callers
Function
is_antigravity_process
(command: &str)
crates/tokscale-cli/src/antigravity.rs:923
↓ 2 callers
Function
is_command_not_found
(err: &anyhow::Error)
crates/tokscale-cli/src/antigravity.rs:1072
↓ 2 callers
Function
is_detailed_workbuddy_source
(path: &Path)
crates/tokscale-core/src/sessions/workbuddy.rs:30
← previous
next →
1,001–1,100 of 4,973, ranked by callers