refactor(plugins): add lane-oriented channel interface#59986
Draft
huntharo wants to merge 4 commits intoopenclaw:mainfrom
Draft
refactor(plugins): add lane-oriented channel interface#59986huntharo wants to merge 4 commits intoopenclaw:mainfrom
huntharo wants to merge 4 commits intoopenclaw:mainfrom
Conversation
25 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Describe the problem and fix in 2–5 bullets:
PluginLaneRef,PluginActorRef, generic outbound helpers, andregisterInteractionHandler), extended semantic interactive payloads with action and fallback metadata, and taught bundled channels to project those payloads into native UX when available.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause / Regression History (if applicable)
For bug fixes or regressions, explain why this happened, not just what changed. Otherwise write
N/A. If the cause is unclear, writeUnknown.git blame, prior PR, issue, or refactor if known): this work follows the lane-oriented interface plan and the discussion around removing Telegram Bot API / Discord API ownership from plugins.Regression Test Plan (if applicable)
For bug fixes or regressions, name the smallest reliable test coverage that should have caught this. Otherwise write
N/A.src/plugins/runtime.channel-outbound-delivery.test.ts,src/plugins/interactive.test.ts,extensions/msteams/src/outbound.test.ts,extensions/feishu/src/outbound.test.tssrc/plugins/commands.test.tsandsrc/interactive/payload.test.tsnow cover normalized lane refs and interactive fallback normalization.User-visible / Behavior Changes
List user-visible changes (including defaults/config).
If none, write
None.Diagram (if applicable)
For UI changes or non-trivial logic flows, include a small ASCII diagram reviewers can scan quickly. Otherwise write
N/A.Security Impact (required)
Yes/No) NoYes/No) NoYes/No) NoYes/No) NoYes/No) NoYes, explain risk + mitigation:Repro + Verification
Environment
Steps
pnpm lint.pnpm test -- src/interactive/payload.test.ts src/plugins/commands.test.ts src/plugins/interactive.test.ts src/plugins/runtime.channel-outbound-delivery.test.ts extensions/msteams/src/outbound.test.ts extensions/feishu/src/outbound.test.ts.pnpm build.Expected
Actual
pnpm lintpassed.pnpm buildpassed.pnpm checkis still blocked by a pre-existing unresolved merge-conflict marker inCHANGELOG.md:94, which is unrelated to this PR.Evidence
Attach at least one:
Human Verification (required)
What you personally verified (not just CI), and how:
Review Conversations
If a bot review conversation is addressed by this PR, resolve that conversation yourself. Do not leave bot review conversation cleanup for maintainers.
Compatibility / Migration
Yes/No) NoYes/No) NoYes/No) YesPluginLaneRef/PluginActorRef.api.runtime.channel.outbound.sendToLane(...)andsendToActorDm(...)instead of channel-branded outbound helpers where possible.api.registerInteractionHandler(...)plus semanticInteractiveReplypayloads with fallbacks.api.runtime.channel.<id>namespaces as escape hatches for host-owned runtime work, not the default plugin contract.Risks and Mitigations
List only real risks for this PR. Add/remove entries as needed. If none, write
None.