Repository navigation
Add credit limits and funding controls commands - #67
Merged
Merged
Conversation
Align funding-control requests with API source ba09326dd3c6688f05320c1f7685aeb0290a0ed2. Add project-filtered reads, customer output and mixed resource ordering through the published SDK raw transport. Test 2,000-resource file input and reject malformed, missing, duplicate or conflicting inputs before HTTP.
|
Warning Review limit reachedThe included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 56 minutes. View limit detailsLimit details: You’ve used all 2 included reviews currently available. Your 68 included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (13)
Comment |
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.
Operators can read and update monthly credit limits and funding priorities from the CLI, including one project's combined customer/number order. Large orders can be loaded from a JSON file rather than a long shell argument, and real number creation accepts initial limit and priority flags.
This adds
billing limits list/set,billing priority list/set/reorderandbilling controls get/set.--projectfilters the priority read; human output includes customers as well as projects and numbers. Mixed resource order uses--scope resourcewithcustomer:UUIDandnumber:UUIDentries.--ids-fileaccepts the complete ordered string array and is mutually exclusive with--ids. Revision guards, atomic combined saves, conflict errors and before-HTTP validation are preserved.Project priority takes precedence. Numbers inherit customer priority and can override it with a higher number priority within the project; funding order never bypasses a spending cap. Customer limits include assigned numbers. Limits reset monthly in UTC;
--credits 0blocks new charges and--unlimitedremoves the cap. Initial QuickLink flags apply only to real new numbers and require teambilling:manageauthority.The financial contract is supplied by immutable API source ac1c7010d5c3cdf0262f1b5deb2c4d7ce6a249a5 in API/Console #476. Typed SDK methods are tracked separately in SDK #331. This CLI pins the already-published
@polymorfa/sdk@0.1.0-dev.20261003052138: financial commands use its authenticatedraw.request, and its existingquickLinks.createforwards the validated initial controls unchanged. No dependency on unpublished SDK methods or private Console routes is introduced.docs/tools/cli-api.mdx,docs/console/usage-and-credits.mdxand financial API references for the same contract.internal/docs/releases/2026-10-03-project-spending-budgets.mdowns availability. No CLI flag or entitlement authority is added. API deployment and a separately authorized CLI prerelease remain separate gates.Validation:
npm run verifypasses: repository formatting, lint, typecheck, all tests, build, package dry run and production audit (zero vulnerabilities).git diff --checkpasses.package-lock.json; the installed artifact uses the declared exact version and preserves initial QuickLink body fields.These commands operate the implemented monthly credit-debit limits and funding
priorities. The separate included-usage/overage quota prototype remains inactive and is not exposed by these commands.
This PR does not publish a CLI/SDK package, change production controls, deploy the API or prove authenticated deployed financial behavior. CLI publication requires its separate immutable-source/version workflow; no release workflow was triggered.