@astrasyncai/verification-gateway 4.4.0 → 4.5.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.
Files changed (75) hide show
  1. package/dist/adapters/express.js +14 -10
  2. package/dist/adapters/express.js.map +1 -1
  3. package/dist/adapters/express.mjs +14 -10
  4. package/dist/adapters/express.mjs.map +1 -1
  5. package/dist/adapters/mcp.js +12 -9
  6. package/dist/adapters/mcp.js.map +1 -1
  7. package/dist/adapters/mcp.mjs +12 -9
  8. package/dist/adapters/mcp.mjs.map +1 -1
  9. package/dist/adapters/nextjs.js +15 -11
  10. package/dist/adapters/nextjs.js.map +1 -1
  11. package/dist/adapters/nextjs.mjs +15 -11
  12. package/dist/adapters/nextjs.mjs.map +1 -1
  13. package/dist/adapters/sdk.js +10 -7
  14. package/dist/adapters/sdk.js.map +1 -1
  15. package/dist/adapters/sdk.mjs +10 -7
  16. package/dist/adapters/sdk.mjs.map +1 -1
  17. package/dist/agent/index.js +1 -1
  18. package/dist/agent/index.js.map +1 -1
  19. package/dist/agent/index.mjs +1 -1
  20. package/dist/agent/index.mjs.map +1 -1
  21. package/dist/bin/astrasync-claude-hook.js +10 -7
  22. package/dist/bin/astrasync-codex-hook.js +10 -7
  23. package/dist/bin/astrasync-guard.js +10 -7
  24. package/dist/bin/astrasync.js +10 -7
  25. package/dist/browser/background.js +10 -7
  26. package/dist/browser/background.js.map +1 -1
  27. package/dist/browser/background.mjs +10 -7
  28. package/dist/browser/background.mjs.map +1 -1
  29. package/dist/cli/index.js +1 -1
  30. package/dist/cli/index.js.map +1 -1
  31. package/dist/cli/index.mjs +1 -1
  32. package/dist/cli/index.mjs.map +1 -1
  33. package/dist/codex/index.js +10 -7
  34. package/dist/codex/index.js.map +1 -1
  35. package/dist/codex/index.mjs +10 -7
  36. package/dist/codex/index.mjs.map +1 -1
  37. package/dist/cursor/extension.js +10 -7
  38. package/dist/cursor/extension.js.map +1 -1
  39. package/dist/cursor/extension.mjs +10 -7
  40. package/dist/cursor/extension.mjs.map +1 -1
  41. package/dist/edge-config.d.mts +11 -4
  42. package/dist/edge-config.d.ts +11 -4
  43. package/dist/edge-config.js +1 -1
  44. package/dist/edge-config.js.map +1 -1
  45. package/dist/edge-config.mjs +1 -1
  46. package/dist/edge-config.mjs.map +1 -1
  47. package/dist/edge-core/index.d.mts +21 -7
  48. package/dist/edge-core/index.d.ts +21 -7
  49. package/dist/edge-core/index.js +75 -15
  50. package/dist/edge-core/index.js.map +1 -1
  51. package/dist/edge-core/index.mjs +75 -15
  52. package/dist/edge-core/index.mjs.map +1 -1
  53. package/dist/gateway/gateway.js +10 -7
  54. package/dist/gateway/gateway.js.map +1 -1
  55. package/dist/gateway/gateway.mjs +10 -7
  56. package/dist/gateway/gateway.mjs.map +1 -1
  57. package/dist/index.d.mts +2 -2
  58. package/dist/index.d.ts +2 -2
  59. package/dist/index.js +19 -15
  60. package/dist/index.js.map +1 -1
  61. package/dist/index.mjs +19 -15
  62. package/dist/index.mjs.map +1 -1
  63. package/dist/registration/index.js +1 -1
  64. package/dist/registration/index.js.map +1 -1
  65. package/dist/registration/index.mjs +1 -1
  66. package/dist/registration/index.mjs.map +1 -1
  67. package/dist/transport/index.js +1 -1
  68. package/dist/transport/index.js.map +1 -1
  69. package/dist/transport/index.mjs +1 -1
  70. package/dist/transport/index.mjs.map +1 -1
  71. package/dist/verify.js +10 -7
  72. package/dist/verify.js.map +1 -1
  73. package/dist/verify.mjs +10 -7
  74. package/dist/verify.mjs.map +1 -1
  75. package/package.json +2 -2
@@ -3700,7 +3700,7 @@ function getTrustLevel(score) {
3700
3700
  }
3701
3701
 
3702
3702
  // src/version.ts
3703
- var SDK_VERSION = "4.4.0";
3703
+ var SDK_VERSION = "4.5.0";
3704
3704
 
3705
3705
  // src/http.ts
3706
3706
  var SDK_USER_AGENT = `astrasync-sdk/${SDK_VERSION}`;
@@ -4157,12 +4157,15 @@ async function verify(config, request, options) {
4157
4157
  const verificationContext = apiResponse.verificationContext;
4158
4158
  const accessLevel = apiResponse.access?.accessLevel ?? "standard";
4159
4159
  const result = {
4160
- // Round-18 G4: backend allowed access. Identity is verified (we resolved
4161
- // the caller to an agent) and policy passed all gates. Read idVerified
4162
- // from verificationContext for symmetry with the deny branch; default true
4163
- // on success path since `access.allowed === true` implies identity was
4164
- // resolvable (anonymous-allow paths flow through createGuidanceResponse).
4165
- identityVerified: apiResponse.verificationContext?.idVerified !== false,
4160
+ // 4.5.0 (probe F1): read idVerified from verificationContext with the
4161
+ // SAME absent⇒false default as the deny branch. The previous `!== false`
4162
+ // default manufactured `identityVerified: true` for anonymous
4163
+ // allow_full/allow_partial/audit responses (which allow access but omit
4164
+ // verificationContext entirely) — the "anonymous caller labelled
4165
+ // verified" defect. Every authenticated success response has carried
4166
+ // `verificationContext.idVerified: true` since v2.2.4, so a truth claim
4167
+ // this load-bearing must never be defaulted on.
4168
+ identityVerified: apiResponse.verificationContext?.idVerified === true,
4166
4169
  policyAllowed: true,
4167
4170
  accessLevel,
4168
4171
  agent,
@@ -3678,7 +3678,7 @@ Policy saved to ${outputPath}`);
3678
3678
  };
3679
3679
 
3680
3680
  // src/version.ts
3681
- var SDK_VERSION = "4.4.0";
3681
+ var SDK_VERSION = "4.5.0";
3682
3682
 
3683
3683
  // src/http.ts
3684
3684
  var SDK_USER_AGENT = `astrasync-sdk/${SDK_VERSION}`;
@@ -5066,12 +5066,15 @@ async function verify(config, request2, options) {
5066
5066
  const verificationContext = apiResponse.verificationContext;
5067
5067
  const accessLevel = apiResponse.access?.accessLevel ?? "standard";
5068
5068
  const result = {
5069
- // Round-18 G4: backend allowed access. Identity is verified (we resolved
5070
- // the caller to an agent) and policy passed all gates. Read idVerified
5071
- // from verificationContext for symmetry with the deny branch; default true
5072
- // on success path since `access.allowed === true` implies identity was
5073
- // resolvable (anonymous-allow paths flow through createGuidanceResponse).
5074
- identityVerified: apiResponse.verificationContext?.idVerified !== false,
5069
+ // 4.5.0 (probe F1): read idVerified from verificationContext with the
5070
+ // SAME absent⇒false default as the deny branch. The previous `!== false`
5071
+ // default manufactured `identityVerified: true` for anonymous
5072
+ // allow_full/allow_partial/audit responses (which allow access but omit
5073
+ // verificationContext entirely) — the "anonymous caller labelled
5074
+ // verified" defect. Every authenticated success response has carried
5075
+ // `verificationContext.idVerified: true` since v2.2.4, so a truth claim
5076
+ // this load-bearing must never be defaulted on.
5077
+ identityVerified: apiResponse.verificationContext?.idVerified === true,
5075
5078
  policyAllowed: true,
5076
5079
  accessLevel,
5077
5080
  agent,
@@ -31,7 +31,7 @@ var SDK_VERSION;
31
31
  var init_version = __esm({
32
32
  "src/version.ts"() {
33
33
  "use strict";
34
- SDK_VERSION = "4.4.0";
34
+ SDK_VERSION = "4.5.0";
35
35
  }
36
36
  });
37
37
 
@@ -5457,12 +5457,15 @@ async function verify(config, request2, options) {
5457
5457
  const verificationContext = apiResponse.verificationContext;
5458
5458
  const accessLevel = apiResponse.access?.accessLevel ?? "standard";
5459
5459
  const result = {
5460
- // Round-18 G4: backend allowed access. Identity is verified (we resolved
5461
- // the caller to an agent) and policy passed all gates. Read idVerified
5462
- // from verificationContext for symmetry with the deny branch; default true
5463
- // on success path since `access.allowed === true` implies identity was
5464
- // resolvable (anonymous-allow paths flow through createGuidanceResponse).
5465
- identityVerified: apiResponse.verificationContext?.idVerified !== false,
5460
+ // 4.5.0 (probe F1): read idVerified from verificationContext with the
5461
+ // SAME absent⇒false default as the deny branch. The previous `!== false`
5462
+ // default manufactured `identityVerified: true` for anonymous
5463
+ // allow_full/allow_partial/audit responses (which allow access but omit
5464
+ // verificationContext entirely) — the "anonymous caller labelled
5465
+ // verified" defect. Every authenticated success response has carried
5466
+ // `verificationContext.idVerified: true` since v2.2.4, so a truth claim
5467
+ // this load-bearing must never be defaulted on.
5468
+ identityVerified: apiResponse.verificationContext?.idVerified === true,
5466
5469
  policyAllowed: true,
5467
5470
  accessLevel,
5468
5471
  agent,
@@ -3938,7 +3938,7 @@ function getTrustLevel(score) {
3938
3938
  }
3939
3939
 
3940
3940
  // src/version.ts
3941
- var SDK_VERSION = "4.4.0";
3941
+ var SDK_VERSION = "4.5.0";
3942
3942
 
3943
3943
  // src/http.ts
3944
3944
  var SDK_USER_AGENT = `astrasync-sdk/${SDK_VERSION}`;
@@ -4395,12 +4395,15 @@ async function verify(config, request, options) {
4395
4395
  const verificationContext = apiResponse.verificationContext;
4396
4396
  const accessLevel = apiResponse.access?.accessLevel ?? "standard";
4397
4397
  const result = {
4398
- // Round-18 G4: backend allowed access. Identity is verified (we resolved
4399
- // the caller to an agent) and policy passed all gates. Read idVerified
4400
- // from verificationContext for symmetry with the deny branch; default true
4401
- // on success path since `access.allowed === true` implies identity was
4402
- // resolvable (anonymous-allow paths flow through createGuidanceResponse).
4403
- identityVerified: apiResponse.verificationContext?.idVerified !== false,
4398
+ // 4.5.0 (probe F1): read idVerified from verificationContext with the
4399
+ // SAME absent⇒false default as the deny branch. The previous `!== false`
4400
+ // default manufactured `identityVerified: true` for anonymous
4401
+ // allow_full/allow_partial/audit responses (which allow access but omit
4402
+ // verificationContext entirely) — the "anonymous caller labelled
4403
+ // verified" defect. Every authenticated success response has carried
4404
+ // `verificationContext.idVerified: true` since v2.2.4, so a truth claim
4405
+ // this load-bearing must never be defaulted on.
4406
+ identityVerified: apiResponse.verificationContext?.idVerified === true,
4404
4407
  policyAllowed: true,
4405
4408
  accessLevel,
4406
4409
  agent,