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
↓ 5 callers
Function
derivePathOnlyHashLegacyId
(repoPath: string)
bin/gstack-gbrain-sync.ts:396
↓ 5 callers
Function
doctor
(check: { name: string; status: string; message?: string } | null)
test/gbrain-cycle-completed.test.ts:59
↓ 5 callers
Function
encodeWordPiece
(text: string, tok: TokenizerState, maxLength: number = 512)
browse/src/security-bunnative.ts:103
↓ 5 callers
Function
engineCachePath
()
lib/gstack-memory-helpers.ts:205
↓ 5 callers
Function
ensureSourceRegistered
( id: string, path: string, options: EnsureOptions = {} )
lib/gbrain-sources.ts:133
↓ 5 callers
Function
env
()
test/gstack-decision-semantic.test.ts:76
↓ 5 callers
Function
evaluateConsentGate
* Simulate the consent-gate check as the agent would evaluate it from * the template's Step 0 prose. Mirrors exactly the conditions in * plan-tune/S
test/plan-tune-gates.test.ts:71
↓ 5 callers
Method
exitCode
Exit code, if known.
test/helpers/claude-pty-runner.ts:132
↓ 5 callers
Function
extractDescription
(content: string)
test/gen-skill-docs.test.ts:29
↓ 5 callers
Function
fence
(over: Partial<{ lang: string; source: string; ordinal: number }>)
make-pdf/test/coverage-gaps.test.ts:39
↓ 5 callers
Function
fetch
(req)
test/skill-e2e.test.ts:1333
↓ 5 callers
Method
fill
(selector: string, value: string)
browse/src/browse-client.ts:214
↓ 5 callers
Function
findExecutable
(base: string)
make-pdf/src/pdftotext.ts:52
↓ 5 callers
Function
firstLine
(s: string)
make-pdf/src/diagram-prepass.ts:844
↓ 5 callers
Function
formatStage
(s: StageResult)
bin/gstack-gbrain-sync.ts:1461
↓ 5 callers
Function
freshPrivacyMap
()
test/gstack-upgrade-migration-v1_40_0_0.test.ts:141
↓ 5 callers
Function
generateAskUserFormat
(_ctx: TemplateContext)
scripts/resolvers/preamble/generate-ask-user-format.ts:3
↓ 5 callers
Function
generateCompareHtml
(images: string[])
design/src/compare.ts:20
↓ 5 callers
Function
generateLlmsTxt
(opts: GenerateOptions = {})
scripts/gen-llms-txt.ts:131
↓ 5 callers
Function
generatePickerCode
()
browse/src/cookie-picker-routes.ts:37
↓ 5 callers
Function
generateWritingStyle
(ctx: TemplateContext)
scripts/resolvers/preamble/generate-writing-style.ts:16
↓ 5 callers
Function
getCleanTextWithStripping
(page: Page | Frame)
browse/src/content-security.ts:170
↓ 5 callers
Function
getDeviceTunnelIPv6FromDevicectl
( udid: string, spawn: SpawnImpl = defaultSpawn, )
ios-qa/daemon/src/devicectl.ts:110
↓ 5 callers
Function
getOrCreateCdpSession
( page: Page, cache: WeakMap<Page, any>, )
browse/src/cdp-bridge.ts:79
↓ 5 callers
Function
getSessionMarker
()
browse/src/content-security.ts:30
↓ 5 callers
Function
getTokenInfo
Validate token and return TokenInfo. Returns null if invalid/expired.
browse/src/server.ts:477
↓ 5 callers
Function
git
(...a: string[])
test/gstack-version-bump.test.ts:108
↓ 5 callers
Function
git
(args: string[])
test/skill-e2e-opus-47.test.ts:117
↓ 5 callers
Function
gitRun
(args: string[])
test/skill-e2e-autoplan-chain.test.ts:57
↓ 5 callers
Function
globalFile
()
browse/src/domain-skills.ts:69
↓ 5 callers
Function
hashPayload
(payload: string)
browse/src/security.ts:362
↓ 5 callers
Function
importCookies
( browserName: string, domains: string[], profile = 'Default', )
browse/src/cookie-import-browser.ts:247
↓ 5 callers
Function
isInside
(p: string, dir: string)
lib/gbrain-guards.ts:53
↓ 5 callers
Function
isPublicIPv4
(ip: string)
lib/redact-patterns.ts:112
↓ 5 callers
Function
isTransactionModePooler
(url: string)
lib/gbrain-exec.ts:66
↓ 5 callers
Function
judge
(section: string, content: string)
test/helpers/llm-judge.ts:89
↓ 5 callers
Function
logHookError
(msg: string)
hosts/claude/hooks/question-preference-hook.ts:71
↓ 5 callers
Function
logPath
()
test/redact-audit-log.test.ts:16
↓ 5 callers
Function
makeEnv
(extra: Record<string, string> = {})
test/distill-free-text.test.ts:34
↓ 5 callers
Function
makeEnv
(opts: { remoteHttpMcp?: boolean; hasLocalConfig?: boolean; optedOut?: boolean; })
test/gstack-upgrade-migration-v1_37_0_0.test.ts:48
↓ 5 callers
Function
makeFakeGbrainScript
( behavior: "ok" | "broken-db" | "broken-config" | "throws" | "slow", )
test/gbrain-local-status.test.ts:104
↓ 5 callers
Function
makeFixture
(detectionJson: string | null)
test/gbrain-detection-override.test.ts:34
↓ 5 callers
Function
makeReturn
(exit: number, stdout: string, stderr: string)
ios-qa/daemon/test/tunnel-bootstrap.test.ts:60
↓ 5 callers
Function
makeStubFetch
( responses: Response[], calls: CallRecord[], )
design/test/variants-retry-after.test.ts:30
↓ 5 callers
Function
mkTmpDir
()
test/team-mode.test.ts:12
↓ 5 callers
Function
mockReq
(cookieHeader: string | null)
browse/test/sse-session-cookie.test.ts:117
↓ 5 callers
Function
msToStr
(ms: number)
test/helpers/benchmark-runner.ts:156
↓ 5 callers
Function
op
(label: string, holdMs: number)
browse/test/cdp-mutex.test.ts:18
↓ 5 callers
Method
open
* Open a tab and load the diagram-render bundle. The bundle HTML is staged * under /tmp (content-addressed, reused across runs — load-html only rea
make-pdf/src/diagram-prepass.ts:314
↓ 5 callers
Function
parseSkillRunArgs
(args: string[])
browse/src/browser-skill-commands.ts:130
↓ 5 callers
Function
postCommand
(baseUrl: string, token: string, body: any)
browse/test/pair-agent-tunnel-eval.test.ts:132
↓ 5 callers
Function
primaryDimensionFor
(signalKey: string)
scripts/declared-annotation.ts:87
↓ 5 callers
Function
probeUnion
(snap: Map<string, string>)
test/gbrain-detection-override.test.ts:112
↓ 5 callers
Function
promoteConductorEnv
()
lib/conductor-env-shim.ts:29
↓ 5 callers
Function
rateLimited
(retryAfter?: string)
design/test/variants-retry-after.test.ts:20
↓ 5 callers
Function
readImportedEvents
()
test/gstack-codex-session-import.test.ts:79
↓ 5 callers
Function
readPidStartTime
(pid: number)
browse/src/xvfb.ts:88
↓ 5 callers
Function
readPolicy
()
test/gbrain-repo-policy.test.ts:43
↓ 5 callers
Function
readSection
(file: string)
test/template-context-parity.test.ts:22
↓ 5 callers
Function
readSkillUnion
(skill: string)
test/skill-validation.test.ts:14
↓ 5 callers
Function
readSnapshot
(paths: DecisionPaths)
lib/gstack-decision.ts:233
↓ 5 callers
Function
regenAndSnapshot
* Run gen-skill-docs with --respect-detection and an isolated GSTACK_HOME. * Returns the regenerated office-hours/SKILL.md content WITHOUT writing *
test/gbrain-detection-override.test.ts:63
↓ 5 callers
Function
renderDashboard
(heartbeat: HeartbeatData | null, partial: PartialData | null)
scripts/eval-watch.ts:74
↓ 5 callers
Function
resolveBrowser
(nameOrAlias: string)
browse/src/cookie-import-browser.ts:295
↓ 5 callers
Function
resolveHostArg
(arg: string)
hosts/index.ts:47
↓ 5 callers
Function
resolveLockFilePath
(stateFile: string = resolveStateFilePath())
design/src/daemon-state.ts:46
↓ 5 callers
Function
resolveServerScript
( env: Record<string, string | undefined> = process.env, metaDir: string = import.meta.dir, execPath: st
browse/src/cli.ts:26
↓ 5 callers
Function
resolveTunnelIPv6
(opts: { udid: string; deviceName: string; spawn?: SpawnImpl; resolve?: ResolveImpl; legacyResolve?:
ios-qa/daemon/src/devicectl.ts:219
↓ 5 callers
Function
restrictFilePermissions
(filePath: string)
browse/src/file-permissions.ts:67
↓ 5 callers
Function
run
(cmd: string, args: string[])
test/skill-e2e-autoplan-dual-voice.test.ts:26
↓ 5 callers
Function
run
(cmd: string, args: string[])
test/skill-e2e-office-hours-brain-writeback.test.ts:77
↓ 5 callers
Function
run
(cmd: string, args: string[])
test/skill-e2e-plan-format.test.ts:83
↓ 5 callers
Function
run
(cmd: string, args: string[])
test/codex-e2e-plan-format.test.ts:129
↓ 5 callers
Function
run
(cmd: string, args: string[])
test/skill-e2e-office-hours-phase4.test.ts:54
↓ 5 callers
Function
run
(cmd: string, args: string[])
test/skill-e2e-session-intelligence.test.ts:33
↓ 5 callers
Function
run
(cmd: string, args: string[])
test/skill-e2e-plan-prosons.test.ts:114
↓ 5 callers
Function
run
(cmd: string, args: string[])
test/skill-e2e-skillify.test.ts:69
↓ 5 callers
Function
run
(cmd: string, args: string[])
test/skill-e2e-context-skills.test.ts:36
↓ 5 callers
Function
run
(cmd: string, args: string[])
test/skill-e2e-learnings.test.ts:27
↓ 5 callers
Function
run
(cmd: string, args: string[])
test/skill-e2e-plan-tune.test.ts:33
↓ 5 callers
Function
runBin
( bin: string, args: string[], env: Record<string, string | undefined>, )
test/gstack-state-root-override.test.ts:41
↓ 5 callers
Function
runHook
Spawn the hook with synthetic stdin + controlled env; parse its JSON stdout.
test/auq-error-fallback-hook.test.ts:80
↓ 5 callers
Function
sanitizeTestName
(name: string)
test/helpers/session-runner.ts:20
↓ 5 callers
Function
scaffoldFixture
Scaffold a fixture project with the bins + scripts the cathedral needs.
test/skill-e2e-plan-tune-cathedral.test.ts:42
↓ 5 callers
Function
scanPageContent
(text: string)
browse/src/security-classifier.ts:283
↓ 5 callers
Function
seedInstallDir
(version: string)
test/gbrain-detect-install.test.ts:187
↓ 5 callers
Function
semanticRecall
( query: string, env?: NodeJS.ProcessEnv, minScore = 0.1, limit = 3, )
lib/gstack-decision-semantic.ts:78
↓ 5 callers
Function
send
(event, data)
browse/src/sse-helpers.ts:99
↓ 5 callers
Function
setupSkillifyWorkdir
* Build a working directory that has: * - The /scrape and /skillify skills installed under .claude/skills/ * - The browse binary symlinked + fin
test/skill-e2e-skillify.test.ts:64
↓ 5 callers
Function
sliceBetween
(source: string, start: string, end: string)
browse/test/server-pty-lease-routes.test.ts:88
↓ 5 callers
Function
sourcePageCount
(id: string, env?: NodeJS.ProcessEnv)
lib/gbrain-sources.ts:197
↓ 5 callers
Function
spawnDaemonForTest
( opts: { stateFile?: string; idleMs?: number; checkMs?: number; env?: Record<string, string> } = {}, )
design/test/daemon-tests-fixtures.ts:63
↓ 5 callers
Function
stableHash
(input: string)
scripts/test-free-shards.ts:197
↓ 5 callers
Function
startEcho
* Minimal echo TCP server. Used as the destination behind the mock upstream * so we can verify byte-for-byte round trip from a SOCKS5 client through
browse/test/socks-bridge.test.ts:138
↓ 5 callers
Function
startServer
(extraEnv?: Record<string, string>)
browse/src/cli.ts:295
↓ 5 callers
Function
startStubStateServer
(initial: StubState)
test/skill-e2e-ios.test.ts:61
↓ 5 callers
Function
substituteSlots
(html: string, slots: Map<string, string>)
make-pdf/src/diagram-prepass.ts:225
↓ 5 callers
Function
successResponse
()
design/test/variants-retry-after.test.ts:11
↓ 5 callers
Function
totalBrainBytes
(skillName: string)
test/skill-preflight-budget.test.ts:38
↓ 5 callers
Function
tryAutoConnect
* Eager-connect when the sidebar opens. Polls for sidepanel.js to populate * window.gstackServerPort + window.gstackAuthToken (which it does as soo
extension/sidepanel-terminal.js:983
← previous
next →
701–800 of 2,512, ranked by callers