@astrasyncai/verification-gateway 5.21.1 → 5.21.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.
Files changed (78) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/adapters/express.js +18 -1
  3. package/dist/adapters/express.js.map +1 -1
  4. package/dist/adapters/express.mjs +18 -1
  5. package/dist/adapters/express.mjs.map +1 -1
  6. package/dist/adapters/mcp.js +1 -1
  7. package/dist/adapters/mcp.js.map +1 -1
  8. package/dist/adapters/mcp.mjs +1 -1
  9. package/dist/adapters/mcp.mjs.map +1 -1
  10. package/dist/adapters/nextjs.js +18 -1
  11. package/dist/adapters/nextjs.js.map +1 -1
  12. package/dist/adapters/nextjs.mjs +18 -1
  13. package/dist/adapters/nextjs.mjs.map +1 -1
  14. package/dist/adapters/sdk.js +1 -1
  15. package/dist/adapters/sdk.js.map +1 -1
  16. package/dist/adapters/sdk.mjs +1 -1
  17. package/dist/adapters/sdk.mjs.map +1 -1
  18. package/dist/agent/index.js +1 -1
  19. package/dist/agent/index.js.map +1 -1
  20. package/dist/agent/index.mjs +1 -1
  21. package/dist/agent/index.mjs.map +1 -1
  22. package/dist/bin/astrasync-claude-hook.js +1 -1
  23. package/dist/bin/astrasync-codex-hook.js +1 -1
  24. package/dist/bin/astrasync-guard.js +1 -1
  25. package/dist/bin/astrasync.js +1 -1
  26. package/dist/browser/background.js +1 -1
  27. package/dist/browser/background.js.map +1 -1
  28. package/dist/browser/background.mjs +1 -1
  29. package/dist/browser/background.mjs.map +1 -1
  30. package/dist/cli/index.js +1 -1
  31. package/dist/cli/index.js.map +1 -1
  32. package/dist/cli/index.mjs +1 -1
  33. package/dist/cli/index.mjs.map +1 -1
  34. package/dist/codex/index.js +1 -1
  35. package/dist/codex/index.js.map +1 -1
  36. package/dist/codex/index.mjs +1 -1
  37. package/dist/codex/index.mjs.map +1 -1
  38. package/dist/cursor/extension.js +1 -1
  39. package/dist/cursor/extension.js.map +1 -1
  40. package/dist/cursor/extension.mjs +1 -1
  41. package/dist/cursor/extension.mjs.map +1 -1
  42. package/dist/edge-config.js +1 -1
  43. package/dist/edge-config.js.map +1 -1
  44. package/dist/edge-config.mjs +1 -1
  45. package/dist/edge-config.mjs.map +1 -1
  46. package/dist/edge-core/index.js +18 -1
  47. package/dist/edge-core/index.js.map +1 -1
  48. package/dist/edge-core/index.mjs +18 -1
  49. package/dist/edge-core/index.mjs.map +1 -1
  50. package/dist/gateway/gateway.js +1 -1
  51. package/dist/gateway/gateway.js.map +1 -1
  52. package/dist/gateway/gateway.mjs +1 -1
  53. package/dist/gateway/gateway.mjs.map +1 -1
  54. package/dist/index.d.mts +9 -3
  55. package/dist/index.d.ts +9 -3
  56. package/dist/index.js +18 -1
  57. package/dist/index.js.map +1 -1
  58. package/dist/index.mjs +18 -1
  59. package/dist/index.mjs.map +1 -1
  60. package/dist/platform-signatures.d.mts +7 -1
  61. package/dist/platform-signatures.d.ts +7 -1
  62. package/dist/platform-signatures.js +17 -0
  63. package/dist/platform-signatures.js.map +1 -1
  64. package/dist/platform-signatures.mjs +17 -0
  65. package/dist/platform-signatures.mjs.map +1 -1
  66. package/dist/registration/index.js +1 -1
  67. package/dist/registration/index.js.map +1 -1
  68. package/dist/registration/index.mjs +1 -1
  69. package/dist/registration/index.mjs.map +1 -1
  70. package/dist/transport/index.js +1 -1
  71. package/dist/transport/index.js.map +1 -1
  72. package/dist/transport/index.mjs +1 -1
  73. package/dist/transport/index.mjs.map +1 -1
  74. package/dist/verify.js +1 -1
  75. package/dist/verify.js.map +1 -1
  76. package/dist/verify.mjs +1 -1
  77. package/dist/verify.mjs.map +1 -1
  78. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -5322,7 +5322,7 @@ declare function _resetEdgeConfigCache(): void;
5322
5322
  * Pure regex — no Node built-ins, edge-safe. Detection is regex-only for
5323
5323
  * v2.9 — TLS fingerprinting / behavioural signatures are deferred.
5324
5324
  */
5325
- type PlatformAgentVendor = 'claude' | 'chatgpt' | 'gemini' | 'cursor' | 'goose' | 'perplexity' | 'chatgpt-atlas' | 'perplexity-comet' | 'astrasync-bridge' | 'astrasync-sdk' | 'unknown';
5325
+ type PlatformAgentVendor = 'claude' | 'chatgpt' | 'gemini' | 'cursor' | 'goose' | 'perplexity' | 'grok' | 'meta-ai' | 'chatgpt-atlas' | 'perplexity-comet' | 'astrasync-bridge' | 'astrasync-sdk' | 'unknown';
5326
5326
  interface PlatformFingerprint {
5327
5327
  vendor: PlatformAgentVendor;
5328
5328
  /** A stable identifier used as the orphan-agent dedup key. */
@@ -5402,6 +5402,12 @@ interface DynamicPlatformFingerprint {
5402
5402
  * Patterns are intentionally permissive (case-insensitive substring match) since
5403
5403
  * platform UA strings drift between versions. False positives are tolerable —
5404
5404
  * the orphan record is informational, not enforcement.
5405
+ *
5406
+ * NOT detectable here, by design (Oct 2026): Meta's Muse and OpenAI's Dots
5407
+ * publish no user agent and browse through real Chromium sessions that are
5408
+ * indistinguishable from a person's. There is no signature to find — don't
5409
+ * chase one. Verified identity (an ASTRA-id the agent presents) is the only
5410
+ * durable way to know such an agent is there; that is the product's point.
5405
5411
  */
5406
5412
  declare const PLATFORM_AGENT_SIGNATURES: ReadonlyArray<PlatformSignatureDef<PlatformAgentVendor>>;
5407
5413
  /**
@@ -5466,7 +5472,7 @@ declare function detectRuntime(userAgent: string | undefined | null): string | u
5466
5472
  * silently (never throwing), so this is a no-op there — which is correct:
5467
5473
  * in a browser the page's real UA is the honest identity.
5468
5474
  */
5469
- declare const SDK_USER_AGENT = "astrasync-sdk/5.21.1";
5475
+ declare const SDK_USER_AGENT = "astrasync-sdk/5.21.2";
5470
5476
  declare const sdkFetch: typeof fetch;
5471
5477
 
5472
5478
  interface LocalPolicy {
@@ -5584,7 +5590,7 @@ declare function parseYaml(yamlContent: string): ParseResult;
5584
5590
  * is fine — bumping both in the release-ceremony commit keeps them
5585
5591
  * lockstep.
5586
5592
  */
5587
- declare const SDK_VERSION = "5.21.1";
5593
+ declare const SDK_VERSION = "5.21.2";
5588
5594
 
5589
5595
  /**
5590
5596
  * 5.15.0 — the `UCP-Agent` request header (UCP 2026-08-25): an RFC 8941
package/dist/index.d.ts CHANGED
@@ -5322,7 +5322,7 @@ declare function _resetEdgeConfigCache(): void;
5322
5322
  * Pure regex — no Node built-ins, edge-safe. Detection is regex-only for
5323
5323
  * v2.9 — TLS fingerprinting / behavioural signatures are deferred.
5324
5324
  */
5325
- type PlatformAgentVendor = 'claude' | 'chatgpt' | 'gemini' | 'cursor' | 'goose' | 'perplexity' | 'chatgpt-atlas' | 'perplexity-comet' | 'astrasync-bridge' | 'astrasync-sdk' | 'unknown';
5325
+ type PlatformAgentVendor = 'claude' | 'chatgpt' | 'gemini' | 'cursor' | 'goose' | 'perplexity' | 'grok' | 'meta-ai' | 'chatgpt-atlas' | 'perplexity-comet' | 'astrasync-bridge' | 'astrasync-sdk' | 'unknown';
5326
5326
  interface PlatformFingerprint {
5327
5327
  vendor: PlatformAgentVendor;
5328
5328
  /** A stable identifier used as the orphan-agent dedup key. */
@@ -5402,6 +5402,12 @@ interface DynamicPlatformFingerprint {
5402
5402
  * Patterns are intentionally permissive (case-insensitive substring match) since
5403
5403
  * platform UA strings drift between versions. False positives are tolerable —
5404
5404
  * the orphan record is informational, not enforcement.
5405
+ *
5406
+ * NOT detectable here, by design (Oct 2026): Meta's Muse and OpenAI's Dots
5407
+ * publish no user agent and browse through real Chromium sessions that are
5408
+ * indistinguishable from a person's. There is no signature to find — don't
5409
+ * chase one. Verified identity (an ASTRA-id the agent presents) is the only
5410
+ * durable way to know such an agent is there; that is the product's point.
5405
5411
  */
5406
5412
  declare const PLATFORM_AGENT_SIGNATURES: ReadonlyArray<PlatformSignatureDef<PlatformAgentVendor>>;
5407
5413
  /**
@@ -5466,7 +5472,7 @@ declare function detectRuntime(userAgent: string | undefined | null): string | u
5466
5472
  * silently (never throwing), so this is a no-op there — which is correct:
5467
5473
  * in a browser the page's real UA is the honest identity.
5468
5474
  */
5469
- declare const SDK_USER_AGENT = "astrasync-sdk/5.21.1";
5475
+ declare const SDK_USER_AGENT = "astrasync-sdk/5.21.2";
5470
5476
  declare const sdkFetch: typeof fetch;
5471
5477
 
5472
5478
  interface LocalPolicy {
@@ -5584,7 +5590,7 @@ declare function parseYaml(yamlContent: string): ParseResult;
5584
5590
  * is fine — bumping both in the release-ceremony commit keeps them
5585
5591
  * lockstep.
5586
5592
  */
5587
- declare const SDK_VERSION = "5.21.1";
5593
+ declare const SDK_VERSION = "5.21.2";
5588
5594
 
5589
5595
  /**
5590
5596
  * 5.15.0 — the `UCP-Agent` request header (UCP 2026-08-25): an RFC 8941
package/dist/index.js CHANGED
@@ -229,7 +229,7 @@ function getTrustLevel(score) {
229
229
  }
230
230
 
231
231
  // src/version.ts
232
- var SDK_VERSION = "5.21.1";
232
+ var SDK_VERSION = "5.21.2";
233
233
 
234
234
  // src/http.ts
235
235
  var SDK_USER_AGENT = `astrasync-sdk/${SDK_VERSION}`;
@@ -2337,6 +2337,23 @@ var PLATFORM_AGENT_SIGNATURES = [
2337
2337
  agentCardPatterns: [/perplexity\.ai/i],
2338
2338
  apiKeyFormatPatterns: [/^pplx-/i]
2339
2339
  },
2340
+ // Round 30.1: xAI's documented crawlers (GrokBot/1.0, xAI-Grok/1.0,
2341
+ // Grok-DeepSearch/1.0). Anchored, versioned tokens — never in a stock UA.
2342
+ {
2343
+ vendor: "grok",
2344
+ displayName: "xAI Grok",
2345
+ uaPatterns: [/\bGrokBot\//i, /\bxAI-Grok\//i, /\bGrok-DeepSearch\//i],
2346
+ agentCardPatterns: [/\bx\.ai\b/i, /grok\.com/i],
2347
+ apiKeyFormatPatterns: [/^xai-/i]
2348
+ },
2349
+ // Round 30.1: Meta AI's index and fetch crawlers. facebookexternalhit
2350
+ // (link previews) is deliberately NOT here — it stays a generic crawler.
2351
+ {
2352
+ vendor: "meta-ai",
2353
+ displayName: "Meta AI",
2354
+ uaPatterns: [/\bMeta-WebIndexer\b/i, /\bMeta-ExternalFetcher\b/i],
2355
+ agentCardPatterns: [/meta\.ai/i]
2356
+ },
2340
2357
  // Agentic browsers — versioned-token patterns ONLY (a stock Chrome UA must
2341
2358
  // never match). Distinct vendor keys (not 'chatgpt'/'perplexity'): the
2342
2359
  // browser product is a different surface than the assistant service, and