|
8 | 8 | * payload types lived in `generated/session-events.ts` and could only be |
9 | 9 | * reached via a deep import (`@github/copilot-sdk/dist/generated/...`). |
10 | 10 | * |
11 | | - * Most of this file exercises the *type* surface — if these imports type-check |
12 | | - * the public API exposes the types. A small set of runtime assertions |
13 | | - * additionally proves that a concrete `ToolExecutionStartData` value (the |
14 | | - * exact type called out in the issue) round-trips through the exports. |
| 11 | + * Most of this file exercises the *type* surface — if these type-only imports |
| 12 | + * compile, the public API exposes the types. The runtime assertions below only |
| 13 | + * validate representative object shapes for those annotations; they do not |
| 14 | + * prove that type-only exports exist at runtime. |
15 | 15 | */ |
16 | 16 |
|
17 | 17 | import { describe, expect, it } from "vitest"; |
@@ -83,9 +83,9 @@ const _assistantMessageEventAlignmentCheck: _AssistantMessageEventStaysAlignedWi |
83 | 83 |
|
84 | 84 | describe("Session event type exports (#1156)", () => { |
85 | 85 | it("exposes the headline ToolExecutionStartData type with a usable shape", () => { |
86 | | - // This is the specific type called out in issue #1156. Build a real |
87 | | - // value through the public re-export so we exercise both the type |
88 | | - // surface and the runtime shape consumers would actually use. |
| 86 | + // This is the specific type called out in issue #1156. The annotation |
| 87 | + // is the compile-time API-surface check; these assertions only validate |
| 88 | + // the representative runtime object shape a consumer would use. |
89 | 89 | const data: ToolExecutionStartData = { |
90 | 90 | toolCallId: "call-1", |
91 | 91 | toolName: "shell", |
|
0 commit comments