@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/dist/react.d.cts CHANGED
@@ -1136,6 +1136,30 @@ declare const OPS: {
1136
1136
  bytes_total: z.ZodNullable<z.ZodInt>;
1137
1137
  }, z.core.$strict>>;
1138
1138
  error: z.ZodNullable<z.ZodString>;
1139
+ embedding: z.ZodOptional<z.ZodObject<{
1140
+ state: z.ZodEnum<{
1141
+ failed: "failed";
1142
+ running: "running";
1143
+ starting: "starting";
1144
+ stopped: "stopped";
1145
+ }>;
1146
+ models: z.ZodArray<z.ZodObject<{
1147
+ id: z.ZodString;
1148
+ size_bytes: z.ZodInt;
1149
+ installed: z.ZodBoolean;
1150
+ title: z.ZodOptional<z.ZodString>;
1151
+ problem: z.ZodOptional<z.ZodString>;
1152
+ }, z.core.$strict>>;
1153
+ running: z.ZodNullable<z.ZodObject<{
1154
+ id: z.ZodString;
1155
+ port: z.ZodInt;
1156
+ context_length: z.ZodOptional<z.ZodInt>;
1157
+ gpu_layers: z.ZodOptional<z.ZodInt>;
1158
+ threads: z.ZodOptional<z.ZodInt>;
1159
+ }, z.core.$strict>>;
1160
+ starting: z.ZodNullable<z.ZodString>;
1161
+ error: z.ZodNullable<z.ZodString>;
1162
+ }, z.core.$strict>>;
1139
1163
  }, z.core.$strict>;
1140
1164
  readonly kind: "unary";
1141
1165
  readonly since: "1.31";
@@ -1162,6 +1186,10 @@ declare const OPS: {
1162
1186
  gpu_layers: z.ZodOptional<z.ZodInt>;
1163
1187
  threads: z.ZodOptional<z.ZodInt>;
1164
1188
  load_timeout_s: z.ZodOptional<z.ZodInt>;
1189
+ slot: z.ZodOptional<z.ZodEnum<{
1190
+ chat: "chat";
1191
+ embed: "embed";
1192
+ }>>;
1165
1193
  }, z.core.$strict>;
1166
1194
  readonly result: z.ZodObject<{
1167
1195
  running: z.ZodObject<{
@@ -1178,7 +1206,12 @@ declare const OPS: {
1178
1206
  readonly errors: readonly ["NOT_FOUND", "RESOURCE_BUSY", "RESOURCE_GONE", "TIMEOUT", "CANCELLED", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1179
1207
  };
1180
1208
  readonly "models.llm.stop": {
1181
- readonly params: z.ZodObject<{}, z.core.$strict>;
1209
+ readonly params: z.ZodObject<{
1210
+ slot: z.ZodOptional<z.ZodEnum<{
1211
+ chat: "chat";
1212
+ embed: "embed";
1213
+ }>>;
1214
+ }, z.core.$strict>;
1182
1215
  readonly result: z.ZodObject<{
1183
1216
  stopped: z.ZodBoolean;
1184
1217
  }, z.core.$strict>;
@@ -1201,6 +1234,28 @@ declare const OPS: {
1201
1234
  readonly since: "1.76";
1202
1235
  readonly errors: readonly ["NOT_FOUND", "RESOURCE_BUSY", "RESOURCE_GONE", "INVALID_PARAMS", "TIMEOUT", "CANCELLED", "RATE_LIMITED", "INTERNAL"];
1203
1236
  };
1237
+ readonly "models.embed": {
1238
+ readonly params: z.ZodObject<{
1239
+ model: z.ZodString;
1240
+ input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
1241
+ start_if_stopped: z.ZodOptional<z.ZodBoolean>;
1242
+ }, z.core.$strict>;
1243
+ readonly result: z.ZodObject<{
1244
+ model: z.ZodString;
1245
+ dimensions: z.ZodInt;
1246
+ data: z.ZodArray<z.ZodObject<{
1247
+ index: z.ZodInt;
1248
+ embedding: z.ZodArray<z.ZodNumber>;
1249
+ }, z.core.$strict>>;
1250
+ usage: z.ZodObject<{
1251
+ prompt_tokens: z.ZodInt;
1252
+ total_tokens: z.ZodInt;
1253
+ }, z.core.$strict>;
1254
+ }, z.core.$strict>;
1255
+ readonly kind: "unary";
1256
+ readonly since: "1.88";
1257
+ readonly errors: readonly ["NOT_FOUND", "RESOURCE_BUSY", "RESOURCE_GONE", "INVALID_PARAMS", "TIMEOUT", "CANCELLED", "INTERNAL"];
1258
+ };
1204
1259
  readonly "models.downloads.list": {
1205
1260
  readonly params: z.ZodObject<{}, z.core.$strict>;
1206
1261
  readonly result: z.ZodObject<{
package/dist/react.d.ts CHANGED
@@ -1136,6 +1136,30 @@ declare const OPS: {
1136
1136
  bytes_total: z.ZodNullable<z.ZodInt>;
1137
1137
  }, z.core.$strict>>;
1138
1138
  error: z.ZodNullable<z.ZodString>;
1139
+ embedding: z.ZodOptional<z.ZodObject<{
1140
+ state: z.ZodEnum<{
1141
+ failed: "failed";
1142
+ running: "running";
1143
+ starting: "starting";
1144
+ stopped: "stopped";
1145
+ }>;
1146
+ models: z.ZodArray<z.ZodObject<{
1147
+ id: z.ZodString;
1148
+ size_bytes: z.ZodInt;
1149
+ installed: z.ZodBoolean;
1150
+ title: z.ZodOptional<z.ZodString>;
1151
+ problem: z.ZodOptional<z.ZodString>;
1152
+ }, z.core.$strict>>;
1153
+ running: z.ZodNullable<z.ZodObject<{
1154
+ id: z.ZodString;
1155
+ port: z.ZodInt;
1156
+ context_length: z.ZodOptional<z.ZodInt>;
1157
+ gpu_layers: z.ZodOptional<z.ZodInt>;
1158
+ threads: z.ZodOptional<z.ZodInt>;
1159
+ }, z.core.$strict>>;
1160
+ starting: z.ZodNullable<z.ZodString>;
1161
+ error: z.ZodNullable<z.ZodString>;
1162
+ }, z.core.$strict>>;
1139
1163
  }, z.core.$strict>;
1140
1164
  readonly kind: "unary";
1141
1165
  readonly since: "1.31";
@@ -1162,6 +1186,10 @@ declare const OPS: {
1162
1186
  gpu_layers: z.ZodOptional<z.ZodInt>;
1163
1187
  threads: z.ZodOptional<z.ZodInt>;
1164
1188
  load_timeout_s: z.ZodOptional<z.ZodInt>;
1189
+ slot: z.ZodOptional<z.ZodEnum<{
1190
+ chat: "chat";
1191
+ embed: "embed";
1192
+ }>>;
1165
1193
  }, z.core.$strict>;
1166
1194
  readonly result: z.ZodObject<{
1167
1195
  running: z.ZodObject<{
@@ -1178,7 +1206,12 @@ declare const OPS: {
1178
1206
  readonly errors: readonly ["NOT_FOUND", "RESOURCE_BUSY", "RESOURCE_GONE", "TIMEOUT", "CANCELLED", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1179
1207
  };
1180
1208
  readonly "models.llm.stop": {
1181
- readonly params: z.ZodObject<{}, z.core.$strict>;
1209
+ readonly params: z.ZodObject<{
1210
+ slot: z.ZodOptional<z.ZodEnum<{
1211
+ chat: "chat";
1212
+ embed: "embed";
1213
+ }>>;
1214
+ }, z.core.$strict>;
1182
1215
  readonly result: z.ZodObject<{
1183
1216
  stopped: z.ZodBoolean;
1184
1217
  }, z.core.$strict>;
@@ -1201,6 +1234,28 @@ declare const OPS: {
1201
1234
  readonly since: "1.76";
1202
1235
  readonly errors: readonly ["NOT_FOUND", "RESOURCE_BUSY", "RESOURCE_GONE", "INVALID_PARAMS", "TIMEOUT", "CANCELLED", "RATE_LIMITED", "INTERNAL"];
1203
1236
  };
1237
+ readonly "models.embed": {
1238
+ readonly params: z.ZodObject<{
1239
+ model: z.ZodString;
1240
+ input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
1241
+ start_if_stopped: z.ZodOptional<z.ZodBoolean>;
1242
+ }, z.core.$strict>;
1243
+ readonly result: z.ZodObject<{
1244
+ model: z.ZodString;
1245
+ dimensions: z.ZodInt;
1246
+ data: z.ZodArray<z.ZodObject<{
1247
+ index: z.ZodInt;
1248
+ embedding: z.ZodArray<z.ZodNumber>;
1249
+ }, z.core.$strict>>;
1250
+ usage: z.ZodObject<{
1251
+ prompt_tokens: z.ZodInt;
1252
+ total_tokens: z.ZodInt;
1253
+ }, z.core.$strict>;
1254
+ }, z.core.$strict>;
1255
+ readonly kind: "unary";
1256
+ readonly since: "1.88";
1257
+ readonly errors: readonly ["NOT_FOUND", "RESOURCE_BUSY", "RESOURCE_GONE", "INVALID_PARAMS", "TIMEOUT", "CANCELLED", "INTERNAL"];
1258
+ };
1204
1259
  readonly "models.downloads.list": {
1205
1260
  readonly params: z.ZodObject<{}, z.core.$strict>;
1206
1261
  readonly result: z.ZodObject<{
@@ -6609,6 +6609,12 @@
6609
6609
  "items": {
6610
6610
  "$ref": "#/$defs/CatalogModelEntry"
6611
6611
  }
6612
+ },
6613
+ "embedding": {
6614
+ "type": "array",
6615
+ "items": {
6616
+ "$ref": "#/$defs/CatalogModelEntry"
6617
+ }
6612
6618
  }
6613
6619
  },
6614
6620
  "required": [
@@ -6739,6 +6745,9 @@
6739
6745
  "type": "null"
6740
6746
  }
6741
6747
  ]
6748
+ },
6749
+ "embedding": {
6750
+ "$ref": "#/$defs/LlmEmbeddingSlot"
6742
6751
  }
6743
6752
  },
6744
6753
  "required": [
@@ -6822,6 +6831,9 @@
6822
6831
  "type": "integer",
6823
6832
  "minimum": 10,
6824
6833
  "maximum": 3600
6834
+ },
6835
+ "slot": {
6836
+ "$ref": "#/$defs/LlmSlot"
6825
6837
  }
6826
6838
  },
6827
6839
  "required": [
@@ -6849,7 +6861,11 @@
6849
6861
  },
6850
6862
  "ModelsLlmStopParams": {
6851
6863
  "type": "object",
6852
- "properties": {},
6864
+ "properties": {
6865
+ "slot": {
6866
+ "$ref": "#/$defs/LlmSlot"
6867
+ }
6868
+ },
6853
6869
  "additionalProperties": false
6854
6870
  },
6855
6871
  "ModelsLlmStopResult": {
@@ -6910,6 +6926,172 @@
6910
6926
  ],
6911
6927
  "additionalProperties": false
6912
6928
  },
6929
+ "ModelsEmbedParams": {
6930
+ "type": "object",
6931
+ "properties": {
6932
+ "model": {
6933
+ "$ref": "#/$defs/ModelKey"
6934
+ },
6935
+ "input": {
6936
+ "anyOf": [
6937
+ {
6938
+ "type": "string",
6939
+ "minLength": 1,
6940
+ "maxLength": 262144
6941
+ },
6942
+ {
6943
+ "minItems": 1,
6944
+ "maxItems": 256,
6945
+ "type": "array",
6946
+ "items": {
6947
+ "type": "string",
6948
+ "minLength": 1,
6949
+ "maxLength": 262144
6950
+ }
6951
+ }
6952
+ ]
6953
+ },
6954
+ "start_if_stopped": {
6955
+ "type": "boolean"
6956
+ }
6957
+ },
6958
+ "required": [
6959
+ "model",
6960
+ "input"
6961
+ ],
6962
+ "additionalProperties": false
6963
+ },
6964
+ "ModelsEmbedResult": {
6965
+ "type": "object",
6966
+ "properties": {
6967
+ "model": {
6968
+ "$ref": "#/$defs/ModelKey"
6969
+ },
6970
+ "dimensions": {
6971
+ "type": "integer",
6972
+ "minimum": 1,
6973
+ "maximum": 16384
6974
+ },
6975
+ "data": {
6976
+ "minItems": 1,
6977
+ "maxItems": 256,
6978
+ "type": "array",
6979
+ "items": {
6980
+ "$ref": "#/$defs/EmbeddingVector"
6981
+ }
6982
+ },
6983
+ "usage": {
6984
+ "type": "object",
6985
+ "properties": {
6986
+ "prompt_tokens": {
6987
+ "type": "integer",
6988
+ "minimum": 0,
6989
+ "maximum": 9007199254740991
6990
+ },
6991
+ "total_tokens": {
6992
+ "type": "integer",
6993
+ "minimum": 0,
6994
+ "maximum": 9007199254740991
6995
+ }
6996
+ },
6997
+ "required": [
6998
+ "prompt_tokens",
6999
+ "total_tokens"
7000
+ ],
7001
+ "additionalProperties": false
7002
+ }
7003
+ },
7004
+ "required": [
7005
+ "model",
7006
+ "dimensions",
7007
+ "data",
7008
+ "usage"
7009
+ ],
7010
+ "additionalProperties": false
7011
+ },
7012
+ "EmbeddingVector": {
7013
+ "type": "object",
7014
+ "properties": {
7015
+ "index": {
7016
+ "type": "integer",
7017
+ "minimum": 0,
7018
+ "maximum": 9007199254740991
7019
+ },
7020
+ "embedding": {
7021
+ "minItems": 1,
7022
+ "maxItems": 16384,
7023
+ "type": "array",
7024
+ "items": {
7025
+ "type": "number"
7026
+ }
7027
+ }
7028
+ },
7029
+ "required": [
7030
+ "index",
7031
+ "embedding"
7032
+ ],
7033
+ "additionalProperties": false
7034
+ },
7035
+ "LlmSlot": {
7036
+ "type": "string",
7037
+ "enum": [
7038
+ "chat",
7039
+ "embed"
7040
+ ]
7041
+ },
7042
+ "LlmEmbeddingSlot": {
7043
+ "type": "object",
7044
+ "properties": {
7045
+ "state": {
7046
+ "$ref": "#/$defs/LlmServerState"
7047
+ },
7048
+ "models": {
7049
+ "type": "array",
7050
+ "items": {
7051
+ "$ref": "#/$defs/TextModelInfo"
7052
+ }
7053
+ },
7054
+ "running": {
7055
+ "anyOf": [
7056
+ {
7057
+ "$ref": "#/$defs/LlmRunning"
7058
+ },
7059
+ {
7060
+ "type": "null"
7061
+ }
7062
+ ]
7063
+ },
7064
+ "starting": {
7065
+ "anyOf": [
7066
+ {
7067
+ "$ref": "#/$defs/ModelKey"
7068
+ },
7069
+ {
7070
+ "type": "null"
7071
+ }
7072
+ ]
7073
+ },
7074
+ "error": {
7075
+ "anyOf": [
7076
+ {
7077
+ "type": "string",
7078
+ "maxLength": 300
7079
+ },
7080
+ {
7081
+ "type": "null"
7082
+ }
7083
+ ]
7084
+ }
7085
+ },
7086
+ "required": [
7087
+ "state",
7088
+ "models",
7089
+ "running",
7090
+ "starting",
7091
+ "error"
7092
+ ],
7093
+ "additionalProperties": false
7094
+ },
6913
7095
  "DownloadKind": {
6914
7096
  "type": "string",
6915
7097
  "enum": [
@@ -28263,6 +28445,21 @@
28263
28445
  "INTERNAL"
28264
28446
  ]
28265
28447
  },
28448
+ "models.embed": {
28449
+ "params": "ModelsEmbedParams",
28450
+ "result": "ModelsEmbedResult",
28451
+ "kind": "unary",
28452
+ "since": "1.88",
28453
+ "errors": [
28454
+ "NOT_FOUND",
28455
+ "RESOURCE_BUSY",
28456
+ "RESOURCE_GONE",
28457
+ "INVALID_PARAMS",
28458
+ "TIMEOUT",
28459
+ "CANCELLED",
28460
+ "INTERNAL"
28461
+ ]
28462
+ },
28266
28463
  "models.downloads.list": {
28267
28464
  "params": "ModelsDownloadsListParams",
28268
28465
  "result": "ModelsDownloadsListResult",
@@ -31251,7 +31448,14 @@
31251
31448
  },
31252
31449
  "MlCatalogSetParams": {
31253
31450
  "unusable": "1.69",
31254
- "speech": "1.81"
31451
+ "speech": "1.81",
31452
+ "embedding": "1.88"
31453
+ },
31454
+ "ModelsLlmStatusResult": {
31455
+ "embedding": "1.88"
31456
+ },
31457
+ "ModelsLlmStopParams": {
31458
+ "slot": "1.88"
31255
31459
  },
31256
31460
  "MlProgress": {
31257
31461
  "audio": "1.81"
@@ -31259,7 +31463,8 @@
31259
31463
  "ModelsLlmStartParams": {
31260
31464
  "gpu_layers": "1.48",
31261
31465
  "threads": "1.48",
31262
- "load_timeout_s": "1.48"
31466
+ "load_timeout_s": "1.48",
31467
+ "slot": "1.88"
31263
31468
  },
31264
31469
  "FsPatchResult": {
31265
31470
  "edits_applied": "1.1",
@@ -31555,5 +31760,5 @@
31555
31760
  "olderPeersGet": 0
31556
31761
  }
31557
31762
  },
31558
- "x-protocol-version": "1.87"
31763
+ "x-protocol-version": "1.88"
31559
31764
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/desktop-protocol",
3
- "version": "0.21.93",
3
+ "version": "0.21.94",
4
4
  "description": "The one wire contract between Matrx 2 (the desktop app) and every client that drives it — phone, web app, extension, server: zod schemas for the envelope and every cap.op, the 16-byte binary frame codec, a reconnecting request/stream/credit/reattach client, React hooks, and a generated JSON Schema + Pydantic twin that CI keeps byte-identical.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -98,5 +98,5 @@
98
98
  "node": ">=20"
99
99
  },
100
100
  "sideEffects": false,
101
- "gitHead": "3aed0e63df9966a50307db30d3db9aa16a39d4f4"
101
+ "gitHead": "d614c3a93c35a15daedc0209520913bbe9a3f931"
102
102
  }