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.
@@ -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
- //#region src/extension-worker-config.ts
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
- //#endregion
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
- //#endregion
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
- //#endregion
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