Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coasty-ai/open-cowork
/ functions
Functions
994 in github.com/coasty-ai/open-cowork
⨍
Functions
994
◇
Types & classes
338
↓ 295 callers
Method
json
()
tools/mock-coasty/test/helpers.ts:8
↓ 193 callers
Function
call
( m: MockCoasty, path: string, opts: InjectOpts = {}, )
tools/mock-coasty/test/helpers.ts:27
↓ 181 callers
Method
click
(x: number, y: number, button: MouseButton, clicks: number)
packages/executor/src/local/bridge.ts:36
↓ 134 callers
Method
api
(path: string, method: string, body?: unknown)
apps/desktop/src/localRuns.ts:446
↓ 123 callers
Function
mock
(opts: Parameters<typeof createMockCoasty>[0] = {})
tools/mock-coasty/test/helpers.ts:16
↓ 71 callers
Function
setClientForTests
(c: BackendClient | null)
apps/web/src/store.ts:47
↓ 69 callers
Function
startHarness
(opts: HarnessOptions = {})
apps/backend/test/helpers.ts:48
↓ 68 callers
Function
sendError
( reply: FastifyReply, status: number, code: string, message: string, extras: Record<string, unknown
tools/mock-coasty/src/util.ts:42
↓ 59 callers
Method
parse
(code: string, extras?: RequestExtras)
packages/core/src/client.ts:281
↓ 57 callers
Function
stubClient
(overrides: Stub = {})
apps/web/test/helpers.tsx:16
↓ 53 callers
Method
execute
(action: CuaAction)
packages/executor/src/executor.ts:25
↓ 47 callers
Function
waitFor
(url, timeoutMs = 30000)
e2e/bootstrap-smoke.mjs:35
↓ 46 callers
Method
request
Request with the retry policy described in the module docs.
packages/core/src/client.ts:206
↓ 45 callers
Function
err
(res: { json<T = unknown>(): T })
tools/mock-coasty/test/edge-cases.test.ts:38
↓ 42 callers
Function
createMachine
(m: MockCoasty, key = TEST_KEY)
tools/mock-coasty/test/helpers.ts:47
↓ 39 callers
Function
jsonRes
(body: unknown, status = 200)
apps/mobile/test/helpers.ts:9
↓ 38 callers
Method
close
()
apps/backend/src/db.ts:179
↓ 36 callers
Function
requestId
()
tools/mock-coasty/src/util.ts:11
↓ 35 callers
Method
on
(event: 'error', listener: ProxyErrorListener)
apps/web/dev-proxy.ts:162
↓ 34 callers
Method
status
Secret-free status for the renderer.
apps/desktop/src/providerStore.ts:138
↓ 33 callers
Function
expectIssue
(def: unknown, code: string)
packages/core/test/validate.test.ts:12
↓ 33 callers
Function
mapProviderError
(err: unknown, key?: string)
packages/llm/src/errors.ts:76
↓ 32 callers
Function
cx
(...parts: ReadonlyArray<string | false | null | undefined>)
packages/ui/src/cx.ts:6
↓ 30 callers
Method
request
(path: string, init: RequestInit = {})
apps/web/src/api/client.ts:276
↓ 29 callers
Method
emit
Append an event to a stream (seq starts at 1) and notify live listeners.
tools/mock-coasty/src/state.ts:161
↓ 28 callers
Function
t
(cond: Condition)
packages/core/test/template-conditions.test.ts:66
↓ 27 callers
Function
onlyCall
Find the single recorded call (asserts exactly one was made).
packages/executor/test/unixBridges.test.ts:126
↓ 26 callers
Function
normalizeAction
(action: CuaAction)
packages/core/src/types.ts:166
↓ 26 callers
Function
resolveTemplate
(value: unknown, scope: TemplateScope)
packages/core/src/workflow/template.ts:32
↓ 25 callers
Function
scriptedFetch
A scripted fetch: returns queued responses in order; records every call.
packages/core/test/client.test.ts:21
↓ 24 callers
Function
stubFetch
(handler: FetchHandler)
apps/mobile/test/helpers.ts:25
↓ 24 callers
Function
toCuaAction
(a: ModelAction)
packages/llm/src/actionParser.ts:79
↓ 23 callers
Function
makeRun
(overrides: Record<string, unknown> = {})
apps/web/test/helpers.tsx:111
↓ 22 callers
Function
client
( fetchImpl: FetchLike, extra: Partial<ConstructorParameters<typeof CoastyClient>[0]> = {}, )
packages/core/test/client.test.ts:46
↓ 21 callers
Function
json
(data: unknown, status = 200, headers: Record<string, string> = {})
packages/core/test/client.test.ts:39
↓ 21 callers
Function
quietLoad
(env: NodeJS.ProcessEnv)
apps/backend/test/config.test.ts:16
↓ 21 callers
Method
start
* Start a local run: register it with the backend, open a proxied Coasty * session sized to the real screen, then drive the agent loop in the *
apps/desktop/src/localRuns.ts:127
↓ 20 callers
Function
task
(id: string, text = 'do something', save?: string)
tools/mock-coasty/test/workflows-machines.test.ts:11
↓ 19 callers
Function
formatApiError
(err: unknown)
apps/web/src/api/client.ts:127
↓ 19 callers
Function
nowIso
()
tools/mock-coasty/src/util.ts:12
↓ 18 callers
Method
clear
Remove any BYO config → revert to the Coasty default.
apps/desktop/src/providerStore.ts:133
↓ 18 callers
Function
executeWorkflow
(opts: ExecuteWorkflowOptions)
packages/core/src/workflow/evaluator.ts:86
↓ 18 callers
Function
fakeBackend
(opts: FakeBackendOpts = {})
apps/desktop/test/localRuns.test.ts:70
↓ 18 callers
Function
fakeExecutor
(opts: FakeExecutorOpts = {})
apps/desktop/test/localRuns.test.ts:35
↓ 18 callers
Function
makeWorkflowRun
(overrides: Record<string, unknown> = {})
apps/web/test/helpers.tsx:156
↓ 18 callers
Function
pollUntil
( fn: () => Promise<T | undefined | false>, timeoutMs = 8000, stepMs = 25, )
apps/backend/test/helpers.ts:104
↓ 17 callers
Method
getRun
(userId: string, id: string)
apps/backend/src/db.ts:261
↓ 17 callers
Function
makeManager
( backend: ReturnType<typeof fakeBackend>, executor: Executor, overrides: Partial<ConstructorParameters<
apps/desktop/test/localRuns.test.ts:144
↓ 17 callers
Function
pollUntil
( fn: () => Promise<T | undefined | false>, timeoutMs = 6000, )
tools/mock-coasty/test/helpers.ts:57
↓ 17 callers
Method
screenshot
(options?: { type?: 'png' | 'jpeg' })
packages/executor/src/browser.ts:12
↓ 16 callers
Method
hide
()
apps/desktop/src/windowGuard.ts:46
↓ 16 callers
Method
predict
Predict the next action(s). Returns the loop's existing result shape.
packages/llm/src/types.ts:82
↓ 16 callers
Function
predictResponse
(partial: Partial<SessionPredictResponse>)
apps/desktop/test/localRuns.test.ts:17
↓ 16 callers
Method
updateRun
( id: string, patch: Partial< Pick< RunRow, | 'status' | 'cost_cents'
apps/backend/src/db.ts:287
↓ 15 callers
Function
cleanup
()
e2e/bootstrap-smoke.mjs:57
↓ 15 callers
Method
enqueue
(runId: string, event: BackendRunEvent)
apps/desktop/src/localRuns.ts:394
↓ 15 callers
Function
findCall
( mock: FetchMock, fragment: string, )
apps/mobile/test/helpers.ts:44
↓ 15 callers
Function
formatCents
(cents: number)
packages/core/src/cost.ts:227
↓ 15 callers
Function
load
()
apps/web/src/pages/HomePage.tsx:61
↓ 15 callers
Function
request
(path: string, opts: RequestOptions = {})
apps/mobile/src/api.ts:121
↓ 15 callers
Function
runAgentLoop
(opts: AgentLoopOptions)
packages/core/src/agentLoop.ts:75
↓ 15 callers
Method
write
(data: string)
apps/desktop/src/providerStore.ts:42
↓ 14 callers
Function
asString
(v: unknown)
apps/web/src/mapEvents.ts:8
↓ 14 callers
Function
getMachineOr404
( id: string, reply: Parameters<typeof sendError>[0], )
tools/mock-coasty/src/machines.ts:53
↓ 14 callers
Function
makeRun
(overrides: Partial<RunDto> = {})
apps/mobile/test/helpers.ts:54
↓ 14 callers
Method
restore
()
apps/desktop/src/windowGuard.ts:49
↓ 14 callers
Method
screenSize
Target screen size — the coordinate space the model's coordinates live in.
packages/executor/src/local/bridge.ts:35
↓ 14 callers
Function
signWebhookPayload
(opts: SignWebhookOptions)
packages/core/src/webhook.ts:52
↓ 13 callers
Function
getClient
()
apps/web/src/store.ts:34
↓ 13 callers
Function
notFound
(what: string)
apps/backend/src/errors.ts:16
↓ 13 callers
Method
scroll
(direction: ScrollDirection, amount: number, x?: number, y?: number)
packages/executor/src/local/bridge.ts:44
↓ 13 callers
Function
setToken
(token: string | null)
apps/mobile/src/api.ts:106
↓ 13 callers
Function
task
(id: string)
packages/core/test/validate.test.ts:10
↓ 13 callers
Function
toPlaywrightKey
(key: string)
packages/executor/src/browser.ts:61
↓ 13 callers
Function
useAuth
()
apps/mobile/src/auth.tsx:33
↓ 13 callers
Method
whenIdle
Resolves when the current run (if any) has fully settled.
apps/desktop/src/localRuns.ts:117
↓ 12 callers
Method
capture
Capture the target screen (the configured {@link ScreenRegion}, else primary).
packages/executor/src/local/bridge.ts:33
↓ 12 callers
Function
file
(op: string, params: Record<string, unknown>)
tools/mock-coasty/test/edge-cases.test.ts:610
↓ 12 callers
Method
hit
(name: string)
apps/desktop/test/windowGuard.test.ts:29
↓ 12 callers
Function
machineRuntimeCentsPerHour
( os: MachineOsType, state: 'running' | 'stopped' | 'terminated' | 'creating', )
packages/core/src/cost.ts:215
↓ 12 callers
Function
parsePyautogui
(code: string)
tools/mock-coasty/src/inference.ts:319
↓ 12 callers
Function
resolveWindowBounds
(opts: ResolveOptions)
apps/desktop/src/windowBounds.ts:180
↓ 12 callers
Function
stubClient
(overrides: Stub = {})
apps/web/test/pages.test.tsx:18
↓ 12 callers
Function
stubRunTask
A runTask stub: succeeds with a canned result; tasks containing FAIL fail.
packages/core/test/evaluator.test.ts:10
↓ 12 callers
Function
waitForStatus
(id: string, status: string, timeoutMs = 6000)
tools/mock-coasty/test/workflows-machines.test.ts:35
↓ 11 callers
Method
beginRun
Run setup. Throws {@link LlmProviderError} `NO_VISION` if the model can't see.
packages/llm/src/types.ts:80
↓ 11 callers
Function
collect
(stream: ReadableStream<Uint8Array>)
packages/core/test/sse.test.ts:15
↓ 11 callers
Function
createTestMachine
(harness: Harness, osType: 'linux' | 'windows' = 'linux')
apps/backend/test/integration-extra.test.ts:30
↓ 11 callers
Function
extractJson
(text: string)
packages/llm/src/actionParser.ts:231
↓ 11 callers
Function
fakeBridge
(opts: FakeBridgeOptions = {})
packages/executor/test/localExecutor.test.ts:9
↓ 11 callers
Function
getRun
(id: string, key = TEST_KEY)
tools/mock-coasty/test/runs.test.ts:32
↓ 11 callers
Function
hex
(n: number)
tools/mock-coasty/src/util.ts:10
↓ 11 callers
Function
isRetryableError
(err: unknown)
packages/core/src/errors.ts:85
↓ 11 callers
Function
line
(mark, msg)
scripts/doctor.mjs:19
↓ 11 callers
Function
predict
(body: Record<string, unknown>)
tools/mock-coasty/test/inference.test.ts:56
↓ 11 callers
Function
renderRun
()
apps/web/test/runDetail.test.tsx:24
↓ 11 callers
Method
save
Persist a BYO config; the key (if given) is encrypted, never plaintext.
apps/desktop/src/providerStore.ts:109
↓ 11 callers
Function
startRun
(task: string, extra: Record<string, unknown> = {}, key = TEST_KEY)
tools/mock-coasty/test/runs.test.ts:22
↓ 11 callers
Function
streamFromChunks
(chunks: string[])
packages/core/test/sse.test.ts:4
↓ 11 callers
Function
stubSse
Stub global fetch so any /events stream yields the given frames once.
apps/web/test/runDetail.test.tsx:14
next →
1–100 of 994, ranked by callers