@ai-matrx/desktop-protocol 0.17.13 → 0.18.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/dist/client.js CHANGED
@@ -110,13 +110,14 @@ import { z as z2 } from "zod";
110
110
 
111
111
  // src/schema/primitives.ts
112
112
  import { z } from "zod";
113
+ import { UUID_SHAPE_PATTERN } from "@ai-matrx/kit/uuid";
113
114
  var PROTOCOL_MAJOR = 1;
114
115
  var PROTOCOL_MINOR = 17;
115
116
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
116
117
  var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
117
118
  var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
118
119
  var ResourceId = z.string().regex(/^(pty|watch)_[A-Za-z0-9]{16,40}$/);
119
- var DeviceId = z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/);
120
+ var DeviceId = z.string().regex(UUID_SHAPE_PATTERN);
120
121
  var AbsPath = z.string().min(1).max(4096).regex(/^(\/|[A-Za-z]:\/)[^\\\u0000]*$/);
121
122
  var u32 = z.int().min(0).max(4294967295);
122
123
  var nonNegInt = z.int().min(0);
@@ -1435,9 +1436,10 @@ var ExecJobListResult = z22.strictObject({ jobs: z22.array(ExecJobInfo).max(64)
1435
1436
 
1436
1437
  // src/schema/coding.ts
1437
1438
  import { z as z23 } from "zod";
1439
+ import { UUID_SHAPE_PATTERN as UUID_SHAPE_PATTERN2 } from "@ai-matrx/kit/uuid";
1438
1440
  var CodingServiceCredentials = z23.strictObject({
1439
1441
  access_token: z23.string().min(16).max(16384),
1440
- user_id: z23.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
1442
+ user_id: z23.string().regex(UUID_SHAPE_PATTERN2),
1441
1443
  /** The AI Matrx server this app talks to (production, or a local server on the nightly copy). */
1442
1444
  server_url: z23.string().min(1).max(2048).regex(/^https?:\/\/[^\s/?#]+(\/[^\s?#]*)?$/)
1443
1445
  });
@@ -1510,8 +1512,9 @@ var CodingHistoryProgressEvent = z23.strictObject({
1510
1512
 
1511
1513
  // src/schema/apps.ts
1512
1514
  import { z as z24 } from "zod";
1515
+ import { UUID_SHAPE_PATTERN as UUID_SHAPE_PATTERN3 } from "@ai-matrx/kit/uuid";
1513
1516
  var AppKey = z24.string().regex(/^[a-z][a-z0-9_-]{0,39}$/);
1514
- var AppProfileId = z24.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/);
1517
+ var AppProfileId = z24.string().regex(UUID_SHAPE_PATTERN3);
1515
1518
  var AppProfileLocator = z24.string().min(1).max(512).regex(/^[A-Za-z0-9 _()+@,-][A-Za-z0-9 ._()+@,-]{0,127}(\/[A-Za-z0-9 _()+@,-][A-Za-z0-9 ._()+@,-]{0,127}){0,7}$/);
1516
1519
  var AppSupport = z24.enum(["supported", "partial", "unsupported"]);
1517
1520
  var AppFeatureStatus = z24.strictObject({