MCPcopy Create free account

hub / github.com/ColeMurray/background-agents / functions

Functions3,598 in github.com/ColeMurray/background-agents

↓ 15 callersFunctionimportAuthModule
(env: Record<string, string | undefined> = {})
packages/web/src/lib/auth.test.ts:730
↓ 15 callersFunctionisValidCron
(expression: string)
packages/shared/src/cron.ts:25
↓ 15 callersMethodnotifyComplete
* Notify the originating client of completion with retry. * Routes to the correct service binding based on the message source.
packages/control-plane/src/session/callback-notification-service.ts:104
↓ 15 callersMethodopen
()
packages/web/src/hooks/use-session-socket.test.tsx:52
↓ 15 callersMethodrows
(result: SqlResult)
packages/control-plane/src/session/repository.ts:245
↓ 15 callersMethodsetSlackChannels
* Replace an automation's watched-channel set atomically. Test-support only — * production writes compose `bindChannelStatements` into the same `db
packages/control-plane/src/db/slack-channel-store.ts:80
↓ 15 callersMethodupdateSandboxStatus
Update sandbox status
packages/control-plane/src/sandbox/lifecycle/manager.ts:76
↓ 14 callersFunction_fake_sandbox_create
Return a fake Sandbox.create that supports .aio and captures kwargs.
packages/modal-infra/tests/test_build_sandbox.py:10
↓ 14 callersFunction_make_supervisor
Create a SandboxSupervisor with minimal stable env. Env vars read live (like EXPECTED_TUNNEL_PORTS) must be patched in the test body, not her
packages/sandbox-runtime/tests/test_entrypoint_tunnel_urls.py:20
↓ 14 callersFunction_make_supervisor
Create a SandboxSupervisor with repo_path pointing at tmp_path.
packages/sandbox-runtime/tests/test_setup_script.py:9
↓ 14 callersMethod_resolve_and_setup_tunnels
Resolve all tunnels in a single pass. Returns (code_server_url, ttyd_url, extra_urls).
packages/modal-infra/src/sandbox/manager.py:249
↓ 14 callersMethodacceptAndSetSandboxSocket
* Accept a sandbox WebSocket, close any existing sandbox socket, and set * as the active sandbox connection.
packages/control-plane/src/session/websocket-manager.ts:42
↓ 14 callersFunctionapplyMentionPolicy
(text: string, policy: MentionPolicy)
packages/shared/src/slack/mrkdwn.ts:35
↓ 14 callersFunctioncronIntervalMinutes
(expression: string)
packages/shared/src/cron.ts:49
↓ 14 callersFunctionemitAgentActivity
( client: LinearApiClient, agentSessionId: string, content: Record<string, unknown>, ephemeral?: boole
packages/linear-bot/src/utils/linear-client.ts:293
↓ 14 callersFunctionmakeJwt
(payload: Record<string, unknown>)
packages/control-plane/src/auth/openai.test.ts:101
↓ 14 callersMethodprepare
(query: string)
packages/control-plane/src/db/instrumented-d1.test.ts:54
↓ 14 callersFunctionreject
(message: string)
packages/control-plane/src/sandbox/settings.ts:35
↓ 14 callersFunctionvalidateKey
(key: string)
packages/control-plane/src/db/secrets-validation.ts:39
↓ 13 callersFunction_fake_sandbox_create
Return a fake Sandbox.create that supports .aio and captures env vars.
packages/modal-infra/tests/test_sandbox_env_vars.py:376
↓ 13 callersFunctionbuildCodeReviewPrompt
(params: { owner: string; repo: string; number: number; title: string; body: string | null; author
packages/github-bot/src/prompts.ts:37
↓ 13 callersFunctioncheckGitHubOrganizationAccess
({ accessToken, allowedOrganizations, fetchImpl = fetch, userAgent = "Open-Inspect", timeoutMs = GIT
packages/web/src/lib/github-org-membership.ts:34
↓ 13 callersFunctioncreateKeyEvent
(overrides: Partial<KeyboardEvent> = {})
packages/web/src/lib/keyboard-shortcuts.test.ts:6
↓ 13 callersFunctioncreateLogger
( component: string, context: Record<string, unknown> = {}, minLevel: LogLevel = "info" )
packages/slack-bot/src/logger.ts:16
↓ 13 callersFunctioncreateSession
(overrides: Partial<SessionRow> = {})
packages/control-plane/src/session/http/handlers/child-sessions.handler.test.ts:17
↓ 13 callersFunctioncreateSubscribedMessage
(artifacts: SessionArtifact[] = [])
packages/web/src/hooks/use-session-socket.test.tsx:80
↓ 13 callersFunctionescapeHtml
(s: string)
packages/linear-bot/src/webhook-handler.ts:45
↓ 13 callersFunctionevaluateJsonPathFilter
(filter: JsonPathFilter, body: unknown)
packages/shared/src/triggers/webhook/normalizer.ts:57
↓ 13 callersMethodexpandPath
(path: string, params: Record<string, string>)
packages/control-plane/src/sandbox/opencomputer-rest-client.ts:486
↓ 13 callersMethodgetInvocationById
(invocationId: string)
packages/control-plane/src/db/automation-store.ts:851
↓ 13 callersMethodgetProcessingMessage
()
packages/control-plane/src/session/repository.ts:637
↓ 13 callersMethodlistArtifacts
()
packages/control-plane/src/session/pull-request-service.ts:43
↓ 13 callersMethodlistRepositories
* List all repositories accessible to this deployment's app-level credentials. * * @returns Array of installation repositories * @throws Sour
packages/control-plane/src/source-control/types.ts:280
↓ 13 callersFunctionmakeRun
(automationId: string, overrides?: Partial<AutomationRunRow>)
packages/control-plane/test/integration/automation-store.test.ts:40
↓ 13 callersFunctionmakeRunRow
( automationId: string, overrides?: Partial<AutomationRunRow> )
packages/control-plane/test/integration/run-helpers.ts:11
↓ 13 callersMethodrun_setup_script
Run .openinspect/setup.sh if it exists in the cloned repo. Fresh-session failures are non-fatal. Build mode callers may treat
packages/sandbox-runtime/src/sandbox_runtime/entrypoint.py:1359
↓ 13 callersFunctionsessionRoute
( route: Omit<Route, "handler"> & { handler: SessionRouteHandler } )
packages/control-plane/src/routes/session-route.ts:25
↓ 13 callersFunctionuseSessionSocket
(sessionId: string)
packages/web/src/hooks/use-session-socket.ts:228
↓ 12 callersMethodbatch
(statements: FakePreparedStatement[])
packages/control-plane/src/db/repo-images.test.ts:484
↓ 12 callersMethodbroadcast
* Broadcast message to all authenticated clients.
packages/control-plane/src/session/durable-object.ts:1425
↓ 12 callersFunctionbuildSessionsPageKey
({ limit = SESSIONS_PAGE_SIZE, offset = 0, status, excludeStatus, createdBy, }: { limit?: number;
packages/web/src/lib/session-list.ts:17
↓ 12 callersFunctioncreateSession
(overrides: Partial<SessionRow> = {})
packages/control-plane/src/session/http/handlers/session-lifecycle.handler.test.ts:6
↓ 12 callersFunctionextractRepoParams
( match: RegExpMatchArray )
packages/control-plane/src/routes/shared.ts:117
↓ 12 callersFunctiongetEventCategory
(eventType: string)
packages/control-plane/src/realtime/events.ts:19
↓ 12 callersFunctiongetOAuthTokenOrThrow
(env: Env, orgId: string)
packages/linear-bot/src/utils/linear-client.ts:138
↓ 12 callersFunctiongetReasoningConfig
(model: string)
packages/shared/src/models.ts:244
↓ 12 callersFunctiongetStaticSignInReason
(args: { provider: string | undefined; profile: Profile | undefined; emails: string[] | undefined; con
packages/web/src/lib/auth.ts:166
↓ 12 callersFunctiongetStringArg
( args: Record<string, unknown> | undefined, ...keys: string[] )
packages/web/src/lib/tool-formatters.ts:42
↓ 12 callersFunctionhandlePullRequestOpened
( env: Env, log: Logger, payload: PullRequestOpenedPayload, traceId: string )
packages/github-bot/src/handlers.ts:276
↓ 12 callersFunctionnormalizeSlackEvent
( input: SlackMessageInput, botUserId: string, channelMeta?: SlackChannelMeta )
packages/shared/src/triggers/slack/normalizer.ts:52
↓ 12 callersFunctionparseAllowlist
(value: string | undefined)
packages/web/src/lib/access-control.ts:23
↓ 12 callersFunctionparseDimensions
( value: MultipartFieldValue | null, opts: { name: string; required: boolean; mode: DimensionsMode } )
packages/control-plane/src/media.ts:129
↓ 12 callersFunctionparseMaybeEnvContent
(content: string)
packages/web/src/lib/env-paste.ts:12
↓ 12 callersFunctionparseTunnelUrls
(raw: string)
packages/control-plane/src/session/tunnel-urls.ts:12
↓ 11 callersMethod_fetch_final_message_state
Fetch final message state from API to ensure complete text. This is called after session.idle to capture any text that may have been
packages/sandbox-runtime/src/sandbox_runtime/bridge.py:1360
↓ 11 callersMethod_handle_command
Handle command from control plane. Long-running commands (like prompt) are run as background tasks to keep the WebSocket listener res
packages/sandbox-runtime/src/sandbox_runtime/bridge.py:530
↓ 11 callersMethod_install_tools
Copy custom tools into the .opencode/tool directory for OpenCode to discover.
packages/sandbox-runtime/src/sandbox_runtime/entrypoint.py:457
↓ 11 callersFunction_make_supervisor
Create a SandboxSupervisor with repo_path pointing at tmp_path.
packages/sandbox-runtime/tests/test_start_script.py:9
↓ 11 callersFunction_open_ws
Create a mock WebSocket in OPEN state.
packages/sandbox-runtime/tests/test_bridge_ack.py:30
↓ 11 callersFunctionapplyMigrations
(sql: SqlStorage)
packages/control-plane/src/session/schema.ts:416
↓ 11 callersFunctionbuildControlPlanePath
( basePath: string, searchParams: URLSearchParams, allowedQueryParams: readonly string[] = DEFAULT_CONTR
packages/web/src/lib/control-plane-query.ts:9
↓ 11 callersFunctionbuildInternalAuthHeaders
( secret: string | undefined, traceId?: string )
packages/shared/src/auth.ts:80
↓ 11 callersFunctionbuildQueue
(options?: { getClientInfo?: (ws: WebSocket) => ClientInfo | null })
packages/control-plane/src/session/message-queue.test.ts:85
↓ 11 callersFunctioncheckSenderPermission
( token: string, owner: string, repo: string, username: string, userAgent: string = DEFAULT_APP_NAME
packages/github-bot/src/github-auth.ts:112
↓ 11 callersFunctioncollectMessages
( ws: WebSocket, opts?: { until?: (msg: Record<string, unknown>) => boolean; timeoutMs?: number } )
packages/control-plane/test/integration/helpers.ts:171
↓ 11 callersFunctioncreateClient
()
packages/control-plane/src/sandbox/providers/vercel/client.test.ts:41
↓ 11 callersFunctioncreateHandler
()
packages/control-plane/src/session/http/handlers/messages.handler.test.ts:6
↓ 11 callersFunctioncreateInput
(overrides: Partial<CreatePullRequestInput> = {})
packages/control-plane/src/session/pull-request-service.test.ts:87
↓ 11 callersFunctionderiveParticipantUserId
(body: SessionIdentityFields)
packages/control-plane/src/session/identity.ts:147
↓ 11 callersFunctionevaluateInactivityTimeout
( state: InactivityState, config: InactivityConfig, now: number )
packages/control-plane/src/sandbox/lifecycle/decisions.ts:343
↓ 11 callersFunctionextractOpenAIAccountId
(tokens: OpenAITokenResponse)
packages/control-plane/src/auth/openai.ts:73
↓ 11 callersMethodgetSession
()
packages/control-plane/src/session/durable-object.ts:1723
↓ 11 callersFunctiongetSignIn
(authOptions: NextAuthOptions)
packages/web/src/lib/auth.test.ts:770
↓ 11 callersFunctionhandleIssueComment
( env: Env, log: Logger, payload: IssueCommentPayload, traceId: string )
packages/github-bot/src/handlers.ts:376
↓ 11 callersFunctionhandler
( request: Request, env: Env, _match: RegExpMatchArray, _ctx: RequestContext )
packages/control-plane/src/webhooks/automation-event.ts:22
↓ 11 callersFunctionmakeEnv
Minimal Env whose control plane returns `response` and whose KV is empty.
packages/slack-bot/src/classifier/repos.test.ts:13
↓ 11 callersFunctionmatchGlobalShortcut
(event: KeyboardEvent)
packages/web/src/lib/keyboard-shortcuts.ts:32
↓ 11 callersFunctionmatchRoutingRules
(message: string, rules: SlackRoutingRule[])
packages/shared/src/types/integrations.ts:257
↓ 11 callersFunctionmergeSecrets
( global: Record<string, string>, repo: Record<string, string>, maxCombinedBytes = 131072 )
packages/control-plane/src/db/secrets-validation.ts:59
↓ 11 callersFunctionmockSlackFetch
( order: string[] = [], options: { statusResponse?: Response | Promise<Response>; threadMessages?: unknown
packages/slack-bot/src/index.test.ts:217
↓ 11 callersMethodmonitor_processes
Monitor child processes and restart on crash.
packages/sandbox-runtime/src/sandbox_runtime/entrypoint.py:1080
↓ 11 callersFunctionnormalizeModelId
(modelId: string)
packages/shared/src/models.ts:217
↓ 11 callersMethodrefreshToken
* Refresh a participant's SCM OAuth token. * Dispatches to centralized (D1) or local (per-DO SQLite) refresh path.
packages/control-plane/src/session/participant-service.ts:175
↓ 11 callersFunctionrenderExpanded
(event: ToolCallEvent)
packages/web/src/components/slack-notify-event.test.tsx:69
↓ 11 callersFunctionrequireValue
(args, index, flagName)
packages/sandbox-runtime/src/sandbox_runtime/bin/upload-media.js:190
↓ 11 callersMethodrestoreFromSnapshot
* Restore a sandbox from a filesystem snapshot. * * Only available if `capabilities.supportsRestore` is true. * * @param config - Restore
packages/control-plane/src/sandbox/provider.ts:388
↓ 11 callersMethodrun_start_script
Run .openinspect/start.sh if it exists in the repository. Returns: True if script succeeded or was not present, False on
packages/sandbox-runtime/src/sandbox_runtime/entrypoint.py:1376
↓ 11 callersFunctionsanitizeLinks
(text: string)
packages/shared/src/slack/mrkdwn.ts:31
↓ 11 callersFunctionsetProvider
(value: string | undefined)
packages/web/src/lib/scm.test.ts:16
↓ 11 callersFunctionslackEvent
(overrides: { text?: string; channelId?: string; actorUserId?: string })
packages/shared/src/triggers/slack/conditions.test.ts:8
↓ 10 callersFunction_create_setup_script
Create .openinspect/setup.sh inside repo_path.
packages/sandbox-runtime/tests/test_setup_script.py:26
↓ 10 callersMethod_fake_process
(self, returncode)
packages/sandbox-runtime/tests/test_code_server_supervisor.py:26
↓ 10 callersMethod_install_mcp_packages
Pre-install npm packages for local MCP servers that use npx.
packages/sandbox-runtime/src/sandbox_runtime/entrypoint.py:720
↓ 10 callersMethodascending
Generate an ascending ID with the given prefix.
packages/sandbox-runtime/src/sandbox_runtime/bridge.py:73
↓ 10 callersFunctionauthHeaders
()
packages/control-plane/test/integration/analytics.test.ts:13
↓ 10 callersFunctionbuildCron
( type: PresetType, hour: number, dayOfWeek: string, dayOfMonth: number )
packages/web/src/lib/cron-presets.ts:54
↓ 10 callersFunctionbuildManagerWith
(opts: { lookup?: SlackAgentNotifyLookup; provider?: ReturnType<typeof createMockProvider>;
packages/control-plane/src/sandbox/lifecycle/manager.test.ts:2121
↓ 10 callersFunctioncreateMockClient
(overrides?: Partial<ClientInfo>)
packages/control-plane/src/session/presence-service.test.ts:18
↓ 10 callersFunctiondescribeCron
(expression: string, timezone: string)
packages/shared/src/cron.ts:124
↓ 10 callersFunctionenvWithToken
(raw?: string)
packages/linear-bot/src/utils/linear-client.test.ts:99
← previousnext →201–300 of 3,598, ranked by callers