MCPcopy Create free account

hub / github.com/garrytan/gstack / functions

Functions2,512 in github.com/garrytan/gstack

↓ 4,829 callersFunctiontest
(name: string, fn: any)
test/brain-sync.test.ts:21
↓ 1,045 callersMethodpush
(entry: T)
browse/src/buffers.ts:32
↓ 403 callersFunctionspawnSync
(cmd, options = {})
browse/src/bun-polyfill.cjs:67
↓ 277 callersFunctionhandleWriteCommand
( command: string, args: string[], session: TabSession, bm: BrowserManager )
browse/src/write-commands.ts:132
↓ 189 callersMethodget
Get entry by index (0 = oldest) — used by network response matching
browse/src/buffers.ts:79
↓ 178 callersFunctionhandleReadCommand
( command: string, args: string[], session: TabSession, bm?: BrowserManager, )
browse/src/read-commands.ts:211
↓ 177 callersFunctionrun
(cmd: string, args: string[])
test/skill-e2e.test.ts:332
↓ 166 callersMethodclose
* 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 callersFunctionrunSkillTest
(options: { prompt: string; workingDirectory: string; maxTurns?: number; allowedTools?: string[]; ti
test/helpers/session-runner.ts:120
↓ 135 callersFunctionhandleMetaCommand
( command: string, args: string[], bm: BrowserManager, shutdown: () => Promise<void> | void, tokenIn
browse/src/meta-commands.ts:254
↓ 105 callersMethodset
Set entry by index (0 = oldest) — used by network response matching
browse/src/buffers.ts:85
↓ 97 callersFunctiontestConcurrentIfSelected
(testName: string, fn: () => Promise<void>, timeout: number)
test/helpers/e2e-helpers.ts:281
↓ 90 callersFunctionlogCost
(label: string, result: { costEstimate: { turnsUsed: number; estimatedTokens: number; estimatedCost: number };
test/helpers/e2e-helpers.ts:136
↓ 89 callersFunctionrecordE2E
( evalCollector: EvalCollector | null, name: string, suite: string, result: SkillTestResult, extra?:
test/helpers/e2e-helpers.ts:165
↓ 76 callersFunctiondescribeIfSelected
(name: string, testNames: string[], fn: () => void)
test/helpers/e2e-helpers.ts:76
↓ 75 callersMethodtext
(selector?: string)
browse/src/browse-client.ts:198
↓ 72 callersFunctionrun
(cmd: string, args: string[])
test/skill-e2e-review.test.ts:25
↓ 67 callersMethodaddEventListener
()
browse/test/security-sidepanel-dom.test.ts:86
↓ 66 callersMethodsend
Send raw bytes to PTY stdin. Newlines = "\r" in TTY world.
test/helpers/claude-pty-runner.ts:97
↓ 58 callersMethodcleanup
Remove a worktree. Non-fatal on error.
lib/worktree.ts:215
↓ 57 callersMethodrun
Run a prompt and return normalized RunResult. Non-throwing. Errors go in result.error.
test/helpers/providers/types.ts:71
↓ 52 callersFunctionrun
(...args: string[])
test/gstack-question-preference.test.ts:29
↓ 50 callersFunctionrun
(cmd: string, args: string[])
test/skill-e2e-plan.test.ts:24
↓ 50 callersFunctionrunDev
(...args: string[])
test/gstack-developer-profile.test.ts:34
↓ 47 callersMethodclear
()
browse/src/buffers.ts:72
↓ 47 callersFunctionrun
(argv: string[], opts: { env?: Record<string, string>; input?: string } = {})
test/brain-sync.test.ts:33
↓ 47 callersFunctionrun
(cmd: string, args: string[])
test/skill-e2e-workflow.test.ts:28
↓ 47 callersMethodstop
()
browse/test/browse-client.test.ts:27
↓ 46 callersMethodgetPage
()
browse/src/tab-session.ts:71
↓ 46 callersFunctionmakeEntry
(overrides: Partial<{ date: string; mode: string; project_slug: string; signal_count: number; signal
test/builder-profile.test.ts:36
↓ 46 callersFunctionrun
(cmd: string, env: Record<string, string> = {}, expectFail = false)
test/relink.test.ts:24
↓ 43 callersFunctionrun
(extraEnv: Record<string, string> = {}, args: string[] = [])
browse/test/gstack-update-check.test.ts:19
↓ 42 callersFunctionfetch
(req)
design/test/serve.test.ts:64
↓ 41 callersFunctioncombineVerdict
(signals: LayerSignal[], opts: CombineVerdictOpts = {})
browse/src/security.ts:149
↓ 41 callersFunctionfetchHandler
(req: Request)
design/src/daemon.ts:471
↓ 41 callersFunctionrun
(cmd: string, env: Record<string, string> = {})
test/telemetry.test.ts:13
↓ 41 callersFunctionvalidateNavigationUrl
(url: string)
browse/src/url-validation.ts:228
↓ 40 callersMethodend
(stage: string, extra?: string)
make-pdf/src/orchestrator.ts:56
↓ 40 callersFunctionrecordE2E
DRY helper to record an E2E test result into the eval collector.
test/skill-e2e.test.ts:67
↓ 39 callersMethodaddTest
(entry: EvalTestEntry)
test/helpers/eval-store.ts:659
↓ 38 callersFunctionrun
(cmd: string, args: string[])
test/skill-e2e-deploy.test.ts:23
↓ 37 callersFunctionids
(text: string, vis: RepoVisibility = "private")
test/redact-engine.test.ts:26
↓ 37 callersFunctionreq
(method: string, urlPath: string, body?: unknown)
design/test/daemon-tests-fixtures.ts:42
↓ 36 callersFunctioncreateToken
(opts: CreateTokenOptions)
browse/src/token-registry.ts:192
↓ 36 callersFunctionlogCost
* Print cost summary after an E2E test.
test/skill-e2e.test.ts:140
↓ 36 callersFunctionrun
(args: string[], opts: { env?: Record<string, string> } = {})
test/gbrain-repo-policy.test.ts:27
↓ 36 callersFunctionrun
(args: string[] = [], extraEnv: Record<string, string> = {})
browse/test/gstack-config.test.ts:17
↓ 35 callersFunctioncheckCanaryInStructure
(value: unknown, canary: string)
browse/src/security.ts:297
↓ 35 callersFunctioncheckScope
(info: TokenInfo, command: string)
browse/src/token-registry.ts:356
↓ 34 callersFunctionfetch
(req)
design/src/serve.ts:75
↓ 34 callersFunctionreadSkillUnion
(skill: string)
test/gen-skill-docs.test.ts:15
↓ 34 callersFunctionscan
(input: string, opts: ScanOptions = {})
lib/redact-engine.ts:254
↓ 33 callersFunctionapi
(pathname: string, opts: RequestInit & { noAuth?: boolean } = {})
browse/test/sidebar-integration.test.ts:20
↓ 33 callersFunctionrunBin
( args: string[], env: Record<string, string> = {} )
test/gbrain-supabase-provision.test.ts:63
↓ 32 callersMethodgoto
(url: string)
browse/src/browse-client.ts:193
↓ 32 callersFunctionsetState
(next, opts = {})
extension/sidepanel-terminal.js:111
↓ 32 callersFunctionsliceBetween
(source: string, startMarker: string, endMarker: string)
browse/test/server-auth.test.ts:16
↓ 31 callersFunctionrunLog
(input: string, opts: { expectFail?: boolean } = {})
test/learnings.test.ts:14
↓ 31 callersFunctionsetConfig
(key: string, value: string)
test/telemetry.test.ts:22
↓ 31 callersFunctionsliceBetween
* Extract the source text between two string markers.
browse/test/security-audit-r2.test.ts:33
↓ 29 callersFunctionfetch
(req)
browse/test/test-server.ts:15
↓ 28 callersMethodgetActiveSession
Get the TabSession for the active tab.
browse/src/browser-manager.ts:942
↓ 28 callersFunctionjsonResp
(body: any, status = 200)
test/gbrain-supabase-provision.test.ts:83
↓ 28 callersFunctionrun
(cmd: string, opts: { cwd?: string; env?: Record<string, string> } = {})
test/team-mode.test.ts:16
↓ 28 callersFunctionspawn
(cmd, options = {})
browse/src/bun-polyfill.cjs:87
↓ 27 callersMethodcommand
Send an arbitrary command; returns raw response text. Throws on non-2xx.
browse/src/browse-client.ts:149
↓ 27 callersFunctionhandleCookiePickerRoute
( url: URL, req: Request, bm: BrowserManager, authToken?: string, )
browse/src/cookie-picker-routes.ts:108
↓ 27 callersFunctionlocalEngineStatus
(opts: ClassifyOptions = {})
lib/gbrain-local-status.ts:313
↓ 27 callersFunctionreadShipUnion
()
test/skill-validation.test.ts:24
↓ 26 callersFunctioncopyDirSync
(src: string, dest: string)
test/helpers/e2e-helpers.ts:92
↓ 26 callersFunctioncreateEvalCollector
(suite: string)
test/helpers/e2e-helpers.ts:160
↓ 26 callersFunctiondescribeIfSelected
Wrap a describe block to skip entirely if none of its tests are selected.
test/skill-e2e.test.ts:49
↓ 26 callersFunctionfinalizeEvalCollector
(evalCollector: EvalCollector | null)
test/helpers/e2e-helpers.ts:242
↓ 26 callersFunctionisCdpMethodAllowed
(qualifiedName: string)
browse/src/cdp-allowlist.ts:212
↓ 26 callersFunctionisProcessAlive
(pid: number)
browse/src/error-handling.ts:40
↓ 26 callersFunctionrun
(cmd: string, args: string[])
test/skill-routing-e2e.test.ts:115
↓ 26 callersFunctionrunHook
(scriptPath: string, input: object, env?: Record<string, string>)
test/hook-scripts.test.ts:11
↓ 26 callersFunctionrunProfile
()
test/builder-profile.test.ts:12
↓ 26 callersFunctionstartMock
(routes: Record<string, Handler>)
test/gbrain-supabase-provision.test.ts:35
↓ 25 callersFunctioncanDispatchOverTunnel
(command: string | undefined | null, args?: string[])
browse/src/server.ts:339
↓ 25 callersFunctiongeneratePreamble
(ctx: TemplateContext)
scripts/resolvers/preamble.ts:79
↓ 25 callersFunctionisProseAUQVisible
(visible: string)
test/helpers/claude-pty-runner.ts:536
↓ 25 callersFunctionmakeUrl
(path: string, port = 9470)
browse/test/cookie-picker-routes.test.ts:31
↓ 25 callersFunctionprintCss
(opts: PrintCssOptions = {})
make-pdf/src/print-css.ts:73
↓ 25 callersFunctiontestIfSelected
Skip an individual test if not selected (for multi-test describe blocks).
test/skill-llm-eval.test.ts:57
↓ 24 callersFunctiongenerateCanary
()
browse/src/security.ts:272
↓ 24 callersFunctiongit
(cwd: string, args: string)
test/preamble-first-task-scaffold.test.ts:30
↓ 24 callersFunctionmakeBoardHtml
(tmpDir: string, body = "<p>Test board</p>")
design/test/daemon-tests-fixtures.ts:27
↓ 24 callersFunctionmakeSkill
(tierRoot: string, name: string, frontmatter: string, body: string = '\nBody.\n')
browse/test/browser-skills-storage.test.ts:38
↓ 24 callersFunctionmockBrowserManager
()
browse/test/cookie-picker-routes.test.ts:14
↓ 24 callersFunctionrender
(opts: RenderOptions)
make-pdf/src/render.ts:68
↓ 24 callersFunctionrunAgentSdkTest
( opts: RunAgentSdkOptions, )
test/helpers/agent-sdk-runner.ts:296
↓ 23 callersFunctiondecide
(id: string, over: Partial<DecisionEvent> = {})
test/gstack-decision.test.ts:29
↓ 23 callersFunctionlog
(arg: string, expectFail = false)
test/gstack-decision-bins.test.ts:21
↓ 23 callersFunctionrun
( argv: string[], opts: { env?: Record<string, string> } = {} )
test/gstack-gbrain-source-wireup.test.ts:111
↓ 23 callersFunctionvalidateSkill
(skillPath: string)
test/helpers/skill-parser.ts:105
↓ 23 callersFunctionwriteProfile
(entries: object[])
test/builder-profile.test.ts:30
↓ 22 callersFunctionmakeTestHome
()
test/gstack-gbrain-sync.test.ts:25
↓ 22 callersFunctionmkdirSecure
(dirPath: string)
browse/src/file-permissions.ts:147
↓ 22 callersFunctionrun
(args: string[])
test/taste-engine.test.ts:51
next →1–100 of 2,512, ranked by callers