@paydlux/agent 0.1.19 → 0.1.21

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.d.ts CHANGED
@@ -12,3 +12,5 @@ export type { Policy, SpendEvent, Verdict } from "./policy.ts";
12
12
  export { createApprovalChallenge, signChallenge, describeChallenge, submitApproved, challengeQrPayload, parseChallengeQr, } from "./phone.ts";
13
13
  export { txResultName } from "./vault.ts";
14
14
  export type { ApprovalChallenge } from "./phone.ts";
15
+ export { createEscrow, verifyEscrow, readEscrow, claimEscrow, refundEscrow, escrowOutcome, pendingEscrows, escrowBalanceId, assetToHorizonString, assetFromHorizonString, } from "./escrow.ts";
16
+ export type { EscrowTerms, Escrow, EscrowCheck } from "./escrow.ts";
package/dist/index.js CHANGED
@@ -10,3 +10,7 @@ export { PolicyEngine, DEFAULT_POLICY } from "./policy.js";
10
10
  // Split signing: the human's key lives on a phone, not in the seller's process.
11
11
  export { createApprovalChallenge, signChallenge, describeChallenge, submitApproved, challengeQrPayload, parseChallengeQr, } from "./phone.js";
12
12
  export { txResultName } from "./vault.js";
13
+ // Escrow: native claimable balances, not a contract. The buyer locks the money,
14
+ // the seller cannot touch it until the release timer, and the buyer can always
15
+ // take it back before then.
16
+ export { createEscrow, verifyEscrow, readEscrow, claimEscrow, refundEscrow, escrowOutcome, pendingEscrows, escrowBalanceId, assetToHorizonString, assetFromHorizonString, } from "./escrow.js";
@@ -1,5 +1,5 @@
1
1
  import { type Server } from "node:http";
2
- import type { Gateway } from "./gateway";
2
+ import type { Gateway } from "./gateway.ts";
3
3
  export declare const DEMO_HOST = "demo.paydlux.com";
4
4
  export declare const DEMO_ROUTE = "/demo/data";
5
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paydlux/agent",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "Payments for AI agents that a human approves. Spending mandates enforced on the Stellar ledger: 2-of-2 vault, pre-authorised transaction envelopes, HTTP 402, USDC.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -33,6 +33,7 @@
33
33
  },
34
34
  "scripts": {
35
35
  "build": "tsc -p tsconfig.build.json",
36
+ "test:dist": "npm run build && tsx stellar/dist-check.ts",
36
37
  "demo": "node sdk/demo.ts",
37
38
  "demo:stellar": "tsx stellar/demo.ts",
38
39
  "setup:stellar": "tsx stellar/onboard.ts",
@@ -63,7 +64,8 @@
63
64
  "site:qr": "tsx stellar/make-site-qr.ts paydlux-mainnet.json site/qr.svg",
64
65
  "address:check": "tsx stellar/check-address.ts",
65
66
  "test:address": "tsx stellar/address-check.ts",
66
- "site:deploy": "tsx stellar/make-site-qr.ts paydlux-mainnet.json site/qr.svg && wrangler deploy"
67
+ "site:deploy": "tsx stellar/make-site-qr.ts paydlux-mainnet.json site/qr.svg && wrangler deploy",
68
+ "test:escrow": "tsx stellar/escrow-check.ts && tsx stellar/escrow-gateway-check.ts"
67
69
  },
68
70
  "keywords": [
69
71
  "x402",