foldrun 26.5.1 → 26.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/docs/api.md +1 -1
  2. package/package.json +2 -2
package/docs/api.md CHANGED
@@ -481,7 +481,7 @@ person: a key names an account, never a who.
481
481
  | `/api/billing/partner/topups/<id>/authority` | POST | foldrun.ir only — `{ authority }`, the Zarinpal session the customer is sent to. Once per order (`409` for another; a retry is a new order) |
482
482
  | `/api/billing/partner/topups/<id>/paid` | POST | foldrun.ir only, after Zarinpal verified the payment — `{ authority, refId, cardPan?, fee? }` credits the ORDER's dollars (never a figure in the request) as a top-up noted `zarinpal:<refId> order:<id>`, once per authority: `{ order, credited }`, credited false on a repeat. An order made with a `plan` also starts that plan here: the answer's `order.planStatus` is `active`, or `failed` when it could not start (the payment is credited either way). A failed or expired order is still credited — the money arrived — up to a day after it was made; later is `409` and the platform team credits it by hand |
483
483
  | `/api/billing/partner/topups/<id>/failed` | POST | foldrun.ir only — `{ reason }`: the customer cancelled or the gateway refused. A credited order stays credited |
484
- | `/api/billing/partner/signups` | POST | foldrun.ir only — `{ email, ip? }` for a customer with no account: this platform mails `email` a sign-up link (`/signup?link=…`, seven days) and answers `202 { status: "sent" }`; an address that already has a login answers `200 { status: "exists" }` and nothing is mailed. The account is opened on this platform's own sign-up page, verified from the start, and the person is sent back to the storefront's charge page with the address filled in (`billing.ir_site_url`, else https://foldrun.ir). Limited per address (3 an hour), per customer address `ip` (5 an hour) and per storefront (200 an hour): `429` with `Retry-After` |
484
+ | `/api/billing/partner/signups` | POST | foldrun.ir only — `{ email, ip?, next?, plan? }` for a customer with no account: this platform mails `email` a sign-up link (`/signup?link=…`, seven days) and answers `202 { status: "sent" }`; an address that already has a login answers `200 { status: "exists" }` and nothing is mailed. The account is opened on this platform's own sign-up page, verified from the start, and the person is sent back to the storefront with the address filled in (`billing.ir_site_url`, else https://foldrun.ir): to the charge page by default, or with `next: "plans"` (and optionally `plan: "pro" \| "max"`) to the plans page, `/plans?plan=…&account=…#buy`, for someone buying a coding plan. Any other `next` or `plan` is `400`. Limited per address (3 an hour), per customer address `ip` (5 an hour) and per storefront (200 an hour): `429` with `Retry-After` |
485
485
 
486
486
  ## Versions
487
487
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foldrun",
3
- "version": "26.5.1",
3
+ "version": "26.5.2",
4
4
  "description": "Agents are just folders. Write them, check them, run them — on your machine.",
5
5
  "license": "FSL-1.1-ALv2",
6
6
  "type": "module",
@@ -11,7 +11,7 @@
11
11
  "node": ">=22"
12
12
  },
13
13
  "dependencies": {
14
- "@foldrun/core": "^24.2.3"
14
+ "@foldrun/core": "^24.3.0"
15
15
  },
16
16
  "files": [
17
17
  "bin",