@ai-matrx/desktop-protocol 0.21.52 → 0.21.53

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.cjs CHANGED
@@ -901,7 +901,7 @@ module.exports = __toCommonJS(src_exports);
901
901
  var import_zod = require("zod");
902
902
  var import_uuid = require("@ai-matrx/kit/uuid");
903
903
  var PROTOCOL_MAJOR = 1;
904
- var PROTOCOL_MINOR = 57;
904
+ var PROTOCOL_MINOR = 58;
905
905
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
906
906
  var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
907
907
  var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -1804,8 +1804,17 @@ var ModelsLlmStatusResult = import_zod10.z.strictObject({
1804
1804
  /** Why the last start or download failed, one human line; null otherwise. */
1805
1805
  error: import_zod10.z.string().max(300).nullable()
1806
1806
  });
1807
- var ModelsLlmInstallParams = import_zod10.z.strictObject({ model: TextModelId });
1808
- var ModelsLlmInstallResult = import_zod10.z.strictObject({ model: TextModelId, elapsed_ms: nonNegInt });
1807
+ var ModelsLlmInstallParams = import_zod10.z.strictObject({
1808
+ model: TextModelId,
1809
+ /** (1.58) The person's own Hugging Face token for this download (gated/private files): sent only to Hugging Face hosts, never stored or logged. */
1810
+ hf_token: import_zod10.z.string().min(8).max(512).optional()
1811
+ });
1812
+ var ModelsLlmInstallResult = import_zod10.z.strictObject({
1813
+ model: TextModelId,
1814
+ elapsed_ms: nonNegInt,
1815
+ /** (1.58) path -> SHA-256 of every file whose catalog sha256 was null, hashed on this first download. */
1816
+ hashed: import_zod10.z.record(import_zod10.z.string().max(512), import_zod10.z.string().regex(/^[0-9a-f]{64}$/)).optional()
1817
+ });
1809
1818
  var ModelsLlmStartParams = import_zod10.z.strictObject({
1810
1819
  model: TextModelId,
1811
1820
  /** Tokens of context, from the knob desktop.models/context_length. Omitted today means the service's fixed 4096 (optional until callers send it). */
@@ -1827,7 +1836,11 @@ var CatalogFile = import_zod10.z.strictObject({
1827
1836
  /** The pinned https URL it is downloaded from. */
1828
1837
  url: import_zod10.z.string().url().max(2048),
1829
1838
  size_bytes: nonNegInt,
1830
- sha256: Sha256Hex,
1839
+ /**
1840
+ * The file's SHA-256; (1.58) null when its source publishes none (a small non-LFS file on Hugging
1841
+ * Face): the first download hashes it and reports it in `models.llm.install`'s `hashed`.
1842
+ */
1843
+ sha256: Sha256Hex.nullable(),
1831
1844
  /** weights, weights_shard, mmproj, config, tokenizer, … (ai.model_artifact.role). */
1832
1845
  role: import_zod10.z.string().max(32)
1833
1846
  });