@okxweb3/a2a-openclaw 0.0.0-beta.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/LICENSE +133 -0
- package/README.md +78 -0
- package/dist/index.js +190 -0
- package/openclaw.plugin.json +34 -0
- package/package.json +62 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "okx-a2a",
|
|
3
|
+
"name": "OKX A2A",
|
|
4
|
+
"description": "E2E encrypted wallet-to-agent communication via A2A protocol",
|
|
5
|
+
"version": "0.0.0-beta.1",
|
|
6
|
+
"activation": {
|
|
7
|
+
"onStartup": true
|
|
8
|
+
},
|
|
9
|
+
"contracts": {
|
|
10
|
+
"tools": [
|
|
11
|
+
"xmtp_start_conversation",
|
|
12
|
+
"xmtp_start_evaluate_conversation",
|
|
13
|
+
"xmtp_delete_conversation",
|
|
14
|
+
"xmtp_get_pending_list",
|
|
15
|
+
"xmtp_deny_pending_conversation",
|
|
16
|
+
"xmtp_send",
|
|
17
|
+
"xmtp_get_session_key",
|
|
18
|
+
"xmtp_get_conversation_history",
|
|
19
|
+
"xmtp_dispatch_session",
|
|
20
|
+
"xmtp_prompt_user",
|
|
21
|
+
"xmtp_dispatch_user",
|
|
22
|
+
"xmtp_refresh_agents",
|
|
23
|
+
"xmtp_get_agent_list",
|
|
24
|
+
"xmtp_sessions_query",
|
|
25
|
+
"xmtp_file_upload",
|
|
26
|
+
"xmtp_file_download"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"configSchema": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"properties": {}
|
|
33
|
+
}
|
|
34
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@okxweb3/a2a-openclaw",
|
|
3
|
+
"version": "0.0.0-beta.1",
|
|
4
|
+
"description": "OpenClaw plugin for E2E encrypted wallet-to-agent communication via XMTP",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist/index.js",
|
|
8
|
+
"openclaw.plugin.json"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "node scripts/build.mjs",
|
|
12
|
+
"postbuild": "[ -d ~/.openclaw/extensions/okx-a2a/dist ] && cp dist/index.js ~/.openclaw/extensions/okx-a2a/dist/index.js || true",
|
|
13
|
+
"lint": "eslint src",
|
|
14
|
+
"lint:fix": "eslint src --fix",
|
|
15
|
+
"typecheck": "tsc --noEmit",
|
|
16
|
+
"test:offline": "esbuild scripts/send-offline-message.ts --bundle --platform=node --outfile=dist/send-offline-message.js --alias:@xmtp/node-bindings=./src/native-bindings-shim.js --format=cjs --banner:js=\"var __importMetaUrl=require('url').pathToFileURL(__filename).href;\" --define:import.meta.url=__importMetaUrl && node dist/send-offline-message.js",
|
|
17
|
+
"test:file-transfer": "esbuild scripts/demo-file-transfer.ts --bundle --platform=node --outfile=dist/demo-file-transfer.js --alias:@xmtp/node-bindings=./src/native-bindings-shim.js --format=cjs --banner:js=\"var __importMetaUrl=require('url').pathToFileURL(__filename).href;\" --define:import.meta.url=__importMetaUrl && node dist/demo-file-transfer.js",
|
|
18
|
+
"test:dm-notify": "esbuild scripts/send-dm-notification.ts --bundle --platform=node --outfile=dist/send-dm-notification.js --alias:@xmtp/node-bindings=./src/native-bindings-shim.js --format=cjs --banner:js=\"var __importMetaUrl=require('url').pathToFileURL(__filename).href;\" --define:import.meta.url=__importMetaUrl && node dist/send-dm-notification.js",
|
|
19
|
+
"test:pending-group": "esbuild scripts/send-pending-group.ts --bundle --platform=node --outfile=dist/send-pending-group.js --alias:@xmtp/node-bindings=./src/native-bindings-shim.js --format=cjs --banner:js=\"var __importMetaUrl=require('url').pathToFileURL(__filename).href;\" --define:import.meta.url=__importMetaUrl && node dist/send-pending-group.js",
|
|
20
|
+
"test:offline-group": "esbuild scripts/test-offline-group.ts --bundle --platform=node --outfile=dist/test-offline-group.js --alias:@xmtp/node-bindings=./src/native-bindings-shim.js --format=cjs --banner:js=\"var __importMetaUrl=require('url').pathToFileURL(__filename).href;\" --define:import.meta.url=__importMetaUrl && node dist/test-offline-group.js",
|
|
21
|
+
"test:dump-group": "esbuild scripts/dump-group-messages.ts --bundle --platform=node --outfile=dist/dump-group-messages.js --alias:@xmtp/node-bindings=./src/native-bindings-shim.js --format=cjs --banner:js=\"var __importMetaUrl=require('url').pathToFileURL(__filename).href;\" --define:import.meta.url=__importMetaUrl && node dist/dump-group-messages.js",
|
|
22
|
+
"test:dump-sync": "esbuild scripts/dump-sync-state.ts --bundle --platform=node --outfile=dist/dump-sync-state.js --format=cjs && node dist/dump-sync-state.js",
|
|
23
|
+
"test:dump-consent": "esbuild scripts/dump-consent-states.ts --bundle --platform=node --outfile=dist/dump-consent-states.js --alias:@xmtp/node-bindings=./src/native-bindings-shim.js --format=cjs --banner:js=\"var __importMetaUrl=require('url').pathToFileURL(__filename).href;\" --define:import.meta.url=__importMetaUrl && node dist/dump-consent-states.js",
|
|
24
|
+
"test:check-consent": "esbuild scripts/check-group-consent.ts --bundle --platform=node --outfile=dist/check-group-consent.js --alias:@xmtp/node-bindings=./src/native-bindings-shim.js --format=cjs --banner:js=\"var __importMetaUrl=require('url').pathToFileURL(__filename).href;\" --define:import.meta.url=__importMetaUrl && node dist/check-group-consent.js",
|
|
25
|
+
"test:diagnose-deny": "esbuild scripts/diagnose-deny.ts --bundle --platform=node --outfile=dist/diagnose-deny.js --alias:@xmtp/node-bindings=./src/native-bindings-shim.js --format=cjs --banner:js=\"var __importMetaUrl=require('url').pathToFileURL(__filename).href;\" --define:import.meta.url=__importMetaUrl && node dist/diagnose-deny.js",
|
|
26
|
+
"deploy": "npm run build && cp dist/index.js ~/.openclaw/extensions/okx-a2a/dist/index.js && [ -f .env ] && cp .env ~/.openclaw/extensions/okx-a2a/.env || true",
|
|
27
|
+
"extern_build": "node scripts/extern-build.mjs",
|
|
28
|
+
"pack": "npm run build && node scripts/pack.mjs",
|
|
29
|
+
"version:patch": "npm version patch --no-git-tag-version && node scripts/sync-version.mjs",
|
|
30
|
+
"version:beta": "npm version prerelease --preid=beta --no-git-tag-version && node scripts/sync-version.mjs"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"openclaw",
|
|
34
|
+
"xmtp",
|
|
35
|
+
"a2a",
|
|
36
|
+
"plugin",
|
|
37
|
+
"web3",
|
|
38
|
+
"e2e-encryption"
|
|
39
|
+
],
|
|
40
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"openclaw": ">=2026.4.0"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@xmtp/node-bindings": "1.6.8"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@eslint/js": "^9.39.4",
|
|
49
|
+
"@sentry/node": "^7.74.1",
|
|
50
|
+
"@types/node": "^25.6.0",
|
|
51
|
+
"@xmtp/agent-sdk": "0.0.7",
|
|
52
|
+
"esbuild": "^0.28.0",
|
|
53
|
+
"eslint": "^9.39.4",
|
|
54
|
+
"typescript": "^5.9.3",
|
|
55
|
+
"typescript-eslint": "^8.58.2"
|
|
56
|
+
},
|
|
57
|
+
"openclaw": {
|
|
58
|
+
"extensions": [
|
|
59
|
+
"./dist/index.js"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
}
|