@taico/events 0.10.0 → 0.10.1

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/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  # @taico/events
2
2
 
3
- [![Socket Badge](https://badge.socket.dev/npm/package/@taico/events/0.10.0)](https://badge.socket.dev/npm/package/@taico/events/0.10.0)
3
+ [![Socket Badge](https://badge.socket.dev/npm/package/@taico/events/0.10.1)](https://badge.socket.dev/npm/package/@taico/events/0.10.1)
package/dist/index.d.ts CHANGED
@@ -4,3 +4,4 @@ export * from './types/execution-events.js';
4
4
  export * from './types/execution-traces.js';
5
5
  export * from './types/worker-events.js';
6
6
  export * from './types/pull-request-events.js';
7
+ export * from './types/issue-events.js';
package/dist/index.js CHANGED
@@ -4,3 +4,4 @@ export * from './types/execution-events.js';
4
4
  export * from './types/execution-traces.js';
5
5
  export * from './types/worker-events.js';
6
6
  export * from './types/pull-request-events.js';
7
+ export * from './types/issue-events.js';
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Issue Wire Event Types for WebSocket Communication
3
+ *
4
+ * Contract between the backend issues gateway and frontend consumers.
5
+ */
6
+ export declare const IssueWireEvents: {
7
+ readonly ISSUE_UPDATED: "issue.updated";
8
+ };
9
+ export type IssueWireEventName = (typeof IssueWireEvents)[keyof typeof IssueWireEvents];
10
+ /** Matches IssueResponseDto from the backend. */
11
+ export interface IssueWirePayload {
12
+ id: string;
13
+ key: string;
14
+ host: string;
15
+ owner: string;
16
+ repo: string;
17
+ number: number;
18
+ url: string;
19
+ title: string | null;
20
+ state: 'open' | 'closed' | null;
21
+ stateReason: 'completed' | 'not_planned' | 'duplicate' | 'reopened' | null;
22
+ isPullRequest: boolean;
23
+ authorLogin: string | null;
24
+ labels: Array<{
25
+ name: string;
26
+ color: string | null;
27
+ }>;
28
+ assignees: string[];
29
+ milestone: string | null;
30
+ commentCount: number | null;
31
+ closedAt: string | null;
32
+ githubUpdatedAt: string | null;
33
+ lastFetchedAt: string | null;
34
+ lastError: string | null;
35
+ }
36
+ /** Emitted to everyone subscribed to issues when Taico's copy of one changes. */
37
+ export interface IssueUpdatedWireEvent {
38
+ issue: IssueWirePayload;
39
+ /** What happened since the last look, e.g. "closed", "new_comments". Empty for display-only changes. */
40
+ changes: string[];
41
+ occurredAt: string;
42
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Issue Wire Event Types for WebSocket Communication
3
+ *
4
+ * Contract between the backend issues gateway and frontend consumers.
5
+ */
6
+ export const IssueWireEvents = {
7
+ ISSUE_UPDATED: 'issue.updated',
8
+ };
@@ -177,7 +177,7 @@ export interface ThreadPinnedWireEvent {
177
177
  };
178
178
  actor: MinimalEventActor;
179
179
  }
180
- export type ThreadAgentActivityKind = 'thinking' | 'tool_calling';
180
+ export type ThreadAgentActivityKind = 'thinking' | 'tool_calling' | 'tool_result' | 'step_end' | 'turn_end';
181
181
  /**
182
182
  * Agent activity event
183
183
  * Emitted for ephemeral assistant actions (thinking/tool calling)
@@ -186,6 +186,13 @@ export interface AgentActivityWireEvent {
186
186
  payload: {
187
187
  threadId: string;
188
188
  kind: ThreadAgentActivityKind;
189
+ turnId?: string;
190
+ occurredAt?: string;
191
+ toolCallId?: string;
192
+ toolName?: string;
193
+ input?: string;
194
+ output?: string;
195
+ failed?: boolean;
189
196
  };
190
197
  actor: MinimalEventActor;
191
198
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taico/events",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "PolyForm-Small-Business-1.0.0",