@genkaku/dsh-worker-plugin 0.1.12 → 0.1.14
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/index.d.ts.map +1 -1
- package/lib/client.js +7 -1
- package/package.json +3 -3
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,eAAO,MAAQ,IAAI,UAAE,MAAM,qBAAE,MAAM;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,eAAO,MAAQ,IAAI,UAAE,MAAM,qBAAE,MAAM;;;;;;;;;aAKszQ,CAAC;oBAAqD,CAAC;YAA6C,CAAC;mBAAoD,CAAC;sBAAuD,CAAC;qBAAsD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;aAAy6D,CAAC;oBAAqD,CAAC;YAA6C,CAAC;mBAAoD,CAAC;sBAAuD,CAAC;qBAAsD,CAAC;;;;;;;;;;;;;;;;eAL/uV,KAAK,8GAIxC,CAAA"}
|
package/lib/client.js
CHANGED
|
@@ -45,7 +45,7 @@ var DASHBOARD_URL = `${ORIGIN}/genkaku`;
|
|
|
45
45
|
var inject = ["slots"];
|
|
46
46
|
var ZH = typeof navigator !== "undefined" && /^zh/i.test(navigator.language);
|
|
47
47
|
var t = (en, zh) => ZH ? zh : en;
|
|
48
|
-
var DEFAULT_PRICE = "
|
|
48
|
+
var DEFAULT_PRICE = "0.00";
|
|
49
49
|
var microToUsdc = (value) => {
|
|
50
50
|
const n = Number(value);
|
|
51
51
|
return Number.isFinite(n) ? (n / 1e6).toFixed(2) : DEFAULT_PRICE;
|
|
@@ -366,6 +366,12 @@ function Page() {
|
|
|
366
366
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { style: { margin: 0 }, children: "GenKaKu worker" }),
|
|
367
367
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { ...dim, marginTop: 4 }, children: status.role ?? "unknown role" }),
|
|
368
368
|
notice != null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { ...box, borderColor: "var(--dsw-alias-border-l3)" }, children: notice }),
|
|
369
|
+
error != null && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { style: { ...dim, fontSize: 12, marginTop: 8 }, children: [
|
|
370
|
+
t("Worker restarting\u2026", "worker \u6B63\u5728\u91CD\u555F\u2026"),
|
|
371
|
+
" (",
|
|
372
|
+
error,
|
|
373
|
+
")"
|
|
374
|
+
] }),
|
|
369
375
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Section, { title: "Ollama", children: ollama == null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: dim, children: t("Checking the local Ollama service\u2026", "\u6B63\u5728\u6AA2\u67E5\u672C\u6A5F Ollama \u670D\u52D9\u2026") }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
370
376
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { style: row, children: [
|
|
371
377
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genkaku/dsh-worker-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "Share this machine's Ollama models on the GenKaKu network",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@genkaku/
|
|
42
|
-
"@genkaku/
|
|
41
|
+
"@genkaku/protocol": "0.1.10",
|
|
42
|
+
"@genkaku/dsh-runtime": "0.1.13"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@deepseek-ai/cordis": "^4.1.0"
|