dsh-mobile 0.8.1 → 0.8.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/CHANGELOG.md +20 -0
- package/CONTRIBUTORS.md +24 -2
- package/README.en.md +6 -5
- package/README.md +6 -5
- package/SECURITY.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/CLIENT_MODULES.en.md +6 -2
- package/docs/CLIENT_MODULES.md +6 -2
- package/docs/CONNECTION_DIAGNOSTICS.en.md +50 -0
- package/docs/CONNECTION_DIAGNOSTICS.md +50 -0
- package/docs/IROH.en.md +6 -0
- package/docs/IROH.md +6 -0
- 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 +3 -1
- package/docs/SLOW_CONNECTIONS.md +3 -1
- package/lib/cli.js +6 -12
- package/lib/cli.js.map +1 -1
- package/lib/client.js +262 -119
- 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 +11 -89
- package/lib/index.mjs +343 -242
- 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 +2 -4
- package/lib/mobile-layout.js.map +1 -1
- package/package.json +8 -6
- 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
package/lib/cli.js
CHANGED
|
@@ -8,7 +8,7 @@ import { generate } from "selfsigned";
|
|
|
8
8
|
import { performance } from "node:perf_hooks";
|
|
9
9
|
import "@deepseek-ai/cordis";
|
|
10
10
|
import "@deepseek-ai/schemastery";
|
|
11
|
-
|
|
11
|
+
// src/exec-file.ts
|
|
12
12
|
/** Capture both output streams even when a desktop host wraps execFile without Node's promisify metadata. */
|
|
13
13
|
function execFileText(file, args, options = {}) {
|
|
14
14
|
return new Promise((resolve, reject) => {
|
|
@@ -32,8 +32,7 @@ function execFileText(file, args, options = {}) {
|
|
|
32
32
|
});
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
//#region src/private-file.ts
|
|
35
|
+
// src/private-file.ts
|
|
37
36
|
let userSidTask;
|
|
38
37
|
function commandFailureDetails(error) {
|
|
39
38
|
if (error === null || typeof error !== "object") return {};
|
|
@@ -153,8 +152,7 @@ Object.freeze([
|
|
|
153
152
|
[3758096384n, 4],
|
|
154
153
|
[4026531840n, 4]
|
|
155
154
|
]);
|
|
156
|
-
|
|
157
|
-
//#region src/managed-setup.ts
|
|
155
|
+
// src/managed-setup.ts
|
|
158
156
|
const VIRTUAL_INTERFACE_MARKERS = [
|
|
159
157
|
"bridge",
|
|
160
158
|
"docker",
|
|
@@ -511,8 +509,7 @@ async function refreshManagedServerCertificate(setup, address) {
|
|
|
511
509
|
keyFile: setup.tls.keyFile
|
|
512
510
|
});
|
|
513
511
|
}
|
|
514
|
-
|
|
515
|
-
//#region src/lan-setup.ts
|
|
512
|
+
// src/lan-setup.ts
|
|
516
513
|
const FIREWALL_TCP_RULE = "DSH Mobile HTTPS";
|
|
517
514
|
const FIREWALL_UDP_RULE = "DSH Mobile Discovery";
|
|
518
515
|
async function runElevatedPowerShell(script) {
|
|
@@ -603,8 +600,7 @@ Object.freeze({
|
|
|
603
600
|
assetBytes: 33554432,
|
|
604
601
|
assetDepth: 8
|
|
605
602
|
});
|
|
606
|
-
|
|
607
|
-
//#region src/extensions.ts
|
|
603
|
+
// src/extensions.ts
|
|
608
604
|
/** A controlled business failure returned by an extension action or route. */
|
|
609
605
|
var MobileExtensionError = class extends Error {
|
|
610
606
|
code;
|
|
@@ -621,8 +617,7 @@ function assertExtensionId(value) {
|
|
|
621
617
|
if (typeof value !== "string" || !/^[a-z][a-z0-9-]{0,63}$/u.test(value)) throw new MobileExtensionError("invalid_manifest", "extension id is invalid");
|
|
622
618
|
return value;
|
|
623
619
|
}
|
|
624
|
-
|
|
625
|
-
//#region src/cli.ts
|
|
620
|
+
// src/cli.ts
|
|
626
621
|
function parseOptions(args) {
|
|
627
622
|
let address;
|
|
628
623
|
let port = 3443;
|
|
@@ -816,7 +811,6 @@ main().catch((error) => {
|
|
|
816
811
|
console.error(error instanceof Error ? error.message : String(error));
|
|
817
812
|
process.exitCode = 1;
|
|
818
813
|
});
|
|
819
|
-
//#endregion
|
|
820
814
|
export {};
|
|
821
815
|
|
|
822
816
|
//# sourceMappingURL=cli.js.map
|