feat(n8n): add get-logs action
This commit is contained in:
@@ -51,6 +51,7 @@ Call the preferred action-bus route:
|
||||
|
||||
```bash
|
||||
scripts/call-action.sh append_log --args '{"text":"backup complete"}' --request-id auto
|
||||
scripts/call-action.sh get_logs --args '{"limit":5}' --pretty
|
||||
```
|
||||
|
||||
Call a test webhook while editing a flow:
|
||||
@@ -98,6 +99,7 @@ This keeps the external surface small while letting n8n route internally.
|
||||
Use the included workflow asset when you want a ready-made local router for:
|
||||
|
||||
- `append_log` → append small records into workflow static data (`actionLog`, latest 200)
|
||||
- `get_logs` → read the most recent retained records from `actionLog`
|
||||
- `notify` → send through the current Telegram + Discord notification paths
|
||||
- normalized JSON success/failure responses
|
||||
- unknown-action handling
|
||||
|
||||
Reference in New Issue
Block a user