MCPcopy Create free account

hub / github.com/junhoyeo/tokscale / functions

Functions4,973 in github.com/junhoyeo/tokscale

↓ 1 callersFunctioncreate_timezone_boundary_fixture_dir
()
crates/tokscale-cli/tests/cli_tests.rs:254
↓ 1 callersMethodcredentials_filename
(&self)
crates/tokscale-cli/src/trae.rs:116
↓ 1 callersFunctioncredit_nearest_expiry_line
(credits: &crate::commands::usage::UsageResetCredits)
crates/tokscale-cli/src/tui/ui/usage.rs:1472
↓ 1 callersFunctioncross_family_tokens
Map a fixture vendor/family token to the set of substrings that, if any appears in a matched key, would indicate a CROSS-FAMILY misresolution. Returns
crates/tokscale-core/tests/anthropic_catalog.rs:306
↓ 1 callersFunctioncrush_db_path
(data_dir: &Path)
crates/tokscale-core/src/scanner.rs:580
↓ 1 callersFunctioncurrent_count_label
(app: &App)
crates/tokscale-cli/src/tui/ui/footer.rs:151
↓ 1 callersFunctioncursor_setup_warnings_for_report
( home_dir: &Option<String>, clients: &Option<Vec<String>>, )
crates/tokscale-cli/src/main.rs:1260
↓ 1 callersFunctioncursor_usage_cache_is_fresh
True when the active cursor usage cache (`usage.csv`) was refreshed within `max_age` AND every secondary account cache is either fresh or a recent syn
crates/tokscale-cli/src/cursor.rs:752
↓ 1 callersFunctioncursor_usage_cache_is_fresh_in
(home_dir: &Path, max_age: Duration)
crates/tokscale-cli/src/cursor.rs:716
↓ 1 callersMethodcycle_theme
(&mut self)
crates/tokscale-cli/src/tui/app.rs:1838
↓ 1 callersMethoddaily_detail_date
(&self)
crates/tokscale-cli/src/tui/app.rs:2247
↓ 1 callersFunctiondaily_source_model_display_name
( group_by: &GroupBy, workspace_label: &str, provider_id: &str, model: &str, )
crates/tokscale-cli/src/tui/data/mod.rs:236
↓ 1 callersFunctiondaily_source_model_key
( group_by: &GroupBy, workspace_group_key: &str, provider_id: &str, model: &str, )
crates/tokscale-cli/src/tui/data/mod.rs:221
↓ 1 callersFunctiondata_source_label
Data-source indicator label (#699): "local" when only this machine's data is on screen, or "local+remote (N devices)" when server-side aggregated stat
crates/tokscale-cli/src/tui/ui/footer.rs:309
↓ 1 callersMethoddecrease_refresh_interval
(&mut self)
crates/tokscale-cli/src/tui/app.rs:2033
↓ 1 callersFunctiondecrypt_from_storage
(variant: TraeVariant)
crates/tokscale-cli/src/trae.rs:330
↓ 1 callersFunctiondedup_key_for_record
( source: CopilotUsageSource, record: &Value, attributes: &Map<String, Value>, trace_id: Optio
crates/tokscale-core/src/sessions/copilot.rs:512
↓ 1 callersFunctiondefault_color_palette
()
crates/tokscale-cli/src/tui/settings.rs:175
↓ 1 callersFunctiondefault_layout_variant_dir_from_session_path
(path: &Path)
crates/tokscale-core/src/cc_mirror.rs:57
↓ 1 callersFunctiondefault_message_count
()
crates/tokscale-core/src/sessions/mod.rs:84
↓ 1 callersFunctiondefault_submit_clients
()
crates/tokscale-cli/src/commands/autosubmit.rs:364
↓ 1 callersFunctionderive_dedup_key
Build a deterministic fallback dedup key for messages lacking a stable upstream id, combining session, timestamp, model and token breakdown so structu
crates/tokscale-core/src/sessions/gjc.rs:87
↓ 1 callersFunctionderive_dedup_key
Build a deterministic fallback dedup key for messages that don't expose a stable upstream id. Combines the session, timestamp, model and full token br
crates/tokscale-core/src/sessions/codebuff.rs:111
↓ 1 callersFunctiondeserialize_tokens
(value: &Value)
crates/tokscale-core/src/sessions/gemini.rs:51
↓ 1 callersMethoddesired_size
(&self, viewport: Rect)
crates/tokscale-cli/src/tui/ui/dialog/confirm.rs:199
↓ 1 callersFunctiondetect_plan
(metrics: &[UsageMetric])
crates/tokscale-cli/src/commands/usage/amp.rs:123
↓ 1 callersFunctiondetect_process_candidates
()
crates/tokscale-cli/src/antigravity.rs:739
↓ 1 callersFunctiondetect_unix_process_candidates
()
crates/tokscale-cli/src/antigravity.rs:752
↓ 1 callersFunctiondetect_windows_process_candidates
()
crates/tokscale-cli/src/antigravity.rs:823
↓ 1 callersFunctiondevice_file_path
()
crates/tokscale-cli/src/device.rs:74
↓ 1 callersFunctiondiagnostic_paths
(home_dir: &Path, desktop_paths: Vec<PathBuf>)
crates/tokscale-cli/src/claude_diagnostics.rs:96
↓ 1 callersFunctiondiagnostic_severity_color
(severity: UsageFetchDiagnosticSeverity)
crates/tokscale-cli/src/tui/ui/usage.rs:947
↓ 1 callersFunctiondiagnostic_severity_rank
(severity: UsageFetchDiagnosticSeverity)
crates/tokscale-cli/src/tui/ui/usage.rs:930
↓ 1 callersFunctiondiagnostics_for_clients_row
(home_dir: &Path)
crates/tokscale-cli/src/claude_diagnostics.rs:27
↓ 1 callersFunctiondiagnostics_for_empty_explicit_report
( home_dir: &Path, clients: &Option<Vec<String>>, claude_message_count: i32, )
crates/tokscale-cli/src/claude_diagnostics.rs:31
↓ 1 callersFunctiondisable
()
crates/tokscale-cli/src/commands/autosubmit.rs:192
↓ 1 callersFunctiondiscover_claude_project_roots
(home_dir: &Path)
crates/tokscale-core/src/cc_mirror.rs:22
↓ 1 callersFunctiondiscover_micode_dbs
Discover MiMo Code SQLite databases under the given data directory. Matches `mimocode.db` and `mimocode-<channel>.db` (channel names sanitized with t
crates/tokscale-core/src/scanner.rs:532
↓ 1 callersFunctiondisplay_name
(client: ClientId)
crates/tokscale-cli/src/tui/client_ui.rs:159
↓ 1 callersFunctiondraw_contribution_graph
( canvas: &mut RgbaImage, data: &WrappedData, x: i32, y: i32, width: i32, height: i32,
crates/tokscale-cli/src/commands/wrapped.rs:783
↓ 1 callersFunctiondraw_image
(canvas: &mut RgbaImage, source: &RgbaImage, x: i32, y: i32, width: i32, height: i32)
crates/tokscale-cli/src/commands/wrapped.rs:931
↓ 1 callersFunctionduration_between_ms
(start_ms: Option<i64>, end_ms: Option<i64>)
crates/tokscale-core/src/sessions/codex.rs:803
↓ 1 callersFunctionduration_ms_from_record
(value: &Value)
crates/tokscale-core/src/sessions/copilot.rs:654
↓ 1 callersFunctioneffective_total_from_signals
(value: &Value)
crates/tokscale-core/src/sessions/grok.rs:226
↓ 1 callersFunctionemail_display
(app: &App, email: Option<&str>)
crates/tokscale-cli/src/tui/ui/usage.rs:2330
↓ 1 callersFunctionembedded_cost
Reuse the embedded `usage.cost.total` (USD) only when present, finite, and non-negative. Otherwise return `0.0` so the dispatch pricing guard reprices
crates/tokscale-core/src/sessions/gjc.rs:77
↓ 1 callersFunctionemit_client_diagnostics
(diagnostics: &[claude_diagnostics::ClientDiagnostic])
crates/tokscale-cli/src/main.rs:1488
↓ 1 callersFunctionemptyStats
()
packages/frontend/src/app/api/me/stats/route.ts:38
↓ 1 callersFunctionenable
(args: AutosubmitEnableArgs)
crates/tokscale-cli/src/commands/autosubmit.rs:122
↓ 1 callersFunctionensure_config_dir_in_home
(home_dir: &Path)
crates/tokscale-cli/src/cursor.rs:227
↓ 1 callersFunctionensure_fonts_loaded
(client: &reqwest::Client)
crates/tokscale-cli/src/commands/wrapped.rs:1103
↓ 1 callersFunctionensure_sessions_dir
()
crates/tokscale-cli/src/trae.rs:1039
↓ 1 callersFunctionentry
(model_id: &str, pricing: &ModelPricing)
crates/tokscale-cli/src/main.rs:3338
↓ 1 callersFunctionepoch_to_ms
(ts: i64)
crates/tokscale-cli/src/commands/usage/minimax.rs:104
↓ 1 callersFunctionestimate_tokens_from_chars
(chars: usize)
crates/tokscale-core/src/sessions/claudecode.rs:1055
↓ 1 callersFunctionexact_model_display_name
(model: &str)
crates/tokscale-cli/src/commands/wrapped.rs:1774
↓ 1 callersFunctionexchangeCodeForToken
(code: string)
packages/frontend/src/lib/auth/github.ts:31
↓ 1 callersFunctionexecutable_path_looks_antigravity
(path: &str)
crates/tokscale-cli/src/antigravity.rs:908
↓ 1 callersFunctionexpand_config_dir
(raw: &str, home_dir: &Path, variant_dir: &Path)
crates/tokscale-core/src/cc_mirror.rs:119
↓ 1 callersFunctionexplicit_tool_result_input_tokens
(tool_result: &Value)
crates/tokscale-core/src/sessions/claudecode.rs:977
↓ 1 callersFunctionexplicitly_requests_claude
(clients: &Option<Vec<String>>)
crates/tokscale-cli/src/claude_diagnostics.rs:43
↓ 1 callersMethodexport_to_json
(&mut self)
crates/tokscale-cli/src/tui/app.rs:2111
↓ 1 callersFunctionextract_agent_id_from_text
Extract the `agentId` hex string from a tool_result text block. Matches the pattern `agentId: <alphanumeric>` written by Claude Code's Agent tool.
crates/tokscale-core/src/sessions/claudecode.rs:292
↓ 1 callersFunctionextract_claude_tool_result_message
( line: &str, context: ClaudeToolResultContext<'_>, )
crates/tokscale-core/src/sessions/claudecode.rs:827
↓ 1 callersFunctionextract_claude_tool_result_usage
(value: &Value)
crates/tokscale-core/src/sessions/claudecode.rs:889
↓ 1 callersFunctionextract_f64
(value: Option<&Value>)
crates/tokscale-core/src/sessions/roocode.rs:213
↓ 1 callersFunctionextract_gemini_usages
(stats: &Value, model_hint: Option<String>)
crates/tokscale-core/src/sessions/gemini.rs:552
↓ 1 callersFunctionextract_headless_usage
(value: &Value)
crates/tokscale-core/src/sessions/codex.rs:1072
↓ 1 callersFunctionextract_model
(payload: &CodexPayload)
crates/tokscale-core/src/sessions/codex.rs:989
↓ 1 callersFunctionextract_model_from_jsonl
Try to extract model name from JSONL file's system-reminder Looks for pattern: "Model: Claude Opus 4.5 Thinking [Anthropic]"
crates/tokscale-core/src/sessions/droid.rs:110
↓ 1 callersFunctionextract_model_id
(value: &Value)
crates/tokscale-core/src/sessions/grok.rs:420
↓ 1 callersFunctionextract_session_id
Extract session ID from the wire.jsonl path Path format: ~/.kimi/sessions/GROUP_ID/SESSION_UUID/wire.jsonl
crates/tokscale-core/src/sessions/kimi.rs:112
↓ 1 callersFunctionextract_session_id
(path: &Path)
crates/tokscale-core/src/sessions/roocode.rs:87
↓ 1 callersFunctionextract_session_id_from_kimi_code_path
Extract session ID from a kimi-code wire.jsonl path. Path format: ~/.kimi-code/sessions/WORKSPACE/SESSION_UUID/agents/AGENT/wire.jsonl
crates/tokscale-core/src/sessions/kimi.rs:136
↓ 1 callersFunctionextract_text_from_claude_message
(value: &Value)
crates/tokscale-core/src/content_extractor.rs:338
↓ 1 callersFunctionextract_timestamp_from_value
(value: &Value)
crates/tokscale-core/src/sessions/codex.rs:1125
↓ 1 callersFunctionextract_timestamp_ms
(value: &Value)
crates/tokscale-core/src/sessions/grok.rs:455
↓ 1 callersFunctionextract_tool_result_id
(tool_result: &Value)
crates/tokscale-core/src/sessions/claudecode.rs:964
↓ 1 callersFunctionextract_tool_result_input_tokens
(tool_result: &Value)
crates/tokscale-core/src/sessions/claudecode.rs:970
↓ 1 callersFunctionextract_total_tokens
(value: &Value)
crates/tokscale-core/src/sessions/grok.rs:439
↓ 1 callersFunctionextract_usage_from_run_state
Find the last assistant entry in `metadata.runState.sessionState. mainAgentState.messageHistory` and pull `providerOptions.usage` (or `providerOptions
crates/tokscale-core/src/sessions/codebuff.rs:281
↓ 1 callersFunctionextract_workspace_usage
(value: &Value)
crates/tokscale-cli/src/warp.rs:468
↓ 1 callersFunctionfallback_amp_timestamp
( explicit: Option<i64>, thread_created_ms: i64, file_mtime_ms: i64, )
crates/tokscale-core/src/sessions/amp.rs:114
↓ 1 callersFunctionfallback_cache_dir
()
crates/tokscale-core/src/message_cache.rs:77
↓ 1 callersFunctionfallback_session_timestamp_ms
(updated_at: i64, created_at: i64)
crates/tokscale-core/src/sessions/crush.rs:234
↓ 1 callersFunctionfetchAllTimeRows
(groupId: string, sortBy: SortBy)
packages/frontend/src/lib/groups/getGroupLeaderboard.ts:260
↓ 1 callersFunctionfetchApiTokens
()
packages/frontend/src/app/settings/SettingsClient.tsx:676
↓ 1 callersFunctionfetchDevices
(username: string)
packages/frontend/src/app/settings/SettingsClient.tsx:682
↓ 1 callersFunctionfetchGroupLeaderboardData
( groupId: string, period: Period, page: number, limit: number, sortBy: SortBy, search: string )
packages/frontend/src/lib/groups/getGroupLeaderboard.ts:327
↓ 1 callersFunctionfetchLeaderboardData
( period: Period, page: number, limit: number, sortBy: SortBy = "tokens", search: string = "", cus
packages/frontend/src/lib/leaderboard/getLeaderboard.ts:329
↓ 1 callersFunctionfetchPeriodRows
( groupId: string, period: Exclude<Period, "all"> )
packages/frontend/src/lib/groups/getGroupLeaderboard.ts:212
↓ 1 callersFunctionfetchUserEmbedContributions
(username: string)
packages/frontend/src/lib/embed/getUserEmbedStats.ts:122
↓ 1 callersFunctionfetchUserEmbedStats
(username: string, sortBy: EmbedSortBy)
packages/frontend/src/lib/embed/getUserEmbedStats.ts:38
↓ 1 callersFunctionfetchUserRank
( username: string, period: Period, sortBy: SortBy, customFrom?: string, customTo?: string )
packages/frontend/src/lib/leaderboard/getLeaderboard.ts:578
↓ 1 callersFunctionfetch_agent_billing
(timeout: Duration)
crates/tokscale-cli/src/commands/usage/grok.rs:145
↓ 1 callersFunctionfetch_all_models
Fetch all models and get author pricing for each
crates/tokscale-core/src/pricing/openrouter.rs:180
↓ 1 callersFunctionfetch_all_report
()
crates/tokscale-cli/src/commands/usage/codex.rs:1380
↓ 1 callersFunctionfetch_all_report_with_codex
(codex_fetch: fn() -> UsageFetchReport)
crates/tokscale-cli/src/commands/usage/mod.rs:460
↓ 1 callersFunctionfetch_all_report_with_intent
(intent: UsageFetchIntent)
crates/tokscale-cli/src/commands/usage/mod.rs:452
↓ 1 callersFunctionfetch_api
(client: &reqwest::Client, token: &str)
crates/tokscale-cli/src/commands/usage/copilot.rs:165
← previousnext →1,501–1,600 of 4,973, ranked by callers