界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
部署与运维 · SKILL.md

core-runtime

core-runtime

【部署与运维】Start, configure, deploy, inspect, and troubleshoot LangBot core runtime boot, Application wiring, config.yaml, health checks, Docker or standalone Plugin Runtime and Box modes.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: core-runtime description: "Start, configure, deploy, inspect, and troubleshoot LangBot core runtime boot, Application wiring, config.yaml, health checks, Docker or standalone Plugin Runtime and Box modes." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

Core Runtime

Use this sub-skill when the task is about getting LangBot running, reasoning about the boot graph, changing runtime configuration, deployment topology, startup flags, health/resource reporting, or operational probes.

Read First

Core Facts

  • main.py delegates to langbot.__main__.main().
  • The langbot console script accepts --standalone-runtime, --standalone-box, --debug, and an operator migrate --cloud subcommand.
  • First startup generates missing data/config files and initializes the database before serving HTTP.
  • BuildAppStage wires the long-lived Application object: managers, services, runtime connectors, controllers, storage, telemetry, and task management.
  • The HTTP controller serves Quart/Hypercorn on api.port and mounts MCP at /mcp after route registration.
  • Default local data lives under the current working directory's data/ when running the package or source command.

Typical Workflows

Local source startup

uv sync --dev
uv run main.py

If you intentionally installed a local sibling SDK checkout, preserve it with:

uv run --no-sync main.py

Use --standalone-runtime when an external Plugin Runtime is already running, and --standalone-box when an external Box Runtime is already running.

Package startup

uvx langbot
# or
pip install langbot
langbot --help
langbot

Health check

curl http://127.0.0.1:5300/healthz

Expect code: 0 plus resource counters. If the route is unavailable, diagnose boot, port binding, config generation, and dependency installation before looking at higher-level pipeline behavior.

Boundaries

  • HTTP route auth and MCP tool design belong to api-mcp-web.
  • Platform message flow, adapters, pipelines, providers, and tools belong to platform-pipeline-provider.
  • Plugin Runtime and Box API details belong to plugin-box-skills.
  • Database migrations, RAG, vector backends, storage, and tenancy belong to persistence-rag-workspaces.
  • Verification selection belongs to testing-qa.

Validation

Use startup-focused checks before broad suites:

python scripts/langbot_repo_doctor.py --repo-root /path/to/LangBot
uv run --python 3.12 pytest tests/e2e -q --tb=short

Only run long resource probes or cloud soak gates when the task is specifically about runtime retention, capacity, or production stability.

我的收藏