Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/computer
/ functions
Functions
3,685 in github.com/cloudflare/computer
⨍
Functions
3,685
◇
Types & classes
2,803
↓ 2 callers
Function
createRunSession
(createId = () => crypto.randomUUID())
examples/think-compare-runtimes/worker/runs.ts:9
↓ 2 callers
Function
createRuntimeSystemPrompt
(runtime: RuntimeId)
examples/think-compare-runtimes/worker/think/prompts.ts:11
↓ 2 callers
Function
createRuntimeThinkModel
(binding: Ai)
examples/think-compare-runtimes/worker/think/model.ts:5
↓ 2 callers
Function
createRuntimeToolDescriptions
(runtime: RuntimeId)
examples/think-compare-runtimes/worker/think/prompts.ts:57
↓ 2 callers
Function
createSandboxFixtureRuntime
(sandbox: SandboxFixtureTarget)
examples/think-compare-runtimes/worker/runtime/sandbox.ts:23
↓ 2 callers
Function
createShellError
(code: string, message: string)
packages/computer/src/backends/worker-shell/entrypoint.ts:286
↓ 2 callers
Function
createShellServer
(runner: RunnerLike)
packages/rpc/src/server.ts:320
↓ 2 callers
Function
createSyncClient
(options: ClientOptions)
packages/rpc/src/client.ts:39
↓ 2 callers
Function
createTaskPrompt
(fixture: ComparisonFixture)
examples/think-compare-runtimes/worker/think/prompts.ts:17
↓ 2 callers
Function
createThinkCompatibility
( fs: ThinkWorkspaceFilesystem, )
packages/computer/src/workspace.ts:1126
↓ 2 callers
Function
createWorkspaceFixtureRuntime
(workspace: WorkspaceFixtureTarget)
examples/think-compare-runtimes/worker/runtime/workspace.ts:31
↓ 2 callers
Function
createWorkspaceServer
( db: Database, runner: RunnerLike, options: ServerOptions = {}, )
packages/rpc/src/server.ts:326
↓ 2 callers
Function
createWorkspaceWarmPoolRuntime
(env: WorkspacePoolEnv)
examples/think-compare-runtimes/worker/computer-container-pool.ts:67
↓ 2 callers
Function
createWriteTool
(options: WriteToolOptions)
packages/computer/src/tools/fs/write.ts:21
↓ 2 callers
Function
currentBranchWith
(opts: CurrentBranchWithDeps)
packages/computer/src/git/reads.ts:333
↓ 2 callers
Function
decodeExecEvents
( bytes: ReadableStream<Uint8Array>, )
packages/computer/src/exec-wire.ts:104
↓ 2 callers
Function
decodeFrame
(frame: RuntimeFrame)
packages/computer/src/runtime/wire.ts:42
↓ 2 callers
Function
decodeFramedEvents
(source: ReadableStream<Uint8Array>)
packages/computer/src/backends/worker-shell/worker-shell.ts:267
↓ 2 callers
Function
decodeRuntimeEvents
( source: ReadableStream<Uint8Array>, )
packages/computer/src/runtime/wire.ts:52
↓ 2 callers
Function
decodeRuntimeFrames
( source: ReadableStream<Uint8Array>, )
packages/computer/src/backends/worker-javascript/frames.ts:35
↓ 2 callers
Function
defineArtifactsCommand
(host: ArtifactsCommandHost)
packages/computer/src/backends/worker-shell/artifacts-command.ts:47
↓ 2 callers
Function
defineAssetsCommand
(ws: AssetsCommandHost)
packages/computer/src/backends/worker-shell/assets-command.ts:20
↓ 2 callers
Function
defineGitCommand
(ws: GitCommandHost)
packages/computer/src/backends/worker-shell/git-command.ts:76
↓ 2 callers
Function
deflate
(data: Data, options?: PakoOptions)
packages/computer/src/git/pako-zlib-shim.ts:69
↓ 2 callers
Function
delay
(ms)
packages/computerd/src/cli/computerd.test.ts:474
↓ 2 callers
Function
deriveRunSummary
(events: RunEvent[])
examples/think-compare-runtimes/src/run-state.ts:42
↓ 2 callers
Function
describeError
(error: unknown)
packages/computer/src/backends/container/cloudflare-container.ts:508
↓ 2 callers
Method
diffSummary
Per-file change summary backing `--stat` / `--name-only` / `--name-status`.
packages/computer/src/git/index.ts:238
↓ 2 callers
Function
diffSummaryWith
(opts: DiffWithDeps)
packages/computer/src/git/diff.ts:134
↓ 2 callers
Function
directoryName
(name: string)
packages/computer/src/backends/worker-javascript/module-graph.ts:223
↓ 2 callers
Function
dispose
()
packages/computer/src/client.ts:136
↓ 2 callers
Function
dispose
()
packages/computer/src/backends/worker-javascript/worker-javascript.ts:949
↓ 2 callers
Method
disposeAll
()
packages/computerd/src/exec/runner.ts:309
↓ 2 callers
Function
disposeOnDone
(stream: ReadableStream<T>, onDone: () => void)
packages/computer/src/shell.ts:509
↓ 2 callers
Function
disposeQuietly
(value: { [Symbol.dispose]?: () => void })
packages/computer/src/backends/worker-javascript/worker-javascript.ts:1282
↓ 2 callers
Function
drain
(controller: TransformStreamDefaultController<RuntimeFrame>, final: boolean)
packages/computer/src/backends/worker-javascript/frames.ts:40
↓ 2 callers
Function
dropHeartbeats
(stream: ReadableStream<ComputerdExecEvent>)
packages/computerd/src/cli/computerd.ts:110
↓ 2 callers
Method
edit
(path: string, edits: ExactEdit[])
examples/think-compare-runtimes/worker/runtime/file-tools.ts:17
↓ 2 callers
Function
elapsedMs
(startedAt: string | null, completedAt: string | null)
examples/think-compare-runtimes/src/run-state.ts:109
↓ 2 callers
Function
emitLine
( line: string, controller: TransformStreamDefaultController<WorkspaceExecEvent<E>>, )
packages/computer/src/exec-wire.ts:109
↓ 2 callers
Function
emitTrace
(reason: string)
packages/computerd/src/fuse/driver.ts:985
↓ 2 callers
Function
enableStubTracking
()
packages/rpc/src/debug.ts:33
↓ 2 callers
Function
encodeBase32
(bytes: Uint8Array)
packages/computer/src/assets/base32.ts:35
↓ 2 callers
Function
encodeExecEvents
( events: ReadableStream<WorkspaceExecEvent<ExecEncoding>>, )
packages/computer/src/exec-wire.ts:90
↓ 2 callers
Function
encodeManifest
(chunks: ManifestChunk[])
packages/dofs/src/sync/manifests.ts:41
↓ 2 callers
Function
enqueue
( controller: TransformStreamDefaultController<WorkspaceExecEvent<E>>, event: WorkspaceExecEvent<E>,
packages/computer/src/shell.ts:306
↓ 2 callers
Function
enqueue
( controller: TransformStreamDefaultController<WorkspaceRuntimeEvent<E>>, event: WorkspaceRuntimeEvent
packages/computer/src/runtime/runtime.ts:350
↓ 2 callers
Function
ensureCapacity
(entry: FileEntry, needed: number)
packages/computerd/src/fuse/driver.ts:339
↓ 2 callers
Method
ensureIndexed
()
packages/computer/src/mounts/index.ts:289
↓ 2 callers
Method
ensureMountsIndexed
()
packages/computer/src/workspace.ts:355
↓ 2 callers
Function
errorCode
(error: unknown)
packages/computer/src/runtime/capability.ts:250
↓ 2 callers
Function
errorMessage
(cause: unknown)
packages/computer/src/git/cli.ts:2367
↓ 2 callers
Method
evaluate
( input: WorkspaceRuntimeValue, host: WorkspaceRuntimeBridge, context: WorkspaceExecutionContext,
packages/computer/src/backends/worker-javascript/worker-javascript.ts:100
↓ 2 callers
Function
evaluateResult
( host: { assertResult(value: unknown): Promise<void>; attachOutput(readable: ReadableStream<Uint8Ar
packages/computer/src/backends/worker-javascript/worker-javascript.test.ts:27
↓ 2 callers
Function
events
()
packages/computer/src/workspace.test.ts:360
↓ 2 callers
Function
execObservationFacts
(facts: RunEventFact[])
examples/think-compare-runtimes/src/run-event-facts.ts:95
↓ 2 callers
Function
execSegments
(events: RunEvent[], target: ExecutionTarget)
examples/think-compare-runtimes/src/runtime-panel-model.ts:240
↓ 2 callers
Function
executeRuntimeThinkTool
( tools: RuntimeThinkToolSet, name: RuntimeThinkToolName, input: unknown, )
examples/think-compare-runtimes/worker/think/runtime-tools.ts:121
↓ 2 callers
Function
existingChunkRefs
(db: Database, inode: number)
packages/dofs/src/fs/writeFile.ts:369
↓ 2 callers
Function
exit
(code: number)
examples/think-compare-runtimes/shared/fixture.test.ts:158
↓ 2 callers
Function
fakeEnv
( opts: { onGetWorkspace?: () => FakeWorkspace; artifactsCLI?: (input: ArtifactsCLIInput) => Promise
packages/computer/src/backends/worker-shell/entrypoint.test.ts:88
↓ 2 callers
Function
fetch
(request, env)
examples/think-compare-runtimes/worker/index.ts:170
↓ 2 callers
Function
fetch
(request: Request, env: Env)
examples/think/src/index.ts:26
↓ 2 callers
Method
fetchObjects
(hashes: Uint8Array[])
packages/rpc/src/interface.ts:82
↓ 2 callers
Method
fetchPort
(port: number, input: RequestInfo | URL, init?: RequestInit)
packages/computer/src/backends/container/container-host.ts:60
↓ 2 callers
Function
fetchWith
(opts: FetchWithDeps)
packages/computer/src/git/network.ts:184
↓ 2 callers
Function
fileContents
(path: string)
examples/think-compare-runtimes/shared/fixture.test.ts:187
↓ 2 callers
Function
fileMarkers
(events: RunEvent[], _tone: TimelineTone)
examples/think-compare-runtimes/src/runtime-panel-model.ts:160
↓ 2 callers
Function
findLast
(items: T[], predicate: (item: T) => boolean)
examples/think-compare-runtimes/src/run-state.ts:115
↓ 2 callers
Function
firstLine
(s: string)
packages/computer/src/git/cli.ts:734
↓ 2 callers
Function
flush
()
packages/dofs/src/sync/apply.ts:237
↓ 2 callers
Method
flush
* Block until the on-disk tree at `mountPoint` reflects the * VFS's current state. Called by the SyncRPC `push` handler * after applying a peer
packages/computerd/src/shim/shim.ts:52
↓ 2 callers
Function
formatExitReason
(error: unknown)
packages/computer/src/backends/container/container-lifecycle.ts:68
↓ 2 callers
Method
formatJson
JSON summary suitable for stderr or `COMPUTERD_FUSE_TRACE_FILE`.
packages/computerd/src/fuse/tracer.ts:50
↓ 2 callers
Function
formatLogEntry
(level: LogLevel, args: unknown[])
packages/computerd/src/cli/logger.ts:25
↓ 2 callers
Function
formatLogFull
(commits: CommitView[])
packages/computer/src/git/cli.ts:812
↓ 2 callers
Function
formatMs
(ms: number)
examples/think-compare-runtimes/src/runtime-wing.tsx:387
↓ 2 callers
Function
formatPorcelainV1
(entries: StatusEntry[])
packages/computer/src/git/status.ts:152
↓ 2 callers
Function
formatPorcelainV2
(entries: StatusEntry[])
packages/computer/src/git/status.ts:127
↓ 2 callers
Function
formatShort
(entries: StatusEntry[])
packages/computer/src/git/status.ts:166
↓ 2 callers
Function
freshStub
()
packages/dofs/src/bench/fs-ops.bench.ts:44
↓ 2 callers
Function
freshStub
()
packages/dofs/src/fs/with-db.workers.ts:18
↓ 2 callers
Function
gc
(db: Database, options: GcOptions = {})
packages/dofs/src/fs/gc.ts:20
↓ 2 callers
Function
getAgent
(_namespace, name)
examples/think-compare-runtimes/worker/runtime-agent-handles.test.ts:19
↓ 2 callers
Method
getBufferStats
()
packages/computerd/src/fuse/driver.ts:103
↓ 2 callers
Function
getDurableObjectByName
( namespace: DurableObjectNamespace, name: string, )
examples/think-compare-runtimes/worker/sandbox-container-pool.ts:50
↓ 2 callers
Method
getTcpPort
(port: number)
examples/think-compare-runtimes/worker/computer-container-pool.ts:118
↓ 2 callers
Method
getTcpPort
(port: number)
examples/think/worker-configuration.d.ts:3361
↓ 2 callers
Method
getWarmPool
()
examples/think-compare-runtimes/worker/think/agents.ts:426
↓ 2 callers
Method
getattr
(path: string, cb: ResultCallback<FuseStat | null>)
packages/computerd/src/fuse/driver.ts:51
↓ 2 callers
Method
glob
(pattern: string)
packages/computer/src/workspace.ts:179
↓ 2 callers
Function
grep
( db: Database, pattern: string, path: string, options: GrepOptions = {}, )
packages/dofs/src/fs/grep.ts:18
↓ 2 callers
Function
handleApiRequest
( request: Request, handlers: ApiHandlers, )
examples/think-compare-runtimes/worker/http.ts:8
↓ 2 callers
Function
hasRevisionSuffix
True when `ref` carries a `gitrevisions(7)` ancestry suffix.
packages/computer/src/git/cli.ts:2341
↓ 2 callers
Method
hashObject
Hash bytes as a blob; optionally write into the object store.
packages/computer/src/git/index.ts:292
↓ 2 callers
Function
hashObjectWith
(opts: HashObjectWithDeps)
packages/computer/src/git/plumbing.ts:68
↓ 2 callers
Function
hex
(bytes: Uint8Array)
packages/dofs/src/sync/apply.ts:78
↓ 2 callers
Function
hex
(bytes: Uint8Array)
packages/rpc/src/sync-driver.ts:33
↓ 2 callers
Function
httpGet
(url)
script/computerd-stub-soak.mjs:149
↓ 2 callers
Function
hydrateBufferIfNeeded
(db: Database, inode: number, entry: WriteBufferEntry)
packages/dofs/src/fs/writeFile.ts:748
← previous
next →
501–600 of 3,685, ranked by callers