Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/moltworker
/ functions
Functions
93 in github.com/cloudflare/moltworker
⨍
Functions
93
◇
Types & classes
21
↓ 25 callers
Function
createMockEnv
(overrides: Partial<OpenClawEnv> = {})
src/test-utils.ts:8
↓ 18 callers
Function
findExistingGatewayProcess
(sandbox: Sandbox)
src/gateway/process.ts:68
↓ 15 callers
Function
buildEnvVars
(env: OpenClawEnv)
src/gateway/env.ts:9
↓ 15 callers
Function
redactSensitiveParams
(url: URL)
src/utils/logging.ts:5
↓ 13 callers
Function
createFullMockProcess
(overrides: Partial<Process> = {})
src/gateway/process.test.ts:6
↓ 13 callers
Function
createMockSandbox
( options: { processes?: Partial<Process>[]; } = {}, )
src/test-utils.ts:62
↓ 13 callers
Function
shouldWakeContainer
( cronStoreJson: string, nowMs: number, leadTimeMs: number, )
src/cron/wake.ts:76
↓ 10 callers
Function
cronJob
( overrides: Partial<{ id: string; enabled: boolean; schedule: object; state: object; }> =
src/cron/wake.test.ts:11
↓ 10 callers
Function
makeStore
(jobs: object[])
src/cron/wake.test.ts:7
↓ 9 callers
Function
createAccessMiddleware
(options: AccessMiddlewareOptions)
src/auth/middleware.ts:49
↓ 9 callers
Function
send
(method, params = {})
skills/cloudflare-browser/scripts/cdp-client.js:36
↓ 8 callers
Function
ensureGateway
( sandbox: Sandbox, env: OpenClawEnv, options?: { waitForReady?: boolean }, )
src/gateway/process.ts:115
↓ 8 callers
Function
extractJWT
(c: Context<AppEnv>)
src/auth/middleware.ts:32
↓ 8 callers
Function
verifyAccessJWT
( token: string, teamDomain: string, expectedAud: string, )
src/auth/jwt.ts:16
↓ 7 callers
Function
createFullMockContext
(options: { env?: Partial<OpenClawEnv>; jwtHeader?: string; cookies?: string; })
src/auth/middleware.test.ts:136
↓ 7 callers
Function
createMockContext
(options: { jwtHeader?: string; cookies?: string })
src/auth/middleware.test.ts:59
↓ 6 callers
Function
apiRequest
(path: string, options: globalThis.RequestInit = {})
src/client/api.ts:65
↓ 6 callers
Function
isDevMode
(env: OpenClawEnv)
src/auth/middleware.ts:18
↓ 6 callers
Function
sendEvent
* Send a CDP event
src/routes/cdp.ts:1899
↓ 6 callers
Function
waitForProcess
( proc: { status: string; getStatus?: () => Promise<string> }, timeoutMs: number, pollIntervalMs: number
src/gateway/utils.ts:12
↓ 5 callers
Function
isE2ETestMode
(env: OpenClawEnv)
src/auth/middleware.ts:25
↓ 4 callers
Function
isGatewayPortOpen
(sandbox: Sandbox)
src/gateway/process.ts:57
↓ 4 callers
Function
killGateway
(sandbox: Sandbox)
src/gateway/process.ts:13
↓ 4 callers
Function
restoreIfNeeded
(sandbox: Sandbox, bucket: R2Bucket)
src/persistence.ts:52
↓ 4 callers
Function
send
(method, params = {})
skills/cloudflare-browser/scripts/video.js:51
↓ 4 callers
Function
timingSafeEqual
* Constant-time string comparison to prevent timing attacks
src/routes/cdp.ts:1907
↓ 4 callers
Function
toQuad
(box: { x: number; y: number; width: number; height: number })
src/routes/cdp.ts:1002
↓ 3 callers
Function
captureFrames
(count, delayMs = 100)
skills/cloudflare-browser/scripts/video.js:92
↓ 3 callers
Function
createMockExecResult
( stdout: string = '', options: { exitCode?: number; stderr?: string; success?: boolean } = {}, )
src/test-utils.ts:38
↓ 3 callers
Function
getStoredHandle
(bucket: R2Bucket)
src/persistence.ts:26
↓ 3 callers
Function
send
(method, params = {})
skills/cloudflare-browser/scripts/screenshot.js:38
↓ 2 callers
Function
buildSandboxOptions
(env: OpenClawEnv)
src/index.ts:119
↓ 2 callers
Function
formatTimeAgo
(ts: number)
src/client/pages/AdminPage.tsx:37
↓ 2 callers
Function
formatTimestamp
(ts: number)
src/client/pages/AdminPage.tsx:32
↓ 2 callers
Function
handleScheduled
(env: OpenClawEnv)
src/cron/handler.ts:19
↓ 2 callers
Function
isGatewayCrashedError
* Check if an error indicates the gateway process has crashed. * The Sandbox SDK throws this when containerFetch/wsConnect is called * but the targe
src/index.ts:57
↓ 2 callers
Function
scroll
()
skills/cloudflare-browser/scripts/video.js:102
↓ 2 callers
Function
transformErrorMessage
* Transform error messages from the gateway to be more user-friendly.
src/index.ts:40
↓ 1 callers
Function
approveAllDevices
()
src/client/api.ts:98
↓ 1 callers
Function
approveDevice
(requestId: string)
src/client/api.ts:92
↓ 1 callers
Function
computeNextRunAtMs
* Compute the next run time for a given schedule (mirrors OpenClaw's computeNextRunAtMs).
src/cron/wake.ts:32
↓ 1 callers
Function
createMockProcess
( stdout: string = '', options: { exitCode?: number; stderr?: string; status?: string } = {}, )
src/test-utils.ts:26
↓ 1 callers
Function
createSnapshot
( sandbox: Sandbox, bucket: R2Bucket, )
src/persistence.ts:107
↓ 1 callers
Function
deleteHandle
(bucket: R2Bucket)
src/persistence.ts:36
↓ 1 callers
Function
formatSyncTime
(isoString: string | null)
src/client/pages/AdminPage.tsx:22
↓ 1 callers
Function
getLastBackupId
(bucket: R2Bucket)
src/persistence.ts:141
↓ 1 callers
Function
getStorageStatus
()
src/client/api.ts:123
↓ 1 callers
Function
handleApprove
(requestId: string)
src/client/pages/AdminPage.tsx:96
↓ 1 callers
Function
handleBrowser
* Browser domain handlers
src/routes/cdp.ts:504
↓ 1 callers
Function
handleCDPMethod
* Handle a CDP method call
src/routes/cdp.ts:450
↓ 1 callers
Function
handleDOM
* DOM domain handlers
src/routes/cdp.ts:1016
↓ 1 callers
Function
handleEmulation
* Emulation domain handlers
src/routes/cdp.ts:1568
↓ 1 callers
Function
handleFetch
* Fetch domain handlers (request interception)
src/routes/cdp.ts:1698
↓ 1 callers
Function
handleInput
* Input domain handlers
src/routes/cdp.ts:1340
↓ 1 callers
Function
handleNetwork
* Network domain handlers
src/routes/cdp.ts:1422
↓ 1 callers
Function
handlePage
* Page domain handlers
src/routes/cdp.ts:605
↓ 1 callers
Function
handleRuntime
* Runtime domain handlers
src/routes/cdp.ts:845
↓ 1 callers
Function
handleTarget
* Target domain handlers
src/routes/cdp.ts:531
↓ 1 callers
Function
initCDPSession
* Initialize a CDP session for a WebSocket connection
src/routes/cdp.ts:365
↓ 1 callers
Function
listDevices
()
src/client/api.ts:88
↓ 1 callers
Function
main
()
skills/cloudflare-browser/scripts/video.js:43
↓ 1 callers
Function
main
()
skills/cloudflare-browser/scripts/screenshot.js:31
↓ 1 callers
Function
parseEnabledJobs
* Parse the cron store JSON from R2 and return enabled jobs with their next run times.
src/cron/wake.ts:64
↓ 1 callers
Function
restartGateway
()
src/client/api.ts:110
↓ 1 callers
Function
sendError
* Send a CDP error
src/routes/cdp.ts:1891
↓ 1 callers
Function
sendResponse
* Send a CDP response
src/routes/cdp.ts:1883
↓ 1 callers
Function
serializeNode
(node: Node, currentDepth: number)
src/routes/cdp.ts:1028
↓ 1 callers
Function
signalRestoreNeeded
(bucket: R2Bucket)
src/persistence.ts:16
↓ 1 callers
Function
storeHandle
(bucket: R2Bucket, handle: { id: string; dir: string })
src/persistence.ts:32
↓ 1 callers
Function
triggerSync
()
src/client/api.ts:135
↓ 1 callers
Function
validateRequiredEnv
* Validate required environment variables. * Returns an array of missing variable descriptions, or empty array if all are set.
src/index.ts:70
Function
AdminPage
()
src/client/pages/AdminPage.tsx:48
Function
App
()
src/client/App.tsx:4
Function
ButtonSpinner
()
src/client/pages/AdminPage.tsx:18
Function
clearPersistenceCache
()
src/persistence.ts:22
Function
click
(selector)
skills/cloudflare-browser/scripts/cdp-client.js:105
Function
close
()
skills/cloudflare-browser/scripts/cdp-client.js:134
Method
constructor
(message: string)
src/client/api.ts:59
Function
createClient
(options = {})
skills/cloudflare-browser/scripts/cdp-client.js:18
Function
createMockEnvWithR2
(overrides: Partial<OpenClawEnv> = {})
src/test-utils.ts:17
Function
evaluate
(expression)
skills/cloudflare-browser/scripts/cdp-client.js:96
Function
getHTML
()
skills/cloudflare-browser/scripts/cdp-client.js:120
Function
getText
()
skills/cloudflare-browser/scripts/cdp-client.js:127
Function
handleApproveAll
()
src/client/pages/AdminPage.tsx:113
Function
handleRestartGateway
()
src/client/pages/AdminPage.tsx:131
Function
handleSync
()
src/client/pages/AdminPage.tsx:157
Function
navigate
(url, waitMs = 3000)
skills/cloudflare-browser/scripts/cdp-client.js:80
Function
scheduled
(_controller: ScheduledController, env: OpenClawEnv, ctx: ExecutionContext)
src/index.ts:552
Function
screenshot
(format = 'png')
skills/cloudflare-browser/scripts/cdp-client.js:85
Function
scroll
(y = 300)
skills/cloudflare-browser/scripts/cdp-client.js:100
Function
setViewport
(width = 1280, height = 800, scale = 1, mobile = false)
skills/cloudflare-browser/scripts/cdp-client.js:90
Function
suppressConsole
()
src/test-utils.ts:92
Function
type
(selector, text)
skills/cloudflare-browser/scripts/cdp-client.js:111