Skip to content

chore: version packages - #49

Merged
jaswinder6991 merged 1 commit into
mainfrom
changeset-release/main
Jul 28, 2026
Merged

jaswinder6991 merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

api@2.7.0

Minor Changes

  • 365923d: Credit/entitlement ledger and a dedicated Stake2Pay demo page that turns a confirmed NEAR stake into visible inference credits.

    • api: entitlements / entitlement_transactions tables (NUMERIC balances, NULLS NOT DISTINCT personal-credit dedup, unique source_ref idempotency key) and an EntitlementService for atomic grant/balance tracking. New creditList (GET /credits) and subscriptionCreditSync (POST /subscriptions/{provider}/credits/sync) routes — the sync route re-reads the subscription from the provider plugin itself (never trusts a client-supplied amount), grants credits keyed on the on-chain lock id, and retries briefly when the chain shows a subscription but the lock hasn't propagated yet.
    • ui: new /subscriptions/stake2pay page — NEAR wallet connect, single-plan stake flow, live credit counter with optimistic update reconciled against the server, and a guard that switches to a "sync only" action (no re-staking) when the wallet already has an active subscription. Shared signWalletIntent logic extracted out of /subscriptions into lib/wallet-intent.ts so both pages sign transactions identically.

ui@1.8.0

Minor Changes

  • 365923d: Credit/entitlement ledger and a dedicated Stake2Pay demo page that turns a confirmed NEAR stake into visible inference credits.

    • api: entitlements / entitlement_transactions tables (NUMERIC balances, NULLS NOT DISTINCT personal-credit dedup, unique source_ref idempotency key) and an EntitlementService for atomic grant/balance tracking. New creditList (GET /credits) and subscriptionCreditSync (POST /subscriptions/{provider}/credits/sync) routes — the sync route re-reads the subscription from the provider plugin itself (never trusts a client-supplied amount), grants credits keyed on the on-chain lock id, and retries briefly when the chain shows a subscription but the lock hasn't propagated yet.
    • ui: new /subscriptions/stake2pay page — NEAR wallet connect, single-plan stake flow, live credit counter with optimistic update reconciled against the server, and a guard that switches to a "sync only" action (no re-staking) when the wallet already has an active subscription. Shared signWalletIntent logic extracted out of /subscriptions into lib/wallet-intent.ts so both pages sign transactions identically.

@jaswinder6991
jaswinder6991 merged commit da97df1 into main Jul 28, 2026
2 checks passed
@jaswinder6991
jaswinder6991 deleted the changeset-release/main branch July 28, 2026 21:25
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.

1 participant