fix(cli): validate skill listing prices#458
Conversation
Greptile SummaryThis PR adds a
Confidence Score: 5/5The price-validation logic is correct and the tests cover the key edge cases; no new defects are introduced by this change. The No files require special attention for the price-validation change itself. Previously flagged Unicode regressions in Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["parsePrice(value: string)"] --> B{"/^\\d+$/.test(value)?"}
B -- No --> C["return 0\n(rejects: negatives, decimals,\n non-numeric strings)"]
B -- Yes --> D["Number.parseInt(value, 10)"]
D --> E{"Number.isSafeInteger(parsed)?"}
E -- No --> F["return 0\n(rejects: very large integers)"]
E -- Yes --> G["return parsed"]
G --> H["price used in manifest\n& marketplace commands"]
Reviews (3): Last reviewed commit: "fix(cli): validate skill listing prices" | Re-trigger Greptile |
eb33100 to
894a1e7
Compare
894a1e7 to
f8dfc23
Compare
|
Submitted this PR for the ugig bounty/gig: "Need someone to test submit bugs and PRs to fix those bugs". The PR is ready for review:
Solana wallet for bounty payout: |
Fixes #457
Summary
sh1pt skills new --pricebefore writing manifests0Validation