MCPcopy Create free account

hub / github.com/junhoyeo/tokscale / functions

Functions4,973 in github.com/junhoyeo/tokscale

↓ 1 callersFunctionnormalizeSubmissionData
(data: unknown)
packages/frontend/src/app/api/submit/route.ts:27
↓ 1 callersFunctionnormalizeTokenName
(value: unknown)
packages/frontend/src/app/api/settings/tokens/route.ts:9
↓ 1 callersFunctionnormalize_anthropic_prefixed_claude_model
(model_id: &str)
crates/tokscale-core/src/lib.rs:101
↓ 1 callersFunctionnormalize_cached_agent_name
(agent: &str, clients: &str)
crates/tokscale-cli/src/tui/cache.rs:696
↓ 1 callersFunctionnormalize_category
Coerce parsed category/complexity to the allowed sets.
crates/tokscale-cli/src/commands/apple_fm.rs:519
↓ 1 callersFunctionnormalize_codex_workspace_key
(raw: &str)
crates/tokscale-core/src/sessions/codex.rs:243
↓ 1 callersFunctionnormalize_complexity
(raw: &str)
crates/tokscale-cli/src/commands/apple_fm.rs:526
↓ 1 callersFunctionnormalize_gemini_headless_input_and_cache
(input: i64, cached: i64)
crates/tokscale-core/src/sessions/gemini.rs:509
↓ 1 callersFunctionnormalize_gemini_session_input_and_cache
( input: i64, cached: i64, output: i64, reasoning: i64, tool: i64, total: Option<i64>,
crates/tokscale-core/src/sessions/gemini.rs:515
↓ 1 callersFunctionnormalize_oh_my_opencode_agent_name
(agent_lower: &str)
crates/tokscale-core/src/sessions/mod.rs:163
↓ 1 callersFunctionnormalize_subscription_tier
(raw: &str)
crates/tokscale-cli/src/commands/usage/grok.rs:233
↓ 1 callersFunctionnormalize_timestamp_ms
(timestamp: i64)
crates/tokscale-core/src/sessions/workbuddy.rs:160
↓ 1 callersFunctionnormalize_trae_model
Known mapping from Trae display names to tiktoken-style model ids. Unknown names fall through to the raw `model_name` from the API (mixed-case, space-
crates/tokscale-core/src/sessions/trae.rs:15
↓ 1 callersFunctionnormalize_trajectory_summaries
(response: &Value, fingerprint: &str)
crates/tokscale-cli/src/antigravity.rs:1956
↓ 1 callersFunctionnormalized_title
Normalize a title for exact-equality grouping of token-empty titles: full Unicode lowercase with whitespace collapsed. Used only to keep identical all
crates/tokscale-cli/src/commands/report.rs:536
↓ 1 callersFunctionnumber_value
(value: &Value)
crates/tokscale-core/src/sessions/junie.rs:247
↓ 1 callersFunctionnumeric_value
(value: &Value)
crates/tokscale-cli/src/commands/usage/grok.rs:253
↓ 1 callersFunctionold_cursor_cache_dir
(home_dir: &Path)
crates/tokscale-cli/src/cursor.rs:46
↓ 1 callersFunctionopen_browser
(url: &str)
crates/tokscale-cli/src/auth.rs:189
↓ 1 callersMethodopen_client_picker
(&mut self)
crates/tokscale-cli/src/tui/app.rs:1854
↓ 1 callersMethodopen_group_by_picker
(&mut self)
crates/tokscale-cli/src/tui/app.rs:1889
↓ 1 callersMethodopen_selected_daily_detail
(&mut self)
crates/tokscale-cli/src/tui/app.rs:1896
↓ 1 callersFunctionoutput_with_reset_credits
( provider: &str, account: Option<UsageAccount>, available_count: u32, expires
crates/tokscale-cli/src/tui/ui/usage.rs:2549
↓ 1 callersFunctionoverall_action
(app: &App, outputs: &[UsageOutput])
crates/tokscale-cli/src/tui/ui/usage.rs:2269
↓ 1 callersFunctionoverall_state_label
(outputs: &[UsageOutput])
crates/tokscale-cli/src/tui/ui/usage.rs:2166
↓ 1 callersFunctionoverview_color_key
(group_by: &GroupBy, model: &'a str)
crates/tokscale-cli/src/tui/ui/overview.rs:32
↓ 1 callersFunctionpackage_manifest_name
(package_dir: str)
scripts/check-release-workflow-safety.py:129
↓ 1 callersFunctionpad_selected_row
(spans: &mut Vec<Span<'static>>, width: usize, selected: bool)
crates/tokscale-cli/src/tui/ui/usage.rs:2035
↓ 1 callersFunctionparseArgs
()
packages/benchmarks/generate.ts:514
↓ 1 callersFunctionparseArgs
()
packages/benchmarks/runner.ts:96
↓ 1 callersFunctionparseColor
(color: string | undefined, fallback: string)
packages/frontend/src/lib/embed/renderProfileBadgeSvg.ts:89
↓ 1 callersFunctionparseCompact
(searchParams: URLSearchParams)
packages/frontend/src/app/api/embed/[username]/svg/route.ts:36
↓ 1 callersFunctionparseCompact
(searchParams: URLSearchParams)
packages/frontend/src/app/api/badge/[username]/svg/route.ts:28
↓ 1 callersFunctionparseGraph
(searchParams: URLSearchParams)
packages/frontend/src/app/api/embed/[username]/svg/route.ts:46
↓ 1 callersFunctionparseMetric
(searchParams: URLSearchParams)
packages/frontend/src/app/api/badge/[username]/svg/route.ts:15
↓ 1 callersFunctionparsePeriodParam
(value: string | null)
packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx:1013
↓ 1 callersFunctionparseProfilePeriod
(value: string | string[] | undefined)
packages/frontend/src/app/u/[username]/page.tsx:19
↓ 1 callersFunctionparseProfilePeriod
(value: string | null)
packages/frontend/src/app/api/users/[username]/route.ts:29
↓ 1 callersFunctionparseSort
(searchParams: URLSearchParams)
packages/frontend/src/app/api/embed/[username]/svg/route.ts:41
↓ 1 callersFunctionparseSort
(searchParams: URLSearchParams)
packages/frontend/src/app/api/badge/[username]/svg/route.ts:24
↓ 1 callersFunctionparseString
(value: unknown)
packages/frontend/src/app/api/groups/[slug]/route.ts:17
↓ 1 callersFunctionparseStyle
(searchParams: URLSearchParams)
packages/frontend/src/app/api/badge/[username]/svg/route.ts:20
↓ 1 callersFunctionparseTheme
(searchParams: URLSearchParams)
packages/frontend/src/app/api/embed/[username]/svg/route.ts:32
↓ 1 callersFunctionparseView
(searchParams: URLSearchParams)
packages/frontend/src/app/api/embed/[username]/svg/route.ts:51
↓ 1 callersFunctionparse_amp_ledger_records
( usage_ledger: Option<AmpUsageLedger>, thread_created_ms: i64, file_mtime_ms: i64, )
crates/tokscale-core/src/sessions/amp.rs:125
↓ 1 callersFunctionparse_amp_message_records
( thread_messages: Option<Vec<AmpMessage>>, thread_created_ms: i64, file_mtime_ms: i64, )
crates/tokscale-core/src/sessions/amp.rs:170
↓ 1 callersFunctionparse_amp_timestamp
(timestamp: Option<String>)
crates/tokscale-core/src/sessions/amp.rs:107
↓ 1 callersFunctionparse_api_req_started_payload
(text: &str)
crates/tokscale-core/src/sessions/roocode.rs:189
↓ 1 callersFunctionparse_billing_config_proto
(data: &[u8])
crates/tokscale-cli/src/commands/usage/grok.rs:507
↓ 1 callersFunctionparse_billing_json_object
(value: &Value)
crates/tokscale-cli/src/commands/usage/grok.rs:324
↓ 1 callersFunctionparse_claude_headless_json
( path: &Path, session_id: &str, fallback_timestamp: i64, workspace_key: Option<String>, w
crates/tokscale-core/src/sessions/claudecode.rs:1078
↓ 1 callersFunctionparse_codex_headless_line
( line: &str, session_id: &str, current_model: &mut Option<String>, fallback_timestamp: i64,
crates/tokscale-core/src/sessions/codex.rs:1015
↓ 1 callersFunctionparse_cost
Parse a cost string like "$0.50" or "0.50" to f64 Returns 0.0 for empty strings, NaN values, or invalid formats
crates/tokscale-core/src/sessions/cursor.rs:57
↓ 1 callersFunctionparse_date_value
Parse `Month D, YYYY` from the start of `s`.
crates/tokscale-cli/src/commands/usage/sakana.rs:365
↓ 1 callersFunctionparse_entry_timestamp
(ts: Option<&Value>)
crates/tokscale-core/src/sessions/roocode.rs:165
↓ 1 callersFunctionparse_gemini_headless_value
( value: &Value, session_id: &str, fallback_timestamp: i64, )
crates/tokscale-core/src/sessions/gemini.rs:439
↓ 1 callersFunctionparse_gemini_session
(session: GeminiSession, fallback_timestamp: i64)
crates/tokscale-core/src/sessions/gemini.rs:227
↓ 1 callersFunctionparse_hermes_sqlite_with_pricing
( db_path: &Path, pricing: Option<&pricing::PricingService>, )
crates/tokscale-core/src/lib.rs:2346
↓ 1 callersFunctionparse_interval_minutes
(input: &str)
crates/tokscale-cli/src/commands/autosubmit.rs:320
↓ 1 callersFunctionparse_iso8601_timestamp_ms
(value: &str)
crates/tokscale-core/src/sessions/copilot_desktop.rs:228
↓ 1 callersFunctionparse_kiro_global_storage_file
(path: &Path)
crates/tokscale-core/src/sessions/kiro.rs:507
↓ 1 callersFunctionparse_local_naive_timestamp_ms
(value: &str)
crates/tokscale-core/src/sessions/tencent_buddy.rs:429
↓ 1 callersFunctionparse_log_timestamp_ms
(line: &str)
crates/tokscale-core/src/sessions/tencent_buddy.rs:405
↓ 1 callersFunctionparse_model_config
(json: &str)
crates/tokscale-core/src/sessions/goose.rs:21
↓ 1 callersFunctionparse_model_prepared_line
(line: &str)
crates/tokscale-core/src/sessions/tencent_buddy.rs:383
↓ 1 callersFunctionparse_needs
(block: list[str])
scripts/check-release-workflow-safety.py:148
↓ 1 callersFunctionparse_port_from_line
(line: &str)
crates/tokscale-cli/src/antigravity.rs:1090
↓ 1 callersFunctionparse_port_from_windows_address
(address: &str)
crates/tokscale-cli/src/antigravity.rs:1053
↓ 1 callersFunctionparse_ports
(output: &str)
crates/tokscale-cli/src/antigravity.rs:1080
↓ 1 callersFunctionparse_reset_value
Parse `Month D, YYYY at H:MM AM/PM` from the start of `s`.
crates/tokscale-cli/src/commands/usage/sakana.rs:329
↓ 1 callersFunctionparse_session
Parse a single session JSON object into a `UnifiedMessage`.
crates/tokscale-core/src/sessions/trae.rs:50
↓ 1 callersFunctionparse_subscription_plan
(value: &Value)
crates/tokscale-cli/src/commands/usage/grok.rs:240
↓ 1 callersFunctionparse_summary
Parse the FM-returned JSON into a [`SessionSummary`], coercing invalid enum values. Returns `None` if the JSON is unusable.
crates/tokscale-cli/src/commands/apple_fm.rs:536
↓ 1 callersFunctionparse_thread_row
(db_path: &Path, row: ZedThreadRow)
crates/tokscale-core/src/sessions/zed.rs:134
↓ 1 callersFunctionparse_timestamp
(values: &[Option<&Value>])
crates/tokscale-cli/src/antigravity.rs:2240
↓ 1 callersFunctionparse_usage_row
(value: &Value, fallback_model: Option<&str>)
crates/tokscale-core/src/sessions/antigravity.rs:48
↓ 1 callersFunctionparse_windows
Build one window per on-page label (`5-hour` / `Weekly`), binding the percentage and reset time that STRUCTURALLY belong to that label — the first of
crates/tokscale-cli/src/commands/usage/sakana.rs:276
↓ 1 callersFunctionparse_windows_netstat_ports
(output: &str, pid: u32)
crates/tokscale-cli/src/antigravity.rs:1027
↓ 1 callersFunctionparsed_event_kind
Resolve the event's kind from the parsed JSON, preferring the top-level `kind` and falling back to the nested `event.agentEvent.kind`. Used to make sk
crates/tokscale-core/src/sessions/junie.rs:183
↓ 1 callersFunctionparsed_to_unified
(msg: &ParsedMessage, cost: f64)
crates/tokscale-core/src/lib.rs:3168
↓ 1 callersFunctionpercent_decode
(input: &str)
crates/tokscale-core/src/sessions/antigravity_cli.rs:250
↓ 1 callersFunctionpid_is_alive
(pid: u32)
crates/tokscale-cli/src/antigravity.rs:446
↓ 1 callersFunctionpid_is_alive
(pid: u32)
crates/tokscale-cli/src/trae.rs:1183
↓ 1 callersFunctionplain_http_identity_probe_request
(port: u16, csrf_token: &str, method: &str)
crates/tokscale-cli/src/antigravity.rs:1247
↓ 1 callersMethodpoll_codex_login
(&mut self)
crates/tokscale-cli/src/tui/app.rs:703
↓ 1 callersMethodpoll_remote_stats
Poll the background remote stats fetch. Errors are silent: the sender is simply dropped without a payload and the TUI stays local-only.
crates/tokscale-cli/src/tui/app.rs:1088
↓ 1 callersFunctionpopulate_wiki_from_sessions
(db: &WikiDb, opts: &ReportOptions)
crates/tokscale-cli/src/commands/report.rs:104
↓ 1 callersFunctionpositive_token_total
(tokens: &TokenBreakdown)
crates/tokscale-core/src/lib.rs:1901
↓ 1 callersFunctionpositive_unified_token_total
(tokens: &tokscale_core::TokenBreakdown)
crates/tokscale-cli/src/tui/data/mod.rs:202
↓ 1 callersFunctionprefers_model_part_key
Deterministic provider choice when multiple models.dev providers share a model part: the canonical `anthropic/` namespace wins outright; otherwise the
crates/tokscale-core/src/pricing/lookup.rs:1884
↓ 1 callersFunctionprefix_contains_antigravity_marker
(body: &str)
crates/tokscale-cli/src/antigravity.rs:1338
↓ 1 callersFunctionprependApiToken
(tokens: ApiToken[], token: ApiToken)
packages/frontend/src/app/settings/SettingsClient.tsx:661
↓ 1 callersFunctionpricing
(input: f64, output: f64)
crates/tokscale-core/src/pricing/custom.rs:394
↓ 1 callersFunctionpricing_multiplier
(message: &UnifiedMessage)
crates/tokscale-core/src/lib.rs:2300
↓ 1 callersFunctionprime_override_pricing_cache
(config_dir: &Path)
crates/tokscale-cli/tests/cli_tests.rs:29
↓ 1 callersFunctionprintSummary
(result: BenchmarkResult)
packages/benchmarks/runner.ts:413
↓ 1 callersFunctionprint_daily_breakdown
(entries: &[WikiEntry], full: bool)
crates/tokscale-cli/src/commands/report.rs:1133
↓ 1 callersFunctionprint_session_list
(entries: &[WikiEntry], full: bool)
crates/tokscale-cli/src/commands/report.rs:1187
↓ 1 callersFunctionprobe_endpoint_identity
(port: u16, csrf_token: &str)
crates/tokscale-cli/src/antigravity.rs:1214
↓ 1 callersFunctionprobe_heartbeat
(port: u16, csrf_token: &str)
crates/tokscale-cli/src/antigravity.rs:1116
← previousnext →1,901–2,000 of 4,973, ranked by callers