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
↓ 6 callers
Function
discoverTemplates
(root: string)
scripts/discover-skills.ts:17
↓ 6 callers
Function
dreamMarkerPath
()
bin/gstack-gbrain-sync.ts:112
↓ 6 callers
Function
escapeXml
(s: string)
browse/test/sidebar-security.test.ts:54
↓ 6 callers
Function
evaluateSetupGate
* Simulate the setup-gate check. Mirrors plan-tune/SKILL.md.tmpl §"Setup gate."
test/plan-tune-gates.test.ts:80
↓ 6 callers
Function
extractToolSummary
(transcript: any[])
test/helpers/eval-store.ts:157
↓ 6 callers
Function
fetchRows
(extra?: GbrainSourceRow[])
test/gbrain-guards.test.ts:100
↓ 6 callers
Function
fileSha256
(path: string)
bin/gstack-memory-ingest.ts:312
↓ 6 callers
Function
filterByPeriod
(events: AnalyticsEvent[], period: string)
scripts/analytics.ts:51
↓ 6 callers
Function
filterByScope
(active: ActiveDecision[], ctx: { branch?: string; issue?: string })
lib/gstack-decision.ts:202
↓ 6 callers
Function
findEntry
(allowlist: Allowlist, identity: string)
ios-qa/daemon/src/allowlist.ts:52
↓ 6 callers
Function
findExecutable
(base: string)
make-pdf/src/browseClient.ts:89
↓ 6 callers
Function
findTimelineFile
()
test/timeline.test.ts:69
↓ 6 callers
Function
freezeInput
(filePath: string)
test/hook-scripts.test.ts:45
↓ 6 callers
Function
generateLearningsSearch
(ctx: TemplateContext, args?: string[])
scripts/resolvers/learnings.ts:23
↓ 6 callers
Function
getBaseDir
(platform: BrowserPlatform)
browse/src/cookie-import-browser.ts:341
↓ 6 callers
Function
getHermeticDirs
()
test/helpers/hermetic-env.ts:190
↓ 6 callers
Function
getState
()
browse/src/security-sidecar-client.ts:55
↓ 6 callers
Function
gracefulShutdown
(exitCode = 0)
design/src/daemon.ts:194
↓ 6 callers
Function
guardScreenshotBuffer
(input: Buffer)
browse/src/screenshot-size-guard.ts:44
↓ 6 callers
Function
healthCheck
( port: number, timeoutMs: number = 2000, )
design/src/daemon-state.ts:123
↓ 6 callers
Function
installStubsBeforeLoad
* Seed the sidepanel so it thinks it's connected + poll-ready before * sidepanel.js runs its connection flow. We stub chrome.runtime, chrome.tabs, *
browse/test/security-sidepanel-dom.test.ts:54
↓ 6 callers
Function
isPlanReadyVisible
(visible: string)
test/helpers/claude-pty-runner.ts:160
↓ 6 callers
Function
isRootRequest
Check if request is from root token (local use).
browse/src/server.ts:484
↓ 6 callers
Method
last
Return the last N entries (most recent first → reversed to oldest first)
browse/src/buffers.ts:54
↓ 6 callers
Function
listTokens
()
browse/src/token-registry.ts:447
↓ 6 callers
Function
loadHFTokenizer
(dir: string)
browse/src/security-bunnative.ts:70
↓ 6 callers
Function
logQuestion
(payload: Record<string, unknown>)
test/gstack-developer-profile.test.ts:47
↓ 6 callers
Function
makeCtx
( host: 'claude' | 'codex', tier: 1 | 2 | 3 | 4, model?: string, )
test/preamble-compose.test.ts:20
↓ 6 callers
Function
makeFakeBrowser
(opts: { exitCode: number | null; signalCode: NodeJS.Signals | null; /** ms before emitting 'exit'; defa
browse/test/browser-manager-unit.test.ts:130
↓ 6 callers
Function
makeFakePage
(detachSpy: { called: number; rejected?: Error })
browse/test/cdp-session-cleanup.test.ts:73
↓ 6 callers
Function
makeFakeStubs
(opts: { configValue?: string; // value gstack-config returns for gbrain_sync_mode configMissing?: boolean
test/gstack-upgrade-migration-v1_17_0_0.test.ts:25
↓ 6 callers
Function
makePng
(width: number, height: number)
browse/test/screenshot-size-guard.test.ts:35
↓ 6 callers
Function
makeRequest
()
browse/test/sse-helpers.test.ts:18
↓ 6 callers
Function
mintForCaller
(opts: { callerIdentity: string; request: MintRequest; tokenStore: SessionTokenStore; allowlistPath?:
ios-qa/daemon/src/auth-mint.ts:29
↓ 6 callers
Function
mockTab
Duck-typed RenderTab: scripted call results + a loadBundle counter.
make-pdf/test/coverage-gaps.test.ts:25
↓ 6 callers
Function
parseJSONL
(content: string)
scripts/analytics.ts:31
↓ 6 callers
Function
parseResolvedEdges
(out: string)
bin/gstack-gbrain-sync.ts:1366
↓ 6 callers
Function
parseSearchHits
(stdout: string, minScore: number, limit: number)
lib/gstack-decision-semantic.ts:59
↓ 6 callers
Function
parseSkillManifest
(skillFilePath: string)
lib/gstack-memory-helpers.ts:340
↓ 6 callers
Function
passThroughNonAskUserQuestion
( toolName: string, input: Record<string, unknown>, )
test/helpers/agent-sdk-runner.ts:145
↓ 6 callers
Function
read
(rel: string)
test/dev-setup-render-isolation.test.ts:9
↓ 6 callers
Function
readEvents
(paths: DecisionPaths)
lib/gstack-decision.ts:217
↓ 6 callers
Function
readFile
(p: string)
browse/src/browser-skill-commands.ts:119
↓ 6 callers
Function
readSkeleton
()
test/cso-preserved.test.ts:30
↓ 6 callers
Function
readSkillMd
(skill: string)
test/skill-coverage-floor.test.ts:25
↓ 6 callers
Function
readState
()
test/gstack-gbrain-source-wireup.test.ts:130
↓ 6 callers
Function
readTerminalPort
* Terminal-agent discovery. The non-compiled bun process at * `browse/src/terminal-agent.ts` writes its chosen port to * `<stateDir>/terminal-port`
browse/src/server.ts:405
↓ 6 callers
Function
recordFailure
()
browse/src/security-sidecar-client.ts:70
↓ 6 callers
Function
recordSkillUse
(host: string, projectSlug: string, classifierFlagged: boolean)
browse/src/domain-skills.ts:309
↓ 6 callers
Function
refreshLease
(sessionId: string | null | undefined)
browse/src/pty-session-lease.ts:94
↓ 6 callers
Function
registerContentFilter
(filter: ContentFilter)
browse/src/content-security.ts:265
↓ 6 callers
Method
release
()
test/helpers/agent-sdk-runner.ts:189
↓ 6 callers
Function
resolveBashBinary
(env: NodeJS.ProcessEnv = process.env)
browse/src/security.ts:431
↓ 6 callers
Function
resolveBrowseAuth
(opts: BrowseClientOptions = {})
browse/src/browse-client.ts:65
↓ 6 callers
Function
resolveBrowseBin
(env: NodeJS.ProcessEnv = process.env)
make-pdf/src/browseClient.ts:104
↓ 6 callers
Function
resolveClaudeBinary
()
test/helpers/agent-sdk-runner.ts:281
↓ 6 callers
Function
resolveStateFilePath
()
design/src/daemon-state.ts:29
↓ 6 callers
Function
revokeSkillToken
(skillName: string, spawnId: string)
browse/src/skill-token.ts:89
↓ 6 callers
Function
run
(cmd: string, args: string[])
test/touchfiles.test.ts:196
↓ 6 callers
Function
run
(args: string[])
test/gstack-learnings-search.test.ts:17
↓ 6 callers
Function
run
(args: string[])
test/distill-free-text.test.ts:45
↓ 6 callers
Function
run
(cmd: string, args: string[])
test/fixtures/coverage-audit-fixture.ts:66
↓ 6 callers
Function
runHook
(stdin: object)
test/memory-cache-injection.test.ts:38
↓ 6 callers
Function
runImport
(sessionPath: string)
test/gstack-codex-session-import.test.ts:63
↓ 6 callers
Function
runMigration
(env: MigEnv)
test/gstack-upgrade-migration-v1_37_0_0.test.ts:111
↓ 6 callers
Function
runMigrationV140
(fakeHome: string)
test/artifacts-init-migration.test.ts:214
↓ 6 callers
Function
sanitizeBody
(body: string, isJson: boolean)
browse/src/sanitize.ts:32
↓ 6 callers
Function
setupFakeGstackRoot
(tmpHome: string)
test/migration-checkpoint-ownership.test.ts:23
↓ 6 callers
Function
show
(el)
extension/sidepanel-terminal.js:108
↓ 6 callers
Function
simulateGenSubstitution
( template: string, registry: Record<string, import('../scripts/resolvers/types').ResolverValue>,
test/resolver-entry.test.ts:108
↓ 6 callers
Function
sourceLocalPath
(sourceId: string, env?: NodeJS.ProcessEnv)
bin/gstack-gbrain-sync.ts:455
↓ 6 callers
Function
stagedRelPath
(slug: string)
bin/gstack-memory-ingest.ts:917
↓ 6 callers
Function
stripQuotes
(v: string)
browse/src/browser-skills.ts:306
↓ 6 callers
Function
tombstoneBrowserSkill
(name: string, tier: 'project' | 'global', tiers?: TierPaths)
browse/src/browser-skills.ts:404
↓ 6 callers
Function
tryClaim
(opts: { port: number; path?: string; })
ios-qa/daemon/src/single-instance.ts:33
↓ 6 callers
Function
uuid
()
test/agent-sdk-runner.test.ts:44
↓ 6 callers
Function
validateAllConfigs
(configs: HostConfig[])
scripts/host-config.ts:158
↓ 6 callers
Function
waitFor
(pred: () => boolean, ms: number)
test/gstack-detach.test.ts:20
↓ 6 callers
Function
withCdpSession
( page: Page, fn: (session: any) => Promise<T>, )
browse/src/cdp-bridge.ts:50
↓ 6 callers
Function
withFreezeDir
(freezePath: string, fn: (stateDir: string) => void)
test/hook-scripts.test.ts:49
↓ 6 callers
Function
writeLegacyProfile
(sessions: Array<Record<string, unknown>>)
test/gstack-developer-profile.test.ts:56
↓ 6 callers
Function
writeSessionFile
(events: Array<Record<string, unknown>>, sessionId = 'sess-fixture')
test/gstack-codex-session-import.test.ts:35
↓ 5 callers
Function
acquireDreamMarker
()
bin/gstack-gbrain-sync.ts:663
↓ 5 callers
Function
appendJsonl
(path: string, obj: unknown)
lib/jsonl-store.ts:63
↓ 5 callers
Function
appendRow
* Append a JSONL row atomically. POSIX guarantees atomicity for writes < * PIPE_BUF (typically 4KB) when O_APPEND is set. Each row is single-line JSO
browse/src/domain-skills.ts:120
↓ 5 callers
Function
appendSemanticReview
(entry: SemanticReviewEntry)
lib/redact-audit-log.ts:41
↓ 5 callers
Function
assertRecommendationQuality
(opts: { captured: string; evalCollector: EvalCollector | null; evalId: string; evalTitle: string; r
test/helpers/e2e-helpers.ts:212
↓ 5 callers
Function
booleanFlag
(key: string, def: boolean)
make-pdf/src/cli.ts:121
↓ 5 callers
Function
buildDiagramFigure
(fence: DiagramFence, svg: string)
make-pdf/src/diagram-prepass.ts:260
↓ 5 callers
Function
buildReplayPayload
(session: PtySession)
browse/src/terminal-agent.ts:222
↓ 5 callers
Function
buildTelemetrySpawnCommand
( bin: string, args: string[], env: NodeJS.ProcessEnv = process.env, )
browse/src/security.ts:459
↓ 5 callers
Function
callJudge
(prompt: string, model: string = 'claude-sonnet-4-6')
test/helpers/llm-judge.ts:59
↓ 5 callers
Function
checkOrdering
(root: string, guard: CarveGuard)
test/helpers/carve-guard-checks.ts:53
↓ 5 callers
Function
cleanupFixture
(workDir: string)
test/skill-e2e-plan-tune-cathedral.test.ts:97
↓ 5 callers
Function
cleanupXvfb
(state: { pid: number; startTime: string; display: string })
browse/src/xvfb.ts:173
↓ 5 callers
Function
clearOverlays
()
extension/content.js:62
↓ 5 callers
Function
datamarkContent
(content: string)
browse/src/content-security.ts:44
↓ 5 callers
Function
decideCodeSync
( sourceId: string, env: NodeJS.ProcessEnv = process.env, allowReclone = false, fetchRows: (env: NodeJ
lib/gbrain-guards.ts:285
↓ 5 callers
Function
defaultAllowlistPath
()
ios-qa/daemon/src/allowlist.ts:14
↓ 5 callers
Function
defer
No-op output — let the tool result stand untouched.
hosts/claude/hooks/auq-error-fallback-hook.ts:75
← previous
next →
601–700 of 2,512, ranked by callers