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
↓ 4,829 callers
Function
test
(name: string, fn: any)
test/brain-sync.test.ts:21
↓ 1,045 callers
Method
push
(entry: T)
browse/src/buffers.ts:32
↓ 403 callers
Function
spawnSync
(cmd, options = {})
browse/src/bun-polyfill.cjs:67
↓ 277 callers
Function
handleWriteCommand
( command: string, args: string[], session: TabSession, bm: BrowserManager )
browse/src/write-commands.ts:132
↓ 189 callers
Method
get
Get entry by index (0 = oldest) — used by network response matching
browse/src/buffers.ts:79
↓ 178 callers
Function
handleReadCommand
( command: string, args: string[], session: TabSession, bm?: BrowserManager, )
browse/src/read-commands.ts:211
↓ 177 callers
Function
run
(cmd: string, args: string[])
test/skill-e2e.test.ts:332
↓ 166 callers
Method
close
* Send SIGINT, then SIGKILL after 1s. Always safe to call multiple times. * Awaits process exit before resolving.
test/helpers/claude-pty-runner.ts:144
↓ 148 callers
Function
runSkillTest
(options: { prompt: string; workingDirectory: string; maxTurns?: number; allowedTools?: string[]; ti
test/helpers/session-runner.ts:120
↓ 135 callers
Function
handleMetaCommand
( command: string, args: string[], bm: BrowserManager, shutdown: () => Promise<void> | void, tokenIn
browse/src/meta-commands.ts:254
↓ 105 callers
Method
set
Set entry by index (0 = oldest) — used by network response matching
browse/src/buffers.ts:85
↓ 97 callers
Function
testConcurrentIfSelected
(testName: string, fn: () => Promise<void>, timeout: number)
test/helpers/e2e-helpers.ts:281
↓ 90 callers
Function
logCost
(label: string, result: { costEstimate: { turnsUsed: number; estimatedTokens: number; estimatedCost: number };
test/helpers/e2e-helpers.ts:136
↓ 89 callers
Function
recordE2E
( evalCollector: EvalCollector | null, name: string, suite: string, result: SkillTestResult, extra?:
test/helpers/e2e-helpers.ts:165
↓ 76 callers
Function
describeIfSelected
(name: string, testNames: string[], fn: () => void)
test/helpers/e2e-helpers.ts:76
↓ 75 callers
Method
text
(selector?: string)
browse/src/browse-client.ts:198
↓ 72 callers
Function
run
(cmd: string, args: string[])
test/skill-e2e-review.test.ts:25
↓ 67 callers
Method
addEventListener
()
browse/test/security-sidepanel-dom.test.ts:86
↓ 66 callers
Method
send
Send raw bytes to PTY stdin. Newlines = "\r" in TTY world.
test/helpers/claude-pty-runner.ts:97
↓ 58 callers
Method
cleanup
Remove a worktree. Non-fatal on error.
lib/worktree.ts:215
↓ 57 callers
Method
run
Run a prompt and return normalized RunResult. Non-throwing. Errors go in result.error.
test/helpers/providers/types.ts:71
↓ 52 callers
Function
run
(...args: string[])
test/gstack-question-preference.test.ts:29
↓ 50 callers
Function
run
(cmd: string, args: string[])
test/skill-e2e-plan.test.ts:24
↓ 50 callers
Function
runDev
(...args: string[])
test/gstack-developer-profile.test.ts:34
↓ 47 callers
Method
clear
()
browse/src/buffers.ts:72
↓ 47 callers
Function
run
(argv: string[], opts: { env?: Record<string, string>; input?: string } = {})
test/brain-sync.test.ts:33
↓ 47 callers
Function
run
(cmd: string, args: string[])
test/skill-e2e-workflow.test.ts:28
↓ 47 callers
Method
stop
()
browse/test/browse-client.test.ts:27
↓ 46 callers
Method
getPage
()
browse/src/tab-session.ts:71
↓ 46 callers
Function
makeEntry
(overrides: Partial<{ date: string; mode: string; project_slug: string; signal_count: number; signal
test/builder-profile.test.ts:36
↓ 46 callers
Function
run
(cmd: string, env: Record<string, string> = {}, expectFail = false)
test/relink.test.ts:24
↓ 43 callers
Function
run
(extraEnv: Record<string, string> = {}, args: string[] = [])
browse/test/gstack-update-check.test.ts:19
↓ 42 callers
Function
fetch
(req)
design/test/serve.test.ts:64
↓ 41 callers
Function
combineVerdict
(signals: LayerSignal[], opts: CombineVerdictOpts = {})
browse/src/security.ts:149
↓ 41 callers
Function
fetchHandler
(req: Request)
design/src/daemon.ts:471
↓ 41 callers
Function
run
(cmd: string, env: Record<string, string> = {})
test/telemetry.test.ts:13
↓ 41 callers
Function
validateNavigationUrl
(url: string)
browse/src/url-validation.ts:228
↓ 40 callers
Method
end
(stage: string, extra?: string)
make-pdf/src/orchestrator.ts:56
↓ 40 callers
Function
recordE2E
DRY helper to record an E2E test result into the eval collector.
test/skill-e2e.test.ts:67
↓ 39 callers
Method
addTest
(entry: EvalTestEntry)
test/helpers/eval-store.ts:659
↓ 38 callers
Function
run
(cmd: string, args: string[])
test/skill-e2e-deploy.test.ts:23
↓ 37 callers
Function
ids
(text: string, vis: RepoVisibility = "private")
test/redact-engine.test.ts:26
↓ 37 callers
Function
req
(method: string, urlPath: string, body?: unknown)
design/test/daemon-tests-fixtures.ts:42
↓ 36 callers
Function
createToken
(opts: CreateTokenOptions)
browse/src/token-registry.ts:192
↓ 36 callers
Function
logCost
* Print cost summary after an E2E test.
test/skill-e2e.test.ts:140
↓ 36 callers
Function
run
(args: string[], opts: { env?: Record<string, string> } = {})
test/gbrain-repo-policy.test.ts:27
↓ 36 callers
Function
run
(args: string[] = [], extraEnv: Record<string, string> = {})
browse/test/gstack-config.test.ts:17
↓ 35 callers
Function
checkCanaryInStructure
(value: unknown, canary: string)
browse/src/security.ts:297
↓ 35 callers
Function
checkScope
(info: TokenInfo, command: string)
browse/src/token-registry.ts:356
↓ 34 callers
Function
fetch
(req)
design/src/serve.ts:75
↓ 34 callers
Function
readSkillUnion
(skill: string)
test/gen-skill-docs.test.ts:15
↓ 34 callers
Function
scan
(input: string, opts: ScanOptions = {})
lib/redact-engine.ts:254
↓ 33 callers
Function
api
(pathname: string, opts: RequestInit & { noAuth?: boolean } = {})
browse/test/sidebar-integration.test.ts:20
↓ 33 callers
Function
runBin
( args: string[], env: Record<string, string> = {} )
test/gbrain-supabase-provision.test.ts:63
↓ 32 callers
Method
goto
(url: string)
browse/src/browse-client.ts:193
↓ 32 callers
Function
setState
(next, opts = {})
extension/sidepanel-terminal.js:111
↓ 32 callers
Function
sliceBetween
(source: string, startMarker: string, endMarker: string)
browse/test/server-auth.test.ts:16
↓ 31 callers
Function
runLog
(input: string, opts: { expectFail?: boolean } = {})
test/learnings.test.ts:14
↓ 31 callers
Function
setConfig
(key: string, value: string)
test/telemetry.test.ts:22
↓ 31 callers
Function
sliceBetween
* Extract the source text between two string markers.
browse/test/security-audit-r2.test.ts:33
↓ 29 callers
Function
fetch
(req)
browse/test/test-server.ts:15
↓ 28 callers
Method
getActiveSession
Get the TabSession for the active tab.
browse/src/browser-manager.ts:942
↓ 28 callers
Function
jsonResp
(body: any, status = 200)
test/gbrain-supabase-provision.test.ts:83
↓ 28 callers
Function
run
(cmd: string, opts: { cwd?: string; env?: Record<string, string> } = {})
test/team-mode.test.ts:16
↓ 28 callers
Function
spawn
(cmd, options = {})
browse/src/bun-polyfill.cjs:87
↓ 27 callers
Method
command
Send an arbitrary command; returns raw response text. Throws on non-2xx.
browse/src/browse-client.ts:149
↓ 27 callers
Function
handleCookiePickerRoute
( url: URL, req: Request, bm: BrowserManager, authToken?: string, )
browse/src/cookie-picker-routes.ts:108
↓ 27 callers
Function
localEngineStatus
(opts: ClassifyOptions = {})
lib/gbrain-local-status.ts:313
↓ 27 callers
Function
readShipUnion
()
test/skill-validation.test.ts:24
↓ 26 callers
Function
copyDirSync
(src: string, dest: string)
test/helpers/e2e-helpers.ts:92
↓ 26 callers
Function
createEvalCollector
(suite: string)
test/helpers/e2e-helpers.ts:160
↓ 26 callers
Function
describeIfSelected
Wrap a describe block to skip entirely if none of its tests are selected.
test/skill-e2e.test.ts:49
↓ 26 callers
Function
finalizeEvalCollector
(evalCollector: EvalCollector | null)
test/helpers/e2e-helpers.ts:242
↓ 26 callers
Function
isCdpMethodAllowed
(qualifiedName: string)
browse/src/cdp-allowlist.ts:212
↓ 26 callers
Function
isProcessAlive
(pid: number)
browse/src/error-handling.ts:40
↓ 26 callers
Function
run
(cmd: string, args: string[])
test/skill-routing-e2e.test.ts:115
↓ 26 callers
Function
runHook
(scriptPath: string, input: object, env?: Record<string, string>)
test/hook-scripts.test.ts:11
↓ 26 callers
Function
runProfile
()
test/builder-profile.test.ts:12
↓ 26 callers
Function
startMock
(routes: Record<string, Handler>)
test/gbrain-supabase-provision.test.ts:35
↓ 25 callers
Function
canDispatchOverTunnel
(command: string | undefined | null, args?: string[])
browse/src/server.ts:339
↓ 25 callers
Function
generatePreamble
(ctx: TemplateContext)
scripts/resolvers/preamble.ts:79
↓ 25 callers
Function
isProseAUQVisible
(visible: string)
test/helpers/claude-pty-runner.ts:536
↓ 25 callers
Function
makeUrl
(path: string, port = 9470)
browse/test/cookie-picker-routes.test.ts:31
↓ 25 callers
Function
printCss
(opts: PrintCssOptions = {})
make-pdf/src/print-css.ts:73
↓ 25 callers
Function
testIfSelected
Skip an individual test if not selected (for multi-test describe blocks).
test/skill-llm-eval.test.ts:57
↓ 24 callers
Function
generateCanary
()
browse/src/security.ts:272
↓ 24 callers
Function
git
(cwd: string, args: string)
test/preamble-first-task-scaffold.test.ts:30
↓ 24 callers
Function
makeBoardHtml
(tmpDir: string, body = "<p>Test board</p>")
design/test/daemon-tests-fixtures.ts:27
↓ 24 callers
Function
makeSkill
(tierRoot: string, name: string, frontmatter: string, body: string = '\nBody.\n')
browse/test/browser-skills-storage.test.ts:38
↓ 24 callers
Function
mockBrowserManager
()
browse/test/cookie-picker-routes.test.ts:14
↓ 24 callers
Function
render
(opts: RenderOptions)
make-pdf/src/render.ts:68
↓ 24 callers
Function
runAgentSdkTest
( opts: RunAgentSdkOptions, )
test/helpers/agent-sdk-runner.ts:296
↓ 23 callers
Function
decide
(id: string, over: Partial<DecisionEvent> = {})
test/gstack-decision.test.ts:29
↓ 23 callers
Function
log
(arg: string, expectFail = false)
test/gstack-decision-bins.test.ts:21
↓ 23 callers
Function
run
( argv: string[], opts: { env?: Record<string, string> } = {} )
test/gstack-gbrain-source-wireup.test.ts:111
↓ 23 callers
Function
validateSkill
(skillPath: string)
test/helpers/skill-parser.ts:105
↓ 23 callers
Function
writeProfile
(entries: object[])
test/builder-profile.test.ts:30
↓ 22 callers
Function
makeTestHome
()
test/gstack-gbrain-sync.test.ts:25
↓ 22 callers
Function
mkdirSecure
(dirPath: string)
browse/src/file-permissions.ts:147
↓ 22 callers
Function
run
(args: string[])
test/taste-engine.test.ts:51
next →
1–100 of 2,512, ranked by callers