MCPcopy Index your code

hub / github.com/AGI-is-going-to-arrive/Antigravity-Context-Window-Monitor / functions

Functions614 in github.com/AGI-is-going-to-arrive/Antigravity-Context-Window-Monitor

↓ 485 callersFunctiontBi
(en: string, zh: string, separator: string = ' / ')
src/i18n.ts:172
↓ 181 callersMethodget
(key: string, defaultValue: T)
src/durable-state.ts:6
↓ 138 callersMethodset
Update custom pricing for a model and persist
src/pricing-store.ts:196
↓ 115 callersFunctionlog
(message: string)
src/extension.ts:2256
↓ 111 callersFunctionesc
(text: string)
src/webview-helpers.ts:6
↓ 77 callersMethodmax
(arr: number[])
src/gm/tracker.ts:659
↓ 73 callersFunctionnormalizeModelDisplayName
(modelOrDisplay: string)
src/models.ts:234
↓ 69 callersMethodupdate
(key: string, value: unknown)
src/extension.ts:363
↓ 66 callersFunctiont
(key: string)
src/i18n.ts:146
↓ 50 callersMethodclear
Clear all history.
src/daily-store.ts:424
↓ 38 callersMethodserialize
Export state for globalState persistence
src/gm/tracker.ts:1521
↓ 36 callersFunctionmakeCall
(overrides: Partial<GMCallEntry> = {})
tests/daily-ledger-regressions.test.ts:14
↓ 33 callersMethodrecordCalls
* Record a batch of new GM calls into the ledger. * Each entry carries a `dedupKey` (provided by the tracker) for reliable dedup. * @returns
src/daily-ledger.ts:420
↓ 31 callersFunctionfmt
(n: number)
src/activity-panel.ts:2218
↓ 30 callersFunctionlocalIso
(y: number, month: number, d: number, h = 0, m = 0, s = 0, ms = 0)
tests/daily-ledger-regressions.test.ts:10
↓ 30 callersFunctionmakeLine
(workspaceId?: string)
tests/discovery.test.ts:153
↓ 25 callersMethodgetNewCallsSinceLastRecord
* Extract GM calls that have not yet been recorded by the DailyLedger. * Compares each conversation's call count against the last recorded positi
src/gm/tracker.ts:938
↓ 23 callersFunctionbuildExpectedWorkspaceId
(workspaceUri: string)
src/discovery.ts:121
↓ 22 callersFunctionselectMatchingProcessLine
(lines: readonly string[], workspaceUri?: string)
src/discovery.ts:230
↓ 21 callersFunctionlocalTime
(y: number, month: number, d: number, h = 0, m = 0, s = 0, ms = 0)
tests/daily-ledger-regressions.test.ts:6
↓ 21 callersFunctionresolveModelId
(modelOrDisplay: string)
src/models.ts:198
↓ 20 callersFunctioncomputeBackoff
(baseMs: number, failures: number, maxMs: number)
tests/discovery.test.ts:513
↓ 20 callersMethodmin
(arr: number[])
src/gm/tracker.ts:658
↓ 20 callersFunctionparseInt0
(s: unknown)
src/gm/parser.ts:46
↓ 19 callersFunctionsafePostMessage
* VS Code currently throws disposed WebView errors synchronously from postMessage(). * Keep this as a sync try/catch so non-disposed failures preserv
src/webview-panel.ts:264
↓ 18 callersMethodrestore
Restore from persisted state. Cache is empty — API will backfill.
src/gm/tracker.ts:1566
↓ 17 callersMethodsettleForQuotaReset
* Settle (freeze) data for a specific quota pool after reset. * Moves matching model data from active bucket to a settled entry. * The settl
src/daily-ledger.ts:526
↓ 15 callersMethod_buildSummary
Build aggregated summary from cached data
src/gm/tracker.ts:368
↓ 15 callersFunctionextractWindowsPid
(line: string)
src/discovery.ts:176
↓ 15 callersFunctionfmtUsd
(n: number)
src/pricing-panel.ts:972
↓ 15 callersMethodgetAccountActive
Get active data for a specific account
src/daily-ledger.ts:642
↓ 13 callersMethodglobalBucket
(fallback?: StateBucket)
src/durable-state.ts:48
↓ 13 callersFunctionlocalTime
(y: number, month: number, d: number, h = 0, m = 0, s = 0, ms = 0)
tests/daily-archival-time.test.ts:29
↓ 13 callersFunctiontrajectory
( cascadeId: string, status: string, workspaceUris: string[] = [], stepCount = 1, )
tests/extension-selection.test.ts:11
↓ 13 callersFunctionworkspaceUriForCurrentPlatform
(name: string)
tests/discovery.test.ts:147
↓ 12 callersFunctionbuildWindowsExePath
(systemRoot: string | undefined, kind: WindowsExeKind)
src/discovery.ts:66
↓ 12 callersFunctiontoLocalDateKey
(date: Date = new Date())
src/daily-ledger.ts:110
↓ 11 callersFunctionfindPricing
( responseModel: string, table: Record<string, ModelPricing> = DEFAULT_PRICING, )
src/pricing-store.ts:62
↓ 11 callersFunctionnormalizeGMSummary
(summary: GMSummary)
src/gm/summary.ts:447
↓ 11 callersFunctionparseErrorCode
(errorMsg: string)
src/gm/summary.ts:26
↓ 11 callersFunctiontruncate
(s: string, max: number)
src/activity/helpers.ts:42
↓ 10 callersFunctionbuildHtml
( usage: ContextUsage | null, allUsages: ContextUsage[], configs: ModelConfig[], userInfo: Use
src/webview-panel.ts:586
↓ 10 callersMethodmarkLedgerEntriesRecorded
* Commit DailyLedger positions after recordCalls accepted a batch. * Keeping extraction and commit separate prevents data loss when a stale
src/gm/tracker.ts:1017
↓ 10 callersFunctionpersistGMSummaryToFile
Write GM summary to external file, stripping heavy text/metadata fields.
src/extension.ts:358
↓ 10 callersFunctionstatePath
(name: string)
tests/i18n-persistence.test.ts:46
↓ 9 callersFunctionformatK
(n: number)
src/activity-panel.ts:3550
↓ 9 callersFunctionisLanguage
(value: unknown)
src/i18n.ts:8
↓ 9 callersFunctionmakePanelPayload
(extra: Partial<PanelPayload> = {})
src/extension.ts:449
↓ 9 callersFunctionrpcCall
( ls: LSInfo, endpoint: string, body: Record<string, unknown>, timeoutMs: number = 10000,
src/rpc-client.ts:17
↓ 9 callersFunctionsetLanguage
(lang: Language, context: vscode.ExtensionContext, state?: StateBucket)
src/i18n.ts:126
↓ 8 callersFunctionescapeMarkdown
* Escape Markdown special characters in dynamic content to prevent * broken rendering in VS Code tooltip MarkdownStrings.
src/statusbar.ts:46
↓ 8 callersFunctionfmtSec
(n: number)
src/activity-panel.ts:2424
↓ 8 callersFunctionfmtTok
(n: number)
src/pricing-panel.ts:978
↓ 8 callersFunctionfmtTok
(n: number)
src/activity-panel.ts:2502
↓ 8 callersMethodgetCachedSummary
* Return the last computed summary without re-computing. * Used on startup to instantly display persisted data.
src/gm/tracker.ts:1421
↓ 8 callersMethodgetDetailedSummary
Full current-cycle summary for UI persistence (retains per-call data).
src/gm/tracker.ts:1428
↓ 8 callersFunctiongetLanguage
()
src/i18n.ts:119
↓ 8 callersFunctiongetModelDisplayName
(model: string)
src/models.ts:180
↓ 8 callersMethodgetTodayTotals
Get combined totals (active + settled) for today
src/daily-ledger.ts:652
↓ 8 callersFunctionisWSL
()
src/discovery.ts:17
↓ 8 callersFunctionp
(n: number)
src/webview-helpers.ts:20
↓ 8 callersFunctionpad
(n: number)
src/activity-panel.ts:2884
↓ 8 callersFunctionsettle
(value: boolean)
src/discovery.ts:747
↓ 7 callersMethodbaselineForQuotaReset
* Quota-cycle baseline: mark calls from the target account's reset pool as archived * so _buildSummary() excludes them. The new cycle starts with
src/gm/tracker.ts:1052
↓ 7 callersFunctionextractWslDistro
(uri: string)
src/discovery.ts:325
↓ 7 callersFunctiongetQuotaPoolKey
(modelId: string, resetTime?: string)
src/models.ts:266
↓ 7 callersMethodgetRecord
Get record for a specific date, or null
src/daily-store.ts:332
↓ 7 callersFunctionhashText
(text: string)
src/extension.ts:200
↓ 7 callersFunctionisMonitorPanelVisible
()
src/webview-panel.ts:580
↓ 7 callersFunctionmakeContext
(globalState: StateBucket = new InMemoryStateBucket())
tests/i18n-persistence.test.ts:21
↓ 7 callersFunctionmakeGM
(overrides: { model?: string; responseModel?: string; stepIndices?: number[]; executionId?: st
tests/gm-model-capture.test.ts:11
↓ 7 callersFunctionpad
(value: number)
src/reset-time.ts:1
↓ 7 callersFunctionparseGMEntry
(gm: Record<string, unknown>)
src/gm/parser.ts:807
↓ 7 callersFunctionparseNum
(v: unknown)
src/tracker.ts:629
↓ 7 callersFunctionperformDailyArchival
( ctx: DailyArchivalContext, force = false, now: Date = new Date(), )
src/daily-archival.ts:76
↓ 7 callersMethodpersist
()
src/quota-tracker.ts:634
↓ 7 callersFunctionupdateMonitorPanel
(p: PanelPayload)
src/webview-panel.ts:518
↓ 6 callersMethod_detectDominantModel
* Detect the dominant (most-used) model in a set of steps. * Used to attribute future delta steps to the correct model.
src/activity/tracker.ts:1049
↓ 6 callersMethod_normalizeModelState
()
src/activity/tracker.ts:1931
↓ 6 callersMethod_upsertStepTimelineEvent
(event: StepEvent)
src/activity/tracker.ts:901
↓ 6 callersFunctionallocate
(total: number)
src/daily-archival.ts:306
↓ 6 callersFunctionbuildDNAField
(label: string, value: string)
src/pricing-panel.ts:1282
↓ 6 callersFunctionbuildGMArchiveKey
(call: Pick<GMCallEntry, 'stepIndices' | 'model' | 'responseModel' | 'createdAt'>)
src/gm/parser.ts:618
↓ 6 callersFunctioncloneTokenBreakdownGroups
(groups: TokenBreakdownGroup[])
src/gm/types.ts:343
↓ 6 callersFunctionfmtLimit
(v: number)
src/webview-profile-tab.ts:244
↓ 6 callersFunctionformatTokenCount
(count: number)
src/statusbar.ts:14
↓ 6 callersMethodgetSettledEntries
Get settled entries (from quota resets, waiting for midnight flush)
src/daily-ledger.ts:647
↓ 6 callersMethodgetSummary
()
src/activity/tracker.ts:1478
↓ 6 callersMethodgetUiSummary
Account-filtered and archive-filtered summary for active UI display.
src/gm/tracker.ts:1722
↓ 6 callersFunctionmakeIsoAt
(hour: number, minute = 0)
tests/gm-quota-reset-filter.test.ts:7
↓ 6 callersFunctionnormalizeUri
(uri: string)
src/tracker.ts:275
↓ 6 callersFunctionsafeReject
(err: Error)
src/rpc-client.ts:38
↓ 6 callersFunctionselectRunningTrajectoryCandidate
( trajectories: TrajectorySummary[], qualifiedTrajectories: TrajectorySummary[], trackedCascadeId:
src/extension.ts:385
↓ 6 callersFunctionstableRecordSignature
(record: Record<string, unknown> | null | undefined)
src/extension.ts:221
↓ 5 callersMethod_compactRecentSteps
()
src/activity/tracker.ts:873
↓ 5 callersMethod_getOrCreateStats
(model: string)
src/activity/tracker.ts:2054
↓ 5 callersMethod_persist
()
src/daily-store.ts:462
↓ 5 callersMethod_trackSample
Record a step's model+category into the sample distribution table
src/activity/tracker.ts:1037
↓ 5 callersMethod_trimOld
Remove records older than _maxDays
src/daily-store.ts:453
↓ 5 callersFunctionapplyDisplayPrefs
()
src/extension.ts:1371
next →1–100 of 614, ranked by callers