Skip to content

Commit 49f079f

Browse files
Update Copilot dependency and re-run codegen
1 parent 03bb2eb commit 49f079f

File tree

6 files changed

+102
-40
lines changed

6 files changed

+102
-40
lines changed

dotnet/src/Generated/SessionEvents.cs

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ namespace GitHub.Copilot.SDK;
2222
[JsonDerivedType(typeof(AssistantMessageDeltaEvent), "assistant.message_delta")]
2323
[JsonDerivedType(typeof(AssistantReasoningEvent), "assistant.reasoning")]
2424
[JsonDerivedType(typeof(AssistantReasoningDeltaEvent), "assistant.reasoning_delta")]
25+
[JsonDerivedType(typeof(AssistantStreamingDeltaEvent), "assistant.streaming_delta")]
2526
[JsonDerivedType(typeof(AssistantTurnEndEvent), "assistant.turn_end")]
2627
[JsonDerivedType(typeof(AssistantTurnStartEvent), "assistant.turn_start")]
2728
[JsonDerivedType(typeof(AssistantUsageEvent), "assistant.usage")]
@@ -42,6 +43,7 @@ namespace GitHub.Copilot.SDK;
4243
[JsonDerivedType(typeof(SessionShutdownEvent), "session.shutdown")]
4344
[JsonDerivedType(typeof(SessionSnapshotRewindEvent), "session.snapshot_rewind")]
4445
[JsonDerivedType(typeof(SessionStartEvent), "session.start")]
46+
[JsonDerivedType(typeof(SessionTaskCompleteEvent), "session.task_complete")]
4547
[JsonDerivedType(typeof(SessionTitleChangedEvent), "session.title_changed")]
4648
[JsonDerivedType(typeof(SessionTruncationEvent), "session.truncation")]
4749
[JsonDerivedType(typeof(SessionUsageInfoEvent), "session.usage_info")]
@@ -315,6 +317,18 @@ public partial class SessionCompactionCompleteEvent : SessionEvent
315317
public required SessionCompactionCompleteData Data { get; set; }
316318
}
317319

320+
/// <summary>
321+
/// Event: session.task_complete
322+
/// </summary>
323+
public partial class SessionTaskCompleteEvent : SessionEvent
324+
{
325+
[JsonIgnore]
326+
public override string Type => "session.task_complete";
327+
328+
[JsonPropertyName("data")]
329+
public required SessionTaskCompleteData Data { get; set; }
330+
}
331+
318332
/// <summary>
319333
/// Event: user.message
320334
/// </summary>
@@ -387,6 +401,18 @@ public partial class AssistantReasoningDeltaEvent : SessionEvent
387401
public required AssistantReasoningDeltaData Data { get; set; }
388402
}
389403

404+
/// <summary>
405+
/// Event: assistant.streaming_delta
406+
/// </summary>
407+
public partial class AssistantStreamingDeltaEvent : SessionEvent
408+
{
409+
[JsonIgnore]
410+
public override string Type => "assistant.streaming_delta";
411+
412+
[JsonPropertyName("data")]
413+
public required AssistantStreamingDeltaData Data { get; set; }
414+
}
415+
390416
/// <summary>
391417
/// Event: assistant.message
392418
/// </summary>
@@ -899,6 +925,13 @@ public partial class SessionCompactionCompleteData
899925
public string? RequestId { get; set; }
900926
}
901927

928+
public partial class SessionTaskCompleteData
929+
{
930+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
931+
[JsonPropertyName("summary")]
932+
public string? Summary { get; set; }
933+
}
934+
902935
public partial class UserMessageData
903936
{
904937
[JsonPropertyName("content")]
@@ -955,6 +988,12 @@ public partial class AssistantReasoningDeltaData
955988
public required string DeltaContent { get; set; }
956989
}
957990

991+
public partial class AssistantStreamingDeltaData
992+
{
993+
[JsonPropertyName("totalResponseSizeBytes")]
994+
public required double TotalResponseSizeBytes { get; set; }
995+
}
996+
958997
public partial class AssistantMessageData
959998
{
960999
[JsonPropertyName("messageId")]
@@ -996,10 +1035,6 @@ public partial class AssistantMessageDeltaData
9961035
[JsonPropertyName("deltaContent")]
9971036
public required string DeltaContent { get; set; }
9981037

999-
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
1000-
[JsonPropertyName("totalResponseSizeBytes")]
1001-
public double? TotalResponseSizeBytes { get; set; }
1002-
10031038
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
10041039
[JsonPropertyName("parentToolCallId")]
10051040
public string? ParentToolCallId { get; set; }
@@ -1736,6 +1771,8 @@ public enum SystemMessageDataRole
17361771
[JsonSerializable(typeof(AssistantReasoningDeltaData))]
17371772
[JsonSerializable(typeof(AssistantReasoningDeltaEvent))]
17381773
[JsonSerializable(typeof(AssistantReasoningEvent))]
1774+
[JsonSerializable(typeof(AssistantStreamingDeltaData))]
1775+
[JsonSerializable(typeof(AssistantStreamingDeltaEvent))]
17391776
[JsonSerializable(typeof(AssistantTurnEndData))]
17401777
[JsonSerializable(typeof(AssistantTurnEndEvent))]
17411778
[JsonSerializable(typeof(AssistantTurnStartData))]
@@ -1783,6 +1820,8 @@ public enum SystemMessageDataRole
17831820
[JsonSerializable(typeof(SessionStartData))]
17841821
[JsonSerializable(typeof(SessionStartDataContext))]
17851822
[JsonSerializable(typeof(SessionStartEvent))]
1823+
[JsonSerializable(typeof(SessionTaskCompleteData))]
1824+
[JsonSerializable(typeof(SessionTaskCompleteEvent))]
17861825
[JsonSerializable(typeof(SessionTitleChangedData))]
17871826
[JsonSerializable(typeof(SessionTitleChangedEvent))]
17881827
[JsonSerializable(typeof(SessionTruncationData))]

go/generated_session_events.go

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nodejs/package-lock.json

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nodejs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"author": "GitHub",
4141
"license": "MIT",
4242
"dependencies": {
43-
"@github/copilot": "^0.0.414",
43+
"@github/copilot": "^0.0.416",
4444
"vscode-jsonrpc": "^8.2.1",
4545
"zod": "^4.3.6"
4646
},

nodejs/src/generated/session-events.ts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,16 @@ export type SessionEvent =
281281
requestId?: string;
282282
};
283283
}
284+
| {
285+
id: string;
286+
timestamp: string;
287+
parentId: string | null;
288+
ephemeral?: boolean;
289+
type: "session.task_complete";
290+
data: {
291+
summary?: string;
292+
};
293+
}
284294
| {
285295
id: string;
286296
timestamp: string;
@@ -380,6 +390,16 @@ export type SessionEvent =
380390
deltaContent: string;
381391
};
382392
}
393+
| {
394+
id: string;
395+
timestamp: string;
396+
parentId: string | null;
397+
ephemeral: true;
398+
type: "assistant.streaming_delta";
399+
data: {
400+
totalResponseSizeBytes: number;
401+
};
402+
}
383403
| {
384404
id: string;
385405
timestamp: string;
@@ -411,7 +431,6 @@ export type SessionEvent =
411431
data: {
412432
messageId: string;
413433
deltaContent: string;
414-
totalResponseSizeBytes?: number;
415434
parentToolCallId?: string;
416435
};
417436
}

0 commit comments

Comments
 (0)