feat: enhance notification URLs with issue links and tool aliases

Improvements to notification system for better traceability:

1. DEV Completion Notifications:
   - Always include issue URL (📋 Issue: ...)
   - Include PR/MR URL when available (🔗 PR: ...)
   - Issue URL serves as fallback when PR/MR not found
   - Both URLs shown when PR/MR exists for maximum traceability

2. QA Pass Notifications:
   - Now include issue URL (📋 Issue: ...)
   - Provides direct link to resolved issue

3. Tool Aliases:
   - Added 'work_finish' as alias for 'task_complete'
   - Added 'work_start' as alias for 'task_pickup'
   - Added 'status' as alias for 'queue_status'
   - Matches naming used in AGENTS.md documentation

Example DEV notification:
 DEV done #106 — Enhanced notification URLs
📋 Issue: https://github.com/user/repo/issues/106
🔗 PR: https://github.com/user/repo/pull/107
Moved to QA queue.

Example QA notification:
🎉 QA PASS #106 — All tests passed
📋 Issue: https://github.com/user/repo/issues/106
Issue closed.

Addresses issue #106
This commit is contained in:
Lauren ten Hoor
2026-02-10 20:32:51 +08:00
parent 7339a8395d
commit 2260f39383
2 changed files with 17 additions and 6 deletions

View File

@@ -65,10 +65,10 @@ const plugin = {
register(api: OpenClawPluginApi) {
// Agent tools (primary interface — agent calls these directly)
api.registerTool(createTaskPickupTool(api), {
names: ["task_pickup"],
names: ["task_pickup", "work_start"],
});
api.registerTool(createTaskCompleteTool(api), {
names: ["task_complete"],
names: ["task_complete", "work_finish"],
});
api.registerTool(createTaskUpdateTool(api), {
names: ["task_update"],
@@ -77,7 +77,7 @@ const plugin = {
names: ["task_comment"],
});
api.registerTool(createQueueStatusTool(api), {
names: ["queue_status"],
names: ["queue_status", "status"],
});
api.registerTool(createSessionHealthTool(api), {
names: ["session_health"],