historyRecordFixtures.ts ×5

Frontier kind: Code frontier

unlabeled · c_d6b6ce03693d

40 tests · 50557 LOC · 290 files · introduces 0 tests · 23 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges23 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
5296 ranges50557 lines · 290 files · Browse complete extent
All tests (intent)
40 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

2 files ranked by introduced lines: 23 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/test/node/historyRecordFixtures.ts 19 introduced LOC · 5 ranges

Open complete file

114 */
115 export function buildTurnsFromHistory(messages: readonly IHistoryRecord[]): Turn[] {
116 > const turns: Turn[] = []; historyRecordFixtures.ts
117 > const subagentsByToolCallId = new Map<string, IHistorySubagentStartedRecord>();
118 > let currentTurn: {
119 > id: string;
120 > message: Message;
121 > responseParts: ResponsePart[];
122 > pendingTools: Map<string, IHistoryToolStartRecord>;
123 > } | undefined;
124 >
125 > const finalizeTurn = (turn: NonNullable<typeof currentTurn>, state: TurnState): void => {
126 turns.push({
127 id: turn.id,
132 });
133 };
135 > const startTurn = (id: string, text: string): NonNullable<typeof currentTurn> => ({
136 id,
137 message: { text, origin: { kind: MessageKind.User } },
139 pendingTools: new Map(),
140 });
142 > for (const msg of messages) {
143 if (msg.type === 'message' && msg.role === 'user') {
144 if (currentTurn) {
src/vs/platform/agentHost/test/node/mockAgent.ts 4 introduced LOC · 2 ranges

Open complete file

164
165 async getSessionMessages(session: URI): Promise<readonly Turn[]> {
166 > const subagentInfo = parseSubagentSessionUri(session); mockAgent.ts
167 > if (subagentInfo) {
168 return buildSubagentTurnsFromHistory(this.sessionMessages, subagentInfo.toolCallId, session.toString());
169 }
170 > return buildTurnsFromHistory(this.sessionMessages); mockAgent.ts
171 > }
172
173 async disposeSession(session: URI): Promise<void> {