MCPcopy Create free account

hub / github.com/junhoyeo/tokscale / functions

Functions4,973 in github.com/junhoyeo/tokscale

↓ 6 callersMethodsave
(&self, store: &CodexCredentialsStore)
crates/tokscale-cli/src/commands/usage/codex.rs:330
↓ 6 callersFunctionsave_remote_stats_cache
(stats: &RemoteStats)
crates/tokscale-cli/src/tui/remote.rs:164
↓ 6 callersFunctionserve_once
(body: Vec<u8>, headers_extra: &str)
crates/tokscale-cli/src/antigravity.rs:2871
↓ 6 callersFunctionsetup_mock_codebuff_chat
(base: &Path, channel: &str, chat_id: &str)
crates/tokscale-core/src/scanner.rs:3471
↓ 6 callersFunctionsetup_mock_gjc_session
Write a gjc session JSONL file at <home>/.gjc/agent/sessions/<slug>/<name> and return its path.
crates/tokscale-core/src/scanner.rs:3635
↓ 6 callersFunctionshade_key
(provider: &str, model: &str)
crates/tokscale-cli/src/tui/app.rs:4704
↓ 6 callersFunctionsuppress_snapshots_covered_by_executions
Drop globalStorage snapshot messages whose execution is already counted. Kiro IDE's globalStorage (verified against real trees) holds, per workspace
crates/tokscale-core/src/sessions/kiro.rs:841
↓ 6 callersFunctiontake_digits
Take between `min` and `max` leading ASCII digits; return (digits, remainder).
crates/tokscale-cli/src/commands/usage/sakana.rs:392
↓ 6 callersFunctiontitlecase_agent
(name: &str)
crates/tokscale-core/src/sessions/mod.rs:246
↓ 6 callersFunctiontoUtcDateString
(date: Date)
packages/frontend/src/lib/leaderboard/getLeaderboard.ts:64
↓ 6 callersFunctionto_safe_i64
(value: Option<&Value>)
crates/tokscale-core/src/sessions/antigravity.rs:111
↓ 6 callersMethodupdate_data
(&mut self, data: UsageData)
crates/tokscale-cli/src/tui/app.rs:534
↓ 6 callersFunctionuse_env_roots
(home_dir: &Option<String>)
crates/tokscale-cli/src/main.rs:1469
↓ 6 callersFunctionutc
(value: &str)
crates/tokscale-cli/src/commands/usage/helpers.rs:118
↓ 6 callersMethodwith_minutely_enabled
(mut self, enabled: bool)
crates/tokscale-cli/src/tui/data/mod.rs:310
↓ 5 callersFunctionaccount_info
( store: &CodexCredentialsStore, account_id: &str, account: &CodexAccount, )
crates/tokscale-cli/src/commands/usage/codex.rs:689
↓ 5 callersFunctionactive_output
(outputs: &[UsageOutput])
crates/tokscale-cli/src/tui/ui/usage.rs:2201
↓ 5 callersFunctionarchive_cache_file
(file_path: &std::path::Path, label: &str)
crates/tokscale-cli/src/cursor.rs:1039
↓ 5 callersFunctionassert_cursor_setup_warning
(json: &serde_json::Value)
crates/tokscale-cli/tests/cli_tests.rs:1310
↓ 5 callersFunctionattr_i64_first
(attributes: &Map<String, Value>, keys: &[&str])
crates/tokscale-core/src/sessions/copilot.rs:565
↓ 5 callersFunctionauto_sync_cursor_before_tui
( home_dir: &Option<String>, clients: &Option<Vec<String>>, )
crates/tokscale-cli/src/main.rs:1408
↓ 5 callersFunctionbuild_date_filter_for_date
( date: &DateRangeFlags, current_date: chrono::NaiveDate, )
crates/tokscale-cli/src/main.rs:1517
↓ 5 callersFunctioncalculate_intensities
(contributions: &mut [DailyContribution])
crates/tokscale-core/src/aggregator.rs:704
↓ 5 callersFunctioncollect_kiro_snapshot_text
( value: &Value, counts: &mut KiroSnapshotTextCounts, mut role: Option<KiroSnapshotRole>, )
crates/tokscale-core/src/sessions/kiro.rs:374
↓ 5 callersFunctioncreatePostRequest
( body: unknown, headers: Record<string, string> = { Origin: "http://localhost:3000" } )
packages/frontend/__tests__/api/settingsTokensList.test.ts:48
↓ 5 callersFunctioncreate_test_db
(dir: &TempDir)
crates/tokscale-core/src/sessions/crush.rs:244
↓ 5 callersFunctioncreate_zcode_sqlite_db
(dir: &TempDir)
crates/tokscale-core/src/sessions/zcode.rs:582
↓ 5 callersFunctioncustom_service_with_models_dev
( custom: HashMap<String, ModelPricing>, litellm: HashMap<String, ModelPricing>, openr
crates/tokscale-core/src/pricing/mod.rs:349
↓ 5 callersFunctiondescribe_path_for_home
(path: &str, exists: bool, home: &Path)
crates/tokscale-cli/src/main.rs:3947
↓ 5 callersMethoddisplay_name
(&self)
crates/tokscale-cli/src/commands/usage/mod.rs:128
↓ 5 callersFunctionencrypt_for_test
Encrypt with the same algorithm — used only by tests. Production blobs are encrypted by the Trae client itself.
crates/tokscale-cli/src/trae.rs:821
↓ 5 callersFunctionensure_config_dir
()
crates/tokscale-cli/src/antigravity.rs:360
↓ 5 callersFunctionensure_home_supported_for_tui
(home_dir: &Option<String>)
crates/tokscale-cli/src/main.rs:1503
↓ 5 callersMethodexact_match_openrouter
(&self, model_id: &str)
crates/tokscale-core/src/pricing/lookup.rs:904
↓ 5 callersFunctionexclude_tokenless_cost_contributions
Drop client rows that report cost without any tokens so the submission passes the server's cost-without-tokens validation instead of being rejected wh
crates/tokscale-cli/src/main.rs:4829
↓ 5 callersFunctionexpected_message_cost
( pricing: &PricingService, model_id: &str, provider_id: &str, tokens: CoreTok
crates/tokscale-cli/src/tui/data/mod.rs:1341
↓ 5 callersFunctionextract_content_for_session
Resolve a session's real content by dispatching to the correct per-client extractor over its on-disk file(s). Falls back to metadata-only when the cli
crates/tokscale-cli/src/commands/report.rs:1309
↓ 5 callersFunctionextract_session_id_with_fallback
Extract session ID with fallback logic: 1. Use JSON session_id if present and non-empty 2. Otherwise derive from path including project name to avoid
crates/tokscale-core/src/sessions/qwen.rs:48
↓ 5 callersFunctionfilter_messages_for_report
( messages: Vec<UnifiedMessage>, options: &ReportOptions, )
crates/tokscale-core/src/lib.rs:2268
↓ 5 callersFunctionfirst_number_field
(value: &Value, fields: &[&str])
crates/tokscale-core/src/sessions/junie.rs:236
↓ 5 callersFunctionformat_cache_hit_rate
Cache reuse multiplier: cached reads per full-price input token. `cache_read / (input + cache_write)` — how many low-cost reads you got for every toke
crates/tokscale-cli/src/tui/ui/widgets.rs:60
↓ 5 callersFunctionformat_reset_time
(resets_at: &str)
crates/tokscale-cli/src/commands/usage/helpers.rs:25
↓ 5 callersFunctiongetSubmissionFreshnessWindowDays
()
packages/frontend/src/lib/submissionFreshness.ts:16
↓ 5 callersMethodget_or_init
()
crates/tokscale-core/src/pricing/mod.rs:224
↓ 5 callersFunctionidentity_probe_request
(port: u16, csrf_token: &str, method: &str)
crates/tokscale-cli/src/antigravity.rs:1228
↓ 5 callersFunctioninsert_root_session
( conn: &Connection, id: &str, message_count: i64, cost: f64, updated_
crates/tokscale-core/src/sessions/crush.rs:279
↓ 5 callersFunctionissuePersonalToken
({ userId, name, expiresAt = null, ensureUniqueName = false, }: IssuePersonalTokenInput)
packages/frontend/src/lib/auth/personalTokens.ts:133
↓ 5 callersFunctionlistPublicGroups
(page: number, limit: number)
packages/frontend/src/lib/groups/queries.ts:31
↓ 5 callersFunctionload_pricing_for_local_parse
()
crates/tokscale-core/src/lib.rs:2371
↓ 5 callersFunctionload_scanner_settings
Thin helper that loads settings and returns just the scanner portion. Every CLI entry point that builds `LocalParseOptions`/`ReportOptions` calls thi
crates/tokscale-cli/src/tui/settings.rs:215
↓ 5 callersFunctionmerge_candidate
(target: &mut HashMap<String, SessionCandidate>, next: SessionCandidate)
crates/tokscale-cli/src/antigravity.rs:1619
↓ 5 callersFunctionmerge_manifest_sessions
( existing: Vec<TraeSessionEntry>, incoming: Vec<TraeSessionEntry>, )
crates/tokscale-cli/src/trae.rs:968
↓ 5 callersFunctionmodel_shade_key
(provider: &str, model: &str)
crates/tokscale-cli/src/tui/colors.rs:8
↓ 5 callersFunctionnextResult
(queue: T[][])
packages/frontend/__tests__/lib/personalTokens.test.ts:39
↓ 5 callersFunctionnormalize_model_name
(model_id: &str)
crates/tokscale-core/src/pricing/lookup.rs:1360
↓ 5 callersFunctionparseEmbedColor
(value: string | null)
packages/frontend/src/lib/embed/embedShared.ts:152
↓ 5 callersFunctionparse_antigravity_file
(path: &Path)
crates/tokscale-core/src/sessions/antigravity.rs:6
↓ 5 callersFunctionparse_claude_entry_timestamp
(timestamp: Option<&str>)
crates/tokscale-core/src/sessions/claudecode.rs:748
↓ 5 callersFunctionparse_copilot_desktop_db
(db_path: &Path)
crates/tokscale-core/src/sessions/copilot_desktop.rs:32
↓ 5 callersFunctionparse_date_to_timestamp
Parse a date string to Unix milliseconds timestamp
crates/tokscale-core/src/sessions/cursor.rs:225
↓ 5 callersFunctionparse_dollar_after
Parse a dollar amount like "$4.50" or "$1,200.00" from text starting at the given prefix.
crates/tokscale-cli/src/commands/usage/amp.rs:42
↓ 5 callersFunctionparse_events
(content: &str)
crates/tokscale-core/src/sessions/opencodereview.rs:148
↓ 5 callersFunctionparse_hermes_sqlite
(db_path: &Path)
crates/tokscale-core/src/sessions/hermes.rs:31
↓ 5 callersFunctionparse_kimi_code_file
Parse a Kimi Code wire.jsonl file.
crates/tokscale-core/src/sessions/kimi.rs:168
↓ 5 callersFunctionparse_openclaw_transcript
(transcript_path: &Path)
crates/tokscale-core/src/sessions/openclaw.rs:101
↓ 5 callersFunctionparse_workbuddy_file
(path: &Path)
crates/tokscale-core/src/sessions/workbuddy.rs:15
↓ 5 callersFunctionparse_zed_sqlite
(db_path: &Path)
crates/tokscale-core/src/sessions/zed.rs:36
↓ 5 callersFunctionpush_section_spacing
(lines: &mut Vec<Line<'static>>, max_lines: usize)
crates/tokscale-cli/src/tui/ui/usage.rs:955
↓ 5 callersFunctionpush_varint
(mut value: u64, out: &mut Vec<u8>)
crates/tokscale-cli/src/commands/usage/grok.rs:716
↓ 5 callersMethodread
(&mut self, buf: &mut [u8])
crates/tokscale-core/src/sessions/codex.rs:1213
↓ 5 callersFunctionreadiness_color
(app: &App, status: UsageReadiness)
crates/tokscale-cli/src/tui/ui/usage.rs:2192
↓ 5 callersFunctionrenderTerminalEmbedSvg
( data: UserEmbedStats, options: RenderTerminalEmbedOptions = {}, )
packages/frontend/src/lib/embed/renderTerminalEmbedSvg.ts:42
↓ 5 callersFunctionrequestWithRole
(role: string)
packages/frontend/__tests__/api/groupInviteRoute.test.ts:94
↓ 5 callersFunctionresolve_account_id
(store: &CodexCredentialsStore, name_or_id: &str)
crates/tokscale-cli/src/commands/usage/codex.rs:662
↓ 5 callersFunctionresolve_api_token
()
crates/tokscale-cli/src/auth.rs:136
↓ 5 callersFunctionroleRequest
(role: string)
packages/frontend/__tests__/api/groupMemberRoleRoute.test.ts:150
↓ 5 callersFunctionsample_stats
(fetched_at_secs: u64)
crates/tokscale-cli/src/tui/remote.rs:197
↓ 5 callersMethodsave_unlocked
(&self, store: &CodexCredentialsStore)
crates/tokscale-cli/src/commands/usage/codex.rs:334
↓ 5 callersFunctionsection_heading
(label: &'static str, app: &App)
crates/tokscale-cli/src/tui/ui/usage.rs:982
↓ 5 callersFunctionselect_best_match
( matches: &[&String], dataset: &HashMap<String, ModelPricing>, source: &str, provider_id: Opt
crates/tokscale-core/src/pricing/lookup.rs:1912
↓ 5 callersFunctionserializeSqlCalls
()
packages/frontend/__tests__/lib/getUserEmbedStats.test.ts:139
↓ 5 callersFunctionsetup_task
( dir: &TempDir, task_id: &str, ui_messages_content: &str, history_content: Op
crates/tokscale-core/src/sessions/roocode.rs:236
↓ 5 callersMethodshow
Push a new dialog onto the stack
crates/tokscale-cli/src/tui/ui/dialog/stack.rs:31
↓ 5 callersFunctiontoIsoString
(value: Date | string | null | undefined)
packages/frontend/src/lib/devices/shared.ts:23
↓ 5 callersFunctiontokenTotal
(tokens: TokenBreakdown)
packages/frontend/src/lib/validation/submission.ts:205
↓ 5 callersFunctiontruncate
(s: &str, max_chars: usize)
crates/tokscale-core/src/content_extractor.rs:382
↓ 5 callersFunctiontruncate
(s: &str, max_len: usize)
crates/tokscale-cli/src/commands/usage/mod.rs:531
↓ 5 callersFunctionwith_temp_config_dir
(test: impl FnOnce())
crates/tokscale-cli/src/tui/remote.rs:222
↓ 5 callersFunctionwrite_amp_thread
(path: &Path, content: &str)
crates/tokscale-core/src/sessions/amp.rs:344
↓ 4 callersFunctionaccount_name
(app: &App, output: &UsageOutput)
crates/tokscale-cli/src/tui/ui/usage.rs:2306
↓ 4 callersFunctionaggregate_monthly_from_daily
(daily: &[DailyUsage])
crates/tokscale-cli/src/tui/data/mod.rs:1070
↓ 4 callersFunctionall_variants
Iterator over all 2 supported variants.
crates/tokscale-cli/src/trae.rs:576
↓ 4 callersFunctionappend_usage_diagnostic_lines
( lines: &mut Vec<Line<'static>>, app: &App, width: usize, max_lines: usize, )
crates/tokscale-cli/src/tui/ui/usage.rs:856
↓ 4 callersFunctionapply_pricing_to_messages
( messages: &mut [UnifiedMessage], pricing: Option<&pricing::PricingService>, )
crates/tokscale-core/src/lib.rs:530
↓ 4 callersFunctionatomic_write_secret
(path: &std::path::Path, data: &[u8])
crates/tokscale-cli/src/commands/usage/helpers.rs:76
↓ 4 callersFunctionattr_str
(attributes: &'a Map<String, Value>, key: &str)
crates/tokscale-core/src/sessions/copilot.rs:553
↓ 4 callersFunctionbackground_cache_scope
( since: &Option<String>, until: &Option<String>, year: &Option<String>, )
crates/tokscale-cli/src/tui/mod.rs:69
↓ 4 callersFunctionbackground_data_loader
( since: Option<String>, until: Option<String>, year: Option<String>, minutely_enabled: bool,
crates/tokscale-cli/src/tui/mod.rs:60
↓ 4 callersFunctionblend_pixel
(canvas: &mut RgbaImage, x: i32, y: i32, src: Rgba<u8>)
crates/tokscale-cli/src/commands/wrapped.rs:1067
↓ 4 callersFunctionbuild_codex_incremental_cache
( path: &Path, consumed_offset: u64, state: CodexParseState, )
crates/tokscale-core/src/message_cache.rs:712
← previousnext →401–500 of 4,973, ranked by callers