@cluesmith/codev-types 0.0.1 → 0.0.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cluesmith/codev-types",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Shared TypeScript types for Codev — WebSocket protocol, API shapes, SSE events",
5
5
  "type": "module",
6
6
  "exports": {
package/src/api.ts CHANGED
@@ -110,6 +110,7 @@ export interface OverviewBacklogItem {
110
110
  hasBuilder: boolean;
111
111
  createdAt: string;
112
112
  author?: string;
113
+ assignees?: string[];
113
114
  specPath?: string;
114
115
  planPath?: string;
115
116
  reviewPath?: string;
@@ -137,6 +138,18 @@ export interface OverviewData {
137
138
 
138
139
  // --- Team (GET /workspace/:path/api/team) ---
139
140
 
141
+ export interface ReviewBlockingEntry {
142
+ direction: 'authored' | 'reviewing';
143
+ otherName: string;
144
+ otherGithub: string;
145
+ pr: {
146
+ number: number;
147
+ title: string;
148
+ url: string;
149
+ createdAt: string;
150
+ };
151
+ }
152
+
140
153
  export interface TeamMemberGitHubData {
141
154
  assignedIssues: { number: number; title: string; url: string }[];
142
155
  openPRs: { number: number; title: string; url: string }[];
@@ -144,6 +157,7 @@ export interface TeamMemberGitHubData {
144
157
  mergedPRs: { number: number; title: string; url: string; mergedAt: string }[];
145
158
  closedIssues: { number: number; title: string; url: string; closedAt: string }[];
146
159
  };
160
+ reviewBlocking: ReviewBlockingEntry[];
147
161
  }
148
162
 
149
163
  export interface TeamApiMember {
package/src/index.ts CHANGED
@@ -8,6 +8,7 @@ export {
8
8
  export {
9
9
  type SSEEventType,
10
10
  type SSENotification,
11
+ type BuilderSpawnedPayload,
11
12
  } from './sse.js';
12
13
 
13
14
  export {
@@ -23,6 +24,7 @@ export {
23
24
  type OverviewRecentlyClosed,
24
25
  type OverviewData,
25
26
  type TeamMemberGitHubData,
27
+ type ReviewBlockingEntry,
26
28
  type TeamApiMember,
27
29
  type TeamApiMessage,
28
30
  type TeamApiResponse,
package/src/sse.ts CHANGED
@@ -5,6 +5,7 @@
5
5
  export type SSEEventType =
6
6
  | 'overview-changed'
7
7
  | 'notification'
8
+ | 'builder-spawned'
8
9
  | 'connected'
9
10
  | 'heartbeat';
10
11
 
@@ -14,3 +15,13 @@ export interface SSENotification {
14
15
  body: string;
15
16
  workspace?: string;
16
17
  }
18
+
19
+ /**
20
+ * Payload carried in the `body` field of a `builder-spawned` notification.
21
+ * JSON-stringified on the wire; parse before use.
22
+ */
23
+ export interface BuilderSpawnedPayload {
24
+ terminalId: string;
25
+ roleId: string;
26
+ workspacePath: string;
27
+ }