Repository navigation
feat(plugins): add manifest activation and setup descriptors - #64780
Conversation
Greptile SummaryThis PR adds optional Confidence Score: 5/5Safe to merge — purely additive metadata fields with no runtime behavior changes. All new fields are optional, backward-compatible, and isolated to the manifest/registry data layer. Normalization logic is defensive and consistent with existing helpers. Tests cover normalization edge cases (empty strings, invalid capability values, explicit No files require special attention. Reviews (1): Last reviewed commit: "Merge branch 'main' into feat/ocplugins-..." | Re-trigger Greptile |
Summary
openclaw.plugin.jsoncould not express them yet.activationandsetupmanifest blocks, normalized them in manifest loading, exposed them in manifest-registry records, documented them, and added tests for normalization plus registry preservation.setup-apimigration, and no plugin execution-path behavior changes yet.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause (if applicable)
Regression Test Plan (if applicable)
N/A
User-visible / Behavior Changes
Plugin authors can now declare optional manifest-only
activationandsetupdescriptors inopenclaw.plugin.json. No runtime activation behavior changed yet.Diagram (if applicable)
Security Impact (required)
Yes/No): NoYes/No): NoYes/No): NoYes/No): NoYes/No): NoYes, explain risk + mitigation: N/ARepro + Verification
Environment
Steps
activationandsetupblocks toopenclaw.plugin.json.loadPluginManifestRegistry.Expected
Actual
Evidence
Focused verification:
pnpm test:serial src/plugins/manifest.json5-tolerance.test.ts src/plugins/manifest-registry.test.tspnpm buildpnpm lint -- src/plugins/manifest.ts src/plugins/manifest-registry.ts src/plugins/manifest.json5-tolerance.test.ts src/plugins/manifest-registry.test.tsAdditional note:
pnpm checkstill fails on unrelated stale generated drift inapps/macos/Sources/OpenClaw/HostEnvSecurityPolicy.generated.swifton this fresh branch offmain.Human Verification (required)
requiresRuntime: falseis preserved explicitly.Review Conversations
Compatibility / Migration
Yes/No): YesYes/No): NoYes/No): NoRisks and Mitigations