MCPcopy Create free account

hub / github.com/TencentCloud/Octop / functions

Functions12,485 in github.com/TencentCloud/Octop

↓ 10 callersFunction_command
(**overrides: object)
tests/unit/cron/test_cron_delivery.py:22
↓ 10 callersFunction_committed_messages
Read through another connection; uncommitted writer state is not visible.
tests/unit/gateway/test_versioned_history.py:612
↓ 10 callersFunction_ensure_column
Add a missing column on databases created by older Octop builds.
src/octop/infra/db/migrate.py:112
↓ 10 callersFunction_ensure_user
(db: SqlitePool)
tests/unit/connectors/test_custom_mcp.py:45
↓ 10 callersFunction_make_episode
Create a mock Episode object.
tests/unit/proactive/test_picker.py:28
↓ 10 callersFunction_package_or_404
( store: SkillPackageStore, package_id: str, *, locale: str, )
src/octop/api/routers/skill_packages.py:140
↓ 10 callersFunction_patch_user
(monkeypatch, user_id: int = 1)
tests/unit/api/test_terminal_sessions.py:217
↓ 10 callersFunction_plugin_manager
(server: OctopServer)
src/octop/api/routers/plugins.py:90
↓ 10 callersFunction_strip_none
Remove ``None`` keys before forwarding so the bridge sees a clean dict. The bridge handlers treat ``None`` and "missing" identically; we drop
src/octop/api/routers/memory.py:229
↓ 10 callersMethodaccess
(self, _path: object, _mode: int)
tests/unit/infra/setup/test_service.py:860
↓ 10 callersMethodappend_if_ready
Append one completed turn. Pending legacy threads wait for backfill.
src/octop/infra/db/repos/thread_messages.py:231
↓ 10 callersFunctionassert_agent_owner
Raise if the user may not mutate this agent row (admin bypasses).
src/octop/api/common/agent.py:18
↓ 10 callersFunctionassert_catalog_model
Require *model_name* to be a known catalog entry.
src/octop/infra/agents/providers/onnx_service.py:136
↓ 10 callersMethodauthenticate
(self, username: str, password: str)
src/octop/infra/users/manager.py:438
↓ 10 callersFunctioncompute_context_breakdown
Return a non-blocking context snapshot or a token-ledger fallback. ``mcp_servers`` / ``skills`` are accepted for dashboard query compatibility
src/octop/infra/agents/context_breakdown.py:192
↓ 10 callersFunctiondecrypt_secret
Decrypt an SSO secret using the installation-specific Fernet key.
src/octop/infra/auth/sso/crypto.py:22
↓ 10 callersFunctiondefault_agent_backend_spec
Harness backend for agents with no explicit ``backend`` in config. On POSIX this matches harness ``DEFAULT_BACKEND_SPEC`` (host-rooted virtual
src/octop/infra/backend/resolver.py:12
↓ 10 callersFunctionembedding_models_dir
()
src/octop/infra/agents/providers/onnx_service.py:188
↓ 10 callersFunctionensure_captcha
( effective: EffectiveCaptcha, token: str | None, client_ip: str = "unknown" )
src/octop/infra/auth/captcha/verify.py:39
↓ 10 callersMethodget
(self, event_id: str)
src/octop/infra/history/trajectory.py:76
↓ 10 callersFunctionget_provider
(slug: str)
src/octop/infra/auth/captcha/providers.py:327
↓ 10 callersFunctiongeteuid
()
src/octop/infra/utils/posix_compat.py:18
↓ 10 callersFunctioniconForName
( name: string | null | undefined, size = 22, )
dashboard/src/pages/Experts/components/iconForName.tsx:91
↓ 10 callersFunctioninstall_service
Install or refresh service files. Return True if anything was written. The main unit is only created or rewritten when missing or ``force`` is
src/octop/infra/setup/service.py:681
↓ 10 callersMethodlist_before
( self, thread_id: str, *, before_seq: int | None, limit: int,
src/octop/infra/trajectory/store.py:25
↓ 10 callersMethodlist_by_user
(self, user_id: int, *, include_disabled: bool = True)
src/octop/infra/db/repos/agents.py:150
↓ 10 callersFunctionload_effective
( settings_repo: SettingsRepo, secret_repo: SecretRepo, env: CaptchaEnv, )
src/octop/infra/auth/captcha/store.py:130
↓ 10 callersMethodload_runners
Return merged runner dict (built-ins + saved overrides).
src/octop/infra/agents/acp_settings.py:52
↓ 10 callersFunctionmcp_server_name
(kind: str, instance_id: str)
src/octop/infra/connectors/builder.py:56
↓ 10 callersFunctionmessage_inputs
Serialize and de-duplicate replays within one stream/backfill batch.
src/octop/infra/gateway/process/history_projection.py:91
↓ 10 callersMethodobserve
(self, chunk: dict[str, Any])
src/octop/infra/gateway/process/usage_record.py:219
↓ 10 callersFunctionpathFromKey
(key: string)
dashboard/src/pages/Agent/Workspace/components/WorkspaceDrawer.tsx:85
↓ 10 callersMethodrebind
(self, *, session_key: str, thread_id: str, agent_id: str)
src/octop/infra/gateway/threads.py:204
↓ 10 callersFunctionrequestUpload
( path: string, body: FormData, options: RequestInit = {}, onProgress?: UploadProgressHandler, )
dashboard/src/api/request.ts:492
↓ 10 callersFunctionresetTest
()
dashboard/src/pages/Setup/steps/ModelStep.tsx:181
↓ 10 callersFunctionresolve_user_from_token
(server: OctopServer, token: str)
src/octop/api/deps.py:142
↓ 10 callersFunctionresolve_user_locale
Resolve locale from stored user preference, channel hints, and metadata.
src/octop/infra/utils/locale.py:53
↓ 10 callersFunctionrow_to_backend_spec
Convert a DB row into a harness ``resolve_backend`` spec.
src/octop/infra/backend/adapter.py:44
↓ 10 callersMethodsave
(self, policy: SecurityPolicy | dict[str, Any])
src/octop/infra/agents/security/policy_store.py:45
↓ 10 callersFunctionsave_attachment
( workspace: BackendWorkspace, *, owner_id: int, filename: str, media_type: str, data:
src/octop/api/common/attachments.py:52
↓ 10 callersMethodsend_json
(self, payload: Any)
tests/support/http.py:93
↓ 10 callersMethodset
(self, name: str, value: int)
src/octop/infra/metrics.py:22
↓ 10 callersFunctionsign_token
( secret: bytes, *, sub: int, uname: str, role: str, ttl_seconds: int = 86400, )
src/octop/api/deps.py:28
↓ 10 callersMethodunregister
(self, connection_id: str)
src/octop/infra/gateway/ws/ws_hub.py:57
↓ 10 callersFunctionuseSkillDisplayName
()
dashboard/src/pages/Agent/Skills/skillDisplayNames.ts:65
↓ 9 callersFunction_chat_ws
(c: httpx.AsyncClient, aid: str, auth: dict[str, str])
tests/integration/test_chat_ws.py:27
↓ 9 callersFunction_effective
( slug: str, *, site_key: str = "site", secret: str = "secret", v3_min_score: float = 0.5,
tests/unit/auth/test_captcha_verify.py:18
↓ 9 callersFunction_expert_manifest
( item: SkillHubSkillset, skill_slugs: list[str], *, skillset_prompt: str = "", )
src/octop/infra/agents/experts/skillhub_market.py:866
↓ 9 callersMethod_http_client
()
src/octop/infra/auth/sso/service.py:394
↓ 9 callersFunction_http_json_get
(url: str, params: dict[str, Any] | None = None)
src/octop/infra/skills/skills_hub.py:270
↓ 9 callersFunction_patch_home
Point PathLayout.from_env() at a fresh tmp directory.
tests/unit/cli/test_run_cmd.py:50
↓ 9 callersFunction_session
(*, channel_type: str, thread_id: str = "thr1")
tests/unit/cron/test_cron_delivery.py:43
↓ 9 callersMethod_use_xdotool
(self)
src/octop/infra/desktop/input.py:127
↓ 9 callersFunction_ws
(tmp_path: Path)
tests/unit/agents/test_thread_artifacts.py:26
↓ 9 callersMethodassert_can_mutate
(self, row: SkillPackageRow, user: User)
src/octop/infra/skills/skill_package_store.py:185
↓ 9 callersFunctionbuild_cronjob_tools
Return built-in cron management tools (not MCP — wired via HarnessAgentConfig.tools).
src/octop/infra/cron/tools.py:97
↓ 9 callersFunctionclearReconnectTimer
(session: TerminalSession)
dashboard/src/pages/Control/Terminal/useTerminal.ts:185
↓ 9 callersMethodcreate
( self, *, agent_id: str, user_id: int | None, name: str, desc
src/octop/infra/db/repos/agents.py:89
↓ 9 callersMethoddisconnect
()
dashboard/src/pages/Chat/components/TurnTimelineRail.test.tsx:97
↓ 9 callersFunctiondocument_path
(kb_id: str, doc_id: str, filename: str)
src/octop/infra/knowledge/files.py:21
↓ 9 callersFunctiondumps
(value: Any)
src/octop/infra/history/store.py:53
↓ 9 callersFunctionensurePortable
(locale Locale, status func(string))
desktop/src/download.go:37
↓ 9 callersFunctionensure_bubblewrap
Best-effort ensure ``bwrap`` is on PATH. Returns a status dict suitable for ``POST /api/filesystem/ensure-bwrap``. Never raises for missing p
src/octop/infra/utils/bwrap.py:159
↓ 9 callersFunctionensure_thread_id
(ctx: SlashCtx)
src/octop/infra/gateway/slash/ctx.py:74
↓ 9 callersFunctionerror_message
(code: str, locale: str | Locale = "en", **kwargs: object)
src/octop/i18n/domains/errors.py:11
↓ 9 callersFunctionexpand_workspace_image_ref
Turn a path-only vision ref into an inlined ``data:`` block for the model. Used by :class:`WorkspaceImageMaterializeMiddleware` on the ephemeral
src/octop/infra/gateway/media/attachment_hints.py:484
↓ 9 callersFunctionfetch_openai_compatible_models
List models via OpenAI-compatible ``GET {base}/models``.
src/octop/infra/agents/providers/probe.py:264
↓ 9 callersFunctionformat_stream_error
Classify an exception or raw message; fall back to a generic localized message.
src/octop/i18n/domains/stream.py:185
↓ 9 callersMethodgetToolContext
()
dashboard/src/plugins/toolRenderers/types.ts:66
↓ 9 callersFunctioninsert_returning_id
Run INSERT … RETURNING id (SQLite 3.35+ and PostgreSQL).
src/octop/infra/db/repos/_base.py:74
↓ 9 callersMethodinstall_path
(self, source: Path, *, force: bool = False)
src/octop/infra/agents/plugins/manager.py:419
↓ 9 callersFunctionisNotFoundApiError
(error: unknown)
dashboard/src/utils/apiError.ts:57
↓ 9 callersMethodis_model_ref_usable
Return True when *ref* points at a chat-eligible model on a usable provider.
src/octop/infra/agents/providers/store.py:237
↓ 9 callersFunctionlist_backup_files
(paths: PathLayout)
src/octop/infra/backup/store.py:84
↓ 9 callersMethodlist_instances_for_api
Built-in rows + expanded custom servers (hide parent custom-mcp row).
src/octop/infra/connectors/service.py:329
↓ 9 callersMethodlist_skill_summaries
Installed skills for *agent_id* (harness catalog + package ``kind`` labels). Harness lists builtin / workspace / ``skills_dir`` entries (all
src/octop/infra/agents/manager.py:1983
↓ 9 callersMethodlist_threads
(self, *, agent_id: str, user_id: int, limit: int = 50)
src/octop/infra/gateway/threads.py:355
↓ 9 callersFunctionload_env_file
(path: Path)
src/octop/infra/utils/env_file.py:60
↓ 9 callersFunctionlookup
(key: str, locale: str | Locale)
src/octop/i18n/loader.py:33
↓ 9 callersFunctionmemory_backend_from_agent_config
Return HarnessAgentConfig kwargs for memory storage (may be empty). Recognized ``config_json.memory.backend`` shapes: * omitted / null → emp
src/octop/infra/agents/memory_backend.py:13
↓ 9 callersMethodobserve
()
dashboard/src/pages/Chat/components/TurnTimelineRail.test.tsx:96
↓ 9 callersMethodpick
Pick the Top-K most care-worthy episodes from candidates. Args: episodes: Candidate episode list (typically all from the last N d
src/octop/infra/proactive/picker.py:108
↓ 9 callersFunctionprobe_storage_backend
Return ``{ok: bool, message?: str, message_key?: str}`` after a probe.
src/octop/infra/backend/probe.py:73
↓ 9 callersMethodquery
( self, *, since: int | None = None, actor: str | None = None, action:
src/octop/infra/db/repos/audit.py:81
↓ 9 callersMethodread
(self)
tests/unit/test_langfuse_settings.py:74
↓ 9 callersFunctionread_json_object
Return the JSON object at ``path``, or ``None`` when the file is absent. Raises :class:`JsonFileCorruptError` when the file exists but is not val
src/octop/infra/utils/json_file.py:57
↓ 9 callersFunctionresolve
(id: string)
dashboard/src/pages/Control/Terminal/useTerminal.ts:122
↓ 9 callersMethodresolve_ask_pending
Return the open ``ask_user_question`` pause this user may answer. Returns ``None`` for approval pauses (those keep using ``/approve``) and
src/octop/infra/gateway/hitl/coordinator.py:149
↓ 9 callersFunctionsplitMarkdownFrontmatter
(s: string)
dashboard/src/utils/markdown.ts:28
↓ 9 callersMethodto_envelope
(self, *, locale: str | Locale | None = None)
src/octop/infra/errors.py:255
↓ 9 callersFunctionuser_has_permission
Return True if ``user`` may access the module ``key``. Unknown keys are denied. ``admin`` bypasses everything.
src/octop/infra/users/permissions.py:225
↓ 9 callersFunctionwrite_json_atomic
Write ``data`` as pretty JSON via temp file + ``os.replace``. Readers never observe a partially written file, so an interrupted write cannot
src/octop/infra/utils/json_file.py:80
↓ 8 callersFunctionHeader
({ onToggle, isMobile }: HeaderProps)
dashboard/src/layouts/Header.tsx:22
↓ 8 callersMethod_backend_spec_for_row
( self, row: AgentRow, *, cfg: dict[str, Any] | None = None, workspace
src/octop/infra/agents/manager.py:2348
↓ 8 callersFunction_configurable
(**kwargs: object)
tests/unit/cron/test_cron_tools.py:26
↓ 8 callersFunction_emit
Write one structured JSON log line to stdout.
src/octop/infra/gateway/bot_creators/yuanbao_bot_creator.py:89
↓ 8 callersFunction_insert_sso_provider
(manager: UserManager, *, kind: str = "oidc")
tests/unit/test_user_manager.py:20
↓ 8 callersFunction_make_manager
(services)
tests/unit/cron/test_cron_tools.py:40
↓ 8 callersFunction_make_services
(tmp_path: Path)
tests/unit/cron/test_cron_tools.py:34
↓ 8 callersFunction_run_xdotool
(display: str | None, args: list[str])
src/octop/infra/desktop/input.py:89
← previousnext →301–400 of 12,485, ranked by callers