@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.
- package/dist/adapters/express.js +1 -1
- package/dist/adapters/express.js.map +1 -1
- package/dist/adapters/express.mjs +1 -1
- package/dist/adapters/express.mjs.map +1 -1
- package/dist/adapters/mcp.js +1 -1
- package/dist/adapters/mcp.js.map +1 -1
- package/dist/adapters/mcp.mjs +1 -1
- package/dist/adapters/mcp.mjs.map +1 -1
- package/dist/adapters/nextjs.js +2 -2
- package/dist/adapters/nextjs.js.map +1 -1
- package/dist/adapters/nextjs.mjs +2 -2
- package/dist/adapters/nextjs.mjs.map +1 -1
- package/dist/adapters/sdk.js +1 -1
- package/dist/adapters/sdk.js.map +1 -1
- package/dist/adapters/sdk.mjs +1 -1
- package/dist/adapters/sdk.mjs.map +1 -1
- package/dist/browser/background.js +1 -1
- package/dist/browser/background.js.map +1 -1
- package/dist/browser/background.mjs +1 -1
- package/dist/browser/background.mjs.map +1 -1
- package/dist/cursor/extension.js +1 -1
- package/dist/cursor/extension.js.map +1 -1
- package/dist/cursor/extension.mjs +1 -1
- package/dist/cursor/extension.mjs.map +1 -1
- package/dist/gateway/gateway.js +1 -1
- package/dist/gateway/gateway.js.map +1 -1
- package/dist/gateway/gateway.mjs +1 -1
- package/dist/gateway/gateway.mjs.map +1 -1
- package/dist/index.js +12 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -9
- package/dist/index.mjs.map +1 -1
- package/dist/registration/index.d.mts +4 -3
- package/dist/registration/index.d.ts +4 -3
- package/dist/registration/index.js +10 -7
- package/dist/registration/index.js.map +1 -1
- package/dist/registration/index.mjs +10 -7
- package/dist/registration/index.mjs.map +1 -1
- package/dist/ui/index.js +2 -2
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +2 -2
- package/dist/ui/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -192,7 +192,7 @@ function getCapabilities(accessLevel) {
|
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
// src/version.ts
|
|
195
|
-
var SDK_VERSION = "
|
|
195
|
+
var SDK_VERSION = "3.0.0";
|
|
196
196
|
|
|
197
197
|
// src/well-known.ts
|
|
198
198
|
var CACHE_TTL_MS = 60 * 60 * 1e3;
|
|
@@ -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,18 @@ function buildGuidance(params) {
|
|
|
5130
5130
|
status: "credentials_required",
|
|
5131
5131
|
message,
|
|
5132
5132
|
guidance: {
|
|
5133
|
-
message: "
|
|
5134
|
-
|
|
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
|
+
// 3.0.0: registrationUrl is the agent-actionable KEYLESS endpoint, not the
|
|
5135
|
+
// human dashboard `/agents/register` (an auth-walled page an agent can't
|
|
5136
|
+
// use). documentationUrl carries the machine-readable contract.
|
|
5137
|
+
registrationUrl: `${origin}/api/agents/request-registration`,
|
|
5135
5138
|
documentationUrl: `${origin}${docsPath.startsWith("/") ? docsPath : `/${docsPath}`}`,
|
|
5136
5139
|
steps: [
|
|
5137
|
-
"
|
|
5138
|
-
"
|
|
5139
|
-
"
|
|
5140
|
-
"
|
|
5141
|
-
"
|
|
5140
|
+
"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.",
|
|
5141
|
+
"No-credentials path: call request_registration({ name, ownerEmail, ... }) with the human owner's email \u2014 the only bootstrap credential. No API key is involved.",
|
|
5142
|
+
"The owner approves via an emailed link (first time, they create an account and complete a quick verification).",
|
|
5143
|
+
"Use poll_registration({ requestId }) once the owner confirms approval to retrieve the astraId.",
|
|
5144
|
+
"Never transmit a password or private key over the MCP wire \u2014 those are never required."
|
|
5142
5145
|
]
|
|
5143
5146
|
}
|
|
5144
5147
|
};
|