@ai-matrx/desktop-protocol 0.21.52 → 0.21.55
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 +15 -0
- package/dist/client.cjs +17 -4
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +17 -4
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +18 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -5
- package/dist/index.d.ts +10 -5
- package/dist/index.js +18 -5
- package/dist/index.js.map +1 -1
- package/dist/{models--9189VUC.d.cts → models-qM7u4hzm.d.cts} +18 -10
- package/dist/{models--9189VUC.d.ts → models-qM7u4hzm.d.ts} +18 -10
- package/dist/react.d.cts +2 -0
- package/dist/react.d.ts +2 -0
- package/generated/desktop-protocol.schema.json +25 -2
- package/package.json +2 -2
package/dist/client.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BackoffOptions } from '@ai-matrx/data/realtime';
|
|
2
2
|
export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/data/realtime';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models
|
|
5
|
-
export { i as isDesktopProtocolError } from './models
|
|
4
|
+
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-qM7u4hzm.cjs';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-qM7u4hzm.cjs';
|
|
6
6
|
import { FrameHeader } from './frame.cjs';
|
|
7
7
|
|
|
8
8
|
/** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
|
package/dist/client.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BackoffOptions } from '@ai-matrx/data/realtime';
|
|
2
2
|
export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/data/realtime';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models
|
|
5
|
-
export { i as isDesktopProtocolError } from './models
|
|
4
|
+
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-qM7u4hzm.js';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-qM7u4hzm.js';
|
|
6
6
|
import { FrameHeader } from './frame.js';
|
|
7
7
|
|
|
8
8
|
/** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
|
package/dist/client.js
CHANGED
|
@@ -112,7 +112,7 @@ import { z as z2 } from "zod";
|
|
|
112
112
|
import { z } from "zod";
|
|
113
113
|
import { UUID_SHAPE_PATTERN } from "@ai-matrx/kit/uuid";
|
|
114
114
|
var PROTOCOL_MAJOR = 1;
|
|
115
|
-
var PROTOCOL_MINOR =
|
|
115
|
+
var PROTOCOL_MINOR = 58;
|
|
116
116
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
117
117
|
var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
118
118
|
var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -854,8 +854,17 @@ var ModelsLlmStatusResult = z9.strictObject({
|
|
|
854
854
|
/** Why the last start or download failed, one human line; null otherwise. */
|
|
855
855
|
error: z9.string().max(300).nullable()
|
|
856
856
|
});
|
|
857
|
-
var ModelsLlmInstallParams = z9.strictObject({
|
|
858
|
-
|
|
857
|
+
var ModelsLlmInstallParams = z9.strictObject({
|
|
858
|
+
model: TextModelId,
|
|
859
|
+
/** (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. */
|
|
860
|
+
hf_token: z9.string().min(8).max(512).optional()
|
|
861
|
+
});
|
|
862
|
+
var ModelsLlmInstallResult = z9.strictObject({
|
|
863
|
+
model: TextModelId,
|
|
864
|
+
elapsed_ms: nonNegInt,
|
|
865
|
+
/** (1.58) path -> SHA-256 of every file whose catalog sha256 was null, hashed on this first download. */
|
|
866
|
+
hashed: z9.record(z9.string().max(512), z9.string().regex(/^[0-9a-f]{64}$/)).optional()
|
|
867
|
+
});
|
|
859
868
|
var ModelsLlmStartParams = z9.strictObject({
|
|
860
869
|
model: TextModelId,
|
|
861
870
|
/** Tokens of context, from the knob desktop.models/context_length. Omitted today means the service's fixed 4096 (optional until callers send it). */
|
|
@@ -877,7 +886,11 @@ var CatalogFile = z9.strictObject({
|
|
|
877
886
|
/** The pinned https URL it is downloaded from. */
|
|
878
887
|
url: z9.string().url().max(2048),
|
|
879
888
|
size_bytes: nonNegInt,
|
|
880
|
-
|
|
889
|
+
/**
|
|
890
|
+
* The file's SHA-256; (1.58) null when its source publishes none (a small non-LFS file on Hugging
|
|
891
|
+
* Face): the first download hashes it and reports it in `models.llm.install`'s `hashed`.
|
|
892
|
+
*/
|
|
893
|
+
sha256: Sha256Hex.nullable(),
|
|
881
894
|
/** weights, weights_shard, mmproj, config, tokenizer, … (ai.model_artifact.role). */
|
|
882
895
|
role: z9.string().max(32)
|
|
883
896
|
});
|