Skip to content

refactor(marketplace): consolidate plugin resolution logic#34

Merged
christso merged 2 commits intomainfrom
refactor/consolidate-plugin-resolution-logic
Feb 1, 2026
Merged

refactor(marketplace): consolidate plugin resolution logic#34
christso merged 2 commits intomainfrom
refactor/consolidate-plugin-resolution-logic

Conversation

@christso
Copy link
Copy Markdown
Contributor

Summary

  • Extract resolvePluginSpecWithAutoRegister() into marketplace.ts as a single shared function, replacing three independent implementations across workspace-modify.ts, sync.ts, and status.ts (net -95 lines)
  • Fix missing marketplaceNameOverride bug in workspace-modify.ts and status.ts that prevented manifest-renamed marketplaces from resolving correctly
  • Accept allowed-tools as a string in skill metadata schema to match Claude Code behavior (normalizes to single-element array), fixing sync failure with agent-browser plugin

Test plan

  • bun test — 257 tests pass
  • npm run build — clean build
  • tsc --noEmit — clean typecheck
  • E2E: allagents workspace plugin add agent-browser@agent-browser — auto-registers and syncs (1 file)
  • E2E: allagents workspace plugin add development@WiseTechGlobal/WTG.AI.Prompts — auto-registers, normalizes spec to development@wtg-ai-prompts, syncs (14 files)
  • E2E: allagents workspace sync — both plugins resolve and sync cleanly (15 files, 0 failures)
  • E2E: allagents workspace status — both plugins show as available

🤖 Generated with Claude Code

christso and others added 2 commits January 31, 2026 23:50
Extract resolvePluginSpecWithAutoRegister() into marketplace.ts as a
single shared function used by workspace-modify, sync, and status.
This removes ~160 lines of duplicated auto-register/resolve pipelines
and fixes the missing marketplaceNameOverride bug in workspace-modify
and status.

Also accept allowed-tools as a string in skill metadata schema to
match Claude Code behavior (normalizes to single-element array).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying allagents with  Cloudflare Pages  Cloudflare Pages

Latest commit: fb53a85
Status: ✅  Deploy successful!
Preview URL: https://4821c700.allagents.pages.dev
Branch Preview URL: https://refactor-consolidate-plugin.allagents.pages.dev

View logs

@christso christso merged commit 722f348 into main Feb 1, 2026
1 check passed
@christso christso deleted the refactor/consolidate-plugin-resolution-logic branch February 1, 2026 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant