@ai-matrx/desktop-protocol 0.21.39 → 0.21.43
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 +29 -2
- package/dist/client.cjs +17 -4
- 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 +17 -4
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +20 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -5
- package/dist/index.d.ts +25 -5
- package/dist/index.js +20 -5
- package/dist/index.js.map +1 -1
- package/dist/{models-Ut2nuRzV.d.cts → models-HrUx_KP2.d.cts} +42 -0
- package/dist/{models-Ut2nuRzV.d.ts → models-HrUx_KP2.d.ts} +42 -0
- package/dist/react.d.cts +9 -0
- package/dist/react.d.ts +9 -0
- package/generated/desktop-protocol.schema.json +41 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.21.43
|
|
4
|
+
### Unreleased
|
|
5
|
+
|
|
6
|
+
- **Protocol 1.48 — model start carries the app's knobs, and the service echoes what it applied.**
|
|
7
|
+
`ModelsLlmStartParams` gains optional `gpu_layers` (-1..999), `threads` (1..512), `load_timeout_s` (10..3600)
|
|
8
|
+
beside `context_length`; `LlmRunning` gains optional `context_length`, `gpu_layers`, `threads` (what was
|
|
9
|
+
actually applied, for config attestation). All optional and listed in `FIELDS_SINCE` "1.48"; Matrx 2 makes
|
|
10
|
+
them required when the Python service and every caller send them. The false "the service picks a size"
|
|
11
|
+
comment on `context_length` is corrected (the service uses a fixed 4096 when it is omitted).
|
|
12
|
+
|
|
13
|
+
## 0.21.42
|
|
14
|
+
|
|
15
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
16
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
17
|
+
Diff: `git diff bdadfd428f a5da075c1d -- apps/shared/desktop-protocol/src`
|
|
18
|
+
|
|
19
|
+
Changed shipped source files (1):
|
|
20
|
+
- `apps/shared/desktop-protocol/src/schema/apps-instances.ts`
|
|
21
|
+
|
|
3
22
|
## 0.21.39
|
|
4
23
|
|
|
5
|
-
|
|
6
|
-
|
|
24
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
25
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
26
|
+
Diff: `git diff 03564f7f79 bdadfd428f -- apps/shared/desktop-protocol/src`
|
|
27
|
+
|
|
28
|
+
Changed shipped source files (5):
|
|
29
|
+
- `apps/shared/desktop-protocol/src/contract.ts`
|
|
30
|
+
- `apps/shared/desktop-protocol/src/index.ts`
|
|
31
|
+
- `apps/shared/desktop-protocol/src/schema/apps-instances.ts`
|
|
32
|
+
- `apps/shared/desktop-protocol/src/schema/primitives.ts`
|
|
33
|
+
- `apps/shared/desktop-protocol/src/schema/registry.ts`
|
|
7
34
|
|
|
8
35
|
## 0.21.38
|
|
9
36
|
### Unreleased
|
package/dist/client.cjs
CHANGED
|
@@ -144,7 +144,7 @@ var import_zod2 = require("zod");
|
|
|
144
144
|
var import_zod = require("zod");
|
|
145
145
|
var import_uuid = require("@ai-matrx/kit/uuid");
|
|
146
146
|
var PROTOCOL_MAJOR = 1;
|
|
147
|
-
var PROTOCOL_MINOR =
|
|
147
|
+
var PROTOCOL_MINOR = 48;
|
|
148
148
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
149
149
|
var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
150
150
|
var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -875,7 +875,14 @@ var TextModelInfo = import_zod9.z.strictObject({
|
|
|
875
875
|
installed: import_zod9.z.boolean()
|
|
876
876
|
});
|
|
877
877
|
var LlmServerState = import_zod9.z.enum(["stopped", "starting", "running", "failed"]);
|
|
878
|
-
var LlmRunning = import_zod9.z.strictObject({
|
|
878
|
+
var LlmRunning = import_zod9.z.strictObject({
|
|
879
|
+
id: TextModelId,
|
|
880
|
+
port: import_zod9.z.int().min(1024).max(65535),
|
|
881
|
+
/** (1.48) What the service actually applied, echoed so the app can attest "read and applied". Optional until the service sends them. */
|
|
882
|
+
context_length: import_zod9.z.int().min(512).max(131072).optional(),
|
|
883
|
+
gpu_layers: import_zod9.z.int().min(-1).max(999).optional(),
|
|
884
|
+
threads: import_zod9.z.int().min(1).max(512).optional()
|
|
885
|
+
});
|
|
879
886
|
var ModelsLlmStatusParams = import_zod9.z.strictObject({});
|
|
880
887
|
var ModelsLlmStatusResult = import_zod9.z.strictObject({
|
|
881
888
|
state: LlmServerState,
|
|
@@ -893,8 +900,14 @@ var ModelsLlmInstallParams = import_zod9.z.strictObject({ model: TextModelId });
|
|
|
893
900
|
var ModelsLlmInstallResult = import_zod9.z.strictObject({ model: TextModelId, elapsed_ms: nonNegInt });
|
|
894
901
|
var ModelsLlmStartParams = import_zod9.z.strictObject({
|
|
895
902
|
model: TextModelId,
|
|
896
|
-
/** Tokens of context
|
|
897
|
-
context_length: import_zod9.z.int().min(512).max(131072).optional()
|
|
903
|
+
/** Tokens of context, from the knob desktop.models/context_length. Omitted today means the service's fixed 4096 (optional until callers send it). */
|
|
904
|
+
context_length: import_zod9.z.int().min(512).max(131072).optional(),
|
|
905
|
+
/** (1.48) Layers offloaded to the GPU; -1 = all. From the knob desktop.models/gpu_layers. */
|
|
906
|
+
gpu_layers: import_zod9.z.int().min(-1).max(999).optional(),
|
|
907
|
+
/** (1.48) CPU threads, computed by the app from the knobs. */
|
|
908
|
+
threads: import_zod9.z.int().min(1).max(512).optional(),
|
|
909
|
+
/** (1.48) Seconds to wait for the model to load, computed by the app from the knobs. */
|
|
910
|
+
load_timeout_s: import_zod9.z.int().min(10).max(3600).optional()
|
|
898
911
|
});
|
|
899
912
|
var ModelsLlmStartResult = import_zod9.z.strictObject({ running: LlmRunning, elapsed_ms: nonNegInt });
|
|
900
913
|
var ModelsLlmStopParams = import_zod9.z.strictObject({});
|