@ai-matrx/desktop-protocol 0.21.74 → 0.21.75
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 +23 -2
- package/dist/{chunk-server-3L5JNEHY.js → chunk-server-FBLTGJJA.js} +48 -2
- package/dist/chunk-server-FBLTGJJA.js.map +1 -0
- package/dist/client.cjs +33 -1
- 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 +48 -2
- 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 +14 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-BRm_O6a-.d.cts → models-GpUhHLRw.d.cts} +194 -2
- package/dist/{models-BRm_O6a-.d.ts → models-GpUhHLRw.d.ts} +194 -2
- package/dist/react.d.cts +43 -0
- package/dist/react.d.ts +43 -0
- package/generated/desktop-protocol.schema.json +165 -1
- package/package.json +2 -2
- package/dist/chunk-server-3L5JNEHY.js.map +0 -1
|
@@ -711,7 +711,7 @@ type OpSpec = {
|
|
|
711
711
|
readonly params: z.ZodType;
|
|
712
712
|
readonly result: z.ZodType;
|
|
713
713
|
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";
|
|
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";
|
|
715
715
|
readonly errors: readonly z.infer<typeof ErrorCode>[];
|
|
716
716
|
};
|
|
717
717
|
declare const OPS: {
|
|
@@ -1679,6 +1679,49 @@ declare const OPS: {
|
|
|
1679
1679
|
readonly since: "1.45";
|
|
1680
1680
|
readonly errors: readonly ["NOT_FOUND", "INTERNAL"];
|
|
1681
1681
|
};
|
|
1682
|
+
readonly "models.local.list": {
|
|
1683
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1684
|
+
readonly result: z.ZodObject<{
|
|
1685
|
+
models: z.ZodArray<z.ZodObject<{
|
|
1686
|
+
kind: z.ZodEnum<{
|
|
1687
|
+
text: "text";
|
|
1688
|
+
speech: "speech";
|
|
1689
|
+
}>;
|
|
1690
|
+
model: z.ZodString;
|
|
1691
|
+
path: z.ZodString;
|
|
1692
|
+
size_bytes: z.ZodInt;
|
|
1693
|
+
freed_bytes: z.ZodInt;
|
|
1694
|
+
in_place: z.ZodBoolean;
|
|
1695
|
+
source: z.ZodNullable<z.ZodString>;
|
|
1696
|
+
running: z.ZodBoolean;
|
|
1697
|
+
}, z.core.$strict>>;
|
|
1698
|
+
}, z.core.$strict>;
|
|
1699
|
+
readonly kind: "unary";
|
|
1700
|
+
readonly since: "1.74";
|
|
1701
|
+
readonly errors: readonly ["INTERNAL"];
|
|
1702
|
+
};
|
|
1703
|
+
readonly "models.local.remove": {
|
|
1704
|
+
readonly params: z.ZodObject<{
|
|
1705
|
+
kind: z.ZodEnum<{
|
|
1706
|
+
text: "text";
|
|
1707
|
+
speech: "speech";
|
|
1708
|
+
}>;
|
|
1709
|
+
model: z.ZodString;
|
|
1710
|
+
}, z.core.$strict>;
|
|
1711
|
+
readonly result: z.ZodObject<{
|
|
1712
|
+
kind: z.ZodEnum<{
|
|
1713
|
+
text: "text";
|
|
1714
|
+
speech: "speech";
|
|
1715
|
+
}>;
|
|
1716
|
+
model: z.ZodString;
|
|
1717
|
+
freed_bytes: z.ZodInt;
|
|
1718
|
+
stopped: z.ZodBoolean;
|
|
1719
|
+
kept: z.ZodNullable<z.ZodString>;
|
|
1720
|
+
}, z.core.$strict>;
|
|
1721
|
+
readonly kind: "unary";
|
|
1722
|
+
readonly since: "1.74";
|
|
1723
|
+
readonly errors: readonly ["NOT_FOUND", "INVALID_PARAMS", "RESOURCE_BUSY", "INTERNAL"];
|
|
1724
|
+
};
|
|
1682
1725
|
readonly "apps.list": {
|
|
1683
1726
|
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1684
1727
|
readonly result: z.ZodObject<{
|
|
@@ -9276,6 +9319,43 @@ declare const SERVICES: {
|
|
|
9276
9319
|
cancelled: z.ZodBoolean;
|
|
9277
9320
|
}, z.core.$strict>;
|
|
9278
9321
|
};
|
|
9322
|
+
readonly "ml.local_list": {
|
|
9323
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
9324
|
+
readonly result: z.ZodObject<{
|
|
9325
|
+
models: z.ZodArray<z.ZodObject<{
|
|
9326
|
+
kind: z.ZodEnum<{
|
|
9327
|
+
text: "text";
|
|
9328
|
+
speech: "speech";
|
|
9329
|
+
}>;
|
|
9330
|
+
model: z.ZodString;
|
|
9331
|
+
path: z.ZodString;
|
|
9332
|
+
size_bytes: z.ZodInt;
|
|
9333
|
+
freed_bytes: z.ZodInt;
|
|
9334
|
+
in_place: z.ZodBoolean;
|
|
9335
|
+
source: z.ZodNullable<z.ZodString>;
|
|
9336
|
+
running: z.ZodBoolean;
|
|
9337
|
+
}, z.core.$strict>>;
|
|
9338
|
+
}, z.core.$strict>;
|
|
9339
|
+
};
|
|
9340
|
+
readonly "ml.local_remove": {
|
|
9341
|
+
readonly params: z.ZodObject<{
|
|
9342
|
+
kind: z.ZodEnum<{
|
|
9343
|
+
text: "text";
|
|
9344
|
+
speech: "speech";
|
|
9345
|
+
}>;
|
|
9346
|
+
model: z.ZodString;
|
|
9347
|
+
}, z.core.$strict>;
|
|
9348
|
+
readonly result: z.ZodObject<{
|
|
9349
|
+
kind: z.ZodEnum<{
|
|
9350
|
+
text: "text";
|
|
9351
|
+
speech: "speech";
|
|
9352
|
+
}>;
|
|
9353
|
+
model: z.ZodString;
|
|
9354
|
+
freed_bytes: z.ZodInt;
|
|
9355
|
+
stopped: z.ZodBoolean;
|
|
9356
|
+
kept: z.ZodNullable<z.ZodString>;
|
|
9357
|
+
}, z.core.$strict>;
|
|
9358
|
+
};
|
|
9279
9359
|
readonly "ml.catalog_set": {
|
|
9280
9360
|
readonly params: z.ZodObject<{
|
|
9281
9361
|
text: z.ZodArray<z.ZodObject<{
|
|
@@ -11748,6 +11828,56 @@ declare const NAMED_SCHEMAS: {
|
|
|
11748
11828
|
readonly ModelsDownloadsCancelResult: z.ZodObject<{
|
|
11749
11829
|
cancelled: z.ZodBoolean;
|
|
11750
11830
|
}, z.core.$strict>;
|
|
11831
|
+
readonly LocalModelKind: z.ZodEnum<{
|
|
11832
|
+
text: "text";
|
|
11833
|
+
speech: "speech";
|
|
11834
|
+
}>;
|
|
11835
|
+
readonly LocalModelRow: z.ZodObject<{
|
|
11836
|
+
kind: z.ZodEnum<{
|
|
11837
|
+
text: "text";
|
|
11838
|
+
speech: "speech";
|
|
11839
|
+
}>;
|
|
11840
|
+
model: z.ZodString;
|
|
11841
|
+
path: z.ZodString;
|
|
11842
|
+
size_bytes: z.ZodInt;
|
|
11843
|
+
freed_bytes: z.ZodInt;
|
|
11844
|
+
in_place: z.ZodBoolean;
|
|
11845
|
+
source: z.ZodNullable<z.ZodString>;
|
|
11846
|
+
running: z.ZodBoolean;
|
|
11847
|
+
}, z.core.$strict>;
|
|
11848
|
+
readonly ModelsLocalListParams: z.ZodObject<{}, z.core.$strict>;
|
|
11849
|
+
readonly ModelsLocalListResult: z.ZodObject<{
|
|
11850
|
+
models: z.ZodArray<z.ZodObject<{
|
|
11851
|
+
kind: z.ZodEnum<{
|
|
11852
|
+
text: "text";
|
|
11853
|
+
speech: "speech";
|
|
11854
|
+
}>;
|
|
11855
|
+
model: z.ZodString;
|
|
11856
|
+
path: z.ZodString;
|
|
11857
|
+
size_bytes: z.ZodInt;
|
|
11858
|
+
freed_bytes: z.ZodInt;
|
|
11859
|
+
in_place: z.ZodBoolean;
|
|
11860
|
+
source: z.ZodNullable<z.ZodString>;
|
|
11861
|
+
running: z.ZodBoolean;
|
|
11862
|
+
}, z.core.$strict>>;
|
|
11863
|
+
}, z.core.$strict>;
|
|
11864
|
+
readonly ModelsLocalRemoveParams: z.ZodObject<{
|
|
11865
|
+
kind: z.ZodEnum<{
|
|
11866
|
+
text: "text";
|
|
11867
|
+
speech: "speech";
|
|
11868
|
+
}>;
|
|
11869
|
+
model: z.ZodString;
|
|
11870
|
+
}, z.core.$strict>;
|
|
11871
|
+
readonly ModelsLocalRemoveResult: z.ZodObject<{
|
|
11872
|
+
kind: z.ZodEnum<{
|
|
11873
|
+
text: "text";
|
|
11874
|
+
speech: "speech";
|
|
11875
|
+
}>;
|
|
11876
|
+
model: z.ZodString;
|
|
11877
|
+
freed_bytes: z.ZodInt;
|
|
11878
|
+
stopped: z.ZodBoolean;
|
|
11879
|
+
kept: z.ZodNullable<z.ZodString>;
|
|
11880
|
+
}, z.core.$strict>;
|
|
11751
11881
|
readonly CodingServiceCredentials: z.ZodObject<{
|
|
11752
11882
|
access_token: z.ZodString;
|
|
11753
11883
|
user_id: z.ZodString;
|
|
@@ -21245,6 +21375,68 @@ declare const ModelsDownloadsCancelResult: z.ZodObject<{
|
|
|
21245
21375
|
cancelled: z.ZodBoolean;
|
|
21246
21376
|
}, z.core.$strict>;
|
|
21247
21377
|
type ModelsDownloadsCancelResult = z.output<typeof ModelsDownloadsCancelResult>;
|
|
21378
|
+
/** Which of the service's stores holds it: language models (`llm/`) or speech models (`models/`). */
|
|
21379
|
+
declare const LocalModelKind: z.ZodEnum<{
|
|
21380
|
+
text: "text";
|
|
21381
|
+
speech: "speech";
|
|
21382
|
+
}>;
|
|
21383
|
+
type LocalModelKind = z.output<typeof LocalModelKind>;
|
|
21384
|
+
declare const LocalModelRow: z.ZodObject<{
|
|
21385
|
+
kind: z.ZodEnum<{
|
|
21386
|
+
text: "text";
|
|
21387
|
+
speech: "speech";
|
|
21388
|
+
}>;
|
|
21389
|
+
model: z.ZodString;
|
|
21390
|
+
path: z.ZodString;
|
|
21391
|
+
size_bytes: z.ZodInt;
|
|
21392
|
+
freed_bytes: z.ZodInt;
|
|
21393
|
+
in_place: z.ZodBoolean;
|
|
21394
|
+
source: z.ZodNullable<z.ZodString>;
|
|
21395
|
+
running: z.ZodBoolean;
|
|
21396
|
+
}, z.core.$strict>;
|
|
21397
|
+
type LocalModelRow = z.output<typeof LocalModelRow>;
|
|
21398
|
+
declare const ModelsLocalListParams: z.ZodObject<{}, z.core.$strict>;
|
|
21399
|
+
type ModelsLocalListParams = z.output<typeof ModelsLocalListParams>;
|
|
21400
|
+
declare const ModelsLocalListResult: z.ZodObject<{
|
|
21401
|
+
models: z.ZodArray<z.ZodObject<{
|
|
21402
|
+
kind: z.ZodEnum<{
|
|
21403
|
+
text: "text";
|
|
21404
|
+
speech: "speech";
|
|
21405
|
+
}>;
|
|
21406
|
+
model: z.ZodString;
|
|
21407
|
+
path: z.ZodString;
|
|
21408
|
+
size_bytes: z.ZodInt;
|
|
21409
|
+
freed_bytes: z.ZodInt;
|
|
21410
|
+
in_place: z.ZodBoolean;
|
|
21411
|
+
source: z.ZodNullable<z.ZodString>;
|
|
21412
|
+
running: z.ZodBoolean;
|
|
21413
|
+
}, z.core.$strict>>;
|
|
21414
|
+
}, z.core.$strict>;
|
|
21415
|
+
type ModelsLocalListResult = z.output<typeof ModelsLocalListResult>;
|
|
21416
|
+
/**
|
|
21417
|
+
* Remove one model from this computer. A file only Matrx 2 holds is deleted; a file used in place (a
|
|
21418
|
+
* link to the person's own file) is only unlinked: the person's file is never deleted. The running
|
|
21419
|
+
* model is stopped first. RESOURCE_BUSY while it downloads; NOT_FOUND when it is not here.
|
|
21420
|
+
*/
|
|
21421
|
+
declare const ModelsLocalRemoveParams: z.ZodObject<{
|
|
21422
|
+
kind: z.ZodEnum<{
|
|
21423
|
+
text: "text";
|
|
21424
|
+
speech: "speech";
|
|
21425
|
+
}>;
|
|
21426
|
+
model: z.ZodString;
|
|
21427
|
+
}, z.core.$strict>;
|
|
21428
|
+
type ModelsLocalRemoveParams = z.output<typeof ModelsLocalRemoveParams>;
|
|
21429
|
+
declare const ModelsLocalRemoveResult: z.ZodObject<{
|
|
21430
|
+
kind: z.ZodEnum<{
|
|
21431
|
+
text: "text";
|
|
21432
|
+
speech: "speech";
|
|
21433
|
+
}>;
|
|
21434
|
+
model: z.ZodString;
|
|
21435
|
+
freed_bytes: z.ZodInt;
|
|
21436
|
+
stopped: z.ZodBoolean;
|
|
21437
|
+
kept: z.ZodNullable<z.ZodString>;
|
|
21438
|
+
}, z.core.$strict>;
|
|
21439
|
+
type ModelsLocalRemoveResult = z.output<typeof ModelsLocalRemoveResult>;
|
|
21248
21440
|
/** The supervisor's view of the `ml` service process. */
|
|
21249
21441
|
declare const MlServiceState: z.ZodEnum<{
|
|
21250
21442
|
failed: "failed";
|
|
@@ -21271,4 +21463,4 @@ type MlServiceStatus = z.output<typeof MlServiceStatus>;
|
|
|
21271
21463
|
declare const ModelsStatusParams: z.ZodObject<{}, z.core.$strict>;
|
|
21272
21464
|
type ModelsStatusParams = z.output<typeof ModelsStatusParams>;
|
|
21273
21465
|
|
|
21274
|
-
export {
|
|
21466
|
+
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, ModelsLlmInstallParams as a8, ModelsLlmInstallResult as a9, type ServiceId as aA, type ServiceOpName as aB, type ServiceOpSpec as aC, type ServiceSpec as aD, Sha256Hex as aE, StreamMsg as aF, TextModelId as aG, TextModelInfo as aH, TranscriptSegment as aI, TranscriptionModelInfo as aJ, UnusableTextModel as aK, closeRule as aL, isTerminalClose as aM, ModelsLlmStartParams as aa, ModelsLlmStartResult as ab, ModelsLlmStatusParams as ac, ModelsLlmStatusResult as ad, ModelsLlmStopParams as ae, ModelsLlmStopResult as af, ModelsLocalListParams as ag, ModelsLocalListResult as ah, ModelsLocalRemoveParams as ai, ModelsLocalRemoveResult as aj, ModelsProgressEvent as ak, ModelsStatusParams as al, ModelsStatusResult as am, ModelsTranscribeParams as an, NAMED_SCHEMAS as ao, type NamedSchemaId as ap, OpDescriptor as aq, type OpSpec as ar, PING_TEXT as as, PONG_TEXT as at, ProtocolErrorBody as au, RelayMsg as av, RequestMsg as aw, ResponseMsg as ax, SERVICES as ay, SUBPROTOCOL 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 };
|
|
@@ -711,7 +711,7 @@ type OpSpec = {
|
|
|
711
711
|
readonly params: z.ZodType;
|
|
712
712
|
readonly result: z.ZodType;
|
|
713
713
|
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";
|
|
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";
|
|
715
715
|
readonly errors: readonly z.infer<typeof ErrorCode>[];
|
|
716
716
|
};
|
|
717
717
|
declare const OPS: {
|
|
@@ -1679,6 +1679,49 @@ declare const OPS: {
|
|
|
1679
1679
|
readonly since: "1.45";
|
|
1680
1680
|
readonly errors: readonly ["NOT_FOUND", "INTERNAL"];
|
|
1681
1681
|
};
|
|
1682
|
+
readonly "models.local.list": {
|
|
1683
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1684
|
+
readonly result: z.ZodObject<{
|
|
1685
|
+
models: z.ZodArray<z.ZodObject<{
|
|
1686
|
+
kind: z.ZodEnum<{
|
|
1687
|
+
text: "text";
|
|
1688
|
+
speech: "speech";
|
|
1689
|
+
}>;
|
|
1690
|
+
model: z.ZodString;
|
|
1691
|
+
path: z.ZodString;
|
|
1692
|
+
size_bytes: z.ZodInt;
|
|
1693
|
+
freed_bytes: z.ZodInt;
|
|
1694
|
+
in_place: z.ZodBoolean;
|
|
1695
|
+
source: z.ZodNullable<z.ZodString>;
|
|
1696
|
+
running: z.ZodBoolean;
|
|
1697
|
+
}, z.core.$strict>>;
|
|
1698
|
+
}, z.core.$strict>;
|
|
1699
|
+
readonly kind: "unary";
|
|
1700
|
+
readonly since: "1.74";
|
|
1701
|
+
readonly errors: readonly ["INTERNAL"];
|
|
1702
|
+
};
|
|
1703
|
+
readonly "models.local.remove": {
|
|
1704
|
+
readonly params: z.ZodObject<{
|
|
1705
|
+
kind: z.ZodEnum<{
|
|
1706
|
+
text: "text";
|
|
1707
|
+
speech: "speech";
|
|
1708
|
+
}>;
|
|
1709
|
+
model: z.ZodString;
|
|
1710
|
+
}, z.core.$strict>;
|
|
1711
|
+
readonly result: z.ZodObject<{
|
|
1712
|
+
kind: z.ZodEnum<{
|
|
1713
|
+
text: "text";
|
|
1714
|
+
speech: "speech";
|
|
1715
|
+
}>;
|
|
1716
|
+
model: z.ZodString;
|
|
1717
|
+
freed_bytes: z.ZodInt;
|
|
1718
|
+
stopped: z.ZodBoolean;
|
|
1719
|
+
kept: z.ZodNullable<z.ZodString>;
|
|
1720
|
+
}, z.core.$strict>;
|
|
1721
|
+
readonly kind: "unary";
|
|
1722
|
+
readonly since: "1.74";
|
|
1723
|
+
readonly errors: readonly ["NOT_FOUND", "INVALID_PARAMS", "RESOURCE_BUSY", "INTERNAL"];
|
|
1724
|
+
};
|
|
1682
1725
|
readonly "apps.list": {
|
|
1683
1726
|
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1684
1727
|
readonly result: z.ZodObject<{
|
|
@@ -9276,6 +9319,43 @@ declare const SERVICES: {
|
|
|
9276
9319
|
cancelled: z.ZodBoolean;
|
|
9277
9320
|
}, z.core.$strict>;
|
|
9278
9321
|
};
|
|
9322
|
+
readonly "ml.local_list": {
|
|
9323
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
9324
|
+
readonly result: z.ZodObject<{
|
|
9325
|
+
models: z.ZodArray<z.ZodObject<{
|
|
9326
|
+
kind: z.ZodEnum<{
|
|
9327
|
+
text: "text";
|
|
9328
|
+
speech: "speech";
|
|
9329
|
+
}>;
|
|
9330
|
+
model: z.ZodString;
|
|
9331
|
+
path: z.ZodString;
|
|
9332
|
+
size_bytes: z.ZodInt;
|
|
9333
|
+
freed_bytes: z.ZodInt;
|
|
9334
|
+
in_place: z.ZodBoolean;
|
|
9335
|
+
source: z.ZodNullable<z.ZodString>;
|
|
9336
|
+
running: z.ZodBoolean;
|
|
9337
|
+
}, z.core.$strict>>;
|
|
9338
|
+
}, z.core.$strict>;
|
|
9339
|
+
};
|
|
9340
|
+
readonly "ml.local_remove": {
|
|
9341
|
+
readonly params: z.ZodObject<{
|
|
9342
|
+
kind: z.ZodEnum<{
|
|
9343
|
+
text: "text";
|
|
9344
|
+
speech: "speech";
|
|
9345
|
+
}>;
|
|
9346
|
+
model: z.ZodString;
|
|
9347
|
+
}, z.core.$strict>;
|
|
9348
|
+
readonly result: z.ZodObject<{
|
|
9349
|
+
kind: z.ZodEnum<{
|
|
9350
|
+
text: "text";
|
|
9351
|
+
speech: "speech";
|
|
9352
|
+
}>;
|
|
9353
|
+
model: z.ZodString;
|
|
9354
|
+
freed_bytes: z.ZodInt;
|
|
9355
|
+
stopped: z.ZodBoolean;
|
|
9356
|
+
kept: z.ZodNullable<z.ZodString>;
|
|
9357
|
+
}, z.core.$strict>;
|
|
9358
|
+
};
|
|
9279
9359
|
readonly "ml.catalog_set": {
|
|
9280
9360
|
readonly params: z.ZodObject<{
|
|
9281
9361
|
text: z.ZodArray<z.ZodObject<{
|
|
@@ -11748,6 +11828,56 @@ declare const NAMED_SCHEMAS: {
|
|
|
11748
11828
|
readonly ModelsDownloadsCancelResult: z.ZodObject<{
|
|
11749
11829
|
cancelled: z.ZodBoolean;
|
|
11750
11830
|
}, z.core.$strict>;
|
|
11831
|
+
readonly LocalModelKind: z.ZodEnum<{
|
|
11832
|
+
text: "text";
|
|
11833
|
+
speech: "speech";
|
|
11834
|
+
}>;
|
|
11835
|
+
readonly LocalModelRow: z.ZodObject<{
|
|
11836
|
+
kind: z.ZodEnum<{
|
|
11837
|
+
text: "text";
|
|
11838
|
+
speech: "speech";
|
|
11839
|
+
}>;
|
|
11840
|
+
model: z.ZodString;
|
|
11841
|
+
path: z.ZodString;
|
|
11842
|
+
size_bytes: z.ZodInt;
|
|
11843
|
+
freed_bytes: z.ZodInt;
|
|
11844
|
+
in_place: z.ZodBoolean;
|
|
11845
|
+
source: z.ZodNullable<z.ZodString>;
|
|
11846
|
+
running: z.ZodBoolean;
|
|
11847
|
+
}, z.core.$strict>;
|
|
11848
|
+
readonly ModelsLocalListParams: z.ZodObject<{}, z.core.$strict>;
|
|
11849
|
+
readonly ModelsLocalListResult: z.ZodObject<{
|
|
11850
|
+
models: z.ZodArray<z.ZodObject<{
|
|
11851
|
+
kind: z.ZodEnum<{
|
|
11852
|
+
text: "text";
|
|
11853
|
+
speech: "speech";
|
|
11854
|
+
}>;
|
|
11855
|
+
model: z.ZodString;
|
|
11856
|
+
path: z.ZodString;
|
|
11857
|
+
size_bytes: z.ZodInt;
|
|
11858
|
+
freed_bytes: z.ZodInt;
|
|
11859
|
+
in_place: z.ZodBoolean;
|
|
11860
|
+
source: z.ZodNullable<z.ZodString>;
|
|
11861
|
+
running: z.ZodBoolean;
|
|
11862
|
+
}, z.core.$strict>>;
|
|
11863
|
+
}, z.core.$strict>;
|
|
11864
|
+
readonly ModelsLocalRemoveParams: z.ZodObject<{
|
|
11865
|
+
kind: z.ZodEnum<{
|
|
11866
|
+
text: "text";
|
|
11867
|
+
speech: "speech";
|
|
11868
|
+
}>;
|
|
11869
|
+
model: z.ZodString;
|
|
11870
|
+
}, z.core.$strict>;
|
|
11871
|
+
readonly ModelsLocalRemoveResult: z.ZodObject<{
|
|
11872
|
+
kind: z.ZodEnum<{
|
|
11873
|
+
text: "text";
|
|
11874
|
+
speech: "speech";
|
|
11875
|
+
}>;
|
|
11876
|
+
model: z.ZodString;
|
|
11877
|
+
freed_bytes: z.ZodInt;
|
|
11878
|
+
stopped: z.ZodBoolean;
|
|
11879
|
+
kept: z.ZodNullable<z.ZodString>;
|
|
11880
|
+
}, z.core.$strict>;
|
|
11751
11881
|
readonly CodingServiceCredentials: z.ZodObject<{
|
|
11752
11882
|
access_token: z.ZodString;
|
|
11753
11883
|
user_id: z.ZodString;
|
|
@@ -21245,6 +21375,68 @@ declare const ModelsDownloadsCancelResult: z.ZodObject<{
|
|
|
21245
21375
|
cancelled: z.ZodBoolean;
|
|
21246
21376
|
}, z.core.$strict>;
|
|
21247
21377
|
type ModelsDownloadsCancelResult = z.output<typeof ModelsDownloadsCancelResult>;
|
|
21378
|
+
/** Which of the service's stores holds it: language models (`llm/`) or speech models (`models/`). */
|
|
21379
|
+
declare const LocalModelKind: z.ZodEnum<{
|
|
21380
|
+
text: "text";
|
|
21381
|
+
speech: "speech";
|
|
21382
|
+
}>;
|
|
21383
|
+
type LocalModelKind = z.output<typeof LocalModelKind>;
|
|
21384
|
+
declare const LocalModelRow: z.ZodObject<{
|
|
21385
|
+
kind: z.ZodEnum<{
|
|
21386
|
+
text: "text";
|
|
21387
|
+
speech: "speech";
|
|
21388
|
+
}>;
|
|
21389
|
+
model: z.ZodString;
|
|
21390
|
+
path: z.ZodString;
|
|
21391
|
+
size_bytes: z.ZodInt;
|
|
21392
|
+
freed_bytes: z.ZodInt;
|
|
21393
|
+
in_place: z.ZodBoolean;
|
|
21394
|
+
source: z.ZodNullable<z.ZodString>;
|
|
21395
|
+
running: z.ZodBoolean;
|
|
21396
|
+
}, z.core.$strict>;
|
|
21397
|
+
type LocalModelRow = z.output<typeof LocalModelRow>;
|
|
21398
|
+
declare const ModelsLocalListParams: z.ZodObject<{}, z.core.$strict>;
|
|
21399
|
+
type ModelsLocalListParams = z.output<typeof ModelsLocalListParams>;
|
|
21400
|
+
declare const ModelsLocalListResult: z.ZodObject<{
|
|
21401
|
+
models: z.ZodArray<z.ZodObject<{
|
|
21402
|
+
kind: z.ZodEnum<{
|
|
21403
|
+
text: "text";
|
|
21404
|
+
speech: "speech";
|
|
21405
|
+
}>;
|
|
21406
|
+
model: z.ZodString;
|
|
21407
|
+
path: z.ZodString;
|
|
21408
|
+
size_bytes: z.ZodInt;
|
|
21409
|
+
freed_bytes: z.ZodInt;
|
|
21410
|
+
in_place: z.ZodBoolean;
|
|
21411
|
+
source: z.ZodNullable<z.ZodString>;
|
|
21412
|
+
running: z.ZodBoolean;
|
|
21413
|
+
}, z.core.$strict>>;
|
|
21414
|
+
}, z.core.$strict>;
|
|
21415
|
+
type ModelsLocalListResult = z.output<typeof ModelsLocalListResult>;
|
|
21416
|
+
/**
|
|
21417
|
+
* Remove one model from this computer. A file only Matrx 2 holds is deleted; a file used in place (a
|
|
21418
|
+
* link to the person's own file) is only unlinked: the person's file is never deleted. The running
|
|
21419
|
+
* model is stopped first. RESOURCE_BUSY while it downloads; NOT_FOUND when it is not here.
|
|
21420
|
+
*/
|
|
21421
|
+
declare const ModelsLocalRemoveParams: z.ZodObject<{
|
|
21422
|
+
kind: z.ZodEnum<{
|
|
21423
|
+
text: "text";
|
|
21424
|
+
speech: "speech";
|
|
21425
|
+
}>;
|
|
21426
|
+
model: z.ZodString;
|
|
21427
|
+
}, z.core.$strict>;
|
|
21428
|
+
type ModelsLocalRemoveParams = z.output<typeof ModelsLocalRemoveParams>;
|
|
21429
|
+
declare const ModelsLocalRemoveResult: z.ZodObject<{
|
|
21430
|
+
kind: z.ZodEnum<{
|
|
21431
|
+
text: "text";
|
|
21432
|
+
speech: "speech";
|
|
21433
|
+
}>;
|
|
21434
|
+
model: z.ZodString;
|
|
21435
|
+
freed_bytes: z.ZodInt;
|
|
21436
|
+
stopped: z.ZodBoolean;
|
|
21437
|
+
kept: z.ZodNullable<z.ZodString>;
|
|
21438
|
+
}, z.core.$strict>;
|
|
21439
|
+
type ModelsLocalRemoveResult = z.output<typeof ModelsLocalRemoveResult>;
|
|
21248
21440
|
/** The supervisor's view of the `ml` service process. */
|
|
21249
21441
|
declare const MlServiceState: z.ZodEnum<{
|
|
21250
21442
|
failed: "failed";
|
|
@@ -21271,4 +21463,4 @@ type MlServiceStatus = z.output<typeof MlServiceStatus>;
|
|
|
21271
21463
|
declare const ModelsStatusParams: z.ZodObject<{}, z.core.$strict>;
|
|
21272
21464
|
type ModelsStatusParams = z.output<typeof ModelsStatusParams>;
|
|
21273
21465
|
|
|
21274
|
-
export {
|
|
21466
|
+
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, ModelsLlmInstallParams as a8, ModelsLlmInstallResult as a9, type ServiceId as aA, type ServiceOpName as aB, type ServiceOpSpec as aC, type ServiceSpec as aD, Sha256Hex as aE, StreamMsg as aF, TextModelId as aG, TextModelInfo as aH, TranscriptSegment as aI, TranscriptionModelInfo as aJ, UnusableTextModel as aK, closeRule as aL, isTerminalClose as aM, ModelsLlmStartParams as aa, ModelsLlmStartResult as ab, ModelsLlmStatusParams as ac, ModelsLlmStatusResult as ad, ModelsLlmStopParams as ae, ModelsLlmStopResult as af, ModelsLocalListParams as ag, ModelsLocalListResult as ah, ModelsLocalRemoveParams as ai, ModelsLocalRemoveResult as aj, ModelsProgressEvent as ak, ModelsStatusParams as al, ModelsStatusResult as am, ModelsTranscribeParams as an, NAMED_SCHEMAS as ao, type NamedSchemaId as ap, OpDescriptor as aq, type OpSpec as ar, PING_TEXT as as, PONG_TEXT as at, ProtocolErrorBody as au, RelayMsg as av, RequestMsg as aw, ResponseMsg as ax, SERVICES as ay, SUBPROTOCOL 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
|
@@ -1115,6 +1115,49 @@ declare const OPS: {
|
|
|
1115
1115
|
readonly since: "1.45";
|
|
1116
1116
|
readonly errors: readonly ["NOT_FOUND", "INTERNAL"];
|
|
1117
1117
|
};
|
|
1118
|
+
readonly "models.local.list": {
|
|
1119
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1120
|
+
readonly result: z.ZodObject<{
|
|
1121
|
+
models: z.ZodArray<z.ZodObject<{
|
|
1122
|
+
kind: z.ZodEnum<{
|
|
1123
|
+
text: "text";
|
|
1124
|
+
speech: "speech";
|
|
1125
|
+
}>;
|
|
1126
|
+
model: z.ZodString;
|
|
1127
|
+
path: z.ZodString;
|
|
1128
|
+
size_bytes: z.ZodInt;
|
|
1129
|
+
freed_bytes: z.ZodInt;
|
|
1130
|
+
in_place: z.ZodBoolean;
|
|
1131
|
+
source: z.ZodNullable<z.ZodString>;
|
|
1132
|
+
running: z.ZodBoolean;
|
|
1133
|
+
}, z.core.$strict>>;
|
|
1134
|
+
}, z.core.$strict>;
|
|
1135
|
+
readonly kind: "unary";
|
|
1136
|
+
readonly since: "1.74";
|
|
1137
|
+
readonly errors: readonly ["INTERNAL"];
|
|
1138
|
+
};
|
|
1139
|
+
readonly "models.local.remove": {
|
|
1140
|
+
readonly params: z.ZodObject<{
|
|
1141
|
+
kind: z.ZodEnum<{
|
|
1142
|
+
text: "text";
|
|
1143
|
+
speech: "speech";
|
|
1144
|
+
}>;
|
|
1145
|
+
model: z.ZodString;
|
|
1146
|
+
}, z.core.$strict>;
|
|
1147
|
+
readonly result: z.ZodObject<{
|
|
1148
|
+
kind: z.ZodEnum<{
|
|
1149
|
+
text: "text";
|
|
1150
|
+
speech: "speech";
|
|
1151
|
+
}>;
|
|
1152
|
+
model: z.ZodString;
|
|
1153
|
+
freed_bytes: z.ZodInt;
|
|
1154
|
+
stopped: z.ZodBoolean;
|
|
1155
|
+
kept: z.ZodNullable<z.ZodString>;
|
|
1156
|
+
}, z.core.$strict>;
|
|
1157
|
+
readonly kind: "unary";
|
|
1158
|
+
readonly since: "1.74";
|
|
1159
|
+
readonly errors: readonly ["NOT_FOUND", "INVALID_PARAMS", "RESOURCE_BUSY", "INTERNAL"];
|
|
1160
|
+
};
|
|
1118
1161
|
readonly "apps.list": {
|
|
1119
1162
|
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1120
1163
|
readonly result: z.ZodObject<{
|
package/dist/react.d.ts
CHANGED
|
@@ -1115,6 +1115,49 @@ declare const OPS: {
|
|
|
1115
1115
|
readonly since: "1.45";
|
|
1116
1116
|
readonly errors: readonly ["NOT_FOUND", "INTERNAL"];
|
|
1117
1117
|
};
|
|
1118
|
+
readonly "models.local.list": {
|
|
1119
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1120
|
+
readonly result: z.ZodObject<{
|
|
1121
|
+
models: z.ZodArray<z.ZodObject<{
|
|
1122
|
+
kind: z.ZodEnum<{
|
|
1123
|
+
text: "text";
|
|
1124
|
+
speech: "speech";
|
|
1125
|
+
}>;
|
|
1126
|
+
model: z.ZodString;
|
|
1127
|
+
path: z.ZodString;
|
|
1128
|
+
size_bytes: z.ZodInt;
|
|
1129
|
+
freed_bytes: z.ZodInt;
|
|
1130
|
+
in_place: z.ZodBoolean;
|
|
1131
|
+
source: z.ZodNullable<z.ZodString>;
|
|
1132
|
+
running: z.ZodBoolean;
|
|
1133
|
+
}, z.core.$strict>>;
|
|
1134
|
+
}, z.core.$strict>;
|
|
1135
|
+
readonly kind: "unary";
|
|
1136
|
+
readonly since: "1.74";
|
|
1137
|
+
readonly errors: readonly ["INTERNAL"];
|
|
1138
|
+
};
|
|
1139
|
+
readonly "models.local.remove": {
|
|
1140
|
+
readonly params: z.ZodObject<{
|
|
1141
|
+
kind: z.ZodEnum<{
|
|
1142
|
+
text: "text";
|
|
1143
|
+
speech: "speech";
|
|
1144
|
+
}>;
|
|
1145
|
+
model: z.ZodString;
|
|
1146
|
+
}, z.core.$strict>;
|
|
1147
|
+
readonly result: z.ZodObject<{
|
|
1148
|
+
kind: z.ZodEnum<{
|
|
1149
|
+
text: "text";
|
|
1150
|
+
speech: "speech";
|
|
1151
|
+
}>;
|
|
1152
|
+
model: z.ZodString;
|
|
1153
|
+
freed_bytes: z.ZodInt;
|
|
1154
|
+
stopped: z.ZodBoolean;
|
|
1155
|
+
kept: z.ZodNullable<z.ZodString>;
|
|
1156
|
+
}, z.core.$strict>;
|
|
1157
|
+
readonly kind: "unary";
|
|
1158
|
+
readonly since: "1.74";
|
|
1159
|
+
readonly errors: readonly ["NOT_FOUND", "INVALID_PARAMS", "RESOURCE_BUSY", "INTERNAL"];
|
|
1160
|
+
};
|
|
1118
1161
|
readonly "apps.list": {
|
|
1119
1162
|
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1120
1163
|
readonly result: z.ZodObject<{
|