@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/README.md +68 -0
- package/dist/agent.d.ts +14 -0
- package/dist/agent.js +52 -1
- package/dist/cli.js +158 -11
- package/dist/donate.d.ts +2 -2
- package/dist/donate.js +2 -2
- package/dist/escrow.d.ts +154 -0
- package/dist/escrow.js +325 -0
- package/dist/gateway.d.ts +95 -3
- package/dist/gateway.js +157 -7
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -0
- package/dist/showcase.d.ts +1 -1
- package/package.json +4 -2
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";
|
package/dist/showcase.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paydlux/agent",
|
|
3
|
-
"version": "0.1.
|
|
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",
|