@ai-matrx/agents 0.19.1 → 0.19.2

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.
@@ -72,6 +72,7 @@ import { isNetError as isNetError2 } from "@ai-matrx/data";
72
72
  import { credentialToHeaders } from "@ai-matrx/data";
73
73
 
74
74
  // matrx/org-context.ts
75
+ import { isUuidShape } from "@ai-matrx/kit/uuid";
75
76
  var OrganizationContextError = class extends Error {
76
77
  code;
77
78
  constructor(code, message) {
@@ -80,7 +81,6 @@ var OrganizationContextError = class extends Error {
80
81
  this.code = code;
81
82
  }
82
83
  };
83
- var UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
84
84
  function createOrganizationOperation(organizationId) {
85
85
  const organization_id = requireOrganizationContext(organizationId);
86
86
  return Object.freeze({ organization_id });
@@ -102,7 +102,7 @@ function requireOrganizationContext(selectedOrganizationId, overrideOrganization
102
102
  );
103
103
  }
104
104
  const normalized = candidate.trim();
105
- if (!UUID_PATTERN.test(normalized)) {
105
+ if (!isUuidShape(normalized)) {
106
106
  throw new OrganizationContextError(
107
107
  "organization_context_invalid",
108
108
  "The selected organization ID is invalid."