Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/acoyfellow/cloudbox
/ functions
Functions
387 in github.com/acoyfellow/cloudbox
⨍
Functions
387
◇
Types & classes
53
↓ 99 callers
Method
fetch
(request: Request)
src/computer-do.ts:80
↓ 76 callers
Method
get
(key: string)
tests/run-history.test.ts:49
↓ 67 callers
Function
jsonError
(c: any, status: number, code: string, detail: string)
src/http-errors.ts:1
↓ 31 callers
Function
jsonErrorResponse
(status: number, code: string, detail: string)
src/http-errors.ts:5
↓ 28 callers
Method
has
(ownerId: string, computerId: string, kind: RepoGrantKind, repoKey: string)
src/computer-grants.ts:61
↓ 26 callers
Function
jsonError
(status: number, code: string, detail: string)
src/computer-do.ts:411
↓ 24 callers
Method
run
()
tests/run-history.test.ts:8
↓ 23 callers
Method
delete
(key: string)
tests/run-history.test.ts:53
↓ 22 callers
Function
fetch
(request: Request)
src/worker-lite.ts:2
↓ 22 callers
Function
request
(body: unknown, headers: Record<string, string> = {})
tests/http-runs.test.ts:11
↓ 21 callers
Method
prepare
(sql: string)
tests/run-history.test.ts:43
↓ 19 callers
Function
normalize
(value: string)
src/computer-grants.ts:21
↓ 15 callers
Function
internalComputerOwner
(request: Request, expectedOwner: string, env: CloudboxBindings)
src/http-personal-computers.ts:239
↓ 15 callers
Function
json
(body, status = 200)
runner/server.mjs:11
↓ 14 callers
Function
validated
* Validate a value against a Zod schema but preserve the original narrow type. * Zod's parse() widens literal types (e.g., "UnknownApp" → string). *
oauth-proxy/src/durable-objects/oauth-client.ts:95
↓ 13 callers
Function
authorize
(request: Request, spec: ComputerSpec | null, env: CloudboxBindings)
src/http.ts:281
↓ 13 callers
Function
bodyOf
(response: Response)
tests/http-runs.test.ts:19
↓ 12 callers
Function
jsonOk
(body: unknown)
src/computer-do.ts:404
↓ 11 callers
Function
writeFile
(path: string, content: string)
tests/personal-computer.test.ts:14
↓ 10 callers
Method
bind
(...values: unknown[])
tests/run-history.test.ts:7
↓ 10 callers
Function
jsonError
(status: number, code: string, detail: string)
web/src/pages/runs.ts:55
↓ 9 callers
Function
call
(suffix, method = "GET", body, extraHeaders = {})
scripts/private-repo-e2e.mjs:15
↓ 9 callers
Method
grant
(ownerId: string, computerId: string, kind: RepoGrantKind, repoKey: string, ttlMs = DEFAULT_REPO_GRANT_TTL_MS)
src/computer-grants.ts:44
↓ 9 callers
Function
readFile
(path: string)
tests/personal-computer.test.ts:13
↓ 9 callers
Function
runnerForRun
(env: CloudboxBindings, row: RunRecord)
src/http.ts:277
↓ 8 callers
Function
assertComputerPath
(path: string)
src/sandbox-computer.ts:39
↓ 8 callers
Method
getClientStub
(userId: string)
oauth-proxy/src/worker-entrypoint.ts:217
↓ 8 callers
Function
getRegistry
()
oauth-proxy/src/applications.ts:164
↓ 8 callers
Function
jsonError
(status: number, code: string, detail: string)
web/src/pages/computers.ts:37
↓ 8 callers
Function
readState
()
scripts/cloudbox-live.mjs:24
↓ 8 callers
Function
requestJson
(path, init)
scripts/cloudbox-live.mjs:17
↓ 8 callers
Function
run
(cmd, cwd, timeoutMs = MAX_TIMEOUT_MS)
runner/server.mjs:73
↓ 8 callers
Function
runnerJson
(runner: unknown, path: string, body?: unknown)
src/container-runner.ts:151
↓ 8 callers
Function
summarizeRunnerReceipt
(receipt: RunnerLifecycleReceipt)
web/src/components/runner-receipts.ts:9
↓ 7 callers
Function
append
(state: LocalState, kind: string, payload: Record<string, unknown>)
src/local-demo.ts:75
↓ 7 callers
Method
appendReceipt
(kind: ReceiptKind, payload: Record<string, unknown>)
src/computer-do.ts:380
↓ 7 callers
Function
call
( thought: string, tool: keyof AgentTools, args: Record<string, unknown> = {}, )
src/agent.ts:33
↓ 7 callers
Function
computerGrantStore
(env: CloudboxBindings)
src/http-personal-computers.ts:253
↓ 7 callers
Function
emit
(event: RunnerEvent)
src/runner-lifecycle.ts:49
↓ 7 callers
Function
isoNow
()
tests/runner-lifecycle.test.ts:5
↓ 7 callers
Function
ok
(label, detail = "")
scripts/demo.mjs:29
↓ 7 callers
Function
req
(path, init)
scripts/demo.mjs:16
↓ 7 callers
Function
requireRunnableLiveRun
(db: D1Database | undefined, id: string)
src/http.ts:492
↓ 7 callers
Function
rpcCatchAll
( fn: () => Promise<RpcResult<T, E>>, )
oauth-proxy/src/types.ts:176
↓ 7 callers
Function
runCommand
(cmd: string, cwd: string)
src/run.ts:78
↓ 7 callers
Method
scheduleNextAlarm
()
oauth-proxy/src/durable-objects/oauth-client.ts:948
↓ 6 callers
Function
classifyGitLabSmartHttp
( request: EgressRequestShape, canonicalHost = "gitlab.cfdata.org", aliases = ["gitlab-access.cfdata.org
src/gitlab-egress.ts:35
↓ 6 callers
Function
command
(cmd, args, options = {})
scripts/runner-desktop-smoke.mjs:11
↓ 6 callers
Method
encrypt
(plaintext: string)
oauth-proxy/src/durable-objects/oauth-client.ts:188
↓ 6 callers
Function
fetchWithRunnerLifecycle
(args: Parameters<typeof runnerLifecycle>[0])
src/runner-lifecycle.ts:96
↓ 6 callers
Function
normalizeCloneOptions
(input)
runner/server.mjs:54
↓ 6 callers
Function
post
(path: string, body: unknown)
src/live-run-tools.ts:45
↓ 6 callers
Function
redact
(value)
runner/server.mjs:28
↓ 6 callers
Function
requireLiveWorkspace
(runId)
runner/server.mjs:154
↓ 6 callers
Function
runInContainer
(runner: unknown, input: ContainerRunRequest, runId?: string)
src/container-runner.ts:109
↓ 6 callers
Function
shell
(value)
runner/server.mjs:50
↓ 5 callers
Function
computerEgressHandler
( request: Request, env: ComputerEgressEnv, ctx: OutboundHandlerContext<ComputerEgressParams>, )
src/computer-egress.ts:30
↓ 5 callers
Function
createCloudbox
({ baseUrl = "", token, fetcher = fetch }: CloudboxClientOptions = {})
src/client.ts:10
↓ 5 callers
Function
fetch
(request: Request)
web/src/worker.ts:19
↓ 5 callers
Method
getState
(key: string)
src/computer-do.ts:361
↓ 5 callers
Function
key
(ownerId: string, computerId: string, kind: RepoGrantKind, repoKey: string)
src/computer-grants.ts:25
↓ 5 callers
Function
postComputers
(spec: unknown, headers: Record<string, string> = {})
tests/http-auth.test.ts:25
↓ 5 callers
Function
prepareOwnerComputer
(env: SandboxComputerBindings, owner: ComputerOwner)
src/sandbox-computer.ts:45
↓ 5 callers
Function
quote
(value: string)
src/agent-computer.ts:65
↓ 5 callers
Function
req
(overrides: Partial<{ method: string; host: string; path: string; query: string }> = {})
tests/gitlab-egress.test.ts:4
↓ 5 callers
Function
request
()
tests/runner-lifecycle.test.ts:4
↓ 5 callers
Function
updateLiveState
(db: D1Database | undefined, id: string, status: string, changes: { snapshotKey?: string; forkedFrom?: string;
src/http.ts:453
↓ 4 callers
Method
allReceipts
(runId?: string)
src/computer-do.ts:392
↓ 4 callers
Function
callGet
(path: string)
examples/bring-your-agent.ts:91
↓ 4 callers
Method
completeAuth
(userId: string, raw: { code: string; state: string })
src/oauth-proxy.ts:17
↓ 4 callers
Function
container
(fetches: Array<() => Response | Promise<Response>>, running = false)
tests/runner-lifecycle.test.ts:7
↓ 4 callers
Method
decrypt
(blob: string)
oauth-proxy/src/durable-objects/oauth-client.ts:192
↓ 4 callers
Function
dockerSync
(args, { allowFail = false } = {})
scripts/runner-smoke.mjs:28
↓ 4 callers
Function
ensureRunsTable
(db?: D1Database)
src/http.ts:369
↓ 4 callers
Method
ensureSchema
()
src/computer-grants.ts:32
↓ 4 callers
Function
fetchJson
(url: string)
web/src/lib/api.ts:52
↓ 4 callers
Function
findGitLabApplication
(apps: OAuthApplication[])
src/oauth-proxy.ts:51
↓ 4 callers
Function
getRun
(db: D1Database | undefined, id: string)
src/http.ts:433
↓ 4 callers
Function
grepCheck
(name, path, needle)
scripts/proof-launch-readiness.mjs:25
↓ 4 callers
Function
harness
()
tests/repo-workflow.test.ts:9
↓ 4 callers
Function
json
(body: unknown, status = 200)
src/runner-do.ts:40
↓ 4 callers
Method
listAvailableApplications
()
src/oauth-proxy.ts:15
↓ 4 callers
Function
personalComputerId
(owner: string)
src/http-personal-computers.ts:249
↓ 4 callers
Function
proxy
()
tests/oauth-proxy.test.ts:7
↓ 4 callers
Method
put
(state: string, ownerId: string, ttlSeconds = 600)
src/oauth-proxy.ts:30
↓ 4 callers
Method
put
(key: string, value: Uint8Array)
tests/run-history.test.ts:48
↓ 4 callers
Function
request
(path = "/group/project.git/info/refs?service=git-upload-pack")
tests/computer-egress.test.ts:6
↓ 4 callers
Method
requireSpec
()
src/computer-do.ts:374
↓ 4 callers
Function
resolveHeaders
(app: OAuthApplicationDef<E>, env: E)
oauth-proxy/src/applications.ts:65
↓ 4 callers
Function
runnerReadySummary
(receipts: RunnerLifecycleReceipt[])
web/src/components/runner-receipts.ts:26
↓ 4 callers
Function
tail
(s: string, max = 4000)
src/run.ts:74
↓ 4 callers
Function
tokenCacheKey
(userKey: string, appId: string)
oauth-proxy/src/fetch.ts:61
↓ 4 callers
Function
withRetry
( fn: (signal: AbortSignal) => Promise<T>, opts?: RetryOptions, )
oauth-proxy/src/retry.ts:36
↓ 3 callers
Method
all
()
tests/run-history.test.ts:32
↓ 3 callers
Function
assertSafePath
(root, path)
runner/server.mjs:18
↓ 3 callers
Function
backoffMs
(failures: number)
oauth-proxy/src/durable-objects/oauth-client.ts:79
↓ 3 callers
Function
buildCloneCommand
(input, options = normalizeCloneOptions(input))
runner/server.mjs:66
↓ 3 callers
Function
buildGitLabRepoKey
(host: string, repo: string)
src/gitlab-egress.ts:25
↓ 3 callers
Function
call
(method, params)
scripts/alchemy-state-delete.mjs:17
↓ 3 callers
Function
callPost
(path: string, body: unknown)
examples/bring-your-agent.ts:96
next →
1–100 of 387, ranked by callers