mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-23 05:59:44 +08:00
* chore(sdk): import langbot-plugin-sdk v0.7.24 snapshot into sdk/ (LANG-420) Snapshot of langbot-app/langbot-plugin-sdk at 76443bb8 (tag v0.7.24), without history. The repository's .github/ workflows are not imported; they are replaced by sdk-*.yml workflows in the next commit. The root .gitignore keeps the template .vscode/launch.json.example tracked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai> * feat(sdk): move the plugin SDK into the monorepo with independent releases (LANG-420) - CI: sdk-tests.yml / sdk-box-docker.yml run the SDK suite from sdk/ in its own environment (Python 3.10-3.12); run-tests.yml gains a "Core with in-tree SDK" job that overlays sdk/ on Core's venv. - Releases: sdk-publish.yml publishes langbot-plugin from sdk/vX.Y.Z tag pushes and never creates a GitHub Release. Core release workflows now only accept v* tags, and scripts/check_sdk_release_pin.py blocks a Core PyPI/Docker release whose langbot-plugin pin differs from the released, unchanged sdk/. - Packaging: Core still installs the PyPI pin. Core wheel/sdist, git export, Docker context, release ZIP and fnOS package exclude sdk/. - Generator/tests: generate_plugin_workspace_api.py writes sdk/ directly; the SDK's generator drift tests now run instead of skipping. - Docs: AGENTS/ARCHITECTURE, sdk/ guides (+ RELEASING.md, SOURCE.json), agent skills and lbs probes, public docs (zh/en/ja) and dev-docs point at sdk/ instead of the sibling langbot-plugin-sdk checkout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
Runner SDK 文档入口
本目录只保留 SDK / Runtime 实现 Runner Protocol v1 所需的说明。
更新:2026-09-05。LangBot dev/4.11.x 已集成 EBA、独立 Agent、Bot 路由与处理器 UI;SDK 负责合同和 Runtime,不另建 Agent 产品模型。当前版本配套、平台工具工作区改动和定向测试见 SDK_RUNTIME_PLAN.md。Core 的完整状态在其 docs/agent-runner-pluginization/STATUS.md,不要从早期设计稿推断当前完成度。
协议 schema 的唯一事实源在 LangBot 仓库:
docs/agent-runner-pluginization/PROTOCOL_V1.md
不要在 SDK 仓库重抄 RunnerManifest、RunnerContext、RunnerResult、
RunnerAPIProxy 等协议数据结构。SDK 文档只能说明 SDK 如何承载这些结构、
哪些源码入口需要同步,以及历史方案为什么不再使用。
当前文件
| 文件 | 用途 |
|---|---|
| PROTOCOL_V1.md | 协议规范跳转页,指向 LangBot canonical spec 路径和 SDK 源码入口。 |
| SDK_RUNTIME_PLAN.md | SDK / Runtime 实现维护说明,不定义协议 schema。 |
SDK 源码入口
src/langbot_plugin/api/definition/components/runner/src/langbot_plugin/api/entities/builtin/runner/src/langbot_plugin/api/proxies/agent_run/src/langbot_plugin/runtime/plugin/mgr.pysrc/langbot_plugin/runtime/plugin/runner_service.pysrc/langbot_plugin/api/agent_tools/src/langbot_plugin/runtime/io/handlers/control.pysrc/langbot_plugin/assets/templates/components/runner/
维护规则:
- 协议合同变化先改 LangBot canonical spec,再同步 SDK 实体、Runtime、模板和测试。
- SDK 文档发现与 LangBot spec 冲突时,以 LangBot spec 为准,并修正 SDK 文档或源码。
- SDK 文档只保留当前实现需要的内容,不保留历史协议草案或历史 smoke 记录。