@astrasyncai/verification-gateway 5.8.0 → 5.10.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/README.md +1 -1
- package/dist/adapters/express.d.mts +1 -1
- package/dist/adapters/express.d.ts +1 -1
- package/dist/adapters/express.js +56 -7
- package/dist/adapters/express.js.map +1 -1
- package/dist/adapters/express.mjs +56 -7
- package/dist/adapters/express.mjs.map +1 -1
- package/dist/adapters/mcp.d.mts +1 -1
- package/dist/adapters/mcp.d.ts +1 -1
- package/dist/adapters/mcp.js +20 -2
- package/dist/adapters/mcp.js.map +1 -1
- package/dist/adapters/mcp.mjs +20 -2
- package/dist/adapters/mcp.mjs.map +1 -1
- package/dist/adapters/nextjs.d.mts +1 -1
- package/dist/adapters/nextjs.d.ts +1 -1
- package/dist/adapters/nextjs.js +56 -7
- package/dist/adapters/nextjs.js.map +1 -1
- package/dist/adapters/nextjs.mjs +56 -7
- package/dist/adapters/nextjs.mjs.map +1 -1
- package/dist/adapters/sdk.d.mts +1 -1
- package/dist/adapters/sdk.d.ts +1 -1
- package/dist/adapters/sdk.js +20 -2
- package/dist/adapters/sdk.js.map +1 -1
- package/dist/adapters/sdk.mjs +20 -2
- package/dist/adapters/sdk.mjs.map +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/index.mjs +1 -1
- package/dist/agent/index.mjs.map +1 -1
- package/dist/bin/astrasync-claude-hook.js +32 -6
- package/dist/bin/astrasync-codex-hook.js +32 -6
- package/dist/bin/astrasync-guard.js +32 -6
- package/dist/bin/astrasync.js +33 -6
- package/dist/browser/background.js +32 -6
- package/dist/browser/background.js.map +1 -1
- package/dist/browser/background.mjs +32 -6
- package/dist/browser/background.mjs.map +1 -1
- package/dist/cli/index.js +12 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/index.mjs +12 -4
- package/dist/cli/index.mjs.map +1 -1
- package/dist/codex/index.js +32 -6
- package/dist/codex/index.js.map +1 -1
- package/dist/codex/index.mjs +32 -6
- package/dist/codex/index.mjs.map +1 -1
- package/dist/cursor/extension.js +32 -6
- package/dist/cursor/extension.js.map +1 -1
- package/dist/cursor/extension.mjs +32 -6
- package/dist/cursor/extension.mjs.map +1 -1
- package/dist/edge-config.d.mts +24 -1
- package/dist/edge-config.d.ts +24 -1
- package/dist/edge-config.js +13 -5
- package/dist/edge-config.js.map +1 -1
- package/dist/edge-config.mjs +13 -5
- package/dist/edge-config.mjs.map +1 -1
- package/dist/edge-core/index.d.mts +14 -6
- package/dist/edge-core/index.d.ts +14 -6
- package/dist/edge-core/index.js +129 -17
- package/dist/edge-core/index.js.map +1 -1
- package/dist/edge-core/index.mjs +129 -17
- package/dist/edge-core/index.mjs.map +1 -1
- package/dist/gateway/gateway.js +32 -6
- package/dist/gateway/gateway.js.map +1 -1
- package/dist/gateway/gateway.mjs +32 -6
- package/dist/gateway/gateway.mjs.map +1 -1
- package/dist/git-trigger/git-hooks.d.mts +1 -1
- package/dist/git-trigger/git-hooks.d.ts +1 -1
- package/dist/index.d.mts +73 -6
- package/dist/index.d.ts +73 -6
- package/dist/index.js +66 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +64 -7
- package/dist/index.mjs.map +1 -1
- package/dist/metadata-capture.d.mts +18 -1
- package/dist/metadata-capture.d.ts +18 -1
- package/dist/metadata-capture.js +10 -0
- package/dist/metadata-capture.js.map +1 -1
- package/dist/metadata-capture.mjs +8 -0
- package/dist/metadata-capture.mjs.map +1 -1
- package/dist/platform-signatures.d.mts +1 -1
- package/dist/platform-signatures.d.ts +1 -1
- package/dist/platform-signatures.js +24 -1
- package/dist/platform-signatures.js.map +1 -1
- package/dist/platform-signatures.mjs +24 -1
- package/dist/platform-signatures.mjs.map +1 -1
- package/dist/registration/index.js +1 -1
- package/dist/registration/index.js.map +1 -1
- package/dist/registration/index.mjs +1 -1
- package/dist/registration/index.mjs.map +1 -1
- package/dist/transport/index.js +1 -1
- package/dist/transport/index.js.map +1 -1
- package/dist/transport/index.mjs +1 -1
- package/dist/transport/index.mjs.map +1 -1
- package/dist/{types-BK_pRNSs.d.mts → types-CTmUpNpS.d.mts} +25 -2
- package/dist/{types-BK_pRNSs.d.ts → types-CTmUpNpS.d.ts} +25 -2
- package/dist/{types-CwY5IY-0.d.ts → types-CtFXmDzm.d.ts} +17 -2
- package/dist/{types-BCmHFdkJ.d.mts → types-DQrn_kei.d.mts} +17 -2
- package/dist/ui/index.d.mts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/verify.d.mts +13 -1
- package/dist/verify.d.ts +13 -1
- package/dist/verify.js +20 -2
- package/dist/verify.js.map +1 -1
- package/dist/verify.mjs +20 -2
- package/dist/verify.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -42,6 +42,14 @@ interface ObservedMetadata {
|
|
|
42
42
|
* by the edge path, which sees the raw query string.
|
|
43
43
|
*/
|
|
44
44
|
queryKeys?: string[];
|
|
45
|
+
/**
|
|
46
|
+
* Query-string VALUES for parameter names the endpoint owner explicitly
|
|
47
|
+
* allow-listed (`EdgeConfig.queryValueAllowlist`, seeded `utm_*` — VI
|
|
48
|
+
* uplift Part 4). The default remains NO value capture; this exists so
|
|
49
|
+
* campaign attribution (utm_source/medium/campaign) can be reported
|
|
50
|
+
* without widening the privacy stance. Bounded 16 entries × 256 chars.
|
|
51
|
+
*/
|
|
52
|
+
queryParams?: Record<string, string>;
|
|
45
53
|
/**
|
|
46
54
|
* Version of the capture semantics this object was produced under — see
|
|
47
55
|
* {@link CAPTURE_SCHEMA_VERSION}. Optional for backward compatibility with
|
|
@@ -215,8 +223,8 @@ interface VerifiedAgent {
|
|
|
215
223
|
trustScore: number;
|
|
216
224
|
/** Trust level tier */
|
|
217
225
|
trustLevel: TrustLevel;
|
|
218
|
-
/** Whether agent is
|
|
219
|
-
|
|
226
|
+
/** Whether the agent's identity record is anchored on-chain (5.9.0: was `blockchainVerified`) */
|
|
227
|
+
blockchainAnchored: boolean;
|
|
220
228
|
/** Agent status */
|
|
221
229
|
status: 'active' | 'inactive' | 'suspended' | 'migrating' | 'terminated' | 'retired';
|
|
222
230
|
}
|
|
@@ -589,6 +597,21 @@ interface CallerMetadata {
|
|
|
589
597
|
forwardedFor?: string;
|
|
590
598
|
/** Published agent card URL, if the agent advertised one (future: from agent headers). */
|
|
591
599
|
agentCardUrl?: string;
|
|
600
|
+
/**
|
|
601
|
+
* Transport marker for the hop that relayed this call (e.g.
|
|
602
|
+
* `mcp-bridge/<version>`, or an `astrasync-sdk/<v>` UA demoted out of the
|
|
603
|
+
* userAgent slot). Attribution only — never the caller's UA and never a
|
|
604
|
+
* trust signal; kept outside the self-traffic filter so relayed buyer
|
|
605
|
+
* traffic stays merchant-visible.
|
|
606
|
+
*/
|
|
607
|
+
via?: string;
|
|
608
|
+
/**
|
|
609
|
+
* Self-declared platform from the `X-Astra-Source` header (VI uplift
|
|
610
|
+
* Part 2), normalised via `normalizeDeclaredSource`. Spoofable by design —
|
|
611
|
+
* surfaces as the distinct "declared · unverified" evidence class, never
|
|
612
|
+
* as fingerprint/verified evidence, and never enters an access decision.
|
|
613
|
+
*/
|
|
614
|
+
declaredSource?: string;
|
|
592
615
|
/**
|
|
593
616
|
* The full sanitised view of the agent's inbound request headers + connection
|
|
594
617
|
* signals (maximal metadata capture: every signal legitimately visible on
|
|
@@ -42,6 +42,14 @@ interface ObservedMetadata {
|
|
|
42
42
|
* by the edge path, which sees the raw query string.
|
|
43
43
|
*/
|
|
44
44
|
queryKeys?: string[];
|
|
45
|
+
/**
|
|
46
|
+
* Query-string VALUES for parameter names the endpoint owner explicitly
|
|
47
|
+
* allow-listed (`EdgeConfig.queryValueAllowlist`, seeded `utm_*` — VI
|
|
48
|
+
* uplift Part 4). The default remains NO value capture; this exists so
|
|
49
|
+
* campaign attribution (utm_source/medium/campaign) can be reported
|
|
50
|
+
* without widening the privacy stance. Bounded 16 entries × 256 chars.
|
|
51
|
+
*/
|
|
52
|
+
queryParams?: Record<string, string>;
|
|
45
53
|
/**
|
|
46
54
|
* Version of the capture semantics this object was produced under — see
|
|
47
55
|
* {@link CAPTURE_SCHEMA_VERSION}. Optional for backward compatibility with
|
|
@@ -215,8 +223,8 @@ interface VerifiedAgent {
|
|
|
215
223
|
trustScore: number;
|
|
216
224
|
/** Trust level tier */
|
|
217
225
|
trustLevel: TrustLevel;
|
|
218
|
-
/** Whether agent is
|
|
219
|
-
|
|
226
|
+
/** Whether the agent's identity record is anchored on-chain (5.9.0: was `blockchainVerified`) */
|
|
227
|
+
blockchainAnchored: boolean;
|
|
220
228
|
/** Agent status */
|
|
221
229
|
status: 'active' | 'inactive' | 'suspended' | 'migrating' | 'terminated' | 'retired';
|
|
222
230
|
}
|
|
@@ -589,6 +597,21 @@ interface CallerMetadata {
|
|
|
589
597
|
forwardedFor?: string;
|
|
590
598
|
/** Published agent card URL, if the agent advertised one (future: from agent headers). */
|
|
591
599
|
agentCardUrl?: string;
|
|
600
|
+
/**
|
|
601
|
+
* Transport marker for the hop that relayed this call (e.g.
|
|
602
|
+
* `mcp-bridge/<version>`, or an `astrasync-sdk/<v>` UA demoted out of the
|
|
603
|
+
* userAgent slot). Attribution only — never the caller's UA and never a
|
|
604
|
+
* trust signal; kept outside the self-traffic filter so relayed buyer
|
|
605
|
+
* traffic stays merchant-visible.
|
|
606
|
+
*/
|
|
607
|
+
via?: string;
|
|
608
|
+
/**
|
|
609
|
+
* Self-declared platform from the `X-Astra-Source` header (VI uplift
|
|
610
|
+
* Part 2), normalised via `normalizeDeclaredSource`. Spoofable by design —
|
|
611
|
+
* surfaces as the distinct "declared · unverified" evidence class, never
|
|
612
|
+
* as fingerprint/verified evidence, and never enters an access decision.
|
|
613
|
+
*/
|
|
614
|
+
declaredSource?: string;
|
|
592
615
|
/**
|
|
593
616
|
* The full sanitised view of the agent's inbound request headers + connection
|
|
594
617
|
* signals (maximal metadata capture: every signal legitimately visible on
|
|
@@ -165,8 +165,8 @@ interface VerifiedAgent {
|
|
|
165
165
|
trustScore: number;
|
|
166
166
|
/** Trust level tier */
|
|
167
167
|
trustLevel: TrustLevel;
|
|
168
|
-
/** Whether agent is
|
|
169
|
-
|
|
168
|
+
/** Whether the agent's identity record is anchored on-chain (5.9.0: was `blockchainVerified`) */
|
|
169
|
+
blockchainAnchored: boolean;
|
|
170
170
|
/** Agent status */
|
|
171
171
|
status: 'active' | 'inactive' | 'suspended' | 'migrating' | 'terminated' | 'retired';
|
|
172
172
|
}
|
|
@@ -539,6 +539,21 @@ interface CallerMetadata {
|
|
|
539
539
|
forwardedFor?: string;
|
|
540
540
|
/** Published agent card URL, if the agent advertised one (future: from agent headers). */
|
|
541
541
|
agentCardUrl?: string;
|
|
542
|
+
/**
|
|
543
|
+
* Transport marker for the hop that relayed this call (e.g.
|
|
544
|
+
* `mcp-bridge/<version>`, or an `astrasync-sdk/<v>` UA demoted out of the
|
|
545
|
+
* userAgent slot). Attribution only — never the caller's UA and never a
|
|
546
|
+
* trust signal; kept outside the self-traffic filter so relayed buyer
|
|
547
|
+
* traffic stays merchant-visible.
|
|
548
|
+
*/
|
|
549
|
+
via?: string;
|
|
550
|
+
/**
|
|
551
|
+
* Self-declared platform from the `X-Astra-Source` header (VI uplift
|
|
552
|
+
* Part 2), normalised via `normalizeDeclaredSource`. Spoofable by design —
|
|
553
|
+
* surfaces as the distinct "declared · unverified" evidence class, never
|
|
554
|
+
* as fingerprint/verified evidence, and never enters an access decision.
|
|
555
|
+
*/
|
|
556
|
+
declaredSource?: string;
|
|
542
557
|
/**
|
|
543
558
|
* The full sanitised view of the agent's inbound request headers + connection
|
|
544
559
|
* signals (maximal metadata capture: every signal legitimately visible on
|
|
@@ -165,8 +165,8 @@ interface VerifiedAgent {
|
|
|
165
165
|
trustScore: number;
|
|
166
166
|
/** Trust level tier */
|
|
167
167
|
trustLevel: TrustLevel;
|
|
168
|
-
/** Whether agent is
|
|
169
|
-
|
|
168
|
+
/** Whether the agent's identity record is anchored on-chain (5.9.0: was `blockchainVerified`) */
|
|
169
|
+
blockchainAnchored: boolean;
|
|
170
170
|
/** Agent status */
|
|
171
171
|
status: 'active' | 'inactive' | 'suspended' | 'migrating' | 'terminated' | 'retired';
|
|
172
172
|
}
|
|
@@ -539,6 +539,21 @@ interface CallerMetadata {
|
|
|
539
539
|
forwardedFor?: string;
|
|
540
540
|
/** Published agent card URL, if the agent advertised one (future: from agent headers). */
|
|
541
541
|
agentCardUrl?: string;
|
|
542
|
+
/**
|
|
543
|
+
* Transport marker for the hop that relayed this call (e.g.
|
|
544
|
+
* `mcp-bridge/<version>`, or an `astrasync-sdk/<v>` UA demoted out of the
|
|
545
|
+
* userAgent slot). Attribution only — never the caller's UA and never a
|
|
546
|
+
* trust signal; kept outside the self-traffic filter so relayed buyer
|
|
547
|
+
* traffic stays merchant-visible.
|
|
548
|
+
*/
|
|
549
|
+
via?: string;
|
|
550
|
+
/**
|
|
551
|
+
* Self-declared platform from the `X-Astra-Source` header (VI uplift
|
|
552
|
+
* Part 2), normalised via `normalizeDeclaredSource`. Spoofable by design —
|
|
553
|
+
* surfaces as the distinct "declared · unverified" evidence class, never
|
|
554
|
+
* as fingerprint/verified evidence, and never enters an access decision.
|
|
555
|
+
*/
|
|
556
|
+
declaredSource?: string;
|
|
542
557
|
/**
|
|
543
558
|
* The full sanitised view of the agent's inbound request headers + connection
|
|
544
559
|
* signals (maximal metadata capture: every signal legitimately visible on
|
package/dist/ui/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VerificationInterstitialProps, d as VerificationResult, A as AgentCredentials, b as GuidanceInfo, T as TrustLevel } from '../types-
|
|
1
|
+
import { V as VerificationInterstitialProps, d as VerificationResult, A as AgentCredentials, b as GuidanceInfo, T as TrustLevel } from '../types-CTmUpNpS.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* AstraSync Verification Interstitial Component
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VerificationInterstitialProps, d as VerificationResult, A as AgentCredentials, b as GuidanceInfo, T as TrustLevel } from '../types-
|
|
1
|
+
import { V as VerificationInterstitialProps, d as VerificationResult, A as AgentCredentials, b as GuidanceInfo, T as TrustLevel } from '../types-CTmUpNpS.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* AstraSync Verification Interstitial Component
|
package/dist/verify.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AgentCredentials, G as GatewayConfig, a as AttemptReport, V as VerificationRequest, c as VerificationResult } from './types-
|
|
1
|
+
import { A as AgentCredentials, G as GatewayConfig, a as AttemptReport, V as VerificationRequest, c as VerificationResult } from './types-DQrn_kei.mjs';
|
|
2
2
|
import { ObservedMetadata } from './metadata-capture.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -112,6 +112,18 @@ declare function reportUnregisteredAttempt(config: GatewayConfig, data: {
|
|
|
112
112
|
userAgent?: string;
|
|
113
113
|
requestPath?: string;
|
|
114
114
|
requestMethod?: string;
|
|
115
|
+
/**
|
|
116
|
+
* VI uplift Part 3 — attempt-chain handle (`att_<32hex>`, from the
|
|
117
|
+
* X-Astra-Attempt-Id header or an `?astra_attempt=` deep link). Joins
|
|
118
|
+
* the beacon into the agent's research chain. Attribution only.
|
|
119
|
+
*/
|
|
120
|
+
attemptId?: string;
|
|
121
|
+
/** First-class referer (traffic-source reporting). */
|
|
122
|
+
referer?: string;
|
|
123
|
+
/** The caller's Accept header (surface-classifier input). */
|
|
124
|
+
accept?: string;
|
|
125
|
+
/** Self-declared platform from X-Astra-Source (attribution, never trust). */
|
|
126
|
+
declaredSource?: string;
|
|
115
127
|
/**
|
|
116
128
|
* 3.9.0 — edge-adapter evidence fields, persisted into the
|
|
117
129
|
* event's eventData by the backend: `protocol` = detected transport/
|
package/dist/verify.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AgentCredentials, G as GatewayConfig, a as AttemptReport, V as VerificationRequest, c as VerificationResult } from './types-
|
|
1
|
+
import { A as AgentCredentials, G as GatewayConfig, a as AttemptReport, V as VerificationRequest, c as VerificationResult } from './types-CtFXmDzm.js';
|
|
2
2
|
import { ObservedMetadata } from './metadata-capture.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -112,6 +112,18 @@ declare function reportUnregisteredAttempt(config: GatewayConfig, data: {
|
|
|
112
112
|
userAgent?: string;
|
|
113
113
|
requestPath?: string;
|
|
114
114
|
requestMethod?: string;
|
|
115
|
+
/**
|
|
116
|
+
* VI uplift Part 3 — attempt-chain handle (`att_<32hex>`, from the
|
|
117
|
+
* X-Astra-Attempt-Id header or an `?astra_attempt=` deep link). Joins
|
|
118
|
+
* the beacon into the agent's research chain. Attribution only.
|
|
119
|
+
*/
|
|
120
|
+
attemptId?: string;
|
|
121
|
+
/** First-class referer (traffic-source reporting). */
|
|
122
|
+
referer?: string;
|
|
123
|
+
/** The caller's Accept header (surface-classifier input). */
|
|
124
|
+
accept?: string;
|
|
125
|
+
/** Self-declared platform from X-Astra-Source (attribution, never trust). */
|
|
126
|
+
declaredSource?: string;
|
|
115
127
|
/**
|
|
116
128
|
* 3.9.0 — edge-adapter evidence fields, persisted into the
|
|
117
129
|
* event's eventData by the backend: `protocol` = detected transport/
|
package/dist/verify.js
CHANGED
|
@@ -36,7 +36,7 @@ __export(verify_exports, {
|
|
|
36
36
|
module.exports = __toCommonJS(verify_exports);
|
|
37
37
|
|
|
38
38
|
// src/version.ts
|
|
39
|
-
var SDK_VERSION = "5.
|
|
39
|
+
var SDK_VERSION = "5.10.0";
|
|
40
40
|
|
|
41
41
|
// src/http.ts
|
|
42
42
|
var SDK_USER_AGENT = `astrasync-sdk/${SDK_VERSION}`;
|
|
@@ -406,6 +406,24 @@ async function callVerifyAccessAPI(config, request) {
|
|
|
406
406
|
}
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
|
+
if (response.status === 400 && data?.error === "INVALID_AGENT_ID") {
|
|
410
|
+
const message = typeof data?.message === "string" ? data.message : "Agent identifier must be a canonical ASTRA-* id.";
|
|
411
|
+
return {
|
|
412
|
+
success: true,
|
|
413
|
+
attemptId: typeof data?.attemptId === "string" ? data.attemptId : void 0,
|
|
414
|
+
access: {
|
|
415
|
+
allowed: false,
|
|
416
|
+
reason: "invalid_agent_id",
|
|
417
|
+
failures: [
|
|
418
|
+
{
|
|
419
|
+
dimension: "identity.invalid_agent_id",
|
|
420
|
+
message,
|
|
421
|
+
guidance: typeof data?.guidance === "string" ? data.guidance : "Present your canonical ASTRA-* id (discover it via GET /api/agents/request-registration/{requestId} after owner approval)."
|
|
422
|
+
}
|
|
423
|
+
]
|
|
424
|
+
}
|
|
425
|
+
};
|
|
426
|
+
}
|
|
409
427
|
if (!response.ok) {
|
|
410
428
|
if (response.status === 401) {
|
|
411
429
|
return {
|
|
@@ -545,7 +563,7 @@ async function verify(config, request, options) {
|
|
|
545
563
|
name: apiResponse.agent.name,
|
|
546
564
|
trustScore: apiResponse.agent.trustScore,
|
|
547
565
|
trustLevel: getTrustLevel(apiResponse.agent.trustScore),
|
|
548
|
-
|
|
566
|
+
blockchainAnchored: apiResponse.agent.blockchainStatus === "anchored",
|
|
549
567
|
status: apiResponse.agent.agentStatus
|
|
550
568
|
} : void 0;
|
|
551
569
|
const developer = apiResponse.developer ? {
|