MCPcopy Create free account

hub / github.com/andrewyng/openworker / functions

Functions8,537 in github.com/andrewyng/openworker

↓ 12 callersFunction_fixture
(tmp_path)
tests/test_memory_api.py:25
↓ 12 callersFunction_google_headers
(token: str)
coworker/connectors/integration_tools.py:494
↓ 12 callersMethod_provision_scratch
Create (idempotently) and return this conversation's scratch directory.
coworker/server/manager.py:638
↓ 12 callersFunction_reg
(tmp_path)
tests/test_persona_registry.py:12
↓ 12 callersFunction_resolves_to
(monkeypatch, ip: str)
tests/test_url_address_guard.py:16
↓ 12 callersFunction_tokens
(manager)
tests/test_team_open_surface.py:181
↓ 12 callersFunction_tool_turn
(name, args, call_id="call_1")
tests/test_engine.py:27
↓ 12 callersMethodclose
(self)
coworker/audit.py:223
↓ 12 callersMethodcomplete
(self, **kw)
tests/test_sharing_v1.py:117
↓ 12 callersMethodconsume_feed
(self, space: str, actor_id: str, upto_seq: int)
coworker/teams/store.py:373
↓ 12 callersMethoddisconnect
(self)
coworker/connectors/fake.py:26
↓ 12 callersMethodfeed_for
Unconsumed events this actor is subscribed to, in order: everything on its current slice, plus assignment events that START its interest (newl
coworker/teams/store.py:347
↓ 12 callersFunctionisCloudMode
()
surfaces/gui/src/api.ts:3344
↓ 12 callersFunctionload_settings
Per-platform settings from the SecretStore profile + env overrides. A platform is enabled when its token profile exists (and isn't explicitly dis
coworker/connectors/config.py:65
↓ 12 callersFunctionlocal_dialect
Open the state dir's stores directly as one bound identity — the headless backing for the CLI and MCP server when no OpenWorker server is running.
coworker/teams/dialect.py:569
↓ 12 callersFunctionlong_history
(turns=8, bulk=1500)
tests/test_compaction_engine.py:70
↓ 12 callersFunctionnewId
()
surfaces/gui/src/App.tsx:123
↓ 12 callersMethodpath_for
Resolve a stored name (`<sha256>.<ext>`) to its file. The strict name check is the traversal guard — nothing else reaches the filesystem.
coworker/teams/attachments.py:90
↓ 12 callersMethodrecord
(self, source: str, sender: str, text: str, reason: str)
coworker/unrouted.py:53
↓ 11 callersFunction_allowed
(tmp_path, command: str, allowlist: list[str])
tests/test_command_matching.py:18
↓ 11 callersFunction_cowork_manager
(tmp_path)
tests/test_multiroot.py:182
↓ 11 callersFunction_drain
Collect event types until turn_done; optionally answer permission_required.
tests/test_server.py:334
↓ 11 callersFunction_engine
(tmp_path, turns, *, mode=Mode.INTERACTIVE, attendance="auto", **kw)
tests/test_attendance_auto.py:75
↓ 11 callersFunction_mgr
(tmp_path, monkeypatch)
tests/test_configured_spawn.py:49
↓ 11 callersFunction_now
()
coworker/cloud.py:69
↓ 11 callersFunction_org_machine
Fetch a machine the caller is allowed to touch, or None. A row in another org is a 404, indistinguishable from not existing at all.
coworker/remote/acceptor.py:278
↓ 11 callersMethod_post
(self, path: str, body: dict)
coworker/teams/dialect.py:344
↓ 11 callersFunction_registry
(root: Path)
tests/test_tools_permissions.py:14
↓ 11 callersFunction_run
(engine, text="go")
tests/test_attendance_auto.py:107
↓ 11 callersFunction_text
(text="done")
tests/test_attendance_auto.py:71
↓ 11 callersFunction_text_part
(text)
tests/test_gemini_provider.py:53
↓ 11 callersFunction_tool_turn
(name, args, call_id="c1")
tests/test_attendance_auto.py:64
↓ 11 callersMethodadd_run
(self, run: TaskRun)
coworker/automation/store.py:152
↓ 11 callersFunctionboard_tools
The board verbs for one agent, pre-bound to its space and identity. Authority is enforced twice on purpose: the returned set is role-filtered
coworker/teams/tools.py:92
↓ 11 callersMethodclose
(self)
coworker/sandbox/workspace.py:299
↓ 11 callersFunctioncollect
(engine, text="continue")
tests/test_compaction_engine.py:96
↓ 11 callersFunctionconvert_messages
OpenAI-shaped history → (`system_instruction`, Gemini `contents`). Function calls have no ids on the wire, so tool results are matched back to th
coworker/providers/gemini_provider.py:183
↓ 11 callersFunctionemptyUsage
()
surfaces/gui/src/usage.ts:10
↓ 11 callersMethodfor_session
(self, session_id: str)
coworker/subscriptions.py:98
↓ 11 callersFunctioninvokeStrict
(cmd: string, args?: Record<string, unknown>)
surfaces/gui/src/tauri.ts:56
↓ 11 callersMethodlive
(self, machine_id: str)
coworker/remote/acceptor.py:116
↓ 11 callersFunctionmake_engine
(tmp_path, provider, *, messages=None, cap=400)
tests/test_compaction_engine.py:80
↓ 11 callersMethodmark_idle
(self, session_id: str)
coworker/server/manager.py:6312
↓ 11 callersMethodpending
(self, space: str, *, limit: int = 200)
coworker/teams/dialect.py:99
↓ 11 callersMethodpersist_session
Save the cached engine's thread (so a prompt's pending tool call survives a crash).
coworker/server/manager.py:1883
↓ 11 callersMethodscreenshot
(self)
coworker/connectors/browser_automation.py:173
↓ 11 callersMethodsendall
(self, data: bytes)
coworker/sandbox/runner/winpipe.py:39
↓ 11 callersMethodset_default
(self, persona_id: str)
coworker/personas/registry.py:368
↓ 11 callersMethodset_message_handler
(self, handler: MessageHandler)
coworker/connectors/base.py:165
↓ 11 callersMethodsnapshot
(self)
coworker/memory/settings.py:63
↓ 11 callersMethodstream
( self, *, model: str, messages: list[dict[str, Any]], tools: Optional
coworker/providers/anthropic_provider.py:673
↓ 11 callersMethodto_dict
(self)
coworker/automation/models.py:237
↓ 10 callersFunction_account
(email: str, **extra)
tests/test_gmail_accounts.py:29
↓ 10 callersFunction_account
(email: str, **extra)
tests/test_gcal_accounts.py:27
↓ 10 callersFunction_adapter
(frames, *, close_after=False, **kw)
tests/test_slack_relay.py:86
↓ 10 callersMethod_get
(self, path: str, params: Optional[dict] = None)
coworker/teams/dialect.py:338
↓ 10 callersFunction_github_event
(*, kind="pr_open", number="42", configuration=None, reply_only=None, known_names=(), name="", sender="octocat
tests/test_configured_spawn.py:17
↓ 10 callersFunction_run
(tmp_path: Path, script: list[dict], *extra: str, machine: Path | None = None)
tests/test_run_cli.py:52
↓ 10 callersFunction_tools
(roots)
tests/test_browser_root_scoping.py:30
↓ 10 callersMethodappend_event
Append one record and fold it into the projections, atomically.
coworker/teams/store.py:193
↓ 10 callersMethodas_dict
(self)
coworker/sandbox/setup_cmd.py:112
↓ 10 callersMethodbroadcast_session
Fan a turn event out to every socket viewing this session. Best-effort: a dead socket is dropped, never fatal to the turn (delivery is socket-
coworker/server/manager.py:5625
↓ 10 callersFunctionchat_agent
()
coworker/agents/chat.py:15
↓ 10 callersMethodclaim
Self-assign an open, unassigned item. Nobody stamps a claim — the store arbitrates: the open+unassigned check runs under the write lock, so wh
coworker/teams/store.py:991
↓ 10 callersMethodclose
(self)
coworker/teams/store.py:1103
↓ 10 callersMethoddelete
(self, item_id: int)
coworker/memory/base.py:65
↓ 10 callersFunctionensure_under_base
Expand and resolve `path`; raise OutsideBaseDir when a base is set and the path is not inside it. Symlinks are resolved first so a link out of
coworker/basedir.py:31
↓ 10 callersMethodfor_worker_session
(self, session_id: str)
coworker/teams/registry.py:110
↓ 10 callersMethodfrom_dict
(cls, d: dict)
coworker/automation/models.py:241
↓ 10 callersFunctiongetMachines
()
surfaces/gui/src/api.ts:3292
↓ 10 callersFunctiongetRecentWorkspaces
(machineId?: string | null)
surfaces/gui/src/api.ts:174
↓ 10 callersMethodget_roots
The directories this session can touch: primary scratch first, then added folders. Reads the live engine when one is running; otherwise recons
coworker/server/manager.py:7401
↓ 10 callersMethodlink
( self, space: str, actor: Actor, src: int, kind: str, dst: int )
coworker/teams/store.py:1057
↓ 10 callersMethodmark_running
(self, session_id: str)
coworker/server/manager.py:6294
↓ 10 callersFunctionmemory_tools
The agent's memory tools. `saving_enabled` is a LIVE callable checked on each write, so the Settings switch applies to conversations already
coworker/memory/tools.py:29
↓ 10 callersMethodname_current
(self, kind: str, name: str, key: str)
coworker/projects.py:99
↓ 10 callersMethodnote_worker_waiting
A team worker parked on a tool approval (the lead is Manual): tell the lead through the board — `worker_waiting` is on its wake allowlist (§11
coworker/server/manager.py:1334
↓ 10 callersFunctionproject_key
Derive the project key for a directory. Git repo → the repo directory (common-dir's parent — shared by every worktree); otherwise the resolved
coworker/projects.py:44
↓ 10 callersFunctionread_global
Raw `mcpServers` map from the global file (no `${VAR}` resolution).
coworker/mcp/config.py:113
↓ 10 callersMethodreconcile_activity_receipts
(self, session_id: str)
coworker/server/manager.py:3466
↓ 10 callersMethodrecord
`state`: "creating" reserves the name BEFORE the sandbox exists, so that another engine build's `reap()` (they run concurrently since OPE-206)
coworker/sandbox/registry.py:106
↓ 10 callersMethodrequest_interrupt
Stop the turn as soon as possible, from ANY state: mid-stream (the producer thread drops the stream between chunks), mid-tool (interrupt hooks
coworker/engine.py:332
↓ 10 callersMethodresolve_inbox
Resolve an Inbox item from any surface (REST / Slack button / channel reply). If the asking agent is still suspended live, that await handles
coworker/server/manager.py:1913
↓ 10 callersFunctionreview
(manager)
tests/test_idle_checkins.py:18
↓ 10 callersMethodrows
Enriched listing for the Settings screen: scope, source, enabled. Global first, then project (a project row with a colliding name is the effec
coworker/skills/store.py:136
↓ 10 callersFunctionruns
(engine, command: str)
tests/test_readonly_scoping.py:30
↓ 10 callersMethodset_status
Display-only progress. Never an assignment, transition or wake signal.
coworker/teams/store.py:939
↓ 10 callersMethodsidebar
Session surfaces for the new-session picker: enabled AND surfaced, in order.
coworker/personas/registry.py:308
↓ 10 callersFunctionsplit
`'T…/C…' -> ('T…', 'C…')`; a bare `'C…' -> (None, 'C…')`. Only the first `/` splits (channel ids never contain one), so this is lossless both
coworker/connectors/slack_addr.py:25
↓ 10 callersMethodtouch_workspace
(self, path: str)
coworker/conversations.py:516
↓ 9 callersFunctionJSON_POST
(body: unknown)
surfaces/gui/src/api.ts:3702
↓ 9 callersFunction_basic_auth
(email: str, token: str)
coworker/connectors/integration_tools.py:506
↓ 9 callersMethod_board_space
(self, session_id: str)
coworker/server/manager.py:2546
↓ 9 callersFunction_bounded
(result, *, max_bytes=10_000, spill: Path | None, step=7, tool="run_shell")
tests/test_tool_result_cap.py:26
↓ 9 callersFunction_connected_secrets
(tmp_path, **extra)
tests/test_email_tools.py:94
↓ 9 callersFunction_engine
(tmp_path, turns, **kwargs)
tests/test_truncation_continuation.py:65
↓ 9 callersMethod_ensure_client
(self)
coworker/providers/codex_provider.py:62
↓ 9 callersFunction_home
(tmp_path)
tests/test_sandbox_credentials.py:22
↓ 9 callersFunction_install_form
The broker's loopback POST — deliberately NO token fields (§4).
tests/test_github_installs.py:44
↓ 9 callersMethod_item
(self, space: str, item_id: int)
coworker/teams/store.py:1347
← previousnext →201–300 of 8,537, ranked by callers