Skip to content

Support ZCode 3.17 and automatically claim offered promotions - #1

Merged
revanapriyandi merged 1 commit into
mainfrom
fix/zcode-3.17-promotions
Nov 7, 2026
Merged

revanapriyandi merged 1 commit into
mainfrom
fix/zcode-3.17-promotions

Conversation

@revanapriyandi

Copy link
Copy Markdown
Owner

ZCode 3.17 no longer uses billing/current for Start Plan availability, leaving the previous gateway unable to discover models from balance capability buckets. This change reads the authoritative balance snapshot, carries the provisioned client version through login/billing/claims/inference, and supports the current prompt layout.

Promotion maintenance now queries both account billing previews and marketing banner/popup claim actions at startup and every five minutes. It deduplicates offers across channels, records actual grant expiry, revisits undated recurring offers, respects retry/verification/risk responses, and refreshes models after claims. Automatic claims are enabled by default with an explicit false opt-out. New promos and claim CLI commands support discovery-only and one-shot operation. No paid checkout, referral action or external campaign link is executed.

Validation:

  • 80 local tests passed; syntax checks passed for all 11 source modules.
  • Added an integration test for background campaign claim → balance entitlement → all three HTTP API formats, alongside expiry, partial-source, metadata and provider-error regressions.
  • Extracted templates from official 3.17.1 and 3.17.2 bundles; the downloaded 3.17.2 installer matched published SHA256SUMS.
  • Live authentication/health/catalog/usage and background discovery passed. The available account had no active grant; marketing returned no deliveries and preview returned code 0 without a payload. Successful live claims and inference were therefore not verified.
  • Compose config validation passed. Container execution was not tested because the local Docker daemon was stopped.
  • CI covers Node 24 on Ubuntu and Windows. Both language guides, changelog and verification notes are updated.

Coverage remains limited to the two verified official offer channels and provider-defined eligibility; unknown future promotion endpoints are not claimed as supported.

@revanapriyandi
revanapriyandi merged commit 73efa28 into main Nov 7, 2026
4 checks passed
@revanapriyandi
revanapriyandi deleted the fix/zcode-3.17-promotions branch November 7, 2026 13:36
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