@ai-matrx/desktop-protocol 0.21.64 → 0.21.65

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 CHANGED
@@ -1,7 +1,8 @@
1
1
  # Changelog
2
2
 
3
- ### Unreleased
3
+ ## 0.21.65
4
4
 
5
+ - **Protocol 1.66 — matrx-local's window and audio contracts on Matrx 2 (2026-10-21).** `window.list` takes `app` (owning app name substring, local_window's app_filter); `window.minimize` takes `mode` minimize / maximize / restore (local_window's window_action) and echoes it; `audio.record` takes `channels` and `sample_rate` and reports both; `audio.play` takes `device_id` (an output from audio.devices). Optional fields only, in FIELDS_SINCE; an older core refuses the new params as INVALID_PARAMS. Consumer action: none.
5
6
  - **Protocol 1.65 — "Continued from <account>" is a transcript item (2026-10-21).** `CodingTranscriptItem` gains `continued` (`id`, `from`, `text`, `at`): the line across a coding chat where it moved from another account (@ai-matrx/coding-sessions emits it where it used to emit an info `notice`). `forPeer` sends a 1.64 peer's `coding.history` / `coding.transcript.read` each as that `notice`, so its strict union never refuses the whole transcript. Consumer action: draw it as a divider at its place (the coding-sessions screen does).
6
7
  - **Protocol 1.64 — agent versions in Matrx 2 (2026-10-21).** New ops `account.agents.versions` (an agent's saved versions: number, age, note; the current version), `account.agents.version_diff` (one version and the current one as agent-definition records for `@ai-matrx/agents/versions/react` AgentDiffViewer) and `account.agents.restore_version` (`agx_promote_version`). New ops only; an older peer never sees them. Consumer action: none.
7
8
  - **Protocol 1.63 — a chat's instance, and what an instance record lacks (2026-10-21).** `ChatRow.home` (`ChatPlace`): the instance whose folder holds the chat, read only (Claude: the side window holding its newest record copy, else main; Codex: the home whose database holds it). `AppInstance.missing` (`InstanceGap[]`: account / email / version): what the record still lacks after Matrx filled what it remembered (Matrx 2 ledger D10). Optional; stripped for a 1.62 peer by `forPeer`. Consumer action: none.
@@ -11,8 +12,17 @@
11
12
 
12
13
  ## 0.21.64
13
14
 
14
- UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
15
- Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/desktop-protocol/src`.
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 920791a7ff 8d4dfed0d7 -- apps/shared/desktop-protocol/src`
18
+
19
+ Changed shipped source files (6):
20
+ - `apps/shared/desktop-protocol/src/contract.ts`
21
+ - `apps/shared/desktop-protocol/src/schema/account.ts`
22
+ - `apps/shared/desktop-protocol/src/schema/coding-sessions.ts`
23
+ - `apps/shared/desktop-protocol/src/schema/primitives.ts`
24
+ - `apps/shared/desktop-protocol/src/schema/registry.ts`
25
+ - `apps/shared/desktop-protocol/src/versioning.ts`
16
26
 
17
27
  ## 0.21.62
18
28
 
@@ -6,7 +6,7 @@ import {
6
6
  import { z } from "zod";
7
7
  import { UUID_SHAPE_PATTERN } from "@ai-matrx/kit/uuid";
8
8
  var PROTOCOL_MAJOR = 1;
9
- var PROTOCOL_MINOR = 65;
9
+ var PROTOCOL_MINOR = 66;
10
10
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
11
11
  var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
12
12
  var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -2512,6 +2512,8 @@ var WindowInfo = z24.strictObject({
2512
2512
  var WindowListParams = z24.strictObject({
2513
2513
  /** Case-insensitive substring of the window title. */
2514
2514
  title: z24.string().min(1).max(256).optional(),
2515
+ /** (1.66) Case-insensitive substring of the owning application's name (matrx-local's app_filter). */
2516
+ app: z24.string().min(1).max(256).optional(),
2515
2517
  limit: z24.int().min(1).max(500).default(100)
2516
2518
  });
2517
2519
  var WindowListResult = z24.strictObject({
@@ -2531,8 +2533,17 @@ var WindowMoveParams = z24.strictObject({
2531
2533
  height: z24.int().min(50).max(16384).optional()
2532
2534
  });
2533
2535
  var WindowMoveResult = z24.strictObject({ window: WindowInfo });
2534
- var WindowMinimizeParams = z24.strictObject({ id: nonNegInt });
2535
- var WindowMinimizeResult = z24.strictObject({ id: nonNegInt });
2536
+ var WindowState = z24.enum(["minimize", "maximize", "restore"]);
2537
+ var WindowMinimizeParams = z24.strictObject({
2538
+ id: nonNegInt,
2539
+ /** (1.66) minimize (the default), maximize (fill its display), or restore (bring a minimized or maximized window back). */
2540
+ mode: WindowState.optional()
2541
+ });
2542
+ var WindowMinimizeResult = z24.strictObject({
2543
+ id: nonNegInt,
2544
+ /** (1.66) What was done. */
2545
+ mode: WindowState.optional()
2546
+ });
2536
2547
 
2537
2548
  // src/schema/input.ts
2538
2549
  import { z as z25 } from "zod";
@@ -3044,16 +3055,27 @@ var AudioRecordParams = z30.strictObject({
3044
3055
  /** The microphone (from audio.devices); the default input when absent. */
3045
3056
  device_id: z30.string().min(1).max(256).optional(),
3046
3057
  /** Where the WAV file goes; a new file in the temp folder when absent. */
3047
- path: AbsPath.optional()
3058
+ path: AbsPath.optional(),
3059
+ /** (1.66) 1 (mono, the default) or 2 (stereo). */
3060
+ channels: z30.int().min(1).max(2).optional(),
3061
+ /** (1.66) Samples per second; the device's own rate when absent. */
3062
+ sample_rate: z30.int().min(8e3).max(192e3).optional()
3048
3063
  });
3049
3064
  var AudioRecordResult = z30.strictObject({
3050
3065
  path: AbsPath,
3051
3066
  seconds: z30.number().min(0),
3052
3067
  bytes: nonNegInt,
3053
3068
  /** Loudest sample, 0–1: 0 means the device gave silence. */
3054
- peak: z30.number().min(0).max(1)
3069
+ peak: z30.number().min(0).max(1),
3070
+ /** (1.66) The file's channels and sample rate, as written. */
3071
+ channels: z30.int().min(1).max(8).optional(),
3072
+ sample_rate: z30.int().min(1).max(768e3).optional()
3073
+ });
3074
+ var AudioPlayParams = z30.strictObject({
3075
+ path: AbsPath,
3076
+ /** (1.66) The speaker or output (its id from audio.devices' outputs); the system's output when absent. */
3077
+ device_id: z30.string().min(1).max(256).optional()
3055
3078
  });
3056
- var AudioPlayParams = z30.strictObject({ path: AbsPath });
3057
3079
  var AudioPlayResult = z30.strictObject({ path: AbsPath, seconds: z30.number().min(0) });
3058
3080
  var AudioLevelsParams = z30.strictObject({});
3059
3081
  var AudioLevelsResult = z30.strictObject({
@@ -5106,6 +5128,7 @@ var NAMED_SCHEMAS = {
5106
5128
  WindowMoveResult,
5107
5129
  WindowMinimizeParams,
5108
5130
  WindowMinimizeResult,
5131
+ WindowState,
5109
5132
  InputKey,
5110
5133
  InputKeyboardSettingsParams,
5111
5134
  InputKeyboardSettingsResult,
@@ -5625,6 +5648,12 @@ var FIELDS_SINCE = {
5625
5648
  ResourcesDisk: { name: "1.17" },
5626
5649
  StackServer: { cpu_percent: "1.18", memory_bytes: "1.18" },
5627
5650
  AudioDevice: { kind: "1.24" },
5651
+ AudioRecordParams: { channels: "1.66", sample_rate: "1.66" },
5652
+ AudioRecordResult: { channels: "1.66", sample_rate: "1.66" },
5653
+ AudioPlayParams: { device_id: "1.66" },
5654
+ WindowListParams: { app: "1.66" },
5655
+ WindowMinimizeParams: { mode: "1.66" },
5656
+ WindowMinimizeResult: { mode: "1.66" },
5628
5657
  ScreenDisplay: { rotation: "1.24", refresh_hz: "1.24", builtin: "1.24" },
5629
5658
  PowerStatusResult: { energy: "1.24" },
5630
5659
  AppsSpendResult: { days: "1.24" },
@@ -6378,6 +6407,7 @@ export {
6378
6407
  WindowFocusResult,
6379
6408
  WindowMoveParams,
6380
6409
  WindowMoveResult,
6410
+ WindowState,
6381
6411
  WindowMinimizeParams,
6382
6412
  WindowMinimizeResult,
6383
6413
  InputKey,
@@ -6758,4 +6788,4 @@ export {
6758
6788
  closeRule,
6759
6789
  isTerminalClose
6760
6790
  };
6761
- //# sourceMappingURL=chunk-server-B5W6NL7W.js.map
6791
+ //# sourceMappingURL=chunk-server-K7IQDLLV.js.map