feat(cli): M3 resource management — combo, provider-node, provider-models, provider/key/pool extensions, models registry#12
Merged
Conversation
…dels, provider/key/pool extensions, models registry
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
Implements PLAN v3 mục 4 + 10 (M3 Resource Management) as 1 PR đầy đủ. Adds ~47 subcommands across 7 command groups so an agent can manage every resource through CLI alone. OAuth deferred to M4 per the chốt decision.
New / extended command groups
openproxy combolist / get / create / edit / delete / enable / disable / test / applyopenproxy provider nodelist / get / add / edit / delete / validateopenproxy provider modelslist / test / alias set / alias list / alias unset / disable / enable / custom add / custom remove / custom listopenproxy provider …(extended)get / edit / delete / enable / disable / test / validate / client-info / applyopenproxy key …(extended)get / rotate / delete / enable / disable / applyopenproxy pool …(extended)get / edit / enable / disable / test / stats / applyopenproxy models(top-level)list / info / test / pricingRobot envelopes & idempotency
--robot. Schemas useopenproxy.v1.<resource>.<verb>.applysemantics per PLAN mục 6.3: default = upsert;--pruneaddsdeleted.deleteexits 0 when missing unless--strict.Plumbing
src/cli/apply.rs: sharedload_document/into_items/ApplyDifffor combo/provider/key/pool apply.src/server/api/providers.rs::test_provider_apimadepub(crate).src/cli/schema.rsregisterscustom-model+model-aliasresources.Cargo.toml: addedserde_yml = "0.0.12".Tests (local)
cargo fmt --all --checkcleancargo test --lib→ 375 passed, 0 failed (added unit tests inprovider_models,apply,combo)cargo test --tests→ all integration suites greenReview & Testing Checklist for Human
Risk: yellow — additive only, but broad surface (~3.5k LoC, ~47 subcommands).
src/cli/apply.rsand confirm upsert + prune envelope matches PLAN mục 6.3.--robotenvelopes against schema names (combo.list,provider.get,pool.stats).db.jsonafter CLIapply/edit/delete.Notes
provider node validateprobes/models(or/embeddings) with no auth header.provider testreuses the dashboard'stest_provider_apiso behavior stays in sync with the UI.pool testdefaults tohttps://httpbin.org/get; override with--target.whoami::hostnamedeprecation + a couple of unused imports remain — not touched.