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
↓ 3 callers
Function
withWorkspace
( url: string, fn: (ws: Workspace) => T | Promise<T>, )
packages/computer/src/test-harness/with-workspace.ts:16
↓ 3 callers
Method
write
* Overwrite (or create) a file with the given bytes. `opts.mode` * lets the caller pin the resulting file's POSIX mode — used by * `edit` and `w
packages/computer/src/tools/fs/types.ts:44
↓ 3 callers
Method
writeFile
( path: string, content: string | Uint8Array, options?: { exclusive?: boolean }, )
packages/computer/src/runtime/types.ts:60
↓ 3 callers
Function
writeRangeSync
( db: Database, path: string, bytes: Uint8Array, offset: number, options: WriteFileOptions, now: (
packages/dofs/src/fs/writeFile.ts:767
↓ 3 callers
Method
writeRangeSync
( path: string, data: Buffer | Uint8Array, offset: number, options?: { mode?: number }
packages/computerd/src/fuse/driver.ts:215
↓ 3 callers
Method
writeSync
( fd: number, buffer: Buffer | Uint8Array, offset: number = 0, length: number = buffer.byteLen
packages/dofs/src/provider.ts:597
↓ 2 callers
Method
#assertReadableSize
(path: string)
packages/computer/src/runtime/capability.ts:227
↓ 2 callers
Method
#cancel
(record: ExecutionRecord, message: string)
packages/computer/src/backends/worker-javascript/worker-javascript.ts:493
↓ 2 callers
Method
#claim
()
packages/computer/src/stub.ts:362
↓ 2 callers
Method
#close
(record: ExecutionRecord)
packages/computer/src/backends/worker-javascript/worker-javascript.ts:829
↓ 2 callers
Method
#createResult
(repo: FakeRepo, token: FakeToken)
packages/computer/tests/utilities/fake-artifacts-binding.ts:93
↓ 2 callers
Method
#hostStub
()
packages/computer/src/proxy.ts:199
↓ 2 callers
Method
#invalidateHandle
(id: string, handle: BackendHandle)
packages/computer/src/workspace.ts:685
↓ 2 callers
Method
#makeRepo
( name: string, opts: { description?: string; readOnly?: boolean; defaultBranch?: string; source?: str
packages/computer/tests/utilities/fake-artifacts-binding.ts:73
↓ 2 callers
Method
#moduleHandleFor
(id: string)
packages/computer/src/workspace.ts:798
↓ 2 callers
Method
#nextId
(prefix: string)
packages/computer/tests/utilities/fake-artifacts-binding.ts:49
↓ 2 callers
Method
#persistEvent
(executionId: string, event: WorkspaceRuntimeEvent)
packages/computer/src/backends/worker-javascript/worker-javascript.ts:793
↓ 2 callers
Method
#pullResolved
(resolvedId: string | undefined)
packages/computer/src/workspace.ts:640
↓ 2 callers
Method
#readdirEntries
(path: string)
packages/computer/src/runtime/capability.ts:107
↓ 2 callers
Method
#requireWrite
(operation: string)
packages/computer/src/runtime/bridge.ts:330
↓ 2 callers
Method
#retryIntent
(backend: string, attempt: number)
packages/computer/src/workspace.ts:672
↓ 2 callers
Method
#runWithInvalidation
( id: string, handle: BackendHandle, op: () => Promise<T>, )
packages/computer/src/workspace.ts:695
↓ 2 callers
Method
#seed
()
packages/computer/tests/worker-backend-worker.ts:55
↓ 2 callers
Method
#startNewContainer
(state: WarmPoolState)
examples/think-compare-runtimes/worker/container-pool-manager.ts:179
↓ 2 callers
Method
#stream
(record: ExecutionRecord, after?: number | "tail")
packages/computer/src/backends/worker-javascript/worker-javascript.ts:697
↓ 2 callers
Method
#wrapHandle
(id: string, dispatchHandle: BackendHandle, execHandle: unknown)
packages/computer/src/workspace.ts:1104
↓ 2 callers
Method
__getWorkspaceStub
()
packages/computer/src/with-workspace.ts:39
↓ 2 callers
Method
add
(args: { fs: object; dir: string; filepath: string | string[]; cache?: object; force?: boo
packages/computer/src/git/staging.ts:18
↓ 2 callers
Function
addWith
(opts: AddWithDeps)
packages/computer/src/git/staging.ts:75
↓ 2 callers
Function
alreadyApplied
(db: Database, entry: Exclude<ChangeEntry, { kind: "delete" }>)
packages/dofs/src/sync/apply.ts:454
↓ 2 callers
Method
appendEvent
(input: RunEventInput)
examples/think-compare-runtimes/worker/index.ts:89
↓ 2 callers
Function
applied
(n: number)
packages/computer/src/shell.test.ts:23
↓ 2 callers
Function
applyChanges
( db: Database, entries: Iterable<ChangeEntry> | AsyncIterable<ChangeEntry>, objects: Map<string, Uint8A
packages/dofs/src/sync/apply.ts:224
↓ 2 callers
Function
applyDirectoryEntry
(db: Database, entry: Extract<ChangeEntry, { kind: "dir" }>)
packages/dofs/src/sync/apply.ts:187
↓ 2 callers
Function
applyRunMessage
(events: RunEvent[], message: RunMessage)
examples/think-compare-runtimes/src/run-state.ts:34
↓ 2 callers
Function
armPromise
()
packages/computer/src/backends/container/container-lifecycle.test.ts:42
↓ 2 callers
Function
assertLocalName
(name: string)
packages/computer/src/artifacts/scope.ts:38
↓ 2 callers
Function
assertNotTemplate
(command: unknown)
packages/computer/src/sh.ts:79
↓ 2 callers
Function
assertPositiveFinite
(value: number, name: string)
packages/computer/src/backends/worker-javascript/worker-javascript.ts:1243
↓ 2 callers
Method
assertResult
(value: unknown)
packages/computer/src/runtime/bridge.ts:80
↓ 2 callers
Method
attachOutput
(readable: ReadableStream<Uint8Array>)
packages/computer/src/runtime/bridge.ts:72
↓ 2 callers
Function
backend
(rpc?: Partial<import("@cloudflare/computer-rpc").WorkspaceRPC>)
packages/computer/src/stub.test.ts:87
↓ 2 callers
Function
bestEffortCleanup
(label: string, cleanup: () => Promise<void>)
examples/think-compare-runtimes/worker/think/agents.ts:512
↓ 2 callers
Method
blockConcurrencyWhile
(callback: () => Promise<T>)
examples/think/worker-configuration.d.ts:554
↓ 2 callers
Method
branch
Create a branch.
packages/computer/src/git/index.ts:264
↓ 2 callers
Function
branchDeleteWith
(opts: BranchDeleteWithDeps)
packages/computer/src/git/refs.ts:92
↓ 2 callers
Method
branchList
List local branches.
packages/computer/src/git/index.ts:268
↓ 2 callers
Function
branchListWith
(opts: BranchListWithDeps)
packages/computer/src/git/refs.ts:113
↓ 2 callers
Function
branchWith
(opts: BranchWithDeps)
packages/computer/src/git/refs.ts:63
↓ 2 callers
Function
buffersEqual
(a: Buffer, b: Buffer)
packages/computerd/src/shim/shim.ts:567
↓ 2 callers
Function
buildFuseOptionString
(env: FuseOptionEnv)
packages/computerd/src/fuse/options.ts:64
↓ 2 callers
Function
buildKey
(path: string, prefix: string | undefined, id: string)
packages/computer/src/assets/upload.ts:47
↓ 2 callers
Function
buildRuntimePanelModel
( events: RunEvent[], runtime: RuntimeId, telemetry: RuntimeDashboardModel, )
examples/think-compare-runtimes/src/runtime-panel-model.ts:73
↓ 2 callers
Function
bundleComputerd
({ outfile, target })
packages/computerd/scripts/sea/bundle.mjs:27
↓ 2 callers
Function
byteLength
(contents: string)
examples/think-compare-runtimes/worker/runtime/file-tools.ts:131
↓ 2 callers
Function
cacheFor
(db: Database)
packages/dofs/src/fs/resolveCache.ts:46
↓ 2 callers
Function
cacheFor
(db: Database)
packages/dofs/src/fs/writeBuffer.ts:54
↓ 2 callers
Function
callback
(fn: (cb: (errno: number, result: unknown) => void) => void)
packages/computerd/src/fuse/driver.test.ts:5
↓ 2 callers
Method
cancelAndDrain
()
packages/computer/src/runtime/bridge.ts:213
↓ 2 callers
Method
catFile
Read raw bytes for an object by oid.
packages/computer/src/git/index.ts:294
↓ 2 callers
Function
catFileWith
(opts: CatFileWithDeps)
packages/computer/src/git/plumbing.ts:118
↓ 2 callers
Function
chainOf
(depth: number)
packages/dofs/src/bench/fs-ops.bench.ts:175
↓ 2 callers
Function
checkPath
(absPath: string)
packages/computer/src/mounts/index.ts:190
↓ 2 callers
Function
checkoutWith
(opts: CheckoutWithDeps)
packages/computer/src/git/refs.ts:225
↓ 2 callers
Function
chmod
(db: Database, path: string, mode: number, now: () => number)
packages/dofs/src/fs/chmod.ts:16
↓ 2 callers
Function
chmod
(path, mode, cb)
packages/computerd/src/fuse/driver.ts:841
↓ 2 callers
Method
chmod
(path: string, mode: number, cb: StatusCallback)
packages/computerd/src/fuse/driver.ts:83
↓ 2 callers
Method
chmod
(path: string, mode: number)
packages/computer/src/backends/worker-shell/adapter.ts:51
↓ 2 callers
Method
clean
Remove untracked files (and directories with `directories`).
packages/computer/src/git/index.ts:310
↓ 2 callers
Function
cleanWith
(opts: CleanWithDeps)
packages/computer/src/git/worktree.ts:232
↓ 2 callers
Function
clearBlobCache
(db: Database)
packages/dofs/src/fs/blobCache.ts:85
↓ 2 callers
Method
cli
* Argv-driven entry point. The worker-backend's `artifacts` * custom command dispatches through this; in-process callers can * use it too when t
packages/computer/src/artifacts/client.ts:96
↓ 2 callers
Function
cloneWith
(opts: CloneWithDeps)
packages/computer/src/git/clone.ts:105
↓ 2 callers
Method
close
()
packages/computer/src/workspace.ts:773
↓ 2 callers
Method
close
()
examples/think-compare-runtimes/worker/think/agents.ts:434
↓ 2 callers
Function
collect
(stream: ReadableStream<T>)
packages/computer/src/exec-wire.test.ts:22
↓ 2 callers
Function
collectDiffEntries
(opts: DiffWithDeps)
packages/computer/src/git/diff.ts:147
↓ 2 callers
Function
commitPendingBuffer
(db: Database, entry: WriteBufferEntry, now: () => number)
packages/dofs/src/fs/writeFile.ts:646
↓ 2 callers
Function
commitWith
(opts: CommitWithDeps)
packages/computer/src/git/commit.ts:79
↓ 2 callers
Function
compactToneClass
(item: AgentWorkItem)
examples/think-compare-runtimes/src/runtime-wing.tsx:355
↓ 2 callers
Function
composite
( sync: import("@cloudflare/computer-rpc").SyncRPC, )
packages/computer/src/workspace.test.ts:30
↓ 2 callers
Function
concat
(chunks: Uint8Array[])
packages/computer/src/git/pako-zlib-shim.ts:46
↓ 2 callers
Method
configGet
Read a single config key.
packages/computer/src/git/index.ts:298
↓ 2 callers
Function
configGetWith
( opts: ConfigGetWithDeps, )
packages/computer/src/git/plumbing.ts:229
↓ 2 callers
Function
configSetWith
(opts: ConfigSetWithDeps)
packages/computer/src/git/plumbing.ts:266
↓ 2 callers
Method
connect
(host: WorkspaceBackendHost)
packages/computer/src/backend.ts:70
↓ 2 callers
Function
containerSegments
(events: RunEvent[], target: ExecutionTarget)
examples/think-compare-runtimes/src/runtime-panel-model.ts:180
↓ 2 callers
Function
contentDisposition
(disposition: "inline" | "attachment", filename: string)
packages/computer/src/assets/upload.ts:57
↓ 2 callers
Function
contentTypeForPath
(path: string)
packages/computer/src/assets/mime.ts:54
↓ 2 callers
Function
countBlobs
(db: Database)
packages/dofs/src/fs/writeFile.test.ts:50
↓ 2 callers
Method
cp
(src: string, dest: string, options?: { recursive?: boolean })
packages/computer/src/backends/worker-shell/adapter.ts:197
↓ 2 callers
Function
createAITools
(options: CreateAIToolsOptions)
packages/computer/src/tools/ai.ts:20
↓ 2 callers
Function
createAndSwitch
* Create a branch (optionally at a start point) and move HEAD to * it — the shared core of `checkout -b` and `switch -c`. The * branch is created fi
packages/computer/src/git/cli.ts:1334
↓ 2 callers
Function
createCloudflareObserver
(options: CloudflareObserverOptions)
packages/computer/src/observe/cloudflare.ts:66
↓ 2 callers
Function
createEditTool
(options: EditToolOptions)
packages/computer/src/tools/fs/edit.ts:93
↓ 2 callers
Function
createFileLogger
(filePath: string)
packages/computerd/src/cli/logger.ts:42
↓ 2 callers
Function
createFuseTracer
(options: CreateFuseTracerOptions = {})
packages/computerd/src/fuse/tracer.ts:64
↓ 2 callers
Function
createLog
(db: Database, id: string, opts: LogOptions)
packages/computerd/src/exec/log.ts:50
↓ 2 callers
Function
createReadTool
(options: ReadToolOptions)
packages/computer/src/tools/fs/read.ts:56
↓ 2 callers
Function
createRemoteRunEventRecorder
(sink: CompareRunEventSink)
examples/think-compare-runtimes/worker/think/remote-recorder.ts:8
← previous
next →
401–500 of 3,685, ranked by callers