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
↓ 1 callers
Function
getYearDates
(year: string)
packages/frontend/src/lib/utils.ts:46
↓ 1 callers
Method
get_auto_refresh_interval
(&self)
crates/tokscale-cli/src/tui/settings.rs:370
↓ 1 callers
Function
get_client_color
(client: &str)
crates/tokscale-cli/src/tui/ui/widgets.rs:337
↓ 1 callers
Method
get_client_color
(&self, client: &str)
crates/tokscale-cli/src/tui/config.rs:56
↓ 1 callers
Function
get_client_display_name
(client: &str)
crates/tokscale-cli/src/tui/ui/widgets.rs:364
↓ 1 callers
Method
get_client_display_name
(&self, client: &str)
crates/tokscale-cli/src/tui/config.rs:70
↓ 1 callers
Method
get_entry
Get a single entry by session_id.
crates/tokscale-core/src/wiki.rs:455
↓ 1 callers
Method
get_existing_session_ids
Get all session IDs that are already in the wiki.
crates/tokscale-core/src/wiki.rs:157
↓ 1 callers
Function
get_headless_roots
(home_dir: &Path)
crates/tokscale-cli/src/main.rs:3930
↓ 1 callers
Function
get_hourly_report
Generate hourly usage report, keyed by "YYYY-MM-DD HH:00". Derives the hour slot from `UnifiedMessage.timestamp` (Unix ms). Falls back to date + "00:
crates/tokscale-core/src/lib.rs:2076
↓ 1 callers
Function
get_model_report
(options: ReportOptions)
crates/tokscale-core/src/lib.rs:1930
↓ 1 callers
Function
get_monthly_report
(options: ReportOptions)
crates/tokscale-core/src/lib.rs:1984
↓ 1 callers
Method
get_native_timeout
(&self)
crates/tokscale-cli/src/tui/settings.rs:378
↓ 1 callers
Method
get_provider_color
(&self, provider: &str)
crates/tokscale-cli/src/tui/config.rs:49
↓ 1 callers
Function
get_provider_display_name
(provider: &str)
crates/tokscale-cli/src/tui/ui/widgets.rs:379
↓ 1 callers
Function
get_provider_from_model
(model: &str)
crates/tokscale-core/src/sessions/droid.rs:90
↓ 1 callers
Function
get_provider_from_model
Get provider from model name
crates/tokscale-core/src/sessions/amp.rs:74
↓ 1 callers
Function
get_provider_from_model
(model_id: &str)
crates/tokscale-cli/src/commands/wrapped.rs:1520
↓ 1 callers
Function
get_scanner_state
(frame: usize)
crates/tokscale-cli/src/tui/ui/spinner.rs:23
↓ 1 callers
Function
get_stacked_bar_content
( bar_data: &StackedBarData, total: f64, row_threshold: f64, prev_threshold: f64, threshol
crates/tokscale-cli/src/tui/ui/bar_chart.rs:192
↓ 1 callers
Function
get_time_metrics_report
(options: ReportOptions)
crates/tokscale-core/src/lib.rs:2225
↓ 1 callers
Function
get_token_and_host
Obtain the access token + host for a variant. Host is read from the credentials cache, with a hardcoded fallback.
crates/tokscale-cli/src/trae.rs:483
↓ 1 callers
Method
get_unsummarized_session_ids_in_range
( &self, since: Option<i64>, until: Option<i64>, )
crates/tokscale-core/src/wiki.rs:231
↓ 1 callers
Function
gh_config_dir
()
crates/tokscale-cli/src/commands/usage/copilot.rs:45
↓ 1 callers
Function
grok_home
()
crates/tokscale-cli/src/commands/usage/grok.rs:31
↓ 1 callers
Function
groupClientsByType
(clients: ClientContribution[])
packages/frontend/src/lib/utils.ts:297
↓ 1 callers
Function
handleClientToggle
(client: ClientType)
packages/frontend/src/components/GraphControls.tsx:266
↓ 1 callers
Function
handleKeyDown
(e: React.KeyboardEvent, currentIndex: number)
packages/frontend/src/components/TabBar.tsx:72
↓ 1 callers
Function
handleKeyDown
(e: React.KeyboardEvent, currentIndex: number)
packages/frontend/src/components/profile/index.tsx:630
↓ 1 callers
Function
handleRevokeToken
(tokenId: string)
packages/frontend/src/app/settings/SettingsClient.tsx:751
↓ 1 callers
Method
handle_click_action
(&mut self, action: ClickAction)
crates/tokscale-cli/src/tui/app.rs:1103
↓ 1 callers
Method
handle_graph_selection
(&mut self)
crates/tokscale-cli/src/tui/app.rs:2126
↓ 1 callers
Method
handle_key
Handle a key event, returns true if the event was consumed
crates/tokscale-cli/src/tui/ui/dialog/stack.rs:89
↓ 1 callers
Method
handle_mouse
Handle a mouse event, returns true if the event was consumed
crates/tokscale-cli/src/tui/ui/dialog/stack.rs:110
↓ 1 callers
Function
hasGroupRole
(userRole: GroupRole, requiredRole: GroupRole)
packages/frontend/src/lib/groups/utils.ts:21
↓ 1 callers
Function
has_active_credentials_in_home
(home_dir: &Path)
crates/tokscale-cli/src/cursor.rs:628
↓ 1 callers
Function
has_any_usable_pricing
Returns true if the pricing entry has at least one usable cost field (base or above-200k tier). Entries with all-None pricing (e.g. subscription-based
crates/tokscale-core/src/pricing/lookup.rs:1611
↓ 1 callers
Function
has_any_valid_above_tier_value
(pricing: &ModelPricing)
crates/tokscale-core/src/pricing/lookup.rs:1645
↓ 1 callers
Method
has_authoritative_cost
(&self)
crates/tokscale-core/src/sessions/mod.rs:387
↓ 1 callers
Function
has_credentials
Whether the variant has usable credentials (no network calls).
crates/tokscale-cli/src/trae.rs:571
↓ 1 callers
Function
has_cursor_usage_cache
()
crates/tokscale-cli/src/cursor.rs:667
↓ 1 callers
Function
has_meaningful_tier_support
(pricing: &ModelPricing)
crates/tokscale-core/src/pricing/lookup.rs:1664
↓ 1 callers
Function
has_unrecognized_claude_four_minor
(model_id: &str)
crates/tokscale-core/src/pricing/lookup.rs:1830
↓ 1 callers
Function
has_usage_cache_in_home
(home_dir: &Path)
crates/tokscale-cli/src/warp.rs:135
↓ 1 callers
Method
has_visible_data
(&self)
crates/tokscale-cli/src/tui/app.rs:594
↓ 1 callers
Function
hash_bytes
(bytes: &[u8])
crates/tokscale-core/src/message_cache.rs:664
↓ 1 callers
Function
heartbeat_response_looks_well_formed
(body: &str)
crates/tokscale-cli/src/antigravity.rs:1205
↓ 1 callers
Function
heartbeat_value_looks_well_formed
(value: &Value)
crates/tokscale-cli/src/antigravity.rs:1201
↓ 1 callers
Function
hexToNumber
(hex: string)
packages/frontend/src/lib/utils.ts:282
↓ 1 callers
Function
hexToRgb
(hex: string)
packages/frontend/src/lib/embed/embedShared.ts:186
↓ 1 callers
Function
hidden_expiry_count
(buckets: &[(String, usize)])
crates/tokscale-cli/src/tui/ui/usage.rs:1507
↓ 1 callers
Function
home_dir
()
crates/tokscale-cli/src/antigravity.rs:21
↓ 1 callers
Function
hour_bucket_with_fallback
Derive an hour-truncated NaiveDateTime from `msg.timestamp` when present, otherwise fall back to `msg.date`'s 00:00 bucket so messages with missing ti
crates/tokscale-cli/src/tui/data/mod.rs:967
↓ 1 callers
Function
hourly_model_info_from_cached
(key: &str, value: CachedHourlyModelInfo)
crates/tokscale-cli/src/tui/cache.rs:401
↓ 1 callers
Function
https_identity_probe_request
(port: u16, csrf_token: &str, method: &str)
crates/tokscale-cli/src/antigravity.rs:1236
↓ 1 callers
Function
identity_count_label
(saved: usize, managed: usize)
crates/tokscale-cli/src/tui/ui/usage.rs:145
↓ 1 callers
Function
import_current_account
(label: Option<&str>)
crates/tokscale-cli/src/commands/usage/codex.rs:1573
↓ 1 callers
Function
import_login_auth_file
Imports a freshly logged-in `auth.json` (from the TUI's temporary `CODEX_HOME`) into the store without activating it. Before importing, the codex CLI
crates/tokscale-cli/src/commands/usage/codex.rs:895
↓ 1 callers
Method
include_synthetic
Whether the user has Synthetic enabled. Boundary helper for code paths that still take a separate `bool include_synthetic` argument.
crates/tokscale-cli/src/tui/app.rs:1883
↓ 1 callers
Method
increase_refresh_interval
(&mut self)
crates/tokscale-cli/src/tui/app.rs:2019
↓ 1 callers
Function
infer_plan
(total: i64)
crates/tokscale-cli/src/commands/usage/minimax.rs:89
↓ 1 callers
Function
infer_provider
(model: &str)
crates/tokscale-core/src/sessions/antigravity.rs:107
↓ 1 callers
Function
infer_provider
Provider inference from model name
crates/tokscale-core/src/sessions/cursor.rs:51
↓ 1 callers
Method
init_remote_stats
Cache-first load of server-side aggregated multi-device stats. Called once at TUI startup; the background refresh for a stale or missing cache is driv
crates/tokscale-cli/src/tui/app.rs:1024
↓ 1 callers
Function
install_cron_block
(block: &str)
crates/tokscale-cli/src/commands/autosubmit.rs:655
↓ 1 callers
Function
install_scheduler
( scheduler: SchedulerKind, exe: &Path, settings: &AutosubmitSettings, )
crates/tokscale-cli/src/commands/autosubmit.rs:396
↓ 1 callers
Method
into_model_pricing
(self)
crates/tokscale-core/src/pricing/custom.rs:67
↓ 1 callers
Function
invite
()
packages/frontend/__tests__/api/groupInviteCacheControl.test.ts:89
↓ 1 callers
Function
isAdminRole
(role: GroupRole | undefined)
packages/frontend/src/app/(main)/groups/[slug]/GroupDetailClient.tsx:351
↓ 1 callers
Function
isFirstContributionAfter
(login: string, thresholdDate: string)
scripts/generate-release-notes.ts:138
↓ 1 callers
Function
isFullWidth
(code: number)
packages/frontend/src/lib/embed/renderProfileBadgeSvg.ts:48
↓ 1 callers
Function
isSelfReference
(p: string)
packages/cli/src/index.ts:212
↓ 1 callers
Function
isUniqueConstraintViolation
(error: unknown)
packages/frontend/src/app/api/submit/route.ts:78
↓ 1 callers
Function
isValidCustomDateRange
( from: string | null | undefined, to: string | null | undefined )
packages/frontend/src/lib/leaderboard/dateRange.ts:23
↓ 1 callers
Function
isValidLeaderboardData
(data: unknown)
packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx:920
↓ 1 callers
Function
is_agent_turn_log_record
(value: &Value, attributes: &Map<String, Value>)
crates/tokscale-core/src/sessions/copilot.rs:460
↓ 1 callers
Function
is_aggregate_only_warp_row
(client: &tokscale_core::ClientContribution)
crates/tokscale-cli/src/main.rs:4801
↓ 1 callers
Function
is_api_error
(resp: &ApiResponse)
crates/tokscale-cli/src/commands/usage/minimax_tokenplan.rs:84
↓ 1 callers
Function
is_api_error
(resp: &ApiResponse)
crates/tokscale-cli/src/commands/usage/minimax.rs:66
↓ 1 callers
Function
is_assistant_role
(msg: &Value)
crates/tokscale-core/src/sessions/codebuff.rs:182
↓ 1 callers
Function
is_auth_error
(resp: &ApiResponse)
crates/tokscale-cli/src/commands/usage/minimax_tokenplan.rs:77
↓ 1 callers
Function
is_auth_error
(resp: &ApiResponse)
crates/tokscale-cli/src/commands/usage/minimax.rs:51
↓ 1 callers
Function
is_better_summary
(next: &TrajectorySummary, current: &TrajectorySummary)
crates/tokscale-cli/src/antigravity.rs:2209
↓ 1 callers
Function
is_chat_span_record
(value: &Value, attributes: &Map<String, Value>)
crates/tokscale-core/src/sessions/copilot.rs:421
↓ 1 callers
Function
is_combining_mark
Reduce a title to its set of SIGNIFICANT tokens: lowercase, strip punctuation/ellipsis, collapse whitespace, drop generic verbs/stopwords. The returne
crates/tokscale-cli/src/commands/report.rs:490
↓ 1 callers
Function
is_cursor_usage_csv_filename
(name: &str)
crates/tokscale-cli/src/cursor.rs:634
↓ 1 callers
Function
is_human_turn
Returns true if a `type: "user"` JSONL entry is genuine human input (not tool results or system messages).
crates/tokscale-core/src/sessions/claudecode.rs:1236
↓ 1 callers
Function
is_inference_log_record
(value: &Value, attributes: &Map<String, Value>)
crates/tokscale-core/src/sessions/copilot.rs:451
↓ 1 callers
Function
is_jsonl_source
(path: &Path)
crates/tokscale-core/src/sessions/tencent_buddy.rs:371
↓ 1 callers
Function
is_kiro_global_storage_path
(path: &Path)
crates/tokscale-core/src/sessions/kiro.rs:340
↓ 1 callers
Function
is_legacy_tokenless_cursor_row
Cursor's pre-2025-05 exports include `premium-tool-call` rows billed per tool invocation with no token attribution. The server grandfathers these (cos
crates/tokscale-cli/src/main.rs:4795
↓ 1 callers
Function
is_micode_db_filename
Returns true if `name` matches the MiMo Code db naming rule: `mimocode.db` or `mimocode-<channel>.db`.
crates/tokscale-core/src/scanner.rs:560
↓ 1 callers
Function
is_missing_credentials
(error: &anyhow::Error)
crates/tokscale-cli/src/commands/usage/codex.rs:208
↓ 1 callers
Function
is_synthetic_model
Check if a model ID indicates synthetic.new API usage. synthetic.new uses `hf:` prefixed model IDs in requests and may return provider-prefixed model
crates/tokscale-core/src/sessions/synthetic.rs:19
↓ 1 callers
Function
is_synthetic_provider
Check if a provider ID indicates synthetic.new API usage.
crates/tokscale-core/src/sessions/synthetic.rs:41
↓ 1 callers
Function
is_tokenless_costed_row
A row the server's "Cost submitted without tokens" sanity check would reject: real cost with every token bucket at zero, excluding the Cursor `premium
crates/tokscale-cli/src/main.rs:4810
↓ 1 callers
Function
is_user_message_chunk
(value: &Value)
crates/tokscale-core/src/sessions/grok.rs:470
↓ 1 callers
Function
is_version_segment
True for a bare version segment produced by splitting an id on `-`: digits with at most one interior dot (`4`, `6`, `2.1`, `20241022`).
crates/tokscale-core/src/pricing/lookup.rs:1814
↓ 1 callers
Method
is_within
(self, baseline: Self)
crates/tokscale-core/src/sessions/codex.rs:133
↓ 1 callers
Method
jump_to_today
(&mut self)
crates/tokscale-cli/src/tui/app.rs:1804
← previous
next →
1,701–1,800 of 4,973, ranked by callers