MCPcopy Create free account

hub / github.com/junhoyeo/tokscale / functions

Functions4,973 in github.com/junhoyeo/tokscale

↓ 1,248 callersFunctionexpect
(name: string, condition: boolean, detail?: string)
packages/frontend/scripts/check-migrations.ts:13
↓ 1,049 callersMethodpath
(&self)
crates/tokscale-cli/src/commands/usage/codex.rs:263
↓ 866 callersMethodget
(&self, client: ClientId)
crates/tokscale-core/src/scanner.rs:121
↓ 706 callersMethodclone
(&self)
crates/tokscale-core/src/lib.rs:275
↓ 445 callersMethodinsert
(&mut self, entry: CachedSourceEntry)
crates/tokscale-core/src/message_cache.rs:410
↓ 432 callersMethodis_empty
(&self)
crates/tokscale-core/src/pricing/custom.rs:230
↓ 319 callersMethodcontains
(rect: Rect, column: u16, row: u16)
crates/tokscale-cli/src/tui/ui/dialog/confirm.rs:190
↓ 247 callersMethodsaturating_add
(self, other: Self)
crates/tokscale-core/src/sessions/codex.rs:117
↓ 237 callersMethodlen
(&self)
crates/tokscale-cli/src/tui/ui/dialog/stack.rs:64
↓ 186 callersMethodextend
(&mut self, other: UsageFetchReport)
crates/tokscale-cli/src/commands/usage/mod.rs:240
↓ 155 callersMethodlen
(&self)
crates/tokscale-core/src/pricing/custom.rs:226
↓ 151 callersFunctionstyled
(text: T, style: Style, selected: bool)
crates/tokscale-cli/src/tui/ui/usage.rs:2486
↓ 127 callersMethodas_str
(&self)
crates/tokscale-core/src/wiki.rs:67
↓ 111 callersMethodlookup
(&self, model_id: &str)
crates/tokscale-core/src/pricing/lookup.rs:262
↓ 103 callersMethodresolve
(&self, home_dir: &str)
crates/tokscale-core/src/clients.rs:72
↓ 101 callersMethodfrom
(t: &TokenBreakdown)
crates/tokscale-cli/src/tui/cache.rs:240
↓ 90 callersMethodset
(&mut self, client: ClientId, value: i32)
crates/tokscale-core/src/clients.rs:552
↓ 88 callersFunctionmake_app
()
crates/tokscale-cli/src/tui/app.rs:2786
↓ 80 callersFunctioncreate_lookup
()
crates/tokscale-core/src/pricing/lookup.rs:2538
↓ 78 callersFunctionescapeXml
(value: string)
packages/frontend/src/lib/format.ts:1
↓ 75 callersMethodhandle_key_event
(&mut self, key: KeyEvent)
crates/tokscale-cli/src/tui/app.rs:769
↓ 74 callersFunctioncmd_with_home
Build a Command pointing HOME and the XDG dirs at the given temp dir for hermetic test runs (no flags are added; callers append their own).
crates/tokscale-cli/tests/cli_tests.rs:439
↓ 72 callersMethodnext
(self)
crates/tokscale-cli/src/tui/app.rs:111
↓ 69 callersFunctionkey
(code: KeyCode)
crates/tokscale-cli/src/tui/app.rs:3308
↓ 69 callersMethodreplace
(&mut self, dialog: Box<dyn DialogContent>)
crates/tokscale-cli/src/tui/ui/dialog/stack.rs:37
↓ 63 callersMethodas_str
(&self)
crates/tokscale-cli/src/tui/app.rs:83
↓ 58 callersMethodas_str
(self)
crates/tokscale-cli/src/commands/autosubmit.rs:65
↓ 56 callersMethodtotal
(&self)
crates/tokscale-cli/src/tui/data/mod.rs:39
↓ 55 callersMethodcount
Count total entries in the wiki.
crates/tokscale-core/src/wiki.rs:496
↓ 55 callersFunctionparse_claude_file
Parse a Claude Code JSONL file
crates/tokscale-core/src/sessions/claudecode.rs:308
↓ 54 callersMethodset_status
(&mut self, message: &str)
crates/tokscale-cli/src/tui/app.rs:2132
↓ 53 callersFunctionrestore_env
(var: &str, previous: Option<String>)
crates/tokscale-core/src/scanner.rs:1489
↓ 52 callersFunctionPOST
(request: Request)
packages/frontend/src/app/api/groups/route.ts:42
↓ 47 callersFunctioncreate_test_file
(content: &str)
crates/tokscale-core/src/sessions/codex.rs:1191
↓ 46 callersFunctionparse_codex_file
Parse a Codex JSONL file with stateful tracking
crates/tokscale-core/src/sessions/codex.rs:899
↓ 44 callersFunctionparse_all_messages_with_pricing
( home_dir: &str, clients: &[String], pricing: Option<&pricing::PricingService>, )
crates/tokscale-core/src/lib.rs:502
↓ 42 callersFunctioncreate_temp_fixture_dir
()
crates/tokscale-cli/tests/cli_tests.rs:120
↓ 42 callersFunctiontokens
(access: &str, account_id: Option<&str>)
crates/tokscale-cli/src/commands/usage/codex.rs:1793
↓ 40 callersFunctionGET
(request: Request)
packages/frontend/src/app/api/groups/route.ts:20
↓ 40 callersFunctiongetSessionFromRequest
( request: Request, options: GetSessionFromRequestOptions = {} )
packages/frontend/src/lib/auth/requestSession.ts:39
↓ 40 callersMethodset_workspace
( &mut self, workspace_key: Option<String>, workspace_label: Option<String>, )
crates/tokscale-core/src/sessions/mod.rs:361
↓ 39 callersFunctionscan_all_clients
(home_dir: &str, clients: &[String])
crates/tokscale-core/src/scanner.rs:1477
↓ 38 callersFunctionextract_i64
(value: Option<&Value>)
crates/tokscale-core/src/sessions/utils.rs:8
↓ 38 callersFunctionunified_to_parsed
(msg: &UnifiedMessage)
crates/tokscale-core/src/lib.rs:3111
↓ 35 callersFunctionenc_varint
(field: u64, value: u64)
crates/tokscale-core/src/sessions/antigravity_cli.rs:383
↓ 35 callersMethodlookup_with_source
( &self, model_id: &str, force_source: Option<&str>, )
crates/tokscale-core/src/pricing/mod.rs:231
↓ 33 callersMethodall
()
crates/tokscale-cli/src/tui/app.rs:69
↓ 33 callersMethodclear
(&mut self)
crates/tokscale-cli/src/tui/ui/dialog/stack.rs:52
↓ 33 callersFunctionfile_modified_timestamp_ms
(path: &Path)
crates/tokscale-core/src/sessions/utils.rs:76
↓ 33 callersFunctionmake_app
()
crates/tokscale-cli/src/tui/ui/usage.rs:2594
↓ 33 callersFunctionparse_copilot_file
(path: &Path)
crates/tokscale-core/src/sessions/copilot.rs:16
↓ 32 callersFunctioncreate_empty_fixture_dir
Create an empty fixture dir with no session data.
crates/tokscale-cli/tests/cli_tests.rs:245
↓ 32 callersFunctioncreate_test_file
(content: &str)
crates/tokscale-core/src/sessions/claudecode.rs:1478
↓ 32 callersFunctionextract_string
(value: Option<&Value>)
crates/tokscale-core/src/sessions/utils.rs:16
↓ 32 callersFunctionformat_tokens
(tokens: u64)
crates/tokscale-cli/src/tui/ui/widgets.rs:20
↓ 32 callersFunctionhome_dir
()
crates/tokscale-cli/src/auth.rs:10
↓ 31 callersFunctionapply_pricing_if_available
( message: &mut UnifiedMessage, pricing: Option<&pricing::PricingService>, )
crates/tokscale-core/src/lib.rs:2322
↓ 31 callersFunctioncreate_test_file
(content: &str)
crates/tokscale-core/src/sessions/copilot.rs:726
↓ 31 callersFunctionenc_len
(field: u64, payload: &[u8])
crates/tokscale-core/src/sessions/antigravity_cli.rs:389
↓ 30 callersFunctionrestore_env_var
(key: &str, value: Option<impl AsRef<std::ffi::OsStr>>)
crates/tokscale-core/src/message_cache.rs:809
↓ 30 callersFunctionvalidateSubmission
(data: unknown)
packages/frontend/src/lib/validation/submission.ts:270
↓ 29 callersFunctionadd
(s: string)
packages/frontend/src/lib/embed/renderOrbitEmbedSvg.ts:87
↓ 29 callersFunctionfetch
()
crates/tokscale-core/src/pricing/litellm.rs:40
↓ 28 callersFunctionadd
(s: string)
packages/frontend/src/lib/embed/renderMinimalEmbedSvg.ts:86
↓ 28 callersFunctionrenderProfileBadgeSvg
( data: UserEmbedStats, options: RenderProfileBadgeOptions = {}, )
packages/frontend/src/lib/embed/renderProfileBadgeSvg.ts:158
↓ 28 callersFunctionrenderProfileEmbedSvg
( data: UserEmbedStats, options: RenderProfileEmbedOptions = {} )
packages/frontend/src/lib/embed/renderProfileEmbedSvg.ts:295
↓ 26 callersFunctionparse_gemini_file
Parse a Gemini session file.
crates/tokscale-core/src/sessions/gemini.rs:100
↓ 25 callersFunctionadd
(s: string)
packages/frontend/src/lib/embed/renderBlueprintEmbedSvg.ts:66
↓ 24 callersFunctionadd
(s: string)
packages/frontend/src/lib/embed/renderVitalsEmbedSvg.ts:82
↓ 24 callersFunctionadd
(s: string)
packages/frontend/src/lib/embed/renderGraphEmbedSvg.ts:77
↓ 24 callersMethodlookup_with_provider
( &self, model_id: &str, provider_id: Option<&str>, )
crates/tokscale-core/src/pricing/lookup.rs:266
↓ 24 callersFunctionrender_body
(app: &mut App, width: u16, height: u16)
crates/tokscale-cli/src/tui/ui/usage.rs:2610
↓ 24 callersFunctiontitled_entry
(session_id: &str, title: &str)
crates/tokscale-cli/src/commands/report.rs:1611
↓ 23 callersFunctionDELETE
(request: Request, { params }: RouteParams)
packages/frontend/src/app/api/groups/[slug]/route.ts:177
↓ 23 callersMethodadd
(&mut self, client: ClientId, value: i32)
crates/tokscale-core/src/clients.rs:556
↓ 23 callersMethodparse
(s: &str)
crates/tokscale-core/src/wiki.rs:53
↓ 23 callersFunctionpush_unique_scan_task
( tasks: &mut Vec<(ClientId, String, &'static str)>, seen: &mut HashSet<(ClientId, PathBuf)>, clie
crates/tokscale-core/src/scanner.rs:670
↓ 22 callersFunctionformatTokenCount
(count: number)
packages/frontend/src/lib/utils.ts:179
↓ 22 callersMethodopen
Open (or create) the wiki database at the given path.
crates/tokscale-core/src/wiki.rs:89
↓ 22 callersFunctionparse_gjc_file
Parse a gajae-code JSONL session file into UnifiedMessages. Per-line parse: malformed/partial/legacy lines are skipped, never aborting the file. The
crates/tokscale-core/src/sessions/gjc.rs:113
↓ 22 callersFunctionrandomInt
(min: number, max: number)
packages/benchmarks/generate.ts:112
↓ 21 callersFunctionadd
(s: string)
packages/frontend/src/lib/embed/renderReceiptEmbedSvg.ts:81
↓ 21 callersFunctionformatNumber
(value: number, compact = false)
packages/frontend/src/lib/format.ts:31
↓ 21 callersFunctioninferred_provider_from_model
(model: &str)
crates/tokscale-core/src/provider_identity.rs:124
↓ 21 callersFunctionmake_filters
Build a unified filter set. Pass `synthetic=true` to include `ClientFilter::Synthetic` as a set member (the new way to express "user has synthetic ena
crates/tokscale-cli/src/tui/cache.rs:958
↓ 21 callersFunctionmodel_pricing
(input: f64, output: f64)
crates/tokscale-core/src/pricing/mod.rs:328
↓ 21 callersFunctionparse_local_clients
(options: LocalParseOptions)
crates/tokscale-core/src/lib.rs:2418
↓ 21 callersFunctionrenderIsometric3DEmbedSvg
( data: UserEmbedStats, contributions: EmbedContributionDay[], options: { theme?: EmbedTheme; compact?:
packages/frontend/src/lib/embed/renderIsometric3DSvg.ts:253
↓ 21 callersMethodsubtle_text_style
(&self)
crates/tokscale-cli/src/tui/themes.rs:266
↓ 20 callersFunctionadd
(s: string)
packages/frontend/src/lib/embed/renderTerminalEmbedSvg.ts:87
↓ 20 callersMethodaggregate_messages
( &self, messages: Vec<UnifiedMessage>, group_by: &GroupBy, )
crates/tokscale-cli/src/tui/data/mod.rs:416
↓ 20 callersFunctioncreate_test_file
(content: &str)
crates/tokscale-core/src/sessions/gjc.rs:259
↓ 20 callersFunctionformatCurrency
(amount: number)
packages/frontend/src/lib/utils.ts:208
↓ 20 callersFunctiongetModelColor
(modelName: string)
packages/frontend/src/components/profile/modelColors.ts:24
↓ 20 callersFunctionparse_qwen_file
Parse a Qwen CLI JSONL file
crates/tokscale-core/src/sessions/qwen.rs:76
↓ 20 callersMethodswitch_tab
(&mut self, target: Tab)
crates/tokscale-cli/src/tui/app.rs:1581
↓ 19 callersMethodget_mut
(&mut self, client: ClientId)
crates/tokscale-core/src/scanner.rs:125
↓ 19 callersFunctionmakeRequest
( method: string, headers: Record<string, string> = {} )
packages/frontend/__tests__/lib/requestSessionCsrf.test.ts:45
↓ 19 callersFunctionreadiness_status
(output: &UsageOutput)
crates/tokscale-cli/src/tui/ui/usage.rs:2122
↓ 19 callersMethodsecondary_text_style
(&self)
crates/tokscale-cli/src/tui/themes.rs:262
next →1–100 of 4,973, ranked by callers