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
↓ 7 callers
Function
create_test_file_with_name
(content: &str, filename: &str)
crates/tokscale-core/src/sessions/qwen.rs:200
↓ 7 callers
Function
decrypt_blob
Decrypt a raw-bytes blob and return the plaintext (with the SHA-512 integrity prefix stripped).
crates/tokscale-cli/src/trae.rs:765
↓ 7 callers
Function
derive_account_id
(session_token: &str)
crates/tokscale-cli/src/cursor.rs:260
↓ 7 callers
Function
emit_cursor_setup_warnings
(warnings: &[String])
crates/tokscale-cli/src/main.rs:1291
↓ 7 callers
Method
exact_match_openrouter_for_provider
( &self, model_id: &str, provider_id: Option<&str>, )
crates/tokscale-core/src/pricing/lookup.rs:852
↓ 7 callers
Function
fixture_models_dev
()
crates/tokscale-core/src/pricing/mod.rs:344
↓ 7 callers
Function
getUserEmbedStats
(username: string, sortBy: EmbedSortBy = "tokens")
packages/frontend/src/lib/embed/getUserEmbedStats.ts:105
↓ 7 callers
Function
get_cache_dir
Resolve the tokscale cache dir as `<config_dir>/cache`. Caches (TUI display data, source-message bincode, pricing JSON, the OpenCode migration record
crates/tokscale-core/src/paths.rs:60
↓ 7 callers
Function
get_home_dir_string
(home_dir_option: &Option<String>)
crates/tokscale-core/src/lib.rs:491
↓ 7 callers
Function
gradeColors
(palette: ThemePalette)
packages/frontend/src/lib/embed/embedShared.ts:325
↓ 7 callers
Function
has_cursor_usage_cache_for_report
(home_dir: &Option<String>)
crates/tokscale-cli/src/main.rs:1256
↓ 7 callers
Function
home_dir
()
crates/tokscale-cli/src/cursor.rs:30
↓ 7 callers
Method
into_tokens
(self)
crates/tokscale-core/src/sessions/codex.rs:157
↓ 7 callers
Function
isSubmissionStale
( updatedAt: Date | string, now: Date = new Date(), freshnessWindowDays: number = getSubmissionFreshness
packages/frontend/src/lib/submissionFreshness.ts:30
↓ 7 callers
Method
is_codex_login_running
(&self)
crates/tokscale-cli/src/tui/app.rs:1147
↓ 7 callers
Function
layoutContributions
(contributions: ContributionDay[])
packages/frontend/src/lib/embed/embedShared.ts:285
↓ 7 callers
Function
legacy_dot_cache_tokscale_dir
Pre-#470 cache directory at `~/.cache/tokscale`. This is where the TUI display cache (`tui-data-cache.json`) and the Wrapped image / font caches live
crates/tokscale-core/src/paths.rs:102
↓ 7 callers
Function
load_credentials_store
()
crates/tokscale-cli/src/commands/usage/codex.rs:585
↓ 7 callers
Function
makeAwaitableBuilder
(result: unknown)
packages/frontend/__tests__/api/submitAuth.test.ts:146
↓ 7 callers
Function
makeRequest
(body: unknown)
packages/frontend/__tests__/api/groupTransferOwnership.test.ts:149
↓ 7 callers
Function
message_field
First length-delimited (sub-message / string / bytes) value for `field`.
crates/tokscale-core/src/sessions/antigravity_cli.rs:348
↓ 7 callers
Method
move_selection_up
(&mut self)
crates/tokscale-cli/src/tui/app.rs:1643
↓ 7 callers
Function
parseEmbedTemplate
(value: string | null)
packages/frontend/src/lib/embed/embedShared.ts:147
↓ 7 callers
Function
parse_amp_file
Parse an Amp thread JSON file
crates/tokscale-core/src/sessions/amp.rs:273
↓ 7 callers
Function
parse_events
Write the given JSONL `content` to `events.jsonl` inside a session directory whose name drives `session_id_from_path`, then parse it.
crates/tokscale-core/src/sessions/junie.rs:279
↓ 7 callers
Function
parse_extra_dirs
Parse a `TOKSCALE_EXTRA_DIRS`-formatted string into (ClientId, path) pairs. Format: comma-separated `client:path` pairs. Example: `"claude:/path/to/m
crates/tokscale-core/src/scanner.rs:377
↓ 7 callers
Function
parse_timestamp_str
(value: &str)
crates/tokscale-core/src/sessions/utils.rs:40
↓ 7 callers
Function
renderMinimalEmbedSvg
( data: UserEmbedStats, options: RenderMinimalEmbedOptions = {}, )
packages/frontend/src/lib/embed/renderMinimalEmbedSvg.ts:42
↓ 7 callers
Function
run
( theme: &str, refresh: u64, debug: bool, clients: Option<Vec<String>>, since: Option<Stri
crates/tokscale-cli/src/tui/mod.rs:78
↓ 7 callers
Function
save_credentials
(credentials: &Credentials)
crates/tokscale-cli/src/auth.rs:90
↓ 7 callers
Function
save_credentials_store_in_home
(home_dir: &Path, store: &CursorCredentialsStore)
crates/tokscale-cli/src/cursor.rs:358
↓ 7 callers
Function
setup_mock_claude_dir
(base: &std::path::Path)
crates/tokscale-core/src/scanner.rs:1905
↓ 7 callers
Function
setup_warnings_for_report
( home_dir: &Option<String>, clients: &Option<Vec<String>>, )
crates/tokscale-cli/src/main.rs:1352
↓ 7 callers
Function
string_field
(value: &'a Value, field: &str)
crates/tokscale-core/src/sessions/junie.rs:228
↓ 7 callers
Function
strip_yaml_scalar
(value: str)
scripts/check-release-workflow-safety.py:36
↓ 7 callers
Method
to_client_id
Convert to the corresponding `ClientId`, or `None` for the `Synthetic` meta-client which has no scan path of its own. Used at boundaries where TUI st
crates/tokscale-cli/src/main.rs:976
↓ 7 callers
Function
varint_field
First varint value for `field`.
crates/tokscale-core/src/sessions/antigravity_cli.rs:361
↓ 7 callers
Function
warn_custom_pricing
(path: &Path, message: fmt::Arguments<'_>)
crates/tokscale-core/src/pricing/custom.rs:349
↓ 7 callers
Function
write_config
(dir: &TempDir, model: &str)
crates/tokscale-core/src/sessions/commandcode.rs:311
↓ 7 callers
Function
write_session
(dir: &TempDir, slug: &str, session: &str, jsonl: &str)
crates/tokscale-core/src/sessions/zcode.rs:573
↓ 7 callers
Function
write_session
(dir: &TempDir, slug: &str, session: &str, jsonl: &str)
crates/tokscale-core/src/sessions/commandcode.rs:302
↓ 6 callers
Function
account_sort_key
Case-insensitive sort key shared by every place that orders accounts: the label when present, falling back to the account id.
crates/tokscale-cli/src/commands/usage/codex.rs:705
↓ 6 callers
Function
auto_sync_cursor_for_local_report
( home_dir: &Option<String>, clients: &Option<Vec<String>>, )
crates/tokscale-cli/src/main.rs:1368
↓ 6 callers
Function
brandIcon
(x: number, baselineY: number, color: string)
packages/frontend/src/lib/embed/embedShared.ts:253
↓ 6 callers
Function
build_opencode_sqlite_payload
( created_ms: f64, completed_ms: f64, input: i64, output: i64, reasoni
crates/tokscale-core/src/lib.rs:3426
↓ 6 callers
Function
capitalize
(s: &str)
crates/tokscale-cli/src/commands/usage/helpers.rs:4
↓ 6 callers
Function
choose_best_source_result
( litellm_result: Option<LookupResult>, openrouter_result: Option<LookupResult>, provider_id: Opti
crates/tokscale-core/src/pricing/lookup.rs:2076
↓ 6 callers
Function
collect_mcp_server_keys
(path: &Path, names: &mut BTreeSet<String>)
crates/tokscale-core/src/mcp.rs:60
↓ 6 callers
Function
content_chars
Char count of a message's `content` for token estimation, measured from its canonical JSON serialization. Counting the serialized form keeps every pro
crates/tokscale-core/src/sessions/commandcode.rs:206
↓ 6 callers
Function
createDeleteRequest
( tokenId: string, headers: Record<string, string> = { Origin: "http://localhost:3000" } )
packages/frontend/__tests__/api/settingsTokensDelete.test.ts:42
↓ 6 callers
Function
createSvgResponse
(svg: string, init?: { status?: number; cacheControl?: string })
packages/frontend/src/app/api/embed/[username]/svg/route.ts:55
↓ 6 callers
Function
delete_artifact_relative_path
(relative_path: &str)
crates/tokscale-cli/src/antigravity.rs:550
↓ 6 callers
Function
emit_cursor_sync_warning
( sync: Option<&cursor::SyncCursorResult>, had_cursor_cache: bool, explicit_cursor_filter: bool, )
crates/tokscale-cli/src/main.rs:1425
↓ 6 callers
Function
ensure_cache_dir
(dir: &Path)
crates/tokscale-core/src/message_cache.rs:101
↓ 6 callers
Function
expectNoNarrowedCostCast
(sqlTexts: string[])
packages/frontend/__tests__/support/costCastWidths.ts:26
↓ 6 callers
Function
expect_parse_error
Parses `args` expecting failure; panics if parsing unexpectedly succeeds. Avoids `unwrap_err()` since `Cli` does not derive `Debug`.
crates/tokscale-cli/src/main.rs:6710
↓ 6 callers
Function
extract_session_content
Dispatch to the correct per-client extractor for `client`, reading the session's actual file(s) from `candidate_paths`, and return the first result th
crates/tokscale-core/src/content_extractor.rs:305
↓ 6 callers
Method
finalize
(&mut self, total_tokens: i64)
crates/tokscale-core/src/lib.rs:222
↓ 6 callers
Function
find_i64_by_keys
(value: &Value, keys: &[&str])
crates/tokscale-cli/src/warp.rs:520
↓ 6 callers
Function
first_i64
(value: &Value, keys: &[&str])
crates/tokscale-core/src/sessions/gemini.rs:46
↓ 6 callers
Function
getGroupLeaderboardData
( groupId: string, period: Period = "all", page: number = 1, limit: number = 50, sortBy: SortBy = "t
packages/frontend/src/lib/groups/getGroupLeaderboard.ts:360
↓ 6 callers
Function
getRankColor
(rank: number | null, palette: ThemePalette)
packages/frontend/src/lib/embed/embedShared.ts:232
↓ 6 callers
Function
get_antigravity_manifest_path
()
crates/tokscale-cli/src/antigravity.rs:52
↓ 6 callers
Function
get_api_base_url
()
crates/tokscale-cli/src/auth.rs:162
↓ 6 callers
Function
get_credentials_path
()
crates/tokscale-cli/src/auth.rs:72
↓ 6 callers
Method
get_sorted_monthly
(&self)
crates/tokscale-cli/src/tui/app.rs:2448
↓ 6 callers
Function
get_trae_cache_dir
Root directory for Trae sync cache (credentials + sessions + manifest).
crates/tokscale-cli/src/trae.rs:127
↓ 6 callers
Function
group
(overrides: Record<string, unknown> = {})
packages/frontend/__tests__/api/groupRoute.test.ts:111
↓ 6 callers
Function
groupNotFoundResponse
()
packages/frontend/src/app/api/groups/[slug]/route.ts:41
↓ 6 callers
Method
handle_resize
Cache the latest terminal dimensions. `max_visible_items` is intentionally not updated here: each tab's renderer owns its own visible-item capacity an
crates/tokscale-cli/src/tui/app.rs:1532
↓ 6 callers
Function
hashToken
(token: string)
packages/frontend/src/lib/auth/utils.ts:39
↓ 6 callers
Function
headless_roots_with_env_strategy
(home_dir: &str, use_env_roots: bool)
crates/tokscale-core/src/scanner.rs:200
↓ 6 callers
Function
insert_kilo_message
(conn: &Connection, row_id: &str, session_id: &str, data_json: &str)
crates/tokscale-core/src/sessions/kilo.rs:180
↓ 6 callers
Function
isMissingDatabaseUrl
(error: unknown)
packages/frontend/src/app/(main)/leaderboard/page.tsx:17
↓ 6 callers
Function
isValidDateString
(value: string | null | undefined)
packages/frontend/src/lib/leaderboard/dateRange.ts:8
↓ 6 callers
Function
isValidGitHubUsername
(username: string)
packages/frontend/src/lib/validation/username.ts:3
↓ 6 callers
Method
is_fetching_usage
(&self)
crates/tokscale-cli/src/tui/app.rs:983
↓ 6 callers
Method
load
()
crates/tokscale-cli/src/tui/config.rs:40
↓ 6 callers
Function
load_antigravity_manifest
()
crates/tokscale-cli/src/antigravity.rs:468
↓ 6 callers
Function
load_or_parse_sqlite_source
( path: &Path, source_cache: &message_cache::SourceMessageCache, pricing: Option<&pric
crates/tokscale-core/src/lib.rs:731
↓ 6 callers
Function
load_scanner_settings_for_home
(home_dir: &Option<String>)
crates/tokscale-cli/src/tui/settings.rs:219
↓ 6 callers
Method
lookup_with_source_and_provider
( &self, model_id: &str, force_source: Option<&str>, provider_id: Option<&str>
crates/tokscale-core/src/pricing/mod.rs:251
↓ 6 callers
Method
merge_fallback
(&mut self, other: AssistantUsage)
crates/tokscale-core/src/sessions/codebuff.rs:224
↓ 6 callers
Function
normalize_model_for_grouping
(model_id: &str)
crates/tokscale-core/src/lib.rs:61
↓ 6 callers
Function
normalize_opencode_agent_name
(agent: &str)
crates/tokscale-core/src/sessions/mod.rs:113
↓ 6 callers
Function
output_score
(output: &UsageOutput)
crates/tokscale-cli/src/tui/ui/usage.rs:2223
↓ 6 callers
Function
parseNumberFormat
(value: string | null)
packages/frontend/src/lib/embed/embedShared.ts:158
↓ 6 callers
Function
parseRankFormat
(value: string | null)
packages/frontend/src/lib/embed/embedShared.ts:165
↓ 6 callers
Function
parse_codebuddy_file
(path: &Path)
crates/tokscale-core/src/sessions/codebuddy.rs:12
↓ 6 callers
Function
parse_extension_log_file
( client: &'static str, default_model: &'static str, path: &Path, )
crates/tokscale-core/src/sessions/tencent_buddy.rs:267
↓ 6 callers
Function
parse_gen_metadata
( blob: &[u8], session_id: &str, session_timestamp: i64, seen_response_ids: &mut HashSet<Strin
crates/tokscale-core/src/sessions/antigravity_cli.rs:82
↓ 6 callers
Function
parse_json_file
Parse a JSON file using SIMD-accelerated parsing
crates/tokscale-core/src/parser.rs:10
↓ 6 callers
Function
parse_jsonl_file
Parse a JSONL file (one JSON object per line)
crates/tokscale-core/src/parser.rs:17
↓ 6 callers
Function
parse_junie_file
(path: &Path)
crates/tokscale-core/src/sessions/junie.rs:22
↓ 6 callers
Function
parse_roocode_file
(path: &Path)
crates/tokscale-core/src/sessions/roocode.rs:23
↓ 6 callers
Function
push_unique_scan_task_with_pattern
( tasks: &mut Vec<(ClientId, String, &'static str)>, seen: &mut HashSet<(ClientId, PathBuf)>, clie
crates/tokscale-core/src/scanner.rs:679
↓ 6 callers
Method
read
(&self)
crates/tokscale-cli/src/commands/usage/codex.rs:306
↓ 6 callers
Function
read_current_credentials
()
crates/tokscale-cli/src/commands/usage/codex.rs:397
↓ 6 callers
Function
resolve_alias
(model_id: &str)
crates/tokscale-core/src/pricing/aliases.rs:55
↓ 6 callers
Function
resolve_default_tui_filter_set_with
Pure variant of `resolve_default_tui_filter_set` for unit-testable resolution. `configured` is the (raw, pre-validation) list of ids from settings.jso
crates/tokscale-cli/src/main.rs:5309
← previous
next →
301–400 of 4,973, ranked by callers