@github/copilot-sdk 0.1.18 → 0.1.19

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.
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generated from: @github/copilot/session-events.schema.json
5
5
  * Generated by: scripts/generate-session-types.ts
6
- * Generated at: 2026-01-22T04:11:04.988Z
6
+ * Generated at: 2026-01-26T18:08:33.710Z
7
7
  *
8
8
  * To update these types:
9
9
  * 1. Update the schema in copilot-agent-runtime
@@ -117,6 +117,16 @@ export type SessionEvent = {
117
117
  messagesRemovedDuringTruncation: number;
118
118
  performedBy: string;
119
119
  };
120
+ } | {
121
+ id: string;
122
+ timestamp: string;
123
+ parentId: string | null;
124
+ ephemeral: true;
125
+ type: "session.snapshot_rewind";
126
+ data: {
127
+ upToEventId: string;
128
+ eventsRemoved: number;
129
+ };
120
130
  } | {
121
131
  id: string;
122
132
  timestamp: string;
@@ -165,11 +175,30 @@ export type SessionEvent = {
165
175
  data: {
166
176
  content: string;
167
177
  transformedContent?: string;
168
- attachments?: {
169
- type: "file" | "directory";
178
+ attachments?: ({
179
+ type: "file";
170
180
  path: string;
171
181
  displayName: string;
172
- }[];
182
+ } | {
183
+ type: "directory";
184
+ path: string;
185
+ displayName: string;
186
+ } | {
187
+ type: "selection";
188
+ filePath: string;
189
+ displayName: string;
190
+ text: string;
191
+ selection: {
192
+ start: {
193
+ line: number;
194
+ character: number;
195
+ };
196
+ end: {
197
+ line: number;
198
+ character: number;
199
+ };
200
+ };
201
+ })[];
173
202
  source?: string;
174
203
  };
175
204
  } | {
@@ -315,6 +344,8 @@ export type SessionEvent = {
315
344
  toolCallId: string;
316
345
  toolName: string;
317
346
  arguments?: unknown;
347
+ mcpServerName?: string;
348
+ mcpToolName?: string;
318
349
  parentToolCallId?: string;
319
350
  };
320
351
  } | {
@@ -349,6 +380,7 @@ export type SessionEvent = {
349
380
  isUserRequested?: boolean;
350
381
  result?: {
351
382
  content: string;
383
+ detailedContent?: string;
352
384
  };
353
385
  error?: {
354
386
  message: string;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/github/copilot-sdk.git"
6
6
  },
7
- "version": "0.1.18",
7
+ "version": "0.1.19",
8
8
  "description": "TypeScript SDK for programmatic control of GitHub Copilot CLI via JSON-RPC",
9
9
  "main": "./dist/index.js",
10
10
  "types": "./dist/index.d.ts",