clauderipple 0.9.3 → 0.9.4
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/CHANGELOG.md +28 -0
- package/dist/app/package.json +1 -1
- package/dist/mod/hooks/i18n.ts +36 -0
- package/dist/mod/hooks/register.tsx +8 -4
- package/dist/mod/hooks/session.ts +2 -2
- package/dist/mod/hooks/ui/alerts.tsx +10 -0
- package/dist/mod/hooks/ui/art.ts +64 -1
- package/dist/mod/hooks/ui/band.tsx +70 -42
- package/dist/mod/hooks/ui/kit.tsx +34 -2
- package/dist/mod/hooks/ui/view.ts +5 -0
- package/dist/mod/tests/register.test.tsx +31 -3
- package/dist/mod/tests/ui.test.tsx +108 -18
- package/dist/mod/types/index.d.ts +1 -1
- package/dist/router/src/admin.js +65 -6
- package/dist/router/src/agents.js +5 -0
- package/dist/router/src/catalog.js +18 -8
- package/dist/router/src/index.js +13 -4
- package/dist/router/src/providers/chatgpt/index.js +8 -0
- package/dist/router/src/providers/retry.js +15 -0
- package/dist/router/src/version.js +1 -1
- package/package.json +3 -2
|
@@ -22,7 +22,22 @@
|
|
|
22
22
|
// any status or byte is sent, so a retry cannot splice two answers together. Once the first byte is
|
|
23
23
|
// out the turn is committed and this must not be used.
|
|
24
24
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
25
|
+
import { Agent, setGlobalDispatcher } from "undici";
|
|
25
26
|
import { classify } from "../pool.js";
|
|
27
|
+
/**
|
|
28
|
+
* How long a translated provider's response may stay silent. Node's `fetch` gives up after 300s
|
|
29
|
+
* without a byte (`UND_ERR_BODY_TIMEOUT`, reproduced 2026-10-14: an SSE response that went quiet was
|
|
30
|
+
* cut at 300.98s). A reasoning model says nothing while it thinks: Muse Spark 1.3 at xhigh on a
|
|
31
|
+
* 100k+ context thought for minutes per step, and every one of its 529s that day ended at 303–305s,
|
|
32
|
+
* while every step that finished did so under 280s — the whole step thrown away and asked again.
|
|
33
|
+
* OpenCode's own CLI has no such limit. Fifteen minutes is past Claude Code's own request timeout,
|
|
34
|
+
* so the client, not this, decides when a turn has taken too long.
|
|
35
|
+
*/
|
|
36
|
+
export const UPSTREAM_SILENCE_MS = 15 * 60_000;
|
|
37
|
+
/** Every `fetch` in this process waits `ms` for headers and between body bytes. Called at startup. */
|
|
38
|
+
export function allowLongSilences(ms = UPSTREAM_SILENCE_MS) {
|
|
39
|
+
setGlobalDispatcher(new Agent({ bodyTimeout: ms, headersTimeout: ms }));
|
|
40
|
+
}
|
|
26
41
|
/** Attempts in total — one ask plus nine retries, matching the CLI's own ceiling (2026-09-21). */
|
|
27
42
|
export const DEFAULT_ATTEMPTS = 10;
|
|
28
43
|
const RETRY_BASE_MS = 250;
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
// from the manifests. Until 0.1.1 the router and the CLI each carried their own literal, and both
|
|
6
6
|
// still said "0.1.0" in the 0.1.1 release: after an update nobody could tell which router was
|
|
7
7
|
// running, and the tray app had nothing to compare (2026-09-15, reported from a Windows install).
|
|
8
|
-
export const VERSION = "0.9.
|
|
8
|
+
export const VERSION = "0.9.4";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clauderipple",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"description": "Use GPT (any ChatGPT plan with Codex), DeepSeek and 400+ other models in the Claude Desktop Code tab and Claude Code while staying signed in to your Claude subscription — no third-party gateway mode. Several ChatGPT accounts that take over when one runs out, in Codex too.",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"workspaces": [
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
"url": "https://github.com/PBJ-2/clauderipple/issues"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"proper-lockfile": "^4.1.2"
|
|
80
|
+
"proper-lockfile": "^4.1.2",
|
|
81
|
+
"undici": "7.24.4"
|
|
81
82
|
}
|
|
82
83
|
}
|