MCPcopy Create free account

hub / github.com/garrytan/gstack / functions

Functions2,512 in github.com/garrytan/gstack

↓ 9 callersFunctionexchangeSetupKey
(setupKey: string, sessionExpiresSeconds?: number | null)
browse/src/token-registry.ts:278
↓ 9 callersFunctionextractBrowseCommands
(skillPath: string)
test/helpers/skill-parser.ts:40
↓ 9 callersFunctionformatReport
(events: AnalyticsEvent[], period: string = 'all')
scripts/analytics.ts:69
↓ 9 callersFunctiongenerate
(inputs: GenInputs)
ios-qa/scripts/gen-accessors.ts:222
↓ 9 callersFunctiongenerateBrainPreflight
(ctx: TemplateContext)
scripts/resolvers/gbrain.ts:145
↓ 9 callersFunctiongenerateRedactInvocationBlock
(ctx: TemplateContext, args?: string[])
scripts/resolvers/redact-doc.ts:120
↓ 9 callersFunctionjsonResponse
(data: any, opts: { port: number; status?: number })
browse/src/cookie-picker-routes.ts:89
↓ 9 callersFunctionloadAllowlist
(path: string = defaultAllowlistPath())
ios-qa/daemon/src/allowlist.ts:19
↓ 9 callersFunctionlogHas
(p: string, needle: string)
test/gstack-detach.test.ts:28
↓ 9 callersFunctionmakeCtx
(host: 'claude' | 'codex', tier: 1 | 2 | 3 | 4)
test/writing-style-resolver.test.ts:22
↓ 9 callersFunctionmakeFakeGbrain
* 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 callersFunctionoptionsSignature
( opts: Array<{ index: number; label: string }>, )
test/helpers/claude-pty-runner.ts:755
↓ 9 callersFunctionparseNDJSON
(lines: string[])
test/helpers/session-runner.ts:78
↓ 9 callersFunctionprojectFile
(slug: string)
browse/src/domain-skills.ts:73
↓ 9 callersFunctionreadAgentRecord
(stateDir: string)
browse/src/terminal-agent-control.ts:98
↓ 9 callersFunctionreadCalls
(file: string)
test/gstack-artifacts-init.test.ts:146
↓ 9 callersFunctionreadDecision
(tabId: number)
browse/src/security.ts:603
↓ 9 callersFunctionreadRows
* 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 callersFunctionrequireApiKey
()
design/src/auth.ts:121
↓ 9 callersFunctionresetState
()
browse/test/sidebar-integration.test.ts:77
↓ 9 callersFunctionresolveDisconnectCause
(browser: Browser | null)
browse/src/browser-manager.ts:93
↓ 9 callersFunctionresolvePdftotext
(env: NodeJS.ProcessEnv = process.env)
make-pdf/src/pdftotext.ts:74
↓ 9 callersFunctionrun
(opts: { path?: string } = {})
test/gstack-upgrade-migration-v1_40_0_0.test.ts:129
↓ 9 callersFunctionrunBrowse
* Run a browse command. Returns stdout on success. * Throws BrowseClientError on non-zero exit.
make-pdf/src/browseClient.ts:172
↓ 9 callersFunctionrunDetect
* 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 callersFunctionrunMerge
* 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 callersFunctionrunMigration
(fakeHome: string)
test/artifacts-init-migration.test.ts:19
↓ 9 callersFunctionrunValidator
(name: string)
test/gbrain-lib-validate-varname.test.ts:27
↓ 9 callersFunctionsetPlatform
(p: NodeJS.Platform)
browse/test/browser-manager-unit.test.ts:49
↓ 9 callersFunctionsetupBrowseShims
* Set up browse shims (binary symlink, find-browse, remote-slug) in a tmpDir.
test/skill-e2e.test.ts:112
↓ 9 callersFunctionsplitCatalogDescription
(description: string)
scripts/gen-skill-docs.ts:311
↓ 9 callersFunctionstartMockUpstream
(opts: MockUpstreamOpts = {})
browse/test/socks-bridge.test.ts:27
↓ 9 callersFunctionvalidateLease
(sessionId: string | null | undefined)
browse/src/pty-session-lease.ts:67
↓ 9 callersFunctionvalidateSseSessionToken
(token: string | null | undefined)
browse/src/sse-session-cookie.ts:55
↓ 9 callersFunctionwrapUntrustedContent
(result: string, url: string)
browse/src/commands.ts:83
↓ 9 callersFunctionwrapUntrustedPageContent
( content: string, command: string, filterWarnings?: string[], )
browse/src/content-security.ts:228
↓ 9 callersFunctionwriteTestInboxFile
( inboxDir: string, message: string, pageUrl: string, timestamp: string, )
browse/test/file-drop.test.ts:90
↓ 8 callersFunctionactiveShutdown
(code: number)
browse/test/browser-manager-unit.test.ts:222
↓ 8 callersFunctionaddConsoleEntry
(entry: LogEntry)
browse/src/buffers.ts:127
↓ 8 callersFunctionbootstrapTunnel
(opts: BootstrapOptions)
ios-qa/daemon/src/tunnel-bootstrap.ts:65
↓ 8 callersFunctionbuildCommandResponse
(cr: CommandResult)
browse/src/server.ts:1325
↓ 8 callersFunctionbuildCtx
(skillName: string)
test/takes-fence-fallback.test.ts:21
↓ 8 callersFunctionbuildHermeticEnv
( base: NodeJS.ProcessEnv, hermeticVars: Record<string, string>, overrides?: Record<string, string | und
test/helpers/hermetic-env.ts:88
↓ 8 callersFunctioncanonicalize
(obj: Record<string, unknown>)
ios-qa/daemon/src/tailscale-localapi.ts:94
↓ 8 callersFunctioncaptureBaseline
(opts: CaptureOptions)
test/helpers/capture-parity-baseline.ts:136
↓ 8 callersFunctioncleanSingletonLocks
(userDataDir: string)
browse/src/config.ts:201
↓ 8 callersFunctioncomputeActive
(events: DecisionEvent[])
lib/gstack-decision.ts:185
↓ 8 callersFunctioncreateSseEndpoint
( req: Request, config: SseEndpointConfig<T>, )
browse/src/sse-helpers.ts:68
↓ 8 callersFunctiondetectEngineTier
()
lib/gstack-memory-helpers.ts:222
↓ 8 callersFunctiondownloadFile
(url: string, dest: string)
browse/src/security-classifier.ts:138
↓ 8 callersFunctionensureDaemon
( opts: EnsureDaemonOptions = {}, )
design/src/daemon-client.ts:89
↓ 8 callersFunctionensureGbrainSourceGitignored
(root: string)
bin/gstack-gbrain-sync.ts:1017
↓ 8 callersMethodexited
Whether the underlying process has exited.
test/helpers/claude-pty-runner.ts:130
↓ 8 callersFunctionextractSseCookie
(req: Request)
browse/src/sse-session-cookie.ts:71
↓ 8 callersFunctionextractTabId
(args: string[])
browse/src/cli.ts:510
↓ 8 callersFunctionfail
(msg: string)
scripts/preflight-agent-sdk.ts:27
↓ 8 callersFunctionfreshGitattrs
()
test/gstack-upgrade-migration-v1_40_0_0.test.ts:159
↓ 8 callersFunctiongenerateConfidenceCalibration
(_ctx: TemplateContext)
scripts/resolvers/confidence.ts:19
↓ 8 callersFunctiongenerateGalleryHtml
(designsDir: string)
design/src/gallery.ts:23
↓ 8 callersFunctiongenerateModelOverlay
(ctx: TemplateContext)
scripts/resolvers/model-overlay.ts:46
↓ 8 callersFunctiongetChangedFiles
(baseBranch: string, cwd: string)
test/helpers/touchfiles.ts:841
↓ 8 callersMethodgetFrame
()
browse/src/tab-session.ts:143
↓ 8 callersFunctiongetProjectEvalDir
()
test/helpers/eval-store.ts:23
↓ 8 callersMethodharvest
Harvest changes from a worktree. Returns null if clean or on error.
lib/worktree.ts:152
↓ 8 callersFunctionhasOutArg
(args: string[])
browse/src/read-commands.ts:102
↓ 8 callersFunctionimportCache
()
test/salience-allowlist.test.ts:25
↓ 8 callersFunctionkillBoth
(reason?: string)
browse/src/socks-bridge.ts:138
↓ 8 callersFunctionlistDomains
(browserName: string, profile = 'Default')
browse/src/cookie-import-browser.ts:225
↓ 8 callersFunctionlog
(verbose: boolean, msg: string)
design/src/daemon-client.ts:77
↓ 8 callersFunctionlogTelemetry
(payload: TelemetryEvent)
browse/src/telemetry.ts:65
↓ 8 callersFunctionmakeEnv
* 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 callersFunctionmakeFakeClaude
(opts: { hasGetJson?: boolean; getJsonOutput?: string; // raw JSON string hasMcpList?: boolean; mcpLis
test/gstack-gbrain-detect-mcp-mode.test.ts:26
↓ 8 callersFunctionmakeLeakyBin
(name: string, body: string)
test/secret-sink-harness.test.ts:24
↓ 8 callersFunctionmakeWorkDir
()
test/skill-e2e-ios.test.ts:35
↓ 8 callersMethodmark
* 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 callersFunctionparseQuestionPrompt
(visible: string)
test/helpers/claude-pty-runner.ts:973
↓ 8 callersFunctionparseSwift
(source: string)
ios-qa/scripts/gen-accessors.ts:77
↓ 8 callersFunctionpass
(msg: string)
scripts/preflight-agent-sdk.ts:26
↓ 8 callersFunctionpolicyFile
()
test/gbrain-repo-policy.test.ts:39
↓ 8 callersFunctionpushModification
(mod: StyleModification)
browse/src/cdp-inspector.ts:156
↓ 8 callersFunctionread
(fp: string)
test/transcript-section-logger.test.ts:22
↓ 8 callersFunctionreadInbox
Replicate the inbox file reading logic from meta-commands.ts
browse/test/file-drop.test.ts:35
↓ 8 callersFunctionreadLog
()
test/gstack-question-log.test.ts:37
↓ 8 callersFunctionreadSkillName
(skillDir: string)
test/relink.test.ts:475
↓ 8 callersFunctionredactFindingSpans
(input: string, opts: ScanOptions = {})
lib/redact-engine.ts:452
↓ 8 callersFunctionresolveLatest
* Reduce a row stream to latest-version-wins per (host, scope). * Tombstones win (deleted skill stays deleted).
browse/src/domain-skills.ts:192
↓ 8 callersFunctionrevokeLease
(sessionId: string | null | undefined)
browse/src/pty-session-lease.ts:111
↓ 8 callersFunctionrun
(cmd: string, args: string[])
test/diff-scope.test.ts:21
↓ 8 callersFunctionrun
( args: string[], stdin: string, )
test/gstack-redact-cli.test.ts:12
↓ 8 callersFunctionrunHook
(stdin: object)
test/question-log-hook.test.ts:38
↓ 8 callersFunctionrunLibSnippet
(snippet: string, stdin: string = '')
test/gbrain-lib-verify.test.ts:41
↓ 8 callersFunctionrunMigration
(tmpHome: string)
test/migration-checkpoint-ownership.test.ts:10
↓ 8 callersFunctionrunMint
(args: string[])
ios-qa/daemon/test/cli-mint.test.ts:16
↓ 8 callersFunctionrunOrchestrator
( env: FakeEnv, args: string[], extraEnv: Record<string, string> = {}, )
test/gbrain-sync-skip.test.ts:105
↓ 8 callersMethodsaveState
* 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 callersFunctionsetLoadingStatus
(msg, debug)
extension/sidepanel.js:1247
↓ 8 callersFunctionsetupWorkdir
(suffix: string)
test/skill-e2e-context-skills.test.ts:32
↓ 8 callersFunctionsha256
(s: string)
lib/redact-audit-log.ts:36
↓ 8 callersFunctionskillCalls
(result: { toolCalls: Array<{ tool: string; input: any }> })
test/skill-e2e-context-skills.test.ts:100
↓ 8 callersFunctionstripAnsi
(s: string)
test/helpers/claude-pty-runner.ts:30
← previousnext →401–500 of 2,512, ranked by callers