Files
DeepTutor/deeptutor/services/cli_apps/__init__.py
Bingxi Zhao (Frank) 740ec413a0 release: v1.5.7
Per-account MCP Services and CLI Apps — the two ways a deployment plugs in
tools DeepTutor never shipped — plus the isolation that makes them safe on a
shared install.

- MCP Services: a 45-entry curated store of hosted servers each account
  installs for itself, OAuth 2.1 (PKCE + dynamic client registration) for the
  servers that require it, static keys held by reference and resolved in memory
  at connect time, stdio refused for self-service. Settings no longer
  configures MCP; /settings/mcp redirects to the store.
- CLI Apps: 101 tools snapshotted from the two CLI-Anything registries.
  Installs are admin-only, the registry's install_cmd is parsed into an argv we
  build rather than executed, npm install scripts are forced off, and 66
  first-party entries are pinned to one reviewed commit. Apps land in
  data/cli-apps, one environment each, mounted read-only into the runner.
- Credentials that authorise a person move to data/system, the one branch the
  exec sandbox never mounts: Codex tokens relocate themselves on first use
  (refusing to follow a symlink), per-user MCP configs and keys land beside
  them.
- Grants gain a cli_apps whitelist with the same deny-by-default posture as
  MCP tools; a per-turn registry view keeps one owner's provider tools out of
  the process-global registry and refuses an unauthorised tool at execute, not
  just in the manifest.
- The composer reports what filled this turn's context window, a gutter rail
  jumps back through long conversations, and the workspace collapses to a
  drawer on small screens.
- The composer keeps focus after sending and across tab switches (#720);
  released images carry provenance and SBOM attestations (#722).

README prose, all ten translated READMEs, and the docs-site pages that named
Settings → MCP are updated to match. Release notes:
assets/releases/ver1-5-7.md
2026-07-31 00:25:48 +08:00

53 lines
1.6 KiB
Python

"""CLI apps: command-line tools an administrator installs and the chat agent calls.
Layering, innermost first — each layer imports only from the ones above it:
``models`` the shape of a catalog entry, and the install-command parser
``catalog`` the vendored snapshot, searchable
``paths`` where installs live on disk, and what the sandbox may see
``state`` which apps are installed (deployment) and enabled (per account)
``installer`` performing and removing an install — administrator only
``runner`` executing one installed app through the sandbox
``provider`` presenting installed apps as deferred tools to a chat turn
Only the four leaves are re-exported here. ``installer``, ``runner`` and
``provider`` are imported directly by their (few) callers: they pull in the
sandbox service and the tool registry, and re-exporting them would make
``import deeptutor.services.cli_apps`` drag both into every consumer — including
the API layer that only wants to list a catalog.
"""
from __future__ import annotations
from deeptutor.services.cli_apps.catalog import (
CatalogPage,
catalog_pin,
categories,
category_counts,
get_entry,
load_catalog,
search_catalog,
)
from deeptutor.services.cli_apps.models import (
AppRuntime,
AppTrust,
CliAppEntry,
InstallKind,
InstallPlan,
)
__all__ = [
"AppRuntime",
"AppTrust",
"CatalogPage",
"CliAppEntry",
"InstallKind",
"InstallPlan",
"catalog_pin",
"categories",
"category_counts",
"get_entry",
"load_catalog",
"search_catalog",
]