mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-25 01:52:07 +08:00
- AGENTS.md: add a repository layout section (docs/ vs dev-docs/, plugins/, skills/, tools/), Unified API rules for Workspace/Execution operations and consumer support, standard event/API alignment for adapters, and plugin development entry points; condense the backend language section. - Add plugins/AGENTS.md, which AGENTS.md already referenced. - Slim langbot-plugin-dev to a routing skill covering all component types, the Workspace/platform API catalogs and permissions; move pitfalls and testing notes to references and drop the host-specific deployment guide. - Fix misplaced plugin-permission text in langbot-mcp-ops, add standard alignment rules to langbot-eba-adapter-dev, and update langbot-dev for the Application API and monorepo layout. - Refresh skills/AGENTS.md and README for the monorepo; remove the unused vendored writing-skills copy from docs/. Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: multica-agent <[email protected]>
2.2 KiB
2.2 KiB
AGENTS.md (plugins/)
Official LangBot plugins, migrated from the archived langbot-app/langbot-plugins repository (see MIGRATION.md). Repository-wide rules are in ../AGENTS.md; plugin authoring workflow is the langbot-plugin-dev skill; author docs are ../docs/en/plugin/dev/.
Layout
Runner/,KnowledgeEngine/,misc/<plugin>/: one independent package per directory with its ownmanifest.yaml, dependencies, tests and README.catalog.json: generated machine index (python plugins/scripts/check_catalog.py --writefrom the repository root).README.mdis the human index.RELEASING.md: testing, packaging and Marketplace publication rules.MIGRATION.md,SHARED_SOURCE_LEDGER.md,SOURCE.json: historical migration evidence; do not edit them for ordinary changes.
Rules
- Core and plugins share a checkout, not a release. Never add plugin dependencies to Core's
pyproject.toml, import plugin code from Core, or bundle this tree in Core artifacts. - Never run
lbp build/lbp publishfrom the repository root orplugins/; run them inside one plugin directory. - Keep
metadata.author,metadata.nameand component IDs stable. Bump the plugin's manifest (and project) version for a release; never bump Core's version for a plugin change. - Each plugin keeps its own environment and lockfile; run its tests in isolation following its README. CI:
.github/workflows/plugins-*.yml. - Declare the minimal
spec.permissions(workspace_operations,capabilities) the plugin needs; Runners must expose onlyctx.resources.workspace_operationsto models. See../docs/en/plugin/dev/permissions.mdx. - Use the Workspace API (
self.plugin.workspace), the standard platform APIs andcall_platform_apidocumented in../docs/en/plugin/dev/apis/; plugin runtime code must not import Core (langbot.*) or call LangBot's own HTTP routes to bypass installation grants (test scripts may drive a test instance). - Marketplace README convention: English root
README.md, translations inreadme/README_{lang}.md, eight-localemetadata.label/description, liverepositoryURL.
Checks
python plugins/scripts/check_catalog.py
python plugins/scripts/test_repository.py