Skip to content

Add Prompt Rules and Model Router plugins - #73

Merged
luispater merged 1 commit into
router-for-me:mainfrom
Z-M-Huang:agent/add-prompt-rules-model-router
Aug 12, 2026
Merged

Add Prompt Rules and Model Router plugins#73
luispater merged 1 commit into
router-for-me:mainfrom
Z-M-Huang:agent/add-prompt-rules-model-router

Conversation

@Z-M-Huang

@Z-M-Huang Z-M-Huang commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

What

Register two native CLIProxyAPI plugins:

  • Prompt Rules injects or strips system and user prompt text before provider translation, with model and protocol scoping.
  • Model Router adds logical model aliases with priority or round-robin selection, cooldowns, and failover across CPA model targets.

Both v0.2.1 releases register dedicated configuration pages in CPA's Plugins frontend, with typed editors and parser-backed validation. The pages reuse CPAMC's persisted authenticated session, load automatically, and follow CPAMC's selected light, white, or dark theme; a key fallback appears only when no usable key is persisted.

This PR changes only registry.json and omits the legacy version field so CPA resolves the latest published release.

Release evidence

Prompt Rules

Model Router

Both releases are public, non-draft, and non-prerelease. I verified that each checksum manifest has one SHA-256 entry per archive, each downloaded archive matches its checksum, and each zip contains exactly one correctly named dynamic library at its root.

Validation

  • jq empty registry.json
  • Registry schema, required-field, ID-format, repository-format, uniqueness, and version-fallback checks
  • go test ./internal/pluginstore in router-for-me/CLIProxyAPI
  • Native CPA host integration tests for both plugins
  • Published Linux binary checks for the embedded CPAMC session/theme dashboard and 0.2.1 metadata
  • Live GitHub release asset-set, zip-layout, and checksum-manifest checks for both v0.2.1 releases

@luispater
luispater merged commit c98d051 into router-for-me:main Aug 12, 2026
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.

2 participants