@ai-matrx/desktop-protocol 0.21.93 → 0.21.94
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 +14 -1
- package/dist/{chunk-server-HBZSBBGI.js → chunk-server-5MKSD7FQ.js} +3 -3
- package/dist/chunk-server-5MKSD7FQ.js.map +1 -0
- package/dist/{chunk-server-FJWACRBP.js → chunk-server-PXHL7V3H.js} +3 -3
- package/dist/{chunk-server-MCBYY6QK.js → chunk-server-Q7F4IE6F.js} +9 -5
- package/dist/chunk-server-Q7F4IE6F.js.map +1 -0
- package/dist/{chunk-server-7CEUIBDY.js → chunk-server-RWKOPRNC.js} +51 -6
- package/dist/chunk-server-RWKOPRNC.js.map +1 -0
- package/dist/client.cjs +50 -8
- 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 +3 -3
- package/dist/index.cjs +59 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -17
- package/dist/index.d.ts +30 -17
- package/dist/index.js +14 -4
- package/dist/index.js.map +1 -1
- package/dist/{models-BpWoHvNe.d.cts → models-D2apXuiZ.d.cts} +335 -24
- package/dist/{models-BpWoHvNe.d.ts → models-D2apXuiZ.d.ts} +335 -24
- package/dist/react.d.cts +56 -1
- package/dist/react.d.ts +56 -1
- package/generated/desktop-protocol.schema.json +209 -4
- package/package.json +2 -2
- package/dist/chunk-server-7CEUIBDY.js.map +0 -1
- package/dist/chunk-server-HBZSBBGI.js.map +0 -1
- package/dist/chunk-server-MCBYY6QK.js.map +0 -1
- /package/dist/{chunk-server-FJWACRBP.js.map → chunk-server-PXHL7V3H.js.map} +0 -0
|
@@ -717,7 +717,7 @@ type OpSpec = {
|
|
|
717
717
|
readonly params: z.ZodType;
|
|
718
718
|
readonly result: z.ZodType;
|
|
719
719
|
readonly kind: "unary" | "stream" | "resource";
|
|
720
|
-
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" | "1.81" | "1.82" | "1.83" | "1.84" | "1.85" | "1.87";
|
|
720
|
+
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" | "1.81" | "1.82" | "1.83" | "1.84" | "1.85" | "1.87" | "1.88";
|
|
721
721
|
readonly errors: readonly z.infer<typeof ErrorCode>[];
|
|
722
722
|
};
|
|
723
723
|
declare const OPS: {
|
|
@@ -1465,8 +1465,8 @@ declare const OPS: {
|
|
|
1465
1465
|
readonly params: z.ZodObject<{
|
|
1466
1466
|
resource_id: z.ZodString;
|
|
1467
1467
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
1468
|
-
read_only: "read_only";
|
|
1469
1468
|
control: "control";
|
|
1469
|
+
read_only: "read_only";
|
|
1470
1470
|
}>>;
|
|
1471
1471
|
since_seq: z.ZodOptional<z.ZodInt>;
|
|
1472
1472
|
window_bytes: z.ZodOptional<z.ZodInt>;
|
|
@@ -1708,6 +1708,30 @@ declare const OPS: {
|
|
|
1708
1708
|
bytes_total: z.ZodNullable<z.ZodInt>;
|
|
1709
1709
|
}, z.core.$strict>>;
|
|
1710
1710
|
error: z.ZodNullable<z.ZodString>;
|
|
1711
|
+
embedding: z.ZodOptional<z.ZodObject<{
|
|
1712
|
+
state: z.ZodEnum<{
|
|
1713
|
+
failed: "failed";
|
|
1714
|
+
running: "running";
|
|
1715
|
+
stopped: "stopped";
|
|
1716
|
+
starting: "starting";
|
|
1717
|
+
}>;
|
|
1718
|
+
models: z.ZodArray<z.ZodObject<{
|
|
1719
|
+
id: z.ZodString;
|
|
1720
|
+
size_bytes: z.ZodInt;
|
|
1721
|
+
installed: z.ZodBoolean;
|
|
1722
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1723
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
1724
|
+
}, z.core.$strict>>;
|
|
1725
|
+
running: z.ZodNullable<z.ZodObject<{
|
|
1726
|
+
id: z.ZodString;
|
|
1727
|
+
port: z.ZodInt;
|
|
1728
|
+
context_length: z.ZodOptional<z.ZodInt>;
|
|
1729
|
+
gpu_layers: z.ZodOptional<z.ZodInt>;
|
|
1730
|
+
threads: z.ZodOptional<z.ZodInt>;
|
|
1731
|
+
}, z.core.$strict>>;
|
|
1732
|
+
starting: z.ZodNullable<z.ZodString>;
|
|
1733
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1734
|
+
}, z.core.$strict>>;
|
|
1711
1735
|
}, z.core.$strict>;
|
|
1712
1736
|
readonly kind: "unary";
|
|
1713
1737
|
readonly since: "1.31";
|
|
@@ -1734,6 +1758,10 @@ declare const OPS: {
|
|
|
1734
1758
|
gpu_layers: z.ZodOptional<z.ZodInt>;
|
|
1735
1759
|
threads: z.ZodOptional<z.ZodInt>;
|
|
1736
1760
|
load_timeout_s: z.ZodOptional<z.ZodInt>;
|
|
1761
|
+
slot: z.ZodOptional<z.ZodEnum<{
|
|
1762
|
+
chat: "chat";
|
|
1763
|
+
embed: "embed";
|
|
1764
|
+
}>>;
|
|
1737
1765
|
}, z.core.$strict>;
|
|
1738
1766
|
readonly result: z.ZodObject<{
|
|
1739
1767
|
running: z.ZodObject<{
|
|
@@ -1750,7 +1778,12 @@ declare const OPS: {
|
|
|
1750
1778
|
readonly errors: readonly ["NOT_FOUND", "RESOURCE_BUSY", "RESOURCE_GONE", "TIMEOUT", "CANCELLED", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
1751
1779
|
};
|
|
1752
1780
|
readonly "models.llm.stop": {
|
|
1753
|
-
readonly params: z.ZodObject<{
|
|
1781
|
+
readonly params: z.ZodObject<{
|
|
1782
|
+
slot: z.ZodOptional<z.ZodEnum<{
|
|
1783
|
+
chat: "chat";
|
|
1784
|
+
embed: "embed";
|
|
1785
|
+
}>>;
|
|
1786
|
+
}, z.core.$strict>;
|
|
1754
1787
|
readonly result: z.ZodObject<{
|
|
1755
1788
|
stopped: z.ZodBoolean;
|
|
1756
1789
|
}, z.core.$strict>;
|
|
@@ -1773,6 +1806,28 @@ declare const OPS: {
|
|
|
1773
1806
|
readonly since: "1.76";
|
|
1774
1807
|
readonly errors: readonly ["NOT_FOUND", "RESOURCE_BUSY", "RESOURCE_GONE", "INVALID_PARAMS", "TIMEOUT", "CANCELLED", "RATE_LIMITED", "INTERNAL"];
|
|
1775
1808
|
};
|
|
1809
|
+
readonly "models.embed": {
|
|
1810
|
+
readonly params: z.ZodObject<{
|
|
1811
|
+
model: z.ZodString;
|
|
1812
|
+
input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
1813
|
+
start_if_stopped: z.ZodOptional<z.ZodBoolean>;
|
|
1814
|
+
}, z.core.$strict>;
|
|
1815
|
+
readonly result: z.ZodObject<{
|
|
1816
|
+
model: z.ZodString;
|
|
1817
|
+
dimensions: z.ZodInt;
|
|
1818
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1819
|
+
index: z.ZodInt;
|
|
1820
|
+
embedding: z.ZodArray<z.ZodNumber>;
|
|
1821
|
+
}, z.core.$strict>>;
|
|
1822
|
+
usage: z.ZodObject<{
|
|
1823
|
+
prompt_tokens: z.ZodInt;
|
|
1824
|
+
total_tokens: z.ZodInt;
|
|
1825
|
+
}, z.core.$strict>;
|
|
1826
|
+
}, z.core.$strict>;
|
|
1827
|
+
readonly kind: "unary";
|
|
1828
|
+
readonly since: "1.88";
|
|
1829
|
+
readonly errors: readonly ["NOT_FOUND", "RESOURCE_BUSY", "RESOURCE_GONE", "INVALID_PARAMS", "TIMEOUT", "CANCELLED", "INTERNAL"];
|
|
1830
|
+
};
|
|
1776
1831
|
readonly "models.downloads.list": {
|
|
1777
1832
|
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1778
1833
|
readonly result: z.ZodObject<{
|
|
@@ -3049,9 +3104,9 @@ declare const OPS: {
|
|
|
3049
3104
|
account: z.ZodNullable<z.ZodString>;
|
|
3050
3105
|
next_reset_ms: z.ZodNullable<z.ZodInt>;
|
|
3051
3106
|
source: z.ZodNullable<z.ZodEnum<{
|
|
3052
|
-
claude: "claude";
|
|
3053
3107
|
usage_history: "usage_history";
|
|
3054
3108
|
your_list: "your_list";
|
|
3109
|
+
claude: "claude";
|
|
3055
3110
|
}>>;
|
|
3056
3111
|
official: z.ZodBoolean;
|
|
3057
3112
|
note: z.ZodNullable<z.ZodString>;
|
|
@@ -3156,8 +3211,8 @@ declare const OPS: {
|
|
|
3156
3211
|
last_seen_ms: z.ZodNullable<z.ZodInt>;
|
|
3157
3212
|
missing: z.ZodArray<z.ZodEnum<{
|
|
3158
3213
|
usage: "usage";
|
|
3159
|
-
plan: "plan";
|
|
3160
3214
|
email: "email";
|
|
3215
|
+
plan: "plan";
|
|
3161
3216
|
}>>;
|
|
3162
3217
|
profile: z.ZodOptional<z.ZodObject<{
|
|
3163
3218
|
name: z.ZodNullable<z.ZodString>;
|
|
@@ -7552,8 +7607,8 @@ declare const OPS: {
|
|
|
7552
7607
|
cwd: z.ZodNullable<z.ZodString>;
|
|
7553
7608
|
updatedAt: z.ZodString;
|
|
7554
7609
|
where: z.ZodEnum<{
|
|
7555
|
-
content: "content";
|
|
7556
7610
|
title: "title";
|
|
7611
|
+
content: "content";
|
|
7557
7612
|
}>;
|
|
7558
7613
|
snippet: z.ZodNullable<z.ZodString>;
|
|
7559
7614
|
accountId: z.ZodOptional<z.ZodString>;
|
|
@@ -9909,8 +9964,8 @@ declare const EVENTS: {
|
|
|
9909
9964
|
readonly "session.control_changed": z.ZodObject<{
|
|
9910
9965
|
controller_client_id: z.ZodNullable<z.ZodString>;
|
|
9911
9966
|
your_mode: z.ZodEnum<{
|
|
9912
|
-
read_only: "read_only";
|
|
9913
9967
|
control: "control";
|
|
9968
|
+
read_only: "read_only";
|
|
9914
9969
|
}>;
|
|
9915
9970
|
}, z.core.$strict>;
|
|
9916
9971
|
readonly "models.progress": z.ZodObject<{
|
|
@@ -10497,6 +10552,30 @@ declare const SERVICES: {
|
|
|
10497
10552
|
bytes_total: z.ZodNullable<z.ZodInt>;
|
|
10498
10553
|
}, z.core.$strict>>;
|
|
10499
10554
|
error: z.ZodNullable<z.ZodString>;
|
|
10555
|
+
embedding: z.ZodOptional<z.ZodObject<{
|
|
10556
|
+
state: z.ZodEnum<{
|
|
10557
|
+
failed: "failed";
|
|
10558
|
+
running: "running";
|
|
10559
|
+
stopped: "stopped";
|
|
10560
|
+
starting: "starting";
|
|
10561
|
+
}>;
|
|
10562
|
+
models: z.ZodArray<z.ZodObject<{
|
|
10563
|
+
id: z.ZodString;
|
|
10564
|
+
size_bytes: z.ZodInt;
|
|
10565
|
+
installed: z.ZodBoolean;
|
|
10566
|
+
title: z.ZodOptional<z.ZodString>;
|
|
10567
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
10568
|
+
}, z.core.$strict>>;
|
|
10569
|
+
running: z.ZodNullable<z.ZodObject<{
|
|
10570
|
+
id: z.ZodString;
|
|
10571
|
+
port: z.ZodInt;
|
|
10572
|
+
context_length: z.ZodOptional<z.ZodInt>;
|
|
10573
|
+
gpu_layers: z.ZodOptional<z.ZodInt>;
|
|
10574
|
+
threads: z.ZodOptional<z.ZodInt>;
|
|
10575
|
+
}, z.core.$strict>>;
|
|
10576
|
+
starting: z.ZodNullable<z.ZodString>;
|
|
10577
|
+
error: z.ZodNullable<z.ZodString>;
|
|
10578
|
+
}, z.core.$strict>>;
|
|
10500
10579
|
}, z.core.$strict>;
|
|
10501
10580
|
};
|
|
10502
10581
|
readonly "ml.llm_install": {
|
|
@@ -10517,6 +10596,10 @@ declare const SERVICES: {
|
|
|
10517
10596
|
gpu_layers: z.ZodOptional<z.ZodInt>;
|
|
10518
10597
|
threads: z.ZodOptional<z.ZodInt>;
|
|
10519
10598
|
load_timeout_s: z.ZodOptional<z.ZodInt>;
|
|
10599
|
+
slot: z.ZodOptional<z.ZodEnum<{
|
|
10600
|
+
chat: "chat";
|
|
10601
|
+
embed: "embed";
|
|
10602
|
+
}>>;
|
|
10520
10603
|
}, z.core.$strict>;
|
|
10521
10604
|
readonly result: z.ZodObject<{
|
|
10522
10605
|
running: z.ZodObject<{
|
|
@@ -10530,7 +10613,12 @@ declare const SERVICES: {
|
|
|
10530
10613
|
}, z.core.$strict>;
|
|
10531
10614
|
};
|
|
10532
10615
|
readonly "ml.llm_stop": {
|
|
10533
|
-
readonly params: z.ZodObject<{
|
|
10616
|
+
readonly params: z.ZodObject<{
|
|
10617
|
+
slot: z.ZodOptional<z.ZodEnum<{
|
|
10618
|
+
chat: "chat";
|
|
10619
|
+
embed: "embed";
|
|
10620
|
+
}>>;
|
|
10621
|
+
}, z.core.$strict>;
|
|
10534
10622
|
readonly result: z.ZodObject<{
|
|
10535
10623
|
stopped: z.ZodBoolean;
|
|
10536
10624
|
}, z.core.$strict>;
|
|
@@ -10753,6 +10841,19 @@ declare const SERVICES: {
|
|
|
10753
10841
|
role: z.ZodString;
|
|
10754
10842
|
}, z.core.$strict>>;
|
|
10755
10843
|
}, z.core.$strict>>>;
|
|
10844
|
+
embedding: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10845
|
+
key: z.ZodString;
|
|
10846
|
+
variant: z.ZodString;
|
|
10847
|
+
revision: z.ZodString;
|
|
10848
|
+
multilingual: z.ZodBoolean;
|
|
10849
|
+
files: z.ZodArray<z.ZodObject<{
|
|
10850
|
+
path: z.ZodString;
|
|
10851
|
+
url: z.ZodString;
|
|
10852
|
+
size_bytes: z.ZodInt;
|
|
10853
|
+
sha256: z.ZodNullable<z.ZodString>;
|
|
10854
|
+
role: z.ZodString;
|
|
10855
|
+
}, z.core.$strict>>;
|
|
10856
|
+
}, z.core.$strict>>>;
|
|
10756
10857
|
}, z.core.$strict>;
|
|
10757
10858
|
readonly result: z.ZodObject<{
|
|
10758
10859
|
text: z.ZodInt;
|
|
@@ -12350,8 +12451,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
12350
12451
|
}>;
|
|
12351
12452
|
readonly AccountGap: z.ZodEnum<{
|
|
12352
12453
|
usage: "usage";
|
|
12353
|
-
plan: "plan";
|
|
12354
12454
|
email: "email";
|
|
12455
|
+
plan: "plan";
|
|
12355
12456
|
}>;
|
|
12356
12457
|
readonly AppAccount: z.ZodObject<{
|
|
12357
12458
|
app_key: z.ZodString;
|
|
@@ -12379,8 +12480,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
12379
12480
|
last_seen_ms: z.ZodNullable<z.ZodInt>;
|
|
12380
12481
|
missing: z.ZodArray<z.ZodEnum<{
|
|
12381
12482
|
usage: "usage";
|
|
12382
|
-
plan: "plan";
|
|
12383
12483
|
email: "email";
|
|
12484
|
+
plan: "plan";
|
|
12384
12485
|
}>>;
|
|
12385
12486
|
profile: z.ZodOptional<z.ZodObject<{
|
|
12386
12487
|
name: z.ZodNullable<z.ZodString>;
|
|
@@ -12496,8 +12597,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
12496
12597
|
last_seen_ms: z.ZodNullable<z.ZodInt>;
|
|
12497
12598
|
missing: z.ZodArray<z.ZodEnum<{
|
|
12498
12599
|
usage: "usage";
|
|
12499
|
-
plan: "plan";
|
|
12500
12600
|
email: "email";
|
|
12601
|
+
plan: "plan";
|
|
12501
12602
|
}>>;
|
|
12502
12603
|
profile: z.ZodOptional<z.ZodObject<{
|
|
12503
12604
|
name: z.ZodNullable<z.ZodString>;
|
|
@@ -13949,8 +14050,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
13949
14050
|
readonly SessionAttachParams: z.ZodObject<{
|
|
13950
14051
|
resource_id: z.ZodString;
|
|
13951
14052
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
13952
|
-
read_only: "read_only";
|
|
13953
14053
|
control: "control";
|
|
14054
|
+
read_only: "read_only";
|
|
13954
14055
|
}>>;
|
|
13955
14056
|
since_seq: z.ZodOptional<z.ZodInt>;
|
|
13956
14057
|
window_bytes: z.ZodOptional<z.ZodInt>;
|
|
@@ -14051,8 +14152,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
14051
14152
|
readonly SessionControlChangedEvent: z.ZodObject<{
|
|
14052
14153
|
controller_client_id: z.ZodNullable<z.ZodString>;
|
|
14053
14154
|
your_mode: z.ZodEnum<{
|
|
14054
|
-
read_only: "read_only";
|
|
14055
14155
|
control: "control";
|
|
14156
|
+
read_only: "read_only";
|
|
14056
14157
|
}>;
|
|
14057
14158
|
}, z.core.$strict>;
|
|
14058
14159
|
readonly TranscriptionModelId: z.ZodString;
|
|
@@ -14371,6 +14472,19 @@ declare const NAMED_SCHEMAS: {
|
|
|
14371
14472
|
role: z.ZodString;
|
|
14372
14473
|
}, z.core.$strict>>;
|
|
14373
14474
|
}, z.core.$strict>>>;
|
|
14475
|
+
embedding: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14476
|
+
key: z.ZodString;
|
|
14477
|
+
variant: z.ZodString;
|
|
14478
|
+
revision: z.ZodString;
|
|
14479
|
+
multilingual: z.ZodBoolean;
|
|
14480
|
+
files: z.ZodArray<z.ZodObject<{
|
|
14481
|
+
path: z.ZodString;
|
|
14482
|
+
url: z.ZodString;
|
|
14483
|
+
size_bytes: z.ZodInt;
|
|
14484
|
+
sha256: z.ZodNullable<z.ZodString>;
|
|
14485
|
+
role: z.ZodString;
|
|
14486
|
+
}, z.core.$strict>>;
|
|
14487
|
+
}, z.core.$strict>>>;
|
|
14374
14488
|
}, z.core.$strict>;
|
|
14375
14489
|
readonly MlCatalogSetResult: z.ZodObject<{
|
|
14376
14490
|
text: z.ZodInt;
|
|
@@ -14423,6 +14537,30 @@ declare const NAMED_SCHEMAS: {
|
|
|
14423
14537
|
bytes_total: z.ZodNullable<z.ZodInt>;
|
|
14424
14538
|
}, z.core.$strict>>;
|
|
14425
14539
|
error: z.ZodNullable<z.ZodString>;
|
|
14540
|
+
embedding: z.ZodOptional<z.ZodObject<{
|
|
14541
|
+
state: z.ZodEnum<{
|
|
14542
|
+
failed: "failed";
|
|
14543
|
+
running: "running";
|
|
14544
|
+
stopped: "stopped";
|
|
14545
|
+
starting: "starting";
|
|
14546
|
+
}>;
|
|
14547
|
+
models: z.ZodArray<z.ZodObject<{
|
|
14548
|
+
id: z.ZodString;
|
|
14549
|
+
size_bytes: z.ZodInt;
|
|
14550
|
+
installed: z.ZodBoolean;
|
|
14551
|
+
title: z.ZodOptional<z.ZodString>;
|
|
14552
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
14553
|
+
}, z.core.$strict>>;
|
|
14554
|
+
running: z.ZodNullable<z.ZodObject<{
|
|
14555
|
+
id: z.ZodString;
|
|
14556
|
+
port: z.ZodInt;
|
|
14557
|
+
context_length: z.ZodOptional<z.ZodInt>;
|
|
14558
|
+
gpu_layers: z.ZodOptional<z.ZodInt>;
|
|
14559
|
+
threads: z.ZodOptional<z.ZodInt>;
|
|
14560
|
+
}, z.core.$strict>>;
|
|
14561
|
+
starting: z.ZodNullable<z.ZodString>;
|
|
14562
|
+
error: z.ZodNullable<z.ZodString>;
|
|
14563
|
+
}, z.core.$strict>>;
|
|
14426
14564
|
}, z.core.$strict>;
|
|
14427
14565
|
readonly ModelsLlmInstallParams: z.ZodObject<{
|
|
14428
14566
|
model: z.ZodString;
|
|
@@ -14439,6 +14577,10 @@ declare const NAMED_SCHEMAS: {
|
|
|
14439
14577
|
gpu_layers: z.ZodOptional<z.ZodInt>;
|
|
14440
14578
|
threads: z.ZodOptional<z.ZodInt>;
|
|
14441
14579
|
load_timeout_s: z.ZodOptional<z.ZodInt>;
|
|
14580
|
+
slot: z.ZodOptional<z.ZodEnum<{
|
|
14581
|
+
chat: "chat";
|
|
14582
|
+
embed: "embed";
|
|
14583
|
+
}>>;
|
|
14442
14584
|
}, z.core.$strict>;
|
|
14443
14585
|
readonly ModelsLlmStartResult: z.ZodObject<{
|
|
14444
14586
|
running: z.ZodObject<{
|
|
@@ -14450,7 +14592,12 @@ declare const NAMED_SCHEMAS: {
|
|
|
14450
14592
|
}, z.core.$strict>;
|
|
14451
14593
|
elapsed_ms: z.ZodInt;
|
|
14452
14594
|
}, z.core.$strict>;
|
|
14453
|
-
readonly ModelsLlmStopParams: z.ZodObject<{
|
|
14595
|
+
readonly ModelsLlmStopParams: z.ZodObject<{
|
|
14596
|
+
slot: z.ZodOptional<z.ZodEnum<{
|
|
14597
|
+
chat: "chat";
|
|
14598
|
+
embed: "embed";
|
|
14599
|
+
}>>;
|
|
14600
|
+
}, z.core.$strict>;
|
|
14454
14601
|
readonly ModelsLlmStopResult: z.ZodObject<{
|
|
14455
14602
|
stopped: z.ZodBoolean;
|
|
14456
14603
|
}, z.core.$strict>;
|
|
@@ -14464,6 +14611,55 @@ declare const NAMED_SCHEMAS: {
|
|
|
14464
14611
|
model: z.ZodString;
|
|
14465
14612
|
content_type: z.ZodString;
|
|
14466
14613
|
}, z.core.$strict>;
|
|
14614
|
+
readonly ModelsEmbedParams: z.ZodObject<{
|
|
14615
|
+
model: z.ZodString;
|
|
14616
|
+
input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
14617
|
+
start_if_stopped: z.ZodOptional<z.ZodBoolean>;
|
|
14618
|
+
}, z.core.$strict>;
|
|
14619
|
+
readonly ModelsEmbedResult: z.ZodObject<{
|
|
14620
|
+
model: z.ZodString;
|
|
14621
|
+
dimensions: z.ZodInt;
|
|
14622
|
+
data: z.ZodArray<z.ZodObject<{
|
|
14623
|
+
index: z.ZodInt;
|
|
14624
|
+
embedding: z.ZodArray<z.ZodNumber>;
|
|
14625
|
+
}, z.core.$strict>>;
|
|
14626
|
+
usage: z.ZodObject<{
|
|
14627
|
+
prompt_tokens: z.ZodInt;
|
|
14628
|
+
total_tokens: z.ZodInt;
|
|
14629
|
+
}, z.core.$strict>;
|
|
14630
|
+
}, z.core.$strict>;
|
|
14631
|
+
readonly EmbeddingVector: z.ZodObject<{
|
|
14632
|
+
index: z.ZodInt;
|
|
14633
|
+
embedding: z.ZodArray<z.ZodNumber>;
|
|
14634
|
+
}, z.core.$strict>;
|
|
14635
|
+
readonly LlmSlot: z.ZodEnum<{
|
|
14636
|
+
chat: "chat";
|
|
14637
|
+
embed: "embed";
|
|
14638
|
+
}>;
|
|
14639
|
+
readonly LlmEmbeddingSlot: z.ZodObject<{
|
|
14640
|
+
state: z.ZodEnum<{
|
|
14641
|
+
failed: "failed";
|
|
14642
|
+
running: "running";
|
|
14643
|
+
stopped: "stopped";
|
|
14644
|
+
starting: "starting";
|
|
14645
|
+
}>;
|
|
14646
|
+
models: z.ZodArray<z.ZodObject<{
|
|
14647
|
+
id: z.ZodString;
|
|
14648
|
+
size_bytes: z.ZodInt;
|
|
14649
|
+
installed: z.ZodBoolean;
|
|
14650
|
+
title: z.ZodOptional<z.ZodString>;
|
|
14651
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
14652
|
+
}, z.core.$strict>>;
|
|
14653
|
+
running: z.ZodNullable<z.ZodObject<{
|
|
14654
|
+
id: z.ZodString;
|
|
14655
|
+
port: z.ZodInt;
|
|
14656
|
+
context_length: z.ZodOptional<z.ZodInt>;
|
|
14657
|
+
gpu_layers: z.ZodOptional<z.ZodInt>;
|
|
14658
|
+
threads: z.ZodOptional<z.ZodInt>;
|
|
14659
|
+
}, z.core.$strict>>;
|
|
14660
|
+
starting: z.ZodNullable<z.ZodString>;
|
|
14661
|
+
error: z.ZodNullable<z.ZodString>;
|
|
14662
|
+
}, z.core.$strict>;
|
|
14467
14663
|
readonly DownloadKind: z.ZodEnum<{
|
|
14468
14664
|
runtime: "runtime";
|
|
14469
14665
|
speech_model: "speech_model";
|
|
@@ -16601,8 +16797,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
16601
16797
|
cwd: z.ZodNullable<z.ZodString>;
|
|
16602
16798
|
updatedAt: z.ZodString;
|
|
16603
16799
|
where: z.ZodEnum<{
|
|
16604
|
-
content: "content";
|
|
16605
16800
|
title: "title";
|
|
16801
|
+
content: "content";
|
|
16606
16802
|
}>;
|
|
16607
16803
|
snippet: z.ZodNullable<z.ZodString>;
|
|
16608
16804
|
accountId: z.ZodOptional<z.ZodString>;
|
|
@@ -16619,8 +16815,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
16619
16815
|
cwd: z.ZodNullable<z.ZodString>;
|
|
16620
16816
|
updatedAt: z.ZodString;
|
|
16621
16817
|
where: z.ZodEnum<{
|
|
16622
|
-
content: "content";
|
|
16623
16818
|
title: "title";
|
|
16819
|
+
content: "content";
|
|
16624
16820
|
}>;
|
|
16625
16821
|
snippet: z.ZodNullable<z.ZodString>;
|
|
16626
16822
|
accountId: z.ZodOptional<z.ZodString>;
|
|
@@ -18830,8 +19026,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
18830
19026
|
}, z.core.$strict>>;
|
|
18831
19027
|
}, z.core.$strict>;
|
|
18832
19028
|
readonly ToolLevel: z.ZodEnum<{
|
|
18833
|
-
protocol: "protocol";
|
|
18834
19029
|
chat: "chat";
|
|
19030
|
+
protocol: "protocol";
|
|
18835
19031
|
programmatic: "programmatic";
|
|
18836
19032
|
}>;
|
|
18837
19033
|
readonly ToolOutcome: z.ZodEnum<{
|
|
@@ -18854,8 +19050,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
18854
19050
|
readonly ToolLevelResult: z.ZodObject<{
|
|
18855
19051
|
tool: z.ZodString;
|
|
18856
19052
|
level: z.ZodEnum<{
|
|
18857
|
-
protocol: "protocol";
|
|
18858
19053
|
chat: "chat";
|
|
19054
|
+
protocol: "protocol";
|
|
18859
19055
|
programmatic: "programmatic";
|
|
18860
19056
|
}>;
|
|
18861
19057
|
platform: z.ZodEnum<{
|
|
@@ -18887,8 +19083,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
18887
19083
|
results: z.ZodArray<z.ZodObject<{
|
|
18888
19084
|
tool: z.ZodString;
|
|
18889
19085
|
level: z.ZodEnum<{
|
|
18890
|
-
protocol: "protocol";
|
|
18891
19086
|
chat: "chat";
|
|
19087
|
+
protocol: "protocol";
|
|
18892
19088
|
programmatic: "programmatic";
|
|
18893
19089
|
}>;
|
|
18894
19090
|
platform: z.ZodEnum<{
|
|
@@ -20221,9 +20417,9 @@ declare const NAMED_SCHEMAS: {
|
|
|
20221
20417
|
account: z.ZodNullable<z.ZodString>;
|
|
20222
20418
|
next_reset_ms: z.ZodNullable<z.ZodInt>;
|
|
20223
20419
|
source: z.ZodNullable<z.ZodEnum<{
|
|
20224
|
-
claude: "claude";
|
|
20225
20420
|
usage_history: "usage_history";
|
|
20226
20421
|
your_list: "your_list";
|
|
20422
|
+
claude: "claude";
|
|
20227
20423
|
}>>;
|
|
20228
20424
|
official: z.ZodBoolean;
|
|
20229
20425
|
note: z.ZodNullable<z.ZodString>;
|
|
@@ -20299,9 +20495,9 @@ declare const NAMED_SCHEMAS: {
|
|
|
20299
20495
|
account: z.ZodNullable<z.ZodString>;
|
|
20300
20496
|
next_reset_ms: z.ZodNullable<z.ZodInt>;
|
|
20301
20497
|
source: z.ZodNullable<z.ZodEnum<{
|
|
20302
|
-
claude: "claude";
|
|
20303
20498
|
usage_history: "usage_history";
|
|
20304
20499
|
your_list: "your_list";
|
|
20500
|
+
claude: "claude";
|
|
20305
20501
|
}>>;
|
|
20306
20502
|
official: z.ZodBoolean;
|
|
20307
20503
|
note: z.ZodNullable<z.ZodString>;
|
|
@@ -24340,6 +24536,19 @@ declare const MlCatalogSetParams: z.ZodObject<{
|
|
|
24340
24536
|
role: z.ZodString;
|
|
24341
24537
|
}, z.core.$strict>>;
|
|
24342
24538
|
}, z.core.$strict>>>;
|
|
24539
|
+
embedding: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24540
|
+
key: z.ZodString;
|
|
24541
|
+
variant: z.ZodString;
|
|
24542
|
+
revision: z.ZodString;
|
|
24543
|
+
multilingual: z.ZodBoolean;
|
|
24544
|
+
files: z.ZodArray<z.ZodObject<{
|
|
24545
|
+
path: z.ZodString;
|
|
24546
|
+
url: z.ZodString;
|
|
24547
|
+
size_bytes: z.ZodInt;
|
|
24548
|
+
sha256: z.ZodNullable<z.ZodString>;
|
|
24549
|
+
role: z.ZodString;
|
|
24550
|
+
}, z.core.$strict>>;
|
|
24551
|
+
}, z.core.$strict>>>;
|
|
24343
24552
|
}, z.core.$strict>;
|
|
24344
24553
|
type MlCatalogSetParams = z.output<typeof MlCatalogSetParams>;
|
|
24345
24554
|
/**
|
|
@@ -24388,6 +24597,30 @@ declare const ModelsLlmStatusResult: z.ZodObject<{
|
|
|
24388
24597
|
bytes_total: z.ZodNullable<z.ZodInt>;
|
|
24389
24598
|
}, z.core.$strict>>;
|
|
24390
24599
|
error: z.ZodNullable<z.ZodString>;
|
|
24600
|
+
embedding: z.ZodOptional<z.ZodObject<{
|
|
24601
|
+
state: z.ZodEnum<{
|
|
24602
|
+
failed: "failed";
|
|
24603
|
+
running: "running";
|
|
24604
|
+
stopped: "stopped";
|
|
24605
|
+
starting: "starting";
|
|
24606
|
+
}>;
|
|
24607
|
+
models: z.ZodArray<z.ZodObject<{
|
|
24608
|
+
id: z.ZodString;
|
|
24609
|
+
size_bytes: z.ZodInt;
|
|
24610
|
+
installed: z.ZodBoolean;
|
|
24611
|
+
title: z.ZodOptional<z.ZodString>;
|
|
24612
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
24613
|
+
}, z.core.$strict>>;
|
|
24614
|
+
running: z.ZodNullable<z.ZodObject<{
|
|
24615
|
+
id: z.ZodString;
|
|
24616
|
+
port: z.ZodInt;
|
|
24617
|
+
context_length: z.ZodOptional<z.ZodInt>;
|
|
24618
|
+
gpu_layers: z.ZodOptional<z.ZodInt>;
|
|
24619
|
+
threads: z.ZodOptional<z.ZodInt>;
|
|
24620
|
+
}, z.core.$strict>>;
|
|
24621
|
+
starting: z.ZodNullable<z.ZodString>;
|
|
24622
|
+
error: z.ZodNullable<z.ZodString>;
|
|
24623
|
+
}, z.core.$strict>>;
|
|
24391
24624
|
}, z.core.$strict>;
|
|
24392
24625
|
type ModelsLlmStatusResult = z.output<typeof ModelsLlmStatusResult>;
|
|
24393
24626
|
declare const ModelsLlmStartResult: z.ZodObject<{
|
|
@@ -24532,9 +24765,18 @@ declare const ModelsLlmStartParams: z.ZodObject<{
|
|
|
24532
24765
|
gpu_layers: z.ZodOptional<z.ZodInt>;
|
|
24533
24766
|
threads: z.ZodOptional<z.ZodInt>;
|
|
24534
24767
|
load_timeout_s: z.ZodOptional<z.ZodInt>;
|
|
24768
|
+
slot: z.ZodOptional<z.ZodEnum<{
|
|
24769
|
+
chat: "chat";
|
|
24770
|
+
embed: "embed";
|
|
24771
|
+
}>>;
|
|
24535
24772
|
}, z.core.$strict>;
|
|
24536
24773
|
type ModelsLlmStartParams = z.output<typeof ModelsLlmStartParams>;
|
|
24537
|
-
declare const ModelsLlmStopParams: z.ZodObject<{
|
|
24774
|
+
declare const ModelsLlmStopParams: z.ZodObject<{
|
|
24775
|
+
slot: z.ZodOptional<z.ZodEnum<{
|
|
24776
|
+
chat: "chat";
|
|
24777
|
+
embed: "embed";
|
|
24778
|
+
}>>;
|
|
24779
|
+
}, z.core.$strict>;
|
|
24538
24780
|
type ModelsLlmStopParams = z.output<typeof ModelsLlmStopParams>;
|
|
24539
24781
|
declare const ModelsLlmStopResult: z.ZodObject<{
|
|
24540
24782
|
stopped: z.ZodBoolean;
|
|
@@ -24561,6 +24803,75 @@ declare const ModelsLlmChatResult: z.ZodObject<{
|
|
|
24561
24803
|
content_type: z.ZodString;
|
|
24562
24804
|
}, z.core.$strict>;
|
|
24563
24805
|
type ModelsLlmChatResult = z.output<typeof ModelsLlmChatResult>;
|
|
24806
|
+
/**
|
|
24807
|
+
* (1.88) Which llama-server of the ONE model service a start or stop names: `chat` (the default, the
|
|
24808
|
+
* language model Confidential Chat runs) or `embed` (the embedding model, run with `--embeddings`
|
|
24809
|
+
* beside it). Both follow the same install / start / stop / status flow and the same reasons.
|
|
24810
|
+
*/
|
|
24811
|
+
declare const LlmSlot: z.ZodEnum<{
|
|
24812
|
+
chat: "chat";
|
|
24813
|
+
embed: "embed";
|
|
24814
|
+
}>;
|
|
24815
|
+
type LlmSlot = z.output<typeof LlmSlot>;
|
|
24816
|
+
/**
|
|
24817
|
+
* (1.88) The embeddings slot's status (models.llm.status `embedding`): the same fields as the chat
|
|
24818
|
+
* slot. `models` lists every embedding model (installed or not, and why one cannot run here).
|
|
24819
|
+
*/
|
|
24820
|
+
declare const LlmEmbeddingSlot: z.ZodObject<{
|
|
24821
|
+
state: z.ZodEnum<{
|
|
24822
|
+
failed: "failed";
|
|
24823
|
+
running: "running";
|
|
24824
|
+
stopped: "stopped";
|
|
24825
|
+
starting: "starting";
|
|
24826
|
+
}>;
|
|
24827
|
+
models: z.ZodArray<z.ZodObject<{
|
|
24828
|
+
id: z.ZodString;
|
|
24829
|
+
size_bytes: z.ZodInt;
|
|
24830
|
+
installed: z.ZodBoolean;
|
|
24831
|
+
title: z.ZodOptional<z.ZodString>;
|
|
24832
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
24833
|
+
}, z.core.$strict>>;
|
|
24834
|
+
running: z.ZodNullable<z.ZodObject<{
|
|
24835
|
+
id: z.ZodString;
|
|
24836
|
+
port: z.ZodInt;
|
|
24837
|
+
context_length: z.ZodOptional<z.ZodInt>;
|
|
24838
|
+
gpu_layers: z.ZodOptional<z.ZodInt>;
|
|
24839
|
+
threads: z.ZodOptional<z.ZodInt>;
|
|
24840
|
+
}, z.core.$strict>>;
|
|
24841
|
+
starting: z.ZodNullable<z.ZodString>;
|
|
24842
|
+
error: z.ZodNullable<z.ZodString>;
|
|
24843
|
+
}, z.core.$strict>;
|
|
24844
|
+
type LlmEmbeddingSlot = z.output<typeof LlmEmbeddingSlot>;
|
|
24845
|
+
/**
|
|
24846
|
+
* (1.88) models.embed (unary): text embeddings from the embedding model running in the model
|
|
24847
|
+
* service's embeddings slot, through llama-server's OpenAI-compatible /v1/embeddings. The text never
|
|
24848
|
+
* leaves this computer. `input` is one string or a batch; the vectors come back in input order, in
|
|
24849
|
+
* OpenAI's shape (`data[i].index`, `data[i].embedding`). Nothing reads, logs or keeps the text.
|
|
24850
|
+
*/
|
|
24851
|
+
declare const ModelsEmbedParams: z.ZodObject<{
|
|
24852
|
+
model: z.ZodString;
|
|
24853
|
+
input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
24854
|
+
start_if_stopped: z.ZodOptional<z.ZodBoolean>;
|
|
24855
|
+
}, z.core.$strict>;
|
|
24856
|
+
type ModelsEmbedParams = z.output<typeof ModelsEmbedParams>;
|
|
24857
|
+
declare const ModelsEmbedResult: z.ZodObject<{
|
|
24858
|
+
model: z.ZodString;
|
|
24859
|
+
dimensions: z.ZodInt;
|
|
24860
|
+
data: z.ZodArray<z.ZodObject<{
|
|
24861
|
+
index: z.ZodInt;
|
|
24862
|
+
embedding: z.ZodArray<z.ZodNumber>;
|
|
24863
|
+
}, z.core.$strict>>;
|
|
24864
|
+
usage: z.ZodObject<{
|
|
24865
|
+
prompt_tokens: z.ZodInt;
|
|
24866
|
+
total_tokens: z.ZodInt;
|
|
24867
|
+
}, z.core.$strict>;
|
|
24868
|
+
}, z.core.$strict>;
|
|
24869
|
+
type ModelsEmbedResult = z.output<typeof ModelsEmbedResult>;
|
|
24870
|
+
declare const EmbeddingVector: z.ZodObject<{
|
|
24871
|
+
index: z.ZodInt;
|
|
24872
|
+
embedding: z.ZodArray<z.ZodNumber>;
|
|
24873
|
+
}, z.core.$strict>;
|
|
24874
|
+
type EmbeddingVector = z.output<typeof EmbeddingVector>;
|
|
24564
24875
|
declare const Sha256Hex: z.ZodString;
|
|
24565
24876
|
type Sha256Hex = z.output<typeof Sha256Hex>;
|
|
24566
24877
|
declare const MlCatalogSetResult: z.ZodObject<{
|
|
@@ -24814,5 +25125,5 @@ declare const ModelsTtsVoiceRemoveResult: z.ZodObject<{
|
|
|
24814
25125
|
}, z.core.$strict>;
|
|
24815
25126
|
type ModelsTtsVoiceRemoveResult = z.output<typeof ModelsTtsVoiceRemoveResult>;
|
|
24816
25127
|
|
|
24817
|
-
export {
|
|
24818
|
-
export type {
|
|
25128
|
+
export { MlRuntimeState as $, ErrorReason as A, BEARER_PREFIX as B, DesktopProtocolError as D, EndReason as E, EventMsg as G, FsPatchEditFailure as I, HelloMsg as J, LlamaServerBuild as K, Limits as L, ModelsTranscribeResult as M, LlmEmbeddingSlot as N, LlmRunning as P, LlmServerState as Q, LlmSlot as R, StreamMeta as S, TranscriptionModelId as T, LocalModelKind as U, LocalModelRow as V, Welcome as W, MlCatalogSetParams as X, MlCatalogSetResult as Y, MlInstallPhase as Z, MlInstallProgress as _, TtsAudioChunk as a$, MlServiceState as a0, MlServiceStatus as a1, MlStatusParams as a2, MlStatusResult as a3, ModelKey as a4, ModelsDownloadsCancelParams as a5, ModelsDownloadsCancelResult as a6, ModelsDownloadsListParams as a7, ModelsDownloadsListResult as a8, ModelsEmbedParams as a9, ModelsTtsStatusResult as aA, ModelsTtsVoiceRemoveParams as aB, ModelsTtsVoiceRemoveResult as aC, ModelsTtsVoiceSaveParams as aD, ModelsTtsVoiceSaveResult as aE, NAMED_SCHEMAS as aF, OpDescriptor as aH, PING_TEXT as aJ, PONG_TEXT as aK, ProtocolErrorBody as aL, RelayMsg as aM, RequestMsg as aN, ResponseMsg as aO, SERVICES as aP, SUBPROTOCOL as aQ, Sha256Hex as aV, StreamMsg as aW, TextModelId as aX, TextModelInfo as aY, TranscriptSegment as aZ, TranscriptionModelInfo as a_, ModelsEmbedResult as aa, ModelsInstallParams as ab, ModelsInstallResult as ac, ModelsLlmChatParams as ad, ModelsLlmChatResult as ae, ModelsLlmInstallParams as af, ModelsLlmInstallResult as ag, ModelsLlmStartParams as ah, ModelsLlmStartResult as ai, ModelsLlmStatusParams as aj, ModelsLlmStatusResult as ak, ModelsLlmStopParams as al, ModelsLlmStopResult as am, ModelsLocalListParams as an, ModelsLocalListResult as ao, ModelsLocalRemoveParams as ap, ModelsLocalRemoveResult as aq, ModelsProgressEvent as ar, ModelsStatusParams as as, ModelsStatusResult as at, ModelsTranscribeParams as au, ModelsTtsInstallParams as av, ModelsTtsInstallResult as aw, ModelsTtsSpeakParams as ax, ModelsTtsSpeakResult as ay, ModelsTtsStatusParams as az, TtsBlendPart as b0, TtsModelInfo as b1, TtsVoice as b2, TtsVoiceId as b3, UnusableTextModel as b4, closeRule as b5, isTerminalClose as b6, 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, CloseCode as n, CloseCodeValue as o, CoreToClientMsg as q, CreditMsg as r, DownloadKind as s, DownloadRow as t, EmbeddingVector as u, EndMsg as v, ErrorCode as w, ErrorMsg as z };
|
|
25129
|
+
export type { CloseOutcome as C, ErrorReasonName as F, EventName as H, OpName as O, OpParams as a, NamedSchemaId as aG, OpSpec as aI, ServiceId as aR, ServiceOpName as aS, ServiceOpSpec as aT, ServiceSpec as aU, OpResult as b, CloseAction as m, CloseRule as p, ErrorCodeName as x, ErrorData as y };
|