@astrasyncai/verification-gateway 5.0.0 → 5.1.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/adapter-interface/interface.d.mts +2 -2
- package/dist/adapter-interface/interface.d.ts +2 -2
- package/dist/adapters/express.d.mts +2 -2
- package/dist/adapters/express.d.ts +2 -2
- package/dist/adapters/express.js +19 -2
- package/dist/adapters/express.js.map +1 -1
- package/dist/adapters/express.mjs +19 -2
- package/dist/adapters/express.mjs.map +1 -1
- package/dist/adapters/mcp.d.mts +2 -2
- package/dist/adapters/mcp.d.ts +2 -2
- package/dist/adapters/mcp.js +19 -2
- package/dist/adapters/mcp.js.map +1 -1
- package/dist/adapters/mcp.mjs +19 -2
- package/dist/adapters/mcp.mjs.map +1 -1
- package/dist/adapters/nextjs.d.mts +2 -2
- package/dist/adapters/nextjs.d.ts +2 -2
- package/dist/adapters/nextjs.js +19 -2
- package/dist/adapters/nextjs.js.map +1 -1
- package/dist/adapters/nextjs.mjs +19 -2
- package/dist/adapters/nextjs.mjs.map +1 -1
- package/dist/adapters/sdk.d.mts +2 -2
- package/dist/adapters/sdk.d.ts +2 -2
- package/dist/adapters/sdk.js +19 -2
- package/dist/adapters/sdk.js.map +1 -1
- package/dist/adapters/sdk.mjs +19 -2
- package/dist/adapters/sdk.mjs.map +1 -1
- package/dist/agent/index.d.mts +2 -2
- package/dist/agent/index.d.ts +2 -2
- package/dist/bin/astrasync-claude-hook.js +19 -2
- package/dist/bin/astrasync-codex-hook.js +19 -2
- package/dist/bin/astrasync-guard.js +19 -2
- package/dist/bin/astrasync.js +19 -2
- package/dist/browser/background.js +19 -2
- package/dist/browser/background.js.map +1 -1
- package/dist/browser/background.mjs +19 -2
- package/dist/browser/background.mjs.map +1 -1
- package/dist/browser/browser-adapter.d.mts +2 -2
- package/dist/browser/browser-adapter.d.ts +2 -2
- package/dist/claude-code/claude-code-adapter.d.mts +2 -2
- package/dist/claude-code/claude-code-adapter.d.ts +2 -2
- package/dist/cli/index.d.mts +2 -2
- package/dist/cli/index.d.ts +2 -2
- package/dist/codex/index.d.mts +2 -2
- package/dist/codex/index.d.ts +2 -2
- package/dist/codex/index.js +19 -2
- package/dist/codex/index.js.map +1 -1
- package/dist/codex/index.mjs +19 -2
- package/dist/codex/index.mjs.map +1 -1
- package/dist/cursor/cursor-adapter.d.mts +2 -2
- package/dist/cursor/cursor-adapter.d.ts +2 -2
- package/dist/cursor/extension.d.mts +2 -2
- package/dist/cursor/extension.d.ts +2 -2
- package/dist/cursor/extension.js +19 -2
- package/dist/cursor/extension.js.map +1 -1
- package/dist/cursor/extension.mjs +19 -2
- package/dist/cursor/extension.mjs.map +1 -1
- package/dist/edge-config.d.mts +1 -1
- package/dist/edge-config.d.ts +1 -1
- package/dist/edge-core/index.d.mts +12 -1
- package/dist/edge-core/index.d.ts +12 -1
- package/dist/edge-core/index.js +36 -3
- package/dist/edge-core/index.js.map +1 -1
- package/dist/edge-core/index.mjs +36 -3
- package/dist/edge-core/index.mjs.map +1 -1
- package/dist/{express-Dm-snUuY.d.mts → express-KkBZBMqi.d.mts} +1 -1
- package/dist/{express-B5lWuemA.d.ts → express-xK8pRrmj.d.ts} +1 -1
- package/dist/gateway/gateway.d.mts +2 -2
- package/dist/gateway/gateway.d.ts +2 -2
- package/dist/gateway/gateway.js +19 -2
- package/dist/gateway/gateway.js.map +1 -1
- package/dist/gateway/gateway.mjs +19 -2
- package/dist/gateway/gateway.mjs.map +1 -1
- package/dist/git-trigger/git-hooks.d.mts +2 -2
- package/dist/git-trigger/git-hooks.d.ts +2 -2
- package/dist/{index-B5k_vUmK.d.mts → index-DIRzR5IS.d.mts} +1 -1
- package/dist/{index-y8xToocF.d.ts → index-DLQ4Rcuc.d.ts} +1 -1
- package/dist/{index-BOzM6xUq.d.mts → index-GPDn_EGI.d.mts} +1 -1
- package/dist/{index-dRfxUdFA.d.ts → index-Hnz5VyMR.d.ts} +1 -1
- package/dist/index.d.mts +12 -8
- package/dist/index.d.ts +12 -8
- package/dist/index.js +19 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -2
- package/dist/index.mjs.map +1 -1
- package/dist/local-evaluator/evaluator.d.mts +2 -2
- package/dist/local-evaluator/evaluator.d.ts +2 -2
- package/dist/{mcp-OosmAcKf.d.ts → mcp-DPpu4xQz.d.ts} +1 -1
- package/dist/{mcp-DgsyQiQq.d.mts → mcp-Dju_Sr1o.d.mts} +1 -1
- package/dist/{nextjs-B1sBdEav.d.mts → nextjs-BuoDBN4g.d.mts} +1 -1
- package/dist/{nextjs-DoRmhV_Z.d.ts → nextjs-rZKzY_8o.d.ts} +1 -1
- package/dist/{sdk-B83N3xKc.d.mts → sdk-CdO6TIEf.d.mts} +1 -1
- package/dist/{sdk-H_9BTNBS.d.ts → sdk-DxHuIJBm.d.ts} +1 -1
- package/dist/transport/index.d.mts +2 -2
- package/dist/transport/index.d.ts +2 -2
- package/dist/{types-CXf3q4kZ.d.ts → types-3UV7IZx7.d.ts} +1 -1
- package/dist/{types-BK2POWNc.d.ts → types-CNBaZKxY.d.ts} +9 -0
- package/dist/{types-CJjZvPr9.d.mts → types-CSHcByFX.d.mts} +9 -0
- package/dist/{types-DQmop7ZW.d.mts → types-CoDjpbVY.d.mts} +1 -1
- package/dist/ui/index.d.mts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/verify.d.mts +1 -1
- package/dist/verify.d.ts +1 -1
- package/dist/verify.js +19 -2
- package/dist/verify.js.map +1 -1
- package/dist/verify.mjs +19 -2
- package/dist/verify.mjs.map +1 -1
- package/package.json +1 -1
package/dist/bin/astrasync.js
CHANGED
|
@@ -5204,6 +5204,14 @@ function cacheResult(request2, result, configuredTtl, counterpartyId) {
|
|
|
5204
5204
|
expiresAt: Date.now() + ttlSeconds * 1e3
|
|
5205
5205
|
});
|
|
5206
5206
|
}
|
|
5207
|
+
function mcpGuidance(urls) {
|
|
5208
|
+
if (!urls?.mcpEndpoint) return void 0;
|
|
5209
|
+
return {
|
|
5210
|
+
endpoint: urls.mcpEndpoint,
|
|
5211
|
+
discoveryUrl: urls.mcpDiscoveryUrl,
|
|
5212
|
+
message: "If you are operating inside an MCP-capable host (Claude, ChatGPT, Cursor, or any MCP client), add the AstraSync MCP connector instead of integrating these URLs by hand: registration through the connector is KEYLESS and HUMAN-APPROVED \u2014 your human approves in an in-chat card, and you never see, hold, or transmit an API key, password, or private key."
|
|
5213
|
+
};
|
|
5214
|
+
}
|
|
5207
5215
|
function createGuidanceResponse(_config, reason, options = {}) {
|
|
5208
5216
|
const source = options.source ?? "no_credentials";
|
|
5209
5217
|
const isApiError = source === "api_error";
|
|
@@ -5230,11 +5238,17 @@ function createGuidanceResponse(_config, reason, options = {}) {
|
|
|
5230
5238
|
registrationUrl: urls?.registrationUrl ?? "",
|
|
5231
5239
|
documentationUrl: urls?.documentationUrl ?? "",
|
|
5232
5240
|
steps: [
|
|
5241
|
+
// MCP steering leads when the hosted bridge is advertised — the
|
|
5242
|
+
// connector is the agent-actionable path (keyless, human-approved).
|
|
5243
|
+
...urls?.mcpEndpoint ? [
|
|
5244
|
+
`Fastest path (inside an MCP host): add the AstraSync MCP connector at ${urls.mcpEndpoint} \u2014 keyless, human-approved registration`
|
|
5245
|
+
] : [],
|
|
5233
5246
|
"Register for an AstraSync account",
|
|
5234
5247
|
"Create and register your agent",
|
|
5235
5248
|
"Add your ASTRA-ID to request headers",
|
|
5236
5249
|
"Retry your request"
|
|
5237
|
-
]
|
|
5250
|
+
],
|
|
5251
|
+
...mcpGuidance(urls) && { mcp: mcpGuidance(urls) }
|
|
5238
5252
|
};
|
|
5239
5253
|
return {
|
|
5240
5254
|
// Round-18 G4: createGuidanceResponse fires for unverified-agent path or
|
|
@@ -5453,7 +5467,10 @@ async function verify(config, request2, options) {
|
|
|
5453
5467
|
guidance: {
|
|
5454
5468
|
message: apiResponse.access?.reason || "Access denied by PDLSS policy",
|
|
5455
5469
|
registrationUrl: urls?.registrationUrl ?? "",
|
|
5456
|
-
documentationUrl: urls?.documentationUrl ?? ""
|
|
5470
|
+
documentationUrl: urls?.documentationUrl ?? "",
|
|
5471
|
+
// 5.1.0: anonymous callers land on this branch — steer MCP-hosted
|
|
5472
|
+
// agents to the connector (this is what the edge deny body surfaces).
|
|
5473
|
+
...mcpGuidance(urls) && { mcp: mcpGuidance(urls) }
|
|
5457
5474
|
},
|
|
5458
5475
|
verifiedAt: /* @__PURE__ */ new Date(),
|
|
5459
5476
|
// Extract sessionId so decisions can be recorded for denials too
|
|
@@ -4132,6 +4132,14 @@ function cacheResult(request, result, configuredTtl, counterpartyId) {
|
|
|
4132
4132
|
expiresAt: Date.now() + ttlSeconds * 1e3
|
|
4133
4133
|
});
|
|
4134
4134
|
}
|
|
4135
|
+
function mcpGuidance(urls) {
|
|
4136
|
+
if (!urls?.mcpEndpoint) return void 0;
|
|
4137
|
+
return {
|
|
4138
|
+
endpoint: urls.mcpEndpoint,
|
|
4139
|
+
discoveryUrl: urls.mcpDiscoveryUrl,
|
|
4140
|
+
message: "If you are operating inside an MCP-capable host (Claude, ChatGPT, Cursor, or any MCP client), add the AstraSync MCP connector instead of integrating these URLs by hand: registration through the connector is KEYLESS and HUMAN-APPROVED \u2014 your human approves in an in-chat card, and you never see, hold, or transmit an API key, password, or private key."
|
|
4141
|
+
};
|
|
4142
|
+
}
|
|
4135
4143
|
function createGuidanceResponse(_config, reason, options = {}) {
|
|
4136
4144
|
const source = options.source ?? "no_credentials";
|
|
4137
4145
|
const isApiError = source === "api_error";
|
|
@@ -4158,11 +4166,17 @@ function createGuidanceResponse(_config, reason, options = {}) {
|
|
|
4158
4166
|
registrationUrl: urls?.registrationUrl ?? "",
|
|
4159
4167
|
documentationUrl: urls?.documentationUrl ?? "",
|
|
4160
4168
|
steps: [
|
|
4169
|
+
// MCP steering leads when the hosted bridge is advertised — the
|
|
4170
|
+
// connector is the agent-actionable path (keyless, human-approved).
|
|
4171
|
+
...urls?.mcpEndpoint ? [
|
|
4172
|
+
`Fastest path (inside an MCP host): add the AstraSync MCP connector at ${urls.mcpEndpoint} \u2014 keyless, human-approved registration`
|
|
4173
|
+
] : [],
|
|
4161
4174
|
"Register for an AstraSync account",
|
|
4162
4175
|
"Create and register your agent",
|
|
4163
4176
|
"Add your ASTRA-ID to request headers",
|
|
4164
4177
|
"Retry your request"
|
|
4165
|
-
]
|
|
4178
|
+
],
|
|
4179
|
+
...mcpGuidance(urls) && { mcp: mcpGuidance(urls) }
|
|
4166
4180
|
};
|
|
4167
4181
|
return {
|
|
4168
4182
|
// Round-18 G4: createGuidanceResponse fires for unverified-agent path or
|
|
@@ -4381,7 +4395,10 @@ async function verify(config, request, options) {
|
|
|
4381
4395
|
guidance: {
|
|
4382
4396
|
message: apiResponse.access?.reason || "Access denied by PDLSS policy",
|
|
4383
4397
|
registrationUrl: urls?.registrationUrl ?? "",
|
|
4384
|
-
documentationUrl: urls?.documentationUrl ?? ""
|
|
4398
|
+
documentationUrl: urls?.documentationUrl ?? "",
|
|
4399
|
+
// 5.1.0: anonymous callers land on this branch — steer MCP-hosted
|
|
4400
|
+
// agents to the connector (this is what the edge deny body surfaces).
|
|
4401
|
+
...mcpGuidance(urls) && { mcp: mcpGuidance(urls) }
|
|
4385
4402
|
},
|
|
4386
4403
|
verifiedAt: /* @__PURE__ */ new Date(),
|
|
4387
4404
|
// Extract sessionId so decisions can be recorded for denials too
|