@ai-matrx/desktop-protocol 0.21.39 → 0.21.43
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 +29 -2
- 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 +20 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -5
- package/dist/index.d.ts +25 -5
- package/dist/index.js +20 -5
- package/dist/index.js.map +1 -1
- package/dist/{models-Ut2nuRzV.d.cts → models-HrUx_KP2.d.cts} +42 -0
- package/dist/{models-Ut2nuRzV.d.ts → models-HrUx_KP2.d.ts} +42 -0
- package/dist/react.d.cts +9 -0
- package/dist/react.d.ts +9 -0
- package/generated/desktop-protocol.schema.json +41 -1
- package/package.json +2 -2
package/dist/client.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BackoffOptions } from '@ai-matrx/realtime';
|
|
2
2
|
export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/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-HrUx_KP2.cjs';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-HrUx_KP2.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/realtime';
|
|
2
2
|
export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/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-HrUx_KP2.js';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-HrUx_KP2.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 = 48;
|
|
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_-]+$/);
|
|
@@ -843,7 +843,14 @@ var TextModelInfo = z9.strictObject({
|
|
|
843
843
|
installed: z9.boolean()
|
|
844
844
|
});
|
|
845
845
|
var LlmServerState = z9.enum(["stopped", "starting", "running", "failed"]);
|
|
846
|
-
var LlmRunning = z9.strictObject({
|
|
846
|
+
var LlmRunning = z9.strictObject({
|
|
847
|
+
id: TextModelId,
|
|
848
|
+
port: z9.int().min(1024).max(65535),
|
|
849
|
+
/** (1.48) What the service actually applied, echoed so the app can attest "read and applied". Optional until the service sends them. */
|
|
850
|
+
context_length: z9.int().min(512).max(131072).optional(),
|
|
851
|
+
gpu_layers: z9.int().min(-1).max(999).optional(),
|
|
852
|
+
threads: z9.int().min(1).max(512).optional()
|
|
853
|
+
});
|
|
847
854
|
var ModelsLlmStatusParams = z9.strictObject({});
|
|
848
855
|
var ModelsLlmStatusResult = z9.strictObject({
|
|
849
856
|
state: LlmServerState,
|
|
@@ -861,8 +868,14 @@ var ModelsLlmInstallParams = z9.strictObject({ model: TextModelId });
|
|
|
861
868
|
var ModelsLlmInstallResult = z9.strictObject({ model: TextModelId, elapsed_ms: nonNegInt });
|
|
862
869
|
var ModelsLlmStartParams = z9.strictObject({
|
|
863
870
|
model: TextModelId,
|
|
864
|
-
/** Tokens of context
|
|
865
|
-
context_length: z9.int().min(512).max(131072).optional()
|
|
871
|
+
/** Tokens of context, from the knob desktop.models/context_length. Omitted today means the service's fixed 4096 (optional until callers send it). */
|
|
872
|
+
context_length: z9.int().min(512).max(131072).optional(),
|
|
873
|
+
/** (1.48) Layers offloaded to the GPU; -1 = all. From the knob desktop.models/gpu_layers. */
|
|
874
|
+
gpu_layers: z9.int().min(-1).max(999).optional(),
|
|
875
|
+
/** (1.48) CPU threads, computed by the app from the knobs. */
|
|
876
|
+
threads: z9.int().min(1).max(512).optional(),
|
|
877
|
+
/** (1.48) Seconds to wait for the model to load, computed by the app from the knobs. */
|
|
878
|
+
load_timeout_s: z9.int().min(10).max(3600).optional()
|
|
866
879
|
});
|
|
867
880
|
var ModelsLlmStartResult = z9.strictObject({ running: LlmRunning, elapsed_ms: nonNegInt });
|
|
868
881
|
var ModelsLlmStopParams = z9.strictObject({});
|