MCPcopy Create free account

hub / github.com/junhoyeo/tokscale / functions

Functions4,973 in github.com/junhoyeo/tokscale

↓ 1 callersFunctionauth_write_path
Where `switch` writes the codex CLI auth. Derived from [`current_auth_paths`]: an explicit `CODEX_HOME` always wins (even if no auth.json exists there
crates/tokscale-cli/src/commands/usage/codex.rs:379
↓ 1 callersFunctionauthorizeGroupRead
(request: Request, slug: string)
packages/frontend/src/app/api/groups/[slug]/route.ts:45
↓ 1 callersFunctionautosubmit_lock_path
()
crates/tokscale-cli/src/commands/autosubmit.rs:729
↓ 1 callersFunctionbackup_corrupted_manifest
(manifest_path: &Path)
crates/tokscale-cli/src/antigravity.rs:517
↓ 1 callersFunctionbail_on_unknown_store_version
A future-version store may not even deserialize into the current struct, so the version is checked on the raw JSON before the typed parse.
crates/tokscale-cli/src/commands/usage/codex.rs:635
↓ 1 callersFunctionbase64_decode
(input: &str)
crates/tokscale-cli/src/commands/usage/copilot.rs:109
↓ 1 callersFunctionblend_pixel_with_coverage
( canvas: &mut RgbaImage, x: i32, y: i32, color: Rgba<u8>, coverage: f32, )
crates/tokscale-cli/src/commands/wrapped.rs:1055
↓ 1 callersFunctionbuildFaceCSS
(theme: string, grades: string[])
packages/frontend/src/lib/embed/renderIsometric3DSvg.ts:34
↓ 1 callersFunctionbuildPeriodGroupLeaderboardData
( rows: GroupLeaderboardPeriodRow[], page: number, limit: number, period: Period, sortBy: SortBy,
packages/frontend/src/lib/groups/getGroupLeaderboard.ts:141
↓ 1 callersFunctionbuildPeriodLeaderboardData
( rows: LeaderboardPeriodRow[], page: number, limit: number, period: Period, sortBy: SortBy = "token
packages/frontend/src/lib/leaderboard/getLeaderboard.ts:215
↓ 1 callersFunctionbuildPeriodUserRank
( rows: LeaderboardPeriodRow[], username: string, sortBy: SortBy = "tokens" )
packages/frontend/src/lib/leaderboard/getLeaderboard.ts:257
↓ 1 callersFunctionbuildProfilePeriodHref
(username: string, period: ProfilePeriod)
packages/frontend/src/app/u/[username]/ProfilePageClient.tsx:321
↓ 1 callersFunctionbuild_apple_fm
()
crates/tokscale-cli/build.rs:44
↓ 1 callersFunctionbuild_cli_prompt
(payloads: &[serde_json::Value])
crates/tokscale-cli/src/commands/report.rs:793
↓ 1 callersFunctionbuild_contribution_graph
(daily: &[DailyUsage])
crates/tokscale-cli/src/tui/data/mod.rs:1005
↓ 1 callersFunctionbuild_date_filter_for_date
( date: &DateRangeFlags, current_date: chrono::NaiveDate, )
crates/tokscale-cli/src/commands/autosubmit.rs:768
↓ 1 callersFunctionbuild_export_json
Serializes `UsageData` into the pretty-printed JSON payload used by the `e` export hotkey. Pure: callers are responsible for file I/O and any user-fac
crates/tokscale-cli/src/tui/export.rs:9
↓ 1 callersFunctionbuild_lookup_cache_key
(model_id: &str, provider_id: Option<&str>)
crates/tokscale-core/src/pricing/lookup.rs:2051
↓ 1 callersFunctionbuild_parent_subagent_type_lookup
(parent_path: &Path)
crates/tokscale-core/src/sessions/claudecode.rs:187
↓ 1 callersFunctionbuild_prompt
Build the per-session prompt text (matches the former Python `build_prompt`).
crates/tokscale-cli/src/commands/apple_fm.rs:484
↓ 1 callersFunctionbuild_schema
Build the programmatic `SessionSummary` GenerationSchema once, enforcing the category/complexity enums on-device via `anyOf` guides. Returns a +1-reta
crates/tokscale-cli/src/commands/apple_fm.rs:583
↓ 1 callersFunctionbuild_status
()
crates/tokscale-cli/src/warp.rs:393
↓ 1 callersFunctionbuild_threads_query
(conn: &Connection)
crates/tokscale-core/src/sessions/zed.rs:101
↓ 1 callersFunctionbutton_label
(label: &str)
crates/tokscale-cli/src/tui/ui/usage.rs:289
↓ 1 callersMethodbutton_line
( &self, layout: &ButtonLayout, inner: Rect, theme: &Theme, )
crates/tokscale-cli/src/tui/ui/dialog/confirm.rs:170
↓ 1 callersFunctionbutton_style
(app: &App, kind: ButtonKind, selected: bool)
crates/tokscale-cli/src/tui/ui/usage.rs:293
↓ 1 callersFunctioncache_dir
Get the cache directory path Uses `~/.cache/tokscale/` to match TypeScript implementation for cache sharing
crates/tokscale-cli/src/tui/cache.rs:64
↓ 1 callersFunctioncached_messages
( cached: &message_cache::CachedSourceEntry, pricing: Option<&pricing::PricingService>, )
crates/tokscale-core/src/lib.rs:540
↓ 1 callersFunctioncalculateIntensity
(tokens: number, maxTokens: number)
packages/frontend/src/lib/utils.ts:142
↓ 1 callersMethodcalculate_cost_with_provider
( &self, model_id: &str, provider_id: Option<&str>, usage: &TokenBreakdown,
crates/tokscale-core/src/pricing/lookup.rs:1133
↓ 1 callersFunctioncalculate_intensity
(cost: f64, max_cost: f64)
crates/tokscale-cli/src/commands/wrapped.rs:1322
↓ 1 callersFunctioncalculate_streaks
(daily: &[DailyUsage])
crates/tokscale-cli/src/tui/data/mod.rs:1066
↓ 1 callersFunctioncancelEditingDevice
()
packages/frontend/src/app/settings/SettingsClient.tsx:814
↓ 1 callersFunctioncandidate_paths
Candidate `libFoundationModels.dylib` locations, in priority order: 1. next to the running binary (npm package layout, `cargo run`), 2. the absolute O
crates/tokscale-cli/src/commands/apple_fm.rs:333
↓ 1 callersFunctioncandidate_probe_ports
(candidate: &ProcessCandidate, mut ports: Vec<u16>)
crates/tokscale-cli/src/antigravity.rs:727
↓ 1 callersFunctioncanonicalize_model
Canonicalize ZCode model ids. ZCode reports GLM model names in various forms (e.g. "glm-5.2", "GLM-5.2", "glm-5-turbo"); normalize to lowercase canoni
crates/tokscale-core/src/sessions/zcode.rs:524
↓ 1 callersFunctioncanonicalize_model
Canonicalize the configured model id for pricing. Command Code reports gateway ids such as `MiniMaxAI/MiniMax-M3-Free`; the `-Free` suffix is a tempor
crates/tokscale-core/src/sessions/commandcode.rs:229
↓ 1 callersFunctioncanonicalize_provider_segment
(segment: &str)
crates/tokscale-core/src/provider_identity.rs:1
↓ 1 callersFunctioncap
(s: string)
packages/frontend/scripts/gallery/gallery-app.ts:41
↓ 1 callersFunctioncapitalize_first
(s: &str)
crates/tokscale-cli/src/tui/ui/widgets.rs:470
↓ 1 callersFunctioncc_mirror_variant_metadata_from_path
( path: &Path, home_dir: Option<&Path>, )
crates/tokscale-core/src/sessions/claudecode.rs:720
↓ 1 callersFunctioncentered_rect
Calculate a centered rectangle within the viewport
crates/tokscale-cli/src/tui/ui/dialog/overlay.rs:11
↓ 1 callersFunctioncheck_client_match
Determine how the cached client set relates to the currently enabled set. - `Exact` — same clients, same synthetic flag - `Subset` — cached clie
crates/tokscale-cli/src/tui/cache.rs:828
↓ 1 callersFunctionclaude_desktop_storage_paths
(home_dir: &Path)
crates/tokscale-cli/src/claude_diagnostics.rs:85
↓ 1 callersFunctionclaude_provider_choice_from_parts
( model: Option<&str>, provider_hint: Option<&str>, )
crates/tokscale-core/src/sessions/claudecode.rs:1302
↓ 1 callersFunctionclaude_tool_result_values
(value: &Value)
crates/tokscale-core/src/sessions/claudecode.rs:917
↓ 1 callersFunctionclaude_workspace_from_path
(path: &Path)
crates/tokscale-core/src/sessions/claudecode.rs:644
↓ 1 callersFunctionclearSeedData
()
packages/frontend/scripts/seed-dev.ts:37
↓ 1 callersMethodclear_active_codex_accounts
(&mut self)
crates/tokscale-cli/src/tui/app.rs:1457
↓ 1 callersFunctionclear_credentials
(variant: TraeVariant)
crates/tokscale-cli/src/trae.rs:224
↓ 1 callersFunctionclientContributionToBreakdownData
( client_contrib: { tokens: { input: number; output: number; cacheRead: number; cacheWrite: number; reas
packages/frontend/src/lib/db/helpers.ts:179
↓ 1 callersFunctionclient_display_name
(client: &str)
crates/tokscale-cli/src/commands/wrapped.rs:1431
↓ 1 callersFunctionclient_filter_includes_cursor
(clients: &Option<Vec<String>>)
crates/tokscale-cli/src/main.rs:1202
↓ 1 callersFunctionclient_logo_url
(client_name: &str)
crates/tokscale-cli/src/commands/wrapped.rs:1466
↓ 1 callersMethodclient_str
tokscale client id string for this variant.
crates/tokscale-cli/src/trae.rs:86
↓ 1 callersFunctioncline_additional_vscode_task_roots
(home_dir: &str, use_env_roots: bool)
crates/tokscale-core/src/scanner.rs:633
↓ 1 callersFunctioncloseMobileMenu
()
packages/frontend/src/components/layout/Navigation.tsx:668
↓ 1 callersMethodclose_daily_detail
(&mut self)
crates/tokscale-cli/src/tui/app.rs:1917
↓ 1 callersFunctioncluster_label
Pick a human-readable label for a cluster: the most frequent original title, tie-broken by shortest (char count), then lexicographically for full dete
crates/tokscale-cli/src/commands/report.rs:703
↓ 1 callersFunctioncodex_cache_entry_matches_fingerprint
( cached: &CachedSourceEntry, fingerprint: &SourceFingerprint, )
crates/tokscale-core/src/message_cache.rs:758
↓ 1 callersFunctioncodex_message_is_human_turn
(message: &str)
crates/tokscale-core/src/content_extractor.rs:138
↓ 1 callersFunctioncodex_message_is_human_turn
Returns true when a Codex `user_message` payload represents real human input rather than system-injected context. Codex stores the body as a plain str
crates/tokscale-core/src/sessions/codex.rs:1151
↓ 1 callersFunctioncodex_prefix_matches
(path: &Path, cached: &CodexIncrementalCache)
crates/tokscale-core/src/message_cache.rs:747
↓ 1 callersFunctioncodex_source_is_exec
(source: Option<&Value>)
crates/tokscale-core/src/sessions/codex.rs:701
↓ 1 callersFunctioncodex_store_path_in_home
(home_dir: &Path)
crates/tokscale-cli/src/commands/usage/codex.rs:235
↓ 1 callersFunctioncodex_token_count_dedup_key
( message: &UnifiedMessage, model: &str, upstream_session_id: &str, total_usage: Option<CodexT
crates/tokscale-core/src/sessions/codex.rs:808
↓ 1 callersFunctioncodex_workspace_from_cwd
(cwd: &str)
crates/tokscale-core/src/sessions/codex.rs:232
↓ 1 callersFunctioncollect_tool_result_blocks
(value: &'a Value, results: &mut Vec<&'a Value>)
crates/tokscale-core/src/sessions/claudecode.rs:950
↓ 1 callersFunctioncollect_trace_contexts
(records: &[Value])
crates/tokscale-core/src/sessions/copilot.rs:131
↓ 1 callersFunctioncollect_workspace_usage
(value: &Value, out: &mut Vec<WarpWorkspaceUsage>)
crates/tokscale-cli/src/warp.rs:474
↓ 1 callersFunctioncommand_line_executable_looks_antigravity
(command: &str)
crates/tokscale-cli/src/antigravity.rs:914
↓ 1 callersFunctioncompact_metric_label
(label: &str)
crates/tokscale-cli/src/tui/ui/usage.rs:1962
↓ 1 callersFunctioncompact_reset_time
(reset_at: DateTime<Local>, now: DateTime<Local>, diff: Duration)
crates/tokscale-cli/src/commands/usage/helpers.rs:61
↓ 1 callersFunctioncompareGroupUsers
( left: Omit<GroupLeaderboardUser, "rank">, right: Omit<GroupLeaderboardUser, "rank">, sortBy: SortBy )
packages/frontend/src/lib/groups/getGroupLeaderboard.ts:80
↓ 1 callersFunctioncompareLeaderboardUsers
( left: Omit<LeaderboardUser, "rank">, right: Omit<LeaderboardUser, "rank">, sortBy: SortBy )
packages/frontend/src/lib/leaderboard/getLeaderboard.ts:114
↓ 1 callersFunctioncompatible_rgb
(r: u8, g: u8, b: u8)
crates/tokscale-cli/src/tui/themes.rs:287
↓ 1 callersFunctioncomputeStreaks
( contributions: EmbedContributionDay[], referenceDate: Date = new Date(), )
packages/frontend/src/lib/embed/renderIsometric3DSvg.ts:167
↓ 1 callersFunctioncompute_daily_active_time
Compute per-day active time (ms) from session intervals. For each interval, distributes its `active_duration_ms` proportionally across local-time day
crates/tokscale-core/src/sessionize.rs:285
↓ 1 callersFunctioncompute_max_concurrent
Sweep-line algorithm to find peak concurrent sessions.
crates/tokscale-core/src/sessionize.rs:242
↓ 1 callersFunctioncompute_sample_hashes
(path: &Path, size: u64)
crates/tokscale-core/src/message_cache.rs:624
↓ 1 callersFunctionconfigured_variant_dir_from_session_path
(path: &Path, home_dir: &Path)
crates/tokscale-core/src/cc_mirror.rs:79
↓ 1 callersMethodconfirm_button
(&self)
crates/tokscale-cli/src/tui/ui/dialog/confirm.rs:166
↓ 1 callersMethodconfirm_codex_account_removal
(&mut self, account_id: &str)
crates/tokscale-cli/src/tui/app.rs:1219
↓ 1 callersMethodconfirm_codex_account_switch
(&mut self, account_id: &str)
crates/tokscale-cli/src/tui/app.rs:1198
↓ 1 callersMethodconfirm_selected_codex_rate_limit_reset
(&mut self)
crates/tokscale-cli/src/tui/app.rs:1319
↓ 1 callersFunctionconsume_rate_limit_reset_credit
(name_or_id: &str)
crates/tokscale-cli/src/commands/usage/codex.rs:1537
↓ 1 callersFunctionconsume_reset_credit_with_auth_async
( auth: Auth, source: CredentialSource, )
crates/tokscale-cli/src/commands/usage/codex.rs:1484
↓ 1 callersFunctioncontains_antigravity_marker
(value: &Value)
crates/tokscale-cli/src/antigravity.rs:1361
↓ 1 callersMethodcopy_selected_to_clipboard
(&mut self)
crates/tokscale-cli/src/tui/app.rs:2047
↓ 1 callersFunctioncostCastWidths
(sqlTexts: string[])
packages/frontend/__tests__/support/costCastWidths.ts:13
↓ 1 callersFunctioncountGroupMembers
(groupId: string)
packages/frontend/src/lib/groups/getGroupLeaderboard.ts:203
↓ 1 callersFunctioncount_cursor_csv_rows
(csv_text: &str)
crates/tokscale-cli/src/cursor.rs:160
↓ 1 callersFunctioncreateDb
()
packages/frontend/src/lib/db/index.ts:21
↓ 1 callersFunctioncreateEmptyContribution
(date: string)
packages/frontend/src/lib/utils.ts:67
↓ 1 callersFunctioncreateEmptyLeaderboardData
(sortBy: SortBy)
packages/frontend/src/app/(main)/leaderboard/page.tsx:23
↓ 1 callersFunctioncreateGroupInvite
({ groupId, invitedBy, role, invitedUsername = null, invitedUserId = null, expiresAt = new Date(Da
packages/frontend/src/lib/groups/invites.ts:101
↓ 1 callersFunctioncreate_codex_workspace_fixture_dir
()
crates/tokscale-cli/tests/cli_tests.rs:336
↓ 1 callersFunctioncreate_opencode_workspace_fixture_dir
()
crates/tokscale-cli/tests/cli_tests.rs:359
↓ 1 callersFunctioncreate_project_test_file
( content: &str, project: &str, filename: &str, )
crates/tokscale-core/src/sessions/qwen.rs:211
↓ 1 callersFunctioncreate_qwen_workspace_fixture_dir
()
crates/tokscale-cli/tests/cli_tests.rs:301
← previousnext →1,401–1,500 of 4,973, ranked by callers