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/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
- //#region src/exec-file.ts
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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