@flaxia/node 0.7.1 → 0.7.2
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/assets/ai-inference.js +8 -8
- package/dist/assets/ai-model-registry.js +0 -5
- package/dist/client/SignalingClient.d.ts.map +1 -1
- package/dist/client/light-preloader.d.ts +11 -9
- package/dist/client/light-preloader.d.ts.map +1 -1
- package/dist/index.js +95 -99
- package/dist/workloads/ai-inference.d.ts +8 -7
- package/dist/workloads/ai-inference.d.ts.map +1 -1
- package/dist/workloads/ai-model-registry.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -136,12 +136,12 @@ function m(e) {
|
|
|
136
136
|
//#region src/workloads/ai-inference.ts
|
|
137
137
|
var h = /* @__PURE__ */ e({
|
|
138
138
|
DEFAULT_AI_MODEL_MAX_BYTES: () => DEFAULT_AI_MODEL_MAX_BYTES,
|
|
139
|
-
LIGHT_INFERENCE_PLAMO_TRANSLATE_DTYPE: () =>
|
|
140
|
-
LIGHT_INFERENCE_PLAMO_TRANSLATE_MODEL: () =>
|
|
141
|
-
LIGHT_INFERENCE_PLAMO_TRANSLATE_TASK: () =>
|
|
142
|
-
LIGHT_INFERENCE_TRANSLATE_DTYPE: () =>
|
|
143
|
-
LIGHT_INFERENCE_TRANSLATE_MODEL: () =>
|
|
144
|
-
LIGHT_INFERENCE_TRANSLATE_TASK: () =>
|
|
139
|
+
LIGHT_INFERENCE_PLAMO_TRANSLATE_DTYPE: () => S,
|
|
140
|
+
LIGHT_INFERENCE_PLAMO_TRANSLATE_MODEL: () => b,
|
|
141
|
+
LIGHT_INFERENCE_PLAMO_TRANSLATE_TASK: () => x,
|
|
142
|
+
LIGHT_INFERENCE_TRANSLATE_DTYPE: () => T,
|
|
143
|
+
LIGHT_INFERENCE_TRANSLATE_MODEL: () => C,
|
|
144
|
+
LIGHT_INFERENCE_TRANSLATE_TASK: () => w,
|
|
145
145
|
MAX_AI_INPUT_CHARS: () => MAX_AI_INPUT_CHARS,
|
|
146
146
|
MAX_AI_INPUT_ITEMS: () => 64,
|
|
147
147
|
MAX_PENDING_TOKEN_CALLBACKS: () => 64,
|
|
@@ -180,7 +180,7 @@ var h = /* @__PURE__ */ e({
|
|
|
180
180
|
], _ = new p(), v = 256 * 1024, y = (e) => {
|
|
181
181
|
let t = D();
|
|
182
182
|
return typeof e == "string" ? t.entries.some((t) => t.modelId === e && t.state === "ready") : t.entries.some((t) => t.modelId === e.modelId && t.revision === e.revision && t.dtype === e.dtype && t.backend === e.backend && t.state === "ready");
|
|
183
|
-
}, b = "
|
|
183
|
+
}, b = "TeamFlaxia/plamo-3-translate-0.8b-onnx", x = "text-generation", S = "q4f16", C = b, w = x, T = S, E = () => {
|
|
184
184
|
_.releaseAll();
|
|
185
185
|
}, D = () => _.getSnapshot(), O = (e, t) => {
|
|
186
186
|
let n = "", r = null, i = Promise.resolve(), a = 0, o = 0, s, c = !1, l = !1, u = (t) => {
|
|
@@ -323,4 +323,4 @@ var A = async (e, n) => {
|
|
|
323
323
|
}), (e) => e.dispose?.())).release();
|
|
324
324
|
};
|
|
325
325
|
//#endregion
|
|
326
|
-
export {
|
|
326
|
+
export { C as a, y as c, T as i, j as l, b as n, w as o, x as r, h as s, S as t };
|
|
@@ -20,11 +20,6 @@ var e = 512 * 1024 * 1024, t = 4 * 1024 ** 3, n = new Map(Object.entries({
|
|
|
20
20
|
revision: "main",
|
|
21
21
|
maxBytes: 1024 * 1024 * 1024
|
|
22
22
|
},
|
|
23
|
-
"Xenova/m2m100_418M": {
|
|
24
|
-
repo: "Xenova/m2m100_418M",
|
|
25
|
-
revision: "main",
|
|
26
|
-
maxBytes: e
|
|
27
|
-
},
|
|
28
23
|
"TeamFlaxia/plamo-3-translate-0.8b-onnx": {
|
|
29
24
|
repo: "TeamFlaxia/plamo-3-translate-0.8b-onnx",
|
|
30
25
|
revision: "1c8417ee1a72442440ad515b02f99186c81fd08a",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignalingClient.d.ts","sourceRoot":"","sources":["../../src/client/SignalingClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SignalingClient.d.ts","sourceRoot":"","sources":["../../src/client/SignalingClient.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAgB,oBAAoB,EAAE,UAAU,EAAyB,YAAY,EAAE,MAAM,aAAa,CAAC;AAqBvH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,YAAY,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA+9BD,eAAO,MAAM,cAAc,GAAI,QAAQ,UAAU,KAAG,oBAwDnD,CAAC"}
|
|
@@ -4,7 +4,7 @@ export interface LightPreloaderTarget {
|
|
|
4
4
|
dtype: string;
|
|
5
5
|
}
|
|
6
6
|
export interface LightPreloaderOptions {
|
|
7
|
-
/** Model id to keep warm. Defaults to the
|
|
7
|
+
/** Model id to keep warm. Defaults to the PLaMO translate model. */
|
|
8
8
|
model?: string;
|
|
9
9
|
task?: string;
|
|
10
10
|
dtype?: string;
|
|
@@ -13,9 +13,9 @@ export interface LightPreloaderOptions {
|
|
|
13
13
|
onPreloaded?: () => void;
|
|
14
14
|
/**
|
|
15
15
|
* Whether the device has enough memory headroom for a multi-hundred-MB
|
|
16
|
-
* model. Preloading
|
|
17
|
-
* wasm memory that the page then cannot reclaim, so the preloader must
|
|
18
|
-
* idle on constrained devices. Omitted = always allowed.
|
|
16
|
+
* model. Preloading the translate model on a 4 GB phone commits hundreds of
|
|
17
|
+
* MB of wasm memory that the page then cannot reclaim, so the preloader must
|
|
18
|
+
* stay idle on constrained devices. Omitted = always allowed.
|
|
19
19
|
*/
|
|
20
20
|
hasMemoryHeadroom?: () => boolean;
|
|
21
21
|
}
|
|
@@ -30,14 +30,16 @@ export type PreloadFn = (request: {
|
|
|
30
30
|
* preloaded as int8 does not satisfy a q4f16 ondeviceOnly task.
|
|
31
31
|
*/
|
|
32
32
|
export type IsPreloadedFn = (target: LightPreloaderTarget) => boolean;
|
|
33
|
-
/**
|
|
34
|
-
export declare const LIGHT_INFERENCE_TRANSLATE_MODEL = "Xenova/m2m100_418M";
|
|
35
|
-
export declare const LIGHT_INFERENCE_TRANSLATE_TASK = "translation";
|
|
36
|
-
export declare const LIGHT_INFERENCE_TRANSLATE_DTYPE = "q4f16";
|
|
37
|
-
/** Flaxia's default translate model, mirroring `LIGHT_INFERENCE_PLAMO_*`. */
|
|
33
|
+
/** Flaxia's translate model, mirroring `LIGHT_INFERENCE_PLAMO_*`. */
|
|
38
34
|
export declare const LIGHT_INFERENCE_PLAMO_TRANSLATE_MODEL = "TeamFlaxia/plamo-3-translate-0.8b-onnx";
|
|
39
35
|
export declare const LIGHT_INFERENCE_PLAMO_TRANSLATE_TASK = "text-generation";
|
|
40
36
|
export declare const LIGHT_INFERENCE_PLAMO_TRANSLATE_DTYPE = "q4f16";
|
|
37
|
+
/** @deprecated Use the PLaMO constants. Kept as aliases for host compatibility. */
|
|
38
|
+
export declare const LIGHT_INFERENCE_TRANSLATE_MODEL = "TeamFlaxia/plamo-3-translate-0.8b-onnx";
|
|
39
|
+
/** @deprecated Use the PLaMO constants. */
|
|
40
|
+
export declare const LIGHT_INFERENCE_TRANSLATE_TASK = "text-generation";
|
|
41
|
+
/** @deprecated Use the PLaMO constants. */
|
|
42
|
+
export declare const LIGHT_INFERENCE_TRANSLATE_DTYPE = "q4f16";
|
|
41
43
|
/**
|
|
42
44
|
* Light Inference idle preloader.
|
|
43
45
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"light-preloader.d.ts","sourceRoot":"","sources":["../../src/client/light-preloader.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MA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c;IAQvB,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,OAAO;IAV1B,OAAO,CAAC,KAAK,CAA8C;IAC3D,OAAO,CAAC,UAAU,CAAuB;IACzC,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;gBAG9B,eAAe,EAAE,MAAM,MAAM,EAC7B,OAAO,GAAE,qBAA0B,EACnC,WAAW,GAAE,aAA2B,EACxC,OAAO,GAAE,SAA0B;IAWtD,6EAA6E;IAC7E,KAAK,IAAI,IAAI;IAmBb,uEAAuE;IACvE,IAAI,IAAI,IAAI;IAUZ,OAAO,CAAC,eAAe;IAqBvB,OAAO,CAAC,iBAAiB;YAUX,UAAU;CAsBzB"}
|
package/dist/index.js
CHANGED
|
@@ -13,26 +13,26 @@ var x = {
|
|
|
13
13
|
acceptGateHint: "開示内容を確認できるよう、「同意して開始」はしばらくの間押せません。",
|
|
14
14
|
acceptLabel: "同意して開始",
|
|
15
15
|
rejectLabel: "拒否"
|
|
16
|
-
}, de = 4320 * 60 * 60 * 1e3, S = "flaxia_consent_record", fe = "flaxia_consent_granted", pe = "flaxia_consent_expiry", C = "flaxia_consent_denied", me = 1, he = 1e4,
|
|
17
|
-
function
|
|
16
|
+
}, de = 4320 * 60 * 60 * 1e3, S = "flaxia_consent_record", fe = "flaxia_consent_granted", pe = "flaxia_consent_expiry", C = "flaxia_consent_denied", me = 1, he = 1e4, ge = 2e3, _e = "flaxia-consent-integrity", ve = 1, w = "keys", ye = "consent-hmac-sha256-v1", be = (...e) => console.warn("[flaxia-node]", ...e), xe = /* @__PURE__ */ new Map();
|
|
17
|
+
function Se(e) {
|
|
18
18
|
try {
|
|
19
19
|
return localStorage.getItem(e);
|
|
20
20
|
} catch {
|
|
21
|
-
return
|
|
21
|
+
return xe.get(e) ?? null;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function T(e, t) {
|
|
25
25
|
try {
|
|
26
26
|
localStorage.setItem(e, t);
|
|
27
27
|
} catch {
|
|
28
|
-
|
|
28
|
+
xe.set(e, t);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
function E(e) {
|
|
32
32
|
try {
|
|
33
33
|
localStorage.removeItem(e);
|
|
34
34
|
} catch {
|
|
35
|
-
|
|
35
|
+
xe.delete(e);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
function Ce(e) {
|
|
@@ -54,14 +54,14 @@ function we() {
|
|
|
54
54
|
}
|
|
55
55
|
let r;
|
|
56
56
|
try {
|
|
57
|
-
r = n.open(
|
|
57
|
+
r = n.open(_e, ve);
|
|
58
58
|
} catch (e) {
|
|
59
59
|
t(e);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
62
|
r.onupgradeneeded = () => {
|
|
63
63
|
let e = r.result;
|
|
64
|
-
e.objectStoreNames.contains(
|
|
64
|
+
e.objectStoreNames.contains(w) || e.createObjectStore(w);
|
|
65
65
|
}, r.onsuccess = () => e(r.result), r.onerror = () => t(r.error ?? /* @__PURE__ */ Error("IndexedDB open failed")), r.onblocked = () => t(/* @__PURE__ */ Error("IndexedDB open blocked"));
|
|
66
66
|
});
|
|
67
67
|
}
|
|
@@ -74,7 +74,7 @@ var Ee = {
|
|
|
74
74
|
async load() {
|
|
75
75
|
let e = await we();
|
|
76
76
|
try {
|
|
77
|
-
let t = await Ce(e.transaction(
|
|
77
|
+
let t = await Ce(e.transaction(w, "readonly").objectStore(w).get(ye));
|
|
78
78
|
return Te(t) ? t : null;
|
|
79
79
|
} finally {
|
|
80
80
|
e.close();
|
|
@@ -83,8 +83,8 @@ var Ee = {
|
|
|
83
83
|
async save(e) {
|
|
84
84
|
let t = await we();
|
|
85
85
|
try {
|
|
86
|
-
let n = t.transaction(
|
|
87
|
-
n.objectStore(
|
|
86
|
+
let n = t.transaction(w, "readwrite");
|
|
87
|
+
n.objectStore(w).put(e, ye), await new Promise((e, t) => {
|
|
88
88
|
n.oncomplete = () => e(), n.onerror = () => t(n.error ?? /* @__PURE__ */ Error("IndexedDB write failed")), n.onabort = () => t(n.error ?? /* @__PURE__ */ Error("IndexedDB write aborted"));
|
|
89
89
|
});
|
|
90
90
|
} finally {
|
|
@@ -94,8 +94,8 @@ var Ee = {
|
|
|
94
94
|
async clear() {
|
|
95
95
|
let e = await we();
|
|
96
96
|
try {
|
|
97
|
-
let t = e.transaction(
|
|
98
|
-
t.objectStore(
|
|
97
|
+
let t = e.transaction(w, "readwrite");
|
|
98
|
+
t.objectStore(w).delete(ye), await new Promise((e, n) => {
|
|
99
99
|
t.oncomplete = () => e(), t.onerror = () => n(t.error ?? /* @__PURE__ */ Error("IndexedDB delete failed")), t.onabort = () => n(t.error ?? /* @__PURE__ */ Error("IndexedDB delete aborted"));
|
|
100
100
|
});
|
|
101
101
|
} finally {
|
|
@@ -155,13 +155,13 @@ function Ie(e) {
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
async function Le() {
|
|
158
|
-
let e = await De(Oe.load(), null,
|
|
158
|
+
let e = await De(Oe.load(), null, ge);
|
|
159
159
|
if (e) return e;
|
|
160
160
|
let t = F();
|
|
161
161
|
if (!t) return null;
|
|
162
162
|
try {
|
|
163
163
|
let e = await t.generateKey(Ne, !1, ["sign", "verify"]);
|
|
164
|
-
return await De(Oe.save(e), void 0,
|
|
164
|
+
return await De(Oe.save(e), void 0, ge), e;
|
|
165
165
|
} catch {
|
|
166
166
|
return null;
|
|
167
167
|
}
|
|
@@ -208,38 +208,38 @@ function Be(e) {
|
|
|
208
208
|
function Ve(e, t) {
|
|
209
209
|
return !(!Number.isFinite(e.grantedAt) || !Number.isFinite(e.expiry) || e.expiry <= t || e.grantedAt > e.expiry || e.expiry - e.grantedAt > 15552e6);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function He(e) {
|
|
212
212
|
return e.v === me && e.noticeVersion === 3 && e.origin === Me();
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
return Be(
|
|
214
|
+
function Ue() {
|
|
215
|
+
return Be(Se(S));
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
|
|
217
|
+
function We(e) {
|
|
218
|
+
T(S, JSON.stringify(e));
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function I() {
|
|
221
221
|
E(S);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function L() {
|
|
224
224
|
E(fe), E(pe);
|
|
225
225
|
}
|
|
226
|
-
var
|
|
226
|
+
var Ge = () => {
|
|
227
227
|
let e = O;
|
|
228
|
-
return !e || !k ? !1 : Ve(e, Date.now()) &&
|
|
229
|
-
},
|
|
230
|
-
async function
|
|
228
|
+
return !e || !k ? !1 : Ve(e, Date.now()) && He(e);
|
|
229
|
+
}, Ke = () => Se(C) === "true", R = () => Ge() ? "granted" : Ke() ? "denied" : "unset", z = () => (j ||= qe(), j);
|
|
230
|
+
async function qe() {
|
|
231
231
|
let e = ++M, t = N, n = null;
|
|
232
232
|
try {
|
|
233
233
|
n = await Le();
|
|
234
234
|
} catch {
|
|
235
235
|
n = null;
|
|
236
236
|
}
|
|
237
|
-
if (e !== M) return
|
|
238
|
-
D = n,
|
|
239
|
-
let r =
|
|
240
|
-
return r !== null && await ze(r) && Ve(r, Date.now()) &&
|
|
237
|
+
if (e !== M) return R();
|
|
238
|
+
D = n, L();
|
|
239
|
+
let r = Ue();
|
|
240
|
+
return r !== null && await ze(r) && Ve(r, Date.now()) && He(r) && r ? t === N && e === M && (O = r, k = !0) : r && !A && (I(), t === N && e === M && (O = null, k = !1)), R();
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function Je() {
|
|
243
243
|
let e = P;
|
|
244
244
|
return P = null, e && Date.now() - e.at <= he ? {
|
|
245
245
|
noticeVersion: e.noticeVersion,
|
|
@@ -249,76 +249,76 @@ function Ke() {
|
|
|
249
249
|
source: "host-managed"
|
|
250
250
|
} : null;
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function Ye(e) {
|
|
253
253
|
return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? de : Math.min(Math.floor(e), de);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function Xe(e, t) {
|
|
256
256
|
let n = Date.now();
|
|
257
257
|
return {
|
|
258
258
|
v: me,
|
|
259
259
|
noticeVersion: e,
|
|
260
260
|
origin: Me(),
|
|
261
261
|
grantedAt: n,
|
|
262
|
-
expiry: n +
|
|
262
|
+
expiry: n + Ye(t),
|
|
263
263
|
mac: ""
|
|
264
264
|
};
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
E(C),
|
|
268
|
-
let n =
|
|
269
|
-
return O = n, k = !0, A = !0, N += 1,
|
|
266
|
+
function Ze(e, t) {
|
|
267
|
+
E(C), L();
|
|
268
|
+
let n = Xe(e.noticeVersion, t);
|
|
269
|
+
return O = n, k = !0, A = !0, N += 1, We(n), n;
|
|
270
270
|
}
|
|
271
|
-
async function
|
|
271
|
+
async function Qe(e) {
|
|
272
272
|
try {
|
|
273
|
-
if (await
|
|
273
|
+
if (await z(), O !== e) return;
|
|
274
274
|
let t = await Re(e);
|
|
275
275
|
if (O !== e) return;
|
|
276
276
|
if (!t) {
|
|
277
|
-
|
|
277
|
+
I(), A = !1;
|
|
278
278
|
return;
|
|
279
279
|
}
|
|
280
280
|
let n = {
|
|
281
281
|
...e,
|
|
282
282
|
mac: t
|
|
283
283
|
};
|
|
284
|
-
O = n, k = !0,
|
|
284
|
+
O = n, k = !0, We(n), A = !1;
|
|
285
285
|
} catch {
|
|
286
|
-
O === e && (
|
|
286
|
+
O === e && (I(), A = !1);
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
var
|
|
290
|
-
let e =
|
|
289
|
+
var $e = () => {
|
|
290
|
+
let e = Je();
|
|
291
291
|
if (!e) {
|
|
292
|
-
|
|
292
|
+
be("refusing programmatic consent grant: consent requires the built-in banner to be rendered and accepted by the visitor (see setHostManagedConsentAllowed for host-managed UIs)");
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
|
-
|
|
296
|
-
},
|
|
295
|
+
Qe(Ze(e));
|
|
296
|
+
}, et = (e = 3) => {
|
|
297
297
|
P = {
|
|
298
298
|
noticeVersion: e,
|
|
299
299
|
at: Date.now()
|
|
300
300
|
};
|
|
301
|
-
},
|
|
301
|
+
}, tt = (e) => {
|
|
302
302
|
ke = e === !0;
|
|
303
|
-
},
|
|
304
|
-
|
|
305
|
-
},
|
|
306
|
-
|
|
307
|
-
},
|
|
303
|
+
}, B = () => {
|
|
304
|
+
I(), L(), O = null, k = !1, A = !1, N += 1, T(C, "true");
|
|
305
|
+
}, nt = () => {
|
|
306
|
+
I(), L(), E(C), O = null, k = !1, A = !1, P = null, D = null, M += 1, N += 1, j = null, De(Oe.clear(), void 0, ge);
|
|
307
|
+
}, rt = Se, it = T, V = E;
|
|
308
308
|
async function at() {
|
|
309
|
-
let e = N, t =
|
|
309
|
+
let e = N, t = Ue();
|
|
310
310
|
if (!t) {
|
|
311
311
|
O = null, k = !1;
|
|
312
312
|
return;
|
|
313
313
|
}
|
|
314
314
|
if (!F()) return;
|
|
315
315
|
if (!D) {
|
|
316
|
-
j = null, await
|
|
316
|
+
j = null, await z();
|
|
317
317
|
return;
|
|
318
318
|
}
|
|
319
|
-
let n = await ze(t), r =
|
|
319
|
+
let n = await ze(t), r = Ue();
|
|
320
320
|
if (e !== N || !r || JSON.stringify(r) !== JSON.stringify(t)) return;
|
|
321
|
-
let i = n && Ve(t, Date.now()) &&
|
|
321
|
+
let i = n && Ve(t, Date.now()) && He(t);
|
|
322
322
|
O = i ? t : null, k = i;
|
|
323
323
|
}
|
|
324
324
|
try {
|
|
@@ -335,7 +335,7 @@ var ot = () => {
|
|
|
335
335
|
return (e === "x" ? t : t & 3 | 8).toString(16);
|
|
336
336
|
});
|
|
337
337
|
};
|
|
338
|
-
|
|
338
|
+
z();
|
|
339
339
|
//#endregion
|
|
340
340
|
//#region src/consent/ConsentUI.ts
|
|
341
341
|
var H = "#6366f1", st = 1500, ct = 1500, lt = 6e4, ut = 80, dt = 40, ft = [
|
|
@@ -433,7 +433,7 @@ var wt = "\n .overlay {\n position: fixed;\n __flaxia_position__;\n pa
|
|
|
433
433
|
ne || (ne = !0, d.remove(), e?.());
|
|
434
434
|
};
|
|
435
435
|
g.addEventListener("click", () => {
|
|
436
|
-
!b || v() < te || (
|
|
436
|
+
!b || v() < te || (et(3), re(e));
|
|
437
437
|
}), _.addEventListener("click", () => {
|
|
438
438
|
re(t);
|
|
439
439
|
}), b || d.appendChild(h), d.append(g, _), this.root.append(u, d);
|
|
@@ -1114,11 +1114,11 @@ function $t(e, t) {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
//#endregion
|
|
1116
1116
|
//#region src/client/light-preloader.ts
|
|
1117
|
-
var en = "
|
|
1117
|
+
var en = "TeamFlaxia/plamo-3-translate-0.8b-onnx", tn = "text-generation", nn = "q4f16", rn = en, an = class {
|
|
1118
1118
|
constructor(e, t = {}, n = () => !1, r = async () => {}) {
|
|
1119
1119
|
this.getConsentState = e, this.options = t, this.isPreloaded = n, this.preload = r, this.timer = null, this.idleHandle = null, this.preloading = !1, this.stopped = !1, this.targets = t.targets ?? [{
|
|
1120
|
-
model: t.model ?? "
|
|
1121
|
-
task: t.task ?? "
|
|
1120
|
+
model: t.model ?? "TeamFlaxia/plamo-3-translate-0.8b-onnx",
|
|
1121
|
+
task: t.task ?? "text-generation",
|
|
1122
1122
|
dtype: t.dtype ?? "q4f16"
|
|
1123
1123
|
}];
|
|
1124
1124
|
}
|
|
@@ -1182,7 +1182,7 @@ function Q(e) {
|
|
|
1182
1182
|
} catch {}
|
|
1183
1183
|
return [...t];
|
|
1184
1184
|
}
|
|
1185
|
-
var
|
|
1185
|
+
var on = "flaxia_node_id", sn = "flaxia_node_token", cn = class {
|
|
1186
1186
|
receiveSwarmEnvelope(e) {
|
|
1187
1187
|
let t = b(e);
|
|
1188
1188
|
!t || ![...this.swarmSessions.values()].includes(t.sessionId) || (this.swarmInboundChain = this.swarmInboundChain.then(async () => {
|
|
@@ -1257,7 +1257,7 @@ var cn = "flaxia_node_id", ln = "flaxia_node_token", un = class {
|
|
|
1257
1257
|
}
|
|
1258
1258
|
async connect() {
|
|
1259
1259
|
if (this.destroyed) return;
|
|
1260
|
-
if (
|
|
1260
|
+
if (R() !== "granted") {
|
|
1261
1261
|
this.disconnect();
|
|
1262
1262
|
return;
|
|
1263
1263
|
}
|
|
@@ -1272,7 +1272,7 @@ var cn = "flaxia_node_id", ln = "flaxia_node_token", un = class {
|
|
|
1272
1272
|
if (this.setupMobileLifecycleHandlers(), this.suspended) return;
|
|
1273
1273
|
let e = await this.obtainToken();
|
|
1274
1274
|
if (this.destroyed || this.suspended) return;
|
|
1275
|
-
if (
|
|
1275
|
+
if (R() !== "granted") {
|
|
1276
1276
|
X("connect cancelled because consent was revoked while obtaining a token");
|
|
1277
1277
|
return;
|
|
1278
1278
|
}
|
|
@@ -1384,13 +1384,13 @@ var cn = "flaxia_node_id", ln = "flaxia_node_token", un = class {
|
|
|
1384
1384
|
r && this.retireSwarmSession(r), this.workerPool.abort(i, n) && this.abortedTasks.add(i), X(`task abort received taskId=${t} error=${n}`);
|
|
1385
1385
|
}
|
|
1386
1386
|
async sendHeartbeat(e) {
|
|
1387
|
-
if (this.ws !== e || e.readyState !== WebSocket.OPEN ||
|
|
1387
|
+
if (this.ws !== e || e.readyState !== WebSocket.OPEN || R() !== "granted") return;
|
|
1388
1388
|
let t = (this.config.capabilities ?? ["ai-inference", "image-process"]).includes("swarm-inference") && this.config.allowModelDownload === !0, n = navigator.deviceMemory, r = await kt({
|
|
1389
1389
|
cpuLoad: this.workerPool.hasCpuLoadSample ? this.workerPool.lastCpuLoad : null,
|
|
1390
1390
|
deviceMemory: n,
|
|
1391
1391
|
probeGpu: t
|
|
1392
1392
|
});
|
|
1393
|
-
this.ws !== e || e.readyState !== WebSocket.OPEN ||
|
|
1393
|
+
this.ws !== e || e.readyState !== WebSocket.OPEN || R() !== "granted" || this.send({
|
|
1394
1394
|
type: "pong",
|
|
1395
1395
|
cpuLoad: this.workerPool.hasCpuLoadSample ? this.workerPool.lastCpuLoad : null,
|
|
1396
1396
|
resources: r,
|
|
@@ -1412,7 +1412,7 @@ var cn = "flaxia_node_id", ln = "flaxia_node_token", un = class {
|
|
|
1412
1412
|
for (let e of this.swarmPeerTransports.values()) e.close();
|
|
1413
1413
|
this.swarmPeerTransports.clear(), this.swarmPeerMetadata.clear();
|
|
1414
1414
|
try {
|
|
1415
|
-
delete window[
|
|
1415
|
+
delete window[ln];
|
|
1416
1416
|
} catch {}
|
|
1417
1417
|
try {
|
|
1418
1418
|
this.workerPool.terminate();
|
|
@@ -1435,7 +1435,7 @@ var cn = "flaxia_node_id", ln = "flaxia_node_token", un = class {
|
|
|
1435
1435
|
!this.suspended || this.destroyed || (X("resumed"), this.suspended = !1, this.workerPool.resume(), this.connect());
|
|
1436
1436
|
}
|
|
1437
1437
|
async obtainToken() {
|
|
1438
|
-
let e = () =>
|
|
1438
|
+
let e = () => R() === "granted";
|
|
1439
1439
|
if (!e()) return null;
|
|
1440
1440
|
try {
|
|
1441
1441
|
if (this.cachedToken && this.cachedToken.expiresAt > Date.now() + 6e4) return X(`token cached nodeId=${this.cachedToken.nodeId} expiresIn=${Math.round((this.cachedToken.expiresAt - Date.now()) / 1e3)}s`), this.cachedToken;
|
|
@@ -1590,7 +1590,7 @@ var cn = "flaxia_node_id", ln = "flaxia_node_token", un = class {
|
|
|
1590
1590
|
}
|
|
1591
1591
|
async runLocalAiInference(t, n) {
|
|
1592
1592
|
if (!this.workerPool) throw new e("No running Crowd node on this device", "node_not_running");
|
|
1593
|
-
if (
|
|
1593
|
+
if (R() !== "granted") throw new e("Crowd consent is not granted", "consent_not_granted");
|
|
1594
1594
|
let r = `local-${typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : `${Date.now()}-${Math.random()}`}`;
|
|
1595
1595
|
return await this.workerPool.run(r, "ai-inference", t, 3e5, n, {
|
|
1596
1596
|
maxCpuLoad: this.effectiveMaxCpuLoad(),
|
|
@@ -1610,15 +1610,11 @@ var cn = "flaxia_node_id", ln = "flaxia_node_token", un = class {
|
|
|
1610
1610
|
await this.workerPool.run(t, "ai-preload", e, 3e5, void 0, { maxCpuLoad: this.effectiveMaxCpuLoad() });
|
|
1611
1611
|
}
|
|
1612
1612
|
startLightPreloader() {
|
|
1613
|
-
this.lightPreloader && this.lightPreloader.stop(), this.lightPreloader = new
|
|
1613
|
+
this.lightPreloader && this.lightPreloader.stop(), this.lightPreloader = new an(() => R(), {
|
|
1614
1614
|
targets: [{
|
|
1615
1615
|
model: en,
|
|
1616
1616
|
task: tn,
|
|
1617
1617
|
dtype: nn
|
|
1618
|
-
}, {
|
|
1619
|
-
model: rn,
|
|
1620
|
-
task: an,
|
|
1621
|
-
dtype: on
|
|
1622
1618
|
}],
|
|
1623
1619
|
onPreloaded: () => {},
|
|
1624
1620
|
hasMemoryHeadroom: () => v()
|
|
@@ -1680,42 +1676,42 @@ var cn = "flaxia_node_id", ln = "flaxia_node_token", un = class {
|
|
|
1680
1676
|
refreshMobileLifecycle() {
|
|
1681
1677
|
this.mobileLifecycleDecision().suspend ? this.suspend() : this.suspended && this.resume();
|
|
1682
1678
|
}
|
|
1683
|
-
}, $ = "__flaxia_node_signal_client",
|
|
1684
|
-
if (
|
|
1679
|
+
}, $ = "__flaxia_node_signal_client", ln = "__flaxia_node_init_started", un = "__flaxia_node_controller", dn = (e) => {
|
|
1680
|
+
if (R() !== "granted") {
|
|
1685
1681
|
Z("refusing to start the node without a granted consent record");
|
|
1686
1682
|
return;
|
|
1687
1683
|
}
|
|
1688
1684
|
let t = window[$];
|
|
1689
|
-
t && t.disconnect(),
|
|
1690
|
-
let n = new URL("./worker.js", "" + import.meta.url).href, r = new Et(n), i =
|
|
1691
|
-
i || (i = ot(),
|
|
1692
|
-
let a = new
|
|
1685
|
+
t && t.disconnect(), V(sn);
|
|
1686
|
+
let n = new URL("./worker.js", "" + import.meta.url).href, r = new Et(n), i = rt(on);
|
|
1687
|
+
i || (i = ot(), it(on, i));
|
|
1688
|
+
let a = new cn(e, r, i);
|
|
1693
1689
|
window[$] = a, a.connect();
|
|
1694
|
-
},
|
|
1690
|
+
}, fn = class {
|
|
1695
1691
|
constructor(e) {
|
|
1696
1692
|
this.config = e;
|
|
1697
1693
|
}
|
|
1698
1694
|
start() {
|
|
1699
|
-
this.isRunning() || !
|
|
1695
|
+
this.isRunning() || !Ge() || dn(this.config);
|
|
1700
1696
|
}
|
|
1701
1697
|
stop() {
|
|
1702
1698
|
let e = window[$];
|
|
1703
|
-
e && e.disconnect(), delete window[$], delete window[
|
|
1699
|
+
e && e.disconnect(), delete window[$], delete window[ln];
|
|
1704
1700
|
}
|
|
1705
1701
|
isRunning() {
|
|
1706
1702
|
return !!window[$];
|
|
1707
1703
|
}
|
|
1708
1704
|
getConsentState() {
|
|
1709
|
-
return
|
|
1705
|
+
return R();
|
|
1710
1706
|
}
|
|
1711
1707
|
grant() {
|
|
1712
|
-
|
|
1708
|
+
$e();
|
|
1713
1709
|
}
|
|
1714
1710
|
deny() {
|
|
1715
|
-
|
|
1711
|
+
B(), this.stop(), V(sn);
|
|
1716
1712
|
}
|
|
1717
1713
|
clearConsent() {
|
|
1718
|
-
|
|
1714
|
+
nt(), this.stop(), V(sn);
|
|
1719
1715
|
}
|
|
1720
1716
|
async runLocalAiInference(t, n) {
|
|
1721
1717
|
let r = window[$];
|
|
@@ -1731,29 +1727,29 @@ var cn = "flaxia_node_id", ln = "flaxia_node_token", un = class {
|
|
|
1731
1727
|
if (!n) throw new e("No running Crowd node on this device", "node_not_running");
|
|
1732
1728
|
await n.preloadAiModel(t);
|
|
1733
1729
|
}
|
|
1734
|
-
},
|
|
1735
|
-
let t = window[
|
|
1730
|
+
}, pn = (e) => {
|
|
1731
|
+
let t = window[un];
|
|
1736
1732
|
if (t) return t;
|
|
1737
|
-
let n = new
|
|
1738
|
-
window[
|
|
1739
|
-
let r =
|
|
1733
|
+
let n = new fn(e);
|
|
1734
|
+
window[un] = n, window[ln] = !0;
|
|
1735
|
+
let r = R();
|
|
1740
1736
|
if (r === "granted") return n.start(), n;
|
|
1741
1737
|
if (r === "denied") return n;
|
|
1742
1738
|
if (e.consent.onConsentRequired) return e.consent.onConsentRequired({
|
|
1743
1739
|
state: r,
|
|
1744
1740
|
accept: () => {
|
|
1745
|
-
|
|
1741
|
+
$e(), n.start();
|
|
1746
1742
|
},
|
|
1747
1743
|
reject: () => {
|
|
1748
|
-
|
|
1744
|
+
B();
|
|
1749
1745
|
}
|
|
1750
1746
|
}), n;
|
|
1751
1747
|
let i = document.createElement("div");
|
|
1752
1748
|
return i.id = "flaxia-consent-container", document.body.appendChild(i), new Tt(i, e.consent, () => {
|
|
1753
|
-
|
|
1749
|
+
$e(), i.remove(), n.start();
|
|
1754
1750
|
}, () => {
|
|
1755
|
-
|
|
1751
|
+
B(), i.remove();
|
|
1756
1752
|
}), n;
|
|
1757
1753
|
};
|
|
1758
1754
|
//#endregion
|
|
1759
|
-
export {
|
|
1755
|
+
export { nn as LIGHT_INFERENCE_PLAMO_TRANSLATE_DTYPE, ue as LIGHT_INFERENCE_PLAMO_TRANSLATE_DTYPE_ID, en as LIGHT_INFERENCE_PLAMO_TRANSLATE_MODEL, se as LIGHT_INFERENCE_PLAMO_TRANSLATE_MODEL_ID, tn as LIGHT_INFERENCE_PLAMO_TRANSLATE_TASK, le as LIGHT_INFERENCE_PLAMO_TRANSLATE_TASK_ID, ae as LIGHT_INFERENCE_TRANSLATE_DTYPE, rn as LIGHT_INFERENCE_TRANSLATE_MODEL, re as LIGHT_INFERENCE_TRANSLATE_MODEL_ID, ce as LIGHT_INFERENCE_TRANSLATE_TASK, R as getFlaxiaNodeConsentState, pn as initFlaxiaNode, z as initFlaxiaNodeConsent, ie as isAiModelPreloaded, oe as preloadAiModel, tt as setFlaxiaNodeHostManagedConsent };
|
|
@@ -29,19 +29,20 @@ export interface AiModelCacheIdentity {
|
|
|
29
29
|
* different `dtype`/`backend`/`revision` does not pass.
|
|
30
30
|
*/
|
|
31
31
|
export declare const isAiModelPreloaded: (model: string | AiModelCacheIdentity) => boolean;
|
|
32
|
-
/** Model preloaded by the Light Inference idle preloader (small enough for WASM). */
|
|
33
|
-
export declare const LIGHT_INFERENCE_TRANSLATE_MODEL = "Xenova/m2m100_418M";
|
|
34
|
-
export declare const LIGHT_INFERENCE_TRANSLATE_TASK = "translation";
|
|
35
|
-
export declare const LIGHT_INFERENCE_TRANSLATE_DTYPE = "q4f16";
|
|
36
32
|
/**
|
|
37
|
-
* Flaxia's
|
|
33
|
+
* Flaxia's translate model. PLaMO 3 Translate 0.8B is a decoder-only
|
|
38
34
|
* text-generation model, so its Light Inference task is `text-generation`,
|
|
39
|
-
* not `translation`.
|
|
40
|
-
* serve instantly on device instead of answering ONDEVICE_UNAVAILABLE.
|
|
35
|
+
* not `translation`.
|
|
41
36
|
*/
|
|
42
37
|
export declare const LIGHT_INFERENCE_PLAMO_TRANSLATE_MODEL = "TeamFlaxia/plamo-3-translate-0.8b-onnx";
|
|
43
38
|
export declare const LIGHT_INFERENCE_PLAMO_TRANSLATE_TASK = "text-generation";
|
|
44
39
|
export declare const LIGHT_INFERENCE_PLAMO_TRANSLATE_DTYPE = "q4f16";
|
|
40
|
+
/** @deprecated Use the PLaMO constants. Kept as aliases for host compatibility. */
|
|
41
|
+
export declare const LIGHT_INFERENCE_TRANSLATE_MODEL = "TeamFlaxia/plamo-3-translate-0.8b-onnx";
|
|
42
|
+
/** @deprecated Use the PLaMO constants. */
|
|
43
|
+
export declare const LIGHT_INFERENCE_TRANSLATE_TASK = "text-generation";
|
|
44
|
+
/** @deprecated Use the PLaMO constants. */
|
|
45
|
+
export declare const LIGHT_INFERENCE_TRANSLATE_DTYPE = "q4f16";
|
|
45
46
|
/**
|
|
46
47
|
* Drops all cached model pipelines so the (potentially hundreds of MB of)
|
|
47
48
|
* transformers/onnxruntime memory can be garbage-collected. Called by the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-inference.d.ts","sourceRoot":"","sources":["../../src/workloads/ai-inference.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAsB,MAAM,aAAa,CAAC;AAC7F,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAgB7E,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,KAAK,iBAAiB,GACvB,MAAM,qBAAqB,CAAC;AAa7B,wEAAwE;AACxE,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAC9C,eAAO,MAAM,uBAAuB,QAAa,CAAC;AAElD;;;;;;;GAOG;AACH,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,GAAG,oBAAoB,KAAG,OAezE,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"ai-inference.d.ts","sourceRoot":"","sources":["../../src/workloads/ai-inference.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAsB,MAAM,aAAa,CAAC;AAC7F,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAgB7E,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,kBAAkB,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AC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,KAAG,OAAO,CAAC,IAAI,CA6Bf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-model-registry.d.ts","sourceRoot":"","sources":["../../src/workloads/ai-model-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,MAAM,WAAW,iBAAiB;IAChC,0FAA0F;IAC1F,IAAI,EAAE,MAAM,CAAC;IACb,qEAAqE;IACrE,QAAQ,EAAE,MAAM,CAAC;IACjB,iFAAiF;IACjF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8DAA8D;IAC9D,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,8CAA8C;AAC9C,eAAO,MAAM,0BAA0B,QAAoB,CAAC;AAC5D,kDAAkD;AAClD,eAAO,MAAM,sBAAsB,QAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"ai-model-registry.d.ts","sourceRoot":"","sources":["../../src/workloads/ai-model-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,MAAM,WAAW,iBAAiB;IAChC,0FAA0F;IAC1F,IAAI,EAAE,MAAM,CAAC;IACb,qEAAqE;IACrE,QAAQ,EAAE,MAAM,CAAC;IACjB,iFAAiF;IACjF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8DAA8D;IAC9D,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,8CAA8C;AAC9C,eAAO,MAAM,0BAA0B,QAAoB,CAAC;AAC5D,kDAAkD;AAClD,eAAO,MAAM,sBAAsB,QAAgB,CAAC;AAwDpD,sEAAsE;AACtE,eAAO,MAAM,kBAAkB,oCAAqC,CAAC;AACrE,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,iDAAkD,CAAC;AACjF,MAAM,MAAM,cAAc,GAAG,CA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