Serve upload-cost estimates and shared API discovery - #3
Draft
JimCollinson wants to merge 4 commits into
Draft
Conversation
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.
Coordinated draft — for Hermes review, not merge-ready
One part of the three-repository pricing feature. Jim authorized these drafts on 11 September and explicitly deferred the dedicated clean-context review until before any merge. Production setup and release remain separately blocked.
Companion drafts: Inventory PR #2 · Developers PR #10. Review all three as one feature; no independent merge is requested. Those repositories and the shared Hermes brief require internal access.
Changes
GET /api/pricing: one bounded KV stream read, exact byte/hash/metadata validation, independent native/reference expiry and explicit browser-access/cache headers. Missing/invalid/native-expired data returns pricing-only503; no provider lookup or monetary recalculation on this route.llms.txt, named Autonomi API, including upload-cost estimates and verified client/setup links. The directory distinguishes hosted information from local/direct network clients.Review
worker/pricing.js, the limitedworker/index.jsdelta anddocs/specs/pricing-api.mdfirst. Productionwrangler.jsonc, legacy Vercel rollback files, dependencies, wallet/provider definitions and supply handlers are unchanged.Evidence
Before merge / release
PRICING_KVnamespace binding and first verified publisher data. There is no dummy production binding; absent configuration currently means pricing503.workers.devand the production hostname are the same Worker, not isolated staging. Preserve supply and release API → publisher/readback → website only after approval.