feat(n8n): add get-logs action

This commit is contained in:
zap
2026-03-12 16:45:19 +00:00
parent c1f851b451
commit aa0914f734
6 changed files with 90 additions and 22 deletions

View File

@@ -30,3 +30,12 @@
- Final fix: switched `append_log` to use n8n workflow static data (`$getWorkflowStaticData('global')`) under key `actionLog`, capped to the latest 200 entries.
- Verified persisted state via the n8n API: `staticData.global.actionLog` contains the live test record for request `live-log-003`.
- Conclusion: for small recent operational breadcrumbs, workflow static data is the right sink here; MinIO is better reserved for later archival/rotation/export use cases rather than tiny per-event appends.
- Added action `get_logs` to the live `openclaw-action` workflow and local `n8n-webhook` skill.
- `get_logs` reads from workflow static data key `actionLog`
- default limit `20`, clamped to `1..50`, newest-first
- verified live with request `live-getlogs-001` returning the seed record from `live-log-004`
- Re-verified the three live actions together after the update:
- `append_log` → success
- `get_logs` → success
- `notify` → success
- Refreshed packaged skill artifact again at `/tmp/n8n-skill-dist/n8n-webhook.skill`.