@zerogpu/browser-extension-sdk 0.2.0-dev.202607231429.gf080a5e → 0.2.0-dev.202607241630.gdb7f26a
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 +7 -6
- package/dist/assets/zerogpu-assets.json +2 -2
- package/dist/extension/zerogpu-offscreen.js +11 -3
- package/dist/extension/zerogpu-offscreen.js.map +1 -1
- package/dist/manifest.json +5 -5
- package/dist/v/{zerogpu-browser-sdk.07eacaf68fcd.umd.js → zerogpu-browser-sdk.75eb370e6d38.umd.js} +12 -4
- package/dist/v/zerogpu-browser-sdk.75eb370e6d38.umd.js.map +1 -0
- package/dist/zerogpu-browser-sdk.cjs +11 -3
- package/dist/zerogpu-browser-sdk.cjs.map +1 -1
- package/dist/zerogpu-browser-sdk.esm.js +11 -3
- package/dist/zerogpu-browser-sdk.esm.js.map +1 -1
- package/dist/zerogpu-browser-sdk.umd.js +11 -3
- package/dist/zerogpu-browser-sdk.umd.js.map +1 -1
- package/docs/auto-update-loader.md +4 -5
- package/package.json +1 -1
- package/dist/v/zerogpu-browser-sdk.07eacaf68fcd.umd.js.map +0 -1
package/README.md
CHANGED
|
@@ -123,12 +123,13 @@ to the stable `dist/zerogpu-browser-sdk.umd.js` bundle.
|
|
|
123
123
|
> works but pins the app to whatever build is live at load time — prefer the
|
|
124
124
|
> loader so updates are automatic.
|
|
125
125
|
|
|
126
|
-
**Release channels:** `js-sdk.zerogpu.ai` serves **
|
|
127
|
-
production deploy is gated on a `v
|
|
128
|
-
|
|
129
|
-
build. Development builds live on the separate
|
|
130
|
-
`staging-js-sdk.zerogpu.ai` domains (deployed from
|
|
131
|
-
point a test page at those to try unreleased
|
|
126
|
+
**Release channels:** `js-sdk.zerogpu.ai` serves **tagged releases only** — the
|
|
127
|
+
production deploy is gated on a `v*` git tag (release tags may carry a
|
|
128
|
+
prerelease suffix, e.g. `v2.1.8-alpha`), so an auto-updating embed can never
|
|
129
|
+
receive an untagged branch build. Development builds live on the separate
|
|
130
|
+
`dev-js-sdk.zerogpu.ai` / `staging-js-sdk.zerogpu.ai` domains (deployed from
|
|
131
|
+
the `dev`/`main` branches) — point a test page at those to try unreleased
|
|
132
|
+
builds.
|
|
132
133
|
|
|
133
134
|
## Configuration Options
|
|
134
135
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"sdkVersion": "0.2.0-dev.
|
|
2
|
+
"sdkVersion": "0.2.0-dev.202607241630.gdb7f26a+db7f26a",
|
|
3
3
|
"channel": "development",
|
|
4
4
|
"transformersVersion": "2.17.2",
|
|
5
5
|
"wllamaVersion": "2.3.5",
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
"wllama/single-thread/wllama.wasm",
|
|
15
15
|
"wllama/multi-thread/wllama.wasm"
|
|
16
16
|
],
|
|
17
|
-
"builtAt": "2026-07-
|
|
17
|
+
"builtAt": "2026-07-24T16:32:19.095Z"
|
|
18
18
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const SDK_VERSION = typeof "0.2.0-dev.
|
|
2
|
-
? "0.2.0-dev.
|
|
1
|
+
const SDK_VERSION = typeof "0.2.0-dev.202607241630.gdb7f26a+db7f26a" === 'string' && "0.2.0-dev.202607241630.gdb7f26a+db7f26a".length > 0
|
|
2
|
+
? "0.2.0-dev.202607241630.gdb7f26a+db7f26a"
|
|
3
3
|
: '0.0.0-dev';
|
|
4
4
|
|
|
5
5
|
const ORCHESTRATOR_BASE_URL = typeof "https://devices.zerogpu.ai" === 'string' && "https://devices.zerogpu.ai".length > 0
|
|
@@ -2097,7 +2097,15 @@ const evaluateResourceGate = async (model, stage, deviceInfo) => {
|
|
|
2097
2097
|
if (stage === 'download') {
|
|
2098
2098
|
try {
|
|
2099
2099
|
const estimate = await navigator.storage?.estimate?.();
|
|
2100
|
-
|
|
2100
|
+
// quota > 0 is required for the numbers to mean anything: embedded
|
|
2101
|
+
// WebViews (Telegram's iOS WKWebView above all) implement estimate()
|
|
2102
|
+
// but answer quota=0 — "no space promised", not "no space". Writes
|
|
2103
|
+
// there routinely succeed anyway, and a genuinely full origin always
|
|
2104
|
+
// reports quota > 0 with usage ≈ quota, so zero carries no signal:
|
|
2105
|
+
// treat it like an absent API and let the download itself decide.
|
|
2106
|
+
// (2026-07-24 prod: quota=0 fail-closed kept every iOS mini-app
|
|
2107
|
+
// device in a register → preflight_blocked → inactive loop.)
|
|
2108
|
+
if (estimate && typeof estimate.quota === 'number' && typeof estimate.usage === 'number' && estimate.quota > 0) {
|
|
2101
2109
|
const free = estimate.quota - estimate.usage;
|
|
2102
2110
|
if (sizeBytes * guardrails.storageHeadroom > free) {
|
|
2103
2111
|
return {
|