@ai-matrx/desktop-protocol 0.21.55 → 0.21.57

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,10 +1,33 @@
1
1
  # Changelog
2
2
 
3
- ## 0.21.55
3
+ ## 0.21.57
4
4
 
5
5
  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.
6
6
  Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/desktop-protocol/src`.
7
7
 
8
+ ## 0.21.56
9
+
10
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
11
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
12
+ Diff: `git diff 04ca2e385c a720dcb101 -- apps/shared/desktop-protocol/src`
13
+
14
+ Changed shipped source files (6):
15
+ - `apps/shared/desktop-protocol/src/contract.ts`
16
+ - `apps/shared/desktop-protocol/src/schema/apps-accounts.ts`
17
+ - `apps/shared/desktop-protocol/src/schema/apps-chats.ts`
18
+ - `apps/shared/desktop-protocol/src/schema/primitives.ts`
19
+ - `apps/shared/desktop-protocol/src/schema/registry.ts`
20
+ - `apps/shared/desktop-protocol/src/versioning.ts`
21
+
22
+ ## 0.21.55
23
+
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 37251414aa 04ca2e385c -- apps/shared/desktop-protocol/src`
27
+
28
+ Changed shipped source files (1):
29
+ - `apps/shared/desktop-protocol/src/contract.ts`
30
+
8
31
  ## 0.21.53
9
32
 
10
33
  SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
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 = 58;
147
+ var PROTOCOL_MINOR = 60;
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_-]+$/);
@@ -3004,6 +3004,8 @@ var ChatAppProject = import_zod30.z.strictObject({
3004
3004
  name: import_zod30.z.string().max(200)
3005
3005
  });
3006
3006
  var ChatTitleSource = import_zod30.z.enum(["app", "app-remembered", "custom-title", "ai-title", "agent-name", "summary", "first-prompt", "last-prompt"]);
3007
+ var ChatAppGroup = import_zod30.z.strictObject({ window: ChatPlace, group_id: import_zod30.z.string().max(120), name: import_zod30.z.string().max(200) });
3008
+ var ChatParent = import_zod30.z.strictObject({ id: ChatId, how: import_zod30.z.enum(["spawned", "dispatched", "forked"]), title: import_zod30.z.string().max(1e3).nullable() });
3007
3009
  var ChatRow = import_zod30.z.strictObject({
3008
3010
  id: ChatId,
3009
3011
  /** The short id people see (the listing's first 8 characters). */
@@ -3045,7 +3047,15 @@ var ChatRow = import_zod30.z.strictObject({
3045
3047
  /** 1.14: the person's rename inside Matrx (Coding Sessions), applied once by the row builder; absent = none. */
3046
3048
  title_override: import_zod30.z.string().min(1).max(300).optional(),
3047
3049
  /** 1.15: the app itself archived it (hidden_in says where and why, in words for people; this is the typed fact). */
3048
- archived: import_zod30.z.boolean().optional()
3050
+ archived: import_zod30.z.boolean().optional(),
3051
+ /** 1.59: the coding session Matrx itself drives this chat in (the one chat, whether it runs in the app or in Matrx); absent = none. */
3052
+ session_id: import_zod30.z.string().max(80).optional(),
3053
+ /** 1.59: the app's own groups it is filed in, per instance, as the app keeps them (never merged into the person's projects). */
3054
+ app_groups: import_zod30.z.array(ChatAppGroup).max(200).optional(),
3055
+ /** 1.59: the chat it came from (nesting): an agent's chat that spawned it, dispatched it, or that it was forked from. */
3056
+ parent: ChatParent.optional(),
3057
+ /** 1.59: earlier sessions of this same chat (the app continued it under new session ids). */
3058
+ prior_sessions: import_zod30.z.array(ChatId).max(50).optional()
3049
3059
  });
3050
3060
  var ChatFamily = import_zod30.z.strictObject({
3051
3061
  id: ChatId,
@@ -3551,6 +3561,15 @@ var CopiedChat = import_zod31.z.strictObject({
3551
3561
  state: import_zod31.z.enum(["verified", "queued", "failed"]),
3552
3562
  reason: import_zod31.z.string().max(400).nullable()
3553
3563
  });
3564
+ var CopyReopened = import_zod31.z.strictObject({ window: ChatPlace, ok: import_zod31.z.boolean(), reason: import_zod31.z.string().max(400).nullable() });
3565
+ var CopyRestart = import_zod31.z.strictObject({
3566
+ asked: import_zod31.z.enum(["queued", "restart_verify"]),
3567
+ done: import_zod31.z.enum(["queued", "restart_verify"]),
3568
+ windows: import_zod31.z.array(ChatPlace).max(2),
3569
+ reason: import_zod31.z.string().max(400).nullable(),
3570
+ /** 1.60: each closed window's reopen outcome (absent from a 1.59 core, and when no window was closed): `ok: false` is a window that did not come back. */
3571
+ reopened: import_zod31.z.array(CopyReopened).max(2).optional()
3572
+ });
3554
3573
  var AppsChatsCopyToAccountResult = import_zod31.z.strictObject({
3555
3574
  message: import_zod31.z.string().max(400),
3556
3575
  origin: ChatPlace,
@@ -3566,7 +3585,7 @@ var AppsChatsCopyToAccountResult = import_zod31.z.strictObject({
3566
3585
  queued: import_zod31.z.number().int().nonnegative(),
3567
3586
  failed: import_zod31.z.number().int().nonnegative(),
3568
3587
  /** What the restart choice did: "restart_verify" closed and reopened `windows`; a fall back to "queued" says why. */
3569
- restart: import_zod31.z.strictObject({ asked: import_zod31.z.enum(["queued", "restart_verify"]), done: import_zod31.z.enum(["queued", "restart_verify"]), windows: import_zod31.z.array(ChatPlace).max(2), reason: import_zod31.z.string().max(400).nullable() })
3588
+ restart: CopyRestart
3570
3589
  });
3571
3590
 
3572
3591
  // src/schema/apps-instances.ts
@@ -4740,13 +4759,9 @@ var EVENTS = {
4740
4759
  };
4741
4760
 
4742
4761
  // src/versioning.ts
4743
- function compareVersions(a, b) {
4744
- const [am = 0, an = 0] = a.split(".").map(Number);
4745
- const [bm = 0, bn = 0] = b.split(".").map(Number);
4746
- return am - bm || an - bn;
4747
- }
4762
+ var import_versions = require("@ai-matrx/kit/versions");
4748
4763
  function knows(version, since) {
4749
- return compareVersions(version, since) >= 0;
4764
+ return (0, import_versions.compareVersions)(version, since) >= 0;
4750
4765
  }
4751
4766
  var RESULT_PATH = /* @__PURE__ */ new Map([
4752
4767
  ["fs.patch", "FsPatchResult"],
@@ -4775,6 +4790,8 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
4775
4790
  ["sysinfo.get", [["permissions", "SysinfoGetResult.permissions[]"]]],
4776
4791
  ["models.downloads.list", [["downloads", "DownloadRow"]]],
4777
4792
  ["apps.projects.to_window", [["group", "ProjectMoveGroup"]]],
4793
+ // 1.60: each closed window's reopen outcome in a restart_verify copy.
4794
+ ["apps.chats.copy_to_account", [["restart", "CopyRestart"]]],
4778
4795
  ["apps.windows.list", [["windows", "AppWindowInfo"]]],
4779
4796
  ["apps.windows.set_remote_control", [["remote_control", "WindowRemoteControl"]]],
4780
4797
  ["coding.providers", [["providers", "CodingProviderStatus"]]],