MCPcopy Create free account

hub / github.com/Osmantic/ODS / functions

Functions5,548 in github.com/Osmantic/ODS

↓ 12 callersFunctionscan_user_extension_services
Scan user extensions directory for enabled services with health endpoints. Returns a dict keyed by service_id in the same format as ``SERVICES``
ods/extensions/services/dashboard-api/user_extensions.py:19
↓ 11 callersFunctionField
({ label, value, tone = 'text-theme-text' })
ods/extensions/services/dashboard/src/pages/RemoteProvider.jsx:235
↓ 11 callersFunction_host_part_is_loopback
(host: str)
ods/extensions/services/dashboard-api/routers/extensions.py:474
↓ 11 callersFunction_is_stale
Check if an ISO timestamp is older than max_age_seconds.
ods/extensions/services/dashboard-api/routers/extensions.py:188
↓ 11 callersFunction_resolve_lemonade_model_id
Resolve the exact request ID Lemonade assigned to a local GGUF. Prefer the live model catalog, whose checkpoint metadata survives naming chan
ods/bin/ods-host-agent.py:8623
↓ 11 callersFunction_runtime_model_identity_matches
Match a runtime identity to exact supported aliases, never substrings.
ods/bin/ods-host-agent.py:8537
↓ 11 callersFunction_safe_text
(value: Any, *, max_length: int)
ods/extensions/services/dashboard-api/routers/remote_provider_status.py:101
↓ 11 callersFunction_set_stream_upstream
(mod, chunks, *, model_error=None, started=None, release=None)
ods/extensions/services/model-router/tests/test_router.py:145
↓ 11 callersFunction_split_port_host
Split a list-form port string into (host_part, rest). Naive ``str.split(":")`` is wrong for the sanctioned ``${VAR:-127.0.0.1}`` pattern beca
ods/extensions/services/dashboard-api/routers/extensions.py:483
↓ 11 callersFunction_validate_env_values
( values: dict[str, str], fields: dict[str, dict[str, Any]], parse_issues: Optional[list[dict[str,
ods/extensions/services/dashboard-api/settings.py:250
↓ 11 callersMethodclear
Remove all cache entries.
ods/extensions/services/dashboard-api/main.py:115
↓ 11 callersFunctionget_cached_services
Read cached health check results. Returns None if no poll has completed yet.
ods/extensions/services/dashboard-api/helpers.py:616
↓ 11 callersFunctionget_gpu_info_amd_detailed
Return one IndividualGPU per AMD GPU by iterating all amdgpu sysfs cards. Uses topology JSON (if available) for stable UUIDs and assignment mappi
ods/extensions/services/dashboard-api/gpu.py:718
↓ 11 callersMethodis_set
(self)
ods/extensions/services/dashboard-api/tests/test_host_agent.py:5248
↓ 11 callersFunctionread_env_value
(key: str, install_dir: str | Path)
ods/extensions/services/dashboard-api/performance_oracle.py:133
↓ 11 callersFunctionroute_from_state
Validate generated routing-state metadata and return a public route.
ods/bin/remote_provider/egress.py:139
↓ 10 callersFunction_build_api_status
Build the full status payload. Runs ALL sync helpers (GPU, disk, CPU, RAM, model, bootstrap) concurrently in the thread pool while async heal
ods/extensions/services/dashboard-api/main.py:1388
↓ 10 callersFunction_compute_extension_status
Compute the runtime status of an extension.
ods/extensions/services/dashboard-api/routers/extensions.py:328
↓ 10 callersFunction_extensions_lock
Acquire the global lock for short extension filesystem mutations.
ods/extensions/services/dashboard-api/routers/extensions.py:1025
↓ 10 callersMethod_handle_env_update
Write a validated .env file. Dashboard-api delegates here because the container mount is :ro — only the host agent may write secrets to disk.
ods/bin/ods-host-agent.py:5475
↓ 10 callersMethod_handle_extension
(self, action: str)
ods/bin/ods-host-agent.py:5636
↓ 10 callersFunction_require_type
(v: Validator, value: Any, path: str, expected: str)
ods/scripts/validate-sim-summary.py:97
↓ 10 callersFunction_resolve_hook
Resolve a lifecycle hook script from an extension manifest. Checks ``hooks`` map first, falls back to ``setup_hook`` for ``post_install`` onl
ods/bin/ods-host-agent.py:4223
↓ 10 callersFunction_write
(path: Path, doc: dict)
ods/extensions/services/dashboard-api/tests/test_install_from_library_build_context.py:14
↓ 10 callersMethodadd
(self, path: str, message: str)
ods/scripts/validate-sim-summary.py:59
↓ 10 callersMethodcommit
Switch egress service traffic to the candidate provider.
ods/bin/remote_provider/reconciler.py:34
↓ 10 callersFunctionget_gpu_info_nvidia
Get GPU metrics from nvidia-smi. Handles multi-GPU systems by summing VRAM across all GPUs and reporting aggregate utilization and peak tempe
ods/extensions/services/dashboard-api/gpu.py:147
↓ 10 callersFunctionload_sqlite_db
(tmp_path, monkeypatch)
ods/extensions/services/token-spy/tests/test_usage_report.py:21
↓ 10 callersFunctionnormalize_key
(value: Any)
ods/scripts/select-model.py:34
↓ 10 callersFunctionroute_state
(**provider_overrides: str)
ods/tests/contracts/test-remote-provider-egress-service.py:67
↓ 9 callersFunction_atomic_write_text
Atomically replace a UTF-8 text file.
ods/bin/ods-host-agent.py:2113
↓ 9 callersFunction_call_agent_invalidate_compose_cache
Ask host agent to drop the .compose-flags cache after a compose mutation.
ods/extensions/services/dashboard-api/routers/extensions.py:842
↓ 9 callersMethod_handle_model_activate
Swap active model: update .env + models.ini + restart llama-server.
ods/bin/ods-host-agent.py:7007
↓ 9 callersMethod_handle_remote_provider_apply
Apply a remote-provider lifecycle request through host-owned state.
ods/bin/ods-host-agent.py:4908
↓ 9 callersMethod_handle_service_restart
Restart one known ODS service container.
ods/bin/ods-host-agent.py:6030
↓ 9 callersFunction_make_manifest
Build a minimal manifest dict.
ods/extensions/services/dashboard-api/tests/test_user_extensions.py:20
↓ 9 callersFunction_make_service_status
(sid, status="healthy")
ods/extensions/services/dashboard-api/tests/test_extensions.py:38
↓ 9 callersFunction_parse_sse_frames
Split an SSE response body into one dict per frame.
ods/extensions/services/dashboard-api/tests/test_talk.py:271
↓ 9 callersFunction_read
(path: Path)
ods/extensions/services/dashboard-api/tests/test_install_from_library_build_context.py:19
↓ 9 callersFunction_resolve_agent_bind_addr
Resolve the host-agent bind address without exposing LAN by default.
ods/bin/ods-host-agent.py:2819
↓ 9 callersFunction_split_nmcli_terse
Split a `nmcli -t` (terse) line on UNESCAPED colons, then unescape. nmcli's terse mode escapes literal colons in values as ``\\:`` (and backs
ods/bin/ods-host-agent.py:4031
↓ 9 callersFunction_write_lemonade_config
Regenerate lemonade.yaml with the correct model ID for LiteLLM. Lemonade exposes models as ``extra.<GGUF_FILE>`` — the LiteLLM config must re
ods/bin/ods-host-agent.py:10096
↓ 9 callersFunction_write_manifest
Write a manifest.yaml into the given extension directory.
ods/extensions/services/dashboard-api/tests/test_user_extensions.py:14
↓ 9 callersFunctioncloud_direct_env
(**overrides: str)
ods/tests/contracts/test-remote-provider-egress-policy.py:105
↓ 9 callersFunctioncloud_ssh_env
(**overrides: str)
ods/tests/contracts/test-remote-provider-egress-policy.py:117
↓ 9 callersMethodget
(self, url: str, headers: dict[str, str])
ods/extensions/services/dashboard-api/tests/test_model_routes.py:29
↓ 9 callersFunctionget_gpu_info_nvidia_detailed
Return one IndividualGPU per NVIDIA GPU, with assigned_services populated. Returns None if nvidia-smi is unavailable or returns no data.
ods/extensions/services/dashboard-api/gpu.py:619
↓ 9 callersFunctionget_llama_metrics
Get inference metrics from llama-server Prometheus /metrics endpoint. Accepts an optional *model_hint* so callers that already resolved the l
ods/extensions/services/dashboard-api/helpers.py:387
↓ 9 callersMethodkill
(self)
ods/tests/contracts/test-remote-provider-ssh-tunnel-service.py:72
↓ 9 callersMethodraise_for_status
(self)
ods/extensions/services/dashboard-api/tests/test_models.py:801
↓ 9 callersMethodshutdown
(self)
ods/bin/ods-mdns.py:333
↓ 8 callersFunction_assert_not_core
Raise 403 if the service_id is an always-on base-compose service. Only blocks the 4 services from docker-compose.base.yml (llama-server, open
ods/extensions/services/dashboard-api/routers/extensions.py:432
↓ 8 callersMethod_body
(self, service_id: str, **extra)
ods/extensions/services/dashboard-api/tests/test_host_agent.py:2679
↓ 8 callersFunction_build_env_fields
( schema_properties: dict[str, Any], required_keys: set[str], values: dict[str, str], )
ods/extensions/services/dashboard-api/settings.py:200
↓ 8 callersFunction_clean_env
(name: str)
ods/extensions/services/dashboard-api/routers/gpu.py:167
↓ 8 callersMethod_configure
(self, tmp_path, monkeypatch)
ods/extensions/services/dashboard-api/tests/test_host_agent.py:2668
↓ 8 callersFunction_end_model_lifecycle
Release lifecycle ownership held by ``operation``.
ods/bin/ods-host-agent.py:409
↓ 8 callersFunction_get_conn
Get a connection from the pool.
ods/extensions/services/token-spy/db_postgres.py:57
↓ 8 callersFunction_is_windows_host_lemonade
(env: dict)
ods/bin/ods-host-agent.py:9544
↓ 8 callersFunction_is_windows_host_llama_server
(env: dict)
ods/bin/ods-host-agent.py:9563
↓ 8 callersFunction_make_body
(raw_text: str, backup: bool = True)
ods/extensions/services/dashboard-api/tests/test_host_agent.py:2851
↓ 8 callersFunction_patch_probe
(monkeypatch, health="reachable", version="unknown", warning=None)
ods/extensions/services/dashboard-api/tests/test_amd_runtime.py:6
↓ 8 callersMethod_post
Direct HTTP POST to /v1/extension/sync_config so callers can assert on the raw status code (the dashboard-api helper masks 4xx as a ge
ods/extensions/services/dashboard-api/tests/test_host_agent.py:1394
↓ 8 callersFunction_proof_result
(identity="M.gguf", **overrides)
ods/extensions/services/dashboard-api/tests/test_switchboard_reconciler.py:19
↓ 8 callersFunction_public_base
Override base for the magic-link URL (operator escape hatch). Set ODS_PUBLIC_URL to an absolute URL (e.g., a Tailscale tunnel or custom domai
ods/extensions/services/dashboard-api/routers/magic_link.py:415
↓ 8 callersFunction_put_conn
Return a connection to the pool.
ods/extensions/services/token-spy/db_postgres.py:62
↓ 8 callersFunction_read_progress
Read progress file for a service. Returns None if no active progress.
ods/extensions/services/dashboard-api/routers/extensions.py:218
↓ 8 callersMethod_request_json
( self, method: str, path: str, *, json: Optional[dict[str, Any]] = No
ods/extensions/services/dashboard-api/lemonade_client.py:139
↓ 8 callersFunction_signed_marker
(probe_id: str, key: str = "probe-secret")
ods/extensions/services/model-router/tests/test_router.py:108
↓ 8 callersFunction_update_lifetime_tokens
Accumulate tokens across server restarts using a persistent file.
ods/extensions/services/dashboard-api/helpers.py:194
↓ 8 callersFunction_validate_service_id
Validate service_id format, raising 404 if invalid.
ods/extensions/services/dashboard-api/routers/extensions.py:426
↓ 8 callersFunction_write_model_status
Write model download status JSON atomically.
ods/bin/ods-host-agent.py:12321
↓ 8 callersFunctiondecode_gpu_assignment
Decode GPU_ASSIGNMENT_JSON_B64, preferring the live .env file over the container startup environment so reassignments are reflected without restar
ods/extensions/services/dashboard-api/gpu.py:529
↓ 8 callersFunctionget_gpu_info_amd
Get GPU metrics from amdgpu sysfs.
ods/extensions/services/dashboard-api/gpu.py:80
↓ 8 callersFunctionget_gpu_info_apple
Get GPU metrics for Apple Silicon via system_profiler (native) or env vars (container).
ods/extensions/services/dashboard-api/gpu.py:267
↓ 8 callersFunctionget_llama_context_size
Query llama-server /props for the actual n_ctx. Accepts an optional *model_hint* to skip the redundant ``get_loaded_model()`` call when the c
ods/extensions/services/dashboard-api/helpers.py:559
↓ 8 callersMethodread
(self, _limit: int)
ods/tests/contracts/test-remote-provider-egress-policy.py:144
↓ 8 callersFunctionread_env_file_value
(key: str, install_dir: str | Path)
ods/extensions/services/dashboard-api/performance_oracle.py:140
↓ 8 callersFunctionresolve_compose_flags
()
ods/bin/ods-host-agent.py:2905
↓ 7 callersFunction_disable_conflicting_macos_bridge
Best-effort bootout of a bridge that would collide with a direct bind.
ods/bin/ods-host-agent.py:2861
↓ 7 callersFunction_find_ext_dir
Find extension directory for a service_id (user-installed or built-in).
ods/bin/ods-host-agent.py:4273
↓ 7 callersFunction_find_hwmon_temp
Find GPU temperature via hwmon label-based discovery (junction > edge > temp1).
ods/extensions/services/dashboard-api/gpu.py:685
↓ 7 callersFunction_find_usable_bash
Return a Bash executable that can run shell scripts on this host.
ods/bin/ods-host-agent.py:314
↓ 7 callersFunction_get_conn
()
ods/extensions/services/token-spy/db.py:24
↓ 7 callersMethod_handle_model_status
Return current model download progress.
ods/bin/ods-host-agent.py:6493
↓ 7 callersFunction_is_one_shot_extension
Return whether the catalog entry represents a one-shot CLI/setup tool. Prefer the explicit catalog copy of ``service.startup_check: false``. Fall
ods/extensions/services/dashboard-api/routers/extensions.py:317
↓ 7 callersMethod_next
(self, op: str)
ods/bin/model_switchboard/adapters.py:346
↓ 7 callersFunction_patch_router_client
(monkeypatch, response: httpx.Response | None = None, error: Exception | None = None,
ods/extensions/services/dashboard-api/tests/test_model_routes.py:11
↓ 7 callersFunction_read_manifest
Read and return the parsed manifest from an extension directory.
ods/bin/ods-host-agent.py:4191
↓ 7 callersFunction_require_session
(request: Request)
ods/extensions/services/dashboard-api/routers/talk.py:253
↓ 7 callersFunction_restart_windows_lemonade
Restart managed Windows Lemonade from the host-agent process. Dashboard model activation runs through the persistent host-agent. Launching Le
ods/bin/ods-host-agent.py:9669
↓ 7 callersFunction_run_with_one_loop
Tests that exercise the bridge run several coroutines on the SAME event loop so the background sweeper task doesn't get orphaned across loop s
ods/extensions/services/dashboard-api/tests/test_talk.py:466
↓ 7 callersFunction_serialize_services
(service_statuses: list[ServiceStatus], uptime: int)
ods/extensions/services/dashboard-api/main.py:639
↓ 7 callersMethod_snapshot
()
ods/extensions/services/dashboard-api/tests/test_model_activate.py:1064
↓ 7 callersFunction_string
(value: object)
ods/bin/remote_provider/policy.py:66
↓ 7 callersFunction_use_public_url
(url_mode: str = "auto")
ods/extensions/services/dashboard-api/routers/magic_link.py:444
↓ 7 callersMethodadd
(self, path: str, message: str)
ods/scripts/validate-generated-configs.py:22
↓ 7 callersMethodadd_sample
Add a new throughput sample
ods/extensions/services/dashboard-api/agent_monitor.py:96
↓ 7 callersFunctionclear_dir_size_cache
Clear the entire dir_size_gb cache (e.g. after bulk operations).
ods/extensions/services/dashboard-api/helpers.py:802
↓ 7 callersFunctionformatCompact
(value)
ods/extensions/services/dashboard/src/pages/Usage.jsx:156
← previousnext →101–200 of 5,548, ranked by callers