@ai-matrx/desktop-protocol 0.21.76 → 0.21.78
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 +21 -1
- package/dist/{chunk-server-HOQE4M4I.js → chunk-server-2NXFL3HJ.js} +24 -4
- package/dist/chunk-server-2NXFL3HJ.js.map +1 -0
- package/dist/client.cjs +16 -2
- 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 +1 -1
- package/dist/index.cjs +30 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -5
- package/dist/index.d.ts +16 -5
- package/dist/index.js +12 -6
- package/dist/index.js.map +1 -1
- package/dist/{models-Bz88NHi0.d.cts → models-DzJnHq8i.d.cts} +71 -3
- package/dist/{models-Bz88NHi0.d.ts → models-DzJnHq8i.d.ts} +71 -3
- package/dist/react.d.cts +16 -1
- package/dist/react.d.ts +16 -1
- package/generated/desktop-protocol.schema.json +66 -2
- package/package.json +2 -2
- package/dist/chunk-server-HOQE4M4I.js.map +0 -1
|
@@ -6,7 +6,7 @@ import { z } from 'zod';
|
|
|
6
6
|
* never drift (see the `_assert*` lines there).
|
|
7
7
|
*/
|
|
8
8
|
type ErrorCodeName = "AUTH_REQUIRED" | "AUTH_INVALID" | "AUTH_EXPIRED" | "AUTH_FORBIDDEN" | "AUTH_DEVICE_REVOKED" | "PERMISSION_DENIED_OS" | "NOT_FOUND" | "CONFLICT" | "INVALID_PARAMS" | "RESOURCE_BUSY" | "RESOURCE_GONE" | "CANCELLED" | "TIMEOUT" | "PLATFORM_UNSUPPORTED" | "RATE_LIMITED" | "INTERNAL" | "PROTOCOL_VERSION_UNSUPPORTED" | "PROTOCOL_ERROR" | "UNKNOWN_OPERATION" | "DEVICE_OFFLINE" | "PAYLOAD_TOO_LARGE";
|
|
9
|
-
type ErrorReasonName = "not_a_directory" | "is_a_directory" | "directory_not_empty" | "already_exists" | "stale_write" | "binary_content" | "not_utf8_boundary" | "patch_no_match" | "patch_ambiguous" | "resource_exited" | "resource_expired" | "control_taken" | "window_exhausted" | "runtime_not_installed" | "model_not_installed" | "unsupported_media" | "download_failed" | "service_starting" | "service_restarted" | "service_failed" | "browser_not_connected" | "browser_ambiguous" | "browser_account_mismatch" | "browser_connection_off" | "awaiting_confirmation" | "tool_disabled_on_device";
|
|
9
|
+
type ErrorReasonName = "not_a_directory" | "is_a_directory" | "directory_not_empty" | "already_exists" | "stale_write" | "binary_content" | "not_utf8_boundary" | "patch_no_match" | "patch_ambiguous" | "resource_exited" | "resource_expired" | "control_taken" | "window_exhausted" | "runtime_not_installed" | "model_not_installed" | "unsupported_media" | "download_failed" | "service_starting" | "service_restarted" | "service_failed" | "browser_not_connected" | "browser_ambiguous" | "browser_account_mismatch" | "browser_connection_off" | "awaiting_confirmation" | "tool_disabled_on_device" | "model_not_running" | "model_server_unreachable";
|
|
10
10
|
interface ErrorData {
|
|
11
11
|
reason?: ErrorReasonName | undefined;
|
|
12
12
|
cap?: string | undefined;
|
|
@@ -314,6 +314,8 @@ declare const ErrorMsg: z.ZodObject<{
|
|
|
314
314
|
browser_connection_off: "browser_connection_off";
|
|
315
315
|
awaiting_confirmation: "awaiting_confirmation";
|
|
316
316
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
317
|
+
model_not_running: "model_not_running";
|
|
318
|
+
model_server_unreachable: "model_server_unreachable";
|
|
317
319
|
}>>;
|
|
318
320
|
cap: z.ZodOptional<z.ZodString>;
|
|
319
321
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -505,6 +507,8 @@ declare const CoreToClientMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
505
507
|
browser_connection_off: "browser_connection_off";
|
|
506
508
|
awaiting_confirmation: "awaiting_confirmation";
|
|
507
509
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
510
|
+
model_not_running: "model_not_running";
|
|
511
|
+
model_server_unreachable: "model_server_unreachable";
|
|
508
512
|
}>>;
|
|
509
513
|
cap: z.ZodOptional<z.ZodString>;
|
|
510
514
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -619,6 +623,8 @@ declare const ErrorReason: z.ZodEnum<{
|
|
|
619
623
|
browser_connection_off: "browser_connection_off";
|
|
620
624
|
awaiting_confirmation: "awaiting_confirmation";
|
|
621
625
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
626
|
+
model_not_running: "model_not_running";
|
|
627
|
+
model_server_unreachable: "model_server_unreachable";
|
|
622
628
|
}>;
|
|
623
629
|
type ErrorReason = z.output<typeof ErrorReason>;
|
|
624
630
|
declare const ProtocolErrorBody: z.ZodObject<{
|
|
@@ -675,6 +681,8 @@ declare const ProtocolErrorBody: z.ZodObject<{
|
|
|
675
681
|
browser_connection_off: "browser_connection_off";
|
|
676
682
|
awaiting_confirmation: "awaiting_confirmation";
|
|
677
683
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
684
|
+
model_not_running: "model_not_running";
|
|
685
|
+
model_server_unreachable: "model_server_unreachable";
|
|
678
686
|
}>>;
|
|
679
687
|
cap: z.ZodOptional<z.ZodString>;
|
|
680
688
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -711,7 +719,7 @@ type OpSpec = {
|
|
|
711
719
|
readonly params: z.ZodType;
|
|
712
720
|
readonly result: z.ZodType;
|
|
713
721
|
readonly kind: "unary" | "stream" | "resource";
|
|
714
|
-
readonly since: "1.0" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.8" | "1.9" | "1.10" | "1.11" | "1.16" | "1.17" | "1.19" | "1.20" | "1.21" | "1.22" | "1.23" | "1.24" | "1.26" | "1.28" | "1.29" | "1.30" | "1.31" | "1.37" | "1.38" | "1.39" | "1.40" | "1.43" | "1.44" | "1.45" | "1.47" | "1.50" | "1.55" | "1.56" | "1.64" | "1.70" | "1.72" | "1.73" | "1.74";
|
|
722
|
+
readonly since: "1.0" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.8" | "1.9" | "1.10" | "1.11" | "1.16" | "1.17" | "1.19" | "1.20" | "1.21" | "1.22" | "1.23" | "1.24" | "1.26" | "1.28" | "1.29" | "1.30" | "1.31" | "1.37" | "1.38" | "1.39" | "1.40" | "1.43" | "1.44" | "1.45" | "1.47" | "1.50" | "1.55" | "1.56" | "1.64" | "1.70" | "1.72" | "1.73" | "1.74" | "1.76";
|
|
715
723
|
readonly errors: readonly z.infer<typeof ErrorCode>[];
|
|
716
724
|
};
|
|
717
725
|
declare const OPS: {
|
|
@@ -1640,6 +1648,21 @@ declare const OPS: {
|
|
|
1640
1648
|
readonly since: "1.31";
|
|
1641
1649
|
readonly errors: readonly ["INTERNAL"];
|
|
1642
1650
|
};
|
|
1651
|
+
readonly "models.llm.chat": {
|
|
1652
|
+
readonly params: z.ZodObject<{
|
|
1653
|
+
model: z.ZodString;
|
|
1654
|
+
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1655
|
+
start_if_stopped: z.ZodOptional<z.ZodBoolean>;
|
|
1656
|
+
window_bytes: z.ZodOptional<z.ZodInt>;
|
|
1657
|
+
}, z.core.$strict>;
|
|
1658
|
+
readonly result: z.ZodObject<{
|
|
1659
|
+
model: z.ZodString;
|
|
1660
|
+
content_type: z.ZodString;
|
|
1661
|
+
}, z.core.$strict>;
|
|
1662
|
+
readonly kind: "stream";
|
|
1663
|
+
readonly since: "1.76";
|
|
1664
|
+
readonly errors: readonly ["NOT_FOUND", "RESOURCE_BUSY", "RESOURCE_GONE", "INVALID_PARAMS", "TIMEOUT", "CANCELLED", "RATE_LIMITED", "INTERNAL"];
|
|
1665
|
+
};
|
|
1643
1666
|
readonly "models.downloads.list": {
|
|
1644
1667
|
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1645
1668
|
readonly result: z.ZodObject<{
|
|
@@ -10211,6 +10234,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
10211
10234
|
browser_connection_off: "browser_connection_off";
|
|
10212
10235
|
awaiting_confirmation: "awaiting_confirmation";
|
|
10213
10236
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
10237
|
+
model_not_running: "model_not_running";
|
|
10238
|
+
model_server_unreachable: "model_server_unreachable";
|
|
10214
10239
|
}>;
|
|
10215
10240
|
readonly FsPatchEditFailure: z.ZodObject<{
|
|
10216
10241
|
edit_index: z.ZodInt;
|
|
@@ -10270,6 +10295,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
10270
10295
|
browser_connection_off: "browser_connection_off";
|
|
10271
10296
|
awaiting_confirmation: "awaiting_confirmation";
|
|
10272
10297
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
10298
|
+
model_not_running: "model_not_running";
|
|
10299
|
+
model_server_unreachable: "model_server_unreachable";
|
|
10273
10300
|
}>>;
|
|
10274
10301
|
cap: z.ZodOptional<z.ZodString>;
|
|
10275
10302
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -10423,6 +10450,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
10423
10450
|
browser_connection_off: "browser_connection_off";
|
|
10424
10451
|
awaiting_confirmation: "awaiting_confirmation";
|
|
10425
10452
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
10453
|
+
model_not_running: "model_not_running";
|
|
10454
|
+
model_server_unreachable: "model_server_unreachable";
|
|
10426
10455
|
}>>;
|
|
10427
10456
|
cap: z.ZodOptional<z.ZodString>;
|
|
10428
10457
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -10602,6 +10631,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
10602
10631
|
browser_connection_off: "browser_connection_off";
|
|
10603
10632
|
awaiting_confirmation: "awaiting_confirmation";
|
|
10604
10633
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
10634
|
+
model_not_running: "model_not_running";
|
|
10635
|
+
model_server_unreachable: "model_server_unreachable";
|
|
10605
10636
|
}>>;
|
|
10606
10637
|
cap: z.ZodOptional<z.ZodString>;
|
|
10607
10638
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -11774,6 +11805,16 @@ declare const NAMED_SCHEMAS: {
|
|
|
11774
11805
|
readonly ModelsLlmStopResult: z.ZodObject<{
|
|
11775
11806
|
stopped: z.ZodBoolean;
|
|
11776
11807
|
}, z.core.$strict>;
|
|
11808
|
+
readonly ModelsLlmChatParams: z.ZodObject<{
|
|
11809
|
+
model: z.ZodString;
|
|
11810
|
+
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11811
|
+
start_if_stopped: z.ZodOptional<z.ZodBoolean>;
|
|
11812
|
+
window_bytes: z.ZodOptional<z.ZodInt>;
|
|
11813
|
+
}, z.core.$strict>;
|
|
11814
|
+
readonly ModelsLlmChatResult: z.ZodObject<{
|
|
11815
|
+
model: z.ZodString;
|
|
11816
|
+
content_type: z.ZodString;
|
|
11817
|
+
}, z.core.$strict>;
|
|
11777
11818
|
readonly DownloadKind: z.ZodEnum<{
|
|
11778
11819
|
runtime: "runtime";
|
|
11779
11820
|
speech_model: "speech_model";
|
|
@@ -14182,6 +14223,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
14182
14223
|
browser_connection_off: "browser_connection_off";
|
|
14183
14224
|
awaiting_confirmation: "awaiting_confirmation";
|
|
14184
14225
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
14226
|
+
model_not_running: "model_not_running";
|
|
14227
|
+
model_server_unreachable: "model_server_unreachable";
|
|
14185
14228
|
}>>;
|
|
14186
14229
|
cap: z.ZodOptional<z.ZodString>;
|
|
14187
14230
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -14312,6 +14355,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
14312
14355
|
browser_connection_off: "browser_connection_off";
|
|
14313
14356
|
awaiting_confirmation: "awaiting_confirmation";
|
|
14314
14357
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
14358
|
+
model_not_running: "model_not_running";
|
|
14359
|
+
model_server_unreachable: "model_server_unreachable";
|
|
14315
14360
|
}>>;
|
|
14316
14361
|
cap: z.ZodOptional<z.ZodString>;
|
|
14317
14362
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -14414,6 +14459,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
14414
14459
|
browser_connection_off: "browser_connection_off";
|
|
14415
14460
|
awaiting_confirmation: "awaiting_confirmation";
|
|
14416
14461
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
14462
|
+
model_not_running: "model_not_running";
|
|
14463
|
+
model_server_unreachable: "model_server_unreachable";
|
|
14417
14464
|
}>>;
|
|
14418
14465
|
cap: z.ZodOptional<z.ZodString>;
|
|
14419
14466
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -21350,6 +21397,27 @@ declare const ModelsLlmStopResult: z.ZodObject<{
|
|
|
21350
21397
|
stopped: z.ZodBoolean;
|
|
21351
21398
|
}, z.core.$strict>;
|
|
21352
21399
|
type ModelsLlmStopResult = z.output<typeof ModelsLlmStopResult>;
|
|
21400
|
+
/**
|
|
21401
|
+
* (1.76) models.llm.chat (stream): one chat completion from the language model running on this
|
|
21402
|
+
* computer, through llama-server's OpenAI-compatible endpoint. `body` is an OpenAI chat-completions
|
|
21403
|
+
* body (messages, tools, tool_choice, sampling...); the core forwards it as sent with `stream: true`
|
|
21404
|
+
* and its `model` set to the local model. The unary result arrives first, then the stream's DATA
|
|
21405
|
+
* frames carry llama-server's server-sent events byte for byte (`data: {...}` chunks, tool-call
|
|
21406
|
+
* deltas included, `data: [DONE]` last). Cancel stops the generation.
|
|
21407
|
+
*/
|
|
21408
|
+
declare const ModelsLlmChatParams: z.ZodObject<{
|
|
21409
|
+
model: z.ZodString;
|
|
21410
|
+
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
21411
|
+
start_if_stopped: z.ZodOptional<z.ZodBoolean>;
|
|
21412
|
+
window_bytes: z.ZodOptional<z.ZodInt>;
|
|
21413
|
+
}, z.core.$strict>;
|
|
21414
|
+
type ModelsLlmChatParams = z.output<typeof ModelsLlmChatParams>;
|
|
21415
|
+
/** What answers: the model, and llama-server's content type (text/event-stream). */
|
|
21416
|
+
declare const ModelsLlmChatResult: z.ZodObject<{
|
|
21417
|
+
model: z.ZodString;
|
|
21418
|
+
content_type: z.ZodString;
|
|
21419
|
+
}, z.core.$strict>;
|
|
21420
|
+
type ModelsLlmChatResult = z.output<typeof ModelsLlmChatResult>;
|
|
21353
21421
|
declare const Sha256Hex: z.ZodString;
|
|
21354
21422
|
type Sha256Hex = z.output<typeof Sha256Hex>;
|
|
21355
21423
|
declare const MlCatalogSetResult: z.ZodObject<{
|
|
@@ -21464,4 +21532,4 @@ type MlServiceStatus = z.output<typeof MlServiceStatus>;
|
|
|
21464
21532
|
declare const ModelsStatusParams: z.ZodObject<{}, z.core.$strict>;
|
|
21465
21533
|
type ModelsStatusParams = z.output<typeof ModelsStatusParams>;
|
|
21466
21534
|
|
|
21467
|
-
export { MlStatusParams as $, type ErrorReasonName as A, BEARER_PREFIX as B, type CloseOutcome as C, DesktopProtocolError as D, EndReason as E, EventMsg as F, type EventName as G, FsPatchEditFailure as H, HelloMsg as I, LlamaServerBuild as J, LlmRunning as K, Limits as L, ModelsTranscribeResult as M, LlmServerState as N, type OpName as O, LocalModelKind as P, LocalModelRow as Q, MlCatalogSetParams as R, StreamMeta as S, TranscriptionModelId as T, MlCatalogSetResult as U, MlInstallPhase as V, Welcome as W, MlInstallProgress as X, MlRuntimeState as Y, MlServiceState as Z, MlServiceStatus as _, type OpParams as a, MlStatusResult as a0, ModelKey as a1, ModelsDownloadsCancelParams as a2, ModelsDownloadsCancelResult as a3, ModelsDownloadsListParams as a4, ModelsDownloadsListResult as a5, ModelsInstallParams as a6, ModelsInstallResult as a7,
|
|
21535
|
+
export { MlStatusParams as $, type ErrorReasonName as A, BEARER_PREFIX as B, type CloseOutcome as C, DesktopProtocolError as D, EndReason as E, EventMsg as F, type EventName as G, FsPatchEditFailure as H, HelloMsg as I, LlamaServerBuild as J, LlmRunning as K, Limits as L, ModelsTranscribeResult as M, LlmServerState as N, type OpName as O, LocalModelKind as P, LocalModelRow as Q, MlCatalogSetParams as R, StreamMeta as S, TranscriptionModelId as T, MlCatalogSetResult as U, MlInstallPhase as V, Welcome as W, MlInstallProgress as X, MlRuntimeState as Y, MlServiceState as Z, MlServiceStatus as _, type OpParams as a, MlStatusResult as a0, ModelKey as a1, ModelsDownloadsCancelParams as a2, ModelsDownloadsCancelResult as a3, ModelsDownloadsListParams as a4, ModelsDownloadsListResult as a5, ModelsInstallParams as a6, ModelsInstallResult as a7, ModelsLlmChatParams as a8, ModelsLlmChatResult as a9, SERVICES as aA, SUBPROTOCOL as aB, type ServiceId as aC, type ServiceOpName as aD, type ServiceOpSpec as aE, type ServiceSpec as aF, Sha256Hex as aG, StreamMsg as aH, TextModelId as aI, TextModelInfo as aJ, TranscriptSegment as aK, TranscriptionModelInfo as aL, UnusableTextModel as aM, closeRule as aN, isTerminalClose as aO, ModelsLlmInstallParams as aa, ModelsLlmInstallResult as ab, ModelsLlmStartParams as ac, ModelsLlmStartResult as ad, ModelsLlmStatusParams as ae, ModelsLlmStatusResult as af, ModelsLlmStopParams as ag, ModelsLlmStopResult as ah, ModelsLocalListParams as ai, ModelsLocalListResult as aj, ModelsLocalRemoveParams as ak, ModelsLocalRemoveResult as al, ModelsProgressEvent as am, ModelsStatusParams as an, ModelsStatusResult as ao, ModelsTranscribeParams as ap, NAMED_SCHEMAS as aq, type NamedSchemaId as ar, OpDescriptor as as, type OpSpec as at, PING_TEXT as au, PONG_TEXT as av, ProtocolErrorBody as aw, RelayMsg as ax, RequestMsg as ay, ResponseMsg as az, type OpResult as b, OPS as c, EVENTS as d, ClientType as e, MlProgress as f, CLOSE_RULES as g, CancelMsg as h, isDesktopProtocolError as i, CatalogFile as j, CatalogModelEntry as k, ClientToCoreMsg as l, type CloseAction as m, CloseCode as n, CloseCodeValue as o, type CloseRule as p, CoreToClientMsg as q, CreditMsg as r, DownloadKind as s, DownloadRow as t, EndMsg as u, ErrorCode as v, type ErrorCodeName as w, type ErrorData as x, ErrorMsg as y, ErrorReason as z };
|
|
@@ -6,7 +6,7 @@ import { z } from 'zod';
|
|
|
6
6
|
* never drift (see the `_assert*` lines there).
|
|
7
7
|
*/
|
|
8
8
|
type ErrorCodeName = "AUTH_REQUIRED" | "AUTH_INVALID" | "AUTH_EXPIRED" | "AUTH_FORBIDDEN" | "AUTH_DEVICE_REVOKED" | "PERMISSION_DENIED_OS" | "NOT_FOUND" | "CONFLICT" | "INVALID_PARAMS" | "RESOURCE_BUSY" | "RESOURCE_GONE" | "CANCELLED" | "TIMEOUT" | "PLATFORM_UNSUPPORTED" | "RATE_LIMITED" | "INTERNAL" | "PROTOCOL_VERSION_UNSUPPORTED" | "PROTOCOL_ERROR" | "UNKNOWN_OPERATION" | "DEVICE_OFFLINE" | "PAYLOAD_TOO_LARGE";
|
|
9
|
-
type ErrorReasonName = "not_a_directory" | "is_a_directory" | "directory_not_empty" | "already_exists" | "stale_write" | "binary_content" | "not_utf8_boundary" | "patch_no_match" | "patch_ambiguous" | "resource_exited" | "resource_expired" | "control_taken" | "window_exhausted" | "runtime_not_installed" | "model_not_installed" | "unsupported_media" | "download_failed" | "service_starting" | "service_restarted" | "service_failed" | "browser_not_connected" | "browser_ambiguous" | "browser_account_mismatch" | "browser_connection_off" | "awaiting_confirmation" | "tool_disabled_on_device";
|
|
9
|
+
type ErrorReasonName = "not_a_directory" | "is_a_directory" | "directory_not_empty" | "already_exists" | "stale_write" | "binary_content" | "not_utf8_boundary" | "patch_no_match" | "patch_ambiguous" | "resource_exited" | "resource_expired" | "control_taken" | "window_exhausted" | "runtime_not_installed" | "model_not_installed" | "unsupported_media" | "download_failed" | "service_starting" | "service_restarted" | "service_failed" | "browser_not_connected" | "browser_ambiguous" | "browser_account_mismatch" | "browser_connection_off" | "awaiting_confirmation" | "tool_disabled_on_device" | "model_not_running" | "model_server_unreachable";
|
|
10
10
|
interface ErrorData {
|
|
11
11
|
reason?: ErrorReasonName | undefined;
|
|
12
12
|
cap?: string | undefined;
|
|
@@ -314,6 +314,8 @@ declare const ErrorMsg: z.ZodObject<{
|
|
|
314
314
|
browser_connection_off: "browser_connection_off";
|
|
315
315
|
awaiting_confirmation: "awaiting_confirmation";
|
|
316
316
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
317
|
+
model_not_running: "model_not_running";
|
|
318
|
+
model_server_unreachable: "model_server_unreachable";
|
|
317
319
|
}>>;
|
|
318
320
|
cap: z.ZodOptional<z.ZodString>;
|
|
319
321
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -505,6 +507,8 @@ declare const CoreToClientMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
505
507
|
browser_connection_off: "browser_connection_off";
|
|
506
508
|
awaiting_confirmation: "awaiting_confirmation";
|
|
507
509
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
510
|
+
model_not_running: "model_not_running";
|
|
511
|
+
model_server_unreachable: "model_server_unreachable";
|
|
508
512
|
}>>;
|
|
509
513
|
cap: z.ZodOptional<z.ZodString>;
|
|
510
514
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -619,6 +623,8 @@ declare const ErrorReason: z.ZodEnum<{
|
|
|
619
623
|
browser_connection_off: "browser_connection_off";
|
|
620
624
|
awaiting_confirmation: "awaiting_confirmation";
|
|
621
625
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
626
|
+
model_not_running: "model_not_running";
|
|
627
|
+
model_server_unreachable: "model_server_unreachable";
|
|
622
628
|
}>;
|
|
623
629
|
type ErrorReason = z.output<typeof ErrorReason>;
|
|
624
630
|
declare const ProtocolErrorBody: z.ZodObject<{
|
|
@@ -675,6 +681,8 @@ declare const ProtocolErrorBody: z.ZodObject<{
|
|
|
675
681
|
browser_connection_off: "browser_connection_off";
|
|
676
682
|
awaiting_confirmation: "awaiting_confirmation";
|
|
677
683
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
684
|
+
model_not_running: "model_not_running";
|
|
685
|
+
model_server_unreachable: "model_server_unreachable";
|
|
678
686
|
}>>;
|
|
679
687
|
cap: z.ZodOptional<z.ZodString>;
|
|
680
688
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -711,7 +719,7 @@ type OpSpec = {
|
|
|
711
719
|
readonly params: z.ZodType;
|
|
712
720
|
readonly result: z.ZodType;
|
|
713
721
|
readonly kind: "unary" | "stream" | "resource";
|
|
714
|
-
readonly since: "1.0" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.8" | "1.9" | "1.10" | "1.11" | "1.16" | "1.17" | "1.19" | "1.20" | "1.21" | "1.22" | "1.23" | "1.24" | "1.26" | "1.28" | "1.29" | "1.30" | "1.31" | "1.37" | "1.38" | "1.39" | "1.40" | "1.43" | "1.44" | "1.45" | "1.47" | "1.50" | "1.55" | "1.56" | "1.64" | "1.70" | "1.72" | "1.73" | "1.74";
|
|
722
|
+
readonly since: "1.0" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.8" | "1.9" | "1.10" | "1.11" | "1.16" | "1.17" | "1.19" | "1.20" | "1.21" | "1.22" | "1.23" | "1.24" | "1.26" | "1.28" | "1.29" | "1.30" | "1.31" | "1.37" | "1.38" | "1.39" | "1.40" | "1.43" | "1.44" | "1.45" | "1.47" | "1.50" | "1.55" | "1.56" | "1.64" | "1.70" | "1.72" | "1.73" | "1.74" | "1.76";
|
|
715
723
|
readonly errors: readonly z.infer<typeof ErrorCode>[];
|
|
716
724
|
};
|
|
717
725
|
declare const OPS: {
|
|
@@ -1640,6 +1648,21 @@ declare const OPS: {
|
|
|
1640
1648
|
readonly since: "1.31";
|
|
1641
1649
|
readonly errors: readonly ["INTERNAL"];
|
|
1642
1650
|
};
|
|
1651
|
+
readonly "models.llm.chat": {
|
|
1652
|
+
readonly params: z.ZodObject<{
|
|
1653
|
+
model: z.ZodString;
|
|
1654
|
+
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1655
|
+
start_if_stopped: z.ZodOptional<z.ZodBoolean>;
|
|
1656
|
+
window_bytes: z.ZodOptional<z.ZodInt>;
|
|
1657
|
+
}, z.core.$strict>;
|
|
1658
|
+
readonly result: z.ZodObject<{
|
|
1659
|
+
model: z.ZodString;
|
|
1660
|
+
content_type: z.ZodString;
|
|
1661
|
+
}, z.core.$strict>;
|
|
1662
|
+
readonly kind: "stream";
|
|
1663
|
+
readonly since: "1.76";
|
|
1664
|
+
readonly errors: readonly ["NOT_FOUND", "RESOURCE_BUSY", "RESOURCE_GONE", "INVALID_PARAMS", "TIMEOUT", "CANCELLED", "RATE_LIMITED", "INTERNAL"];
|
|
1665
|
+
};
|
|
1643
1666
|
readonly "models.downloads.list": {
|
|
1644
1667
|
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1645
1668
|
readonly result: z.ZodObject<{
|
|
@@ -10211,6 +10234,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
10211
10234
|
browser_connection_off: "browser_connection_off";
|
|
10212
10235
|
awaiting_confirmation: "awaiting_confirmation";
|
|
10213
10236
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
10237
|
+
model_not_running: "model_not_running";
|
|
10238
|
+
model_server_unreachable: "model_server_unreachable";
|
|
10214
10239
|
}>;
|
|
10215
10240
|
readonly FsPatchEditFailure: z.ZodObject<{
|
|
10216
10241
|
edit_index: z.ZodInt;
|
|
@@ -10270,6 +10295,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
10270
10295
|
browser_connection_off: "browser_connection_off";
|
|
10271
10296
|
awaiting_confirmation: "awaiting_confirmation";
|
|
10272
10297
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
10298
|
+
model_not_running: "model_not_running";
|
|
10299
|
+
model_server_unreachable: "model_server_unreachable";
|
|
10273
10300
|
}>>;
|
|
10274
10301
|
cap: z.ZodOptional<z.ZodString>;
|
|
10275
10302
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -10423,6 +10450,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
10423
10450
|
browser_connection_off: "browser_connection_off";
|
|
10424
10451
|
awaiting_confirmation: "awaiting_confirmation";
|
|
10425
10452
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
10453
|
+
model_not_running: "model_not_running";
|
|
10454
|
+
model_server_unreachable: "model_server_unreachable";
|
|
10426
10455
|
}>>;
|
|
10427
10456
|
cap: z.ZodOptional<z.ZodString>;
|
|
10428
10457
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -10602,6 +10631,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
10602
10631
|
browser_connection_off: "browser_connection_off";
|
|
10603
10632
|
awaiting_confirmation: "awaiting_confirmation";
|
|
10604
10633
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
10634
|
+
model_not_running: "model_not_running";
|
|
10635
|
+
model_server_unreachable: "model_server_unreachable";
|
|
10605
10636
|
}>>;
|
|
10606
10637
|
cap: z.ZodOptional<z.ZodString>;
|
|
10607
10638
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -11774,6 +11805,16 @@ declare const NAMED_SCHEMAS: {
|
|
|
11774
11805
|
readonly ModelsLlmStopResult: z.ZodObject<{
|
|
11775
11806
|
stopped: z.ZodBoolean;
|
|
11776
11807
|
}, z.core.$strict>;
|
|
11808
|
+
readonly ModelsLlmChatParams: z.ZodObject<{
|
|
11809
|
+
model: z.ZodString;
|
|
11810
|
+
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11811
|
+
start_if_stopped: z.ZodOptional<z.ZodBoolean>;
|
|
11812
|
+
window_bytes: z.ZodOptional<z.ZodInt>;
|
|
11813
|
+
}, z.core.$strict>;
|
|
11814
|
+
readonly ModelsLlmChatResult: z.ZodObject<{
|
|
11815
|
+
model: z.ZodString;
|
|
11816
|
+
content_type: z.ZodString;
|
|
11817
|
+
}, z.core.$strict>;
|
|
11777
11818
|
readonly DownloadKind: z.ZodEnum<{
|
|
11778
11819
|
runtime: "runtime";
|
|
11779
11820
|
speech_model: "speech_model";
|
|
@@ -14182,6 +14223,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
14182
14223
|
browser_connection_off: "browser_connection_off";
|
|
14183
14224
|
awaiting_confirmation: "awaiting_confirmation";
|
|
14184
14225
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
14226
|
+
model_not_running: "model_not_running";
|
|
14227
|
+
model_server_unreachable: "model_server_unreachable";
|
|
14185
14228
|
}>>;
|
|
14186
14229
|
cap: z.ZodOptional<z.ZodString>;
|
|
14187
14230
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -14312,6 +14355,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
14312
14355
|
browser_connection_off: "browser_connection_off";
|
|
14313
14356
|
awaiting_confirmation: "awaiting_confirmation";
|
|
14314
14357
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
14358
|
+
model_not_running: "model_not_running";
|
|
14359
|
+
model_server_unreachable: "model_server_unreachable";
|
|
14315
14360
|
}>>;
|
|
14316
14361
|
cap: z.ZodOptional<z.ZodString>;
|
|
14317
14362
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -14414,6 +14459,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
14414
14459
|
browser_connection_off: "browser_connection_off";
|
|
14415
14460
|
awaiting_confirmation: "awaiting_confirmation";
|
|
14416
14461
|
tool_disabled_on_device: "tool_disabled_on_device";
|
|
14462
|
+
model_not_running: "model_not_running";
|
|
14463
|
+
model_server_unreachable: "model_server_unreachable";
|
|
14417
14464
|
}>>;
|
|
14418
14465
|
cap: z.ZodOptional<z.ZodString>;
|
|
14419
14466
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -21350,6 +21397,27 @@ declare const ModelsLlmStopResult: z.ZodObject<{
|
|
|
21350
21397
|
stopped: z.ZodBoolean;
|
|
21351
21398
|
}, z.core.$strict>;
|
|
21352
21399
|
type ModelsLlmStopResult = z.output<typeof ModelsLlmStopResult>;
|
|
21400
|
+
/**
|
|
21401
|
+
* (1.76) models.llm.chat (stream): one chat completion from the language model running on this
|
|
21402
|
+
* computer, through llama-server's OpenAI-compatible endpoint. `body` is an OpenAI chat-completions
|
|
21403
|
+
* body (messages, tools, tool_choice, sampling...); the core forwards it as sent with `stream: true`
|
|
21404
|
+
* and its `model` set to the local model. The unary result arrives first, then the stream's DATA
|
|
21405
|
+
* frames carry llama-server's server-sent events byte for byte (`data: {...}` chunks, tool-call
|
|
21406
|
+
* deltas included, `data: [DONE]` last). Cancel stops the generation.
|
|
21407
|
+
*/
|
|
21408
|
+
declare const ModelsLlmChatParams: z.ZodObject<{
|
|
21409
|
+
model: z.ZodString;
|
|
21410
|
+
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
21411
|
+
start_if_stopped: z.ZodOptional<z.ZodBoolean>;
|
|
21412
|
+
window_bytes: z.ZodOptional<z.ZodInt>;
|
|
21413
|
+
}, z.core.$strict>;
|
|
21414
|
+
type ModelsLlmChatParams = z.output<typeof ModelsLlmChatParams>;
|
|
21415
|
+
/** What answers: the model, and llama-server's content type (text/event-stream). */
|
|
21416
|
+
declare const ModelsLlmChatResult: z.ZodObject<{
|
|
21417
|
+
model: z.ZodString;
|
|
21418
|
+
content_type: z.ZodString;
|
|
21419
|
+
}, z.core.$strict>;
|
|
21420
|
+
type ModelsLlmChatResult = z.output<typeof ModelsLlmChatResult>;
|
|
21353
21421
|
declare const Sha256Hex: z.ZodString;
|
|
21354
21422
|
type Sha256Hex = z.output<typeof Sha256Hex>;
|
|
21355
21423
|
declare const MlCatalogSetResult: z.ZodObject<{
|
|
@@ -21464,4 +21532,4 @@ type MlServiceStatus = z.output<typeof MlServiceStatus>;
|
|
|
21464
21532
|
declare const ModelsStatusParams: z.ZodObject<{}, z.core.$strict>;
|
|
21465
21533
|
type ModelsStatusParams = z.output<typeof ModelsStatusParams>;
|
|
21466
21534
|
|
|
21467
|
-
export { MlStatusParams as $, type ErrorReasonName as A, BEARER_PREFIX as B, type CloseOutcome as C, DesktopProtocolError as D, EndReason as E, EventMsg as F, type EventName as G, FsPatchEditFailure as H, HelloMsg as I, LlamaServerBuild as J, LlmRunning as K, Limits as L, ModelsTranscribeResult as M, LlmServerState as N, type OpName as O, LocalModelKind as P, LocalModelRow as Q, MlCatalogSetParams as R, StreamMeta as S, TranscriptionModelId as T, MlCatalogSetResult as U, MlInstallPhase as V, Welcome as W, MlInstallProgress as X, MlRuntimeState as Y, MlServiceState as Z, MlServiceStatus as _, type OpParams as a, MlStatusResult as a0, ModelKey as a1, ModelsDownloadsCancelParams as a2, ModelsDownloadsCancelResult as a3, ModelsDownloadsListParams as a4, ModelsDownloadsListResult as a5, ModelsInstallParams as a6, ModelsInstallResult as a7,
|
|
21535
|
+
export { MlStatusParams as $, type ErrorReasonName as A, BEARER_PREFIX as B, type CloseOutcome as C, DesktopProtocolError as D, EndReason as E, EventMsg as F, type EventName as G, FsPatchEditFailure as H, HelloMsg as I, LlamaServerBuild as J, LlmRunning as K, Limits as L, ModelsTranscribeResult as M, LlmServerState as N, type OpName as O, LocalModelKind as P, LocalModelRow as Q, MlCatalogSetParams as R, StreamMeta as S, TranscriptionModelId as T, MlCatalogSetResult as U, MlInstallPhase as V, Welcome as W, MlInstallProgress as X, MlRuntimeState as Y, MlServiceState as Z, MlServiceStatus as _, type OpParams as a, MlStatusResult as a0, ModelKey as a1, ModelsDownloadsCancelParams as a2, ModelsDownloadsCancelResult as a3, ModelsDownloadsListParams as a4, ModelsDownloadsListResult as a5, ModelsInstallParams as a6, ModelsInstallResult as a7, ModelsLlmChatParams as a8, ModelsLlmChatResult as a9, SERVICES as aA, SUBPROTOCOL as aB, type ServiceId as aC, type ServiceOpName as aD, type ServiceOpSpec as aE, type ServiceSpec as aF, Sha256Hex as aG, StreamMsg as aH, TextModelId as aI, TextModelInfo as aJ, TranscriptSegment as aK, TranscriptionModelInfo as aL, UnusableTextModel as aM, closeRule as aN, isTerminalClose as aO, ModelsLlmInstallParams as aa, ModelsLlmInstallResult as ab, ModelsLlmStartParams as ac, ModelsLlmStartResult as ad, ModelsLlmStatusParams as ae, ModelsLlmStatusResult as af, ModelsLlmStopParams as ag, ModelsLlmStopResult as ah, ModelsLocalListParams as ai, ModelsLocalListResult as aj, ModelsLocalRemoveParams as ak, ModelsLocalRemoveResult as al, ModelsProgressEvent as am, ModelsStatusParams as an, ModelsStatusResult as ao, ModelsTranscribeParams as ap, NAMED_SCHEMAS as aq, type NamedSchemaId as ar, OpDescriptor as as, type OpSpec as at, PING_TEXT as au, PONG_TEXT as av, ProtocolErrorBody as aw, RelayMsg as ax, RequestMsg as ay, ResponseMsg as az, type OpResult as b, OPS as c, EVENTS as d, ClientType as e, MlProgress as f, CLOSE_RULES as g, CancelMsg as h, isDesktopProtocolError as i, CatalogFile as j, CatalogModelEntry as k, ClientToCoreMsg as l, type CloseAction as m, CloseCode as n, CloseCodeValue as o, type CloseRule as p, CoreToClientMsg as q, CreditMsg as r, DownloadKind as s, DownloadRow as t, EndMsg as u, ErrorCode as v, type ErrorCodeName as w, type ErrorData as x, ErrorMsg as y, ErrorReason as z };
|
package/dist/react.d.cts
CHANGED
|
@@ -7,7 +7,7 @@ import { z } from 'zod';
|
|
|
7
7
|
* never drift (see the `_assert*` lines there).
|
|
8
8
|
*/
|
|
9
9
|
type ErrorCodeName = "AUTH_REQUIRED" | "AUTH_INVALID" | "AUTH_EXPIRED" | "AUTH_FORBIDDEN" | "AUTH_DEVICE_REVOKED" | "PERMISSION_DENIED_OS" | "NOT_FOUND" | "CONFLICT" | "INVALID_PARAMS" | "RESOURCE_BUSY" | "RESOURCE_GONE" | "CANCELLED" | "TIMEOUT" | "PLATFORM_UNSUPPORTED" | "RATE_LIMITED" | "INTERNAL" | "PROTOCOL_VERSION_UNSUPPORTED" | "PROTOCOL_ERROR" | "UNKNOWN_OPERATION" | "DEVICE_OFFLINE" | "PAYLOAD_TOO_LARGE";
|
|
10
|
-
type ErrorReasonName = "not_a_directory" | "is_a_directory" | "directory_not_empty" | "already_exists" | "stale_write" | "binary_content" | "not_utf8_boundary" | "patch_no_match" | "patch_ambiguous" | "resource_exited" | "resource_expired" | "control_taken" | "window_exhausted" | "runtime_not_installed" | "model_not_installed" | "unsupported_media" | "download_failed" | "service_starting" | "service_restarted" | "service_failed" | "browser_not_connected" | "browser_ambiguous" | "browser_account_mismatch" | "browser_connection_off" | "awaiting_confirmation" | "tool_disabled_on_device";
|
|
10
|
+
type ErrorReasonName = "not_a_directory" | "is_a_directory" | "directory_not_empty" | "already_exists" | "stale_write" | "binary_content" | "not_utf8_boundary" | "patch_no_match" | "patch_ambiguous" | "resource_exited" | "resource_expired" | "control_taken" | "window_exhausted" | "runtime_not_installed" | "model_not_installed" | "unsupported_media" | "download_failed" | "service_starting" | "service_restarted" | "service_failed" | "browser_not_connected" | "browser_ambiguous" | "browser_account_mismatch" | "browser_connection_off" | "awaiting_confirmation" | "tool_disabled_on_device" | "model_not_running" | "model_server_unreachable";
|
|
11
11
|
interface ErrorData {
|
|
12
12
|
reason?: ErrorReasonName | undefined;
|
|
13
13
|
cap?: string | undefined;
|
|
@@ -1076,6 +1076,21 @@ declare const OPS: {
|
|
|
1076
1076
|
readonly since: "1.31";
|
|
1077
1077
|
readonly errors: readonly ["INTERNAL"];
|
|
1078
1078
|
};
|
|
1079
|
+
readonly "models.llm.chat": {
|
|
1080
|
+
readonly params: z.ZodObject<{
|
|
1081
|
+
model: z.ZodString;
|
|
1082
|
+
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1083
|
+
start_if_stopped: z.ZodOptional<z.ZodBoolean>;
|
|
1084
|
+
window_bytes: z.ZodOptional<z.ZodInt>;
|
|
1085
|
+
}, z.core.$strict>;
|
|
1086
|
+
readonly result: z.ZodObject<{
|
|
1087
|
+
model: z.ZodString;
|
|
1088
|
+
content_type: z.ZodString;
|
|
1089
|
+
}, z.core.$strict>;
|
|
1090
|
+
readonly kind: "stream";
|
|
1091
|
+
readonly since: "1.76";
|
|
1092
|
+
readonly errors: readonly ["NOT_FOUND", "RESOURCE_BUSY", "RESOURCE_GONE", "INVALID_PARAMS", "TIMEOUT", "CANCELLED", "RATE_LIMITED", "INTERNAL"];
|
|
1093
|
+
};
|
|
1079
1094
|
readonly "models.downloads.list": {
|
|
1080
1095
|
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1081
1096
|
readonly result: z.ZodObject<{
|
package/dist/react.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { z } from 'zod';
|
|
|
7
7
|
* never drift (see the `_assert*` lines there).
|
|
8
8
|
*/
|
|
9
9
|
type ErrorCodeName = "AUTH_REQUIRED" | "AUTH_INVALID" | "AUTH_EXPIRED" | "AUTH_FORBIDDEN" | "AUTH_DEVICE_REVOKED" | "PERMISSION_DENIED_OS" | "NOT_FOUND" | "CONFLICT" | "INVALID_PARAMS" | "RESOURCE_BUSY" | "RESOURCE_GONE" | "CANCELLED" | "TIMEOUT" | "PLATFORM_UNSUPPORTED" | "RATE_LIMITED" | "INTERNAL" | "PROTOCOL_VERSION_UNSUPPORTED" | "PROTOCOL_ERROR" | "UNKNOWN_OPERATION" | "DEVICE_OFFLINE" | "PAYLOAD_TOO_LARGE";
|
|
10
|
-
type ErrorReasonName = "not_a_directory" | "is_a_directory" | "directory_not_empty" | "already_exists" | "stale_write" | "binary_content" | "not_utf8_boundary" | "patch_no_match" | "patch_ambiguous" | "resource_exited" | "resource_expired" | "control_taken" | "window_exhausted" | "runtime_not_installed" | "model_not_installed" | "unsupported_media" | "download_failed" | "service_starting" | "service_restarted" | "service_failed" | "browser_not_connected" | "browser_ambiguous" | "browser_account_mismatch" | "browser_connection_off" | "awaiting_confirmation" | "tool_disabled_on_device";
|
|
10
|
+
type ErrorReasonName = "not_a_directory" | "is_a_directory" | "directory_not_empty" | "already_exists" | "stale_write" | "binary_content" | "not_utf8_boundary" | "patch_no_match" | "patch_ambiguous" | "resource_exited" | "resource_expired" | "control_taken" | "window_exhausted" | "runtime_not_installed" | "model_not_installed" | "unsupported_media" | "download_failed" | "service_starting" | "service_restarted" | "service_failed" | "browser_not_connected" | "browser_ambiguous" | "browser_account_mismatch" | "browser_connection_off" | "awaiting_confirmation" | "tool_disabled_on_device" | "model_not_running" | "model_server_unreachable";
|
|
11
11
|
interface ErrorData {
|
|
12
12
|
reason?: ErrorReasonName | undefined;
|
|
13
13
|
cap?: string | undefined;
|
|
@@ -1076,6 +1076,21 @@ declare const OPS: {
|
|
|
1076
1076
|
readonly since: "1.31";
|
|
1077
1077
|
readonly errors: readonly ["INTERNAL"];
|
|
1078
1078
|
};
|
|
1079
|
+
readonly "models.llm.chat": {
|
|
1080
|
+
readonly params: z.ZodObject<{
|
|
1081
|
+
model: z.ZodString;
|
|
1082
|
+
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1083
|
+
start_if_stopped: z.ZodOptional<z.ZodBoolean>;
|
|
1084
|
+
window_bytes: z.ZodOptional<z.ZodInt>;
|
|
1085
|
+
}, z.core.$strict>;
|
|
1086
|
+
readonly result: z.ZodObject<{
|
|
1087
|
+
model: z.ZodString;
|
|
1088
|
+
content_type: z.ZodString;
|
|
1089
|
+
}, z.core.$strict>;
|
|
1090
|
+
readonly kind: "stream";
|
|
1091
|
+
readonly since: "1.76";
|
|
1092
|
+
readonly errors: readonly ["NOT_FOUND", "RESOURCE_BUSY", "RESOURCE_GONE", "INVALID_PARAMS", "TIMEOUT", "CANCELLED", "RATE_LIMITED", "INTERNAL"];
|
|
1093
|
+
};
|
|
1079
1094
|
readonly "models.downloads.list": {
|
|
1080
1095
|
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1081
1096
|
readonly result: z.ZodObject<{
|
|
@@ -1320,7 +1320,9 @@
|
|
|
1320
1320
|
"browser_account_mismatch",
|
|
1321
1321
|
"browser_connection_off",
|
|
1322
1322
|
"awaiting_confirmation",
|
|
1323
|
-
"tool_disabled_on_device"
|
|
1323
|
+
"tool_disabled_on_device",
|
|
1324
|
+
"model_not_running",
|
|
1325
|
+
"model_server_unreachable"
|
|
1324
1326
|
]
|
|
1325
1327
|
},
|
|
1326
1328
|
"FsPatchEditFailure": {
|
|
@@ -5159,6 +5161,52 @@
|
|
|
5159
5161
|
],
|
|
5160
5162
|
"additionalProperties": false
|
|
5161
5163
|
},
|
|
5164
|
+
"ModelsLlmChatParams": {
|
|
5165
|
+
"type": "object",
|
|
5166
|
+
"properties": {
|
|
5167
|
+
"model": {
|
|
5168
|
+
"$ref": "#/$defs/ModelKey"
|
|
5169
|
+
},
|
|
5170
|
+
"body": {
|
|
5171
|
+
"type": "object",
|
|
5172
|
+
"propertyNames": {
|
|
5173
|
+
"type": "string",
|
|
5174
|
+
"maxLength": 200
|
|
5175
|
+
},
|
|
5176
|
+
"additionalProperties": {}
|
|
5177
|
+
},
|
|
5178
|
+
"start_if_stopped": {
|
|
5179
|
+
"type": "boolean"
|
|
5180
|
+
},
|
|
5181
|
+
"window_bytes": {
|
|
5182
|
+
"type": "integer",
|
|
5183
|
+
"minimum": 4096,
|
|
5184
|
+
"maximum": 16777216
|
|
5185
|
+
}
|
|
5186
|
+
},
|
|
5187
|
+
"required": [
|
|
5188
|
+
"model",
|
|
5189
|
+
"body"
|
|
5190
|
+
],
|
|
5191
|
+
"additionalProperties": false
|
|
5192
|
+
},
|
|
5193
|
+
"ModelsLlmChatResult": {
|
|
5194
|
+
"type": "object",
|
|
5195
|
+
"properties": {
|
|
5196
|
+
"model": {
|
|
5197
|
+
"$ref": "#/$defs/ModelKey"
|
|
5198
|
+
},
|
|
5199
|
+
"content_type": {
|
|
5200
|
+
"type": "string",
|
|
5201
|
+
"maxLength": 128
|
|
5202
|
+
}
|
|
5203
|
+
},
|
|
5204
|
+
"required": [
|
|
5205
|
+
"model",
|
|
5206
|
+
"content_type"
|
|
5207
|
+
],
|
|
5208
|
+
"additionalProperties": false
|
|
5209
|
+
},
|
|
5162
5210
|
"DownloadKind": {
|
|
5163
5211
|
"type": "string",
|
|
5164
5212
|
"enum": [
|
|
@@ -25294,6 +25342,22 @@
|
|
|
25294
25342
|
"INTERNAL"
|
|
25295
25343
|
]
|
|
25296
25344
|
},
|
|
25345
|
+
"models.llm.chat": {
|
|
25346
|
+
"params": "ModelsLlmChatParams",
|
|
25347
|
+
"result": "ModelsLlmChatResult",
|
|
25348
|
+
"kind": "stream",
|
|
25349
|
+
"since": "1.76",
|
|
25350
|
+
"errors": [
|
|
25351
|
+
"NOT_FOUND",
|
|
25352
|
+
"RESOURCE_BUSY",
|
|
25353
|
+
"RESOURCE_GONE",
|
|
25354
|
+
"INVALID_PARAMS",
|
|
25355
|
+
"TIMEOUT",
|
|
25356
|
+
"CANCELLED",
|
|
25357
|
+
"RATE_LIMITED",
|
|
25358
|
+
"INTERNAL"
|
|
25359
|
+
]
|
|
25360
|
+
},
|
|
25297
25361
|
"models.downloads.list": {
|
|
25298
25362
|
"params": "ModelsDownloadsListParams",
|
|
25299
25363
|
"result": "ModelsDownloadsListResult",
|
|
@@ -28341,5 +28405,5 @@
|
|
|
28341
28405
|
"olderPeersGet": 0
|
|
28342
28406
|
}
|
|
28343
28407
|
},
|
|
28344
|
-
"x-protocol-version": "1.
|
|
28408
|
+
"x-protocol-version": "1.76"
|
|
28345
28409
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/desktop-protocol",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.78",
|
|
4
4
|
"description": "The one wire contract between Matrx 2 (the desktop app) and every client that drives it — phone, web app, extension, server: zod schemas for the envelope and every cap.op, the 16-byte binary frame codec, a reconnecting request/stream/credit/reattach client, React hooks, and a generated JSON Schema + Pydantic twin that CI keeps byte-identical.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -137,5 +137,5 @@
|
|
|
137
137
|
"test:watch": "vitest",
|
|
138
138
|
"verify:tarball": "node ./scripts/verify-tarball.mjs"
|
|
139
139
|
},
|
|
140
|
-
"gitHead": "
|
|
140
|
+
"gitHead": "dc95f05a6866ed304e2cc1d81b44581a81357327"
|
|
141
141
|
}
|