MCPcopy Create free account

hub / github.com/garrytan/gstack / functions

Functions2,512 in github.com/garrytan/gstack

↓ 8 callersFunctionstripLoneSurrogateEscapes
(s: string)
browse/src/sanitize.ts:25
↓ 8 callersFunctionstub
(name: string, body: string)
test/setup-emoji-font.test.ts:115
↓ 8 callersFunctionunwrapResolver
(entry: ResolverValue)
scripts/resolvers/types.ts:111
↓ 8 callersFunctionwithErrorContext
( op: string, fn: () => T | Promise<T>, caller: string = "unknown" )
lib/gstack-memory-helpers.ts:432
↓ 8 callersFunctionwriteDecision
(record: DecisionRecord)
browse/src/security.ts:591
↓ 8 callersFunctionwriteFixture
(name: string, body: string)
browse/test/regression-pr1169-pdf-from-file-invalid-json.test.ts:28
↓ 8 callersFunctionwriteProfile
(declared: Record<string, number>)
test/declared-annotation.test.ts:40
↓ 7 callersFunctionagentMessage
(text: string)
test/gstack-codex-session-import.test.ts:47
↓ 7 callersFunctionbuildRestartEnv
( globalFlags: GlobalFlags | null | undefined, oldState: ServerState | null, )
browse/src/cli.ts:265
↓ 7 callersFunctionbuildUnknownCommandError
( command: string, commandSet: Set<string>, aliasMap: Record<string, string> = COMMAND_ALIASES, newInV
browse/src/commands.ts:265
↓ 7 callersMethodcall
* Call one of the bundle's async window functions with JSON-safe string * args. Errors come back as a recognizable ERR: prefix so a render failure
make-pdf/src/diagram-prepass.ts:379
↓ 7 callersFunctioncheckRate
(info: TokenInfo)
browse/src/token-registry.ts:406
↓ 7 callersFunctionconstrainSourceId
* Build a gbrain-valid source id (1-32 lowercase alnum + interior hyphens). Sanitizes * `raw`, prefixes with `prefix`, and falls back to a hashed-tai
bin/gstack-gbrain-sync.ts:575
↓ 7 callersFunctioncopyReviewFiles
(dir: string)
test/skill-e2e-review-army.test.ts:26
↓ 7 callersFunctioncreateSetupKey
(opts: Omit<CreateTokenOptions, 'clientId'> & { clientId?: string })
browse/src/token-registry.ts:250
↓ 7 callersFunctiondecideSourceRemove
( sourceId: string, env: NodeJS.ProcessEnv = process.env, opts: DecideRemoveOpts = {}, )
lib/gbrain-guards.ts:232
↓ 7 callersFunctionestimateCostUsd
( tokens: { input: number; output: number; cached?: number }, model: string | undefined )
test/helpers/pricing.ts:39
↓ 7 callersFunctionexcerptForReview
(text: string, max = 500)
browse/src/security.ts:628
↓ 7 callersFunctionextractCwdFromJsonl
(filePath: string)
bin/gstack-global-discover.ts:276
↓ 7 callersFunctionextractNameAndDescription
(content: string)
scripts/resolvers/codex-helpers.ts:5
↓ 7 callersFunctionfakeMod
(id: number)
browse/test/cdp-inspector-history-cap.test.ts:17
↓ 7 callersFunctionfirstTurnParallelism
(firstTurn: SDKAssistantMessage | undefined)
test/helpers/agent-sdk-runner.ts:569
↓ 7 callersFunctionfreshAllowlist
()
test/gstack-upgrade-migration-v1_40_0_0.test.ts:152
↓ 7 callersFunctionfreshPaths
()
test/gstack-decision.test.ts:122
↓ 7 callersFunctionfullOutputSurface
(result: { output?: string; transcript?: any[]; toolCalls?: Array<{ tool: string; input: any; output: st
test/skill-e2e-context-skills.test.ts:112
↓ 7 callersFunctiongbrainCalls
()
test/gstack-gbrain-source-wireup.test.ts:135
↓ 7 callersFunctiongenerateCommentary
(c: ComparisonResult)
test/helpers/eval-store.ts:437
↓ 7 callersFunctiongenerateVariant
( apiKey: string, prompt: string, outputPath: string, size: string, quality: string, fetchFn: type
design/src/variants.ts:38
↓ 7 callersFunctiongetBaseUrl
()
extension/background.js:29
↓ 7 callersFunctiongetCurrentProjectSlug
()
browse/src/project-slug.ts:15
↓ 7 callersFunctiongetDataDirForPlatform
(browser: BrowserInfo, platform: BrowserPlatform)
browse/src/cookie-import-browser.ts:335
↓ 7 callersMethodgetFailureHint
()
browse/src/browser-manager.ts:1677
↓ 7 callersMethodgetTabListWithTitles
()
browse/src/browser-manager.ts:927
↓ 7 callersFunctionguardScreenshotPath
(filePath: string)
browse/src/screenshot-size-guard.ts:97
↓ 7 callersFunctionhandleSnapshot
( args: string[], session: TabSession, securityOpts?: { splitForScoped?: boolean }, )
browse/src/snapshot.ts:138
↓ 7 callersFunctionhasActivePicker
()
browse/src/cookie-picker-routes.ts:44
↓ 7 callersFunctionhasInjection
(text: string)
lib/jsonl-store.ts:42
↓ 7 callersFunctionhermeticChildEnv
( overrides?: Record<string, string | undefined>, opts?: HermeticEnvOpts, )
test/helpers/hermetic-env.ts:262
↓ 7 callersFunctionimportCache
()
test/cache-concurrent-refresh.test.ts:33
↓ 7 callersFunctionisHermeticEnabled
(env: NodeJS.ProcessEnv = process.env)
test/helpers/hermetic-env.ts:78
↓ 7 callersFunctionisOurXvfb
(pid: number, recordedStartTime: string)
browse/src/xvfb.ts:115
↓ 7 callersFunctionisPlaceholderSpan
(span: string)
lib/redact-patterns.ts:170
↓ 7 callersFunctionisRateLimitThrown
(err: unknown)
test/helpers/agent-sdk-runner.ts:221
↓ 7 callersFunctionjudgePassed
( judgeResult: { detection_rate: number; false_positives: number; evidence_quality: number }, groundTruth:
test/helpers/eval-store.ts:142
↓ 7 callersFunctionlaunchClaudePty
( opts: ClaudePtyOptions = {}, )
test/helpers/claude-pty-runner.ts:1198
↓ 7 callersFunctionlistBundledSkillDirs
()
test/skill-validation.test.ts:1913
↓ 7 callersFunctionmakeCtx
(model: string)
test/model-overlay-opus-4-7.test.ts:26
↓ 7 callersFunctionmakeFakeGbrain
* Fake `gbrain`: * doctor --json --fast → echo $DOCTOR_JSON (or exit $DOCTOR_EXIT if set) * anything else → exit 1 * The doctor payl
test/gbrain-cycle-completed.test.ts:30
↓ 7 callersFunctionmakeFakeGh
(opts: { authStatus?: 'ok' | 'fail'; renameSucceeds?: boolean; alreadyRenamed?: boolean } = {})
test/migrations-v1.27.0.0.test.ts:21
↓ 7 callersFunctionmakeRefEvent
(kind: "supersede" | "redact", targetId: string, opts: { session?: string; source?: DecisionSource } = {})
lib/gstack-decision.ts:167
↓ 7 callersFunctionmean
(xs: number[])
test/fixtures/overlay-nudges.ts:113
↓ 7 callersFunctionmintPtySessionToken
()
browse/src/pty-session-cookie.ts:35
↓ 7 callersFunctionnonDoneCount
()
design/src/daemon.ts:143
↓ 7 callersFunctionnormalizeHost
(input: string)
browse/src/domain-skills.ts:79
↓ 7 callersFunctionplanHostnameFoldMigration
( currentRoot: string, newSourceId: string, legacyPathHashId: string, env?: NodeJS.ProcessEnv, )
bin/gstack-gbrain-sync.ts:489
↓ 7 callersFunctionreadLog
()
test/question-log-hook.test.ts:59
↓ 7 callersFunctionreadScript
(rel: string)
test/regression-pr1169-mktemp-fallbacks.test.ts:21
↓ 7 callersFunctionresolveApiKeyInfo
()
design/src/auth.ts:71
↓ 7 callersFunctionresolveChromiumProfile
(explicit?: string)
browse/src/config.ts:176
↓ 7 callersFunctionresultToString
(result: unknown)
browse/src/read-commands.ts:113
↓ 7 callersFunctionrun
(opts: { env?: Record<string, string> } = {})
test/gstack-upgrade-migration-v1_17_0_0.test.ts:57
↓ 7 callersFunctionrunCodexSkill
(opts: { skillDir: string; // Path to skill directory containing SKILL.md prompt: string;
test/helpers/codex-session-runner.ts:140
↓ 7 callersFunctionrunContentFilters
( content: string, url: string, command: string, )
browse/src/content-security.ts:284
↓ 7 callersFunctionrunPlanSkillCounting
(opts: { /** Skill name, e.g. 'plan-ceo-review'. Used for diagnostic strings only. */ skillName: string;
test/helpers/claude-pty-runner.ts:1811
↓ 7 callersFunctionrunScript
* Run the analytics script with a custom JSONL file by overriding the path. * We test the exported functions directly for unit tests, and use this *
test/analytics.test.ts:24
↓ 7 callersMethodsetFrame
(frame: Frame | null)
browse/src/tab-session.ts:139
↓ 7 callersFunctionsettings
()
test/gstack-settings-hook-schema-aware.test.ts:44
↓ 7 callersFunctionsetupRepo
(prefix: string)
test/skill-e2e-review-army.test.ts:15
↓ 7 callersFunctionshouldRunTranscriptCheck
(signals: LayerSignal[])
browse/src/security-classifier.ts:610
↓ 7 callersFunctionshouldSpawnXvfb
(env: NodeJS.ProcessEnv, platform: NodeJS.Platform)
browse/src/xvfb.ts:47
↓ 7 callersFunctionsnapshot
( outcome: PlanSkillCountObservation['outcome'], summary: string, visible: string, )
test/helpers/claude-pty-runner.ts:1867
↓ 7 callersFunctionspawnSkill
(opts: SpawnSkillOptions)
browse/src/browser-skill-commands.ts:247
↓ 7 callersMethodswitchTab
(id: number, opts?: { bringToFront?: boolean })
browse/src/browser-manager.ts:818
↓ 7 callersFunctiontestIfSelected
(testName: string, fn: () => Promise<void>, timeout: number)
test/helpers/e2e-helpers.ts:275
↓ 7 callersFunctiontinyPng
(w: number, h: number)
make-pdf/test/diagram-prepass.test.ts:166
↓ 7 callersFunctionurlBlocklistFilter
(content: string, url: string, _command: string)
browse/src/content-security.ts:338
↓ 7 callersFunctionvalidatePtySessionToken
(token: string | null | undefined)
browse/src/pty-session-cookie.ts:49
↓ 7 callersFunctionwarn
(msg: string)
make-pdf/src/orchestrator.ts:128
↓ 7 callersFunctionwrite
(obj: OkResponse | ErrResponse)
browse/src/security-sidecar-entry.ts:56
↓ 7 callersFunctionwriteAttempt
(opts: { rawIdentity: string; endpoint: string; reason: AttemptRow['reason']; path?: string; })
ios-qa/daemon/src/audit.ts:63
↓ 7 callersFunctionwriteProfile
(p: unknown)
test/taste-engine.test.ts:74
↓ 6 callersFunctionapplyCatalogTrim
(content: string, skillName: string)
scripts/gen-skill-docs.ts:426
↓ 6 callersFunctionapplyRedactions
( input: string, findingIds: string[], opts: ScanOptions = {}, )
lib/redact-engine.ts:394
↓ 6 callersFunctionassertReportAtBottomIfPlanWritten
( obs: { planFile?: string; evidence: string; outcome?: string }, )
test/helpers/claude-pty-runner.ts:1122
↓ 6 callersFunctionassignFilesToShards
(files: string[], shardCount: number)
scripts/test-free-shards.ts:206
↓ 6 callersFunctionbuildAUQ
(recommendation: string)
test/llm-judge-recommendation.test.ts:20
↓ 6 callersFunctionbuildCtx
(skillName: string)
test/resolvers-gbrain-save-results.test.ts:25
↓ 6 callersFunctionbuildSseSetCookie
(token: string)
browse/src/sse-session-cookie.ts:94
↓ 6 callersFunctionbuildTrimmedDescription
(parts: CatalogParts)
scripts/gen-skill-docs.ts:374
↓ 6 callersFunctioncacheFilePath
()
lib/gbrain-local-status.ts:107
↓ 6 callersFunctioncheckSkillParity
( invariant: ParityInvariant, current: SkillBaselineEntry, baseline: SkillBaselineEntry | undefined, r
test/helpers/parity-harness.ts:90
↓ 6 callersFunctionclassifyDreamOutcome
(out: string)
bin/gstack-gbrain-sync.ts:1378
↓ 6 callersMethodclick
(selector: string)
browse/src/browse-client.ts:213
↓ 6 callersFunctioncommitSkill
(opts: CommitSkillOptions)
browse/src/browser-skill-write.ts:119
↓ 6 callersFunctioncompareEvalResults
( before: EvalResult, after: EvalResult, beforeFile: string, afterFile: string, )
test/helpers/eval-store.ts:220
↓ 6 callersFunctioncountChars
(text: string, char: string)
test/skill-e2e-plan-prosons.test.ts:55
↓ 6 callersFunctiondecisionFileForTab
(tabId: number)
browse/src/security.ts:580
↓ 6 callersFunctiondefer
(additionalContext?: string)
hosts/claude/hooks/question-preference-hook.ts:95
↓ 6 callersFunctiondetectWindowsFragility
(absolutePath: string)
scripts/test-free-shards.ts:127
↓ 6 callersFunctiondiscardStaged
(stagedDir: string)
browse/src/browser-skill-write.ts:183
← previousnext →501–600 of 2,512, ranked by callers