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
↓ 22 callers
Function
runScript
(args: string[], env: Record<string, string> = {})
test/gstack-memory-ingest.test.ts:31
↓ 21 callers
Function
applyImagePolicy
(html: string, opts: ImagePolicyOptions)
make-pdf/src/image-policy.ts:116
↓ 21 callers
Function
buildGbrainEnv
(opts: BuildGbrainEnvOptions = {})
lib/gbrain-exec.ts:96
↓ 21 callers
Method
getConnectionMode
()
browse/src/browser-manager.ts:255
↓ 21 callers
Function
runConfig
(args: string[], extraEnv: Record<string, string> = {})
test/user-slug-fallback.test.ts:33
↓ 21 callers
Function
stripLoneSurrogates
(s: string)
browse/src/sanitize.ts:16
↓ 20 callers
Function
buildFetchHandler
(cfg: ServerConfig)
browse/src/server.ts:1469
↓ 20 callers
Function
classifyRoute
(method: string, path: string)
ios-qa/daemon/src/proxy.ts:105
↓ 20 callers
Method
command
Send an arbitrary command; returns raw response text. Throws on non-2xx.
browser-skills/hackernews-frontpage/_lib/browse-client.ts:149
↓ 20 callers
Method
get
()
browse/src/browse-client.ts:237
↓ 20 callers
Method
get
()
browser-skills/hackernews-frontpage/_lib/browse-client.ts:237
↓ 20 callers
Method
newTab
(url?: string, clientId?: string)
browse/src/browser-manager.ts:764
↓ 20 callers
Function
parseNumberedOptions
( visible: string, )
test/helpers/claude-pty-runner.ts:638
↓ 20 callers
Function
run
(cmd: string, args: string[])
test/skill-e2e-qa-workflow.test.ts:96
↓ 20 callers
Function
run
( bin: string, opts: { mode: "ok" | "error503" | "netfail"; body?: string; json?: boolean;
test/security-dashboard-fallback.test.ts:89
↓ 20 callers
Function
run
(args: string[])
test/gstack-settings-hook-schema-aware.test.ts:31
↓ 20 callers
Function
run
(payload: string)
test/gstack-question-log.test.ts:24
↓ 20 callers
Function
runHook
(stdin: object, cwd?: string, extraEnv?: Record<string, string>)
test/question-preference-hook.test.ts:63
↓ 20 callers
Function
sanitizeExtensionUrl
(url: string | null | undefined)
browse/src/sidebar-utils.ts:10
↓ 20 callers
Function
validateToken
(token: string)
browse/src/token-registry.ts:324
↓ 19 callers
Function
escapeHtml
(s: string)
make-pdf/src/render.ts:422
↓ 19 callers
Function
fetch
(req, server)
browse/src/terminal-agent.ts:495
↓ 19 callers
Function
fetchWith
(method: string, url: string, init: { headers?: Record<string, string>; body?: string } = {})
ios-qa/daemon/test/daemon-integration.test.ts:72
↓ 19 callers
Function
isPermissionDialogVisible
(visible: string)
test/helpers/claude-pty-runner.ts:282
↓ 19 callers
Function
isProcessAlive
(pid: number)
design/src/daemon-state.ts:142
↓ 19 callers
Function
makeEntry
(overrides?: Partial<EvalTestEntry>)
test/helpers/eval-store.test.ts:28
↓ 19 callers
Function
matchGlob
(file: string, pattern: string)
test/helpers/touchfiles.ts:19
↓ 19 callers
Function
resolveConfig
( env: Record<string, string | undefined> = process.env, )
browse/src/config.ts:53
↓ 19 callers
Method
resolveRef
* Resolve a selector that may be a @ref (e.g., "@e3", "@c1") or a CSS selector. * Returns { locator } for refs or { selector } for CSS selectors.
browse/src/tab-session.ts:88
↓ 19 callers
Function
runBash
(script: string, env: Record<string, string>)
test/context-save-hardening.test.ts:53
↓ 19 callers
Function
runDetect
(extraEnv: Record<string, string> = {})
test/gstack-gbrain-detect-mcp-mode.test.ts:57
↓ 19 callers
Function
selectTests
( changedFiles: string[], touchfiles: Record<string, string[]>, globalTouchfiles: string[] = GLOBAL_TOUC
test/helpers/touchfiles.ts:859
↓ 19 callers
Function
setupMockInstall
(skills: string[])
test/relink.test.ts:40
↓ 19 callers
Function
validateOutputPath
(filePath: string)
browse/src/path-security.ts:33
↓ 18 callers
Function
appendToRingBuffer
(session: PtySession, frame: Buffer)
browse/src/terminal-agent.ts:188
↓ 18 callers
Function
buildCtx
(skillName: string)
test/brain-preflight.test.ts:22
↓ 18 callers
Function
carefulInput
(command: string)
test/hook-scripts.test.ts:41
↓ 18 callers
Method
closeTab
(id?: number)
browse/src/browser-manager.ts:796
↓ 18 callers
Method
create
Create an isolated worktree. Returns the worktree path. Throws on failure.
lib/worktree.ts:115
↓ 18 callers
Function
escapeHtml
(str)
extension/sidepanel.js:232
↓ 18 callers
Function
formatBytes
(n: number)
browse/src/memory-snapshot.ts:68
↓ 18 callers
Method
getCurrentUrl
()
browse/src/browser-manager.ts:1034
↓ 18 callers
Method
getTabCount
()
browse/src/browser-manager.ts:877
↓ 18 callers
Function
handleSkillCommand
(args: string[], ctx: SkillCommandContext)
browse/src/browser-skill-commands.ts:49
↓ 18 callers
Function
isErrorResponse
(response: unknown)
hosts/claude/hooks/auq-error-fallback-hook.ts:96
↓ 18 callers
Function
makeCtx
(explainLevel?: 'default' | 'terse', tier: number = 4)
test/terse-build.test.ts:21
↓ 18 callers
Function
makeEnv
* Build a tmp HOME + GSTACK_HOME + optional fake `gbrain` on PATH. * * The classifier reads HOME via os.homedir() which reads process.env.HOME, so
test/gbrain-local-status.test.ts:62
↓ 18 callers
Function
makeFakeGbrain
(opts: { version?: string | null; // null = "binary missing" (don't write the file) syncFails?: boolean; }
test/gstack-gbrain-source-wireup.test.ts:30
↓ 18 callers
Function
pad
(s: string, n: number)
test/helpers/benchmark-runner.ts:152
↓ 18 callers
Function
readShipUnion
()
test/gen-skill-docs.test.ts:25
↓ 18 callers
Function
readStateFile
(stateFile: string = resolveStateFilePath())
design/src/daemon-state.ts:89
↓ 18 callers
Function
resultSuccess
(cost = 0.01, turns = 1)
test/agent-sdk-runner.test.ts:95
↓ 18 callers
Function
run
(args: string[])
test/gstack-artifacts-url.test.ts:15
↓ 18 callers
Function
run
(argv: string[], opts: { env?: Record<string, string>; input?: string } = {})
test/gstack-artifacts-init.test.ts:123
↓ 18 callers
Function
run
(cmd: string, args: string[])
test/skill-e2e-cso.test.ts:27
↓ 18 callers
Function
runBin
( bin: string, args: string[], )
test/plan-tune-gates.test.ts:48
↓ 18 callers
Function
systemInit
(model = 'claude-opus-4-7', version = '2.1.117')
test/agent-sdk-runner.test.ts:48
↓ 18 callers
Method
visibleSince
Visible text since the most recent (or specific) mark.
test/helpers/claude-pty-runner.ts:112
↓ 17 callers
Function
assistantTurn
( blocks: Array<{ type: 'text'; text: string } | { type: 'tool_use'; name: string; input: unknown }>, )
test/agent-sdk-runner.test.ts:68
↓ 17 callers
Function
base
(overrides: Partial<OverlayFixture> = {})
test/agent-sdk-runner.test.ts:714
↓ 17 callers
Function
emitActivity
(entry: Omit<ActivityEntry, 'id' | 'timestamp'>)
browse/src/activity.ts:129
↓ 17 callers
Function
fetchJson
(method: string, url: string, init: { headers?: Record<string, string>; body?: string } = {})
test/skill-e2e-ios.test.ts:158
↓ 17 callers
Function
generateBrainWriteBack
(ctx: TemplateContext)
scripts/resolvers/gbrain.ts:222
↓ 17 callers
Method
getRefCount
()
browse/src/tab-session.ts:118
↓ 17 callers
Function
grantIdentity
(opts: { identity: string; capability: Capability; ttlSeconds?: number | null; // null/undefined = no ex
ios-qa/daemon/src/allowlist.ts:78
↓ 17 callers
Method
isWatching
()
browse/src/browser-manager.ts:258
↓ 17 callers
Method
launch
()
browse/src/browser-manager.ts:340
↓ 17 callers
Function
makeTestHome
()
test/gstack-memory-ingest.test.ts:27
↓ 17 callers
Method
mint
* Mint a session token. Returns null on rate limit.
ios-qa/daemon/src/session-tokens.ts:23
↓ 17 callers
Function
publishTestBoard
(opts: { dir?: string; body?: string; title?: string } = {})
design/test/daemon.test.ts:33
↓ 17 callers
Function
readJsonl
()
test/telemetry.test.ts:26
↓ 17 callers
Function
readProfile
()
test/gstack-developer-profile.test.ts:61
↓ 17 callers
Function
run
(cmd: string, args: string[])
test/skill-e2e-design.test.ts:53
↓ 17 callers
Function
safeUnlink
(filePath: string)
browse/src/error-handling.ts:15
↓ 17 callers
Function
sendJson
(res: ServerResponse, status: number, body: unknown)
ios-qa/daemon/src/index.ts:217
↓ 17 callers
Function
setTabCount
Drive the guardrail by writing directly into the manager's pages map.
browse/test/tab-guardrail.test.ts:33
↓ 17 callers
Function
setupGstackRepo
(remoteUrl: string)
test/gstack-gbrain-source-wireup.test.ts:142
↓ 17 callers
Function
startTestServer
(port: number = 0)
browse/test/test-server.ts:11
↓ 17 callers
Function
testIfSelected
Skip an individual test if not selected (for multi-test describe blocks).
test/skill-e2e.test.ts:55
↓ 17 callers
Function
validateFixtures
(fixtures: OverlayFixture[])
test/fixtures/overlay-nudges.ts:63
↓ 17 callers
Function
writeSecureFile
( filePath: string, data: string | NodeJS.ArrayBufferView, )
browse/src/file-permissions.ts:118
↓ 16 callers
Function
applyEnv
* Apply a FakeEnv to process.env. Returns a function that restores previous values. * * PATH is REPLACED (not prepended) so a real `gbrain` on the i
test/gbrain-local-status.test.ts:156
↓ 16 callers
Function
createRepo
(files: string[])
test/diff-scope.test.ts:17
↓ 16 callers
Method
finalize
()
test/helpers/eval-store.ts:698
↓ 16 callers
Function
freshSem
(cap = 10)
test/agent-sdk-runner.test.ts:221
↓ 16 callers
Function
isNumberedOptionListVisible
(visible: string)
test/helpers/claude-pty-runner.ts:303
↓ 16 callers
Function
listBrowserSkills
(tiers?: TierPaths)
browse/src/browser-skills.ts:322
↓ 16 callers
Function
makeMinimalConfig
(overrides: Partial<ServerConfig> = {})
browse/test/server-factory.test.ts:215
↓ 16 callers
Function
parseSkillFile
(content: string, opts: { skillName?: string } = {})
browse/src/browser-skills.ts:132
↓ 16 callers
Function
parseSourcesList
(raw: unknown)
lib/gbrain-sources.ts:53
↓ 16 callers
Function
run
(bin: string, args: string[], opts: RunOpts = {})
test/gbrain-detect-install.test.ts:34
↓ 16 callers
Function
runScope
(dir: string)
test/diff-scope.test.ts:47
↓ 16 callers
Function
stageSkill
(opts: StageSkillOptions)
browse/src/browser-skill-write.ts:67
↓ 16 callers
Function
test
(name: string, fn: any)
test/gstack-artifacts-init.test.ts:24
↓ 15 callers
Function
args
Build a CliArgs with all flags off, overriding only what a case needs.
test/gbrain-dream-stage.test.ts:37
↓ 15 callers
Function
buildGStackLaunchArgs
()
browse/src/stealth.ts:511
↓ 15 callers
Function
canonicalizeRemote
(url: string | null | undefined)
lib/gstack-memory-helpers.ts:93
↓ 15 callers
Function
checkOwnedStagingDir
(dir: string, gstackHome: string)
lib/staging-guard.ts:70
↓ 15 callers
Function
cleanup
()
browse/src/sse-helpers.ts:81
↓ 15 callers
Function
freshImport
()
browse/test/domain-skills-storage.test.ts:10
← previous
next →
101–200 of 2,512, ranked by callers