Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 56 additions & 2 deletions dotnet/src/Generated/SessionEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Generated from: @github/copilot/session-events.schema.json
// Generated by: scripts/generate-session-types.ts
// Generated at: 2026-01-16T00:52:52.781Z
// Generated at: 2026-01-20T04:18:06.775Z
//
// To update these types:
// 1. Update the schema in copilot-agent-runtime
Expand Down Expand Up @@ -78,7 +78,7 @@ internal class SessionEventConverter : JsonConverter<SessionEvent>
throw new JsonException("Missing 'type' discriminator property");

if (!TypeMap.TryGetValue(typeProp, out var targetType))
return null; // Ignore unknown event types for forward compatibility
throw new JsonException($"Unknown event type: {typeProp}");

// Deserialize to the concrete type without using this converter (to avoid recursion)
return (SessionEvent?)obj.Deserialize(targetType, SerializerOptions.WithoutConverter);
Expand Down Expand Up @@ -505,6 +505,10 @@ public partial class SessionStartData
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("selectedModel")]
public string SelectedModel { get; set; }

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("context")]
public SessionStartDataContext? Context { get; set; }
}

public partial class SessionResumeData
Expand All @@ -514,6 +518,10 @@ public partial class SessionResumeData

[JsonPropertyName("eventCount")]
public double EventCount { get; set; }

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("context")]
public SessionResumeDataContext? Context { get; set; }
}

public partial class SessionErrorData
Expand Down Expand Up @@ -969,6 +977,42 @@ public partial class SystemMessageData
public SystemMessageDataMetadata? Metadata { get; set; }
}

public partial class SessionStartDataContext
{
[JsonPropertyName("cwd")]
public string Cwd { get; set; }

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("gitRoot")]
public string GitRoot { get; set; }

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("repository")]
public string Repository { get; set; }

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("branch")]
public string Branch { get; set; }
}

public partial class SessionResumeDataContext
{
[JsonPropertyName("cwd")]
public string Cwd { get; set; }

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("gitRoot")]
public string GitRoot { get; set; }

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("repository")]
public string Repository { get; set; }

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("branch")]
public string Branch { get; set; }
}

public partial class SessionHandoffDataRepository
{
[JsonPropertyName("owner")]
Expand Down Expand Up @@ -1017,6 +1061,10 @@ public partial class AssistantMessageDataToolRequestsItem
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("arguments")]
public object Arguments { get; set; }

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("type")]
public AssistantMessageDataToolRequestsItemType? Type { get; set; }
}

public partial class ToolExecutionCompleteDataResult
Expand Down Expand Up @@ -1068,6 +1116,12 @@ public enum UserMessageDataAttachmentsItemType
Directory,
}

public enum AssistantMessageDataToolRequestsItemType
{
Function,
Custom,
}

public enum SystemMessageDataRole
{
System,
Expand Down
47 changes: 42 additions & 5 deletions go/generated/session_events.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 28 additions & 28 deletions nodejs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"author": "GitHub",
"license": "MIT",
"dependencies": {
"@github/copilot": "^0.0.384",
"@github/copilot": "^0.0.387",
"vscode-jsonrpc": "^8.2.1",
"zod": "^4.3.5"
},
Expand Down
15 changes: 14 additions & 1 deletion nodejs/src/generated/session-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Generated from: @github/copilot/session-events.schema.json
* Generated by: scripts/generate-session-types.ts
* Generated at: 2026-01-16T00:52:51.450Z
* Generated at: 2026-01-20T04:18:06.227Z
*
* To update these types:
* 1. Update the schema in copilot-agent-runtime
Expand All @@ -24,6 +24,12 @@ export type SessionEvent =
copilotVersion: string;
startTime: string;
selectedModel?: string;
context?: {
cwd: string;
gitRoot?: string;
repository?: string;
branch?: string;
};
};
}
| {
Expand All @@ -35,6 +41,12 @@ export type SessionEvent =
data: {
resumeTime: string;
eventCount: number;
context?: {
cwd: string;
gitRoot?: string;
repository?: string;
branch?: string;
};
};
}
| {
Expand Down Expand Up @@ -237,6 +249,7 @@ export type SessionEvent =
toolCallId: string;
name: string;
arguments?: unknown;
type?: "function" | "custom";
}[];
parentToolCallId?: string;
};
Expand Down
Loading
Loading