MCPcopy Create free account

hub / github.com/andrewyng/openworker / functions

Functions8,537 in github.com/andrewyng/openworker

↓ 1 callersFunction_anthropic_supported
(model: str)
coworker/providers/effort.py:120
↓ 1 callersFunction_api_base
()
coworker/connectors/attribution.py:27
↓ 1 callersFunction_api_base
()
coworker/connectors/slack_directory.py:36
↓ 1 callersMethod_api_params
(self, request: Request)
coworker/testing/fake_slack/server.py:341
↓ 1 callersMethod_apply_grants
Re-apply a reloaded session's persisted "Always allow" approvals — they're session-scoped, and the session outlives the process (owner-hit 202
coworker/server/manager.py:7215
↓ 1 callersFunction_apply_model
(model: Optional[str])
coworker/server/app.py:2859
↓ 1 callersFunction_approve_button
The first action button (`ocw_0` = Approve) of a mirrored approval card.
tests/test_ui_refresh_e2e.py:92
↓ 1 callersMethod_artifact_scan_root
The dir the Artifacts panel lists: the session's SCRATCH surface only (workspace-scratch-design.md §2.5). For orphan sessions that's the works
coworker/server/manager.py:3760
↓ 1 callersFunction_ask
(proxy: netproxy.AllowListProxy, request: bytes)
tests/test_sandbox_seatbelt.py:85
↓ 1 callersMethod_astream
Bridge the provider's blocking stream generator to the async loop via a thread + queue, so text deltas surface live without blocking the event
coworker/engine.py:1023
↓ 1 callersFunction_attach
( fn: Callable[..., Any], schema: dict[str, Any], *, approval: bool, caps: list[str], )
coworker/connectors/email_tools.py:335
↓ 1 callersFunction_attach
(fn: Callable[..., Any], schema: dict[str, Any], *, approval: bool = True)
coworker/connectors/browser_automation.py:52
↓ 1 callersFunction_attach
(fn: Callable[..., Any], schema: dict[str, Any], caps: list[str])
coworker/connectors/chat_tools.py:56
↓ 1 callersFunction_attach
( fn: Callable[..., Any], schema: dict[str, Any], *, approval: bool = True, caps: Optional
coworker/connectors/integration_tools.py:57
↓ 1 callersMethod_audit_grant_refused
(self, session_id: str, request, resolution: str)
coworker/server/manager.py:6059
↓ 1 callersMethod_audit_usage
One content-blind audit row per model round-trip (spec §5: the per-turn usage event), so exported token columns are honest — tool rows only ev
coworker/engine.py:2103
↓ 1 callersFunction_availability
(usable, why not, state) for a provider on this machine. `state` is what the page shows next to the provider: "ready", "unavailable", or "needs_do
coworker/sandbox/settings.py:16
↓ 1 callersFunction_b64url
(raw: bytes)
coworker/cloud.py:65
↓ 1 callersMethod_backfill_counts
One-time per session: move any inline blob into a .jsonl and persist title + n_msgs in the index. Skips already-migrated rows on later startup
coworker/conversations.py:279
↓ 1 callersMethod_backfill_legacy_attachment_refs
Snapshot pre-provenance refs once when the projection is introduced. Old attach events were indistinguishable from generic comment refs. Rows
coworker/teams/store.py:1219
↓ 1 callersFunction_backing_args
(p: argparse.ArgumentParser)
coworker/teams/cli.py:171
↓ 1 callersMethod_bearer_credentials
Credentials for the MaaS bearer token: explicit service account, else ADC.
coworker/providers/vertex_provider.py:132
↓ 1 callersFunction_blocked_reason
(ip: ipaddress._BaseAddress)
coworker/web/guard.py:40
↓ 1 callersMethod_blocked_untold
(self)
coworker/sandbox/workspace.py:286
↓ 1 callersFunction_board_actor
(request: Request)
coworker/server/app.py:902
↓ 1 callersMethod_bot_user_id
(self, team_id: str)
coworker/connectors/relay_client.py:310
↓ 1 callersMethod_build_app
(self)
coworker/testing/fake_slack/server.py:498
↓ 1 callersFunction_build_engine
(row: dict, workspace: Path)
tests/test_decision_matrix_golden.py:58
↓ 1 callersFunction_build_exporter
(state: Path, app, welcome: dict[str, Any])
coworker/remote/joiner.py:425
↓ 1 callersFunction_build_local_app
The full server app over this state dir — engines, sessions, everything. No listener exists, so no sidecar token: the only way in is the channel,
coworker/remote/joiner.py:523
↓ 1 callersMethod_build_or_get_engine
( self, session_id: str, *, workspace: Optional[str] = None, agent: st
coworker/server/manager.py:785
↓ 1 callersFunction_cache_diagnostics_on
()
coworker/providers/anthropic_provider.py:133
↓ 1 callersFunction_call_from_dict
Build a ToolCall from a `{"name","arguments"}` dict, or None if it isn't one / the name isn't a known tool.
coworker/providers/openai_provider.py:630
↓ 1 callersFunction_cap
(value: int, default: int = 20000, upper: int = 100000)
coworker/connectors/browser_automation.py:240
↓ 1 callersFunction_catalog_floor
The floor a connector-catalog tool must not be relaxed below. Catalog writes are EXTERNAL by construction (`approval_for_tool` → `requires_approva
coworker/risk.py:76
↓ 1 callersFunction_channel_event
(text="deploy failed", chat_id="C1", platform="slack")
tests/test_connections.py:55
↓ 1 callersMethod_channel_name
(self, team_id: str, cid: Optional[str])
coworker/connectors/relay_client.py:465
↓ 1 callersMethod_chat_identity
(team, chat handle, board actor) for a team session — the lead's chat handle is "lead"; a worker's handle IS its board actor (the callname).
coworker/server/manager.py:2865
↓ 1 callersFunction_chat_platforms
The chat platforms this session may post to: gateway-enabled (token or relay present) ∩ the persona's `connectors:` allowlist ∩ the session's effe
coworker/agent.py:141
↓ 1 callersMethod_check_transition_authority
( self, actor: Actor, item: dict[str, Any], current: ItemState, target: ItemState )
coworker/teams/store.py:1248
↓ 1 callersFunction_child_pids_darwin
(parent: int)
coworker/sandbox/runner/executor.py:76
↓ 1 callersFunction_chunks
(field, parts)
tests/test_reasoning_replay.py:40
↓ 1 callersFunction_clean_obj
(obj: dict[str, Any])
coworker/connectors/hubspot_portals.py:168
↓ 1 callersMethod_cleanup_at_exit
Paths this daemon removes when it shuts down (copies it was given that live where the server cannot delete them).
coworker/sandbox/runner/daemon.py:221
↓ 1 callersFunction_cleared
(floor: str)
coworker/permissions.py:296
↓ 1 callersFunction_clip_to_tokens
(text: str, tokens: int)
coworker/compaction.py:338
↓ 1 callersFunction_cmd_leave
(state: Path, yes: bool)
coworker/remote/joiner.py:1284
↓ 1 callersFunction_cmd_logs
(state: Path, args, platform: Optional[str] = None)
coworker/remote/joiner.py:1199
↓ 1 callersFunction_cmd_secrets
(state: Path, args)
coworker/remote/joiner.py:850
↓ 1 callersFunction_cmd_send
(target: str, text: str)
coworker/connectors/cli.py:76
↓ 1 callersFunction_cmd_service
(state: Path, args, platform: Optional[str] = None, home: Optional[Path] = None)
coworker/remote/joiner.py:954
↓ 1 callersFunction_cmd_service_macos
(state: Path, args, home: Path)
coworker/remote/joiner.py:1110
↓ 1 callersFunction_cmd_status
(state: Path, as_json: bool = False)
coworker/remote/joiner.py:1252
↓ 1 callersFunction_cmd_status
()
coworker/connectors/cli.py:29
↓ 1 callersFunction_cmd_up
(state: Path)
coworker/remote/joiner.py:773
↓ 1 callersFunction_coerce_param
Keep free-text verbatim (the common case: file content), but recover real JSON values when the whole token is unambiguous JSON (no embedded whites
coworker/providers/openai_provider.py:527
↓ 1 callersFunction_collect
()
tests/test_reasoning_effort.py:440
↓ 1 callersFunction_collect
()
tests/test_token_usage.py:329
↓ 1 callersFunction_collect
()
tests/test_session_usage.py:74
↓ 1 callersFunction_collect
()
tests/test_truncation_continuation.py:80
↓ 1 callersFunction_collect
()
tests/test_matrix_current_models.py:150
↓ 1 callersFunction_collect
()
tests/test_max_output_tokens.py:323
↓ 1 callersFunction_collect
()
tests/test_finish_reason.py:56
↓ 1 callersFunction_collect
()
tests/test_reasoning_replay.py:166
↓ 1 callersFunction_collect
()
tests/test_served_by.py:84
↓ 1 callersMethod_command_allowed
True only when EVERY part of a (possibly compound) command is independently covered by an allowlist entry. An allowlist entry auto-ru
coworker/permissions.py:952
↓ 1 callersMethod_compact_now
Run the compaction policy. Callers gate on `_compaction_due()` (or `force`, the overflow path). Returns the user-facing notice text when the o
coworker/engine.py:922
↓ 1 callersMethod_compaction_due
The trigger check alone — cheap and side-effect free, so the loop can emit the COMPACTING signal before committing to the (slow) summarizer ca
coworker/engine.py:896
↓ 1 callersMethod_compaction_record
The compaction that just happened, as persisted on the `compacted` notice and carried on the COMPACTED event (OPE-170 problem 2): summary text
coworker/engine.py:912
↓ 1 callersFunction_compat
Descriptor for an OpenAI-compatible vendor: key + a prefilled, editable endpoint.
coworker/providers/registry.py:257
↓ 1 callersFunction_config_paths
Config files to merge. Workspace MCP is executable provenance (stdio spawn), so an untrusted repo's `.coworker/mcp.json` is never read — cloning a
coworker/mcp/config.py:55
↓ 1 callersFunction_connect
(proxy: netproxy.AllowListProxy, target: str)
tests/test_network_access.py:126
↓ 1 callersFunction_connect
The daemon's end: a Unix socket, or on Windows a named pipe (same three calls).
coworker/sandbox/runner/relay.py:22
↓ 1 callersFunction_connect_github
(mgr)
tests/test_configured_spawn.py:36
↓ 1 callersFunction_connect_slack
Inbound delivery is gated on the connector being CONNECTED (§4.3). Tests used to pass by riding the developer's real Slack profile; with the isola
tests/test_dm_routing.py:32
↓ 1 callersFunction_connect_slack
(mgr)
tests/test_mention_router.py:38
↓ 1 callersMethod_connection_detail
A short human description of WHY a connector is live for a session: the chat ids it's subscribed to on that platform, plus "DMs" if this is th
coworker/server/manager.py:1489
↓ 1 callersFunction_connectors
Parse the connector grant (OPE-93). Fail closed at every ambiguity. - list → explicit allowlist (the normal case). - "all" → every connected
coworker/personas/manifest.py:152
↓ 1 callersMethod_consume_allow_anyway
(self, tool_call: ToolCall)
coworker/engine.py:1473
↓ 1 callersFunction_context_record
(engine: Any)
coworker/headless/runner.py:1271
↓ 1 callersFunction_copy_private
Copy a file or a folder, owner-only. Only regular files and folders are copied: sockets (an ssh agent keeps one under `.ssh`), pipes and devices a
coworker/sandbox/credentials.py:259
↓ 1 callersMethod_count
(self, sid: str)
coworker/conversations.py:266
↓ 1 callersMethod_count
(self, verdict: Verdict)
coworker/reviewer.py:435
↓ 1 callersMethod_create
(self)
coworker/sandbox/providers/seatbelt.py:163
↓ 1 callersFunction_csv
(value: Optional[str])
coworker/connectors/config.py:61
↓ 1 callersFunction_decode_payload
(part: email_lib.message.Message)
coworker/connectors/email_tools.py:166
↓ 1 callersFunction_dedupe_recent_first
(items: list[str], limit: int)
coworker/compaction.py:273
↓ 1 callersFunction_default_imap_factory
(host: str, port: int)
coworker/connectors/email_tools.py:106
↓ 1 callersFunction_default_smtp_factory
(host: str, port: int)
coworker/connectors/email_tools.py:110
↓ 1 callersMethod_deliver_targeted
The subscribed session's framing: a mention must be answered (in the thread, like the fan-out path); untagged traffic is judgement-only.
coworker/server/manager.py:6534
↓ 1 callersFunction_delta
(**fields)
tests/test_reasoning_replay.py:139
↓ 1 callersMethod_describe
The card's heading and body lines.
coworker/headless/terminal.py:161
↓ 1 callersFunction_descriptor
(sddl: str)
coworker/sandbox/winsec.py:216
↓ 1 callersFunction_device_approve_cycle
Run start → approve → poll; return (user_code, join token).
tests/test_remote_home.py:448
↓ 1 callersMethod_discover
(self, directory: Path)
coworker/skills/base.py:42
↓ 1 callersFunction_discover_server
A running local server, found via its per-port sidecar token files.
coworker/teams/cli.py:209
↓ 1 callersMethod_dispatch
(self, req_id: str, method: str, params: dict[str, Any])
coworker/sandbox/runner/daemon.py:296
↓ 1 callersMethod_dispatch
(self, handler, frame: dict)
coworker/connectors/relay_client.py:129
↓ 1 callersMethod_dispatch_api
(self, method: str, params: dict)
coworker/testing/fake_slack/server.py:361
↓ 1 callersFunction_dm_event
(text="ping me", chat_id="D1")
tests/test_message_source.py:56
← previousnext →2,201–2,300 of 8,537, ranked by callers