Skip to main content

debug-control-plane (Python)

Multi-product reusable debug control plane — Python slice. 多产品复用的调试控制平面——Python 切片。

Provides / 提供:

  • device_discovery: USB/WiFi device discovery + cross-identity pairing (USB identity source / LAN scan / VPN-immune subnet / device pool with TTL). USB/WiFi 设备发现 + 跨身份配对(USB 身份源 / LAN 扫描 / VPN 免疫网段 / 带 TTL 的设备池)。
  • mcp_plane: MCP adapter over the R019 8-endpoint debug HTTP protocol — capability mirror (dynamic tools), bridge client, bare server, and a SemanticProvider protocol hook for product semantic sugar. 建立在 R019 8 端点调试 HTTP 协议之上的 MCP 适配器——能力镜像(动态 tools)、桥客户端、裸服务端,以及供产品语义糖接入的 SemanticProvider 协议钩子。

Dependency direction / 依赖方向

business app (pantas_launcher / future products)   业务应用(pantas_launcher / 未来产品)
        │  depends on (downward)                     依赖(向下)
        ▼
debug_control_plane (this package)                        本包
        │  depends on (downward)                     依赖(向下)
        ▼
  mcp (SDK) · httpx (HTTP client)

This package is pure infrastructure: it MUST NOT import any business package (pantas_launcher, host4_flutter_gmacro, gamepad/feature code). Business apps depend on this package; never the reverse. 本包是纯基础设施:绝不 import 任何业务包(pantas_launcherhost4_flutter_gmacro、手柄/特性代码)。业务应用依赖本包,反之禁止。

Install / 安装

# editable install — picks up source changes without reinstall
# 可编辑安装——源码改动即时生效,无需重装
python -m pip install -e .

# import sanity check / 导入自检
python -c "import debug_control_plane; print(debug_control_plane.__version__)"

Layout / 结构

python/
├── pyproject.toml                  # single-package, two sub-packages / 单包双子包
├── README.md                       # this file
├── LICENSE                         # MIT
└── debug_control_plane/
    ├── __init__.py                 # __version__ = "0.1.0"
    ├── device_discovery/           # USB/LAN device discovery + device pool
    │   ├── device_candidates.py
    │   ├── device_pool.py          # identity-keyed pool, TTL expiry / 身份键池,TTL 过期
    │   ├── endpoint.py
    │   ├── protocol.py
    │   └── discovery/
    │       ├── usb_identity.py     # USB identity source (adb / flutter devices) / USB 身份源
    │       ├── lan_scan.py         # LAN /hello probe / LAN /hello 探测
    │       ├── vpn_immune.py       # VPN-immune subnet calc / VPN 免疫网段计算
    │       ├── cross_identify.py   # USB ⊕ LAN cross pairing / USB ⊕ LAN 交叉配对
    │       └── manual_registry.py  # manually-told devices / 人工告知设备
    └── mcp_plane/                  # MCP adapter
        ├── capability_mirror.py    # dynamic tools from /hello / 由 /hello 动态镜像 tools
        ├── bridge_client.py        # HTTP bridge client / HTTP 桥客户端
        ├── server.py               # bare stdio MCP server / 裸 stdio MCP 服务端
        └── semantic_provider.py    # SemanticProvider Protocol (product hook) / 语义糖协议钩子

Console script / 控制台脚本

debug-control-plane-server

Points at debug_control_plane.mcp_plane.server:main — a bare server (no business capability assembly) for debugging / plane self-testing. 指向 debug_control_plane.mcp_plane.server:main——裸服务端(无业务能力装配),用于调试 / 平面自测。

Version / 版本

0.1.0 — initial release, API unstable. 首发,API 不稳定。

License / 许可证

Licensed under the MIT License — see LICENSE. 采用 MIT 许可证授权——见 LICENSE

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

debug_control_plane-0.1.0.tar.gz (129.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

debug_control_plane-0.1.0-py3-none-any.whl (72.7 kB view details)

Uploaded Python 3

File details

Details for the file debug_control_plane-0.1.0.tar.gz.

File metadata

  • Download URL: debug_control_plane-0.1.0.tar.gz
  • Upload date:
  • Size: 129.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.0

File hashes

Hashes for debug_control_plane-0.1.0.tar.gz
Algorithm Hash digest
SHA256 41c62067fe455cf6a897a16e94b594062363c4cace3e479789887aa62f244084
MD5 227499b82bb56613f95c56c3fa79d869
BLAKE2b-256 11b16b86a281a793630a15f09114f2b7be47920f1974ecf869a315bd8cc44a05

See more details on using hashes here.

File details

Details for the file debug_control_plane-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for debug_control_plane-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1eb7f69204cf27b87de59fd06fb47ffd86bcbd3471b7cec0af76da30b320606
MD5 a3446583866e69b6d9dcea7e9659c9ee
BLAKE2b-256 a4e2e240877fedba6bc28e5771501d77f55aeb250916d8a26e343bfad1ada9d5

See more details on using hashes here.

Release history Release notifications | RSS feed

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.1.1

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page