@ai-matrx/desktop-protocol 0.20.0 → 0.21.0

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,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.21.0 (protocol 1.21)
4
+
5
+ - **What a window draws.** `apps.windows.shown {app_key, window}` returns whether the window is open and, when it is, the sections its Code sidebar draws right now (`title`, `rows`, `expanded`), read through Accessibility without focusing it or sending input; `problem` says why an open window could not be read. Matrx 2 uses it to confirm a project's group appeared after Move all to account. New op only: older peers never see it.
6
+
7
+ **Consumer action:** none (new op).
8
+
3
9
  ## 0.20.0 (protocol 1.20)
4
10
 
5
11
  - **The `diag` capability: the device's error ledger** (SPEC §3.12). `diag.errors.list {status, limit}` returns every error signature the device has seen (process, kind, source, code, message with personal data removed, count, first/last seen, status waiting/sent/resolved, the resolver's note) plus delivery state. `diag.errors.report {process, kind, source, message, code?, stack?}` lets a renderer or hosted page report what only it sees (a banner shown to the person, a caught error). Event `diag.errors.changed {total_signatures, waiting}`. New ops only: older peers never see them.
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 = 20;
147
+ var PROTOCOL_MINOR = 21;
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_-]+$/);
@@ -1969,6 +1969,19 @@ var AppsAccountsResetsResult = import_zod27.z.strictObject({
1969
1969
  var AppsWindowActionResult = import_zod27.z.strictObject({ message: import_zod27.z.string().max(400) });
1970
1970
  var AppsWindowsOpenParams = import_zod27.z.strictObject({ app_key: AppKey, window: ChatPlace });
1971
1971
  var AppsWindowsReloadParams = import_zod27.z.strictObject({ app_key: AppKey, window: ChatPlace });
1972
+ var ShownSection = import_zod27.z.strictObject({
1973
+ title: import_zod27.z.string().max(300),
1974
+ /** Rows drawn under it (a collapsed section draws none). */
1975
+ rows: import_zod27.z.number().int().nonnegative(),
1976
+ expanded: import_zod27.z.boolean()
1977
+ });
1978
+ var AppsWindowsShownParams = import_zod27.z.strictObject({ app_key: AppKey, window: ChatPlace });
1979
+ var AppsWindowsShownResult = import_zod27.z.strictObject({
1980
+ window: ChatPlace,
1981
+ open: import_zod27.z.boolean(),
1982
+ sections: import_zod27.z.array(ShownSection).max(200),
1983
+ problem: import_zod27.z.string().max(400).nullable()
1984
+ });
1972
1985
  var AppsWindowsRestartParams = import_zod27.z.strictObject({ app_key: AppKey, window: ChatPlace, force: import_zod27.z.boolean().default(false) });
1973
1986
  var AppsWindowsRefreshUsageParams = import_zod27.z.strictObject({ app_key: AppKey, window: ChatPlace });
1974
1987
  var AppsProjectsMoveParams = import_zod27.z.strictObject({
@@ -2232,6 +2245,8 @@ var OPS = {
2232
2245
  // The device's error ledger (SPEC §3.12): every process's errors, grouped, delivered to ops.system_error.
2233
2246
  "diag.errors.list": { params: DiagErrorsListParams, result: DiagErrorsListResult, kind: "unary", since: "1.20", errors: ["INTERNAL"] },
2234
2247
  "diag.errors.report": { params: DiagErrorsReportParams, result: DiagErrorsReportResult, kind: "unary", since: "1.20", errors: ["INTERNAL"] },
2248
+ // 1.21: what a window's sidebar draws (the Move-all grouping check).
2249
+ "apps.windows.shown": { params: AppsWindowsShownParams, result: AppsWindowsShownResult, kind: "unary", since: "1.21", errors: ["NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
2235
2250
  // Claude Code history (SPEC §6 coding): served by the `coding` Python service through SERVICES below.
2236
2251
  "coding.history.import_missing": { params: CodingHistoryImportMissingParams, result: CodingHistoryImportMissingResult, kind: "unary", since: "1.5", errors: ["RESOURCE_BUSY", "RESOURCE_GONE", "CANCELLED", "INTERNAL"] }
2237
2252
  };