Skip to content

feat: pexo-agent v0.3.5 - credit error handling & entitlements - #4

Merged
Naniko0213 merged 5 commits into
mainfrom
feature/skill-v0.3.5
Apr 3, 2026
Merged

feat: pexo-agent v0.3.5 - credit error handling & entitlements#4
Naniko0213 merged 5 commits into
mainfrom
feature/skill-v0.3.5

Conversation

@Naniko0213

Copy link
Copy Markdown
Collaborator

What changed

v0.3.5 adds credit error handling and a new entitlements script to gracefully handle insufficient-credit scenarios instead of falling into an infinite WAIT loop.

Changes

New

  • scripts/pexo-entitlements.sh: checks account credit status before/during production
  • skills/pexo-agent/_meta.json: skill metadata file

SKILL.md

  • Step 1 & Step 3: added failure branches that detect credit-related errors in stderr and route to Credit Error Handling section
  • Step 8: split into credit vs non-credit failure paths
  • New section "Credit Error Handling": two scenarios covered
    • stderr contains full purchase link → relay to user
    • stderr only contains error message → provide fallback link to test.pexo.ai/home
  • Credit error detection matches: "Credits balance", "credits", "Insufficient credits"
  • Updated video duration range from 5-60s to 5-120s

Scripts

  • _common.sh, pexo-chat.sh, pexo-project-create.sh, pexo-project-get.sh, pexo-project-list.sh, pexo-asset-get.sh, pexo-upload.sh, pexo-doctor.sh: updated to support entitlements and improved error handling

Testing

  • Tested on Feishu with moonshot/kimi-k2.5
  • Verified: zero-credit account triggers credit error flow instead of infinite WAIT
  • Verified: user receives purchase guidance with correct link

Made with Cursor

- Add pexo-entitlements.sh: new script for checking account credit status
- SKILL.md v0.3.5: add credit error handling section with fallback purchase link
- Credit error detection in Step 1 (create) and Step 3 (send message)
- Split Step 8 into credit vs non-credit failure paths
- Update video duration range to 5-120s
- Update _common.sh, pexo-chat.sh and other scripts for entitlements support

Made-with: Cursor
Made-with: Cursor
@Naniko0213
Naniko0213 merged commit 4641051 into main Apr 3, 2026
1 check failed
@Naniko0213
Naniko0213 deleted the feature/skill-v0.3.5 branch April 3, 2026 04:18
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