webhookagent 1.3.0 → 1.3.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 +3 -1
- package/lib/heartbeat.js +2 -2
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -16,8 +16,10 @@ npm install -g @avniyayin/webhookagent
|
|
|
16
16
|
# Save your key (one-time — loads automatically after this)
|
|
17
17
|
webhookagent config --key=wha_your_key
|
|
18
18
|
|
|
19
|
-
# Start heartbeat
|
|
19
|
+
# Start the heartbeat loop
|
|
20
20
|
webhookagent --fetch --ack
|
|
21
|
+
# Polls → events arrive → fetches from queue → acks → outputs → exits
|
|
22
|
+
# Agent processes → runs RESTART command → back to polling
|
|
21
23
|
|
|
22
24
|
# Single check (one poll, then exit)
|
|
23
25
|
webhookagent --once
|
package/lib/heartbeat.js
CHANGED
|
@@ -362,8 +362,8 @@ async function main() {
|
|
|
362
362
|
// Otherwise match by name (case-insensitive)
|
|
363
363
|
const match = webhooks.webhooks.find(w => w.name.toLowerCase() === f.toLowerCase());
|
|
364
364
|
if (match) {
|
|
365
|
-
log(`Resolved "${f}" → ${match.
|
|
366
|
-
return match.
|
|
365
|
+
log(`Resolved "${f}" → ${match.id}`);
|
|
366
|
+
return match.id;
|
|
367
367
|
}
|
|
368
368
|
log(`WARN: webhook name "${f}" not found, skipping`);
|
|
369
369
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webhookagent",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "WebhookAgent heartbeat runtime — poll, break, process webhook events at your agent's pace",
|
|
5
5
|
"main": "lib/heartbeat.js",
|
|
6
6
|
"bin": {
|
|
@@ -34,5 +34,8 @@
|
|
|
34
34
|
"lib/",
|
|
35
35
|
"README.md",
|
|
36
36
|
"LICENSE"
|
|
37
|
-
]
|
|
37
|
+
],
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"sharp": "^0.34.5"
|
|
40
|
+
}
|
|
38
41
|
}
|