@ai-matrx/desktop-protocol 0.17.2 → 0.17.3
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 +11 -0
- package/dist/client.cjs +10 -2
- 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 +10 -2
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +34 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -5
- package/dist/index.d.ts +18 -5
- package/dist/index.js +34 -5
- package/dist/index.js.map +1 -1
- package/dist/{models-QWCUcQuU.d.cts → models-BiquRLLO.d.cts} +14 -0
- package/dist/{models-QWCUcQuU.d.ts → models-BiquRLLO.d.ts} +14 -0
- package/dist/react.d.cts +6 -0
- package/dist/react.d.ts +6 -0
- package/generated/desktop-protocol.schema.json +14 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.17.3
|
|
4
|
+
### (protocol 1.7)
|
|
5
|
+
|
|
6
|
+
- **A window names the application that owns it.** `WindowInfo` gains `app` (the owning
|
|
7
|
+
application's display name, absent when the OS does not say) and `pid` (absent when unknown), on
|
|
8
|
+
`window.list`, `window.focus` and `window.move`. Both are optional on read (an older app omits
|
|
9
|
+
them) and `forPeer` strips them for a peer that negotiated below 1.7. Guard:
|
|
10
|
+
`src/versioning.test.ts` ("a window names its app from 1.7 …").
|
|
11
|
+
|
|
12
|
+
Consumer action: none (new optional fields; Matrx 2 core and its Windows screen read them).
|
|
13
|
+
|
|
3
14
|
## 0.17.2
|
|
4
15
|
|
|
5
16
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
package/dist/client.cjs
CHANGED
|
@@ -143,7 +143,7 @@ var import_zod2 = require("zod");
|
|
|
143
143
|
// src/schema/primitives.ts
|
|
144
144
|
var import_zod = require("zod");
|
|
145
145
|
var PROTOCOL_MAJOR = 1;
|
|
146
|
-
var PROTOCOL_MINOR =
|
|
146
|
+
var PROTOCOL_MINOR = 7;
|
|
147
147
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
148
148
|
var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
149
149
|
var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -961,7 +961,15 @@ var WindowInfo = import_zod15.z.strictObject({
|
|
|
961
961
|
x: import_zod15.z.int(),
|
|
962
962
|
y: import_zod15.z.int(),
|
|
963
963
|
width: import_zod15.z.int().min(0),
|
|
964
|
-
height: import_zod15.z.int().min(0)
|
|
964
|
+
height: import_zod15.z.int().min(0),
|
|
965
|
+
/**
|
|
966
|
+
* The application that owns the window, by the name the OS shows people; absent when the OS does
|
|
967
|
+
* not say. Optional (never null, the schema rule) because it was added in protocol 1.7: an older
|
|
968
|
+
* app's answer has no such field (FIELDS_SINCE).
|
|
969
|
+
*/
|
|
970
|
+
app: import_zod15.z.string().max(256).optional(),
|
|
971
|
+
/** The owning process id; absent when the OS does not say. Added in protocol 1.7. */
|
|
972
|
+
pid: import_zod15.z.int().min(0).optional()
|
|
965
973
|
});
|
|
966
974
|
var WindowListParams = import_zod15.z.strictObject({
|
|
967
975
|
/** Case-insensitive substring of the window title. */
|