Skip to content

Commit 1ff9e1b

Browse files
Update @github/copilot to 1.0.10 (#900)
- Updated nodejs and test harness dependencies - Re-ran code generators - Formatted generated code Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 005b780 commit 1ff9e1b

File tree

9 files changed

+79
-60
lines changed

9 files changed

+79
-60
lines changed

dotnet/src/Generated/SessionEvents.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,6 +1258,11 @@ public partial class SessionHandoffData
12581258
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
12591259
[JsonPropertyName("remoteSessionId")]
12601260
public string? RemoteSessionId { get; set; }
1261+
1262+
/// <summary>GitHub host URL for the source session (e.g., https://github.com or https://tenant.ghe.com).</summary>
1263+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
1264+
[JsonPropertyName("host")]
1265+
public string? Host { get; set; }
12611266
}
12621267

12631268
/// <summary>Conversation truncation statistics including token counts and removed content metrics.</summary>

go/generated_session_events.go

Lines changed: 3 additions & 0 deletions
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
@@ -56,7 +56,7 @@
5656
"author": "GitHub",
5757
"license": "MIT",
5858
"dependencies": {
59-
"@github/copilot": "^1.0.10-0",
59+
"@github/copilot": "^1.0.10",
6060
"vscode-jsonrpc": "^8.2.1",
6161
"zod": "^4.3.6"
6262
},

nodejs/samples/package-lock.json

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

nodejs/src/generated/session-events.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,10 @@ export type SessionEvent =
562562
* Session ID of the remote session being handed off
563563
*/
564564
remoteSessionId?: string;
565+
/**
566+
* GitHub host URL for the source session (e.g., https://github.com or https://tenant.ghe.com)
567+
*/
568+
host?: string;
565569
};
566570
}
567571
| {

python/copilot/generated/session_events.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1943,6 +1943,10 @@ class Data:
19431943
handoff_time: datetime | None = None
19441944
"""ISO 8601 timestamp when the handoff occurred"""
19451945

1946+
host: str | None = None
1947+
"""GitHub host URL for the source session (e.g., https://github.com or
1948+
https://tenant.ghe.com)
1949+
"""
19461950
remote_session_id: str | None = None
19471951
"""Session ID of the remote session being handed off"""
19481952

@@ -2503,6 +2507,7 @@ def from_dict(obj: Any) -> 'Data':
25032507
operation = from_union([Operation, from_none], obj.get("operation"))
25042508
path = from_union([from_str, from_none], obj.get("path"))
25052509
handoff_time = from_union([from_datetime, from_none], obj.get("handoffTime"))
2510+
host = from_union([from_str, from_none], obj.get("host"))
25062511
remote_session_id = from_union([from_str, from_none], obj.get("remoteSessionId"))
25072512
repository = from_union([RepositoryClass.from_dict, from_str, from_none], obj.get("repository"))
25082513
source_type = from_union([SourceType, from_none], obj.get("sourceType"))
@@ -2627,7 +2632,7 @@ def from_dict(obj: Any) -> 'Data':
26272632
servers = from_union([lambda x: from_list(Server.from_dict, x), from_none], obj.get("servers"))
26282633
status = from_union([ServerStatus, from_none], obj.get("status"))
26292634
extensions = from_union([lambda x: from_list(Extension.from_dict, x), from_none], obj.get("extensions"))
2630-
return Data(already_in_use, context, copilot_version, producer, reasoning_effort, selected_model, session_id, start_time, version, event_count, resume_time, error_type, message, provider_call_id, stack, status_code, url, background_tasks, title, info_type, warning_type, new_model, previous_model, previous_reasoning_effort, new_mode, previous_mode, operation, path, handoff_time, remote_session_id, repository, source_type, summary, messages_removed_during_truncation, performed_by, post_truncation_messages_length, post_truncation_tokens_in_messages, pre_truncation_messages_length, pre_truncation_tokens_in_messages, token_limit, tokens_removed_during_truncation, events_removed, up_to_event_id, code_changes, conversation_tokens, current_model, current_tokens, error_reason, model_metrics, session_start_time, shutdown_type, system_tokens, tool_definitions_tokens, total_api_duration_ms, total_premium_requests, base_commit, branch, cwd, git_root, head_commit, host_type, is_initial, messages_length, checkpoint_number, checkpoint_path, compaction_tokens_used, error, messages_removed, post_compaction_tokens, pre_compaction_messages_length, pre_compaction_tokens, request_id, success, summary_content, tokens_removed, agent_mode, attachments, content, interaction_id, source, transformed_content, turn_id, intent, reasoning_id, delta_content, total_response_size_bytes, encrypted_content, message_id, output_tokens, parent_tool_call_id, phase, reasoning_opaque, reasoning_text, tool_requests, api_call_id, cache_read_tokens, cache_write_tokens, copilot_usage, cost, duration, initiator, input_tokens, model, quota_snapshots, reason, arguments, tool_call_id, tool_name, mcp_server_name, mcp_tool_name, partial_output, progress_message, is_user_requested, result, tool_telemetry, allowed_tools, name, plugin_name, plugin_version, agent_description, agent_display_name, agent_name, tools, hook_invocation_id, hook_type, input, output, metadata, role, kind, permission_request, allow_freeform, choices, question, elicitation_source, mode, requested_schema, server_name, server_url, static_client_config, traceparent, tracestate, command, args, command_name, commands, actions, plan_content, recommended_action, skills, servers, status, extensions)
2635+
return Data(already_in_use, context, copilot_version, producer, reasoning_effort, selected_model, session_id, start_time, version, event_count, resume_time, error_type, message, provider_call_id, stack, status_code, url, background_tasks, title, info_type, warning_type, new_model, previous_model, previous_reasoning_effort, new_mode, previous_mode, operation, path, handoff_time, host, remote_session_id, repository, source_type, summary, messages_removed_during_truncation, performed_by, post_truncation_messages_length, post_truncation_tokens_in_messages, pre_truncation_messages_length, pre_truncation_tokens_in_messages, token_limit, tokens_removed_during_truncation, events_removed, up_to_event_id, code_changes, conversation_tokens, current_model, current_tokens, error_reason, model_metrics, session_start_time, shutdown_type, system_tokens, tool_definitions_tokens, total_api_duration_ms, total_premium_requests, base_commit, branch, cwd, git_root, head_commit, host_type, is_initial, messages_length, checkpoint_number, checkpoint_path, compaction_tokens_used, error, messages_removed, post_compaction_tokens, pre_compaction_messages_length, pre_compaction_tokens, request_id, success, summary_content, tokens_removed, agent_mode, attachments, content, interaction_id, source, transformed_content, turn_id, intent, reasoning_id, delta_content, total_response_size_bytes, encrypted_content, message_id, output_tokens, parent_tool_call_id, phase, reasoning_opaque, reasoning_text, tool_requests, api_call_id, cache_read_tokens, cache_write_tokens, copilot_usage, cost, duration, initiator, input_tokens, model, quota_snapshots, reason, arguments, tool_call_id, tool_name, mcp_server_name, mcp_tool_name, partial_output, progress_message, is_user_requested, result, tool_telemetry, allowed_tools, name, plugin_name, plugin_version, agent_description, agent_display_name, agent_name, tools, hook_invocation_id, hook_type, input, output, metadata, role, kind, permission_request, allow_freeform, choices, question, elicitation_source, mode, requested_schema, server_name, server_url, static_client_config, traceparent, tracestate, command, args, command_name, commands, actions, plan_content, recommended_action, skills, servers, status, extensions)
26312636

26322637
def to_dict(self) -> dict:
26332638
result: dict = {}
@@ -2689,6 +2694,8 @@ def to_dict(self) -> dict:
26892694
result["path"] = from_union([from_str, from_none], self.path)
26902695
if self.handoff_time is not None:
26912696
result["handoffTime"] = from_union([lambda x: x.isoformat(), from_none], self.handoff_time)
2697+
if self.host is not None:
2698+
result["host"] = from_union([from_str, from_none], self.host)
26922699
if self.remote_session_id is not None:
26932700
result["remoteSessionId"] = from_union([from_str, from_none], self.remote_session_id)
26942701
if self.repository is not None:

test/harness/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.

test/harness/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"test": "vitest run"
1212
},
1313
"devDependencies": {
14-
"@github/copilot": "^1.0.10-0",
14+
"@github/copilot": "^1.0.10",
1515
"@modelcontextprotocol/sdk": "^1.26.0",
1616
"@types/node": "^25.3.3",
1717
"openai": "^6.17.0",

0 commit comments

Comments
 (0)