@ai-matrx/desktop-protocol 0.21.25 → 0.21.27

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.
@@ -707,7 +707,7 @@ type OpSpec = {
707
707
  readonly params: z.ZodType;
708
708
  readonly result: z.ZodType;
709
709
  readonly kind: "unary" | "stream" | "resource";
710
- 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";
710
+ 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";
711
711
  readonly errors: readonly z.infer<typeof ErrorCode>[];
712
712
  };
713
713
  declare const OPS: {
@@ -949,6 +949,82 @@ declare const OPS: {
949
949
  readonly since: "1.0";
950
950
  readonly errors: readonly ["NOT_FOUND", "PERMISSION_DENIED_OS", "INVALID_PARAMS", "RESOURCE_BUSY", "INTERNAL", "CONFLICT"];
951
951
  };
952
+ readonly "fs.copy": {
953
+ readonly params: z.ZodObject<{
954
+ from_path: z.ZodString;
955
+ to_path: z.ZodString;
956
+ overwrite: z.ZodDefault<z.ZodBoolean>;
957
+ }, z.core.$strict>;
958
+ readonly result: z.ZodObject<{
959
+ from_path: z.ZodString;
960
+ to_path: z.ZodString;
961
+ }, z.core.$strict>;
962
+ readonly kind: "unary";
963
+ readonly since: "1.30";
964
+ readonly errors: readonly ["NOT_FOUND", "PERMISSION_DENIED_OS", "INVALID_PARAMS", "RESOURCE_BUSY", "INTERNAL", "CONFLICT"];
965
+ };
966
+ readonly "fs.info": {
967
+ readonly params: z.ZodObject<{
968
+ path: z.ZodString;
969
+ }, z.core.$strict>;
970
+ readonly result: z.ZodObject<{
971
+ entry: z.ZodObject<{
972
+ name: z.ZodString;
973
+ path: z.ZodString;
974
+ kind: z.ZodEnum<{
975
+ file: "file";
976
+ dir: "dir";
977
+ symlink: "symlink";
978
+ }>;
979
+ size: z.ZodInt;
980
+ mtime: z.ZodNumber;
981
+ mode: z.ZodInt;
982
+ target: z.ZodNullable<z.ZodString>;
983
+ }, z.core.$strict>;
984
+ created: z.ZodNullable<z.ZodNumber>;
985
+ owner: z.ZodNullable<z.ZodString>;
986
+ group: z.ZodNullable<z.ZodString>;
987
+ total_size: z.ZodNullable<z.ZodInt>;
988
+ size_on_disk: z.ZodNullable<z.ZodInt>;
989
+ items: z.ZodNullable<z.ZodInt>;
990
+ hidden: z.ZodBoolean;
991
+ locked: z.ZodNullable<z.ZodBoolean>;
992
+ read_only: z.ZodBoolean;
993
+ }, z.core.$strict>;
994
+ readonly kind: "unary";
995
+ readonly since: "1.30";
996
+ readonly errors: readonly ["NOT_FOUND", "PERMISSION_DENIED_OS", "INVALID_PARAMS", "RESOURCE_BUSY", "INTERNAL"];
997
+ };
998
+ readonly "fs.search_index": {
999
+ readonly params: z.ZodObject<{
1000
+ query: z.ZodString;
1001
+ scope: z.ZodOptional<z.ZodString>;
1002
+ max_results: z.ZodDefault<z.ZodInt>;
1003
+ }, z.core.$strict>;
1004
+ readonly result: z.ZodObject<{
1005
+ entries: z.ZodArray<z.ZodObject<{
1006
+ name: z.ZodString;
1007
+ path: z.ZodString;
1008
+ kind: z.ZodEnum<{
1009
+ file: "file";
1010
+ dir: "dir";
1011
+ symlink: "symlink";
1012
+ }>;
1013
+ size: z.ZodInt;
1014
+ mtime: z.ZodNumber;
1015
+ mode: z.ZodInt;
1016
+ target: z.ZodNullable<z.ZodString>;
1017
+ }, z.core.$strict>>;
1018
+ truncated: z.ZodBoolean;
1019
+ source: z.ZodEnum<{
1020
+ index: "index";
1021
+ walk: "walk";
1022
+ }>;
1023
+ }, z.core.$strict>;
1024
+ readonly kind: "unary";
1025
+ readonly since: "1.30";
1026
+ readonly errors: readonly ["NOT_FOUND", "PERMISSION_DENIED_OS", "INVALID_PARAMS", "RESOURCE_BUSY", "INTERNAL", "TIMEOUT"];
1027
+ };
952
1028
  readonly "fs.delete": {
953
1029
  readonly params: z.ZodObject<{
954
1030
  path: z.ZodString;
@@ -1236,8 +1312,8 @@ declare const OPS: {
1236
1312
  readonly params: z.ZodObject<{
1237
1313
  resource_id: z.ZodString;
1238
1314
  mode: z.ZodDefault<z.ZodEnum<{
1239
- control: "control";
1240
1315
  read_only: "read_only";
1316
+ control: "control";
1241
1317
  }>>;
1242
1318
  since_seq: z.ZodOptional<z.ZodInt>;
1243
1319
  window_bytes: z.ZodOptional<z.ZodInt>;
@@ -1360,10 +1436,10 @@ declare const OPS: {
1360
1436
  service: z.ZodObject<{
1361
1437
  state: z.ZodEnum<{
1362
1438
  failed: "failed";
1439
+ stopped: "stopped";
1363
1440
  starting: "starting";
1364
1441
  ready: "ready";
1365
1442
  restarting: "restarting";
1366
- stopped: "stopped";
1367
1443
  }>;
1368
1444
  pid: z.ZodNullable<z.ZodInt>;
1369
1445
  restarts: z.ZodInt;
@@ -1474,6 +1550,155 @@ declare const OPS: {
1474
1550
  readonly since: "1.2";
1475
1551
  readonly errors: readonly ["NOT_FOUND", "INVALID_PARAMS", "PERMISSION_DENIED_OS", "RESOURCE_BUSY", "RESOURCE_GONE", "CANCELLED", "PAYLOAD_TOO_LARGE", "INTERNAL"];
1476
1552
  };
1553
+ readonly "models.llm.status": {
1554
+ readonly params: z.ZodObject<{}, z.core.$strict>;
1555
+ readonly result: z.ZodObject<{
1556
+ state: z.ZodEnum<{
1557
+ running: "running";
1558
+ failed: "failed";
1559
+ stopped: "stopped";
1560
+ starting: "starting";
1561
+ }>;
1562
+ models: z.ZodArray<z.ZodObject<{
1563
+ id: z.ZodEnum<{
1564
+ "smollm2-135m": "smollm2-135m";
1565
+ "llama-3.2-3b": "llama-3.2-3b";
1566
+ "phi-4-mini": "phi-4-mini";
1567
+ "gemma-3-4b": "gemma-3-4b";
1568
+ "llama-3.1-8b": "llama-3.1-8b";
1569
+ "qwen-2.5-7b": "qwen-2.5-7b";
1570
+ "mistral-small-3.1": "mistral-small-3.1";
1571
+ "gpt-oss-20b": "gpt-oss-20b";
1572
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
1573
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
1574
+ }>;
1575
+ size_bytes: z.ZodInt;
1576
+ installed: z.ZodBoolean;
1577
+ }, z.core.$strict>>;
1578
+ running: z.ZodNullable<z.ZodObject<{
1579
+ id: z.ZodEnum<{
1580
+ "smollm2-135m": "smollm2-135m";
1581
+ "llama-3.2-3b": "llama-3.2-3b";
1582
+ "phi-4-mini": "phi-4-mini";
1583
+ "gemma-3-4b": "gemma-3-4b";
1584
+ "llama-3.1-8b": "llama-3.1-8b";
1585
+ "qwen-2.5-7b": "qwen-2.5-7b";
1586
+ "mistral-small-3.1": "mistral-small-3.1";
1587
+ "gpt-oss-20b": "gpt-oss-20b";
1588
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
1589
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
1590
+ }>;
1591
+ port: z.ZodInt;
1592
+ }, z.core.$strict>>;
1593
+ starting: z.ZodNullable<z.ZodEnum<{
1594
+ "smollm2-135m": "smollm2-135m";
1595
+ "llama-3.2-3b": "llama-3.2-3b";
1596
+ "phi-4-mini": "phi-4-mini";
1597
+ "gemma-3-4b": "gemma-3-4b";
1598
+ "llama-3.1-8b": "llama-3.1-8b";
1599
+ "qwen-2.5-7b": "qwen-2.5-7b";
1600
+ "mistral-small-3.1": "mistral-small-3.1";
1601
+ "gpt-oss-20b": "gpt-oss-20b";
1602
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
1603
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
1604
+ }>>;
1605
+ install: z.ZodNullable<z.ZodObject<{
1606
+ phase: z.ZodEnum<{
1607
+ model: "model";
1608
+ packages: "packages";
1609
+ verifying: "verifying";
1610
+ }>;
1611
+ item: z.ZodString;
1612
+ bytes_done: z.ZodInt;
1613
+ bytes_total: z.ZodNullable<z.ZodInt>;
1614
+ }, z.core.$strict>>;
1615
+ error: z.ZodNullable<z.ZodString>;
1616
+ }, z.core.$strict>;
1617
+ readonly kind: "unary";
1618
+ readonly since: "1.31";
1619
+ readonly errors: readonly ["INTERNAL"];
1620
+ };
1621
+ readonly "models.llm.install": {
1622
+ readonly params: z.ZodObject<{
1623
+ model: z.ZodEnum<{
1624
+ "smollm2-135m": "smollm2-135m";
1625
+ "llama-3.2-3b": "llama-3.2-3b";
1626
+ "phi-4-mini": "phi-4-mini";
1627
+ "gemma-3-4b": "gemma-3-4b";
1628
+ "llama-3.1-8b": "llama-3.1-8b";
1629
+ "qwen-2.5-7b": "qwen-2.5-7b";
1630
+ "mistral-small-3.1": "mistral-small-3.1";
1631
+ "gpt-oss-20b": "gpt-oss-20b";
1632
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
1633
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
1634
+ }>;
1635
+ }, z.core.$strict>;
1636
+ readonly result: z.ZodObject<{
1637
+ model: z.ZodEnum<{
1638
+ "smollm2-135m": "smollm2-135m";
1639
+ "llama-3.2-3b": "llama-3.2-3b";
1640
+ "phi-4-mini": "phi-4-mini";
1641
+ "gemma-3-4b": "gemma-3-4b";
1642
+ "llama-3.1-8b": "llama-3.1-8b";
1643
+ "qwen-2.5-7b": "qwen-2.5-7b";
1644
+ "mistral-small-3.1": "mistral-small-3.1";
1645
+ "gpt-oss-20b": "gpt-oss-20b";
1646
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
1647
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
1648
+ }>;
1649
+ elapsed_ms: z.ZodInt;
1650
+ }, z.core.$strict>;
1651
+ readonly kind: "unary";
1652
+ readonly since: "1.31";
1653
+ readonly errors: readonly ["RESOURCE_BUSY", "RESOURCE_GONE", "TIMEOUT", "CANCELLED", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1654
+ };
1655
+ readonly "models.llm.start": {
1656
+ readonly params: z.ZodObject<{
1657
+ model: z.ZodEnum<{
1658
+ "smollm2-135m": "smollm2-135m";
1659
+ "llama-3.2-3b": "llama-3.2-3b";
1660
+ "phi-4-mini": "phi-4-mini";
1661
+ "gemma-3-4b": "gemma-3-4b";
1662
+ "llama-3.1-8b": "llama-3.1-8b";
1663
+ "qwen-2.5-7b": "qwen-2.5-7b";
1664
+ "mistral-small-3.1": "mistral-small-3.1";
1665
+ "gpt-oss-20b": "gpt-oss-20b";
1666
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
1667
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
1668
+ }>;
1669
+ context_length: z.ZodOptional<z.ZodInt>;
1670
+ }, z.core.$strict>;
1671
+ readonly result: z.ZodObject<{
1672
+ running: z.ZodObject<{
1673
+ id: z.ZodEnum<{
1674
+ "smollm2-135m": "smollm2-135m";
1675
+ "llama-3.2-3b": "llama-3.2-3b";
1676
+ "phi-4-mini": "phi-4-mini";
1677
+ "gemma-3-4b": "gemma-3-4b";
1678
+ "llama-3.1-8b": "llama-3.1-8b";
1679
+ "qwen-2.5-7b": "qwen-2.5-7b";
1680
+ "mistral-small-3.1": "mistral-small-3.1";
1681
+ "gpt-oss-20b": "gpt-oss-20b";
1682
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
1683
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
1684
+ }>;
1685
+ port: z.ZodInt;
1686
+ }, z.core.$strict>;
1687
+ elapsed_ms: z.ZodInt;
1688
+ }, z.core.$strict>;
1689
+ readonly kind: "unary";
1690
+ readonly since: "1.31";
1691
+ readonly errors: readonly ["NOT_FOUND", "RESOURCE_BUSY", "RESOURCE_GONE", "TIMEOUT", "CANCELLED", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1692
+ };
1693
+ readonly "models.llm.stop": {
1694
+ readonly params: z.ZodObject<{}, z.core.$strict>;
1695
+ readonly result: z.ZodObject<{
1696
+ stopped: z.ZodBoolean;
1697
+ }, z.core.$strict>;
1698
+ readonly kind: "unary";
1699
+ readonly since: "1.31";
1700
+ readonly errors: readonly ["INTERNAL"];
1701
+ };
1477
1702
  readonly "apps.list": {
1478
1703
  readonly params: z.ZodObject<{}, z.core.$strict>;
1479
1704
  readonly result: z.ZodObject<{
@@ -2358,6 +2583,7 @@ declare const OPS: {
2358
2583
  window: z.ZodString;
2359
2584
  take_off: z.ZodDefault<z.ZodBoolean>;
2360
2585
  group: z.ZodDefault<z.ZodBoolean>;
2586
+ pin: z.ZodOptional<z.ZodBoolean>;
2361
2587
  dry_run: z.ZodDefault<z.ZodBoolean>;
2362
2588
  }, z.core.$strict>;
2363
2589
  readonly result: z.ZodObject<{
@@ -2393,6 +2619,17 @@ declare const OPS: {
2393
2619
  from_other_groups: z.ZodOptional<z.ZodInt>;
2394
2620
  group_exists: z.ZodOptional<z.ZodBoolean>;
2395
2621
  }, z.core.$strict>>;
2622
+ pin: z.ZodOptional<z.ZodObject<{
2623
+ ok: z.ZodBoolean;
2624
+ when: z.ZodEnum<{
2625
+ now: "now";
2626
+ next_close: "next_close";
2627
+ }>;
2628
+ pinned: z.ZodInt;
2629
+ already: z.ZodInt;
2630
+ queued: z.ZodInt;
2631
+ reason: z.ZodOptional<z.ZodString>;
2632
+ }, z.core.$strict>>;
2396
2633
  message: z.ZodString;
2397
2634
  }, z.core.$strict>;
2398
2635
  readonly kind: "unary";
@@ -4552,8 +4789,8 @@ declare const EVENTS: {
4552
4789
  readonly "session.control_changed": z.ZodObject<{
4553
4790
  controller_client_id: z.ZodNullable<z.ZodString>;
4554
4791
  your_mode: z.ZodEnum<{
4555
- control: "control";
4556
4792
  read_only: "read_only";
4793
+ control: "control";
4557
4794
  }>;
4558
4795
  }, z.core.$strict>;
4559
4796
  readonly "models.progress": z.ZodObject<{
@@ -4760,6 +4997,143 @@ declare const SERVICES: {
4760
4997
  elapsed_ms: z.ZodInt;
4761
4998
  }, z.core.$strict>;
4762
4999
  };
5000
+ readonly "ml.llm_status": {
5001
+ readonly params: z.ZodObject<{}, z.core.$strict>;
5002
+ readonly result: z.ZodObject<{
5003
+ state: z.ZodEnum<{
5004
+ running: "running";
5005
+ failed: "failed";
5006
+ stopped: "stopped";
5007
+ starting: "starting";
5008
+ }>;
5009
+ models: z.ZodArray<z.ZodObject<{
5010
+ id: z.ZodEnum<{
5011
+ "smollm2-135m": "smollm2-135m";
5012
+ "llama-3.2-3b": "llama-3.2-3b";
5013
+ "phi-4-mini": "phi-4-mini";
5014
+ "gemma-3-4b": "gemma-3-4b";
5015
+ "llama-3.1-8b": "llama-3.1-8b";
5016
+ "qwen-2.5-7b": "qwen-2.5-7b";
5017
+ "mistral-small-3.1": "mistral-small-3.1";
5018
+ "gpt-oss-20b": "gpt-oss-20b";
5019
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
5020
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
5021
+ }>;
5022
+ size_bytes: z.ZodInt;
5023
+ installed: z.ZodBoolean;
5024
+ }, z.core.$strict>>;
5025
+ running: z.ZodNullable<z.ZodObject<{
5026
+ id: z.ZodEnum<{
5027
+ "smollm2-135m": "smollm2-135m";
5028
+ "llama-3.2-3b": "llama-3.2-3b";
5029
+ "phi-4-mini": "phi-4-mini";
5030
+ "gemma-3-4b": "gemma-3-4b";
5031
+ "llama-3.1-8b": "llama-3.1-8b";
5032
+ "qwen-2.5-7b": "qwen-2.5-7b";
5033
+ "mistral-small-3.1": "mistral-small-3.1";
5034
+ "gpt-oss-20b": "gpt-oss-20b";
5035
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
5036
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
5037
+ }>;
5038
+ port: z.ZodInt;
5039
+ }, z.core.$strict>>;
5040
+ starting: z.ZodNullable<z.ZodEnum<{
5041
+ "smollm2-135m": "smollm2-135m";
5042
+ "llama-3.2-3b": "llama-3.2-3b";
5043
+ "phi-4-mini": "phi-4-mini";
5044
+ "gemma-3-4b": "gemma-3-4b";
5045
+ "llama-3.1-8b": "llama-3.1-8b";
5046
+ "qwen-2.5-7b": "qwen-2.5-7b";
5047
+ "mistral-small-3.1": "mistral-small-3.1";
5048
+ "gpt-oss-20b": "gpt-oss-20b";
5049
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
5050
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
5051
+ }>>;
5052
+ install: z.ZodNullable<z.ZodObject<{
5053
+ phase: z.ZodEnum<{
5054
+ model: "model";
5055
+ packages: "packages";
5056
+ verifying: "verifying";
5057
+ }>;
5058
+ item: z.ZodString;
5059
+ bytes_done: z.ZodInt;
5060
+ bytes_total: z.ZodNullable<z.ZodInt>;
5061
+ }, z.core.$strict>>;
5062
+ error: z.ZodNullable<z.ZodString>;
5063
+ }, z.core.$strict>;
5064
+ };
5065
+ readonly "ml.llm_install": {
5066
+ readonly params: z.ZodObject<{
5067
+ model: z.ZodEnum<{
5068
+ "smollm2-135m": "smollm2-135m";
5069
+ "llama-3.2-3b": "llama-3.2-3b";
5070
+ "phi-4-mini": "phi-4-mini";
5071
+ "gemma-3-4b": "gemma-3-4b";
5072
+ "llama-3.1-8b": "llama-3.1-8b";
5073
+ "qwen-2.5-7b": "qwen-2.5-7b";
5074
+ "mistral-small-3.1": "mistral-small-3.1";
5075
+ "gpt-oss-20b": "gpt-oss-20b";
5076
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
5077
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
5078
+ }>;
5079
+ }, z.core.$strict>;
5080
+ readonly result: z.ZodObject<{
5081
+ model: z.ZodEnum<{
5082
+ "smollm2-135m": "smollm2-135m";
5083
+ "llama-3.2-3b": "llama-3.2-3b";
5084
+ "phi-4-mini": "phi-4-mini";
5085
+ "gemma-3-4b": "gemma-3-4b";
5086
+ "llama-3.1-8b": "llama-3.1-8b";
5087
+ "qwen-2.5-7b": "qwen-2.5-7b";
5088
+ "mistral-small-3.1": "mistral-small-3.1";
5089
+ "gpt-oss-20b": "gpt-oss-20b";
5090
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
5091
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
5092
+ }>;
5093
+ elapsed_ms: z.ZodInt;
5094
+ }, z.core.$strict>;
5095
+ };
5096
+ readonly "ml.llm_start": {
5097
+ readonly params: z.ZodObject<{
5098
+ model: z.ZodEnum<{
5099
+ "smollm2-135m": "smollm2-135m";
5100
+ "llama-3.2-3b": "llama-3.2-3b";
5101
+ "phi-4-mini": "phi-4-mini";
5102
+ "gemma-3-4b": "gemma-3-4b";
5103
+ "llama-3.1-8b": "llama-3.1-8b";
5104
+ "qwen-2.5-7b": "qwen-2.5-7b";
5105
+ "mistral-small-3.1": "mistral-small-3.1";
5106
+ "gpt-oss-20b": "gpt-oss-20b";
5107
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
5108
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
5109
+ }>;
5110
+ context_length: z.ZodOptional<z.ZodInt>;
5111
+ }, z.core.$strict>;
5112
+ readonly result: z.ZodObject<{
5113
+ running: z.ZodObject<{
5114
+ id: z.ZodEnum<{
5115
+ "smollm2-135m": "smollm2-135m";
5116
+ "llama-3.2-3b": "llama-3.2-3b";
5117
+ "phi-4-mini": "phi-4-mini";
5118
+ "gemma-3-4b": "gemma-3-4b";
5119
+ "llama-3.1-8b": "llama-3.1-8b";
5120
+ "qwen-2.5-7b": "qwen-2.5-7b";
5121
+ "mistral-small-3.1": "mistral-small-3.1";
5122
+ "gpt-oss-20b": "gpt-oss-20b";
5123
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
5124
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
5125
+ }>;
5126
+ port: z.ZodInt;
5127
+ }, z.core.$strict>;
5128
+ elapsed_ms: z.ZodInt;
5129
+ }, z.core.$strict>;
5130
+ };
5131
+ readonly "ml.llm_stop": {
5132
+ readonly params: z.ZodObject<{}, z.core.$strict>;
5133
+ readonly result: z.ZodObject<{
5134
+ stopped: z.ZodBoolean;
5135
+ }, z.core.$strict>;
5136
+ };
4763
5137
  };
4764
5138
  };
4765
5139
  readonly coding: {
@@ -5686,6 +6060,67 @@ declare const NAMED_SCHEMAS: {
5686
6060
  from_path: z.ZodString;
5687
6061
  to_path: z.ZodString;
5688
6062
  }, z.core.$strict>;
6063
+ readonly FsCopyParams: z.ZodObject<{
6064
+ from_path: z.ZodString;
6065
+ to_path: z.ZodString;
6066
+ overwrite: z.ZodDefault<z.ZodBoolean>;
6067
+ }, z.core.$strict>;
6068
+ readonly FsCopyResult: z.ZodObject<{
6069
+ from_path: z.ZodString;
6070
+ to_path: z.ZodString;
6071
+ }, z.core.$strict>;
6072
+ readonly FsInfoParams: z.ZodObject<{
6073
+ path: z.ZodString;
6074
+ }, z.core.$strict>;
6075
+ readonly FsInfoResult: z.ZodObject<{
6076
+ entry: z.ZodObject<{
6077
+ name: z.ZodString;
6078
+ path: z.ZodString;
6079
+ kind: z.ZodEnum<{
6080
+ file: "file";
6081
+ dir: "dir";
6082
+ symlink: "symlink";
6083
+ }>;
6084
+ size: z.ZodInt;
6085
+ mtime: z.ZodNumber;
6086
+ mode: z.ZodInt;
6087
+ target: z.ZodNullable<z.ZodString>;
6088
+ }, z.core.$strict>;
6089
+ created: z.ZodNullable<z.ZodNumber>;
6090
+ owner: z.ZodNullable<z.ZodString>;
6091
+ group: z.ZodNullable<z.ZodString>;
6092
+ total_size: z.ZodNullable<z.ZodInt>;
6093
+ size_on_disk: z.ZodNullable<z.ZodInt>;
6094
+ items: z.ZodNullable<z.ZodInt>;
6095
+ hidden: z.ZodBoolean;
6096
+ locked: z.ZodNullable<z.ZodBoolean>;
6097
+ read_only: z.ZodBoolean;
6098
+ }, z.core.$strict>;
6099
+ readonly FsSearchIndexParams: z.ZodObject<{
6100
+ query: z.ZodString;
6101
+ scope: z.ZodOptional<z.ZodString>;
6102
+ max_results: z.ZodDefault<z.ZodInt>;
6103
+ }, z.core.$strict>;
6104
+ readonly FsSearchIndexResult: z.ZodObject<{
6105
+ entries: z.ZodArray<z.ZodObject<{
6106
+ name: z.ZodString;
6107
+ path: z.ZodString;
6108
+ kind: z.ZodEnum<{
6109
+ file: "file";
6110
+ dir: "dir";
6111
+ symlink: "symlink";
6112
+ }>;
6113
+ size: z.ZodInt;
6114
+ mtime: z.ZodNumber;
6115
+ mode: z.ZodInt;
6116
+ target: z.ZodNullable<z.ZodString>;
6117
+ }, z.core.$strict>>;
6118
+ truncated: z.ZodBoolean;
6119
+ source: z.ZodEnum<{
6120
+ index: "index";
6121
+ walk: "walk";
6122
+ }>;
6123
+ }, z.core.$strict>;
5689
6124
  readonly FsDeleteParams: z.ZodObject<{
5690
6125
  path: z.ZodString;
5691
6126
  recursive: z.ZodDefault<z.ZodBoolean>;
@@ -5987,8 +6422,8 @@ declare const NAMED_SCHEMAS: {
5987
6422
  readonly SessionAttachParams: z.ZodObject<{
5988
6423
  resource_id: z.ZodString;
5989
6424
  mode: z.ZodDefault<z.ZodEnum<{
5990
- control: "control";
5991
6425
  read_only: "read_only";
6426
+ control: "control";
5992
6427
  }>>;
5993
6428
  since_seq: z.ZodOptional<z.ZodInt>;
5994
6429
  window_bytes: z.ZodOptional<z.ZodInt>;
@@ -6089,8 +6524,8 @@ declare const NAMED_SCHEMAS: {
6089
6524
  readonly SessionControlChangedEvent: z.ZodObject<{
6090
6525
  controller_client_id: z.ZodNullable<z.ZodString>;
6091
6526
  your_mode: z.ZodEnum<{
6092
- control: "control";
6093
6527
  read_only: "read_only";
6528
+ control: "control";
6094
6529
  }>;
6095
6530
  }, z.core.$strict>;
6096
6531
  readonly TranscriptionModelId: z.ZodEnum<{
@@ -6250,18 +6685,18 @@ declare const NAMED_SCHEMAS: {
6250
6685
  }, z.core.$strict>;
6251
6686
  readonly MlServiceState: z.ZodEnum<{
6252
6687
  failed: "failed";
6688
+ stopped: "stopped";
6253
6689
  starting: "starting";
6254
6690
  ready: "ready";
6255
6691
  restarting: "restarting";
6256
- stopped: "stopped";
6257
6692
  }>;
6258
6693
  readonly MlServiceStatus: z.ZodObject<{
6259
6694
  state: z.ZodEnum<{
6260
6695
  failed: "failed";
6696
+ stopped: "stopped";
6261
6697
  starting: "starting";
6262
6698
  ready: "ready";
6263
6699
  restarting: "restarting";
6264
- stopped: "stopped";
6265
6700
  }>;
6266
6701
  pid: z.ZodNullable<z.ZodInt>;
6267
6702
  restarts: z.ZodInt;
@@ -6273,10 +6708,10 @@ declare const NAMED_SCHEMAS: {
6273
6708
  service: z.ZodObject<{
6274
6709
  state: z.ZodEnum<{
6275
6710
  failed: "failed";
6711
+ stopped: "stopped";
6276
6712
  starting: "starting";
6277
6713
  ready: "ready";
6278
6714
  restarting: "restarting";
6279
- stopped: "stopped";
6280
6715
  }>;
6281
6716
  pid: z.ZodNullable<z.ZodInt>;
6282
6717
  restarts: z.ZodInt;
@@ -6349,6 +6784,184 @@ declare const NAMED_SCHEMAS: {
6349
6784
  }, z.core.$strict>>;
6350
6785
  }, z.core.$strict>;
6351
6786
  }, z.core.$strict>;
6787
+ readonly TextModelId: z.ZodEnum<{
6788
+ "smollm2-135m": "smollm2-135m";
6789
+ "llama-3.2-3b": "llama-3.2-3b";
6790
+ "phi-4-mini": "phi-4-mini";
6791
+ "gemma-3-4b": "gemma-3-4b";
6792
+ "llama-3.1-8b": "llama-3.1-8b";
6793
+ "qwen-2.5-7b": "qwen-2.5-7b";
6794
+ "mistral-small-3.1": "mistral-small-3.1";
6795
+ "gpt-oss-20b": "gpt-oss-20b";
6796
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
6797
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
6798
+ }>;
6799
+ readonly TextModelInfo: z.ZodObject<{
6800
+ id: z.ZodEnum<{
6801
+ "smollm2-135m": "smollm2-135m";
6802
+ "llama-3.2-3b": "llama-3.2-3b";
6803
+ "phi-4-mini": "phi-4-mini";
6804
+ "gemma-3-4b": "gemma-3-4b";
6805
+ "llama-3.1-8b": "llama-3.1-8b";
6806
+ "qwen-2.5-7b": "qwen-2.5-7b";
6807
+ "mistral-small-3.1": "mistral-small-3.1";
6808
+ "gpt-oss-20b": "gpt-oss-20b";
6809
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
6810
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
6811
+ }>;
6812
+ size_bytes: z.ZodInt;
6813
+ installed: z.ZodBoolean;
6814
+ }, z.core.$strict>;
6815
+ readonly LlmServerState: z.ZodEnum<{
6816
+ running: "running";
6817
+ failed: "failed";
6818
+ stopped: "stopped";
6819
+ starting: "starting";
6820
+ }>;
6821
+ readonly LlmRunning: z.ZodObject<{
6822
+ id: z.ZodEnum<{
6823
+ "smollm2-135m": "smollm2-135m";
6824
+ "llama-3.2-3b": "llama-3.2-3b";
6825
+ "phi-4-mini": "phi-4-mini";
6826
+ "gemma-3-4b": "gemma-3-4b";
6827
+ "llama-3.1-8b": "llama-3.1-8b";
6828
+ "qwen-2.5-7b": "qwen-2.5-7b";
6829
+ "mistral-small-3.1": "mistral-small-3.1";
6830
+ "gpt-oss-20b": "gpt-oss-20b";
6831
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
6832
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
6833
+ }>;
6834
+ port: z.ZodInt;
6835
+ }, z.core.$strict>;
6836
+ readonly ModelsLlmStatusParams: z.ZodObject<{}, z.core.$strict>;
6837
+ readonly ModelsLlmStatusResult: z.ZodObject<{
6838
+ state: z.ZodEnum<{
6839
+ running: "running";
6840
+ failed: "failed";
6841
+ stopped: "stopped";
6842
+ starting: "starting";
6843
+ }>;
6844
+ models: z.ZodArray<z.ZodObject<{
6845
+ id: z.ZodEnum<{
6846
+ "smollm2-135m": "smollm2-135m";
6847
+ "llama-3.2-3b": "llama-3.2-3b";
6848
+ "phi-4-mini": "phi-4-mini";
6849
+ "gemma-3-4b": "gemma-3-4b";
6850
+ "llama-3.1-8b": "llama-3.1-8b";
6851
+ "qwen-2.5-7b": "qwen-2.5-7b";
6852
+ "mistral-small-3.1": "mistral-small-3.1";
6853
+ "gpt-oss-20b": "gpt-oss-20b";
6854
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
6855
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
6856
+ }>;
6857
+ size_bytes: z.ZodInt;
6858
+ installed: z.ZodBoolean;
6859
+ }, z.core.$strict>>;
6860
+ running: z.ZodNullable<z.ZodObject<{
6861
+ id: z.ZodEnum<{
6862
+ "smollm2-135m": "smollm2-135m";
6863
+ "llama-3.2-3b": "llama-3.2-3b";
6864
+ "phi-4-mini": "phi-4-mini";
6865
+ "gemma-3-4b": "gemma-3-4b";
6866
+ "llama-3.1-8b": "llama-3.1-8b";
6867
+ "qwen-2.5-7b": "qwen-2.5-7b";
6868
+ "mistral-small-3.1": "mistral-small-3.1";
6869
+ "gpt-oss-20b": "gpt-oss-20b";
6870
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
6871
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
6872
+ }>;
6873
+ port: z.ZodInt;
6874
+ }, z.core.$strict>>;
6875
+ starting: z.ZodNullable<z.ZodEnum<{
6876
+ "smollm2-135m": "smollm2-135m";
6877
+ "llama-3.2-3b": "llama-3.2-3b";
6878
+ "phi-4-mini": "phi-4-mini";
6879
+ "gemma-3-4b": "gemma-3-4b";
6880
+ "llama-3.1-8b": "llama-3.1-8b";
6881
+ "qwen-2.5-7b": "qwen-2.5-7b";
6882
+ "mistral-small-3.1": "mistral-small-3.1";
6883
+ "gpt-oss-20b": "gpt-oss-20b";
6884
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
6885
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
6886
+ }>>;
6887
+ install: z.ZodNullable<z.ZodObject<{
6888
+ phase: z.ZodEnum<{
6889
+ model: "model";
6890
+ packages: "packages";
6891
+ verifying: "verifying";
6892
+ }>;
6893
+ item: z.ZodString;
6894
+ bytes_done: z.ZodInt;
6895
+ bytes_total: z.ZodNullable<z.ZodInt>;
6896
+ }, z.core.$strict>>;
6897
+ error: z.ZodNullable<z.ZodString>;
6898
+ }, z.core.$strict>;
6899
+ readonly ModelsLlmInstallParams: z.ZodObject<{
6900
+ model: z.ZodEnum<{
6901
+ "smollm2-135m": "smollm2-135m";
6902
+ "llama-3.2-3b": "llama-3.2-3b";
6903
+ "phi-4-mini": "phi-4-mini";
6904
+ "gemma-3-4b": "gemma-3-4b";
6905
+ "llama-3.1-8b": "llama-3.1-8b";
6906
+ "qwen-2.5-7b": "qwen-2.5-7b";
6907
+ "mistral-small-3.1": "mistral-small-3.1";
6908
+ "gpt-oss-20b": "gpt-oss-20b";
6909
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
6910
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
6911
+ }>;
6912
+ }, z.core.$strict>;
6913
+ readonly ModelsLlmInstallResult: z.ZodObject<{
6914
+ model: z.ZodEnum<{
6915
+ "smollm2-135m": "smollm2-135m";
6916
+ "llama-3.2-3b": "llama-3.2-3b";
6917
+ "phi-4-mini": "phi-4-mini";
6918
+ "gemma-3-4b": "gemma-3-4b";
6919
+ "llama-3.1-8b": "llama-3.1-8b";
6920
+ "qwen-2.5-7b": "qwen-2.5-7b";
6921
+ "mistral-small-3.1": "mistral-small-3.1";
6922
+ "gpt-oss-20b": "gpt-oss-20b";
6923
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
6924
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
6925
+ }>;
6926
+ elapsed_ms: z.ZodInt;
6927
+ }, z.core.$strict>;
6928
+ readonly ModelsLlmStartParams: z.ZodObject<{
6929
+ model: z.ZodEnum<{
6930
+ "smollm2-135m": "smollm2-135m";
6931
+ "llama-3.2-3b": "llama-3.2-3b";
6932
+ "phi-4-mini": "phi-4-mini";
6933
+ "gemma-3-4b": "gemma-3-4b";
6934
+ "llama-3.1-8b": "llama-3.1-8b";
6935
+ "qwen-2.5-7b": "qwen-2.5-7b";
6936
+ "mistral-small-3.1": "mistral-small-3.1";
6937
+ "gpt-oss-20b": "gpt-oss-20b";
6938
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
6939
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
6940
+ }>;
6941
+ context_length: z.ZodOptional<z.ZodInt>;
6942
+ }, z.core.$strict>;
6943
+ readonly ModelsLlmStartResult: z.ZodObject<{
6944
+ running: z.ZodObject<{
6945
+ id: z.ZodEnum<{
6946
+ "smollm2-135m": "smollm2-135m";
6947
+ "llama-3.2-3b": "llama-3.2-3b";
6948
+ "phi-4-mini": "phi-4-mini";
6949
+ "gemma-3-4b": "gemma-3-4b";
6950
+ "llama-3.1-8b": "llama-3.1-8b";
6951
+ "qwen-2.5-7b": "qwen-2.5-7b";
6952
+ "mistral-small-3.1": "mistral-small-3.1";
6953
+ "gpt-oss-20b": "gpt-oss-20b";
6954
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
6955
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
6956
+ }>;
6957
+ port: z.ZodInt;
6958
+ }, z.core.$strict>;
6959
+ elapsed_ms: z.ZodInt;
6960
+ }, z.core.$strict>;
6961
+ readonly ModelsLlmStopParams: z.ZodObject<{}, z.core.$strict>;
6962
+ readonly ModelsLlmStopResult: z.ZodObject<{
6963
+ stopped: z.ZodBoolean;
6964
+ }, z.core.$strict>;
6352
6965
  readonly CodingServiceCredentials: z.ZodObject<{
6353
6966
  access_token: z.ZodString;
6354
6967
  user_id: z.ZodString;
@@ -9211,12 +9824,24 @@ declare const NAMED_SCHEMAS: {
9211
9824
  from_other_groups: z.ZodOptional<z.ZodInt>;
9212
9825
  group_exists: z.ZodOptional<z.ZodBoolean>;
9213
9826
  }, z.core.$strict>;
9827
+ readonly ProjectMovePin: z.ZodObject<{
9828
+ ok: z.ZodBoolean;
9829
+ when: z.ZodEnum<{
9830
+ now: "now";
9831
+ next_close: "next_close";
9832
+ }>;
9833
+ pinned: z.ZodInt;
9834
+ already: z.ZodInt;
9835
+ queued: z.ZodInt;
9836
+ reason: z.ZodOptional<z.ZodString>;
9837
+ }, z.core.$strict>;
9214
9838
  readonly AppsProjectsToWindowParams: z.ZodObject<{
9215
9839
  app_key: z.ZodString;
9216
9840
  project_id: z.ZodString;
9217
9841
  window: z.ZodString;
9218
9842
  take_off: z.ZodDefault<z.ZodBoolean>;
9219
9843
  group: z.ZodDefault<z.ZodBoolean>;
9844
+ pin: z.ZodOptional<z.ZodBoolean>;
9220
9845
  dry_run: z.ZodDefault<z.ZodBoolean>;
9221
9846
  }, z.core.$strict>;
9222
9847
  readonly AppsProjectsToWindowResult: z.ZodObject<{
@@ -9252,6 +9877,17 @@ declare const NAMED_SCHEMAS: {
9252
9877
  from_other_groups: z.ZodOptional<z.ZodInt>;
9253
9878
  group_exists: z.ZodOptional<z.ZodBoolean>;
9254
9879
  }, z.core.$strict>>;
9880
+ pin: z.ZodOptional<z.ZodObject<{
9881
+ ok: z.ZodBoolean;
9882
+ when: z.ZodEnum<{
9883
+ now: "now";
9884
+ next_close: "next_close";
9885
+ }>;
9886
+ pinned: z.ZodInt;
9887
+ already: z.ZodInt;
9888
+ queued: z.ZodInt;
9889
+ reason: z.ZodOptional<z.ZodString>;
9890
+ }, z.core.$strict>>;
9255
9891
  message: z.ZodString;
9256
9892
  }, z.core.$strict>;
9257
9893
  readonly ShownSection: z.ZodObject<{
@@ -10356,21 +10992,95 @@ declare const TranscriptionModelInfo: z.ZodObject<{
10356
10992
  }, z.core.$strict>;
10357
10993
  /** What the `ml` service itself reports (the core adds the supervisor's view in ModelsStatusResult). */
10358
10994
  declare const MlStatusParams: z.ZodObject<{}, z.core.$strict>;
10995
+ declare const TextModelInfo: z.ZodObject<{
10996
+ id: z.ZodEnum<{
10997
+ "smollm2-135m": "smollm2-135m";
10998
+ "llama-3.2-3b": "llama-3.2-3b";
10999
+ "phi-4-mini": "phi-4-mini";
11000
+ "gemma-3-4b": "gemma-3-4b";
11001
+ "llama-3.1-8b": "llama-3.1-8b";
11002
+ "qwen-2.5-7b": "qwen-2.5-7b";
11003
+ "mistral-small-3.1": "mistral-small-3.1";
11004
+ "gpt-oss-20b": "gpt-oss-20b";
11005
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
11006
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
11007
+ }>;
11008
+ size_bytes: z.ZodInt;
11009
+ installed: z.ZodBoolean;
11010
+ }, z.core.$strict>;
11011
+ /** The model server's process: one model loaded at a time. */
11012
+ declare const LlmServerState: z.ZodEnum<{
11013
+ running: "running";
11014
+ failed: "failed";
11015
+ stopped: "stopped";
11016
+ starting: "starting";
11017
+ }>;
11018
+ declare const ModelsLlmStatusParams: z.ZodObject<{}, z.core.$strict>;
11019
+ /** Download the model server program (if missing) and one model's weights. Progress: models.progress. */
11020
+ declare const ModelsLlmInstallParams: z.ZodObject<{
11021
+ model: z.ZodEnum<{
11022
+ "smollm2-135m": "smollm2-135m";
11023
+ "llama-3.2-3b": "llama-3.2-3b";
11024
+ "phi-4-mini": "phi-4-mini";
11025
+ "gemma-3-4b": "gemma-3-4b";
11026
+ "llama-3.1-8b": "llama-3.1-8b";
11027
+ "qwen-2.5-7b": "qwen-2.5-7b";
11028
+ "mistral-small-3.1": "mistral-small-3.1";
11029
+ "gpt-oss-20b": "gpt-oss-20b";
11030
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
11031
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
11032
+ }>;
11033
+ }, z.core.$strict>;
11034
+ declare const ModelsLlmInstallResult: z.ZodObject<{
11035
+ model: z.ZodEnum<{
11036
+ "smollm2-135m": "smollm2-135m";
11037
+ "llama-3.2-3b": "llama-3.2-3b";
11038
+ "phi-4-mini": "phi-4-mini";
11039
+ "gemma-3-4b": "gemma-3-4b";
11040
+ "llama-3.1-8b": "llama-3.1-8b";
11041
+ "qwen-2.5-7b": "qwen-2.5-7b";
11042
+ "mistral-small-3.1": "mistral-small-3.1";
11043
+ "gpt-oss-20b": "gpt-oss-20b";
11044
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
11045
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
11046
+ }>;
11047
+ elapsed_ms: z.ZodInt;
11048
+ }, z.core.$strict>;
11049
+ /** Load one downloaded model (stopping any other). Resolves once the server answers its health check. */
11050
+ declare const ModelsLlmStartParams: z.ZodObject<{
11051
+ model: z.ZodEnum<{
11052
+ "smollm2-135m": "smollm2-135m";
11053
+ "llama-3.2-3b": "llama-3.2-3b";
11054
+ "phi-4-mini": "phi-4-mini";
11055
+ "gemma-3-4b": "gemma-3-4b";
11056
+ "llama-3.1-8b": "llama-3.1-8b";
11057
+ "qwen-2.5-7b": "qwen-2.5-7b";
11058
+ "mistral-small-3.1": "mistral-small-3.1";
11059
+ "gpt-oss-20b": "gpt-oss-20b";
11060
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
11061
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
11062
+ }>;
11063
+ context_length: z.ZodOptional<z.ZodInt>;
11064
+ }, z.core.$strict>;
11065
+ declare const ModelsLlmStopParams: z.ZodObject<{}, z.core.$strict>;
11066
+ declare const ModelsLlmStopResult: z.ZodObject<{
11067
+ stopped: z.ZodBoolean;
11068
+ }, z.core.$strict>;
10359
11069
  /** The supervisor's view of the `ml` service process. */
10360
11070
  declare const MlServiceState: z.ZodEnum<{
10361
11071
  failed: "failed";
11072
+ stopped: "stopped";
10362
11073
  starting: "starting";
10363
11074
  ready: "ready";
10364
11075
  restarting: "restarting";
10365
- stopped: "stopped";
10366
11076
  }>;
10367
11077
  declare const MlServiceStatus: z.ZodObject<{
10368
11078
  state: z.ZodEnum<{
10369
11079
  failed: "failed";
11080
+ stopped: "stopped";
10370
11081
  starting: "starting";
10371
11082
  ready: "ready";
10372
11083
  restarting: "restarting";
10373
- stopped: "stopped";
10374
11084
  }>;
10375
11085
  pid: z.ZodNullable<z.ZodInt>;
10376
11086
  restarts: z.ZodInt;
@@ -10455,10 +11165,10 @@ declare const ModelsStatusResult: z.ZodObject<{
10455
11165
  service: z.ZodObject<{
10456
11166
  state: z.ZodEnum<{
10457
11167
  failed: "failed";
11168
+ stopped: "stopped";
10458
11169
  starting: "starting";
10459
11170
  ready: "ready";
10460
11171
  restarting: "restarting";
10461
- stopped: "stopped";
10462
11172
  }>;
10463
11173
  pid: z.ZodNullable<z.ZodInt>;
10464
11174
  restarts: z.ZodInt;
@@ -10565,7 +11275,7 @@ declare const ModelsInstallResult: z.ZodObject<{
10565
11275
  elapsed_ms: z.ZodInt;
10566
11276
  }, z.core.$strict>;
10567
11277
  type ModelsInstallResult = z.output<typeof ModelsInstallResult>;
10568
- /** Sent to the client that started a `models.install` or `models.transcribe`, for that request. */
11278
+ /** Sent to the client that started a `models.install`, `models.llm.install` or `models.transcribe`, for that request. */
10569
11279
  declare const ModelsProgressEvent: z.ZodObject<{
10570
11280
  request_id: z.ZodString;
10571
11281
  progress: z.ZodObject<{
@@ -10592,6 +11302,123 @@ declare const ModelsProgressEvent: z.ZodObject<{
10592
11302
  }, z.core.$strict>;
10593
11303
  }, z.core.$strict>;
10594
11304
  type ModelsProgressEvent = z.output<typeof ModelsProgressEvent>;
11305
+ /** The language models the device can download and run (GGUF weights, hash-pinned in the service). */
11306
+ declare const TextModelId: z.ZodEnum<{
11307
+ "smollm2-135m": "smollm2-135m";
11308
+ "llama-3.2-3b": "llama-3.2-3b";
11309
+ "phi-4-mini": "phi-4-mini";
11310
+ "gemma-3-4b": "gemma-3-4b";
11311
+ "llama-3.1-8b": "llama-3.1-8b";
11312
+ "qwen-2.5-7b": "qwen-2.5-7b";
11313
+ "mistral-small-3.1": "mistral-small-3.1";
11314
+ "gpt-oss-20b": "gpt-oss-20b";
11315
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
11316
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
11317
+ }>;
11318
+ type TextModelId = z.output<typeof TextModelId>;
11319
+ /**
11320
+ * The model that answers now and the loopback port it listens on. Never a URL: the only caller that
11321
+ * talks to it (the app's own main process) builds http://127.0.0.1:<port> itself, so no status
11322
+ * payload can choose where text goes.
11323
+ */
11324
+ declare const LlmRunning: z.ZodObject<{
11325
+ id: z.ZodEnum<{
11326
+ "smollm2-135m": "smollm2-135m";
11327
+ "llama-3.2-3b": "llama-3.2-3b";
11328
+ "phi-4-mini": "phi-4-mini";
11329
+ "gemma-3-4b": "gemma-3-4b";
11330
+ "llama-3.1-8b": "llama-3.1-8b";
11331
+ "qwen-2.5-7b": "qwen-2.5-7b";
11332
+ "mistral-small-3.1": "mistral-small-3.1";
11333
+ "gpt-oss-20b": "gpt-oss-20b";
11334
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
11335
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
11336
+ }>;
11337
+ port: z.ZodInt;
11338
+ }, z.core.$strict>;
11339
+ type LlmRunning = z.output<typeof LlmRunning>;
11340
+ declare const ModelsLlmStatusResult: z.ZodObject<{
11341
+ state: z.ZodEnum<{
11342
+ running: "running";
11343
+ failed: "failed";
11344
+ stopped: "stopped";
11345
+ starting: "starting";
11346
+ }>;
11347
+ models: z.ZodArray<z.ZodObject<{
11348
+ id: z.ZodEnum<{
11349
+ "smollm2-135m": "smollm2-135m";
11350
+ "llama-3.2-3b": "llama-3.2-3b";
11351
+ "phi-4-mini": "phi-4-mini";
11352
+ "gemma-3-4b": "gemma-3-4b";
11353
+ "llama-3.1-8b": "llama-3.1-8b";
11354
+ "qwen-2.5-7b": "qwen-2.5-7b";
11355
+ "mistral-small-3.1": "mistral-small-3.1";
11356
+ "gpt-oss-20b": "gpt-oss-20b";
11357
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
11358
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
11359
+ }>;
11360
+ size_bytes: z.ZodInt;
11361
+ installed: z.ZodBoolean;
11362
+ }, z.core.$strict>>;
11363
+ running: z.ZodNullable<z.ZodObject<{
11364
+ id: z.ZodEnum<{
11365
+ "smollm2-135m": "smollm2-135m";
11366
+ "llama-3.2-3b": "llama-3.2-3b";
11367
+ "phi-4-mini": "phi-4-mini";
11368
+ "gemma-3-4b": "gemma-3-4b";
11369
+ "llama-3.1-8b": "llama-3.1-8b";
11370
+ "qwen-2.5-7b": "qwen-2.5-7b";
11371
+ "mistral-small-3.1": "mistral-small-3.1";
11372
+ "gpt-oss-20b": "gpt-oss-20b";
11373
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
11374
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
11375
+ }>;
11376
+ port: z.ZodInt;
11377
+ }, z.core.$strict>>;
11378
+ starting: z.ZodNullable<z.ZodEnum<{
11379
+ "smollm2-135m": "smollm2-135m";
11380
+ "llama-3.2-3b": "llama-3.2-3b";
11381
+ "phi-4-mini": "phi-4-mini";
11382
+ "gemma-3-4b": "gemma-3-4b";
11383
+ "llama-3.1-8b": "llama-3.1-8b";
11384
+ "qwen-2.5-7b": "qwen-2.5-7b";
11385
+ "mistral-small-3.1": "mistral-small-3.1";
11386
+ "gpt-oss-20b": "gpt-oss-20b";
11387
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
11388
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
11389
+ }>>;
11390
+ install: z.ZodNullable<z.ZodObject<{
11391
+ phase: z.ZodEnum<{
11392
+ model: "model";
11393
+ packages: "packages";
11394
+ verifying: "verifying";
11395
+ }>;
11396
+ item: z.ZodString;
11397
+ bytes_done: z.ZodInt;
11398
+ bytes_total: z.ZodNullable<z.ZodInt>;
11399
+ }, z.core.$strict>>;
11400
+ error: z.ZodNullable<z.ZodString>;
11401
+ }, z.core.$strict>;
11402
+ type ModelsLlmStatusResult = z.output<typeof ModelsLlmStatusResult>;
11403
+ declare const ModelsLlmStartResult: z.ZodObject<{
11404
+ running: z.ZodObject<{
11405
+ id: z.ZodEnum<{
11406
+ "smollm2-135m": "smollm2-135m";
11407
+ "llama-3.2-3b": "llama-3.2-3b";
11408
+ "phi-4-mini": "phi-4-mini";
11409
+ "gemma-3-4b": "gemma-3-4b";
11410
+ "llama-3.1-8b": "llama-3.1-8b";
11411
+ "qwen-2.5-7b": "qwen-2.5-7b";
11412
+ "mistral-small-3.1": "mistral-small-3.1";
11413
+ "gpt-oss-20b": "gpt-oss-20b";
11414
+ "qwen-2.5-coder-7b": "qwen-2.5-coder-7b";
11415
+ "qwen-2.5-coder-14b": "qwen-2.5-coder-14b";
11416
+ }>;
11417
+ port: z.ZodInt;
11418
+ }, z.core.$strict>;
11419
+ elapsed_ms: z.ZodInt;
11420
+ }, z.core.$strict>;
11421
+ type ModelsLlmStartResult = z.output<typeof ModelsLlmStartResult>;
10595
11422
  declare const TranscriptSegment: z.ZodObject<{
10596
11423
  start_s: z.ZodNumber;
10597
11424
  end_s: z.ZodNumber;
@@ -10599,4 +11426,4 @@ declare const TranscriptSegment: z.ZodObject<{
10599
11426
  }, z.core.$strict>;
10600
11427
  type TranscriptSegment = z.output<typeof TranscriptSegment>;
10601
11428
 
10602
- export { type OpSpec as $, MlInstallProgress as A, BEARER_PREFIX as B, type CloseOutcome as C, DesktopProtocolError as D, EndReason as E, FsPatchEditFailure as F, MlRuntimeState as G, HelloMsg as H, MlServiceState as I, MlServiceStatus as J, MlStatusParams as K, Limits as L, ModelsTranscribeResult as M, MlStatusResult as N, type OpName as O, ModelsInstallParams as P, ModelsInstallResult as Q, ModelsProgressEvent as R, StreamMeta as S, TranscriptionModelId as T, ModelsStatusParams as U, ModelsStatusResult as V, Welcome as W, ModelsTranscribeParams as X, NAMED_SCHEMAS as Y, type NamedSchemaId as Z, OpDescriptor as _, type OpParams as a, PING_TEXT as a0, PONG_TEXT as a1, ProtocolErrorBody as a2, RelayMsg as a3, RequestMsg as a4, ResponseMsg as a5, SERVICES as a6, SUBPROTOCOL as a7, type ServiceId as a8, type ServiceOpName as a9, type ServiceOpSpec as aa, type ServiceSpec as ab, StreamMsg as ac, TranscriptSegment as ad, TranscriptionModelInfo as ae, closeRule as af, isTerminalClose as ag, 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, ClientToCoreMsg as j, type CloseAction as k, CloseCode as l, CloseCodeValue as m, type CloseRule as n, CoreToClientMsg as o, CreditMsg as p, EndMsg as q, ErrorCode as r, type ErrorCodeName as s, type ErrorData as t, ErrorMsg as u, ErrorReason as v, type ErrorReasonName as w, EventMsg as x, type EventName as y, MlInstallPhase as z };
11429
+ export { ModelsLlmStatusResult as $, LlmServerState as A, BEARER_PREFIX as B, type CloseOutcome as C, DesktopProtocolError as D, EndReason as E, FsPatchEditFailure as F, MlInstallPhase as G, HelloMsg as H, MlInstallProgress as I, MlRuntimeState as J, MlServiceState as K, Limits as L, ModelsTranscribeResult as M, MlServiceStatus as N, type OpName as O, MlStatusParams as P, MlStatusResult as Q, ModelsInstallParams as R, StreamMeta as S, TranscriptionModelId as T, ModelsInstallResult as U, ModelsLlmInstallParams as V, Welcome as W, ModelsLlmInstallResult as X, ModelsLlmStartParams as Y, ModelsLlmStartResult as Z, ModelsLlmStatusParams as _, type OpParams as a, ModelsLlmStopParams as a0, ModelsLlmStopResult as a1, ModelsProgressEvent as a2, ModelsStatusParams as a3, ModelsStatusResult as a4, ModelsTranscribeParams as a5, NAMED_SCHEMAS as a6, type NamedSchemaId as a7, OpDescriptor as a8, type OpSpec as a9, PING_TEXT as aa, PONG_TEXT as ab, ProtocolErrorBody as ac, RelayMsg as ad, RequestMsg as ae, ResponseMsg as af, SERVICES as ag, SUBPROTOCOL as ah, type ServiceId as ai, type ServiceOpName as aj, type ServiceOpSpec as ak, type ServiceSpec as al, StreamMsg as am, TextModelId as an, TextModelInfo as ao, TranscriptSegment as ap, TranscriptionModelInfo as aq, closeRule as ar, isTerminalClose as as, 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, ClientToCoreMsg as j, type CloseAction as k, CloseCode as l, CloseCodeValue as m, type CloseRule as n, CoreToClientMsg as o, CreditMsg as p, EndMsg as q, ErrorCode as r, type ErrorCodeName as s, type ErrorData as t, ErrorMsg as u, ErrorReason as v, type ErrorReasonName as w, EventMsg as x, type EventName as y, LlmRunning as z };