MCPcopy Create free account

hub / github.com/andrewyng/openworker / functions

Functions8,537 in github.com/andrewyng/openworker

↓ 2 callersMethod_inject_steering
(self)
coworker/engine.py:2677
↓ 2 callersFunction_int
(value: Any)
coworker/remote/acceptor.py:1292
↓ 2 callersMethod_interrupt
(self)
coworker/sandbox/runner/executor.py:411
↓ 2 callersMethod_interruptible
Await `coro`, but resolve early with `interrupted` if the user stops the turn. The pending task is cancelled so an answered-later Inbox card n
coworker/engine.py:346
↓ 2 callersMethod_is_device
(path: str)
coworker/provenance.py:247
↓ 2 callersFunction_is_mangled
Provider arg-parsers fall back to `{"_raw": <unparsed text>}` when a tool call's arguments aren't a JSON object (typically a stream truncated mid-
coworker/engine.py:2920
↓ 2 callersFunction_kind
(value)
tests/test_gallery_contract.py:52
↓ 2 callersFunction_last_tool_message
(engine)
tests/test_mangled_tool_calls.py:59
↓ 2 callersFunction_lead_engine
(tmp_path, mode, arguments, decided)
tests/test_worker_connectors.py:515
↓ 2 callersMethod_links_of
(self, space: str, item_id: int)
coworker/teams/store.py:1315
↓ 2 callersFunction_load_grants
(raw: Optional[str])
coworker/conversations.py:47
↓ 2 callersFunction_managed_path
(tool: ManagedTool)
coworker/toolchain.py:166
↓ 2 callersFunction_manifest
()
tests/test_reviewer_persona.py:16
↓ 2 callersFunction_map_finish
(finish: Optional[str], has_calls: bool)
coworker/providers/gemini_provider.py:393
↓ 2 callersMethod_mark_due
(self, pred)
coworker/selfwake.py:163
↓ 2 callersFunction_maybe_json
Form-encoded Slack params arrive as strings; ``blocks`` is then a JSON string. The SDK web client posts form data, the stateless senders post JSON
coworker/testing/fake_slack/server.py:44
↓ 2 callersFunction_maybe_salvage_tool_calls
If the model returned tool calls as text, convert them. Returns (text, tool_calls): on success the salvaged calls replace `tool_calls` and `text`
coworker/providers/openai_provider.py:539
↓ 2 callersMethod_memory_saved_notifier
MEMORY-SPEC §5.1: push the memory_saved event that powers the GUI's save toast ("I'll remember that — … [Undo]"). Best-effort by design: `reme
coworker/server/manager.py:8136
↓ 2 callersFunction_multi_tool_turn
(calls)
tests/test_engine.py:204
↓ 2 callersFunction_nbytes
(text: str)
coworker/toolresult.py:48
↓ 2 callersFunction_needs_refusal_fallback
(model: str)
coworker/providers/anthropic_provider.py:137
↓ 2 callersMethod_network_request_payload
What the network-access card shows: each site, and how long ago the session's sandbox last blocked it (None when no command has tried it). `ev
coworker/engine.py:2485
↓ 2 callersMethod_new_instance
(self, first: bool = False)
coworker/sandbox/runner/winpipe.py:92
↓ 2 callersMethod_next_item_id
(self, space: str)
coworker/teams/store.py:1355
↓ 2 callersFunction_no_cloud
(monkeypatch)
tests/test_github_installs.py:60
↓ 2 callersMethod_nobody_answers_cards
No person can answer an approval card: attendance "auto", unless the surface says cards still reach a person.
coworker/engine.py:1232
↓ 2 callersMethod_note_effort
( self, model: str, plan: Optional[EffortPlan], kwargs: dict[str, Any] )
coworker/providers/openai_provider.py:325
↓ 2 callersMethod_note_session_site
(self, host_or_entry: str)
coworker/permissions.py:762
↓ 2 callersMethod_note_turn
(self, turn, method: str)
coworker/headless/runner.py:552
↓ 2 callersMethod_note_use
(self, model: str)
coworker/providers/router.py:39
↓ 2 callersFunction_now_ms
()
coworker/connectors/integration_tools.py:202
↓ 2 callersFunction_offered
(profile: str, provider: str)
coworker/sandbox/settings.py:94
↓ 2 callersMethod_on_site_list
Whether `host` is on the sandbox's list. The web tools speak HTTP(S) only, so the entry's port is not compared; `*.example.com` covers subdoma
coworker/permissions.py:847
↓ 2 callersFunction_open_url_with
(monkeypatch, page)
tests/test_url_address_guard.py:309
↓ 2 callersFunction_openai_chunks
()
tests/test_token_usage.py:150
↓ 2 callersFunction_origin_allowed
True if a browser Origin may use the API. Missing Origin (non-browser) passes.
coworker/server/app.py:42
↓ 2 callersFunction_output_limit
The completion ceiling actually sent, after `_param_fix_retry` may have renamed `max_tokens` to `max_completion_tokens` or dropped it (server defa
coworker/providers/openai_provider.py:191
↓ 2 callersFunction_param_fix_retry
Kwargs for the one retry an unsupported-parameter error earns, or re-raise. Reasoning-routed OpenAI models reject `max_tokens` outright (they wan
coworker/providers/openai_provider.py:129
↓ 2 callersMethod_park_unauthorized
Gateway callback: keep what an unallowed sender said (names already resolved by the adapter, best-effort) so the owner can allow-and-deliver w
coworker/server/manager.py:5487
↓ 2 callersFunction_parse_args
Tool-call arguments: dict passthrough, JSON string parse, `{"_raw": …}` fallback.
coworker/providers/anthropic_provider.py:204
↓ 2 callersFunction_parse_candidate
Pull answer text, thought summaries, function calls (ids synthesized by the caller), the finish reason, and thought signatures out of a response o
coworker/providers/gemini_provider.py:354
↓ 2 callersFunction_parse_inbox_json
Parse a structured Inbox resolution (directory/plan carry their reply as a JSON string).
coworker/server/manager.py:8287
↓ 2 callersFunction_parse_or_coerce
parse_target, but a BARE channel name ('all-openworker', '#general') coerces to Slack — models pass what the user said, and a lowercase/#-name is
coworker/connectors/tools.py:56
↓ 2 callersFunction_parse_response
One Responses result → an AssistantTurn (+ `_openai` extras).
coworker/providers/openai_responses.py:256
↓ 2 callersFunction_parse_rg
(stdout: str, root: Path, n: int)
coworker/sandbox/runner/tools_grep.py:109
↓ 2 callersFunction_patch_build
(monkeypatch)
tests/test_provider_router.py:95
↓ 2 callersFunction_patch_post
(monkeypatch, status=200, capture=None, raise_exc=None)
tests/test_provider_verify.py:44
↓ 2 callersFunction_patch_script
(target: Path)
tests/test_headless_run.py:334
↓ 2 callersFunction_patch_verify
(monkeypatch, creds: Any, status_code: Optional[int])
tests/test_vertex_provider.py:314
↓ 2 callersFunction_pdf_bytes
(file_data: str)
coworker/pdf_support.py:70
↓ 2 callersFunction_pdf_file_part
()
tests/test_engine.py:322
↓ 2 callersMethod_persona_default_connections
The persona's default connector map (seeded from the manifest's connector recommends on first read, then user-editable) as a list, each annota
coworker/server/manager.py:1379
↓ 2 callersFunction_pick_workspace
(workspace, error). Empty → the only connected workspace; several → refuse rather than guess (spec §11.8).
coworker/connectors/chat_tools.py:79
↓ 2 callersFunction_pin_reasoning_effort
(kwargs: dict[str, Any])
coworker/providers/openai_provider.py:57
↓ 2 callersFunction_poll_cursor_path
Where a box keeps its machine-events poll cursor for one connection.
coworker/connectors/adapters.py:35
↓ 2 callersFunction_poll_output
Poll shell_task_output, accumulating output until a status is reached.
tests/test_shell.py:178
↓ 2 callersFunction_post
(door: dict[str, Any], path: str, body: dict[str, Any])
coworker/subscription_sync.py:133
↓ 2 callersFunction_posthog_base
(profile: dict[str, Any])
coworker/connectors/integration_tools.py:3587
↓ 2 callersFunction_powershell
Run a script file with PowerShell; `elevate` asks for administrator rights (the UAC prompt) and waits. Output comes back through a file, because a
coworker/sandbox/providers/windows_setup.py:249
↓ 2 callersMethod_prefs_path
(self)
coworker/server/manager.py:4335
↓ 2 callersFunction_profile_for_display
The machine's profile, or the default rule's when it has none.
coworker/sandbox/settings.py:104
↓ 2 callersFunction_program
(argv: list[str])
coworker/provenance.py:128
↓ 2 callersMethod_project_notice
One-line presence pointer for a newly granted directory, or None.
coworker/server/manager.py:7645
↓ 2 callersFunction_provider
(**kw)
tests/test_vertex_provider.py:32
↓ 2 callersFunction_proxy_app
(base_url, *, state="ok", token="cloud-token", wallet=None)
tests/test_remote_home.py:1813
↓ 2 callersMethod_push
(self, envelope: dict)
coworker/testing/fake_slack/server.py:329
↓ 2 callersFunction_py_grep
( root: Path, base: Path, pattern: str, glob: Optional[str], n: int )
coworker/sandbox/runner/tools_grep.py:132
↓ 2 callersFunction_q
(value: Optional[str])
coworker/connectors/origin.py:32
↓ 2 callersFunction_raise_on_refusal
A refusal that survived the fallback chain becomes a normal provider error — the engine persists it as an error notice with Retry, instead of a si
coworker/providers/anthropic_provider.py:141
↓ 2 callersFunction_rank
Case-insensitive substring filter; prefix matches first, then alpha.
coworker/connectors/slack_directory.py:92
↓ 2 callersFunction_read
(path: Path)
coworker/config.py:270
↓ 2 callersFunction_read
(path: Path)
coworker/mcp/config.py:48
↓ 2 callersMethod_read_jsonl
(self, sid: str)
coworker/conversations.py:138
↓ 2 callersFunction_real
(path: str, home: str)
coworker/sandbox/credentials.py:204
↓ 2 callersFunction_real
(path: str, home: str)
coworker/sandbox/toolchains.py:74
↓ 2 callersFunction_reasoning_extras
The `_openai_compat` sidecar persisted on the assistant message: the thinking text and the field it arrived in, replayed verbatim by `replay_reaso
coworker/providers/openai_provider.py:73
↓ 2 callersFunction_reasoning_field
Which field the thinking arrived in: `reasoning_content` (Together, Moonshot, DeepSeek, GLM) or `reasoning` (OpenRouter, xAI). The same name is us
coworker/providers/openai_provider.py:62
↓ 2 callersFunction_reasoning_text
Display text for the GUI's disclosure — thinking text only (redacted stays opaque).
coworker/providers/anthropic_provider.py:415
↓ 2 callersFunction_rec
(sid: str, n: int)
tests/test_conversation_atomicity.py:22
↓ 2 callersFunction_recent_files
Files in the task workspace modified during the run — the run's artifacts.
coworker/server/manager.py:8326
↓ 2 callersFunction_record
Best-effort status hook: (machine_id, known, version, outcome) where outcome ∈ checked | applied | ignored | failed | unreachable.
coworker/remote/acceptor.py:1299
↓ 2 callersMethod_record
Enter this sandbox in the registry; after a restart that replaced it, under its new name. `state="creating"` reserves the name before the sand
coworker/sandbox/workspace.py:150
↓ 2 callersMethod_record
(self, exc: BaseException, method: str)
coworker/headless/runner.py:530
↓ 2 callersFunction_refresh_listeners_if_two_way
(name: str)
coworker/server/app.py:1378
↓ 2 callersFunction_regional_host
Vertex REST host for a location — `global` (newer Gemini models) has no region prefix (checked live 2026-07-26).
coworker/providers/vertex_provider.py:49
↓ 2 callersMethod_register_manifest
(self, m, *, builtin: bool)
coworker/personas/registry.py:194
↓ 2 callersFunction_rel
(path: str, root: Path)
coworker/sandbox/runner/tools_grep.py:102
↓ 2 callersMethod_release_subscription
(self, session_id: str, channel: str)
coworker/server/manager.py:6609
↓ 2 callersMethod_remove_spawn_worktree
Legacy harness-owned checkouts only; agent-owned work is never removed here.
coworker/server/manager.py:6757
↓ 2 callersFunction_repo_of
(owner, repo) from the clone's origin remote, or an error dict.
coworker/connectors/integration_tools.py:925
↓ 2 callersMethod_report_orphan_subscription
(self, channel: str)
coworker/server/manager.py:6620
↓ 2 callersFunction_request_authenticated
(request: Request)
coworker/server/app.py:216
↓ 2 callersMethod_request_kwargs
( self, *, model: str, messages: list[dict[str, Any]], tools: Optional
coworker/providers/openai_responses.py:346
↓ 2 callersMethod_request_kwargs
( self, *, model: str, messages: list[dict[str, Any]], tools: Optional
coworker/providers/bedrock_provider.py:323
↓ 2 callersMethod_request_kwargs
( self, *, model: str, messages: list[dict[str, Any]], tools: Optional
coworker/providers/codex_provider.py:79
↓ 2 callersMethod_request_kwargs
( self, *, model: str, messages: list[dict[str, Any]], tools: Optional
coworker/providers/anthropic_provider.py:497
↓ 2 callersMethod_request_kwargs
( self, *, model: str, messages: list[dict[str, Any]], tools: Optional
coworker/providers/gemini_provider.py:432
↓ 2 callersMethod_resolve
(self, params: dict[str, Any], key: str = "path")
coworker/sandbox/runner/daemon.py:176
↓ 2 callersFunction_resolve_channel_in
A channel id passes through; a NAME resolves within the workspace via the same cached roster the GUI's channel picker uses. (channel_id, error).
coworker/connectors/chat_tools.py:95
↓ 2 callersMethod_resolve_locked
(item: InboxItem, resolution: str, by: str)
coworker/inbox.py:382
← previousnext →1,501–1,600 of 8,537, ranked by callers