MCPcopy Create free account

hub / github.com/cloudflare/computer / functions

Functions3,685 in github.com/cloudflare/computer

↓ 153 callersMethodpush
()
packages/computer/src/shell.ts:140
↓ 119 callersMethodpush
Push local refs to a remote.
packages/computer/src/git/index.ts:280
↓ 104 callersMethodset
* Set a new stored value
examples/think/worker-configuration.d.ts:12282
↓ 64 callersMethodrun
(query: string, ...bindings: unknown[])
packages/dofs/src/storage.ts:76
↓ 57 callersMethodresolve
(path: string)
packages/computer/src/runtime/capability.ts:185
↓ 53 callersMethodall
(query: string, ...bindings: unknown[])
packages/dofs/src/storage.ts:80
↓ 53 callersMethodone
(query: string, ...bindings: unknown[])
packages/dofs/src/storage.ts:85
↓ 50 callersFunctioncreateWorkspaceError
( code: WorkspaceErrorCode, message: string, path?: string, )
packages/dofs/src/errors.ts:22
↓ 50 callersMethodgetReader
* The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it. * * [MDN Reference](https://deve
examples/think/worker-configuration.d.ts:2253
↓ 50 callersMethodread
( path: string, fh: number, buffer: Buffer, length: number, position: number, cb: Stat
packages/computerd/src/fuse/driver.ts:56
↓ 49 callersMethodget
(backend: string)
packages/computer/src/workspace.ts:59
↓ 49 callersMethodhas
Test helper: does a (scoped) repo name exist?
packages/computer/tests/utilities/fake-artifacts-binding.ts:45
↓ 46 callersFunctionresolveInode
( db: Database, path: string, options: ResolveOptions = {}, )
packages/dofs/src/fs/resolve.ts:56
↓ 44 callersMethodadd
Stage paths into the index.
packages/computer/src/git/index.ts:244
↓ 42 callersMethoddelete
Delete a repo. Returns false when it does not exist.
packages/computer/src/artifacts/client.ts:72
↓ 41 callersMethodscalar
(query: string, ...bindings: unknown[])
packages/dofs/src/storage.ts:89
↓ 41 callersMethodwriteFile
(absPath: string, source: ReadableStream<Uint8Array>, mode?: number)
packages/computer/src/mounts/types.ts:84
↓ 39 callersFunctionfs
()
packages/computer/src/git/index.ts:369
↓ 37 callersFunctioncanonicalizePath
(path: string)
packages/dofs/src/path.ts:10
↓ 35 callersMethoderror
* The **`console.error()`** static method outputs a message to the console at the 'error' log level. * * [MDN Reference](https://developer.m
examples/think/worker-configuration.d.ts:148
↓ 35 callersFunctionisNotARepositoryCause
(cause: unknown)
packages/computer/src/git/errors.ts:101
↓ 35 callersMethodtoString
()
examples/think/worker-configuration.d.ts:514
↓ 34 callersMethodtransactionSync
(closure: () => T)
packages/dofs/src/types.ts:15
↓ 33 callersMethodfind
(directory: string, pattern?: string)
packages/computer/src/runtime/types.ts:52
↓ 33 callersMethodreplace
(content: string | ReadableStream | Response, options?: ContentOptions)
examples/think/worker-configuration.d.ts:1582
↓ 32 callersMethodget
( id: string, options?: { after?: number | "tail" }, )
packages/rpc/src/server.ts:47
↓ 32 callersFunctionwithDB
( fn: (db: Database) => T | Promise<T>, options: WithDBOptions = {}, )
packages/dofs/src/fs/with-db.ts:13
↓ 31 callersMethodmkdir
(absPath: string, mode?: number)
packages/computer/src/mounts/types.ts:85
↓ 29 callersFunctionmapGitError
* Map a `GitError` subclass to the standard `git: <message>` * stderr framing and a deterministic exit code: * * NotARepositoryError, AlreadyInit
packages/computer/src/git/cli.ts:2129
↓ 29 callersFunctionparseFlags
(args: string[], spec: Record<string, FlagSpec>)
packages/computer/src/git/cli.ts:2221
↓ 29 callersFunctionresolveDir
(dirArg: string | undefined, cwd: string | undefined)
packages/computer/src/git/cli.ts:2303
↓ 24 callersMethodreadFile
(path: string)
packages/computer/src/runtime/types.ts:36
↓ 23 callersFunctioninitializeSchema
(db: Database, now: () => number)
packages/dofs/src/schema/index.ts:13
↓ 23 callersFunctionwithSpan
( observer: WorkspaceObserver, name: string, attributes: WorkspaceAttributes, run: () => Promise<T>,
packages/computer/src/observe.ts:147
↓ 22 callersMethodclose
()
packages/computer/src/backend.ts:100
↓ 22 callersFunctionmkdir
(db: Database, path: string, options: MkdirOptions, now: () => number)
packages/dofs/src/fs/mkdir.ts:70
↓ 22 callersFunctiontoVfs
(path: string)
packages/computerd/src/fuse/driver.ts:154
↓ 22 callersFunctionwriteFile
( db: Database, path: string, content: WriteFileContent, options: WriteFileOptions, now: () => numbe
packages/dofs/src/fs/writeFile.ts:115
↓ 21 callersMethodget
(key: string)
examples/think-compare-runtimes/worker/container-pool-manager.ts:11
↓ 20 callersMethodready
(backend?: string)
examples/think-compare-runtimes/worker/runtime/workspace.ts:20
↓ 19 callersMethodcancel
()
packages/computer/src/backends/worker-javascript/worker-javascript.ts:109
↓ 19 callersMethodget
* Resolve repository metadata. The returned `name` is local. * Throws `ArtifactsError` (code `NOT_FOUND`) if it does not exist.
packages/computer/src/artifacts/client.ts:62
↓ 19 callersMethodresult
()
packages/computer/src/shell.ts:87
↓ 19 callersFunctiontoErrno
(error: unknown)
packages/computerd/src/fuse/driver.ts:1081
↓ 18 callersMethodclose
()
packages/rpc/src/client.ts:33
↓ 18 callersMethodclose
()
packages/computer/src/runtime/types.ts:160
↓ 18 callersMethodreadFile
(path: string)
packages/computer/src/workspace.ts:174
↓ 18 callersMethodreadFileSync
( path: string, options?: BufferEncoding | { encoding?: BufferEncoding | null } | null, )
packages/dofs/src/provider.ts:354
↓ 18 callersMethodreject
(message: string)
packages/computer/src/runtime/bridge.ts:90
↓ 18 callersMethodstat
Return file metadata, or null if the path does not exist or is not a file.
packages/computer/src/tools/fs/types.ts:22
↓ 18 callersMethodvalues
(options?: ReadableStreamValuesOptions)
examples/think/worker-configuration.d.ts:2281
↓ 18 callersMethodwriteFileSync
( path: string, data: string | Buffer, options?: { encoding?: BufferEncoding; mode?: number } | Bu
packages/dofs/src/provider.ts:409
↓ 17 callersMethodexec
(source: string, options?: Record<string, unknown>)
packages/computer/src/client.ts:254
↓ 17 callersFunctionincrementRev
(db: Database)
packages/dofs/src/rev.ts:11
↓ 16 callersMethodjson
()
examples/think/worker-configuration.d.ts:2069
↓ 16 callersMethodlog
Walk commits from `ref` (default HEAD) backwards through history.
packages/computer/src/git/index.ts:250
↓ 16 callersMethodmkdirSync
(path: string, options?: MkdirOptions)
packages/dofs/src/provider.ts:255
↓ 16 callersFunctionsymlink
(db: Database, target: string, path: string, now: () => number)
packages/dofs/src/fs/symlink.ts:12
↓ 15 callersMethodclose
()
packages/computerd/src/cli/logger.ts:22
↓ 15 callersMethodfetch
Fetch refs from a remote.
packages/computer/src/git/index.ts:278
↓ 15 callersMethodrecord
(input: RunEventInput)
examples/think-compare-runtimes/worker/think/runtime-tools.ts:54
↓ 15 callersMethodrm
Unstage paths from the index.
packages/computer/src/git/index.ts:246
↓ 14 callersMethod#resolveSafe
(path: string, allowMissing = false)
packages/computer/src/runtime/capability.ts:203
↓ 14 callersFunctionassertNotReadOnly
(db: Database, path: string)
packages/dofs/src/fs/mount-guard.ts:62
↓ 14 callersFunctionok
(stdout: string)
packages/computer/src/artifacts/cli.ts:694
↓ 14 callersMethodreset
Unstage paths or hard-reset tracked files to a ref.
packages/computer/src/git/index.ts:308
↓ 14 callersFunctionrm
(db: Database, path: string, options: RmOptions)
packages/dofs/src/fs/rm.ts:98
↓ 14 callersFunctionwriteFileSync
( db: Database, path: string, bytes: Uint8Array, options: WriteFileOptions, now: () => number, )
packages/dofs/src/fs/writeFile.ts:923
↓ 13 callersMethodcommit
Write the current index to a new commit on HEAD.
packages/computer/src/git/index.ts:248
↓ 13 callersMethodexistsSync
(path: string)
packages/dofs/src/provider.ts:512
↓ 13 callersFunctiongetPendingWriteBufferByPath
( db: Database, canonicalPath: string, )
packages/dofs/src/fs/writeBuffer.ts:67
↓ 13 callersMethodinit
Initialise a new repository in the bound workspace.
packages/computer/src/git/index.ts:240
↓ 12 callersFunctioncurrentRev
(db: Database)
packages/dofs/src/sync/watermarks.ts:128
↓ 12 callersMethodisDirectory
()
packages/dofs/src/provider.ts:81
↓ 12 callersFunctionreadFetchCursor
(db: Database, backend: string = DEFAULT_BACKEND_ID)
packages/dofs/src/sync/watermarks.ts:94
↓ 12 callersMethodsetAttribute
* Sets a single attribute on the span. Passing `undefined` is a * no-op so callers can forward optional values directly.
packages/computer/src/observe.ts:88
↓ 12 callersMethodstatSync
(path: string, _options?: { bigint?: boolean })
packages/dofs/src/provider.ts:178
↓ 11 callersFunctionargvError
(subcommand: string, message: string)
packages/computer/src/artifacts/cli.ts:702
↓ 11 callersMethodcli
* Argv-driven entry point. The worker-backend's `git` custom * command dispatches through this; in-process callers can use * it too when they wa
packages/computer/src/git/index.ts:316
↓ 11 callersFunctiondirname
(path: string)
packages/computer/src/workspace.ts:1265
↓ 11 callersMethodevents
()
examples/think-compare-runtimes/worker/run-events.ts:51
↓ 11 callersFunctionmapError
* Map a thrown error to the standard `artifacts <subcommand>: * <message>` framing at exit 1. ArtifactError subclasses carry a * clean message; anyt
packages/computer/src/artifacts/cli.ts:715
↓ 11 callersFunctionparseFlags
(args: string[], table: FlagTable)
packages/computer/src/artifacts/cli.ts:743
↓ 11 callersMethodupdate
* Update hosted image metadata * @param options Properties to update * @returns Updated image metadata * @throws {@link ImagesError} if
examples/think/worker-configuration.d.ts:12466
↓ 10 callersMethodarrayBuffer
()
examples/think/worker-configuration.d.ts:2066
↓ 10 callersMethodclose
()
packages/dofs/src/testing.ts:72
↓ 10 callersFunctioncoalesceChanges
( db: Database, after: ChangeCursor | number, options: CoalesceOptions = {}, )
packages/dofs/src/sync/coalesce.ts:35
↓ 10 callersFunctiongetWriteBuffer
(db: Database, inode: number)
packages/dofs/src/fs/writeBuffer.ts:63
↓ 10 callersFunctionreadWatermark
( db: Database, key: WatermarkKey, backend: string = DEFAULT_BACKEND_ID, )
packages/dofs/src/sync/watermarks.ts:36
↓ 10 callersMethodreaddir
( path: string, options?: { limit?: number }, )
packages/computer/src/runtime/types.ts:41
↓ 10 callersMethodtext
()
examples/think/worker-configuration.d.ts:2068
↓ 10 callersFunctiontrackStub
(target: object)
packages/rpc/src/debug.ts:39
↓ 10 callersFunctionuntrackStub
(target: object)
packages/rpc/src/debug.ts:45
↓ 10 callersMethodwriteFile
(path: string, contents: string)
examples/think-compare-runtimes/worker/runtime/seed.ts:5
↓ 9 callersFunctionexists
(path: string)
packages/computerd/src/fuse/driver.ts:289
↓ 9 callersMethodget
(key: string, options: R2GetOptions & { onlyIf: R2Conditional | Headers; })
examples/think/worker-configuration.d.ts:2024
↓ 9 callersMethodkill
(signal?: KillSignal)
packages/computer/src/shell.ts:88
↓ 9 callersFunctionscopedName
(sessionId: string, name: string)
packages/computer/src/artifacts/scope.ts:52
↓ 9 callersMethodunlinkSync
(path: string)
packages/dofs/src/provider.ts:274
↓ 8 callersMethodcall
Dispatch a call made through a host-installed reserved ws:* module.
packages/computer/src/runtime/types.ts:9
next →1–100 of 3,685, ranked by callers