@mindstudio-ai/remy 0.1.125 → 0.1.126
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/headless.js
CHANGED
|
@@ -586,7 +586,7 @@ async function* streamChat(params) {
|
|
|
586
586
|
var MAX_RETRIES = 3;
|
|
587
587
|
var INITIAL_BACKOFF_MS = 1e3;
|
|
588
588
|
function isRetryableError(error) {
|
|
589
|
-
return /Network error/i.test(error) || /HTTP 5\d\d/i.test(error) || /Stream stalled/i.test(error) || /overloaded/i.test(error);
|
|
589
|
+
return /Network error/i.test(error) || /HTTP 5\d\d/i.test(error) || /Stream stalled/i.test(error) || /overloaded/i.test(error) || /terminated/i.test(error);
|
|
590
590
|
}
|
|
591
591
|
function sleep(ms) {
|
|
592
592
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
package/dist/index.js
CHANGED
|
@@ -221,7 +221,7 @@ async function* streamChat(params) {
|
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
function isRetryableError(error) {
|
|
224
|
-
return /Network error/i.test(error) || /HTTP 5\d\d/i.test(error) || /Stream stalled/i.test(error) || /overloaded/i.test(error);
|
|
224
|
+
return /Network error/i.test(error) || /HTTP 5\d\d/i.test(error) || /Stream stalled/i.test(error) || /overloaded/i.test(error) || /terminated/i.test(error);
|
|
225
225
|
}
|
|
226
226
|
function sleep(ms) {
|
|
227
227
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -18,6 +18,7 @@ Most things are fine. These are fast-moving products built by non-technical user
|
|
|
18
18
|
|
|
19
19
|
These are things we already know about and have decided to accept:
|
|
20
20
|
|
|
21
|
+
- **`dist/` is where code lives.** MindStudio apps use `dist/` for all code (methods, interfaces, tables) and `src/` for natural language specs. This is NOT the conventional "dist is build output" pattern. Never flag code being in `dist/` as wrong.
|
|
21
22
|
- API interface methods have access to `input._request.rawBody` for webhook signature verification (Stripe, GitHub, etc.). Do NOT suggest external proxies or workarounds — the raw body is available natively.
|
|
22
23
|
|
|
23
24
|
- Limited browser support for `oklch` gradients using `in <colorspace>` syntax — we accept the compatibility tradeoff for better color quality
|