dsh-mobile 0.8.1 → 0.8.3
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 +33 -0
- package/CONTRIBUTORS.md +30 -2
- package/README.en.md +7 -5
- package/README.md +7 -5
- package/SECURITY.md +1 -1
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/apps/mobile/README.md +8 -4
- package/apps/mobile/README.zh-CN.md +8 -4
- package/apps/mobile/release.json +3 -3
- package/docs/ATTACH_EXISTING_FRPS.en.md +2 -0
- package/docs/ATTACH_EXISTING_FRPS.md +2 -0
- package/docs/CLIENT_MODULES.en.md +6 -2
- package/docs/CLIENT_MODULES.md +6 -2
- package/docs/CONNECTION_DIAGNOSTICS.en.md +56 -0
- package/docs/CONNECTION_DIAGNOSTICS.md +56 -0
- package/docs/IROH.en.md +7 -1
- package/docs/IROH.md +7 -1
- package/docs/MOBILE_PLUGIN_ADAPTATION.en.md +1 -1
- package/docs/MOBILE_PLUGIN_ADAPTATION.md +1 -1
- package/docs/README.md +1 -0
- package/docs/SKIN_COMPATIBILITY.en.md +1 -1
- package/docs/SKIN_COMPATIBILITY.md +1 -1
- package/docs/SLOW_CONNECTIONS.en.md +6 -2
- package/docs/SLOW_CONNECTIONS.md +6 -2
- package/lib/cli.js +6 -12
- package/lib/cli.js.map +1 -1
- package/lib/client.js +772 -248
- package/lib/client.js.map +1 -1
- package/lib/extension-worker-runtime.mjs +4 -8
- package/lib/extension-worker-runtime.mjs.map +1 -1
- package/lib/index.d.mts +19 -89
- package/lib/index.mjs +397 -273
- package/lib/index.mjs.map +1 -1
- package/lib/mobile-compat.js +2 -2
- package/lib/mobile-compat.js.map +1 -1
- package/lib/mobile-layout.js +116 -33
- package/lib/mobile-layout.js.map +1 -1
- package/package.json +9 -7
- package/packages/question-fixes/lib/client.js +1 -2
- package/packages/question-fixes/lib/index.mjs +1 -2
- package/packages/question-fixes/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { parentPort, workerData } from "node:worker_threads";
|
|
|
2
2
|
import { inspect } from "node:util";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
|
-
|
|
5
|
+
// src/extension-worker-config.ts
|
|
6
6
|
function integer(value, name, fallback, minimum, maximum) {
|
|
7
7
|
const resolved = value ?? fallback;
|
|
8
8
|
if (typeof resolved !== "number" || !Number.isSafeInteger(resolved) || resolved < minimum || resolved > maximum) throw new Error(`hostExecution.${name} must be an integer from ${minimum} through ${maximum}`);
|
|
@@ -40,8 +40,7 @@ function resolveHostExecution(raw) {
|
|
|
40
40
|
logMessageBytes: integer(value.logMessageBytes, "logMessageBytes", 4096, 128, 65536)
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
//#region node_modules/@deepseek-ai/cosmokit/lib/index.js
|
|
43
|
+
// node_modules/@deepseek-ai/cosmokit/lib/index.js
|
|
45
44
|
/** Return true when a value is `null` or `undefined`. */
|
|
46
45
|
function isNullable(value) {
|
|
47
46
|
return value === null || value === void 0;
|
|
@@ -294,8 +293,7 @@ var Time;
|
|
|
294
293
|
}
|
|
295
294
|
Time.template = template;
|
|
296
295
|
})(Time || (Time = {}));
|
|
297
|
-
|
|
298
|
-
//#region node_modules/@deepseek-ai/schemastery/lib/index.mjs
|
|
296
|
+
// node_modules/@deepseek-ai/schemastery/lib/index.mjs
|
|
299
297
|
const kSchema = Symbol.for("schemastery");
|
|
300
298
|
const kValidationError = Symbol.for("ValidationError");
|
|
301
299
|
globalThis.__schemastery_index__ ??= 0;
|
|
@@ -969,8 +967,7 @@ function serializeWorkerResult(value) {
|
|
|
969
967
|
if (serialized === void 0) throw new Error("extension result is not JSON serializable");
|
|
970
968
|
return new TextEncoder().encode(serialized);
|
|
971
969
|
}
|
|
972
|
-
|
|
973
|
-
//#region src/extension-worker-runtime.ts
|
|
970
|
+
// src/extension-worker-runtime.ts
|
|
974
971
|
/**
|
|
975
972
|
* Worker-side runtime for opt-in local extension hosts.
|
|
976
973
|
*
|
|
@@ -1640,7 +1637,6 @@ async function runAction(id, name, deviceId, input) {
|
|
|
1640
1637
|
generationController.signal.removeEventListener("abort", onGenerationAbort);
|
|
1641
1638
|
}
|
|
1642
1639
|
}
|
|
1643
|
-
//#endregion
|
|
1644
1640
|
export {};
|
|
1645
1641
|
|
|
1646
1642
|
//# sourceMappingURL=extension-worker-runtime.mjs.map
|