Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/garrytan/gstack
/ functions
Functions
2,512 in github.com/garrytan/gstack
⨍
Functions
2,512
◇
Types & classes
436
↓ 8 callers
Function
stripLoneSurrogateEscapes
(s: string)
browse/src/sanitize.ts:25
↓ 8 callers
Function
stub
(name: string, body: string)
test/setup-emoji-font.test.ts:115
↓ 8 callers
Function
unwrapResolver
(entry: ResolverValue)
scripts/resolvers/types.ts:111
↓ 8 callers
Function
withErrorContext
( op: string, fn: () => T | Promise<T>, caller: string = "unknown" )
lib/gstack-memory-helpers.ts:432
↓ 8 callers
Function
writeDecision
(record: DecisionRecord)
browse/src/security.ts:591
↓ 8 callers
Function
writeFixture
(name: string, body: string)
browse/test/regression-pr1169-pdf-from-file-invalid-json.test.ts:28
↓ 8 callers
Function
writeProfile
(declared: Record<string, number>)
test/declared-annotation.test.ts:40
↓ 7 callers
Function
agentMessage
(text: string)
test/gstack-codex-session-import.test.ts:47
↓ 7 callers
Function
buildRestartEnv
( globalFlags: GlobalFlags | null | undefined, oldState: ServerState | null, )
browse/src/cli.ts:265
↓ 7 callers
Function
buildUnknownCommandError
( command: string, commandSet: Set<string>, aliasMap: Record<string, string> = COMMAND_ALIASES, newInV
browse/src/commands.ts:265
↓ 7 callers
Method
call
* 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 callers
Function
checkRate
(info: TokenInfo)
browse/src/token-registry.ts:406
↓ 7 callers
Function
constrainSourceId
* 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 callers
Function
copyReviewFiles
(dir: string)
test/skill-e2e-review-army.test.ts:26
↓ 7 callers
Function
createSetupKey
(opts: Omit<CreateTokenOptions, 'clientId'> & { clientId?: string })
browse/src/token-registry.ts:250
↓ 7 callers
Function
decideSourceRemove
( sourceId: string, env: NodeJS.ProcessEnv = process.env, opts: DecideRemoveOpts = {}, )
lib/gbrain-guards.ts:232
↓ 7 callers
Function
estimateCostUsd
( tokens: { input: number; output: number; cached?: number }, model: string | undefined )
test/helpers/pricing.ts:39
↓ 7 callers
Function
excerptForReview
(text: string, max = 500)
browse/src/security.ts:628
↓ 7 callers
Function
extractCwdFromJsonl
(filePath: string)
bin/gstack-global-discover.ts:276
↓ 7 callers
Function
extractNameAndDescription
(content: string)
scripts/resolvers/codex-helpers.ts:5
↓ 7 callers
Function
fakeMod
(id: number)
browse/test/cdp-inspector-history-cap.test.ts:17
↓ 7 callers
Function
firstTurnParallelism
(firstTurn: SDKAssistantMessage | undefined)
test/helpers/agent-sdk-runner.ts:569
↓ 7 callers
Function
freshAllowlist
()
test/gstack-upgrade-migration-v1_40_0_0.test.ts:152
↓ 7 callers
Function
freshPaths
()
test/gstack-decision.test.ts:122
↓ 7 callers
Function
fullOutputSurface
(result: { output?: string; transcript?: any[]; toolCalls?: Array<{ tool: string; input: any; output: st
test/skill-e2e-context-skills.test.ts:112
↓ 7 callers
Function
gbrainCalls
()
test/gstack-gbrain-source-wireup.test.ts:135
↓ 7 callers
Function
generateCommentary
(c: ComparisonResult)
test/helpers/eval-store.ts:437
↓ 7 callers
Function
generateVariant
( apiKey: string, prompt: string, outputPath: string, size: string, quality: string, fetchFn: type
design/src/variants.ts:38
↓ 7 callers
Function
getBaseUrl
()
extension/background.js:29
↓ 7 callers
Function
getCurrentProjectSlug
()
browse/src/project-slug.ts:15
↓ 7 callers
Function
getDataDirForPlatform
(browser: BrowserInfo, platform: BrowserPlatform)
browse/src/cookie-import-browser.ts:335
↓ 7 callers
Method
getFailureHint
()
browse/src/browser-manager.ts:1677
↓ 7 callers
Method
getTabListWithTitles
()
browse/src/browser-manager.ts:927
↓ 7 callers
Function
guardScreenshotPath
(filePath: string)
browse/src/screenshot-size-guard.ts:97
↓ 7 callers
Function
handleSnapshot
( args: string[], session: TabSession, securityOpts?: { splitForScoped?: boolean }, )
browse/src/snapshot.ts:138
↓ 7 callers
Function
hasActivePicker
()
browse/src/cookie-picker-routes.ts:44
↓ 7 callers
Function
hasInjection
(text: string)
lib/jsonl-store.ts:42
↓ 7 callers
Function
hermeticChildEnv
( overrides?: Record<string, string | undefined>, opts?: HermeticEnvOpts, )
test/helpers/hermetic-env.ts:262
↓ 7 callers
Function
importCache
()
test/cache-concurrent-refresh.test.ts:33
↓ 7 callers
Function
isHermeticEnabled
(env: NodeJS.ProcessEnv = process.env)
test/helpers/hermetic-env.ts:78
↓ 7 callers
Function
isOurXvfb
(pid: number, recordedStartTime: string)
browse/src/xvfb.ts:115
↓ 7 callers
Function
isPlaceholderSpan
(span: string)
lib/redact-patterns.ts:170
↓ 7 callers
Function
isRateLimitThrown
(err: unknown)
test/helpers/agent-sdk-runner.ts:221
↓ 7 callers
Function
judgePassed
( judgeResult: { detection_rate: number; false_positives: number; evidence_quality: number }, groundTruth:
test/helpers/eval-store.ts:142
↓ 7 callers
Function
launchClaudePty
( opts: ClaudePtyOptions = {}, )
test/helpers/claude-pty-runner.ts:1198
↓ 7 callers
Function
listBundledSkillDirs
()
test/skill-validation.test.ts:1913
↓ 7 callers
Function
makeCtx
(model: string)
test/model-overlay-opus-4-7.test.ts:26
↓ 7 callers
Function
makeFakeGbrain
* 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 callers
Function
makeFakeGh
(opts: { authStatus?: 'ok' | 'fail'; renameSucceeds?: boolean; alreadyRenamed?: boolean } = {})
test/migrations-v1.27.0.0.test.ts:21
↓ 7 callers
Function
makeRefEvent
(kind: "supersede" | "redact", targetId: string, opts: { session?: string; source?: DecisionSource } = {})
lib/gstack-decision.ts:167
↓ 7 callers
Function
mean
(xs: number[])
test/fixtures/overlay-nudges.ts:113
↓ 7 callers
Function
mintPtySessionToken
()
browse/src/pty-session-cookie.ts:35
↓ 7 callers
Function
nonDoneCount
()
design/src/daemon.ts:143
↓ 7 callers
Function
normalizeHost
(input: string)
browse/src/domain-skills.ts:79
↓ 7 callers
Function
planHostnameFoldMigration
( currentRoot: string, newSourceId: string, legacyPathHashId: string, env?: NodeJS.ProcessEnv, )
bin/gstack-gbrain-sync.ts:489
↓ 7 callers
Function
readLog
()
test/question-log-hook.test.ts:59
↓ 7 callers
Function
readScript
(rel: string)
test/regression-pr1169-mktemp-fallbacks.test.ts:21
↓ 7 callers
Function
resolveApiKeyInfo
()
design/src/auth.ts:71
↓ 7 callers
Function
resolveChromiumProfile
(explicit?: string)
browse/src/config.ts:176
↓ 7 callers
Function
resultToString
(result: unknown)
browse/src/read-commands.ts:113
↓ 7 callers
Function
run
(opts: { env?: Record<string, string> } = {})
test/gstack-upgrade-migration-v1_17_0_0.test.ts:57
↓ 7 callers
Function
runCodexSkill
(opts: { skillDir: string; // Path to skill directory containing SKILL.md prompt: string;
test/helpers/codex-session-runner.ts:140
↓ 7 callers
Function
runContentFilters
( content: string, url: string, command: string, )
browse/src/content-security.ts:284
↓ 7 callers
Function
runPlanSkillCounting
(opts: { /** Skill name, e.g. 'plan-ceo-review'. Used for diagnostic strings only. */ skillName: string;
test/helpers/claude-pty-runner.ts:1811
↓ 7 callers
Function
runScript
* 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 callers
Method
setFrame
(frame: Frame | null)
browse/src/tab-session.ts:139
↓ 7 callers
Function
settings
()
test/gstack-settings-hook-schema-aware.test.ts:44
↓ 7 callers
Function
setupRepo
(prefix: string)
test/skill-e2e-review-army.test.ts:15
↓ 7 callers
Function
shouldRunTranscriptCheck
(signals: LayerSignal[])
browse/src/security-classifier.ts:610
↓ 7 callers
Function
shouldSpawnXvfb
(env: NodeJS.ProcessEnv, platform: NodeJS.Platform)
browse/src/xvfb.ts:47
↓ 7 callers
Function
snapshot
( outcome: PlanSkillCountObservation['outcome'], summary: string, visible: string, )
test/helpers/claude-pty-runner.ts:1867
↓ 7 callers
Function
spawnSkill
(opts: SpawnSkillOptions)
browse/src/browser-skill-commands.ts:247
↓ 7 callers
Method
switchTab
(id: number, opts?: { bringToFront?: boolean })
browse/src/browser-manager.ts:818
↓ 7 callers
Function
testIfSelected
(testName: string, fn: () => Promise<void>, timeout: number)
test/helpers/e2e-helpers.ts:275
↓ 7 callers
Function
tinyPng
(w: number, h: number)
make-pdf/test/diagram-prepass.test.ts:166
↓ 7 callers
Function
urlBlocklistFilter
(content: string, url: string, _command: string)
browse/src/content-security.ts:338
↓ 7 callers
Function
validatePtySessionToken
(token: string | null | undefined)
browse/src/pty-session-cookie.ts:49
↓ 7 callers
Function
warn
(msg: string)
make-pdf/src/orchestrator.ts:128
↓ 7 callers
Function
write
(obj: OkResponse | ErrResponse)
browse/src/security-sidecar-entry.ts:56
↓ 7 callers
Function
writeAttempt
(opts: { rawIdentity: string; endpoint: string; reason: AttemptRow['reason']; path?: string; })
ios-qa/daemon/src/audit.ts:63
↓ 7 callers
Function
writeProfile
(p: unknown)
test/taste-engine.test.ts:74
↓ 6 callers
Function
applyCatalogTrim
(content: string, skillName: string)
scripts/gen-skill-docs.ts:426
↓ 6 callers
Function
applyRedactions
( input: string, findingIds: string[], opts: ScanOptions = {}, )
lib/redact-engine.ts:394
↓ 6 callers
Function
assertReportAtBottomIfPlanWritten
( obs: { planFile?: string; evidence: string; outcome?: string }, )
test/helpers/claude-pty-runner.ts:1122
↓ 6 callers
Function
assignFilesToShards
(files: string[], shardCount: number)
scripts/test-free-shards.ts:206
↓ 6 callers
Function
buildAUQ
(recommendation: string)
test/llm-judge-recommendation.test.ts:20
↓ 6 callers
Function
buildCtx
(skillName: string)
test/resolvers-gbrain-save-results.test.ts:25
↓ 6 callers
Function
buildSseSetCookie
(token: string)
browse/src/sse-session-cookie.ts:94
↓ 6 callers
Function
buildTrimmedDescription
(parts: CatalogParts)
scripts/gen-skill-docs.ts:374
↓ 6 callers
Function
cacheFilePath
()
lib/gbrain-local-status.ts:107
↓ 6 callers
Function
checkSkillParity
( invariant: ParityInvariant, current: SkillBaselineEntry, baseline: SkillBaselineEntry | undefined, r
test/helpers/parity-harness.ts:90
↓ 6 callers
Function
classifyDreamOutcome
(out: string)
bin/gstack-gbrain-sync.ts:1378
↓ 6 callers
Method
click
(selector: string)
browse/src/browse-client.ts:213
↓ 6 callers
Function
commitSkill
(opts: CommitSkillOptions)
browse/src/browser-skill-write.ts:119
↓ 6 callers
Function
compareEvalResults
( before: EvalResult, after: EvalResult, beforeFile: string, afterFile: string, )
test/helpers/eval-store.ts:220
↓ 6 callers
Function
countChars
(text: string, char: string)
test/skill-e2e-plan-prosons.test.ts:55
↓ 6 callers
Function
decisionFileForTab
(tabId: number)
browse/src/security.ts:580
↓ 6 callers
Function
defer
(additionalContext?: string)
hosts/claude/hooks/question-preference-hook.ts:95
↓ 6 callers
Function
detectWindowsFragility
(absolutePath: string)
scripts/test-free-shards.ts:127
↓ 6 callers
Function
discardStaged
(stagedDir: string)
browse/src/browser-skill-write.ts:183
← previous
next →
501–600 of 2,512, ranked by callers