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
↓ 3 callers
Function
parse_kilo_sqlite_with_fallback
( db_path: &Path, fallback_timestamp: i64, )
crates/tokscale-core/src/sessions/kilo.rs:58
↓ 3 callers
Function
parse_kiro_sqlite
(db_path: &Path)
crates/tokscale-core/src/sessions/kiro.rs:902
↓ 3 callers
Function
parse_octofriend_sqlite
Parse Octofriend's SQLite database for token usage data. Currently Octofriend only stores input_history (no token data). This function checks for tok
crates/tokscale-core/src/sessions/synthetic.rs:112
↓ 3 callers
Function
parse_openclaw_index
(index_path: &Path)
crates/tokscale-core/src/sessions/openclaw.rs:76
↓ 3 callers
Function
parse_opencodereview_file
(path: &Path)
crates/tokscale-core/src/sessions/opencodereview.rs:14
↓ 3 callers
Function
parse_roo_kilo_file
(path: &Path, source: &str)
crates/tokscale-core/src/sessions/roocode.rs:27
↓ 3 callers
Function
parse_timestamp_value
(value: Option<&serde_json::Value>)
crates/tokscale-core/src/sessions/kiro.rs:316
↓ 3 callers
Function
parse_windows_process_candidates
(output: &str)
crates/tokscale-cli/src/antigravity.rs:835
↓ 3 callers
Function
partition_results
Split per-provider fetch results into (successful outputs, errors). An active provider returning `Err` becomes a [`ProviderError`] rather than being
crates/tokscale-cli/src/commands/usage/mod.rs:504
↓ 3 callers
Function
point_in_rounded_rect
( px: f32, py: f32, x: f32, y: f32, width: f32, height: f32, radius: f32, )
crates/tokscale-cli/src/commands/wrapped.rs:1030
↓ 3 callers
Function
polarPoint
(cx: number, cy: number, r: number, deg: number)
packages/frontend/src/lib/embed/embedShared.ts:336
↓ 3 callers
Function
provider_hint_matches_scoped_provider
(provider_id: Option<&str>, scoped_provider: &str)
crates/tokscale-core/src/pricing/lookup.rs:2022
↓ 3 callers
Method
prune_missing_files
(&mut self)
crates/tokscale-core/src/message_cache.rs:432
↓ 3 callers
Function
push_click_buttons
( spans: &mut Vec<Span<'static>>, app: &mut App, buttons: Vec<ButtonSpec>, start_x: u16, y
crates/tokscale-cli/src/tui/ui/usage.rs:255
↓ 3 callers
Function
push_len_field
(field: u64, payload: &[u8], out: &mut Vec<u8>)
crates/tokscale-cli/src/commands/usage/grok.rs:724
↓ 3 callers
Function
push_limit_metric
( metrics: &mut Vec<UsageMetric>, label: &str, used: Option<f64>, limit: Option<f64>, rese
crates/tokscale-cli/src/commands/usage/grok.rs:370
↓ 3 callers
Method
read_for_update_unlocked
(&self)
crates/tokscale-cli/src/commands/usage/codex.rs:318
↓ 3 callers
Function
read_key
(site: &Site)
crates/tokscale-cli/src/commands/usage/minimax_tokenplan.rs:52
↓ 3 callers
Function
read_keychain
(service: &str)
crates/tokscale-cli/src/commands/usage/helpers.rs:12
↓ 3 callers
Function
read_sync_lock
(path: &std::path::Path)
crates/tokscale-cli/src/trae.rs:1175
↓ 3 callers
Function
read_varint
(data: &[u8], pos: &mut usize)
crates/tokscale-cli/src/commands/usage/grok.rs:438
↓ 3 callers
Method
read_varint
(&mut self)
crates/tokscale-core/src/sessions/antigravity_cli.rs:298
↓ 3 callers
Function
readiness_label
(status: UsageReadiness)
crates/tokscale-cli/src/tui/ui/usage.rs:2183
↓ 3 callers
Method
refresh_usage
(&mut self)
crates/tokscale-cli/src/tui/app.rs:968
↓ 3 callers
Function
renderBlueprintEmbedSvg
( data: UserEmbedStats, options: RenderBlueprintEmbedOptions = {}, )
packages/frontend/src/lib/embed/renderBlueprintEmbedSvg.ts:40
↓ 3 callers
Function
renderOrbitEmbedSvg
( data: UserEmbedStats, options: RenderOrbitEmbedOptions = {}, )
packages/frontend/src/lib/embed/renderOrbitEmbedSvg.ts:41
↓ 3 callers
Function
renderReceiptEmbedSvg
( data: UserEmbedStats, options: RenderReceiptEmbedOptions = {}, )
packages/frontend/src/lib/embed/renderReceiptEmbedSvg.ts:50
↓ 3 callers
Function
renderSourceLogo
(sourceId: string)
packages/frontend/__tests__/components/sourceLogo.test.tsx:14
↓ 3 callers
Function
render_accounts_table
(frame: &mut Frame, app: &mut App, area: Rect, outputs: &[UsageOutput])
crates/tokscale-cli/src/tui/ui/usage.rs:1664
↓ 3 callers
Function
render_graph
(frame: &mut Frame, app: &mut App, area: Rect)
crates/tokscale-cli/src/tui/ui/stats.rs:62
↓ 3 callers
Function
render_lines
(app: &mut App, width: u16, height: u16)
crates/tokscale-cli/src/tui/ui/hourly.rs:409
↓ 3 callers
Function
render_selected_account
( frame: &mut Frame, app: &mut App, area: Rect, selected: &UsageOutput, outputs: &[UsageOu
crates/tokscale-cli/src/tui/ui/usage.rs:1140
↓ 3 callers
Function
render_systemd_spec
(exe: &Path, settings: &AutosubmitSettings)
crates/tokscale-cli/src/commands/autosubmit.rs:502
↓ 3 callers
Function
request
()
packages/frontend/__tests__/api/usersDevicesRoute.test.ts:147
↓ 3 callers
Function
reset_credits_from_response
(response: ResetCreditsResponse)
crates/tokscale-cli/src/commands/usage/codex.rs:1121
↓ 3 callers
Function
resolve_wrapped_cache_path
(subdir: &str, filename: &str, canonical_path: &Path)
crates/tokscale-cli/src/commands/wrapped.rs:1263
↓ 3 callers
Function
restore_env_var
(key: &str, value: Option<std::ffi::OsString>)
crates/tokscale-cli/src/commands/wrapped.rs:1909
↓ 3 callers
Function
revalidateUserGroupLeaderboards
(userId: string)
packages/frontend/src/lib/groups/cache.ts:15
↓ 3 callers
Function
run_command
(program: &str, args: &[&str])
crates/tokscale-cli/src/antigravity.rs:1387
↓ 3 callers
Function
run_command_required
(program: &str, args: &[&str])
crates/tokscale-cli/src/antigravity.rs:1410
↓ 3 callers
Function
run_models_report
( json: bool, home_dir: Option<String>, clients: Option<Vec<String>>, date: &DateRangeFlags,
crates/tokscale-cli/src/main.rs:1712
↓ 3 callers
Function
run_port_query
(program: &str, warning_label: &str, args: &[&str])
crates/tokscale-cli/src/antigravity.rs:1058
↓ 3 callers
Function
safeNumber
(value: number)
packages/frontend/src/lib/format.ts:10
↓ 3 callers
Function
sample_manifest
()
crates/tokscale-cli/src/antigravity.rs:2300
↓ 3 callers
Function
sample_subscription_usage
()
crates/tokscale-cli/src/tui/app.rs:2819
↓ 3 callers
Function
sanitize_account_id_for_filename
(account_id: &str)
crates/tokscale-cli/src/cursor.rs:271
↓ 3 callers
Function
save_cache
(filename: &str, data: &T)
crates/tokscale-core/src/pricing/cache.rs:62
↓ 3 callers
Function
save_credentials_store
(store: &CursorCredentialsStore)
crates/tokscale-cli/src/cursor.rs:354
↓ 3 callers
Function
save_current_auth_account
()
crates/tokscale-cli/src/commands/usage/codex.rs:917
↓ 3 callers
Function
scan_crush_registry
(registry_path: &Path)
crates/tokscale-core/src/scanner.rs:594
↓ 3 callers
Function
selected_reset_schedule_line
(value: &str, value_style: Style, width: usize)
crates/tokscale-cli/src/tui/ui/usage.rs:1344
↓ 3 callers
Function
session
()
packages/frontend/__tests__/api/deviceAuthorizeCsrf.test.ts:89
↓ 3 callers
Function
session
()
packages/frontend/__tests__/api/groupInviteCacheControl.test.ts:71
↓ 3 callers
Function
session
()
packages/frontend/__tests__/api/settingsDeviceRenameCsrf.test.ts:91
↓ 3 callers
Function
session_artifact_file_stem
(session_id: &str)
crates/tokscale-cli/src/antigravity.rs:631
↓ 3 callers
Function
session_cookie
Returns the session cookie string if one is available, else None. Source order: 1. env var `SAKANA_SESSION_COOKIE` 2. file `<config dir>/sakana-sessi
crates/tokscale-cli/src/commands/usage/sakana.rs:52
↓ 3 callers
Method
set_timestamp
(&mut self, timestamp: i64)
crates/tokscale-core/src/sessions/mod.rs:374
↓ 3 callers
Function
setup_mock_codex_dir
(base: &std::path::Path)
crates/tokscale-core/src/scanner.rs:1921
↓ 3 callers
Function
setup_mock_crush_registry
(registry_path: &Path, projects_json: &str)
crates/tokscale-core/src/scanner.rs:2076
↓ 3 callers
Method
sort_codex_subscription_usage
(&mut self)
crates/tokscale-cli/src/tui/app.rs:1467
↓ 3 callers
Function
start_of_day_millis_with
Core of [`local_start_of_day_millis`], parameterized over the timezone resolver so the DST-gap handling can be exercised deterministically in tests.
crates/tokscale-cli/src/commands/report.rs:1357
↓ 3 callers
Function
stat
(label: string, value: string, color: string)
packages/frontend/src/lib/embed/renderGraphEmbedSvg.ts:94
↓ 3 callers
Function
stored_claude_provider_confidence
(provider_id: &str)
crates/tokscale-core/src/sessions/claudecode.rs:1370
↓ 3 callers
Function
string_field
First UTF-8 string value for `field`.
crates/tokscale-core/src/sessions/antigravity_cli.rs:374
↓ 3 callers
Function
submit_filters
( settings: &AutosubmitSettings, )
crates/tokscale-cli/src/commands/autosubmit.rs:234
↓ 3 callers
Function
summarize
Real FFI implementation. See module docs and [`super::summarize`].
crates/tokscale-cli/src/commands/apple_fm.rs:740
↓ 3 callers
Function
sync_cursor_cache_with_fetcher_in_home
( home_dir: &Path, fetch_usage_csv: F, )
crates/tokscale-cli/src/cursor.rs:908
↓ 3 callers
Function
thread_json
(provider: &str, model: &str, request_token_usage: Value)
crates/tokscale-core/src/sessions/zed.rs:383
↓ 3 callers
Function
titleCase
(value: string)
packages/frontend/src/components/profile/ProfileEmbedDialog.tsx:16
↓ 3 callers
Function
to_relative_artifact_path
(path: &Path)
crates/tokscale-cli/src/antigravity.rs:543
↓ 3 callers
Function
to_ts_token_contribution_data
( graph: &tokscale_core::GraphResult, device: Option<&device::SubmitDevice>, )
crates/tokscale-cli/src/main.rs:4076
↓ 3 callers
Method
toggle
(&self, client: ClientFilter)
crates/tokscale-cli/src/tui/ui/dialog/source_picker.rs:89
↓ 3 callers
Function
token_breakdown
(total_tokens: i64)
crates/tokscale-cli/src/main.rs:5865
↓ 3 callers
Method
update_existing
( &self, missing_message: &'static str, action: impl FnOnce(&mut CodexCredentialsStore
crates/tokscale-cli/src/commands/usage/codex.rs:344
↓ 3 callers
Function
usage_status_summary_lines
( app: &App, outputs: &[UsageOutput], width: usize, height: usize, )
crates/tokscale-cli/src/tui/ui/usage.rs:693
↓ 3 callers
Function
usernameLowerExpression
(column: PgColumn)
packages/frontend/src/lib/db/usernameIndex.ts:7
↓ 3 callers
Function
wait_for_codex_login_child
Polls the login child until it exits. Returns `Ok(None)` when the TUI cancelled the login on dismiss or app exit.
crates/tokscale-cli/src/tui/codex_login.rs:180
↓ 3 callers
Function
window_metric
(label: &str, w: &Window)
crates/tokscale-cli/src/commands/usage/claude.rs:148
↓ 3 callers
Function
withDerivedProvenance
(breakdown: ClientBreakdownData)
packages/frontend/src/lib/db/helpers.ts:108
↓ 3 callers
Function
write_jcode_session
(home: &std::path::Path, name: &str, body: &str)
crates/tokscale-core/tests/jcode.rs:23
↓ 2 callers
Method
account_display_name
(&self)
crates/tokscale-cli/src/commands/usage/mod.rs:247
↓ 2 callers
Function
account_table_row_style
(app: &App, index: usize)
crates/tokscale-cli/src/tui/ui/usage.rs:2050
↓ 2 callers
Function
active_account_id_for_usage
(store: &mut CodexCredentialsStore)
crates/tokscale-cli/src/commands/usage/codex.rs:1333
↓ 2 callers
Method
add
(&mut self, span: &SessionMessageSpan<'_>)
crates/tokscale-core/src/sessionize.rs:72
↓ 2 callers
Method
add_message
(&mut self, msg: &UnifiedMessage)
crates/tokscale-core/src/aggregator.rs:242
↓ 2 callers
Function
aggregatePeriodRows
( rows: LeaderboardPeriodRow[], sortBy: SortBy )
packages/frontend/src/lib/leaderboard/getLeaderboard.ts:148
↓ 2 callers
Function
aggregate_by_session
Aggregate messages into per-session contributions, keyed on `session_id`. Each returned [`SessionContribution`] sums all token buckets and cost for a
crates/tokscale-core/src/aggregator.rs:66
↓ 2 callers
Method
all_files
Get all files as a single vector
crates/tokscale-core/src/scanner.rs:135
↓ 2 callers
Function
api
Process-wide resolved API, or `None` if FM is unavailable on this box.
crates/tokscale-cli/src/commands/apple_fm.rs:422
↓ 2 callers
Function
apply_headless_agent
(message: &mut UnifiedMessage, is_headless: bool)
crates/tokscale-core/src/lib.rs:2294
↓ 2 callers
Method
apply_result
(&mut self, result: DialogResult)
crates/tokscale-cli/src/tui/ui/dialog/stack.rs:138
↓ 2 callers
Function
atomic_write_bytes
(path: &Path, bytes: &[u8])
crates/tokscale-cli/src/commands/wrapped.rs:1286
↓ 2 callers
Function
atomic_write_file
(path: &Path, contents: &str)
crates/tokscale-cli/src/antigravity.rs:640
↓ 2 callers
Function
atomic_write_secret
(path: &Path, data: &[u8])
crates/tokscale-cli/src/warp.rs:109
↓ 2 callers
Function
attention_action_rank
(output: &UsageOutput)
crates/tokscale-cli/src/tui/ui/usage.rs:1037
↓ 2 callers
Function
attention_outputs
(outputs: &[UsageOutput])
crates/tokscale-cli/src/tui/ui/usage.rs:1010
↓ 2 callers
Function
attention_severity_rank
(output: &UsageOutput)
crates/tokscale-cli/src/tui/ui/usage.rs:1028
↓ 2 callers
Function
auth_path
()
crates/tokscale-cli/src/commands/usage/grok.rs:38
↓ 2 callers
Function
base_price
( per_million: Option<f64>, per_token: Option<f64>, per_million_field: &str, per_token_field:
crates/tokscale-core/src/pricing/custom.rs:311
↓ 2 callers
Function
bearer_request
(client: &reqwest::Client, token: &str, url: &str)
crates/tokscale-cli/src/commands/usage/grok.rs:88
← previous
next →
801–900 of 4,973, ranked by callers