@lucern/sdk 0.3.0-alpha.16 → 0.3.0-alpha.17

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
@@ -1935,7 +1935,7 @@ function normalizeCanonicalPrincipalIdentity(input, options = {}) {
1935
1935
  })) {
1936
1936
  throw new LucernAccessControlError(
1937
1937
  "clerk_alias_unrecognized",
1938
- "Observed Clerk user id is not attached to the canonical Lucern principal."
1938
+ "Observed Clerk user id does not match the canonical human principal id."
1939
1939
  );
1940
1940
  }
1941
1941
  return {
@@ -7528,7 +7528,7 @@ function createToolRegistryClient(config = {}) {
7528
7528
  }
7529
7529
 
7530
7530
  // src/version.ts
7531
- var LUCERN_SDK_VERSION = "0.3.0-alpha.16";
7531
+ var LUCERN_SDK_VERSION = "0.3.0-alpha.17";
7532
7532
 
7533
7533
  // src/workflowClient.ts
7534
7534
  function normalizeLensQuery(value) {
@@ -11222,7 +11222,7 @@ var SESSION_LIFECYCLE_STATUSES = [
11222
11222
  "revoked"
11223
11223
  ];
11224
11224
  function inferSessionPrincipalType(principalId) {
11225
- if (principalId.startsWith("user:")) {
11225
+ if (/^user_[A-Za-z0-9]+$/.test(principalId)) {
11226
11226
  return "human";
11227
11227
  }
11228
11228
  if (principalId.startsWith("agent:")) {