@taico/events 0.0.3 → 0.1.0

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.
@@ -20,6 +20,7 @@ export declare const ThreadWireEvents: {
20
20
  readonly THREAD_TITLE_UPDATED: "thread.title.updated";
21
21
  readonly MESSAGE_CREATED: "thread.message.created";
22
22
  readonly AGENT_ACTIVITY: "thread.agent.activity";
23
+ readonly AGENT_RESPONSE_DELTA: "thread.agent.response.delta";
23
24
  };
24
25
  export type ThreadWireEventName = (typeof ThreadWireEvents)[keyof typeof ThreadWireEvents];
25
26
  /**
@@ -28,7 +29,14 @@ export type ThreadWireEventName = (typeof ThreadWireEvents)[keyof typeof ThreadW
28
29
  export interface TaskSummaryWirePayload {
29
30
  id: string;
30
31
  name: string;
32
+ description: string;
31
33
  status: 'NOT_STARTED' | 'IN_PROGRESS' | 'FOR_REVIEW' | 'DONE';
34
+ assigneeActor: Actor | null;
35
+ createdByActor: Actor;
36
+ tags: TagWirePayload[];
37
+ commentCount: number;
38
+ inputRequests: unknown[];
39
+ updatedAt: string;
32
40
  }
33
41
  /**
34
42
  * Context block summary structure as sent over the wire
@@ -56,16 +64,13 @@ export interface Actor {
56
64
  export interface ThreadWirePayload {
57
65
  id: string;
58
66
  title: string;
59
- createdByActorId: string;
67
+ chatSessionId: string | null;
60
68
  createdByActor: Actor;
61
69
  parentTaskId: string | null;
62
- parentTask: TaskSummaryWirePayload | null;
63
- stateBlockId: string;
64
- stateBlock: ContextBlockSummaryWirePayload;
70
+ stateContextBlockId: string;
65
71
  tags: TagWirePayload[];
66
72
  tasks: TaskSummaryWirePayload[];
67
- contextBlocks: ContextBlockSummaryWirePayload[];
68
- participantActorIds: string[];
73
+ referencedContextBlocks: ContextBlockSummaryWirePayload[];
69
74
  participants: Actor[];
70
75
  rowVersion: number;
71
76
  createdAt: string;
@@ -141,7 +146,19 @@ export interface AgentActivityWireEvent {
141
146
  };
142
147
  actor: MinimalEventActor;
143
148
  }
149
+ /**
150
+ * Agent response delta event
151
+ * Emitted when assistant streaming text chunks are received.
152
+ */
153
+ export interface AgentResponseDeltaWireEvent {
154
+ payload: {
155
+ threadId: string;
156
+ streamId: string;
157
+ delta: string;
158
+ };
159
+ actor: MinimalEventActor;
160
+ }
144
161
  /**
145
162
  * Union type of all thread wire events
146
163
  */
147
- export type ThreadWireEvent = ThreadCreatedWireEvent | ThreadUpdatedWireEvent | ThreadDeletedWireEvent | ThreadTitleUpdatedWireEvent | MessageCreatedWireEvent | AgentActivityWireEvent;
164
+ export type ThreadWireEvent = ThreadCreatedWireEvent | ThreadUpdatedWireEvent | ThreadDeletedWireEvent | ThreadTitleUpdatedWireEvent | MessageCreatedWireEvent | AgentActivityWireEvent | AgentResponseDeltaWireEvent;
@@ -19,6 +19,7 @@ export const ThreadWireEvents = {
19
19
  THREAD_TITLE_UPDATED: 'thread.title.updated',
20
20
  MESSAGE_CREATED: 'thread.message.created',
21
21
  AGENT_ACTIVITY: 'thread.agent.activity',
22
+ AGENT_RESPONSE_DELTA: 'thread.agent.response.delta',
22
23
  };
23
24
  export var ActorType;
24
25
  (function (ActorType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taico/events",
3
- "version": "0.0.3",
3
+ "version": "0.1.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -26,4 +26,4 @@
26
26
  "devDependencies": {
27
27
  "typescript": "^5.6.3"
28
28
  }
29
- }
29
+ }