@astrasyncai/verification-gateway 2.5.0 → 2.5.1

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
@@ -1337,7 +1337,7 @@ function generateCommerceShieldHtml(result, options) {
1337
1337
  );
1338
1338
  const registrationUrl = sanitizeUrl(
1339
1339
  result.guidance?.registrationUrl,
1340
- "https://astrasync.ai/register"
1340
+ "https://astrasync.ai/agents/register"
1341
1341
  );
1342
1342
  const docsUrl = sanitizeUrl(
1343
1343
  result.guidance?.documentationUrl,
@@ -5130,15 +5130,15 @@ function buildGuidance(params) {
5130
5130
  status: "credentials_required",
5131
5131
  message,
5132
5132
  guidance: {
5133
- message: "AstraSync registration requires credentials. Get an account + API key, then call register_agent again.",
5134
- registrationUrl: `${origin}/register`,
5133
+ 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.",
5134
+ registrationUrl: `${origin}/agents/register`,
5135
5135
  documentationUrl: `${origin}${docsPath.startsWith("/") ? docsPath : `/${docsPath}`}`,
5136
5136
  steps: [
5137
- "Visit registrationUrl and create an AstraSync account (or log in if you have one).",
5138
- "Generate an API key from Settings \u2192 API Keys.",
5139
- "Re-call register_agent with the apiKey populated.",
5140
- "After registration returns status: pending_approval, the owner approves via email.",
5141
- "Use poll_registration({ requestId }) to retrieve the astraId once approved."
5137
+ "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.",
5138
+ "No-credentials path: call request_registration({ name, ownerEmail, ... }) with the human owner's email \u2014 the only bootstrap credential. No API key is involved.",
5139
+ "The owner approves via an emailed link (first time, they create an account and complete a quick verification).",
5140
+ "Use poll_registration({ requestId }) once the owner confirms approval to retrieve the astraId.",
5141
+ "Never transmit a password or private key over the MCP wire \u2014 those are never required."
5142
5142
  ]
5143
5143
  }
5144
5144
  };