@trucore/openclaw-atf 0.1.0 → 0.1.1
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 +47 -0
- package/openclaw.plugin.json +2 -1
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -190,11 +190,58 @@ Full docs: [docs/runbooks/agent-adoption-atf.md](../../docs/runbooks/agent-adopt
|
|
|
190
190
|
|
|
191
191
|
---
|
|
192
192
|
|
|
193
|
+
## Jupiter Endpoint Configuration
|
|
194
|
+
|
|
195
|
+
ATF swap commands use the canonical Jupiter v6 production endpoint by default:
|
|
196
|
+
|
|
197
|
+
```text
|
|
198
|
+
https://quote-api.jup.ag/v6
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
Override via environment:
|
|
202
|
+
|
|
203
|
+
| Variable | Purpose |
|
|
204
|
+
| --- | --- |
|
|
205
|
+
| `ATF_JUPITER_BASE` | Full override (takes priority over all other settings) |
|
|
206
|
+
| `ATF_JUPITER_API_KEY` | API key for x-api-key header (never logged) |
|
|
207
|
+
| `ATF_JUPITER_PREPROD` | Set to `1` for preprod endpoint (explicit opt-in only) |
|
|
208
|
+
|
|
209
|
+
Or via ATF profile config: `jupiter_quote_url` / `jupiter_swap_url`.
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## Fallback: Direct CLI (if plugin install fails)
|
|
214
|
+
|
|
215
|
+
If `openclaw plugins install @trucore/openclaw-atf` is unavailable:
|
|
216
|
+
|
|
217
|
+
```sh
|
|
218
|
+
# Install ATF CLI directly
|
|
219
|
+
npm install -g @trucore/atf
|
|
220
|
+
|
|
221
|
+
# Bootstrap
|
|
222
|
+
atf bootstrap --recipe bootstrap_local --execute-safe
|
|
223
|
+
|
|
224
|
+
# Protect an intent
|
|
225
|
+
echo '{"chain_id":"solana","intent_type":"swap","intent":{...}}' | atf bot protect --stdin
|
|
226
|
+
|
|
227
|
+
# Verify receipt
|
|
228
|
+
atf receipts verify --receipt sha256:aabbcc...
|
|
229
|
+
|
|
230
|
+
# Report savings
|
|
231
|
+
atf report savings --receipts-dir ./atf_receipts --format json
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
The plugin is an optional convenience layer. All ATF security guarantees
|
|
235
|
+
work identically via direct CLI.
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
193
239
|
## Tests
|
|
194
240
|
|
|
195
241
|
```sh
|
|
196
242
|
cd packages/openclaw-atf
|
|
197
243
|
node --test tests/test_tools.mjs
|
|
244
|
+
node --test tests/test_plugin_package.mjs
|
|
198
245
|
```
|
|
199
246
|
|
|
200
247
|
All tests are offline. No network calls. No ATF CLI required.
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "trucore-atf",
|
|
3
3
|
"name": "TruCore ATF",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"description": "Transaction firewall tools for autonomous finance agents: protect + verify + report savings. ATF evaluates swap, lend, and perps intents against policy before they reach the chain. Never signs. Deny-by-default.",
|
|
6
6
|
"homepage": "https://github.com/trucore-ai/agent-transaction-firewall",
|
|
7
7
|
"main": "src/index.mjs",
|
|
8
|
+
"extensions": ["src/index.mjs"],
|
|
8
9
|
"tools": "optional",
|
|
9
10
|
"configSchema": {
|
|
10
11
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trucore/openclaw-atf",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "OpenClaw plugin — ATF transaction firewall tools for autonomous agents: discover, protect, verify, report savings.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -40,6 +40,11 @@
|
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=18"
|
|
42
42
|
},
|
|
43
|
+
"openclaw": {
|
|
44
|
+
"extensions": [
|
|
45
|
+
"openclaw.plugin.json"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
43
48
|
"peerDependencies": {
|
|
44
49
|
"openclaw": "*"
|
|
45
50
|
},
|
|
@@ -49,7 +54,9 @@
|
|
|
49
54
|
}
|
|
50
55
|
},
|
|
51
56
|
"scripts": {
|
|
52
|
-
"test": "node --test tests/test_tools.mjs"
|
|
57
|
+
"test": "node --test tests/test_tools.mjs",
|
|
58
|
+
"validate": "node tests/test_plugin_package.mjs",
|
|
59
|
+
"prepublishOnly": "npm run validate && npm run test"
|
|
53
60
|
},
|
|
54
61
|
"dependencies": {}
|
|
55
62
|
}
|