MCPcopy Create free account

hub / github.com/junhoyeo/tokscale / functions

Functions4,973 in github.com/junhoyeo/tokscale

↓ 2 callersFunctionis_headless_path
(path: &Path, headless_roots: &[PathBuf])
crates/tokscale-core/src/lib.rs:2290
↓ 2 callersFunctionis_kimi_code_path
Check whether a wire.jsonl path belongs to kimi-code. kimi-code writes `<root>/sessions/WORKSPACE/SESSION/agents/AGENT/wire.jsonl` while legacy kimi-
crates/tokscale-core/src/sessions/kimi.rs:127
↓ 2 callersFunctionis_needs_auth
(error: &anyhow::Error)
crates/tokscale-cli/src/commands/usage/codex.rs:214
↓ 2 callersFunctionis_opencode_db_filename
Returns true if `name` matches the opencode db naming rule: `opencode.db` or `opencode-<channel>.db` with `<channel>` drawn from the same `[a-zA-Z0-9.
crates/tokscale-core/src/scanner.rs:505
↓ 2 callersMethodis_refresh_expired
Whether `refresh_token` is expired (with a 1-day safety margin).
crates/tokscale-cli/src/trae.rs:165
↓ 2 callersFunctionis_single_digit_minor
(value: &str)
crates/tokscale-core/src/pricing/lookup.rs:1554
↓ 2 callersFunctionis_synthetic_gateway
Check if a message appears to have been routed through Synthetic's gateway.
crates/tokscale-core/src/sessions/synthetic.rs:50
↓ 2 callersMethodis_token_expired
Whether `access_token` is expired (with a 5-minute safety margin).
crates/tokscale-cli/src/trae.rs:158
↓ 2 callersFunctionjcode_journal_path
Resolve the append-only journal sidecar path for a Jcode session snapshot. Jcode persists recent changes in `session_*.journal.jsonl` until the next
crates/tokscale-core/src/sessions/jcode.rs:134
↓ 2 callersFunctionjson_scalar_string
(value: Option<serde_json::Value>)
crates/tokscale-cli/src/commands/usage/codex.rs:1169
↓ 2 callersFunctionjunie_options
(home: &Path)
crates/tokscale-core/tests/junie.rs:20
↓ 2 callersFunctionkey_has_version
(matched_lower: &str, version: &str)
crates/tokscale-core/tests/anthropic_catalog.rs:144
↓ 2 callersMethodkill_codex_login_child
Kills any in-flight `codex login` child process. Called on dismiss and on TUI exit so a dangling login can't keep holding the OAuth port.
crates/tokscale-cli/src/tui/app.rs:1191
↓ 2 callersFunctionlegacy_macos_config_dir
()
crates/tokscale-cli/src/paths.rs:26
↓ 2 callersFunctionline_text
(line: &Line<'_>)
crates/tokscale-cli/src/tui/ui/usage.rs:2630
↓ 2 callersFunctionlistPersonalTokens
(userId: string)
packages/frontend/src/lib/auth/personalTokens.ts:158
↓ 2 callersFunctionlist_accounts
()
crates/tokscale-cli/src/cursor.rs:395
↓ 2 callersFunctionlist_accounts
()
crates/tokscale-cli/src/commands/usage/codex.rs:748
↓ 2 callersFunctionllm_response
( timestamp: &str, model: &str, prompt: i64, completion: i64, cache_re
crates/tokscale-core/src/sessions/opencodereview.rs:165
↓ 2 callersFunctionload_active_credentials
()
crates/tokscale-cli/src/cursor.rs:623
↓ 2 callersFunctionload_cache_with_policy
( filename: &str, allow_stale: bool, )
crates/tokscale-core/src/pricing/cache.rs:22
↓ 2 callersFunctionload_cached_remote_stats
Load the cached stats if they are fresh (within TTL) and were fetched for the same account and API server. Returns `None` otherwise.
crates/tokscale-cli/src/tui/remote.rs:132
↓ 2 callersFunctionload_credentials
()
crates/tokscale-cli/src/warp.rs:121
↓ 2 callersFunctionload_credentials_store_for_fetch_intent
( intent: CodexFetchIntent, )
crates/tokscale-cli/src/commands/usage/codex.rs:1388
↓ 2 callersFunctionload_lookup
Build the lookup exactly as `PricingService` does for cached datasets (filter github_copilot, no cursor overrides needed for these ids, models.dev as
crates/tokscale-core/tests/anthropic_catalog.rs:153
↓ 2 callersFunctionload_or_parse_source_with_fingerprint_and_policy
( path: &Path, source_cache: &message_cache::SourceMessageCache, pricing: Option<&pric
crates/tokscale-core/src/lib.rs:641
↓ 2 callersFunctionload_star_cache
(username: &str)
crates/tokscale-cli/src/main.rs:4349
↓ 2 callersFunctionload_with_pricing
( loader: &DataLoader, enabled_clients: &[ClientId], group_by: &GroupBy, inclu
crates/tokscale-cli/src/tui/data/mod.rs:1294
↓ 2 callersFunctionloaderPresent
(prefix: string)
packages/cli/src/index.ts:91
↓ 2 callersFunctionlocal_date
(timestamp_ms: i64, timezone: &Tz)
crates/tokscale-core/src/sessionize.rs:361
↓ 2 callersFunctionlocal_day_start
(date: chrono::NaiveDate, timezone: &Tz)
crates/tokscale-core/src/sessionize.rs:371
↓ 2 callersMethodlock_path
(&self)
crates/tokscale-cli/src/commands/usage/codex.rs:267
↓ 2 callersFunctionlogout
()
crates/tokscale-cli/src/auth.rs:402
↓ 2 callersMethodlookup
(&self, model_id: &str)
crates/tokscale-core/src/pricing/custom.rs:240
↓ 2 callersMethodlookup_provider_scoped_path_litellm
( &self, model_id: &str, provider_id: Option<&str>, )
crates/tokscale-core/src/pricing/lookup.rs:787
↓ 2 callersMethodlookup_provider_scoped_path_openrouter
( &self, model_id: &str, provider_id: Option<&str>, )
crates/tokscale-core/src/pricing/lookup.rs:820
↓ 2 callersMethodlookup_with_source
( &self, model_id: &str, force_source: Option<&str>, )
crates/tokscale-core/src/pricing/lookup.rs:312
↓ 2 callersFunctionluminance
(hex: string)
packages/frontend/__tests__/components/modelColors.test.ts:13
↓ 2 callersFunctionmake_app
(clients: Vec<ClientFilter>)
crates/tokscale-cli/src/tui/ui/agents.rs:241
↓ 2 callersFunctionmake_app
(width: u16)
crates/tokscale-cli/src/tui/ui/daily.rs:578
↓ 2 callersFunctionmake_app
(width: u16)
crates/tokscale-cli/src/tui/ui/header.rs:141
↓ 2 callersFunctionmake_app
(width: u16)
crates/tokscale-cli/src/tui/ui/monthly.rs:585
↓ 2 callersFunctionmake_workspace_message
( client: &str, model_id: &str, provider_id: &str, session_id: &str, c
crates/tokscale-core/src/lib.rs:3295
↓ 2 callersFunctionmanifest_path
()
crates/tokscale-cli/src/trae.rs:1008
↓ 2 callersFunctionmap_single_provider
Display name for a SINGLE provider id (no comma-joined lists — the public `get_provider_display_name` splits those first).
crates/tokscale-cli/src/tui/ui/widgets.rs:403
↓ 2 callersFunctionmatches_provider_hint
(dataset_key: &str, provider_id: Option<&str>)
crates/tokscale-core/src/provider_identity.rs:87
↓ 2 callersFunctionmatching_account_id_for_tokens
( store: &CodexCredentialsStore, tokens: &Tokens, )
crates/tokscale-cli/src/commands/usage/codex.rs:1307
↓ 2 callersMethodmaybe_fetch_usage_on_entry
(&mut self)
crates/tokscale-cli/src/tui/app.rs:976
↓ 2 callersMethodmerge
(&mut self, other: DayAccumulator)
crates/tokscale-core/src/aggregator.rs:329
↓ 2 callersFunctionmerge_claude_duplicate
( existing: &mut UnifiedMessage, usage: &ClaudeUsage, parsed_timestamp: Option<i64>, request_s
crates/tokscale-core/src/sessions/claudecode.rs:759
↓ 2 callersFunctionmerge_export_candidates
( manifest: &AntigravityManifest, summaries: &[TrajectorySummary], filesystem: &[SessionCandidate]
crates/tokscale-cli/src/antigravity.rs:1575
↓ 2 callersFunctionmetric_detail_line
(app: &App, metric: &UsageMetric, width: usize)
crates/tokscale-cli/src/tui/ui/usage.rs:1609
↓ 2 callersFunctionmetric_from_window
(label: &str, window: &Window)
crates/tokscale-cli/src/commands/usage/codex.rs:1076
↓ 2 callersFunctionmigrate_cache_dir_from_old_path_in_home
(home_dir: &Path)
crates/tokscale-cli/src/cursor.rs:110
↓ 2 callersFunctionmigration_cache_dir
()
crates/tokscale-core/src/sessions/opencode.rs:371
↓ 2 callersFunctionmigration_cache_path
()
crates/tokscale-core/src/sessions/opencode.rs:375
↓ 2 callersFunctionmockBrowserSessionOnly
()
packages/frontend/__tests__/api/groupRoute.test.ts:136
↓ 2 callersFunctionmock_unified_message
Helper function to create mock UnifiedMessage
crates/tokscale-core/src/aggregator.rs:736
↓ 2 callersFunctionmodel_id
(model: Option<&str>)
crates/tokscale-core/src/sessions/jcode.rs:65
↓ 2 callersFunctionmodel_id_from_signals
(value: &Value)
crates/tokscale-core/src/sessions/grok.rs:235
↓ 2 callersFunctionmodel_report_token_totals
Sum the (input, output, cache_read, cache_write) token fields across model usage entries with saturating_add, so clamped (i64::MAX) entry buckets from
crates/tokscale-core/src/lib.rs:1916
↓ 2 callersFunctionmodel_version
Extracts a `(major, minor)` version from a model id: "claude-opus-4-6" -> (4, 6), "gpt-5.4" -> (5, 4), "gpt-4o" -> (4, 0), "claude-fable-5" -> (5, 0).
crates/tokscale-cli/src/tui/colors.rs:98
↓ 2 callersMethodmove_selection
(&mut self, delta: isize)
crates/tokscale-cli/src/tui/ui/dialog/source_picker.rs:65
↓ 2 callersFunctionnearest_credit_expiry_label
(buckets: &[(String, usize)])
crates/tokscale-cli/src/tui/ui/usage.rs:1477
↓ 2 callersFunctionnextResult
(queue: T[][])
packages/frontend/__tests__/api/devicePoll.test.ts:24
↓ 2 callersMethodnext_field
Yield the next `(field_number, value)` pair, or `None` at end-of-buffer or on a malformed/unsupported wire type. Group wire types (3/4) are deprecated
crates/tokscale-core/src/sessions/antigravity_cli.rs:318
↓ 2 callersMethodnext_visible_tab
(&self)
crates/tokscale-cli/src/tui/app.rs:1622
↓ 2 callersFunctionnon_negative_i32
(value: Option<i64>)
crates/tokscale-core/src/sessions/warp.rs:130
↓ 2 callersFunctionnormalizeClientId
(id: string)
packages/frontend/src/app/api/users/[username]/route.ts:13
↓ 2 callersFunctionnormalizeInvitedUsername
(username: string)
packages/frontend/src/lib/groups/utils.ts:29
↓ 2 callersFunctionnormalizeLegacyClientId
(id: unknown)
packages/frontend/src/lib/validation/submission.ts:115
↓ 2 callersFunctionnormalize_claude_family_bare_major
Canonical `claude-{family}-{major}` key for an id naming a modern major (>= 4) without a minor (claude-sonnet-5, opus-5, 4-opus). The major must be ad
crates/tokscale-core/src/pricing/lookup.rs:1469
↓ 2 callersFunctionnormalize_claude_family_minor
Canonical `claude-{family}-{major}-{minor}` key parsed from an id carrying an explicit single-digit minor for a modern major (>= 4), in either `family
crates/tokscale-core/src/pricing/lookup.rs:1439
↓ 2 callersFunctionnormalize_copilot_agent_name
(agent: &str)
crates/tokscale-core/src/sessions/mod.rs:127
↓ 2 callersFunctionnormalize_graphql_usage
(responses: &[Value])
crates/tokscale-cli/src/warp.rs:423
↓ 2 callersFunctionnormalize_hotkey
Normalize a key for *command* matching: a character key is remapped to its US-QWERTY positional equivalent; every other key code is left as-is. Do no
crates/tokscale-cli/src/tui/keymap.rs:145
↓ 2 callersFunctionnormalize_input_tokens
( input: i64, output: i64, cache_read: i64, cache_write: i64, reasoning: i64, )
crates/tokscale-core/src/sessions/copilot.rs:572
↓ 2 callersFunctionnormalize_model_name
Normalize model name from Droid's custom format e.g., "custom:Claude-Opus-4.5-Thinking-[Anthropic]-0" -> "claude-opus-4-5-thinking-0" e.g., "gemini-2.
crates/tokscale-core/src/sessions/droid.rs:42
↓ 2 callersFunctionnormalize_plan_name
(raw: &str)
crates/tokscale-cli/src/commands/usage/minimax.rs:75
↓ 2 callersFunctionnormalize_provider_hint
(provider_id: Option<&str>)
crates/tokscale-core/src/pricing/lookup.rs:2045
↓ 2 callersFunctionnormalize_trajectory_summary
(item: &Value, fingerprint: &str)
crates/tokscale-cli/src/antigravity.rs:2184
↓ 2 callersMethodobserve_total
(&mut self, total: i64, timestamp: i64)
crates/tokscale-core/src/sessions/grok.rs:55
↓ 2 callersFunctionopencode_duration_ms
(time: &OpenCodeTime)
crates/tokscale-core/src/sessions/opencode.rs:132
↓ 2 callersFunctionoutput_reset_label
(app: &App, output: &UsageOutput)
crates/tokscale-cli/src/tui/ui/usage.rs:2259
↓ 2 callersFunctionoutput_with_reset_credit_expiries
( provider: &str, account: Option<UsageAccount>, expiries: &[&str], )
crates/tokscale-cli/src/tui/ui/usage.rs:2570
↓ 2 callersFunctionoverall_readiness
(outputs: &[UsageOutput])
crates/tokscale-cli/src/tui/ui/usage.rs:2137
↓ 2 callersFunctionoverview_model_label
(group_by: &GroupBy, model: &str, workspace_label: Option<&str>)
crates/tokscale-cli/src/tui/ui/overview.rs:20
↓ 2 callersFunctionpaginateRankedUsers
( usersWithRanks: GroupLeaderboardUser[], page: number, limit: number, period: Period, sortBy: SortB
packages/frontend/src/lib/groups/getGroupLeaderboard.ts:104
↓ 2 callersFunctionparseIntSafe
(value: string | null, defaultValue: number)
packages/frontend/src/app/api/groups/route.ts:10
↓ 2 callersFunctionparseIntSafe
(value: string | null, defaultValue: number)
packages/frontend/src/app/api/groups/[slug]/leaderboard/route.ts:11
↓ 2 callersFunctionparseIntSafe
(value: string | null, defaultValue: number)
packages/frontend/src/app/api/leaderboard/route.ts:11
↓ 2 callersFunctionparseNullableStringField
( value: unknown, fieldName: string )
packages/frontend/src/app/api/groups/[slug]/route.ts:21
↓ 2 callersFunctionparseString
(value: unknown)
packages/frontend/src/app/api/groups/route.ts:16
↓ 2 callersFunctionparse_billing_json_metric
(value: &Value)
crates/tokscale-cli/src/commands/usage/grok.rs:313
↓ 2 callersFunctionparse_chat_id_to_millis
Convert a filesystem-safe `chatId` back to epoch milliseconds. Codebuff's `chatId` is the chat's ISO-8601 timestamp with the three `:` separators in
crates/tokscale-core/src/sessions/codebuff.rs:136
↓ 2 callersFunctionparse_claude_file_with_home
(path: &Path, home_dir: Option<&Path>)
crates/tokscale-core/src/sessions/claudecode.rs:313
↓ 2 callersFunctionparse_codex_entry_timestamp
(timestamp: Option<&str>)
crates/tokscale-core/src/sessions/codex.rs:797
↓ 2 callersFunctionparse_dataset
(content: &str)
crates/tokscale-core/src/pricing/models_dev.rs:42
↓ 2 callersFunctionparse_date_range
(since: &Option<String>, until: &Option<String>)
crates/tokscale-cli/src/commands/report.rs:1320
↓ 2 callersFunctionparse_direct_gemini_token_message
( value: &Value, model_hint: Option<String>, session_id: &str, fallback_timestamp: i64, )
crates/tokscale-core/src/sessions/gemini.rs:293
← previousnext →1,101–1,200 of 4,973, ranked by callers