wontopos 2.2.40 → 2.2.41
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/README.md +9 -9
- package/dist/cjs/wontopos.d.cts +335 -171
- package/dist/cjs/wontopos.js +569 -254
- package/dist/wontopos.d.ts +335 -171
- package/dist/wontopos.js +569 -254
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -80,14 +80,14 @@ const hits = await mem.search("...the conversation so far...", "alice", 10,
|
|
|
80
80
|
|
|
81
81
|
Built in, no configuration needed:
|
|
82
82
|
|
|
83
|
-
- **Automatic retries** — 429
|
|
84
|
-
only when a retry cannot double-process a write.
|
|
85
|
-
POSTs, and any of those four may have been returned
|
|
86
|
-
landed, so those get 429 and connect-level
|
|
87
|
-
|
|
88
|
-
`removeSpeaker`, `forgetImage` —
|
|
89
|
-
exponential backoff + jitter, honoring the server's
|
|
90
|
-
`new Client({ maxRetries })`; `0` disables.
|
|
83
|
+
- **Automatic retries** — 429 and a 409 for a write already in flight always, and 408 /
|
|
84
|
+
502 / 503 / 504 or a connection error only when a retry cannot double-process a write.
|
|
85
|
+
The writes and the searches are POSTs, and any of those four may have been returned
|
|
86
|
+
*after* the write already landed, so those get 429, that 409 and connect-level
|
|
87
|
+
failures only. The GET and DELETE calls — `ping`, `listStores`, `listSpeakers`,
|
|
88
|
+
`listModels`, `listEngrams`, `usage`, `deleteStore`, `removeSpeaker`, `forgetImage` —
|
|
89
|
+
retry all four. Twice, with exponential backoff + jitter, honoring the server's
|
|
90
|
+
`Retry-After` up to 30s. Tune with `new Client({ maxRetries })`; `0` disables.
|
|
91
91
|
- **Redirects refused** — the API key never follows a 3xx to another host.
|
|
92
92
|
- **Timeouts** — 30s per attempt by default (`timeoutMs`), and a total budget for
|
|
93
93
|
the whole call across every retry with `deadlineMs` / `withDeadline(ms)`. At the
|
|
@@ -209,7 +209,7 @@ data to fix it.
|
|
|
209
209
|
## Changelog
|
|
210
210
|
|
|
211
211
|
The three clients release in lockstep — same version, same surface, same day. Patch
|
|
212
|
-
releases are additive.
|
|
212
|
+
releases are additive. Seven inside 2.2 were not, deliberately and each with its
|
|
213
213
|
reason; the changelog lists them.
|
|
214
214
|
|
|
215
215
|
See [CHANGELOG.md](https://github.com/wontopos/wontopos-node/blob/main/CHANGELOG.md).
|