@astrasyncai/verification-gateway 3.7.1 → 3.8.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 (52) hide show
  1. package/README.md +99 -11
  2. package/dist/adapter-interface/interface.d.mts +2 -2
  3. package/dist/adapter-interface/interface.d.ts +2 -2
  4. package/dist/adapters/express.d.mts +2 -2
  5. package/dist/adapters/express.d.ts +2 -2
  6. package/dist/adapters/mcp.d.mts +1 -1
  7. package/dist/adapters/mcp.d.ts +1 -1
  8. package/dist/adapters/nextjs.d.mts +2 -2
  9. package/dist/adapters/nextjs.d.ts +2 -2
  10. package/dist/adapters/sdk.d.mts +2 -2
  11. package/dist/adapters/sdk.d.ts +2 -2
  12. package/dist/agent/index.d.mts +2 -2
  13. package/dist/agent/index.d.ts +2 -2
  14. package/dist/browser/browser-adapter.d.mts +2 -2
  15. package/dist/browser/browser-adapter.d.ts +2 -2
  16. package/dist/claude-code/claude-code-adapter.d.mts +2 -2
  17. package/dist/claude-code/claude-code-adapter.d.ts +2 -2
  18. package/dist/cli/index.d.mts +2 -2
  19. package/dist/cli/index.d.ts +2 -2
  20. package/dist/cursor/cursor-adapter.d.mts +2 -2
  21. package/dist/cursor/cursor-adapter.d.ts +2 -2
  22. package/dist/cursor/extension.d.mts +2 -2
  23. package/dist/cursor/extension.d.ts +2 -2
  24. package/dist/{express-DQhDzNAt.d.ts → express-C8nJGi5P.d.ts} +1 -1
  25. package/dist/{express-BnMO-H3y.d.mts → express-Di_hnZZS.d.mts} +1 -1
  26. package/dist/gateway/gateway.d.mts +2 -2
  27. package/dist/gateway/gateway.d.ts +2 -2
  28. package/dist/git-trigger/git-hooks.d.mts +2 -2
  29. package/dist/git-trigger/git-hooks.d.ts +2 -2
  30. package/dist/{index-rftma0ln.d.ts → index-CBQr4FGs.d.ts} +1 -1
  31. package/dist/{index-WHKq2v17.d.mts → index-CXcvO9Au.d.mts} +1 -1
  32. package/dist/{index-D8-dvUFA.d.ts → index-CuCkjT7B.d.ts} +1 -1
  33. package/dist/{index-BT_aRn-I.d.mts → index-DALAqct7.d.mts} +1 -1
  34. package/dist/index.d.mts +7 -7
  35. package/dist/index.d.ts +7 -7
  36. package/dist/index.js.map +1 -1
  37. package/dist/index.mjs.map +1 -1
  38. package/dist/local-evaluator/evaluator.d.mts +2 -2
  39. package/dist/local-evaluator/evaluator.d.ts +2 -2
  40. package/dist/{nextjs-DFKYhxe6.d.mts → nextjs-BMAe8ode.d.mts} +1 -1
  41. package/dist/{nextjs-DPj7ZNlq.d.ts → nextjs-IyXWW2KL.d.ts} +1 -1
  42. package/dist/{sdk-Cy3wAmDt.d.mts → sdk-Cn4KcZ5G.d.mts} +1 -1
  43. package/dist/{sdk-CAcHgB5x.d.ts → sdk-ThdA_NtL.d.ts} +1 -1
  44. package/dist/transport/index.d.mts +2 -2
  45. package/dist/transport/index.d.ts +2 -2
  46. package/dist/{types-B-ubjHER.d.mts → types-CSFci5zD.d.mts} +1 -1
  47. package/dist/{types-Bgn5gxHQ.d.ts → types-D1kyMiml.d.ts} +1 -1
  48. package/dist/{types-CKe8O0lR.d.mts → types-DedAJbNI.d.mts} +37 -9
  49. package/dist/{types-CKe8O0lR.d.ts → types-DedAJbNI.d.ts} +37 -9
  50. package/dist/ui/index.d.mts +1 -1
  51. package/dist/ui/index.d.ts +1 -1
  52. package/package.json +1 -1
package/README.md CHANGED
@@ -16,6 +16,7 @@ As of v2.4.0 this is the only npm package you need for AstraSync integration. Pi
16
16
  | **Doing direct verification (no framework)** | `@astrasyncai/verification-gateway/sdk` | `VerificationGatewayClient` with retry / backoff / timeout. |
17
17
  | **Parsing protocol-level credentials** (HTTP / A2A / MCP / x402 / AP2 / MPP) | `@astrasyncai/verification-gateway/transport` | Cross-protocol credential extraction + injection. |
18
18
  | **Evaluating PDLSS offline** (local / hybrid mode) | `@astrasyncai/verification-gateway/gateway` | `AstraSyncGateway` (online / local / hybrid). |
19
+ | **Governing Claude Code with a local policy** | `@astrasyncai/verification-gateway/claude-code` | PreToolUse-hook adapter; `astrasync-guard install-claude-code` sets it up. |
19
20
  | **Receiving webhook callbacks** | `@astrasyncai/verification-gateway/webhooks` | `verifyAstraSyncWebhook()`, `signAstraSyncWebhook()`. |
20
21
 
21
22
  > All subpaths talk to the same backend — `POST /agents/verify-access` for verification, `POST /agents/register` for registration. The contract is shared; the role is just which side of the handshake you're sitting on.
@@ -445,24 +446,67 @@ Poll the `pollUrl` (unauthenticated, rate-limited 60 req/min) to check if the ow
445
446
 
446
447
  ## Settlement Artifacts
447
448
 
448
- On a clean merchant-mediated grant where the owner has a verified payment instrument, verify-access returns a `settlement` object:
449
+ On a clean merchant-mediated grant where the owner has a verified payment instrument, verify-access returns a `settlement` object (wire format **v2**, versioned via the `ver: 2` claim — verify/redeem reject other versions):
449
450
 
450
451
  ```typescript
451
452
  interface SettlementArtifact {
452
453
  type: string; // e.g. "stablecoin_voucher"
453
- artifact: string; // JWS compact-serialised (ES256)
454
- binding: {
455
- merchantId: string;
456
- amount: number;
457
- currency: string;
458
- sessionId: string;
459
- singleUse: true;
460
- expiresAt: string;
461
- };
454
+ artifact: string; // JWS compact-serialised (ES256) — the authoritative, signed object
455
+ binding: FiatSettlementBinding | StablecoinSettlementBinding; // display-only mirror
456
+ }
457
+
458
+ // Stablecoin voucher (v2): integer minor units, pinned settlement asset
459
+ interface StablecoinSettlementBinding {
460
+ merchantId: string;
461
+ amountMinor: number; // integer minor units — no floats anywhere
462
+ assetDecimals: number; // scale for display: amountMinor / 10^assetDecimals
463
+ currency: string; // e.g. "USDC"
464
+ chainId: number; // the chain this voucher settles on
465
+ tokenContract: string; // the token contract it settles in
466
+ asset: string; // CAIP-19 asset id
467
+ sessionId: string;
468
+ singleUse: true;
469
+ expiresAt: string;
470
+ }
471
+
472
+ // Fiat/processor artifacts (Stripe, Skyfire, PayPal): the processor is the
473
+ // unit authority, so the binding carries the major-unit pricing amount
474
+ interface FiatSettlementBinding {
475
+ merchantId: string;
476
+ amount: number;
477
+ currency: string;
478
+ sessionId: string;
479
+ singleUse: true;
480
+ expiresAt: string;
462
481
  }
463
482
  ```
464
483
 
465
- Verify vouchers server-side via `POST /api/wallets/voucher/verify` or fetch the signing keys from `GET /api/wallets/voucher/.well-known/jwks.json`.
484
+ **`binding` is display-only convenience.** It mirrors the signed JWT claims but is not itself signed — render it, never settle from it. Decide from the server-verified payload returned by redeem.
485
+
486
+ ### Voucher lifecycle (server-to-server)
487
+
488
+ | Endpoint | Purpose |
489
+ | ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
490
+ | `POST /api/wallets/voucher/verify` | Verify signature/issuer and return the decoded payload — proves authenticity only, no spend |
491
+ | `POST /api/wallets/voucher/redeem` | Atomic single-use spend: first caller gets `200 redeemed`, replays get `409 already_redeemed` (with first-redeemer forensics), revoked vouchers get `409 revoked` |
492
+ | `GET /api/wallets/voucher/.well-known/jwks.json` | Public JWKS for offline signature verification |
493
+
494
+ Redeem accepts optional `expectedAmountMinor` / `expectedCurrency` — mismatches are rejected (`400 amount_mismatch` / `currency_mismatch`) **before** the voucher is spent, so a mismatch never burns the voucher. Vouchers carry `aud` = your merchant id; declare `merchantId` on verify/redeem to have the audience check enforced (standard JWT libraries give you the same check free on offline verification).
495
+
496
+ Single-use is enforced server-side by an atomic claim on the voucher id — N of your nodes presenting the same voucher get exactly one `200` and N−1 `409`s, with no coordination between them.
497
+
498
+ ### What a successful redeem proves — and what it doesn't
499
+
500
+ A `200` from redeem proves, at that moment:
501
+
502
+ - the voucher is **authentic** — signed by AstraSync, unexpired, format-valid;
503
+ - the agent was **authorised** to commit this spend when the voucher was minted — it passed verification and the amount was within the owner's configured limits;
504
+ - the voucher is bound to **you** (audience = your merchant id) and to the stated amount, currency, and settlement asset;
505
+ - the spend is **exactly-once** — this voucher was never redeemed before, was not revoked, and can never be redeemed again.
506
+
507
+ It does **not** verify that funds exist in, or are reserved from, the owner's wallet. The voucher is a payment _authorization_, not a funds _guarantee_ — today, funds assurance at settlement time comes from your own settlement rail, exactly as it does for any other payer.
508
+
509
+ **Coming later:** a settlement upgrade that makes redemption and funds transfer a single atomic on-chain event. A voucher will only redeem if the funds actually move — if the wallet can't cover it, the redemption fails and the voucher is not consumed — making "redeemed" and "funded" the same event. The wire format already carries what that needs (pinned chain, token contract, integer minor units), so no integration change is expected beyond opting in.
466
510
 
467
511
  ## Configuration
468
512
 
@@ -563,8 +607,52 @@ The SDK sets `X-Astra-Gateway-Mode` on every response that's been through the ga
563
607
 
564
608
  Pre-v2.4.2 used the value `pass-through` — renamed in v2.4.2 to disambiguate "gate skipped" from "request allowed".
565
609
 
610
+ ## Local Guard for Claude Code
611
+
612
+ Native governance for Claude Code via its PreToolUse hook (subpath `./claude-code`, shipped in v3.7.0). Every tool call — file reads/writes, shell commands, web fetches, and optionally MCP tools — is evaluated against a local PDLSS policy before it runs. No proxy, no cloud dependency.
613
+
614
+ ```bash
615
+ npm install -g @astrasyncai/verification-gateway
616
+
617
+ # User-level install (~/.claude + ~/.astrasync); add --project for repo-scoped
618
+ astrasync-guard install-claude-code
619
+ ```
620
+
621
+ The installer registers the `astrasync-claude-hook` binary in Claude Code's `settings.json` and creates `.astrasync/policy.yaml` (the PDLSS policy — re-read on every tool call) plus `.astrasync/guard.json` (guard settings). Flags: `--project` (install into the current repo; a project policy overrides the user-level one), `--wizard` (interactive policy builder), `--active` (start enforcing immediately), `--policy <path>` (use an existing policy file).
622
+
623
+ - **Posture** — installs default to `"posture": "passive"`: decisions are evaluated and written to JSONL traces under `.astrasync/traces/`, nothing is blocked. Flip to `"active"` in `guard.json` to enforce: DENY blocks the tool call with a reason (`permissionDecision: "deny"`), MANUAL_REVIEW routes to Claude Code's own permission prompt (`"ask"`), and ALLOW emits nothing — the guard only tightens, it can never bypass Claude Code's native permission system.
624
+ - **Safe by default** — a machine with no policy file is a silent no-op; a corrupt `guard.json` falls back to enforcing defaults rather than silently loosening the guard. `ASTRASYNC_GUARD_DISABLE=1` turns the hook off; `ASTRASYNC_GUARD_FAIL_OPEN=1` allows on internal hook errors (default is fail-closed in active posture).
625
+ - **MCP governance** — set `"governMcp": true` to govern MCP tools too; `mcp__{server}__{tool}` maps to purpose `{server}.{tool}` in the policy.
626
+ - **Uninstall** — `astrasync-guard uninstall-claude-code` removes the hook; policy and traces are left in place.
627
+
566
628
  ## Changelog
567
629
 
630
+ ### v3.8.0 — Settlement voucher wire format v2
631
+
632
+ - **BREAKING type change:** `SettlementArtifact.binding` is now a union — `StablecoinSettlementBinding` (v2: `amountMinor` integer minor units + `assetDecimals`, pinned `chainId`/`tokenContract`/CAIP-19 `asset`) or `FiatSettlementBinding` (processor artifacts keep major-unit `amount`). The float `amount` field is gone from stablecoin bindings. Matches the server's `ver: 2` wire format, which redeems/verifies reject other versions of.
633
+ - Settlement Artifacts docs rewritten: voucher lifecycle endpoints (verify / redeem / JWKS), expected-value gates on redeem, revocation semantics, and an explicit **guarantee boundary** — what a successful redeem proves and what it doesn't (redeem proves the authorization is live and single-use; it does not check or move funds).
634
+
635
+ ### v3.7.1 — ChallengeHandler auto-include
636
+
637
+ - `ChallengeHandler` auto-includes the incoming `counterpartyId`/`counterpartyUrl` in the challenge response when no counterparties were pre-registered via `registerPending()` — the correct default for agents that never call it. Pre-registered whitelists behave exactly as before.
638
+ - Runtime-challenge docs: auto-include default + double-appended-path warning.
639
+
640
+ ### v3.7.0 — AstraSync Local Guard for Claude Code
641
+
642
+ - `./claude-code` subpath export — Layer 4 Local Guard adapter for Claude Code's PreToolUse hook (see the Local Guard section above). Strictly tightening: DENY → `deny`, MANUAL_REVIEW → `ask`, ALLOW → no output.
643
+ - `astrasync-claude-hook` binary + `astrasync-guard install-claude-code` / `uninstall-claude-code` installer commands.
644
+
645
+ ### v3.6.0 — Step-up hold-and-poll
646
+
647
+ - Opt-in `stepUpMaxWaitMs` / `stepUpPollIntervalMs` on `GatewayConfig`: middleware holds a `step_up_required` request, polls the approval, and on `approved` re-verifies cache-bypassed so the backend redeems the single-use approval. Non-approved outcomes deny with `stepUpOutcome` (`denied | expired | consumed | timeout`) and an `X-Astra-Step-Up` header. OFF by default.
648
+ - `awaitStepUpApproval()` / `pollStepUpStatus()` exported for direct use.
649
+ - `reportUnregisteredAttempt` sends the configured `counterpartyId` (anon-lead attribution is id-first) and omits a null `counterpartyUrl`.
650
+
651
+ ### v3.5.0 — Partner feedback round
652
+
653
+ - `extractTransactionValue` option on Express middleware — opt-in upfront value extraction so PDLSS limit evaluation runs at middleware time (`authorizeSettlement()` remains the required fail-closed settlement gate).
654
+ - Settlement architecture: merchant-mediated grants are voucher-primary — only crypto wallets mint settlement artifacts; fiat instruments log a diagnostic and do not mint.
655
+
568
656
  ### v3.4.0 — Type alignment for LMAX settlement + step-up approval
569
657
 
570
658
  - `StepUpApprovalInfo` and `SettlementArtifact` interfaces added to `VerificationResult`
@@ -1,6 +1,6 @@
1
1
  import { AstraSyncGateway } from '../gateway/gateway.mjs';
2
- import { A as AgentAction, I as InterceptResult, P as PDLSSContext, V as VerificationDecision } from '../types-B-ubjHER.mjs';
3
- import '../types-CKe8O0lR.mjs';
2
+ import { A as AgentAction, I as InterceptResult, P as PDLSSContext, V as VerificationDecision } from '../types-CSFci5zD.mjs';
3
+ import '../types-DedAJbNI.mjs';
4
4
 
5
5
  /**
6
6
  * PlatformAdapter Interface
@@ -1,6 +1,6 @@
1
1
  import { AstraSyncGateway } from '../gateway/gateway.js';
2
- import { A as AgentAction, I as InterceptResult, P as PDLSSContext, V as VerificationDecision } from '../types-Bgn5gxHQ.js';
3
- import '../types-CKe8O0lR.js';
2
+ import { A as AgentAction, I as InterceptResult, P as PDLSSContext, V as VerificationDecision } from '../types-D1kyMiml.js';
3
+ import '../types-DedAJbNI.js';
4
4
 
5
5
  /**
6
6
  * PlatformAdapter Interface
@@ -1,3 +1,3 @@
1
1
  import 'express';
2
- import '../types-CKe8O0lR.mjs';
3
- export { c as createMiddleware, a as extractAstraSyncCredentials } from '../express-BnMO-H3y.mjs';
2
+ import '../types-DedAJbNI.mjs';
3
+ export { c as createMiddleware, a as extractAstraSyncCredentials } from '../express-Di_hnZZS.mjs';
@@ -1,3 +1,3 @@
1
1
  import 'express';
2
- import '../types-CKe8O0lR.js';
3
- export { c as createMiddleware, a as extractAstraSyncCredentials } from '../express-DQhDzNAt.js';
2
+ import '../types-DedAJbNI.js';
3
+ export { c as createMiddleware, a as extractAstraSyncCredentials } from '../express-C8nJGi5P.js';
@@ -1,5 +1,5 @@
1
1
  import { Request, Response, RequestHandler } from 'express';
2
- import { a as AccessLevel, G as GatewayConfig, n as VerificationResult } from '../types-CKe8O0lR.mjs';
2
+ import { a as AccessLevel, G as GatewayConfig, q as VerificationResult } from '../types-DedAJbNI.mjs';
3
3
 
4
4
  /**
5
5
  * MCP server-side helpers — companion to `transport/mcp.ts` (which handles the
@@ -1,5 +1,5 @@
1
1
  import { Request, Response, RequestHandler } from 'express';
2
- import { a as AccessLevel, G as GatewayConfig, n as VerificationResult } from '../types-CKe8O0lR.js';
2
+ import { a as AccessLevel, G as GatewayConfig, q as VerificationResult } from '../types-DedAJbNI.js';
3
3
 
4
4
  /**
5
5
  * MCP server-side helpers — companion to `transport/mcp.ts` (which handles the
@@ -1,3 +1,3 @@
1
1
  import 'next/server';
2
- import '../types-CKe8O0lR.mjs';
3
- export { c as createMatcherConfig, a as createMiddleware } from '../nextjs-DFKYhxe6.mjs';
2
+ import '../types-DedAJbNI.mjs';
3
+ export { c as createMatcherConfig, a as createMiddleware } from '../nextjs-BMAe8ode.mjs';
@@ -1,3 +1,3 @@
1
1
  import 'next/server';
2
- import '../types-CKe8O0lR.js';
3
- export { c as createMatcherConfig, a as createMiddleware } from '../nextjs-DPj7ZNlq.js';
2
+ import '../types-DedAJbNI.js';
3
+ export { c as createMatcherConfig, a as createMiddleware } from '../nextjs-IyXWW2KL.js';
@@ -1,2 +1,2 @@
1
- import '../types-CKe8O0lR.mjs';
2
- export { V as VerificationGatewayClient, c as createClient, e as getCapabilities, f as getTrustLevel, h as hasMinimumAccess, v as verifyOnce } from '../sdk-Cy3wAmDt.mjs';
1
+ import '../types-DedAJbNI.mjs';
2
+ export { V as VerificationGatewayClient, c as createClient, e as getCapabilities, f as getTrustLevel, h as hasMinimumAccess, v as verifyOnce } from '../sdk-Cn4KcZ5G.mjs';
@@ -1,2 +1,2 @@
1
- import '../types-CKe8O0lR.js';
2
- export { V as VerificationGatewayClient, c as createClient, e as getCapabilities, f as getTrustLevel, h as hasMinimumAccess, v as verifyOnce } from '../sdk-CAcHgB5x.js';
1
+ import '../types-DedAJbNI.js';
2
+ export { V as VerificationGatewayClient, c as createClient, e as getCapabilities, f as getTrustLevel, h as hasMinimumAccess, v as verifyOnce } from '../sdk-ThdA_NtL.js';
@@ -1,2 +1,2 @@
1
- export { A as AgentClient, a as AstraSyncSdkError, C as ChallengeHandler, O as OwnershipMismatchError, P as PDLSSConfig, T as TransportPDLSS, f as formatPDLSSForTransport, p as parsePDLSSFromTransport, r as recordDecision } from '../index-BT_aRn-I.mjs';
2
- import '../types-CKe8O0lR.mjs';
1
+ export { A as AgentClient, a as AstraSyncSdkError, C as ChallengeHandler, O as OwnershipMismatchError, P as PDLSSConfig, T as TransportPDLSS, f as formatPDLSSForTransport, p as parsePDLSSFromTransport, r as recordDecision } from '../index-DALAqct7.mjs';
2
+ import '../types-DedAJbNI.mjs';
@@ -1,2 +1,2 @@
1
- export { A as AgentClient, a as AstraSyncSdkError, C as ChallengeHandler, O as OwnershipMismatchError, P as PDLSSConfig, T as TransportPDLSS, f as formatPDLSSForTransport, p as parsePDLSSFromTransport, r as recordDecision } from '../index-D8-dvUFA.js';
2
- import '../types-CKe8O0lR.js';
1
+ export { A as AgentClient, a as AstraSyncSdkError, C as ChallengeHandler, O as OwnershipMismatchError, P as PDLSSConfig, T as TransportPDLSS, f as formatPDLSSForTransport, p as parsePDLSSFromTransport, r as recordDecision } from '../index-CuCkjT7B.js';
2
+ import '../types-DedAJbNI.js';
@@ -1,7 +1,7 @@
1
1
  import { PlatformAdapter, AdapterConfig } from '../adapter-interface/interface.mjs';
2
- import { P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-B-ubjHER.mjs';
2
+ import { P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-CSFci5zD.mjs';
3
3
  import '../gateway/gateway.mjs';
4
- import '../types-CKe8O0lR.mjs';
4
+ import '../types-DedAJbNI.mjs';
5
5
 
6
6
  /**
7
7
  * @astrasyncai/adapter-openclaw-browser
@@ -1,7 +1,7 @@
1
1
  import { PlatformAdapter, AdapterConfig } from '../adapter-interface/interface.js';
2
- import { P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-Bgn5gxHQ.js';
2
+ import { P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-D1kyMiml.js';
3
3
  import '../gateway/gateway.js';
4
- import '../types-CKe8O0lR.js';
4
+ import '../types-DedAJbNI.js';
5
5
 
6
6
  /**
7
7
  * @astrasyncai/adapter-openclaw-browser
@@ -1,7 +1,7 @@
1
1
  import { PlatformAdapter, AdapterConfig } from '../adapter-interface/interface.mjs';
2
- import { A as AgentAction, I as InterceptResult, P as PDLSSContext, V as VerificationDecision } from '../types-B-ubjHER.mjs';
2
+ import { A as AgentAction, I as InterceptResult, P as PDLSSContext, V as VerificationDecision } from '../types-CSFci5zD.mjs';
3
3
  import '../gateway/gateway.mjs';
4
- import '../types-CKe8O0lR.mjs';
4
+ import '../types-DedAJbNI.mjs';
5
5
 
6
6
  /**
7
7
  * @astrasyncai/adapter-claude-code
@@ -1,7 +1,7 @@
1
1
  import { PlatformAdapter, AdapterConfig } from '../adapter-interface/interface.js';
2
- import { A as AgentAction, I as InterceptResult, P as PDLSSContext, V as VerificationDecision } from '../types-Bgn5gxHQ.js';
2
+ import { A as AgentAction, I as InterceptResult, P as PDLSSContext, V as VerificationDecision } from '../types-D1kyMiml.js';
3
3
  import '../gateway/gateway.js';
4
- import '../types-CKe8O0lR.js';
4
+ import '../types-DedAJbNI.js';
5
5
 
6
6
  /**
7
7
  * @astrasyncai/adapter-claude-code
@@ -1,6 +1,6 @@
1
- import { b as LocalPurposeRule, d as LocalScope, c as LocalRiskThresholds, L as LocalPolicy, P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-B-ubjHER.mjs';
1
+ import { b as LocalPurposeRule, d as LocalScope, c as LocalRiskThresholds, L as LocalPolicy, P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-CSFci5zD.mjs';
2
2
  import { PlatformAdapter, AdapterConfig } from '../adapter-interface/interface.mjs';
3
- import '../types-CKe8O0lR.mjs';
3
+ import '../types-DedAJbNI.mjs';
4
4
  import '../gateway/gateway.mjs';
5
5
 
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { b as LocalPurposeRule, d as LocalScope, c as LocalRiskThresholds, L as LocalPolicy, P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-Bgn5gxHQ.js';
1
+ import { b as LocalPurposeRule, d as LocalScope, c as LocalRiskThresholds, L as LocalPolicy, P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-D1kyMiml.js';
2
2
  import { PlatformAdapter, AdapterConfig } from '../adapter-interface/interface.js';
3
- import '../types-CKe8O0lR.js';
3
+ import '../types-DedAJbNI.js';
4
4
  import '../gateway/gateway.js';
5
5
 
6
6
  /**
@@ -1,7 +1,7 @@
1
1
  import { PlatformAdapter, AdapterConfig } from '../adapter-interface/interface.mjs';
2
- import { P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-B-ubjHER.mjs';
2
+ import { P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-CSFci5zD.mjs';
3
3
  import '../gateway/gateway.mjs';
4
- import '../types-CKe8O0lR.mjs';
4
+ import '../types-DedAJbNI.mjs';
5
5
 
6
6
  /**
7
7
  * @astrasyncai/adapter-cursor
@@ -1,7 +1,7 @@
1
1
  import { PlatformAdapter, AdapterConfig } from '../adapter-interface/interface.js';
2
- import { P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-Bgn5gxHQ.js';
2
+ import { P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-D1kyMiml.js';
3
3
  import '../gateway/gateway.js';
4
- import '../types-CKe8O0lR.js';
4
+ import '../types-DedAJbNI.js';
5
5
 
6
6
  /**
7
7
  * @astrasyncai/adapter-cursor
@@ -1,8 +1,8 @@
1
1
  import { VSCodeAPI } from './cursor-adapter.mjs';
2
2
  import '../adapter-interface/interface.mjs';
3
3
  import '../gateway/gateway.mjs';
4
- import '../types-B-ubjHER.mjs';
5
- import '../types-CKe8O0lR.mjs';
4
+ import '../types-CSFci5zD.mjs';
5
+ import '../types-DedAJbNI.mjs';
6
6
 
7
7
  /**
8
8
  * VS Code Extension entry point for AstraSync Local Guard (Cursor/VS Code).
@@ -1,8 +1,8 @@
1
1
  import { VSCodeAPI } from './cursor-adapter.js';
2
2
  import '../adapter-interface/interface.js';
3
3
  import '../gateway/gateway.js';
4
- import '../types-Bgn5gxHQ.js';
5
- import '../types-CKe8O0lR.js';
4
+ import '../types-D1kyMiml.js';
5
+ import '../types-DedAJbNI.js';
6
6
 
7
7
  /**
8
8
  * VS Code Extension entry point for AstraSync Local Guard (Cursor/VS Code).
@@ -1,5 +1,5 @@
1
1
  import { RequestHandler, Request } from 'express';
2
- import { n as VerificationResult, e as ExpressMiddlewareOptions, c as AstraSyncCredentials } from './types-CKe8O0lR.js';
2
+ import { q as VerificationResult, e as ExpressMiddlewareOptions, c as AstraSyncCredentials } from './types-DedAJbNI.js';
3
3
 
4
4
  /**
5
5
  * AstraSync Universal Verification Gateway - Express Middleware
@@ -1,5 +1,5 @@
1
1
  import { RequestHandler, Request } from 'express';
2
- import { n as VerificationResult, e as ExpressMiddlewareOptions, c as AstraSyncCredentials } from './types-CKe8O0lR.mjs';
2
+ import { q as VerificationResult, e as ExpressMiddlewareOptions, c as AstraSyncCredentials } from './types-DedAJbNI.mjs';
3
3
 
4
4
  /**
5
5
  * AstraSync Universal Verification Gateway - Express Middleware
@@ -1,5 +1,5 @@
1
- import { a as AstraSyncGatewayConfig, P as PDLSSContext, V as VerificationDecision } from '../types-B-ubjHER.mjs';
2
- import '../types-CKe8O0lR.mjs';
1
+ import { a as AstraSyncGatewayConfig, P as PDLSSContext, V as VerificationDecision } from '../types-CSFci5zD.mjs';
2
+ import '../types-DedAJbNI.mjs';
3
3
 
4
4
  /**
5
5
  * AstraSyncGateway — Primary API surface for agent verification.
@@ -1,5 +1,5 @@
1
- import { a as AstraSyncGatewayConfig, P as PDLSSContext, V as VerificationDecision } from '../types-Bgn5gxHQ.js';
2
- import '../types-CKe8O0lR.js';
1
+ import { a as AstraSyncGatewayConfig, P as PDLSSContext, V as VerificationDecision } from '../types-D1kyMiml.js';
2
+ import '../types-DedAJbNI.js';
3
3
 
4
4
  /**
5
5
  * AstraSyncGateway — Primary API surface for agent verification.
@@ -1,6 +1,6 @@
1
1
  import { AstraSyncGateway } from '../gateway/gateway.mjs';
2
- import { V as VerificationDecision, P as PDLSSContext } from '../types-B-ubjHER.mjs';
3
- import '../types-CKe8O0lR.mjs';
2
+ import { V as VerificationDecision, P as PDLSSContext } from '../types-CSFci5zD.mjs';
3
+ import '../types-DedAJbNI.mjs';
4
4
 
5
5
  /**
6
6
  * Git Trigger — Enterprise git push / PR verification
@@ -1,6 +1,6 @@
1
1
  import { AstraSyncGateway } from '../gateway/gateway.js';
2
- import { V as VerificationDecision, P as PDLSSContext } from '../types-Bgn5gxHQ.js';
3
- import '../types-CKe8O0lR.js';
2
+ import { V as VerificationDecision, P as PDLSSContext } from '../types-D1kyMiml.js';
3
+ import '../types-DedAJbNI.js';
4
4
 
5
5
  /**
6
6
  * Git Trigger — Enterprise git push / PR verification
@@ -1,4 +1,4 @@
1
- import { c as AstraSyncCredentials, g as ProtocolTransport } from './types-CKe8O0lR.js';
1
+ import { c as AstraSyncCredentials, g as ProtocolTransport } from './types-DedAJbNI.js';
2
2
  import { JWK } from 'jose';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { c as AstraSyncCredentials, g as ProtocolTransport } from './types-CKe8O0lR.mjs';
1
+ import { c as AstraSyncCredentials, g as ProtocolTransport } from './types-DedAJbNI.mjs';
2
2
  import { JWK } from 'jose';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { c as AstraSyncCredentials, g as ProtocolTransport, G as GatewayConfig } from './types-CKe8O0lR.js';
1
+ import { c as AstraSyncCredentials, g as ProtocolTransport, G as GatewayConfig } from './types-DedAJbNI.js';
2
2
 
3
3
  /**
4
4
  * AgentClient — Credential Presentation
@@ -1,4 +1,4 @@
1
- import { c as AstraSyncCredentials, g as ProtocolTransport, G as GatewayConfig } from './types-CKe8O0lR.mjs';
1
+ import { c as AstraSyncCredentials, g as ProtocolTransport, G as GatewayConfig } from './types-DedAJbNI.mjs';
2
2
 
3
3
  /**
4
4
  * AgentClient — Credential Presentation
package/dist/index.d.mts CHANGED
@@ -1,12 +1,12 @@
1
- import { b as AgentCredentials, G as GatewayConfig, a as AccessLevel, V as VerificationRequest, n as VerificationResult, j as StepUpApprovalInfo, l as StepUpOutcome, k as StepUpApprovalStatus, E as EnhancedVerificationResult, A as AccessFailure } from './types-CKe8O0lR.mjs';
2
- export { c as AstraSyncCredentials, C as CommerceShieldProps, d as CounterpartyType, e as ExpressMiddlewareOptions, f as GuidanceInfo, N as NextJsMiddlewareOptions, P as PDLSSInfo, g as ProtocolTransport, R as RouteAccessConfig, h as RuntimeChallengeResult, S as SDKOptions, i as SettlementArtifact, T as TokenGuidance, m as TrustLevel, o as VerifiedAgent, p as VerifiedDeveloper, q as VerifiedOrganization } from './types-CKe8O0lR.mjs';
3
- export { A as ACCESS_LEVEL_DESCRIPTIONS, a as ACCESS_LEVEL_HIERARCHY, b as AccessCapabilities, D as DEFAULT_TRUST_THRESHOLDS, T as TRUST_LEVEL_RANGES, d as determineAccessLevel, g as getAccessLevelForScore, e as getCapabilities, f as getTrustLevel, h as hasMinimumAccess, s as sdk } from './sdk-Cy3wAmDt.mjs';
4
- export { e as express } from './express-BnMO-H3y.mjs';
5
- export { n as nextjs } from './nextjs-DFKYhxe6.mjs';
6
- export { aR as extractMcpCredentials, bg as setMcpMeta, b1 as transport } from './index-WHKq2v17.mjs';
1
+ import { b as AgentCredentials, G as GatewayConfig, a as AccessLevel, V as VerificationRequest, q as VerificationResult, m as StepUpApprovalInfo, o as StepUpOutcome, n as StepUpApprovalStatus, E as EnhancedVerificationResult, A as AccessFailure } from './types-DedAJbNI.mjs';
2
+ export { c as AstraSyncCredentials, C as CommerceShieldProps, d as CounterpartyType, e as ExpressMiddlewareOptions, F as FiatSettlementBinding, f as GuidanceInfo, N as NextJsMiddlewareOptions, P as PDLSSInfo, g as ProtocolTransport, R as RouteAccessConfig, h as RuntimeChallengeResult, S as SDKOptions, i as SettlementArtifact, j as SettlementArtifactBinding, k as SettlementArtifactBindingBase, l as StablecoinSettlementBinding, T as TokenGuidance, p as TrustLevel, r as VerifiedAgent, s as VerifiedDeveloper, t as VerifiedOrganization } from './types-DedAJbNI.mjs';
3
+ export { A as ACCESS_LEVEL_DESCRIPTIONS, a as ACCESS_LEVEL_HIERARCHY, b as AccessCapabilities, D as DEFAULT_TRUST_THRESHOLDS, T as TRUST_LEVEL_RANGES, d as determineAccessLevel, g as getAccessLevelForScore, e as getCapabilities, f as getTrustLevel, h as hasMinimumAccess, s as sdk } from './sdk-Cn4KcZ5G.mjs';
4
+ export { e as express } from './express-Di_hnZZS.mjs';
5
+ export { n as nextjs } from './nextjs-BMAe8ode.mjs';
6
+ export { aR as extractMcpCredentials, bg as setMcpMeta, b1 as transport } from './index-CXcvO9Au.mjs';
7
7
  export { McpMiddlewareOptions, ToolGateConfig, createMcpMiddleware } from './adapters/mcp.mjs';
8
8
  export { AgentProtocol, AgentRecord, AstraSync, AstraSyncConfig, AstraSyncError, AuthenticationError, BuildGuidanceParams, FrameworkConfig, GuidanceEnvelope, HealthResponse, KYDRequiredError, ModelConfig, PDLSSConfig, PDLSSDuration, PDLSSLimits, PDLSSPurpose, PDLSSScope, PDLSSSelfInstantiation, PendingRegistrationResponse, PollRegistrationResult, RegisterOptions, RegisterResult, RegistrationDeniedError, RegistrationExpiredError, RegistrationResponse, RegistrationTimeoutError, VerifyResponse, WaitForApprovalOptions, buildGuidance } from './registration/index.mjs';
9
- export { A as AgentClient, C as ChallengeHandler, i as agent, r as recordDecision } from './index-BT_aRn-I.mjs';
9
+ export { A as AgentClient, C as ChallengeHandler, i as agent, r as recordDecision } from './index-DALAqct7.mjs';
10
10
  import 'express';
11
11
  import 'next/server';
12
12
  import 'jose';
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { b as AgentCredentials, G as GatewayConfig, a as AccessLevel, V as VerificationRequest, n as VerificationResult, j as StepUpApprovalInfo, l as StepUpOutcome, k as StepUpApprovalStatus, E as EnhancedVerificationResult, A as AccessFailure } from './types-CKe8O0lR.js';
2
- export { c as AstraSyncCredentials, C as CommerceShieldProps, d as CounterpartyType, e as ExpressMiddlewareOptions, f as GuidanceInfo, N as NextJsMiddlewareOptions, P as PDLSSInfo, g as ProtocolTransport, R as RouteAccessConfig, h as RuntimeChallengeResult, S as SDKOptions, i as SettlementArtifact, T as TokenGuidance, m as TrustLevel, o as VerifiedAgent, p as VerifiedDeveloper, q as VerifiedOrganization } from './types-CKe8O0lR.js';
3
- export { A as ACCESS_LEVEL_DESCRIPTIONS, a as ACCESS_LEVEL_HIERARCHY, b as AccessCapabilities, D as DEFAULT_TRUST_THRESHOLDS, T as TRUST_LEVEL_RANGES, d as determineAccessLevel, g as getAccessLevelForScore, e as getCapabilities, f as getTrustLevel, h as hasMinimumAccess, s as sdk } from './sdk-CAcHgB5x.js';
4
- export { e as express } from './express-DQhDzNAt.js';
5
- export { n as nextjs } from './nextjs-DPj7ZNlq.js';
6
- export { aR as extractMcpCredentials, bg as setMcpMeta, b1 as transport } from './index-rftma0ln.js';
1
+ import { b as AgentCredentials, G as GatewayConfig, a as AccessLevel, V as VerificationRequest, q as VerificationResult, m as StepUpApprovalInfo, o as StepUpOutcome, n as StepUpApprovalStatus, E as EnhancedVerificationResult, A as AccessFailure } from './types-DedAJbNI.js';
2
+ export { c as AstraSyncCredentials, C as CommerceShieldProps, d as CounterpartyType, e as ExpressMiddlewareOptions, F as FiatSettlementBinding, f as GuidanceInfo, N as NextJsMiddlewareOptions, P as PDLSSInfo, g as ProtocolTransport, R as RouteAccessConfig, h as RuntimeChallengeResult, S as SDKOptions, i as SettlementArtifact, j as SettlementArtifactBinding, k as SettlementArtifactBindingBase, l as StablecoinSettlementBinding, T as TokenGuidance, p as TrustLevel, r as VerifiedAgent, s as VerifiedDeveloper, t as VerifiedOrganization } from './types-DedAJbNI.js';
3
+ export { A as ACCESS_LEVEL_DESCRIPTIONS, a as ACCESS_LEVEL_HIERARCHY, b as AccessCapabilities, D as DEFAULT_TRUST_THRESHOLDS, T as TRUST_LEVEL_RANGES, d as determineAccessLevel, g as getAccessLevelForScore, e as getCapabilities, f as getTrustLevel, h as hasMinimumAccess, s as sdk } from './sdk-ThdA_NtL.js';
4
+ export { e as express } from './express-C8nJGi5P.js';
5
+ export { n as nextjs } from './nextjs-IyXWW2KL.js';
6
+ export { aR as extractMcpCredentials, bg as setMcpMeta, b1 as transport } from './index-CBQr4FGs.js';
7
7
  export { McpMiddlewareOptions, ToolGateConfig, createMcpMiddleware } from './adapters/mcp.js';
8
8
  export { AgentProtocol, AgentRecord, AstraSync, AstraSyncConfig, AstraSyncError, AuthenticationError, BuildGuidanceParams, FrameworkConfig, GuidanceEnvelope, HealthResponse, KYDRequiredError, ModelConfig, PDLSSConfig, PDLSSDuration, PDLSSLimits, PDLSSPurpose, PDLSSScope, PDLSSSelfInstantiation, PendingRegistrationResponse, PollRegistrationResult, RegisterOptions, RegisterResult, RegistrationDeniedError, RegistrationExpiredError, RegistrationResponse, RegistrationTimeoutError, VerifyResponse, WaitForApprovalOptions, buildGuidance } from './registration/index.js';
9
- export { A as AgentClient, C as ChallengeHandler, i as agent, r as recordDecision } from './index-D8-dvUFA.js';
9
+ export { A as AgentClient, C as ChallengeHandler, i as agent, r as recordDecision } from './index-CuCkjT7B.js';
10
10
  import 'express';
11
11
  import 'next/server';
12
12
  import 'jose';