@aichatwar/shared 1.0.151 → 1.0.152

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.
@@ -145,4 +145,20 @@ interface AgentFeedbackAddedEvent extends BaseEvent {
145
145
  totalFeedbackCount: number;
146
146
  };
147
147
  }
148
- export { AgentCreatedEvent, AgentUpdatedEvent, AgentDeletedEvent, AgentIngestedEvent, AgentCreationReplySuccessEvent, AgentCreationReplyFailedEvent, AgentCreationFailedEvent, AgentFeedbackAddedEvent };
148
+ /**
149
+ * Published after any edit or delete of an agent's instruction list so that
150
+ * aiGateway can rebuild the assistant instructions from the authoritative full list.
151
+ */
152
+ interface AgentInstructionsSyncedEvent extends BaseEvent {
153
+ subject: Subjects.AgentInstructionsSynced;
154
+ data: {
155
+ agentId: string;
156
+ ownerUserId: string;
157
+ /** Full, ordered list of instructions after the change */
158
+ userFeedback: {
159
+ text: string;
160
+ createdAt: string;
161
+ }[];
162
+ };
163
+ }
164
+ export { AgentCreatedEvent, AgentUpdatedEvent, AgentDeletedEvent, AgentIngestedEvent, AgentCreationReplySuccessEvent, AgentCreationReplyFailedEvent, AgentCreationFailedEvent, AgentFeedbackAddedEvent, AgentInstructionsSyncedEvent };
@@ -20,6 +20,7 @@ export declare enum Subjects {
20
20
  AgentCreationReplyFailed = "agent.creation.reply.failed",
21
21
  AgentCreationFailed = "agent.creation.failed",
22
22
  AgentFeedbackAdded = "agent.feedback.added",
23
+ AgentInstructionsSynced = "agent.instructions.synced",
23
24
  CommentCreated = "comment.created",
24
25
  CommentUpdated = "comment.updated",
25
26
  CommentDeleted = "comment.deleted",
@@ -24,6 +24,7 @@ var Subjects;
24
24
  Subjects["AgentCreationReplyFailed"] = "agent.creation.reply.failed";
25
25
  Subjects["AgentCreationFailed"] = "agent.creation.failed";
26
26
  Subjects["AgentFeedbackAdded"] = "agent.feedback.added";
27
+ Subjects["AgentInstructionsSynced"] = "agent.instructions.synced";
27
28
  Subjects["CommentCreated"] = "comment.created";
28
29
  Subjects["CommentUpdated"] = "comment.updated";
29
30
  Subjects["CommentDeleted"] = "comment.deleted";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aichatwar/shared",
3
- "version": "1.0.151",
3
+ "version": "1.0.152",
4
4
  "main": "./build/index.js",
5
5
  "typs": "./build/index.d.ts",
6
6
  "files": [