Repository navigation
refactor(channels): move single-account promotion keys to plugin declarations - #112293
Conversation
285276d to
8caea3a
Compare
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: refactor(channels): move single-account promotion keys to plugin declarations This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: refactor(channels): move single-account promotion keys to plugin declarations This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Merged via squash.
|
…arations (openclaw#112293) * refactor(channels): move single-account promotion keys to plugin declarations * fix(channels): keep legacy promotion tier for undeclared setup adapters * fix(channels): keep plugin discovery lazy in setup promotion helpers * fix(channels): resolve bundled promotion surfaces from setup-only artifacts * test(matrix): use vi.stubEnv in setup test env helper
Declare singleAccountKeysToMove on both channel setup adapters and add configPromotion setupFeature to their package manifests, completing the per-channel migration started in openclaw#112293. Co-Authored-By: Claude <[email protected]>
…n keys Declare singleAccountKeysToMove on both channel setup adapters and add configPromotion setupFeature to their package manifests, completing the per-channel migration started in openclaw#112293. Co-Authored-By: Claude <[email protected]>
What Problem This Solves
Part 2 of #112238. Core hardcoded channel-specific single-account promotion keys:
setup-promotion-keys.tslistedsignalNumber,homeserver,authDir,cliPath, and ~25 more channel-owned config keys, andsetup-helpers.tscarried a hardcoded per-channel named-account map for matrix/telegram — duplicating declarations those plugins already make via theChannelSetupAdaptercontract (singleAccountKeysToMove/namedAccountPromotionKeys).Why This Change Was Made
Owner-specific migration/config behavior belongs in the owner plugin (repo architecture rule); the adapter contract already existed. This PR:
token/tokenFile/botToken/webhookPath).setupFeatures.configPromotionso doctor can resolve declarations from bundled artifacts without full plugin load. Matrix's setup-only artifact now carries its declarations (it previously exposed a bare adapter).moveSingleAccountChannelSectionToDefaultAccountSDK helper gains an optional, additivesetupSurfaceparameter.botId/secretstay core-promoted for Tencent's out-of-tree WeCom plugin (commented, with removal condition), and a clearly named legacy tier preserves the former automatic promotion for adapters that have not adopted declarations — a surface is "declared" iffsingleAccountKeysToMoveis present (empty array is authoritative). The legacy tier is inert for all in-repo channels and is scheduled for removal when declarations become mandatory at the next SDK major.accounts.defaultthat would permanently strand plugin-owned keys at root (existing-default channels are skipped by design).User Impact
No behavior change for any in-repo channel: per-channel effective promotion key sets are proven identical (parity table in the review artifacts). Out-of-tree adapters keep migrating exactly as before via the legacy tier. The doctor deferral only affects configs that would previously have been half-migrated.
Evidence