MCPcopy Create free account

hub / github.com/garrytan/gstack / functions

Functions2,512 in github.com/garrytan/gstack

↓ 3 callersFunctionengStep0Boundary
(fp)
test/helpers/claude-pty-runner.ts:1175
↓ 3 callersFunctionensureXterm
()
extension/sidepanel-terminal.js:391
↓ 3 callersMethodestimateCost
Estimate USD cost for the reported token usage and model.
test/helpers/providers/types.ts:73
↓ 3 callersFunctionexcerptAt
(s: string, idx: number)
test/helpers/secret-sink-harness.ts:208
↓ 3 callersFunctionexecGbrainJson
(args: string[], opts: SpawnGbrainOptions = {})
lib/gbrain-exec.ts:177
↓ 3 callersFunctionextractContentText
(rec: any)
bin/gstack-memory-ingest.ts:646
↓ 3 callersFunctionextractMarkdownSection
(content: string, heading: string)
test/gen-skill-docs.test.ts:61
↓ 3 callersFunctionextractToken
Extract bearer token from request. Returns the token string or null.
browse/src/server.ts:470
↓ 3 callersFunctionextractVoiceTriggers
* Extract voice-triggers YAML list from frontmatter. * Returns an array of trigger strings, or [] if no voice-triggers field.
scripts/gen-skill-docs.ts:237
↓ 3 callersFunctionfanoutPass
(arms: { overlay: number[]; off: number[] })
test/fixtures/overlay-nudges.ts:128
↓ 3 callersFunctionfindClaude
Find claude on PATH.
browse/src/terminal-agent.ts:233
↓ 3 callersFunctionfindExecutable
(base: string)
browse/src/find-browse.ts:45
↓ 3 callersFunctionfindHit
(haystack: string, needle: string)
test/helpers/secret-sink-harness.ts:202
↓ 3 callersFunctionfinish
(result: PortCheckResult)
browse/src/server.ts:857
↓ 3 callersFunctionfmtBytesShort
(n)
extension/sidepanel.js:310
↓ 3 callersFunctiongbrainHome
(env: NodeJS.ProcessEnv = process.env)
lib/gbrain-guards.ts:38
↓ 3 callersFunctiongcStaleHermeticDirs
(tmpDir: string = os.tmpdir())
test/helpers/hermetic-env.ts:239
↓ 3 callersFunctiongenerateContextHealth
(ctx?: TemplateContext)
scripts/resolvers/preamble/generate-context-health.ts:3
↓ 3 callersFunctiongenerateGBrainContextLoad
(ctx: TemplateContext)
scripts/resolvers/gbrain.ts:55
↓ 3 callersFunctiongenerateGBrainSaveResults
(ctx: TemplateContext)
scripts/resolvers/gbrain.ts:75
↓ 3 callersFunctiongenerateSpawnId
()
browse/src/skill-token.ts:44
↓ 3 callersFunctiongenerateTestCoverageAuditInner
(mode: CoverageAuditMode)
scripts/resolvers/testing.ts:182
↓ 3 callersFunctiongetActivityAfter
(afterId: number)
browse/src/activity.ts:161
↓ 3 callersFunctiongetBrowserMatch
(browser: BrowserInfo, profile: string)
browse/src/cookie-import-browser.ts:368
↓ 3 callersFunctiongetCachedDerivedKey
(cacheKey: string, password: string, iterations: number)
browse/src/cookie-import-browser.ts:449
↓ 3 callersFunctiongetClassifierStatus
()
browse/src/security-classifier.ts:119
↓ 3 callersFunctiongetCleanText
(page: Page | Frame)
browse/src/read-commands.ts:164
↓ 3 callersFunctiongetInvalidationTargets
(writePath: string)
scripts/brain-cache-spec.ts:241
↓ 3 callersMethodgetIsHeaded
()
browse/src/browser-manager.ts:1664
↓ 3 callersFunctiongetOneWayDoorIds
()
scripts/question-registry.ts:614
↓ 3 callersFunctiongetRegistryStats
()
scripts/question-registry.ts:628
↓ 3 callersFunctiongetRetentionPolicy
(pageType: string)
scripts/gstack-schema-pack.ts:277
↓ 3 callersMethodgetTabOwner
Get the owner of a tab, or null if unowned (root-only for writes).
browse/src/browser-manager.ts:884
↓ 3 callersFunctiongrantPtyToken
* Push a freshly-minted PTY cookie token to the terminal-agent so its * /ws upgrade can validate the cookie. v1.44+: also pushes the bound * session
browse/src/server.ts:428
↓ 3 callersFunctiongstackHome
()
lib/gstack-memory-helpers.ts:201
↓ 3 callersFunctionhandleCommandInternal
* Sanitizing wrapper around handleCommandInternalImpl. ALL callers (single-command * HTTP, batch loop, scoped-token dispatch) go through this so the
browse/src/server.ts:1309
↓ 3 callersFunctionharvestAndCleanup
(testName: string)
test/helpers/e2e-helpers.ts:304
↓ 3 callersMethodhasCookieImports
()
browse/src/browser-manager.ts:1208
↓ 3 callersFunctionhasFlag
(args: string[], flag: string)
browse/src/cli.ts:762
↓ 3 callersFunctionhasUnpairedSurrogate
(s: string)
ios-qa/daemon/test/audit.test.ts:74
↓ 3 callersFunctionimportCache
()
test/schema-version-migration.test.ts:39
↓ 3 callersFunctioninspectElement
( page: Page, selector: string, options?: { includeUA?: boolean } )
browse/src/cdp-inspector.ts:229
↓ 3 callersFunctioninternalHandler
* Wrap a JSON-bodied /internal/* handler with the standard bearer-auth + * generation-check + json-parse + error-response boilerplate. The handler *
browse/src/terminal-agent.ts:406
↓ 3 callersFunctionisBlockedIpv6
* Check if an IPv6 address falls within a blocked prefix range. * Handles the full ULA range (fc00::/7) and link-local range (fe80::/10), * not just
browse/src/url-validation.ts:34
↓ 3 callersFunctionisDebertaEnabled
()
browse/src/security-classifier.ts:96
↓ 3 callersFunctionisDisplayFree
(displayNum: number)
browse/src/xvfb.ts:59
↓ 3 callersFunctionisExecutable
(p: string)
make-pdf/src/pdftotext.ts:145
↓ 3 callersFunctionisGitRepo
(dir: string)
bin/gstack-global-discover.ts:156
↓ 3 callersFunctionisPreflightSkill
* Returns true when this skill is registered for brain preflight. Skills not * in SKILL_DIGEST_SUBSETS get an empty BRAIN_PREFLIGHT block (no behavio
scripts/resolvers/gbrain.ts:128
↓ 3 callersFunctionisRateLimitEvent
(msg: SDKMessage)
test/helpers/agent-sdk-runner.ts:245
↓ 3 callersFunctionisRateLimitResult
(msg: SDKMessage)
test/helpers/agent-sdk-runner.ts:234
↓ 3 callersFunctionjudgePosture
(mode: PostureMode, text: string)
test/helpers/llm-judge.ts:169
↓ 3 callersFunctionkillOrphanChromium
Kill an orphaned Chromium that still holds the profile's SingletonLock. The * lock symlink target is "hostname-PID"; killing that PID tears down its
browse/src/cli.ts:231
↓ 3 callersFunctionkillServer
(pid: number)
browse/src/cli.ts:138
↓ 3 callersFunctionlandscapeContentBox
(opts: { pageSize?: string; margins?: string; marginLeft?: string; marginRight?: string; marginTop?:
make-pdf/src/diagram-prepass.ts:820
↓ 3 callersFunctionlistDevices
()
test/skill-e2e-ios-device.test.ts:40
↓ 3 callersFunctionlistenAsync
(server: ReturnType<typeof createServer>, port: number, host: string)
ios-qa/daemon/src/index.ts:161
↓ 3 callersFunctionlocateBinary
()
browse/src/find-browse.ts:56
↓ 3 callersFunctionlogHookError
(msg: string)
hosts/claude/hooks/question-log-hook.ts:71
↓ 3 callersFunctionlogHookError
(msg: string)
hosts/claude/hooks/auq-error-fallback-hook.ts:50
↓ 3 callersFunctionlogPtySnapshot
(visible: string, ctx: { testName: string; elapsedMs: number; tag?: string })
test/helpers/claude-pty-runner.ts:374
↓ 3 callersFunctionluhnValid
(span: string)
lib/redact-patterns.ts:81
↓ 3 callersFunctionmakeBrainGitRepo
()
test/gstack-upgrade-migration-v1_17_0_0.test.ts:52
↓ 3 callersFunctionmakeCuratedPath
* Construct a PATH-style directory of symlinks to standard utilities the * migration script needs (mkdir, grep, sed, mv, rm, mktemp, cat, touch, prin
test/gstack-upgrade-migration-v1_40_0_0.test.ts:70
↓ 3 callersFunctionmakeEnv
(opts: { gbrainBehavior: "succeeds" | "fails" })
test/gbrain-init-rollback.test.ts:46
↓ 3 callersFunctionmakeError
(status: number, error: string)
ios-qa/daemon/src/proxy.ts:92
↓ 3 callersFunctionmakeFakeEnv
()
test/gbrain-init-voyage-code-3.test.ts:43
↓ 3 callersFunctionmakeFakeGbrain
(opts: { hasOldSource?: boolean; addSucceeds?: boolean; removeSucceeds?: boolean } = {})
test/migrations-v1.27.0.0.test.ts:48
↓ 3 callersFunctionmakeMinimalConfig
(overrides: Partial<ServerConfig> = {})
browse/test/server-embedder-terminal-port.test.ts:47
↓ 3 callersFunctionmakeSandbox
()
test/gbrain-sync-voyage-code-3-integration.test.ts:70
↓ 3 callersFunctionmaskPreview
(span: string)
lib/redact-engine.ts:172
↓ 3 callersFunctionmatchArchetype
(dims: Record<Dimension, number>)
scripts/archetypes.ts:165
↓ 3 callersFunctionmatchFenceLine
(line: string)
make-pdf/src/diagram-prepass.ts:193
↓ 3 callersFunctionmimeToExt
Map MIME type to file extension.
browse/src/write-commands.ts:1430
↓ 3 callersFunctionmintStaging
(name = ".staging-ingest-1-1")
test/regression-1611-gbrain-sync-resume.test.ts:279
↓ 3 callersFunctionmissingTools
( provider: 'claude' | 'gpt' | 'gemini', requiredTools: ToolName[] )
test/helpers/tool-map.ts:76
↓ 3 callersFunctionmkEvalRoot
Write a scratch root with: * - Per-skill SKILL.md files under .claude/skills/ (so Skill tool sees them) * - Project CLAUDE.md with explicit rout
test/skill-e2e-opus-47.test.ts:59
↓ 3 callersFunctionmockDetachedFrame
()
browse/test/tab-session-frame-detach.test.ts:54
↓ 3 callersFunctionmockRefEntry
(role: string, name: string)
browse/test/tab-session-frame-detach.test.ts:62
↓ 3 callersFunctionmodifyStyle
( page: Page, selector: string, property: string, value: string )
browse/src/cdp-inspector.ts:495
↓ 3 callersFunctionnewDimensionTotals
()
scripts/psychographic-signals.ts:274
↓ 3 callersFunctionnormalizeWithMap
(input: string)
lib/redact-engine.ts:109
↓ 3 callersFunctiononDisconnect
(code?: number)
browse/test/browser-manager-unit.test.ts:223
↓ 3 callersFunctiononeLine
* Render a one-line summary from a multi-paragraph description: take the * first sentence (up to '.', '!', or '?') and trim. Keeps llms.txt scannable
scripts/gen-llms-txt.ts:111
↓ 3 callersFunctionopenDb
(dbPath: string, browserName: string)
browse/src/cookie-import-browser.ts:387
↓ 3 callersFunctionopts
()
test/gstack-decision-bins.test.ts:18
↓ 3 callersFunctionoriginUrl
()
bin/gstack-gbrain-sync.ts:315
↓ 3 callersFunctionparseV
(s: string)
scripts/compare-pr-version.ts:50
↓ 3 callersFunctionpercentile
(sortedAsc: number[], p: number)
browse/src/security-bunnative.ts:202
↓ 3 callersFunctionpickFreeDisplay
( rangeStart: number = DISPLAY_RANGE_START, rangeEnd: number = DISPLAY_RANGE_END, )
browse/src/xvfb.ts:72
↓ 3 callersFunctionpkgVersion
()
test/ship-version-sync.test.ts:114
↓ 3 callersFunctionplanFileHasDecisionsSection
(planFile: string)
test/helpers/claude-pty-runner.ts:244
↓ 3 callersFunctionprintUsage
()
make-pdf/src/cli.ts:56
↓ 3 callersFunctionprobeSource
(id: string, env?: NodeJS.ProcessEnv)
lib/gbrain-sources.ts:83
↓ 3 callersFunctionprofilePath
()
test/taste-engine.test.ts:65
↓ 3 callersFunctionpruneExpired
(now: number)
browse/src/sse-session-cookie.ts:104
↓ 3 callersFunctionpruneExpired
(now: number)
browse/src/pty-session-lease.ts:126
↓ 3 callersFunctionpruneExpired
(now: number)
browse/src/pty-session-cookie.ts:106
↓ 3 callersFunctionread
(rel: string)
test/hermetic-wiring.test.ts:30
↓ 3 callersFunctionread
(rel: string)
test/gbrain-spawn-windows-shell.test.ts:6
← previousnext →1,001–1,100 of 2,512, ranked by callers