@chorus-aidlc/chorus-openclaw-plugin 0.1.6 → 0.1.7
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/package.json +1 -1
- package/src/event-router.ts +6 -2
package/package.json
CHANGED
package/src/event-router.ts
CHANGED
|
@@ -165,8 +165,12 @@ export class ChorusEventRouter {
|
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
private handleMentioned(n: NotificationDetail): void {
|
|
168
|
+
const mentionGuidance = this.buildMentionGuidance(n, n.entityType);
|
|
169
|
+
|
|
168
170
|
this.triggerAgent(
|
|
169
|
-
`[Chorus] You were @mentioned in ${n.entityType} '${n.entityTitle}' (projectUuid: ${n.projectUuid}): ${n.message}
|
|
171
|
+
`[Chorus] You were @mentioned in ${n.entityType} '${n.entityTitle}' (entityType: ${n.entityType}, entityUuid: ${n.entityUuid}, projectUuid: ${n.projectUuid}): ${n.message}\n` +
|
|
172
|
+
`Review the ${n.entityType} content and use chorus_get_comments (targetType: "${n.entityType}", targetUuid: "${n.entityUuid}") to see the full conversation, then respond.\n` +
|
|
173
|
+
mentionGuidance,
|
|
170
174
|
{ notificationUuid: n.uuid, action: "mentioned", entityUuid: n.entityUuid, projectUuid: n.projectUuid }
|
|
171
175
|
);
|
|
172
176
|
}
|
|
@@ -195,7 +199,7 @@ export class ChorusEventRouter {
|
|
|
195
199
|
|
|
196
200
|
const reviewInfo = n.message.includes("Note: ") ? ` Review note: "${n.message.split("Note: ").pop()}"` : "";
|
|
197
201
|
this.triggerAgent(
|
|
198
|
-
`[Chorus] Proposal '${n.entityTitle}' was APPROVED (projectUuid: ${n.projectUuid})!${reviewInfo} Documents and tasks have been created. ` +
|
|
202
|
+
`[Chorus] Proposal '${n.entityTitle}' was APPROVED (proposalUuid: ${n.entityUuid}, projectUuid: ${n.projectUuid})!${reviewInfo} Documents and tasks have been created. ` +
|
|
199
203
|
`Use chorus_get_available_tasks with projectUuid: "${n.projectUuid}" to see the new tasks ready for work.\n` +
|
|
200
204
|
mentionGuidance,
|
|
201
205
|
{ notificationUuid: n.uuid, action: "proposal_approved", entityUuid: n.entityUuid, projectUuid: n.projectUuid }
|