MCPcopy Create free account

hub / github.com/junhoyeo/tokscale / functions

Functions4,973 in github.com/junhoyeo/tokscale

↓ 2 callersFunctionbest_session_attr
(attributes: &Map<String, Value>)
crates/tokscale-core/src/sessions/copilot.rs:604
↓ 2 callersFunctionblock_contains
(block: list[str], needle: str)
scripts/check-release-workflow-safety.py:140
↓ 2 callersFunctionbracket_value_after
(line: &str, marker: &str)
crates/tokscale-core/src/sessions/tencent_buddy.rs:396
↓ 2 callersFunctionbrandIcon
(x: number, baselineY: number, color: string)
packages/frontend/src/lib/embed/renderIsometric3DSvg.ts:128
↓ 2 callersFunctionbuild_client_filter_with_defaults
Pure variant of [`build_client_filter`] for unit-testable resolution. `defaults` is the (already-validated) list of canonical filter ids that should a
crates/tokscale-cli/src/main.rs:1166
↓ 2 callersFunctionbuild_codex_cache_entry
( path: &Path, raw_messages: Vec<UnifiedMessage>, consumed_offset: u64, state:
crates/tokscale-core/src/lib.rs:617
↓ 2 callersFunctionbuild_cursor_headers
(session_token: &str)
crates/tokscale-cli/src/cursor.rs:137
↓ 2 callersFunctionbuild_gemini_token_message
( model: String, session_id: &str, timestamp: i64, tokens: GeminiTokens, )
crates/tokscale-core/src/sessions/gemini.rs:259
↓ 2 callersFunctionbuild_messages_from_stats
( stats: &Value, model_hint: Option<String>, session_id: &str, timestamp: i64, )
crates/tokscale-core/src/sessions/gemini.rs:468
↓ 2 callersFunctionbuild_output
(parsed: ParsedBilling)
crates/tokscale-cli/src/commands/usage/sakana.rs:443
↓ 2 callersFunctionbuild_session_path_index
Scan local client data once and index every session file by `(client, session_id)` plus the OpenCode databases, so per-session content extraction neve
crates/tokscale-cli/src/commands/report.rs:1258
↓ 2 callersFunctionbuilt_in_extra_scan_paths_for
( home_dir: &str, enabled: &HashSet<ClientId>, )
crates/tokscale-core/src/scanner.rs:424
↓ 2 callersMethodbutton_layout
(&self, inner: Rect)
crates/tokscale-cli/src/tui/ui/dialog/confirm.rs:130
↓ 2 callersFunctionby_target
(entries: list[dict[str, str]], label: str)
scripts/check-release-workflow-safety.py:117
↓ 2 callersFunctioncache_lock_path
()
crates/tokscale-core/src/message_cache.rs:59
↓ 2 callersFunctioncalculateCurrentStreak
(contributions: DailyContribution[])
packages/frontend/src/lib/utils.ts:225
↓ 2 callersFunctioncalculateLongestStreak
(contributions: DailyContribution[])
packages/frontend/src/lib/utils.ts:250
↓ 2 callersFunctioncalculateStats
(values: number[])
packages/benchmarks/runner.ts:260
↓ 2 callersFunctioncalculate_streaks_for_today
(daily: &[DailyUsage], today: NaiveDate)
crates/tokscale-cli/src/tui/data/mod.rs:1106
↓ 2 callersFunctioncalculate_streaks_with_today
(sorted_dates: &[String], today: &str)
crates/tokscale-cli/src/commands/wrapped.rs:1344
↓ 2 callersMethodcandidates_for
Candidate file(s) to feed the dispatcher for `(client, session_id)`.
crates/tokscale-cli/src/commands/report.rs:1237
↓ 2 callersFunctioncanonicalize_agent_name
(name: &str)
crates/tokscale-core/src/sessions/mod.rs:224
↓ 2 callersFunctioncents_to_dollars
(cents: i64)
crates/tokscale-core/src/sessions/warp.rs:134
↓ 2 callersFunctionclaude_diagnostics
(home_dir: &Path, include_info: bool)
crates/tokscale-cli/src/claude_diagnostics.rs:49
↓ 2 callersFunctionclaude_provider_choice_from_hint
( model: Option<&str>, provider_hint: Option<&str>, )
crates/tokscale-core/src/sessions/claudecode.rs:1330
↓ 2 callersFunctionclaude_provider_id
(model: &str, provider_hint: Option<&str>)
crates/tokscale-core/src/sessions/claudecode.rs:1298
↓ 2 callersFunctioncleanup_stale_session_artifacts
( previous: &AntigravityManifest, next: &AntigravityManifest, )
crates/tokscale-cli/src/antigravity.rs:2157
↓ 2 callersFunctionclear_cache
()
crates/tokscale-cli/src/commands/usage/mod.rs:301
↓ 2 callersMethodclear_click_areas
(&mut self)
crates/tokscale-cli/src/tui/app.rs:1560
↓ 2 callersFunctionclick_header
(app: &mut App, column: u16)
crates/tokscale-cli/src/tui/ui/header.rs:182
↓ 2 callersFunctionclient_filter_explicitly_requests_warp
(clients: &Option<Vec<String>>)
crates/tokscale-cli/src/main.rs:1214
↓ 2 callersFunctionclients_for_settings
(flags: ClientFlags)
crates/tokscale-cli/src/commands/autosubmit.rs:351
↓ 2 callersMethodclose_monthly_detail
(&mut self)
crates/tokscale-cli/src/tui/app.rs:1968
↓ 2 callersFunctioncodex_usage_account_id
(output: &UsageOutput)
crates/tokscale-cli/src/tui/app.rs:269
↓ 2 callersFunctioncodex_usage_is_active
(output: &UsageOutput)
crates/tokscale-cli/src/tui/app.rs:249
↓ 2 callersFunctioncodex_usage_sort_key
(output: &UsageOutput)
crates/tokscale-cli/src/tui/app.rs:256
↓ 2 callersFunctioncodex_uuid_v7_order_key
(id: &str)
crates/tokscale-core/src/sessions/codex.rs:768
↓ 2 callersFunctioncompute_msg_cost
Computes a message's cost using the canonical [`PricingService`], honoring per-model rates and every billed token type (input/output/cache read/cache
crates/tokscale-cli/src/commands/report.rs:1388
↓ 2 callersFunctionconfig_dir_from_variant_file
(variant_path: &Path, home_dir: &Path)
crates/tokscale-core/src/cc_mirror.rs:109
↓ 2 callersMethodconfirm
(&self)
crates/tokscale-cli/src/tui/ui/dialog/confirm.rs:92
↓ 2 callersMethodconfirm_codex_rate_limit_reset
(&mut self, account_id: &str)
crates/tokscale-cli/src/tui/app.rs:1338
↓ 2 callersMethodconsume_confirmed_codex_account_action
(&mut self)
crates/tokscale-cli/src/tui/app.rs:1240
↓ 2 callersFunctionconsume_reset_credit
( client: &reqwest::Client, token: &str, account_id: Option<&str>, redeem_request_id: &str, )
crates/tokscale-cli/src/commands/usage/codex.rs:1051
↓ 2 callersFunctioncontains_delimited_major_minor
(haystack: &str, major: char)
crates/tokscale-core/src/pricing/lookup.rs:1729
↓ 2 callersFunctioncontains_delimited_modern_major_minor
True if the id carries a delimited modern `major(-|.)minor` version (4-6, 4.8, 5-0, 4-60, 4-20250514). Generalizes the former `contains_delimited_majo
crates/tokscale-core/src/pricing/lookup.rs:1504
↓ 2 callersFunctioncontributionTokenTotal
(client: { tokens: { input: number; output: number; cacheRead: number; cacheWrite: number } })
packages/frontend/__tests__/api/submit.test.ts:52
↓ 2 callersFunctioncoreClientIds
()
packages/frontend/__tests__/lib/clientRegistry.test.ts:15
↓ 2 callersFunctioncreateAuthorizeRequest
(userCode: string)
packages/frontend/__tests__/api/deviceAuthorize.test.ts:124
↓ 2 callersFunctioncreateEmptyLeaderboardData
(sortBy: "tokens" | "cost")
packages/frontend/src/app/(main)/page.tsx:6
↓ 2 callersFunctioncreateGroupInviteToken
()
packages/frontend/src/lib/groups/utils.ts:57
↓ 2 callersFunctioncreateSession
( userId: string, options: { source?: "web" | "cli"; userAgent?: string } = {} )
packages/frontend/src/lib/auth/session.ts:60
↓ 2 callersFunctioncreate_cc_mirror_project_file
( content: &str, variant: &str, provider: &str, project: &str, filenam
crates/tokscale-core/src/sessions/claudecode.rs:1502
↓ 2 callersFunctioncreate_codex_fixture_dir
()
crates/tokscale-cli/tests/cli_tests.rs:315
↓ 2 callersFunctioncreate_kilo_sqlite_db
(dir: &TempDir)
crates/tokscale-core/src/sessions/kilo.rs:164
↓ 2 callersFunctioncreate_opencode_sqlite_db
(db_path: &std::path::Path)
crates/tokscale-core/src/lib.rs:3454
↓ 2 callersFunctioncreate_temp_fixture_dir_with_pricing_cache
Create a temporary directory with minimal OpenCode fixture data. Layout: <tmp>/.local/share/opencode/storage/message/session1/msg_a.json (2024-06-15
crates/tokscale-cli/tests/cli_tests.rs:48
↓ 2 callersFunctioncreate_transcript_file
(content: &str, filename: &str)
crates/tokscale-core/src/sessions/claudecode.rs:1526
↓ 2 callersFunctioncreate_workbuddy_db
(path: &Path)
crates/tokscale-core/src/sessions/workbuddy.rs:173
↓ 2 callersFunctioncreate_zed_sqlite_db
(db_path: &std::path::Path)
crates/tokscale-core/src/lib.rs:3490
↓ 2 callersFunctioncredential_candidates_from_value
(doc: &Value)
crates/tokscale-cli/src/commands/usage/grok.rs:52
↓ 2 callersFunctioncredentials_paths
()
crates/tokscale-cli/src/commands/usage/kimi.rs:61
↓ 2 callersFunctioncurrent_auth_account_id_in_store
(store: &CodexCredentialsStore)
crates/tokscale-cli/src/commands/usage/codex.rs:1327
↓ 2 callersFunctioncurrent_auth_paths
()
crates/tokscale-cli/src/commands/usage/codex.rs:360
↓ 2 callersFunctioncursor_setup_state
(home_dir: &Option<String>)
crates/tokscale-cli/src/main.rs:1228
↓ 2 callersFunctioncycle_label
(start: Option<&str>, end: Option<&str>)
crates/tokscale-cli/src/commands/usage/grok.rs:290
↓ 2 callersFunctiondaily_model_info_from_cached
(key: &str, value: CachedDailyModelInfo)
crates/tokscale-cli/src/tui/cache.rs:333
↓ 2 callersFunctiondarken
(hex: string, factor: number)
packages/frontend/src/lib/embed/renderIsometric3DSvg.ts:26
↓ 2 callersFunctiondecode_thread_json
(data_type: &str, data: &[u8])
crates/tokscale-core/src/sessions/zed.rs:206
↓ 2 callersFunctiondecrypt_base64_blob
Decrypt a base64-encoded blob and return the plaintext UTF-8 string (typically JSON).
crates/tokscale-cli/src/trae.rs:755
↓ 2 callersMethoddefault_client_id
(&self)
crates/tokscale-cli/src/trae.rs:112
↓ 2 callersFunctiondeleteRequest
(userId: string)
packages/frontend/__tests__/api/groupMemberDeleteRoute.test.ts:151
↓ 2 callersMethoddelta_from
(self, previous: Self)
crates/tokscale-core/src/sessions/codex.rs:100
↓ 2 callersFunctionderive_account_id
(tokens: &Tokens)
crates/tokscale-cli/src/commands/usage/codex.rs:524
↓ 2 callersFunctionderive_context_from_path
Walks up a `chat-messages.json` file path and returns `(channel, project_basename, chat_id)` by reading the three relevant ancestor directory names. M
crates/tokscale-core/src/sessions/codebuff.rs:152
↓ 2 callersFunctionderive_key_iv
(salt: &[u8])
crates/tokscale-cli/src/trae.rs:733
↓ 2 callersFunctiondescribeTokenlessOffenders
(clients: ClientLike[])
packages/frontend/src/lib/validation/submission.ts:257
↓ 2 callersFunctiondetectLibcKind
()
packages/cli/src/index.ts:27
↓ 2 callersFunctiondetect_antigravity_connections
()
crates/tokscale-cli/src/antigravity.rs:697
↓ 2 callersFunctiondiagnostic_line_reserve
(app: &App, max_lines: usize)
crates/tokscale-cli/src/tui/ui/usage.rs:846
↓ 2 callersFunctiondiscover_crush_dbs
(home_dir: &str, use_env_roots: bool)
crates/tokscale-core/src/scanner.rs:621
↓ 2 callersFunctiondiscover_mcp_server_names
(home_dir: Option<&Path>)
crates/tokscale-core/src/mcp.rs:22
↓ 2 callersFunctiondiscover_opencode_dbs
Discover every OpenCode SQLite database under the opencode data dir. Matches: - `opencode.db` (default, used by `latest`/`beta` channels or when `OPE
crates/tokscale-core/src/scanner.rs:471
↓ 2 callersFunctiondraw_image_rounded
( canvas: &mut RgbaImage, source: &RgbaImage, x: i32, y: i32, width: i32, height: i32,
crates/tokscale-cli/src/commands/wrapped.rs:946
↓ 2 callersFunctiondraw_rounded_border
( canvas: &mut RgbaImage, x: i32, y: i32, width: i32, height: i32, radius: i32, li
crates/tokscale-cli/src/commands/wrapped.rs:982
↓ 2 callersFunctionduration_between_ms
(start_ms: Option<i64>, end_ms: Option<i64>)
crates/tokscale-core/src/sessions/claudecode.rs:754
↓ 2 callersFunctionembedded_cost
(cost: Option<f64>)
crates/tokscale-core/src/sessions/opencode.rs:141
↓ 2 callersFunctionencode
(path: &Path)
crates/tokscale-core/src/fs_atomic.rs:32
↓ 2 callersFunctionencode_jwt_payload
(payload: &serde_json::Value)
crates/tokscale-cli/src/trae.rs:617
↓ 2 callersFunctionensure_cache_dir
()
crates/tokscale-cli/src/warp.rs:96
↓ 2 callersFunctionensure_cache_dir
()
crates/tokscale-cli/src/trae.rs:182
↓ 2 callersFunctionensure_config_dir
()
crates/tokscale-cli/src/auth.rs:76
↓ 2 callersFunctionensure_dir
(path: &Path)
crates/tokscale-cli/src/antigravity.rs:353
↓ 2 callersFunctionensure_graphql_response_ok
(response: &Value)
crates/tokscale-cli/src/warp.rs:366
↓ 2 callersFunctionepoch_at
(value: &Value, path: &[&str])
crates/tokscale-cli/src/commands/usage/grok.rs:282
↓ 2 callersFunctionepoch_ms_to_rfc3339
(ts: i64)
crates/tokscale-cli/src/commands/usage/minimax_tokenplan.rs:66
↓ 2 callersFunctionepoch_to_rfc3339
(seconds: i64)
crates/tokscale-cli/src/commands/usage/grok.rs:501
↓ 2 callersFunctionerrorResponse
(error: GroupInviteError)
packages/frontend/src/app/api/groups/join/[token]/route.ts:16
↓ 2 callersFunctionestimate_tokens
(chars: usize)
crates/tokscale-core/src/sessions/zcode.rs:541
↓ 2 callersFunctionevent_kind
(value: &Value)
crates/tokscale-core/src/sessions/junie.rs:176
↓ 2 callersMethodexact_match_cursor
(&self, model_id: &str)
crates/tokscale-core/src/pricing/lookup.rs:949
← previousnext →901–1,000 of 4,973, ranked by callers