Repository navigation
Conversation
Read static model catalogs from pinned ACP-tagged store plugins in a short-lived catalog worker subprocess and publish them as acp/<registered-id> in RESP, management, and user model lists. Give credential models and explicit aliases precedence and pick the highest-priority ACP plugin on ID conflicts. Authorize local-plugin-dispatch against API key scope, channel, billing, and active CPA identity so the serving node executes locally. Exclude local executor usage from Home credential quota and health updates while still billing the caller once, and bump CLIProxyAPI to v8.1.6 for the static executor model API.
Load ACP catalogs asynchronously with a brief first-read window so slow or cancelled readers cannot block or discard healthy plugin routes, and cancel workers on plugin removal or shutdown. Align ACP billing, price-import discovery, user pricing quotes, and availability on the plugin provider and registered model ID, falling back to the public acp/ ID. Load only plugin sync settings from the database, reserve the RESP error envelope from provider sections, and document the catalog worker receipt protocol.
Use the same rule selection for model catalogs and charges so service tiers and token bands include their fallback prices.
Resolve a source-only manifest against its pinned registry version when building the CPA sync plan. Share version selection with store installs.
Track ACP route ownership as credentials register their models and check only the matching owners during dispatch.
Reuse decoded database settings and catalog inputs across authorization requests while preserving YAML tags and referenced values.
Recheck overlapping configuration reads and preload catalogs after publication. Stop late readers from starting workers after shutdown.
Track artifact readers across configuration changes. Retain disabled installations and files for other platforms during cleanup.
Allow up to two minutes for the artifact download and start the worker deadline afterwards. Cancel either stage when its installation is withdrawn.
CPA may report the caller's API key as the source when the upstream account is unknown. Mask it with the same format as client.api_key_masked to avoid leaking the raw key in usage records and request events, and document the source field there.
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
Home reads model catalogs from enabled ACP plugins and publishes them as
acp/<registered-model-id>. Home authorizes each request, then the serving CPA executes the selected plugin with its local account.v8.1.6for local plugin dispatch.Verification
git diff --checkpassed, and Git reported a clean merge withdev. Go tests are pending. The branch adds regression tests for dispatch precedence, catalog updates, price discovery, and billing deduplication.