aamp-openclaw-plugin 0.1.37 → 0.1.39
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 +15 -1
- package/bin/aamp-openclaw-plugin.mjs +50 -44
- package/dist/file-store.js +73 -0
- package/dist/file-store.js.map +2 -2
- package/dist/index.js +718 -134
- package/dist/index.js.map +4 -4
- package/openclaw.plugin.json +21 -0
- package/package.json +57 -1
- package/skills/SKILL.md +0 -1
package/openclaw.plugin.json
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
"id": "aamp-openclaw-plugin",
|
|
3
3
|
"kind": "channel",
|
|
4
4
|
"channels": ["aamp"],
|
|
5
|
+
"contracts": {
|
|
6
|
+
"tools": [
|
|
7
|
+
"aamp_directory_search",
|
|
8
|
+
"aamp_send_result",
|
|
9
|
+
"aamp_send_help",
|
|
10
|
+
"aamp_pending_tasks",
|
|
11
|
+
"aamp_pairing_code",
|
|
12
|
+
"aamp_cancel_task",
|
|
13
|
+
"aamp_dispatch_task",
|
|
14
|
+
"aamp_check_protocol",
|
|
15
|
+
"aamp_download_attachment"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
5
18
|
"channelConfigs": {
|
|
6
19
|
"aamp": {
|
|
7
20
|
"label": "AAMP",
|
|
@@ -15,6 +28,8 @@
|
|
|
15
28
|
"cardText": { "type": "string" },
|
|
16
29
|
"cardFile": { "type": "string" },
|
|
17
30
|
"credentialsFile": { "type": "string", "default": "~/.openclaw/extensions/aamp-openclaw-plugin/.credentials.json" },
|
|
31
|
+
"pairingFile": { "type": "string", "default": "~/.openclaw/extensions/aamp-openclaw-plugin/.pairing.json" },
|
|
32
|
+
"senderPoliciesFile": { "type": "string", "default": "~/.openclaw/extensions/aamp-openclaw-plugin/.sender-policies.json" },
|
|
18
33
|
"senderPolicies": {
|
|
19
34
|
"type": "array",
|
|
20
35
|
"items": {
|
|
@@ -41,6 +56,8 @@
|
|
|
41
56
|
"cardText": { "label": "Card Text", "placeholder": "Detailed capability card text", "promptOnInstall": false },
|
|
42
57
|
"cardFile": { "label": "Card File", "placeholder": "/absolute/path/to/card.md", "promptOnInstall": false },
|
|
43
58
|
"credentialsFile": { "label": "Credentials File", "placeholder": "~/.openclaw/extensions/aamp-openclaw-plugin/.credentials.json", "promptOnInstall": false },
|
|
59
|
+
"pairingFile": { "label": "Pairing File", "placeholder": "~/.openclaw/extensions/aamp-openclaw-plugin/.pairing.json", "promptOnInstall": false },
|
|
60
|
+
"senderPoliciesFile": { "label": "Paired Senders File", "placeholder": "~/.openclaw/extensions/aamp-openclaw-plugin/.sender-policies.json", "promptOnInstall": false },
|
|
44
61
|
"senderPolicies": { "label": "Sender Policies", "placeholder": "[{\"sender\":\"meegle-bot@meshmail.ai\",\"dispatchContextRules\":{\"project_key\":[\"proj_123\"]}}]", "promptOnInstall": true }
|
|
45
62
|
}
|
|
46
63
|
}
|
|
@@ -55,6 +72,8 @@
|
|
|
55
72
|
"cardText": { "type": "string" },
|
|
56
73
|
"cardFile": { "type": "string" },
|
|
57
74
|
"credentialsFile": { "type": "string", "default": "~/.openclaw/extensions/aamp-openclaw-plugin/.credentials.json" },
|
|
75
|
+
"pairingFile": { "type": "string", "default": "~/.openclaw/extensions/aamp-openclaw-plugin/.pairing.json" },
|
|
76
|
+
"senderPoliciesFile": { "type": "string", "default": "~/.openclaw/extensions/aamp-openclaw-plugin/.sender-policies.json" },
|
|
58
77
|
"senderPolicies": {
|
|
59
78
|
"type": "array",
|
|
60
79
|
"items": {
|
|
@@ -81,6 +100,8 @@
|
|
|
81
100
|
"cardText": { "label": "Card Text", "placeholder": "Detailed capability card text", "promptOnInstall": false },
|
|
82
101
|
"cardFile": { "label": "Card File", "placeholder": "/absolute/path/to/card.md", "promptOnInstall": false },
|
|
83
102
|
"credentialsFile": { "label": "Credentials File", "placeholder": "~/.openclaw/extensions/aamp-openclaw-plugin/.credentials.json", "promptOnInstall": false },
|
|
103
|
+
"pairingFile": { "label": "Pairing File", "placeholder": "~/.openclaw/extensions/aamp-openclaw-plugin/.pairing.json", "promptOnInstall": false },
|
|
104
|
+
"senderPoliciesFile": { "label": "Paired Senders File", "placeholder": "~/.openclaw/extensions/aamp-openclaw-plugin/.sender-policies.json", "promptOnInstall": false },
|
|
84
105
|
"senderPolicies": { "label": "Sender Policies", "placeholder": "[{\"sender\":\"meegle-bot@meshmail.ai\",\"dispatchContextRules\":{\"project_key\":[\"proj_123\"]}}]", "promptOnInstall": true }
|
|
85
106
|
},
|
|
86
107
|
"skills": ["./skills"]
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"skills"
|
|
8
8
|
],
|
|
9
9
|
"license": "MIT",
|
|
10
|
-
"version": "0.1.
|
|
10
|
+
"version": "0.1.39",
|
|
11
11
|
"description": "AAMP Agent Mail Protocol — OpenClaw plugin. Gives OpenClaw an AAMP mailbox identity and lets it receive, process and reply to AAMP tasks.",
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "dist/index.js",
|
|
@@ -19,6 +19,19 @@
|
|
|
19
19
|
"extensions": [
|
|
20
20
|
"./dist/index.js"
|
|
21
21
|
],
|
|
22
|
+
"contracts": {
|
|
23
|
+
"tools": [
|
|
24
|
+
"aamp_directory_search",
|
|
25
|
+
"aamp_send_result",
|
|
26
|
+
"aamp_send_help",
|
|
27
|
+
"aamp_pending_tasks",
|
|
28
|
+
"aamp_pairing_code",
|
|
29
|
+
"aamp_cancel_task",
|
|
30
|
+
"aamp_dispatch_task",
|
|
31
|
+
"aamp_check_protocol",
|
|
32
|
+
"aamp_download_attachment"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
22
35
|
"channelConfigs": {
|
|
23
36
|
"aamp": {
|
|
24
37
|
"label": "AAMP",
|
|
@@ -58,6 +71,16 @@
|
|
|
58
71
|
"default": "~/.openclaw/extensions/aamp-openclaw-plugin/.credentials.json",
|
|
59
72
|
"description": "Path to persist AAMP credentials between restarts"
|
|
60
73
|
},
|
|
74
|
+
"pairingFile": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"default": "~/.openclaw/extensions/aamp-openclaw-plugin/.pairing.json",
|
|
77
|
+
"description": "Path to persist the current one-time AAMP pairing code"
|
|
78
|
+
},
|
|
79
|
+
"senderPoliciesFile": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"default": "~/.openclaw/extensions/aamp-openclaw-plugin/.sender-policies.json",
|
|
82
|
+
"description": "Path to persist senders approved by pair.request"
|
|
83
|
+
},
|
|
61
84
|
"senderPolicies": {
|
|
62
85
|
"type": "array",
|
|
63
86
|
"items": {
|
|
@@ -120,6 +143,16 @@
|
|
|
120
143
|
"placeholder": "~/.openclaw/extensions/aamp-openclaw-plugin/.credentials.json",
|
|
121
144
|
"promptOnInstall": false
|
|
122
145
|
},
|
|
146
|
+
"pairingFile": {
|
|
147
|
+
"label": "Pairing File",
|
|
148
|
+
"placeholder": "~/.openclaw/extensions/aamp-openclaw-plugin/.pairing.json",
|
|
149
|
+
"promptOnInstall": false
|
|
150
|
+
},
|
|
151
|
+
"senderPoliciesFile": {
|
|
152
|
+
"label": "Paired Senders File",
|
|
153
|
+
"placeholder": "~/.openclaw/extensions/aamp-openclaw-plugin/.sender-policies.json",
|
|
154
|
+
"promptOnInstall": false
|
|
155
|
+
},
|
|
123
156
|
"senderPolicies": {
|
|
124
157
|
"label": "Sender Policies",
|
|
125
158
|
"placeholder": "[{\"sender\":\"meegle-bot@meshmail.ai\",\"dispatchContextRules\":{\"project_key\":[\"proj_123\"]}}]",
|
|
@@ -163,6 +196,16 @@
|
|
|
163
196
|
"default": "~/.openclaw/extensions/aamp-openclaw-plugin/.credentials.json",
|
|
164
197
|
"description": "Path to persist AAMP credentials between restarts"
|
|
165
198
|
},
|
|
199
|
+
"pairingFile": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"default": "~/.openclaw/extensions/aamp-openclaw-plugin/.pairing.json",
|
|
202
|
+
"description": "Path to persist the current one-time AAMP pairing code"
|
|
203
|
+
},
|
|
204
|
+
"senderPoliciesFile": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"default": "~/.openclaw/extensions/aamp-openclaw-plugin/.sender-policies.json",
|
|
207
|
+
"description": "Path to persist senders approved by pair.request"
|
|
208
|
+
},
|
|
166
209
|
"senderPolicies": {
|
|
167
210
|
"type": "array",
|
|
168
211
|
"items": {
|
|
@@ -225,6 +268,16 @@
|
|
|
225
268
|
"placeholder": "~/.openclaw/extensions/aamp-openclaw-plugin/.credentials.json",
|
|
226
269
|
"promptOnInstall": false
|
|
227
270
|
},
|
|
271
|
+
"pairingFile": {
|
|
272
|
+
"label": "Pairing File",
|
|
273
|
+
"placeholder": "~/.openclaw/extensions/aamp-openclaw-plugin/.pairing.json",
|
|
274
|
+
"promptOnInstall": false
|
|
275
|
+
},
|
|
276
|
+
"senderPoliciesFile": {
|
|
277
|
+
"label": "Paired Senders File",
|
|
278
|
+
"placeholder": "~/.openclaw/extensions/aamp-openclaw-plugin/.sender-policies.json",
|
|
279
|
+
"promptOnInstall": false
|
|
280
|
+
},
|
|
228
281
|
"senderPolicies": {
|
|
229
282
|
"label": "Sender Policies",
|
|
230
283
|
"placeholder": "[{\"sender\":\"meegle-bot@meshmail.ai\",\"dispatchContextRules\":{\"project_key\":[\"proj_123\"]}}]",
|
|
@@ -240,11 +293,14 @@
|
|
|
240
293
|
"test": "vitest run"
|
|
241
294
|
},
|
|
242
295
|
"dependencies": {
|
|
296
|
+
"aamp-sdk": "^0.1.20",
|
|
243
297
|
"nodemailer": "^6.9.10",
|
|
298
|
+
"qrcode-terminal": "^0.12.0",
|
|
244
299
|
"ws": "^8.16.0"
|
|
245
300
|
},
|
|
246
301
|
"devDependencies": {
|
|
247
302
|
"@types/node": "^20.11.30",
|
|
303
|
+
"@types/qrcode-terminal": "^0.12.2",
|
|
248
304
|
"esbuild": "^0.20.2",
|
|
249
305
|
"typescript": "^5.4.3",
|
|
250
306
|
"vitest": "^1.6.1"
|
package/skills/SKILL.md
CHANGED
|
@@ -145,7 +145,6 @@ Authorization: Basic {mailboxToken}
|
|
|
145
145
|
"taskId": "uuid",
|
|
146
146
|
"fromAgent": "meego-abc123@aamp.local",
|
|
147
147
|
"title": "Review PR #42",
|
|
148
|
-
"contextLinks": ["https://github.com/org/repo/pull/42"],
|
|
149
148
|
"expiresAt": "2026-03-17T09:00:00.000Z",
|
|
150
149
|
"dispatchedAt": "2026-03-17T08:00:00.000Z",
|
|
151
150
|
"createdAt": "2026-03-17T08:00:00.000Z"
|