Skip to content

Commit 73155b9

Browse files
fix(skills): reverse hands over one add-credits for the run when an amount is unknown
"If a refusal prints no amount, give plain `billing add-credits` for that one" let the agent hand over a purchase for each step with no amount, on top of the aggregate one. Now, if any refusal prints no amount, the total is unknown and the person gets one plain add-credits for the whole run, never one per step. The test now requires that sentence and rejects a per-step fallback in the out-of-credits section, even when the aggregate sentence is still there. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01HebQXQjEiSeVmhvTbJvSAw
1 parent 1afa8cd commit 73155b9

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

‎scripts/check-core-skills.test.mjs‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ test("reverse hands every purchase to the person instead of running billing itse
6565
);
6666
assert.match(start, /You run every command except `billing`, which\s+is theirs/);
6767
assert.doesNotMatch(start, /you run every command,/);
68+
const outOfCredits = section("Out of credits mid-run");
69+
assert.match(
70+
outOfCredits,
71+
/If any refusal prints no amount, the total is unknown:\s+give plain `billing add-credits` once instead, for the whole run/,
72+
);
73+
assert.doesNotMatch(
74+
outOfCredits,
75+
/for that one|for each (?:refused )?step|one per (?:refused )?step(?!\.)/,
76+
);
6877
for (const heading of ["Signed in on Free", "Out of credits mid-run"]) {
6978
const text = section(heading);
7079
assert.match(text, /never run a `billing` command yourself/, heading);

‎skills-manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"files": 76
2727
},
2828
"reverse-any-video": {
29-
"hash": "4cc7291d266b1f9a",
29+
"hash": "f94599be483b10df",
3030
"files": 5
3131
},
3232
"slideshow": {

‎skills/reverse-any-video/references/start.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ or at the end of a run. `reverse start` and `auth status` are for the sign-in: d
6565
A refused step prints what it needs and the command that fixes it (buy add-on credits, or pick a plan). Buying is the
6666
person's to do: never run a `billing` command yourself. Shots are launched all at once, so several refuse together: wait
6767
until every launched step has answered, add up what each refused step needs, and give them `npx hyperframes billing add-credits --needed <total> --skill reverse-any-video` to run once for that total, never one step at a time, with the
68-
refusal's `url` (on an older CLI, the link in its `fix`) as a link. If a refusal prints no amount, give plain
69-
`billing add-credits` for that one. Either opens the add-on credits page, where they see the price. When they say their
68+
refusal's `url` (on an older CLI, the link in its `fix`) as a link. If any refusal prints no amount, the total is unknown:
69+
give plain `billing add-credits` once instead, for the whole run, never one per step. Either opens the add-on credits page, where they see the price. When they say their
7070
balance is topped up, relaunch every refused step, keeping the plan whole.
7171

7272
> Three steps need 633 credits together and you have 30. Add credits here: <url> (or run

0 commit comments

Comments
 (0)