foldrun 26.5.0 → 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.
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/docs/runs.md CHANGED
@@ -680,11 +680,10 @@ What follows from it:
680
680
  `PUT /api/customers/<id>/block`). Its runs are refused at start (`403`,
681
681
  code `customer_blocked`), and a run of it already going stops at its next
682
682
  model call. Unblocking lets it through again.
683
- - **Told to the model provider.** On foldrun's models, the provider is sent
684
- the customer as its end-user id — hashed with your account, so your id never
685
- leaves foldrun and two accounts' `user-1` are never one identity there. A
686
- provider that acts on abuse acts on that customer, not on everyone. Runs on
687
- your own model keys are not changed.
683
+ - **Kept inside foldrun.** The customer id is not sent to the model provider,
684
+ on foldrun's models or your own keys: no end-user id of any kind goes
685
+ upstream. Attribution, the block list and the daily cap are applied by
686
+ foldrun itself. (Until 17 Nov 2026 the provider was sent a hashed id.)
688
687
  - **Found.** The run page shows **Customer**, linked to the runs list filtered
689
688
  to it; `foldrun runs --customer c-8812` and `GET …/runs?customer=c-8812` list
690
689
  them.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foldrun",
3
- "version": "26.5.0",
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",