feat(promo): add CREATOR_CLAW promo code#1329
Open
kilo-code-bot[bot] wants to merge 1 commit intomainfrom
Open
feat(promo): add CREATOR_CLAW promo code#1329kilo-code-bot[bot] wants to merge 1 commit intomainfrom
kilo-code-bot[bot] wants to merge 1 commit intomainfrom
Conversation
| }, | ||
| { | ||
| // Replace with output of: pnpm promo encrypt CREATOR_CLAW | ||
| encrypted_credit_category: 'PLACEHOLDER:NEEDS_ENCRYPTION:CREATOR_CLAW', |
Contributor
Author
There was a problem hiding this comment.
CRITICAL: Placeholder promo code will crash decryption in production
selfServicePromos decrypts every encrypted_credit_category at module load, so this placeholder is not just a reminder. In non-test environments decryptPromoCode('PLACEHOLDER:NEEDS_ENCRYPTION:CREATOR_CLAW') will throw before the promo list finishes building, which can break any route that imports promoCreditCategories. Replace this with the real encrypted value before merge, or keep the entry out of the array until that value is available.
Contributor
Author
Code Review SummaryStatus: 1 Issues Found | Recommendation: Address before merge Overview
Fix these issues in Kilo Cloud Issue Details (click to expand)CRITICAL
Other Observations (not in diff)N/A Files Reviewed (1 files)
Reviewed by gpt-5.4-20260305 · 412,027 tokens |
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
Adds a new self-service promo code CREATOR_CLAW to
src/lib/promoCreditCategories.tswith the following configuration:expiry_hours: 30 * 24)Follows the same encrypted self-service promo pattern as the ClawCon promos (PR #1096) and PR #1254.
Action required before merge: Replace the
encrypted_credit_categoryplaceholder with the actual encrypted value by running:This requires the
CREDIT_CATEGORIES_ENCRYPTION_KEYenvironment variable (available viavercel env pull).Verification
pnpm typecheck— passed (0 errors)oxlinton changed file — 0 warnings, 0 errorspnpm format --check— all files correctly formattedEncryptedSelfServicePromoCreditCategoryConfigtype shapeVisual Changes
N/A
Reviewer Notes
encrypted_credit_categoryfield contains a placeholder (PLACEHOLDER:NEEDS_ENCRYPTION:CREATOR_CLAW). A reviewer or maintainer with access to theCREDIT_CATEGORIES_ENCRYPTION_KEYmust runpnpm promo encrypt CREATOR_CLAWand replace the placeholder before merging. This is the same workflow used historically (see commitsaacccb3fand191eabf6).Built for brian.turcotte by Kilo for Slack