@ai-matrx/desktop-protocol 0.4.0 → 0.6.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.
@@ -833,7 +833,7 @@ declare const OPS: {
833
833
  applied: z.ZodInt;
834
834
  size: z.ZodInt;
835
835
  mtime_ms: z.ZodInt;
836
- edits_applied: z.ZodArray<z.ZodObject<{
836
+ edits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
837
837
  edit_index: z.ZodInt;
838
838
  mode: z.ZodEnum<{
839
839
  replace_all: "replace_all";
@@ -841,11 +841,11 @@ declare const OPS: {
841
841
  replace: "replace";
842
842
  }>;
843
843
  matches_replaced: z.ZodOptional<z.ZodInt>;
844
- }, z.core.$strict>>;
845
- edits_failed: z.ZodArray<z.ZodObject<{
844
+ }, z.core.$strict>>>;
845
+ edits_failed: z.ZodOptional<z.ZodArray<z.ZodObject<{
846
846
  edit_index: z.ZodInt;
847
847
  reason: z.ZodString;
848
- }, z.core.$strict>>;
848
+ }, z.core.$strict>>>;
849
849
  }, z.core.$strict>;
850
850
  readonly kind: "unary";
851
851
  readonly since: "1.0";
@@ -1247,7 +1247,7 @@ declare const EVENTS: {
1247
1247
  }, z.core.$strict>;
1248
1248
  readonly "relay.device_status": z.ZodObject<{
1249
1249
  online: z.ZodBoolean;
1250
- since_ms: z.ZodInt;
1250
+ since_ms: z.ZodNullable<z.ZodInt>;
1251
1251
  app_version: z.ZodNullable<z.ZodString>;
1252
1252
  protocol_version: z.ZodNullable<z.ZodString>;
1253
1253
  }, z.core.$strict>;
@@ -1964,7 +1964,7 @@ declare const NAMED_SCHEMAS: {
1964
1964
  applied: z.ZodInt;
1965
1965
  size: z.ZodInt;
1966
1966
  mtime_ms: z.ZodInt;
1967
- edits_applied: z.ZodArray<z.ZodObject<{
1967
+ edits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
1968
1968
  edit_index: z.ZodInt;
1969
1969
  mode: z.ZodEnum<{
1970
1970
  replace_all: "replace_all";
@@ -1972,11 +1972,11 @@ declare const NAMED_SCHEMAS: {
1972
1972
  replace: "replace";
1973
1973
  }>;
1974
1974
  matches_replaced: z.ZodOptional<z.ZodInt>;
1975
- }, z.core.$strict>>;
1976
- edits_failed: z.ZodArray<z.ZodObject<{
1975
+ }, z.core.$strict>>>;
1976
+ edits_failed: z.ZodOptional<z.ZodArray<z.ZodObject<{
1977
1977
  edit_index: z.ZodInt;
1978
1978
  reason: z.ZodString;
1979
- }, z.core.$strict>>;
1979
+ }, z.core.$strict>>>;
1980
1980
  }, z.core.$strict>;
1981
1981
  readonly FsSearchPathsParams: z.ZodObject<{
1982
1982
  pattern: z.ZodString;
@@ -2331,7 +2331,7 @@ declare const NAMED_SCHEMAS: {
2331
2331
  }, z.core.$strict>;
2332
2332
  readonly RelayDeviceStatusEvent: z.ZodObject<{
2333
2333
  online: z.ZodBoolean;
2334
- since_ms: z.ZodInt;
2334
+ since_ms: z.ZodNullable<z.ZodInt>;
2335
2335
  app_version: z.ZodNullable<z.ZodString>;
2336
2336
  protocol_version: z.ZodNullable<z.ZodString>;
2337
2337
  }, z.core.$strict>;
@@ -2347,6 +2347,7 @@ declare const NAMED_SCHEMAS: {
2347
2347
  readonly RelayCallResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
2348
2348
  ok: z.ZodLiteral<true>;
2349
2349
  result: z.ZodUnknown;
2350
+ protocol_version: z.ZodOptional<z.ZodString>;
2350
2351
  }, z.core.$strict>, z.ZodObject<{
2351
2352
  ok: z.ZodLiteral<false>;
2352
2353
  error: z.ZodObject<{
@@ -2408,6 +2409,7 @@ declare const NAMED_SCHEMAS: {
2408
2409
  }, z.core.$strict>>;
2409
2410
  }, z.core.$strict>>;
2410
2411
  }, z.core.$strict>;
2412
+ protocol_version: z.ZodOptional<z.ZodString>;
2411
2413
  }, z.core.$strict>], "ok">;
2412
2414
  readonly RelayCallHello: z.ZodObject<{
2413
2415
  type: z.ZodLiteral<"hello">;
@@ -833,7 +833,7 @@ declare const OPS: {
833
833
  applied: z.ZodInt;
834
834
  size: z.ZodInt;
835
835
  mtime_ms: z.ZodInt;
836
- edits_applied: z.ZodArray<z.ZodObject<{
836
+ edits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
837
837
  edit_index: z.ZodInt;
838
838
  mode: z.ZodEnum<{
839
839
  replace_all: "replace_all";
@@ -841,11 +841,11 @@ declare const OPS: {
841
841
  replace: "replace";
842
842
  }>;
843
843
  matches_replaced: z.ZodOptional<z.ZodInt>;
844
- }, z.core.$strict>>;
845
- edits_failed: z.ZodArray<z.ZodObject<{
844
+ }, z.core.$strict>>>;
845
+ edits_failed: z.ZodOptional<z.ZodArray<z.ZodObject<{
846
846
  edit_index: z.ZodInt;
847
847
  reason: z.ZodString;
848
- }, z.core.$strict>>;
848
+ }, z.core.$strict>>>;
849
849
  }, z.core.$strict>;
850
850
  readonly kind: "unary";
851
851
  readonly since: "1.0";
@@ -1247,7 +1247,7 @@ declare const EVENTS: {
1247
1247
  }, z.core.$strict>;
1248
1248
  readonly "relay.device_status": z.ZodObject<{
1249
1249
  online: z.ZodBoolean;
1250
- since_ms: z.ZodInt;
1250
+ since_ms: z.ZodNullable<z.ZodInt>;
1251
1251
  app_version: z.ZodNullable<z.ZodString>;
1252
1252
  protocol_version: z.ZodNullable<z.ZodString>;
1253
1253
  }, z.core.$strict>;
@@ -1964,7 +1964,7 @@ declare const NAMED_SCHEMAS: {
1964
1964
  applied: z.ZodInt;
1965
1965
  size: z.ZodInt;
1966
1966
  mtime_ms: z.ZodInt;
1967
- edits_applied: z.ZodArray<z.ZodObject<{
1967
+ edits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
1968
1968
  edit_index: z.ZodInt;
1969
1969
  mode: z.ZodEnum<{
1970
1970
  replace_all: "replace_all";
@@ -1972,11 +1972,11 @@ declare const NAMED_SCHEMAS: {
1972
1972
  replace: "replace";
1973
1973
  }>;
1974
1974
  matches_replaced: z.ZodOptional<z.ZodInt>;
1975
- }, z.core.$strict>>;
1976
- edits_failed: z.ZodArray<z.ZodObject<{
1975
+ }, z.core.$strict>>>;
1976
+ edits_failed: z.ZodOptional<z.ZodArray<z.ZodObject<{
1977
1977
  edit_index: z.ZodInt;
1978
1978
  reason: z.ZodString;
1979
- }, z.core.$strict>>;
1979
+ }, z.core.$strict>>>;
1980
1980
  }, z.core.$strict>;
1981
1981
  readonly FsSearchPathsParams: z.ZodObject<{
1982
1982
  pattern: z.ZodString;
@@ -2331,7 +2331,7 @@ declare const NAMED_SCHEMAS: {
2331
2331
  }, z.core.$strict>;
2332
2332
  readonly RelayDeviceStatusEvent: z.ZodObject<{
2333
2333
  online: z.ZodBoolean;
2334
- since_ms: z.ZodInt;
2334
+ since_ms: z.ZodNullable<z.ZodInt>;
2335
2335
  app_version: z.ZodNullable<z.ZodString>;
2336
2336
  protocol_version: z.ZodNullable<z.ZodString>;
2337
2337
  }, z.core.$strict>;
@@ -2347,6 +2347,7 @@ declare const NAMED_SCHEMAS: {
2347
2347
  readonly RelayCallResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
2348
2348
  ok: z.ZodLiteral<true>;
2349
2349
  result: z.ZodUnknown;
2350
+ protocol_version: z.ZodOptional<z.ZodString>;
2350
2351
  }, z.core.$strict>, z.ZodObject<{
2351
2352
  ok: z.ZodLiteral<false>;
2352
2353
  error: z.ZodObject<{
@@ -2408,6 +2409,7 @@ declare const NAMED_SCHEMAS: {
2408
2409
  }, z.core.$strict>>;
2409
2410
  }, z.core.$strict>>;
2410
2411
  }, z.core.$strict>;
2412
+ protocol_version: z.ZodOptional<z.ZodString>;
2411
2413
  }, z.core.$strict>], "ok">;
2412
2414
  readonly RelayCallHello: z.ZodObject<{
2413
2415
  type: z.ZodLiteral<"hello">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/desktop-protocol",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "The one wire contract between Matrx 2 (the desktop app) and every client that drives it — phone, web app, extension, server: zod schemas for the envelope and every cap.op, the 16-byte binary frame codec, a reconnecting request/stream/credit/reattach client, React hooks, and a generated JSON Schema + Pydantic twin that CI keeps byte-identical.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",