MCPcopy Create free account

hub / github.com/andrewyng/openworker / functions

Functions8,537 in github.com/andrewyng/openworker

↓ 8 callersFunctionvalidate_name
Skill names become folder names — reject anything that could escape the scope dir.
coworker/skills/store.py:39
↓ 7 callersMethod_auto_answering
Attendance is "auto": nobody will answer, so the engine answers by fixed rule.
coworker/engine.py:1225
↓ 7 callersMethod_bare
Strip a KNOWN provider prefix; the underlying SDK wants the bare model name. A model whose first segment isn't a provider (e.g. `qwen2.5-coder
coworker/providers/router.py:71
↓ 7 callersFunction_box_app
(tmp_path: Path, name: str = "box")
tests/test_remote_home.py:201
↓ 7 callersFunction_call_item
(call_id, name, arguments)
tests/test_openai_responses.py:108
↓ 7 callersFunction_collect
(engine, user_input)
tests/test_plan_mode.py:58
↓ 7 callersFunction_cut
A length-truncated, action-free reply (thinking ate the budget).
tests/test_truncation_continuation.py:34
↓ 7 callersFunction_engine
(tmp_path, mode=Mode.INTERACTIVE, **kw)
tests/test_self_protection.py:20
↓ 7 callersFunction_event_frame
(team, channel, user, text="hi", ts="1.0")
tests/test_slack_relay.py:69
↓ 7 callersFunction_fail
(what: str)
coworker/sandbox/winsec.py:140
↓ 7 callersFunction_fake_gcal
Route _request by URL suffix; records (method, url, bearer, body).
tests/test_gcal_accounts.py:43
↓ 7 callersFunction_fake_gmail
Route _request by URL suffix; records the bearer token used.
tests/test_gmail_accounts.py:124
↓ 7 callersMethod_file
(self, sid: str)
coworker/conversations.py:127
↓ 7 callersFunction_fixture
(tmp_path)
tests/test_project_bindings.py:24
↓ 7 callersFunction_github_call
A GitHub API call that works on either auth path. A 401 on the managed path re-mints once (the cached installation token may have just expired).
coworker/connectors/integration_tools.py:476
↓ 7 callersFunction_graph_headers
(token: str)
coworker/connectors/integration_tools.py:498
↓ 7 callersFunction_lead
(tmp_path)
tests/test_triage_lead.py:14
↓ 7 callersFunction_meta
(reg: ToolRegistry, name: str)
tests/test_tools_permissions.py:56
↓ 7 callersFunction_norm
(value: Any)
coworker/connectors/accounts.py:36
↓ 7 callersFunction_openshell
(monkeypatch, problem)
tests/test_sandbox_selection.py:21
↓ 7 callersFunction_override
(mapping)
tests/test_egress_and_overrides.py:91
↓ 7 callersFunction_persona_dir
(tmp_path, name="acme.md", text=THIRD_PARTY)
tests/test_persona_loading.py:28
↓ 7 callersFunction_plan_engine
(tmp_path, turns, *, plan_approver=None)
tests/test_plan_mode.py:43
↓ 7 callersMethod_provider_name
The provider for a model: the `prefix` of `prefix:rest` if it's a known provider, else the default. (A colon that isn't a known provider — unl
coworker/providers/router.py:48
↓ 7 callersMethod_prune
(self)
coworker/remote/stores.py:195
↓ 7 callersMethod_require
(self, actor: Actor, roles: set[Role], verb: str)
coworker/teams/store.py:1460
↓ 7 callersFunction_text_turn
(text)
tests/test_plan_mode.py:21
↓ 7 callersFunction_tool
(secrets, name: str)
tests/test_gmail_accounts.py:40
↓ 7 callersFunction_tool
(secrets, name: str)
tests/test_gcal_accounts.py:38
↓ 7 callersFunction_tool_result
(engine)
tests/test_attendance_auto.py:114
↓ 7 callersFunction_tool_turn
(name, args, call_id="call_1")
tests/test_plan_mode.py:25
↓ 7 callersFunction_turn
Drive one user turn the way the server does: run, save, mark idle (the auto-title hook), then wait for the fire-and-forget call to settle.
tests/test_autotitle.py:44
↓ 7 callersFunction_unb64
(text: str)
coworker/remote/identity.py:47
↓ 7 callersMethod_worker_slice
(self, space: str, worker_id: str)
coworker/teams/store.py:1269
↓ 7 callersMethod_write
(self, text: str)
coworker/tui/app.py:203
↓ 7 callersMethodaccess_token
(live access token, account id) — refreshing first when stale/absent.
coworker/providers/codex_auth.py:229
↓ 7 callersMethodacquire
(self, timeout: float)
coworker/secrets.py:163
↓ 7 callersMethodallow_domain_for_session
Remember an egress destination for this session ("Always allow this domain"). A leading `www.` is stripped at minting (§1.9): `bbc.com` and `
coworker/permissions.py:691
↓ 7 callersFunctionapprove
(args, tool_call_id=None)
tests/test_plan_mode.py:88
↓ 7 callersMethodattach
( self, space: str, item_id: int, data: bytes, filename: str,
coworker/teams/dialect.py:85
↓ 7 callersMethodattach_ref
Attach one stored blob through an attributed comment event. The dedicated payload field is the authoritative provenance marker; arbit
coworker/teams/store.py:823
↓ 7 callersMethodattendance
(self, session_id: str)
coworker/unattended.py:81
↓ 7 callersFunctionbaseName
(p: string)
surfaces/gui/src/paths.ts:4
↓ 7 callersMethodbinding_for
(self, name: str)
coworker/inbox_routing.py:79
↓ 7 callersMethodbuild_tools
(self, context: AgentContext)
coworker/agents/base.py:60
↓ 7 callersMethodclose
(self, reason: str = "machine disconnected")
coworker/remote/channel.py:148
↓ 7 callersMethodclose
(self)
coworker/sandbox/winsec.py:247
↓ 7 callersMethodclose
(self)
coworker/sandbox/runner/executor.py:444
↓ 7 callersMethodclose
(self)
coworker/teams/chat.py:198
↓ 7 callersMethodcreate
( self, *, name: str, description: str, instructions: str, sco
coworker/skills/store.py:177
↓ 7 callersMethoddescribe
(self)
tests/test_sandbox_settings.py:235
↓ 7 callersFunctionestimate_tokens
chars/4 over the serialized messages — the fallback signal for providers that never report usage (documented in the metering code).
coworker/compaction.py:73
↓ 7 callersMethodexclusive
Hold the store for a read-then-write that no other thread or process may interleave with. A sign-in renewal takes it, reads the profile AGAIN
coworker/secrets.py:238
↓ 7 callersFunctionformatTokens
(n: number)
surfaces/gui/src/usage.ts:66
↓ 7 callersFunctionformat_target
(platform: str, chat_id: str, thread_id: Optional[str] = None)
coworker/connectors/base.py:24
↓ 7 callersMethodget
(self, session_id: str)
coworker/skills/store.py:435
↓ 7 callersFunctiongetSubscriptions
(machineId?: string | null)
surfaces/gui/src/api.ts:1971
↓ 7 callersFunctionget_agent
(name: str)
coworker/agents/registry.py:15
↓ 7 callersFunctiongit
(path, *args, check=True)
tests/test_team_git_handoff.py:39
↓ 7 callersMethodis_unattended
True for both unattended values — the Inbox route and the auto route.
coworker/unattended.py:84
↓ 7 callersFunctionjsonPost
(body: unknown, method = "POST")
surfaces/gui/src/api.ts:1728
↓ 7 callersMethodlist_connectors
(self)
coworker/server/manager.py:2434
↓ 7 callersFunctionload_mcp_servers
Merge global + (when trusted) workspace `mcpServers` into parsed server defs. Only trusted workspaces contribute — the same consent boundary as r
coworker/mcp/config.py:89
↓ 7 callersFunctionmain
(argv: Optional[list[str]] = None)
coworker/cli.py:64
↓ 7 callersFunctionmanaged_connect_connector
Store a profile produced by managed OAuth (cloud.managed_profile_from_callback). Field-compatible with a manual connect for the same connector, s
coworker/connectors/setup.py:388
↓ 7 callersMethodmirror_inbox_item
Mirror an Inbox item to its bound channel. Discrete choices (approve/deny, ask_user options) render as BUTTONS — the item id rides in each, so
coworker/server/manager.py:6156
↓ 7 callersMethodmodel_selectable
Can this machine run `model` right now? Its provider has a key — or, for the keyless Ollama, a local Ollama answers (cached liveness probe).
coworker/server/manager.py:4410
↓ 7 callersMethodmove
( self, name: str, *, to_scope: str, workspace: Optional[str | Path] =
coworker/skills/store.py:237
↓ 7 callersMethodopen
(self)
tests/test_slack_status.py:161
↓ 7 callersMethodpersona_models
The coworker's ordered `models:` list; [] = any model.
coworker/server/manager.py:4418
↓ 7 callersMethodpolicy
(self, space: str)
coworker/teams/store.py:1033
↓ 7 callersMethodreap
Remove sandboxes whose server process is gone, and OpenShell sandboxes made from THIS registry that no living server owns. A sandbox another r
coworker/sandbox/registry.py:158
↓ 7 callersMethodrebuild
Drop the space's projections and replay its log through `_apply`. The recovery path (projection bug fix, cache corruption) — never the hot
coworker/teams/store.py:495
↓ 7 callersMethodrecent
(self, channel: str, n: int = 10)
coworker/subscriptions.py:190
↓ 7 callersMethodrecv
(self, _size: int = _BUFSIZE)
coworker/sandbox/runner/winpipe.py:42
↓ 7 callersMethodrelease
(self)
coworker/secrets.py:169
↓ 7 callersMethodrequest_frame
Send any id-carrying frame and await its rpc_result (allocates the id).
coworker/remote/channel.py:98
↓ 7 callersMethodresolve
(self, tool_name: str)
coworker/overrides.py:125
↓ 7 callersMethodroute_for
Per-session override > persona default > the global default inbox.
coworker/inbox_routing.py:93
↓ 7 callersFunctionsampleTeam
( size = 5, waiting = true, idle = false, )
surfaces/gui/src/gallery/states/team-view.ts:10
↓ 7 callersFunctionsave_skill_tool
Build the `save_skill` tool (SKILLS-SPEC §5.2). `requires_approval=True` routes every call through the standard approval card — the tool's ARGUMEN
coworker/skills/store.py:524
↓ 7 callersMethodset_rule
Add/replace a user override (the everyday path writes this from the approval UI). Refuses what `_load` refuses (OPE-136): an explicitly MCP-t
coworker/overrides.py:109
↓ 7 callersMethodslack_approval_owner_ids
Stable Slack user ids allowed to resolve consequential Inbox prompts. Managed relay installs are installer-owned. Manual Socket Mode has no
coworker/server/manager.py:4995
↓ 7 callersMethodstart
Connect every enabled+registered adapter. Returns the platforms that came up.
coworker/connectors/gateway.py:169
↓ 7 callersMethodstream
( self, *, model: str, messages: list[dict[str, Any]], tools: Optional
coworker/providers/openai_responses.py:403
↓ 7 callersMethodswitch_model
Rebind the session's model mid-conversation (roadmap item 3). History is canonical OpenAI shape and every provider converts per call, so the s
coworker/engine.py:451
↓ 7 callersFunctionteam_proposal
(members=None)
tests/proposal_fixtures.py:17
↓ 7 callersMethodtitle_state
The auto-title guard inputs: whether the user renamed and whether a generated title already exists. None when the session has no row yet.
coworker/conversations.py:598
↓ 7 callersFunctionvalidate_work_proposal
(args)
coworker/teams/proposals.py:93
↓ 7 callersMethodverify_chain
Recompute the chain; return the number of verified events. Raises ChainError at the first record whose hash or linkage does not match —
coworker/teams/store.py:471
↓ 7 callersMethodwait_socket
Block until at least one Socket Mode client has connected (and been sent hello).
coworker/testing/fake_slack/server.py:166
↓ 7 callersMethodwrite
(self, s)
tests/test_conversation_atomicity.py:60
↓ 6 callersMethod_actionable_team_events
Wake policy, not storage/visibility policy. No prose classification. Publications/notes are evidence, review is the handoff. Explicit questio
coworker/server/manager.py:3401
↓ 6 callersFunction_adapter
(**kw)
tests/test_slack_status.py:110
↓ 6 callersFunction_anthropic_response
()
tests/test_reasoning_effort.py:271
↓ 6 callersFunction_assistant_message
( turn: AssistantTurn, model: Optional[str] = None, effort_setting: Optional[str] = None )
coworker/engine.py:2862
↓ 6 callersFunction_assistant_with_calls
(call_id: str = "c1")
tests/test_conversations_repair.py:23
↓ 6 callersFunction_atlassian_base
(profile: dict[str, Any])
coworker/connectors/integration_tools.py:510
↓ 6 callersFunction_clone_tools
(secrets, tmp_path)
tests/test_github_installs.py:568
↓ 6 callersFunction_close_auth
(profile: dict[str, Any])
coworker/connectors/integration_tools.py:4262
← previousnext →401–500 of 8,537, ranked by callers