@bowmark/web 1.25.7 → 1.25.8

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/dist/transport.js CHANGED
@@ -130,8 +130,8 @@ async function sendRequest(client, method, path, body, extraHeaders) {
130
130
  catch {
131
131
  parsed = false;
132
132
  }
133
- // A 429 from the EDGE (Cloudflare's per-IP rate limit on `/v1/*`: 10 requests per
134
- // 10 seconds) never reached the api, so retrying it is safe and is the only thing
133
+ // A 429 from the EDGE (Cloudflare's per-IP rate limit on `/v1/*`: 50 requests per
134
+ // 10 seconds since 2026-10-05) never reached the api, so retrying it is safe and is the only thing
135
135
  // that helps. A bare `client()` call is THREE requests (open, call, close), so a
136
136
  // page that makes two or three calls trips it on its first click. The api's own
137
137
  // 429s carry a `code` (`rate_limited`, a metering refusal) and are NOT retried.
@@ -155,12 +155,19 @@ async function sendRequest(client, method, path, body, extraHeaders) {
155
155
  return { status: response.status, payload: payload };
156
156
  }
157
157
  }
158
- /** The edge allows 10 requests per 10 seconds per IP on the hosted api. Stay under it
159
- * proactively (8 per 10s) instead of finding out by being blocked: a retry costs a
160
- * 10-second stall and a paginated read is dozens of requests. Hosted api only, so a
161
- * local or self-hosted api is never slowed. Per process, which is per IP for a server. */
158
+ /** The edge allows 50 requests per 10 seconds per IP on the hosted api (raised from 10 on
159
+ * 2026-10-05; the rule is dashboard state, recorded in the monorepo's `infra/README.md` §
160
+ * Cloudflare rate-limit rules). Stay under it proactively (40 per 10s) instead of finding
161
+ * out by being blocked: a retry costs a 10-second stall and a paginated read is dozens of
162
+ * requests. Hosted api only, so a local or self-hosted api is never slowed. Per process,
163
+ * which is per IP for a server.
164
+ *
165
+ * It read 8 until 2026-10-18, five per cent of what the edge allows, two weeks after the
166
+ * edge was raised. That held any fan-out to ~0.8 runs a second: a 10,000-lookup bulk run
167
+ * could never keep more than ~14 runs in flight whatever the server allowed. If the edge
168
+ * rule changes again, change this number with it. */
162
169
  const EDGE_WINDOW_MS = 10_000;
163
- const EDGE_BUDGET = 8;
170
+ const EDGE_BUDGET = 40;
164
171
  const recentSends = [];
165
172
  async function paceForEdge(baseUrl) {
166
173
  if (!/^https:\/\/api\.bowmark\.ai(\/|$)/.test(baseUrl))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bowmark/web",
3
- "version": "1.25.7",
3
+ "version": "1.25.8",
4
4
  "type": "module",
5
5
  "description": "The public client for the Bowmark capability library — real TypeScript for the whole bowmark.* surface, with no Bowmark source on the caller's disk. ZERO runtime dependencies, deliberately and permanently.",
6
6
  "license": "MIT",