@escro/plugin-eliza 0.0.0-stage → 0.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/LICENSE +21 -0
- package/README.md +160 -2
- package/characters/escro-buyer.character.json +37 -0
- package/characters/escro-commissioner.character.json +36 -0
- package/dist/index.cjs +3178 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +478 -0
- package/dist/index.d.ts +478 -0
- package/dist/index.js +3150 -0
- package/dist/index.js.map +1 -0
- package/package.json +104 -3
package/package.json
CHANGED
|
@@ -1,6 +1,107 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escro/plugin-eliza",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "elizaOS plugin for Escro conditional-release escrow: commission a worker, fund a 402, and settle the delivery with your own predicate",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://escro.ai",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/escro-ai/escro.ai",
|
|
10
|
+
"directory": "packages/plugin-eliza"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"elizaos",
|
|
14
|
+
"elizaos-plugins",
|
|
15
|
+
"plugin",
|
|
16
|
+
"escro",
|
|
17
|
+
"escrow",
|
|
18
|
+
"solana",
|
|
19
|
+
"usdc",
|
|
20
|
+
"ai-agents"
|
|
21
|
+
],
|
|
22
|
+
"type": "module",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"import": "./dist/index.js",
|
|
26
|
+
"require": "./dist/index.cjs"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"main": "./dist/index.cjs",
|
|
30
|
+
"module": "./dist/index.js",
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=22"
|
|
34
|
+
},
|
|
35
|
+
"agentConfig": {
|
|
36
|
+
"pluginParameters": {
|
|
37
|
+
"ESCRO_WALLET_SECRET": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"description": "Base58-encoded ed25519 secret key for the agent's Solana wallet. Provided via env/secrets; never logged.",
|
|
40
|
+
"required": true,
|
|
41
|
+
"sensitive": true
|
|
42
|
+
},
|
|
43
|
+
"ESCRO_CLUSTER": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "Solana cluster the agent transacts on: 'devnet' or 'mainnet'.",
|
|
46
|
+
"required": false,
|
|
47
|
+
"default": "devnet"
|
|
48
|
+
},
|
|
49
|
+
"ESCRO_RPC_URL": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "Solana RPC endpoint URL. Defaults to the public endpoint for the cluster.",
|
|
52
|
+
"required": false
|
|
53
|
+
},
|
|
54
|
+
"ESCRO_API_URL": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "Escro REST API base URL. Defaults to the public API for the cluster.",
|
|
57
|
+
"required": false
|
|
58
|
+
},
|
|
59
|
+
"ESCRO_SPEND_CAP_USDC": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "The most USDC the agent's wallet may hold in open escrows, each counted as amount plus fee (e.g. '50'). Required on mainnet to commission; never taken from a commission.",
|
|
62
|
+
"required": false
|
|
63
|
+
},
|
|
64
|
+
"ESCRO_CHAT_INPUT_CONSENT": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"description": "Lets a fenced JSON block in a chat message spend the wallet, for every sender, when set to the exact sentence in the README. Unset by default: chat text spends nothing. Ignored when the operator registers authorizeChatInput.",
|
|
67
|
+
"required": false,
|
|
68
|
+
"sensitive": false
|
|
69
|
+
},
|
|
70
|
+
"ESCRO_PAY_402_ALLOW_PRIVATE_HOSTS": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"description": "Set to exactly '1' to let PAY_402 pay a URL whose host is a loopback, link-local or private address (a local worker). Unset by default: such hosts are refused. Any other value fails the action. On mainnet PAY_402 still pays a public host only over https:.",
|
|
73
|
+
"required": false,
|
|
74
|
+
"sensitive": false
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"dependencies": {
|
|
79
|
+
"@escro/sdk": "^0.5.0",
|
|
80
|
+
"@solana/web3.js": "^1.95.8",
|
|
81
|
+
"bs58": "^5.0.0",
|
|
82
|
+
"zod": "^3.23.0"
|
|
83
|
+
},
|
|
84
|
+
"devDependencies": {
|
|
85
|
+
"@escro/shared": "0.1.0",
|
|
86
|
+
"tsup": "^9.0.0",
|
|
87
|
+
"vitest": "^4.0.0"
|
|
88
|
+
},
|
|
89
|
+
"publishConfig": {
|
|
90
|
+
"access": "public"
|
|
91
|
+
},
|
|
92
|
+
"files": [
|
|
93
|
+
"dist",
|
|
94
|
+
"characters",
|
|
95
|
+
"README.md"
|
|
96
|
+
],
|
|
97
|
+
"scripts": {
|
|
98
|
+
"build": "tsup",
|
|
99
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p examples/tsconfig.json",
|
|
100
|
+
"test": "vitest run",
|
|
101
|
+
"lint": "eslint src examples",
|
|
102
|
+
"lint:fix": "eslint src examples --fix",
|
|
103
|
+
"format": "prettier --write src examples characters",
|
|
104
|
+
"format:check": "prettier --check src examples characters",
|
|
105
|
+
"clean": "rm -rf dist *.tsbuildinfo"
|
|
106
|
+
}
|
|
6
107
|
}
|