@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/index.js CHANGED
@@ -1,12 +1,13 @@
1
1
  // src/schema/primitives.ts
2
2
  import { z } from "zod";
3
+ import { UUID_SHAPE_PATTERN } from "@ai-matrx/kit/uuid";
3
4
  var PROTOCOL_MAJOR = 1;
4
5
  var PROTOCOL_MINOR = 17;
5
6
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
6
7
  var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
7
8
  var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
8
9
  var ResourceId = z.string().regex(/^(pty|watch)_[A-Za-z0-9]{16,40}$/);
9
- 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}$/);
10
+ var DeviceId = z.string().regex(UUID_SHAPE_PATTERN);
10
11
  var AbsPath = z.string().min(1).max(4096).regex(/^(\/|[A-Za-z]:\/)[^\\\u0000]*$/);
11
12
  var u32 = z.int().min(0).max(4294967295);
12
13
  var nonNegInt = z.int().min(0);
@@ -801,8 +802,9 @@ var ModelsProgressEvent = z10.strictObject({ request_id: RequestId, progress: Ml
801
802
 
802
803
  // src/schema/apps.ts
803
804
  import { z as z11 } from "zod";
805
+ import { UUID_SHAPE_PATTERN as UUID_SHAPE_PATTERN2 } from "@ai-matrx/kit/uuid";
804
806
  var AppKey = z11.string().regex(/^[a-z][a-z0-9_-]{0,39}$/);
805
- var AppProfileId = z11.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}$/);
807
+ var AppProfileId = z11.string().regex(UUID_SHAPE_PATTERN2);
806
808
  var AppProfileLocator = z11.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}$/);
807
809
  var AppSupport = z11.enum(["supported", "partial", "unsupported"]);
808
810
  var AppFeatureStatus = z11.strictObject({
@@ -1968,9 +1970,10 @@ var ExecJobListResult = z27.strictObject({ jobs: z27.array(ExecJobInfo).max(64)
1968
1970
 
1969
1971
  // src/schema/coding.ts
1970
1972
  import { z as z28 } from "zod";
1973
+ import { UUID_SHAPE_PATTERN as UUID_SHAPE_PATTERN3 } from "@ai-matrx/kit/uuid";
1971
1974
  var CodingServiceCredentials = z28.strictObject({
1972
1975
  access_token: z28.string().min(16).max(16384),
1973
- user_id: z28.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}$/),
1976
+ user_id: z28.string().regex(UUID_SHAPE_PATTERN3),
1974
1977
  /** The AI Matrx server this app talks to (production, or a local server on the nightly copy). */
1975
1978
  server_url: z28.string().min(1).max(2048).regex(/^https?:\/\/[^\s/?#]+(\/[^\s?#]*)?$/)
1976
1979
  });