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
↓ 15 callers
Function
hasCapability
(allowlist: Allowlist, identity: string, need: Capability)
ios-qa/daemon/src/allowlist.ts:69
↓ 15 callers
Function
img
(attrs: string)
make-pdf/test/image-policy.test.ts:24
↓ 15 callers
Method
incrementFailures
()
browse/src/browser-manager.ts:1669
↓ 15 callers
Function
inlineLocalImages
(html: string, opts: PrepassImageOptions)
make-pdf/src/diagram-prepass.ts:584
↓ 15 callers
Function
makeCtx
(overrides: Partial<TemplateContext> = {})
test/resolver-entry.test.ts:11
↓ 15 callers
Function
makeSpawn
* Build a spawnImpl that walks through a scripted sequence of expected calls. * Each call matches its args against `argsMatch`. Unmatched calls retur
ios-qa/daemon/test/tunnel-bootstrap.test.ts:31
↓ 15 callers
Function
makeStubProvider
(config: StubConfig)
test/agent-sdk-runner.test.ts:173
↓ 15 callers
Function
makeTmpDir
(prefix = "design-daemon-test")
design/test/daemon-tests-fixtures.ts:23
↓ 15 callers
Function
resolveStageTimeoutMs
( envValue: string | undefined, envName: string, defaultMs: number = DEFAULT_STAGE_TIMEOUT_MS, )
bin/gstack-gbrain-sync.ts:129
↓ 15 callers
Function
runProbe
(opts: { snippet: string; env?: Record<string, string | undefined>; home?: string; })
test/codex-hardening.test.ts:12
↓ 15 callers
Function
safeKill
(pid: number, signal: NodeJS.Signals | number)
browse/src/error-handling.ts:31
↓ 15 callers
Function
sanitizeLoneSurrogates
(str: string)
browse/src/server.ts:85
↓ 15 callers
Function
search
(args = "")
test/gstack-decision-bins.test.ts:32
↓ 15 callers
Function
shouldRunDream
(args: CliArgs, cycle: CycleStatus | null)
bin/gstack-gbrain-sync.ts:1180
↓ 15 callers
Method
toArray
Return entries in insertion order (oldest first)
browse/src/buffers.ts:45
↓ 15 callers
Function
validateHostConfig
(config: HostConfig)
scripts/host-config.ts:120
↓ 14 callers
Function
classifyVisible
( visible: string, opts?: { /** * When true, treat Write/Edit to `.claude/plans/*` BEFORE any
test/helpers/claude-pty-runner.ts:816
↓ 14 callers
Function
hide
(el)
extension/sidepanel-terminal.js:109
↓ 14 callers
Function
importCache
()
test/brain-cache-roundtrip.test.ts:41
↓ 14 callers
Function
isPathWithin
(resolvedPath: string, dir: string)
browse/src/platform.ts:15
↓ 14 callers
Function
logBudgetOverride
(entry: BudgetOverrideEntry)
test/helpers/budget-override.ts:29
↓ 14 callers
Function
makeEntry
(size: number, url = 'https://example.com')
browse/test/data-platform.test.ts:17
↓ 14 callers
Function
makeSkillDir
(tierRoot: string, name: string, frontmatter: string, scriptBody: string = '')
browse/test/browser-skill-commands.test.ts:48
↓ 14 callers
Function
makeValid
()
test/host-config.test.ts:108
↓ 14 callers
Function
mintSkillToken
(opts: MintSkillTokenOptions)
browse/src/skill-token.ts:74
↓ 14 callers
Function
normalizeFileUrl
(url: string)
browse/src/url-validation.ts:127
↓ 14 callers
Function
parsePdfFromFile
(payloadPath: string)
browse/src/meta-commands.ts:140
↓ 14 callers
Function
parseStoriesFromHtml
(html: string)
browser-skills/hackernews-frontpage/script.ts:53
↓ 14 callers
Function
publishBoard
(opts: PublishBoardOptions)
design/src/daemon-client.ts:188
↓ 14 callers
Function
readBrowserSkill
(name: string, tiers?: TierPaths)
browse/src/browser-skills.ts:367
↓ 14 callers
Function
resolveClaudeCommand
( env: NodeJS.ProcessEnv = process.env, )
browse/src/claude-bin.ts:49
↓ 14 callers
Function
run
(env: Record<string, string | undefined>)
test/gstack-paths.test.ts:18
↓ 14 callers
Function
run
(args: string[], opts: { env?: Record<string, string> } = {})
test/benchmark-cli.test.ts:23
↓ 14 callers
Function
runSearch
(args: string = '')
test/learnings.test.ts:32
↓ 14 callers
Function
runVerify
(arg: string, stdin?: string)
test/gbrain-lib-verify.test.ts:27
↓ 14 callers
Function
runWorkflowJudge
* DRY helper for workflow SKILL.md judge tests. * Extracts a section from a SKILL.md file and judges its quality as an agent workflow.
test/skill-llm-eval.test.ts:531
↓ 14 callers
Function
sampleFiles
()
browse/test/browser-skill-write.test.ts:50
↓ 14 callers
Method
validate
* Validate a token. Returns the session if valid (token exists, not * expired). Otherwise returns null with a reason for the audit log.
ios-qa/daemon/src/session-tokens.ts:52
↓ 14 callers
Function
validateReadPath
(filePath: string)
browse/src/path-security.ts:78
↓ 13 callers
Function
appendEvent
(paths: DecisionPaths, event: DecisionEvent)
lib/gstack-decision.ts:212
↓ 13 callers
Function
computeCacheKey
(inputs: { swiftFiles: string[]; swiftVersion: string; toolGitRev: string; platformTriple: string; })
ios-qa/scripts/gen-accessors.ts:152
↓ 13 callers
Function
encryptCookieValue
( value: string, options?: { key?: Buffer; prefix?: 'v10' | 'v11' }, )
browse/test/cookie-import-browser.test.ts:41
↓ 13 callers
Function
extractDiagramFences
(markdown: string)
make-pdf/src/diagram-prepass.ts:110
↓ 13 callers
Function
extractFunction
* Extract a function body by name — finds `function name(` or `export function name(` * and returns the full balanced-brace block.
browse/test/security-audit-r2.test.ts:45
↓ 13 callers
Function
fp
(promptSnippet: string, optionLabels: string[])
test/helpers/claude-pty-runner.unit.test.ts:966
↓ 13 callers
Method
getSession
Get a TabSession by tab ID. Used by /batch for parallel tab execution.
browse/src/browser-manager.ts:949
↓ 13 callers
Function
git
(args: string[], cwd = repo)
test/redact-prepush-hook.test.ts:22
↓ 13 callers
Function
judgeRecommendation
(askUserText: string)
test/helpers/llm-judge.ts:228
↓ 13 callers
Function
makeFakeCurl
* Write a fake curl shim. Three knobs: * exitCode — what `curl` returns (0=ok, 6=DNS, 28=timeout, etc). * httpCode — what `-w '%{http_code
test/gstack-gbrain-mcp-verify.test.ts:36
↓ 13 callers
Function
makeFakeGh
(opts: { authStatus?: 'ok' | 'fail'; repoCreate?: 'success' | 'already-exists' | 'fail'; webUrl?: string } = {
test/gstack-artifacts-init.test.ts:35
↓ 13 callers
Function
parseKV
(stdout: string)
test/context-save-hardening.test.ts:66
↓ 13 callers
Function
parseOutArgs
(args: string[])
browse/src/read-commands.ts:65
↓ 13 callers
Function
redactProxyUrl
(input: string | null | undefined)
browse/src/proxy-redact.ts:17
↓ 13 callers
Function
resolvePopplerTool
( tool: "pdffonts" | "pdfimages" | "pdftoppm", env: NodeJS.ProcessEnv = process.env, )
make-pdf/src/pdftotext.ts:127
↓ 13 callers
Function
run
(...args: string[])
test/host-config.test.ts:296
↓ 13 callers
Function
runScript
(args: string[], env: Record<string, string> = {})
test/gstack-gbrain-sync.test.ts:29
↓ 13 callers
Function
sh
(cmd: string, cwd: string)
test/skill-e2e-ship-idempotency.test.ts:70
↓ 13 callers
Function
sliceBetween
(source: string, start: string, end: string)
browse/test/dual-listener.test.ts:21
↓ 13 callers
Function
writeFixture
(name: string, content: string)
test/skill-parser.test.ts:9
↓ 13 callers
Function
writeProjectPref
(questionId: string, preference: string)
test/question-preference-hook.test.ts:47
↓ 12 callers
Function
auqFingerprint
( promptSnippet: string, opts: Array<{ index: number; label: string }>, )
test/helpers/claude-pty-runner.ts:1040
↓ 12 callers
Method
begin
(stage: string)
make-pdf/src/orchestrator.ts:51
↓ 12 callers
Function
createTestRepo
Create a minimal git repo in a tmpdir for testing.
test/worktree.test.ts:17
↓ 12 callers
Function
detect
(cwd: string)
test/preamble-first-task-scaffold.test.ts:27
↓ 12 callers
Function
detectBaseBranch
(cwd: string)
test/helpers/touchfiles.ts:828
↓ 12 callers
Function
dlog
(...args: unknown[])
design/src/daemon.ts:102
↓ 12 callers
Function
extractGlobalFlags
(rawArgs: string[], env: NodeJS.ProcessEnv)
browse/src/cli.ts:786
↓ 12 callers
Function
filterArgs
(command: string, args: string[])
browse/src/activity.ts:54
↓ 12 callers
Function
findBudgetRegressions
( comparison: ComparisonResult, opts?: { ratioCap?: number; minPriorTools?: number; minPriorTurns?: number
test/helpers/eval-store.ts:576
↓ 12 callers
Function
finish
(ok: boolean)
browse/src/security-classifier.ts:419
↓ 12 callers
Function
fmtBoxVal
(v)
extension/sidepanel.js:765
↓ 12 callers
Function
generateInstructionBlock
(opts: InstructionBlockOptions)
browse/src/cli.ts:663
↓ 12 callers
Function
getHostConfig
(name: string)
hosts/index.ts:35
↓ 12 callers
Function
imageDims
(buf: Buffer)
make-pdf/src/image-size.ts:19
↓ 12 callers
Function
isRootToken
(token: string)
browse/src/token-registry.ts:167
↓ 12 callers
Function
kind
Run the helper with ONLY the supplied env (plus PATH so bash resolves).
test/gstack-session-kind.test.ts:21
↓ 12 callers
Function
makeResult
(overrides?: Partial<EvalResult>)
test/helpers/eval-store.test.ts:42
↓ 12 callers
Function
mintSseSessionToken
()
browse/src/sse-session-cookie.ts:39
↓ 12 callers
Function
normalize
(raw: string)
make-pdf/src/pdftotext.ts:213
↓ 12 callers
Function
parseJsonl
()
test/telemetry.test.ts:32
↓ 12 callers
Function
readIfExists
(p: string)
browse/test/server-embedder-terminal-port.test.ts:70
↓ 12 callers
Function
readProfile
()
test/taste-engine.test.ts:70
↓ 12 callers
Function
readState
()
browse/src/cli.ts:109
↓ 12 callers
Function
readTmpl
()
test/regression-1624-retro-stale-base.test.ts:28
↓ 12 callers
Function
resolveImportTimeoutMs
( raw: string | undefined = process.env.GSTACK_INGEST_TIMEOUT_MS, )
bin/gstack-memory-ingest.ts:1395
↓ 12 callers
Function
respond
(res: import('http').ServerResponse, status: number, body: unknown)
test/skill-e2e-ios.test.ts:152
↓ 12 callers
Function
run
(extraEnv: Record<string, string> = {}, input = '')
test/migrations-v1.27.0.0.test.ts:68
↓ 12 callers
Function
run
(cmd: string, args: string[])
test/skill-e2e-bws.test.ts:192
↓ 12 callers
Function
run
(...args: string[])
test/explain-level-config.test.ts:30
↓ 12 callers
Function
runBun
(script: string, args: string[], env: Record<string, string>)
test/skill-e2e-memory-pipeline.test.ts:89
↓ 12 callers
Function
setupFakeHome
()
test/artifacts-init-migration.test.ts:13
↓ 12 callers
Function
shouldEnableChromiumSandbox
()
browse/src/browser-manager.ts:63
↓ 12 callers
Method
stopWatch
()
browse/src/browser-manager.ts:266
↓ 12 callers
Function
validateAuth
(req: Request)
browse/src/server.ts:1574
↓ 12 callers
Function
withEnv
(env: Record<string, string | undefined>, body: () => void)
browse/test/stealth-layer-c.test.ts:124
↓ 12 callers
Function
writeFiles
(files: Record<string, string>)
test/ship-version-sync.test.ts:23
↓ 11 callers
Function
applyStealth
(context: BrowserContext)
browse/src/stealth.ts:455
↓ 11 callers
Function
buildStealthScript
(hw: HostProfile)
browse/src/stealth.ts:82
↓ 11 callers
Method
checkTabAccess
* Check if a client can access a tab. * * Two policies, distinguished by `options.ownOnly`: * * - **own-only (pair-agent over tunnel):**
browse/src/browser-manager.ts:912
↓ 11 callers
Function
cleanupHiddenMarkers
(page: Page | Frame)
browse/src/content-security.ts:192
← previous
next →
201–300 of 2,512, ranked by callers