@astrasyncai/verification-gateway 2.5.0 → 3.0.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 (43) hide show
  1. package/dist/adapters/express.js +1 -1
  2. package/dist/adapters/express.js.map +1 -1
  3. package/dist/adapters/express.mjs +1 -1
  4. package/dist/adapters/express.mjs.map +1 -1
  5. package/dist/adapters/mcp.js +1 -1
  6. package/dist/adapters/mcp.js.map +1 -1
  7. package/dist/adapters/mcp.mjs +1 -1
  8. package/dist/adapters/mcp.mjs.map +1 -1
  9. package/dist/adapters/nextjs.js +2 -2
  10. package/dist/adapters/nextjs.js.map +1 -1
  11. package/dist/adapters/nextjs.mjs +2 -2
  12. package/dist/adapters/nextjs.mjs.map +1 -1
  13. package/dist/adapters/sdk.js +1 -1
  14. package/dist/adapters/sdk.js.map +1 -1
  15. package/dist/adapters/sdk.mjs +1 -1
  16. package/dist/adapters/sdk.mjs.map +1 -1
  17. package/dist/browser/background.js +1 -1
  18. package/dist/browser/background.js.map +1 -1
  19. package/dist/browser/background.mjs +1 -1
  20. package/dist/browser/background.mjs.map +1 -1
  21. package/dist/cursor/extension.js +1 -1
  22. package/dist/cursor/extension.js.map +1 -1
  23. package/dist/cursor/extension.mjs +1 -1
  24. package/dist/cursor/extension.mjs.map +1 -1
  25. package/dist/gateway/gateway.js +1 -1
  26. package/dist/gateway/gateway.js.map +1 -1
  27. package/dist/gateway/gateway.mjs +1 -1
  28. package/dist/gateway/gateway.mjs.map +1 -1
  29. package/dist/index.js +12 -9
  30. package/dist/index.js.map +1 -1
  31. package/dist/index.mjs +12 -9
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/registration/index.d.mts +4 -3
  34. package/dist/registration/index.d.ts +4 -3
  35. package/dist/registration/index.js +10 -7
  36. package/dist/registration/index.js.map +1 -1
  37. package/dist/registration/index.mjs +10 -7
  38. package/dist/registration/index.mjs.map +1 -1
  39. package/dist/ui/index.js +2 -2
  40. package/dist/ui/index.js.map +1 -1
  41. package/dist/ui/index.mjs +2 -2
  42. package/dist/ui/index.mjs.map +1 -1
  43. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -126,7 +126,7 @@ function getCapabilities(accessLevel) {
126
126
  }
127
127
 
128
128
  // src/version.ts
129
- var SDK_VERSION = "2.4.13";
129
+ var SDK_VERSION = "3.0.0";
130
130
 
131
131
  // src/well-known.ts
132
132
  var CACHE_TTL_MS = 60 * 60 * 1e3;
@@ -1271,7 +1271,7 @@ function generateCommerceShieldHtml(result, options) {
1271
1271
  );
1272
1272
  const registrationUrl = sanitizeUrl(
1273
1273
  result.guidance?.registrationUrl,
1274
- "https://astrasync.ai/register"
1274
+ "https://astrasync.ai/agents/register"
1275
1275
  );
1276
1276
  const docsUrl = sanitizeUrl(
1277
1277
  result.guidance?.documentationUrl,
@@ -5067,15 +5067,18 @@ function buildGuidance(params) {
5067
5067
  status: "credentials_required",
5068
5068
  message,
5069
5069
  guidance: {
5070
- message: "AstraSync registration requires credentials. Get an account + API key, then call register_agent again.",
5071
- registrationUrl: `${origin}/register`,
5070
+ message: "Register either with an agent-scoped API key (the recommended credentialed path) OR, if you hold no credentials, via the owner's email using request_registration. Never send a password or private key over the wire.",
5071
+ // 3.0.0: registrationUrl is the agent-actionable KEYLESS endpoint, not the
5072
+ // human dashboard `/agents/register` (an auth-walled page an agent can't
5073
+ // use). documentationUrl carries the machine-readable contract.
5074
+ registrationUrl: `${origin}/api/agents/request-registration`,
5072
5075
  documentationUrl: `${origin}${docsPath.startsWith("/") ? docsPath : `/${docsPath}`}`,
5073
5076
  steps: [
5074
- "Visit registrationUrl and create an AstraSync account (or log in if you have one).",
5075
- "Generate an API key from Settings \u2192 API Keys.",
5076
- "Re-call register_agent with the apiKey populated.",
5077
- "After registration returns status: pending_approval, the owner approves via email.",
5078
- "Use poll_registration({ requestId }) to retrieve the astraId once approved."
5077
+ "Credentialed path (recommended): have your human mint an agent-scoped API key at Settings \u2192 API Keys, then re-call register_agent with apiKey set. An agent holding its own scoped kya_ key is fine and intended.",
5078
+ "No-credentials path: call request_registration({ name, ownerEmail, ... }) with the human owner's email \u2014 the only bootstrap credential. No API key is involved.",
5079
+ "The owner approves via an emailed link (first time, they create an account and complete a quick verification).",
5080
+ "Use poll_registration({ requestId }) once the owner confirms approval to retrieve the astraId.",
5081
+ "Never transmit a password or private key over the MCP wire \u2014 those are never required."
5079
5082
  ]
5080
5083
  }
5081
5084
  };