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
↓ 9 callers
Function
exchangeSetupKey
(setupKey: string, sessionExpiresSeconds?: number | null)
browse/src/token-registry.ts:278
↓ 9 callers
Function
extractBrowseCommands
(skillPath: string)
test/helpers/skill-parser.ts:40
↓ 9 callers
Function
formatReport
(events: AnalyticsEvent[], period: string = 'all')
scripts/analytics.ts:69
↓ 9 callers
Function
generate
(inputs: GenInputs)
ios-qa/scripts/gen-accessors.ts:222
↓ 9 callers
Function
generateBrainPreflight
(ctx: TemplateContext)
scripts/resolvers/gbrain.ts:145
↓ 9 callers
Function
generateRedactInvocationBlock
(ctx: TemplateContext, args?: string[])
scripts/resolvers/redact-doc.ts:120
↓ 9 callers
Function
jsonResponse
(data: any, opts: { port: number; status?: number })
browse/src/cookie-picker-routes.ts:89
↓ 9 callers
Function
loadAllowlist
(path: string = defaultAllowlistPath())
ios-qa/daemon/src/allowlist.ts:19
↓ 9 callers
Function
logHas
(p: string, needle: string)
test/gstack-detach.test.ts:28
↓ 9 callers
Function
makeCtx
(host: 'claude' | 'codex', tier: 1 | 2 | 3 | 4)
test/writing-style-resolver.test.ts:22
↓ 9 callers
Function
makeFakeGbrain
* Build a temp dir with a fake `gbrain` shell script on PATH. The fake honors: * gbrain sources list --json → cat $STATE_PATH * gbrain sourc
test/gbrain-sources.test.ts:39
↓ 9 callers
Function
optionsSignature
( opts: Array<{ index: number; label: string }>, )
test/helpers/claude-pty-runner.ts:755
↓ 9 callers
Function
parseNDJSON
(lines: string[])
test/helpers/session-runner.ts:78
↓ 9 callers
Function
projectFile
(slug: string)
browse/src/domain-skills.ts:73
↓ 9 callers
Function
readAgentRecord
(stateDir: string)
browse/src/terminal-agent-control.ts:98
↓ 9 callers
Function
readCalls
(file: string)
test/gstack-artifacts-init.test.ts:146
↓ 9 callers
Function
readDecision
(tabId: number)
browse/src/security.ts:603
↓ 9 callers
Function
readRows
* Read all rows from a JSONL file. Tolerant of partial trailing line (drops it). * Returns rows in append order. Caller resolves latest-wins per (hos
browse/src/domain-skills.ts:153
↓ 9 callers
Function
requireApiKey
()
design/src/auth.ts:121
↓ 9 callers
Function
resetState
()
browse/test/sidebar-integration.test.ts:77
↓ 9 callers
Function
resolveDisconnectCause
(browser: Browser | null)
browse/src/browser-manager.ts:93
↓ 9 callers
Function
resolvePdftotext
(env: NodeJS.ProcessEnv = process.env)
make-pdf/src/pdftotext.ts:74
↓ 9 callers
Function
run
(opts: { path?: string } = {})
test/gstack-upgrade-migration-v1_40_0_0.test.ts:129
↓ 9 callers
Function
runBrowse
* Run a browse command. Returns stdout on success. * Throws BrowseClientError on non-zero exit.
make-pdf/src/browseClient.ts:172
↓ 9 callers
Function
runDetect
* Run detect with a controlled HOME + PATH so the output is deterministic. * We invoke via `bun run <path>` instead of the shebang so the test doesn'
test/gbrain-detect-shape.test.ts:41
↓ 9 callers
Function
runMerge
* Run the merge driver the way git does: `driver <base> <ours> <theirs>`. * The driver writes the merged result back to the <ours> file. Returns that
test/jsonl-merge.test.ts:27
↓ 9 callers
Function
runMigration
(fakeHome: string)
test/artifacts-init-migration.test.ts:19
↓ 9 callers
Function
runValidator
(name: string)
test/gbrain-lib-validate-varname.test.ts:27
↓ 9 callers
Function
setPlatform
(p: NodeJS.Platform)
browse/test/browser-manager-unit.test.ts:49
↓ 9 callers
Function
setupBrowseShims
* Set up browse shims (binary symlink, find-browse, remote-slug) in a tmpDir.
test/skill-e2e.test.ts:112
↓ 9 callers
Function
splitCatalogDescription
(description: string)
scripts/gen-skill-docs.ts:311
↓ 9 callers
Function
startMockUpstream
(opts: MockUpstreamOpts = {})
browse/test/socks-bridge.test.ts:27
↓ 9 callers
Function
validateLease
(sessionId: string | null | undefined)
browse/src/pty-session-lease.ts:67
↓ 9 callers
Function
validateSseSessionToken
(token: string | null | undefined)
browse/src/sse-session-cookie.ts:55
↓ 9 callers
Function
wrapUntrustedContent
(result: string, url: string)
browse/src/commands.ts:83
↓ 9 callers
Function
wrapUntrustedPageContent
( content: string, command: string, filterWarnings?: string[], )
browse/src/content-security.ts:228
↓ 9 callers
Function
writeTestInboxFile
( inboxDir: string, message: string, pageUrl: string, timestamp: string, )
browse/test/file-drop.test.ts:90
↓ 8 callers
Function
activeShutdown
(code: number)
browse/test/browser-manager-unit.test.ts:222
↓ 8 callers
Function
addConsoleEntry
(entry: LogEntry)
browse/src/buffers.ts:127
↓ 8 callers
Function
bootstrapTunnel
(opts: BootstrapOptions)
ios-qa/daemon/src/tunnel-bootstrap.ts:65
↓ 8 callers
Function
buildCommandResponse
(cr: CommandResult)
browse/src/server.ts:1325
↓ 8 callers
Function
buildCtx
(skillName: string)
test/takes-fence-fallback.test.ts:21
↓ 8 callers
Function
buildHermeticEnv
( base: NodeJS.ProcessEnv, hermeticVars: Record<string, string>, overrides?: Record<string, string | und
test/helpers/hermetic-env.ts:88
↓ 8 callers
Function
canonicalize
(obj: Record<string, unknown>)
ios-qa/daemon/src/tailscale-localapi.ts:94
↓ 8 callers
Function
captureBaseline
(opts: CaptureOptions)
test/helpers/capture-parity-baseline.ts:136
↓ 8 callers
Function
cleanSingletonLocks
(userDataDir: string)
browse/src/config.ts:201
↓ 8 callers
Function
computeActive
(events: DecisionEvent[])
lib/gstack-decision.ts:185
↓ 8 callers
Function
createSseEndpoint
( req: Request, config: SseEndpointConfig<T>, )
browse/src/sse-helpers.ts:68
↓ 8 callers
Function
detectEngineTier
()
lib/gstack-memory-helpers.ts:222
↓ 8 callers
Function
downloadFile
(url: string, dest: string)
browse/src/security-classifier.ts:138
↓ 8 callers
Function
ensureDaemon
( opts: EnsureDaemonOptions = {}, )
design/src/daemon-client.ts:89
↓ 8 callers
Function
ensureGbrainSourceGitignored
(root: string)
bin/gstack-gbrain-sync.ts:1017
↓ 8 callers
Method
exited
Whether the underlying process has exited.
test/helpers/claude-pty-runner.ts:130
↓ 8 callers
Function
extractSseCookie
(req: Request)
browse/src/sse-session-cookie.ts:71
↓ 8 callers
Function
extractTabId
(args: string[])
browse/src/cli.ts:510
↓ 8 callers
Function
fail
(msg: string)
scripts/preflight-agent-sdk.ts:27
↓ 8 callers
Function
freshGitattrs
()
test/gstack-upgrade-migration-v1_40_0_0.test.ts:159
↓ 8 callers
Function
generateConfidenceCalibration
(_ctx: TemplateContext)
scripts/resolvers/confidence.ts:19
↓ 8 callers
Function
generateGalleryHtml
(designsDir: string)
design/src/gallery.ts:23
↓ 8 callers
Function
generateModelOverlay
(ctx: TemplateContext)
scripts/resolvers/model-overlay.ts:46
↓ 8 callers
Function
getChangedFiles
(baseBranch: string, cwd: string)
test/helpers/touchfiles.ts:841
↓ 8 callers
Method
getFrame
()
browse/src/tab-session.ts:143
↓ 8 callers
Function
getProjectEvalDir
()
test/helpers/eval-store.ts:23
↓ 8 callers
Method
harvest
Harvest changes from a worktree. Returns null if clean or on error.
lib/worktree.ts:152
↓ 8 callers
Function
hasOutArg
(args: string[])
browse/src/read-commands.ts:102
↓ 8 callers
Function
importCache
()
test/salience-allowlist.test.ts:25
↓ 8 callers
Function
killBoth
(reason?: string)
browse/src/socks-bridge.ts:138
↓ 8 callers
Function
listDomains
(browserName: string, profile = 'Default')
browse/src/cookie-import-browser.ts:225
↓ 8 callers
Function
log
(verbose: boolean, msg: string)
design/src/daemon-client.ts:77
↓ 8 callers
Function
logTelemetry
(payload: TelemetryEvent)
browse/src/telemetry.ts:65
↓ 8 callers
Function
makeEnv
* Build a sandboxed HOME with optional fake gbrain on PATH. * `gbrainBehavior` controls how `gbrain sources list` reacts; this drives * localEngineS
test/gbrain-sync-skip.test.ts:43
↓ 8 callers
Function
makeFakeClaude
(opts: { hasGetJson?: boolean; getJsonOutput?: string; // raw JSON string hasMcpList?: boolean; mcpLis
test/gstack-gbrain-detect-mcp-mode.test.ts:26
↓ 8 callers
Function
makeLeakyBin
(name: string, body: string)
test/secret-sink-harness.test.ts:24
↓ 8 callers
Function
makeWorkDir
()
test/skill-e2e-ios.test.ts:35
↓ 8 callers
Method
mark
* Mark the current buffer position. Subsequent waitForAny / visibleSince * calls only look at output AFTER this mark. Use to scope assertions to
test/helpers/claude-pty-runner.ts:110
↓ 8 callers
Function
parseQuestionPrompt
(visible: string)
test/helpers/claude-pty-runner.ts:973
↓ 8 callers
Function
parseSwift
(source: string)
ios-qa/scripts/gen-accessors.ts:77
↓ 8 callers
Function
pass
(msg: string)
scripts/preflight-agent-sdk.ts:26
↓ 8 callers
Function
policyFile
()
test/gbrain-repo-policy.test.ts:39
↓ 8 callers
Function
pushModification
(mod: StyleModification)
browse/src/cdp-inspector.ts:156
↓ 8 callers
Function
read
(fp: string)
test/transcript-section-logger.test.ts:22
↓ 8 callers
Function
readInbox
Replicate the inbox file reading logic from meta-commands.ts
browse/test/file-drop.test.ts:35
↓ 8 callers
Function
readLog
()
test/gstack-question-log.test.ts:37
↓ 8 callers
Function
readSkillName
(skillDir: string)
test/relink.test.ts:475
↓ 8 callers
Function
redactFindingSpans
(input: string, opts: ScanOptions = {})
lib/redact-engine.ts:452
↓ 8 callers
Function
resolveLatest
* Reduce a row stream to latest-version-wins per (host, scope). * Tombstones win (deleted skill stays deleted).
browse/src/domain-skills.ts:192
↓ 8 callers
Function
revokeLease
(sessionId: string | null | undefined)
browse/src/pty-session-lease.ts:111
↓ 8 callers
Function
run
(cmd: string, args: string[])
test/diff-scope.test.ts:21
↓ 8 callers
Function
run
( args: string[], stdin: string, )
test/gstack-redact-cli.test.ts:12
↓ 8 callers
Function
runHook
(stdin: object)
test/question-log-hook.test.ts:38
↓ 8 callers
Function
runLibSnippet
(snippet: string, stdin: string = '')
test/gbrain-lib-verify.test.ts:41
↓ 8 callers
Function
runMigration
(tmpHome: string)
test/migration-checkpoint-ownership.test.ts:10
↓ 8 callers
Function
runMint
(args: string[])
ios-qa/daemon/test/cli-mint.test.ts:16
↓ 8 callers
Function
runOrchestrator
( env: FakeEnv, args: string[], extraEnv: Record<string, string> = {}, )
test/gbrain-sync-skip.test.ts:105
↓ 8 callers
Method
saveState
* Capture browser state: cookies, localStorage, sessionStorage, URLs, active tab. * Skips pages that fail storage reads (e.g., already closed).
browse/src/browser-manager.ts:1266
↓ 8 callers
Function
setLoadingStatus
(msg, debug)
extension/sidepanel.js:1247
↓ 8 callers
Function
setupWorkdir
(suffix: string)
test/skill-e2e-context-skills.test.ts:32
↓ 8 callers
Function
sha256
(s: string)
lib/redact-audit-log.ts:36
↓ 8 callers
Function
skillCalls
(result: { toolCalls: Array<{ tool: string; input: any }> })
test/skill-e2e-context-skills.test.ts:100
↓ 8 callers
Function
stripAnsi
(s: string)
test/helpers/claude-pty-runner.ts:30
← previous
next →
401–500 of 2,512, ranked by callers