copilotAgentSession.ts ×8

Frontier kind: Joint frontier

unlabeled · c_98e49e2ba592

1 test · 43830 LOC · 243 files · introduces 1 test · 29 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges29 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
4035 ranges43830 lines · 243 files · Browse complete extent
All tests (intent)
1 testBrowse 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.

1 test introduced at this concept.

Introduced code

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

1 file ranked by introduced lines: 29 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts 29 introduced LOC · 8 ranges

Open complete file

221 };
222 case 'array': {
223 > const options: ChatInputOption[] = hasKey(field.items, { enum: true }) copilotAgentSession.ts
224 > ? field.items.enum.map(value => ({ id: value, label: value }))
225 : field.items.anyOf.map(option => ({ id: option.const, label: option.title }));
226 > return { copilotAgentSession.ts
227 > ...base,
228 > kind: ChatInputQuestionKind.MultiSelect,
229 > options,
230 > min: field.minItems,
231 > max: field.maxItems,
232 > };
233 > }
234 case 'string': {
235 if (hasKey(field, { enum: true })) {
236 > const enumNames = field.enumNames; copilotAgentSession.ts
237 > const options: ChatInputOption[] = field.enum.map((value, idx) => ({ id: value, label: enumNames?.[idx] ?? value }));
238 > return { ...base, kind: ChatInputQuestionKind.SingleSelect, options };
239 > }
240 if (hasKey(field, { oneOf: true })) {
241 const options: ChatInputOption[] = field.oneOf.map(option => ({ id: option.const, label: option.title }));
264 return undefined;
265 }
266 > const value = answer.value; copilotAgentSession.ts
267 > if (field.type === 'boolean') {
268 > if (value.kind === ChatInputAnswerValueKind.Boolean) { return value.value; }
269 if (value.kind === ChatInputAnswerValueKind.Text) {
270 if (value.value === 'true') { return true; }
275 }
276 if (field.type === 'number' || field.type === 'integer') {
277 > if (value.kind === ChatInputAnswerValueKind.Number) { copilotAgentSession.ts
278 > return field.type === 'integer' ? Math.trunc(value.value) : value.value;
279 > }
280 if (value.kind === ChatInputAnswerValueKind.Text) {
281 if (value.value.trim() === '') { return undefined; }
285 return undefined;
286 }
287 > if (field.type === 'array') { copilotAgentSession.ts
288 > if (value.kind === ChatInputAnswerValueKind.SelectedMany) {
289 > return [...value.value, ...(value.freeformValues ?? [])];
290 > }
291 if (value.kind === ChatInputAnswerValueKind.Selected) {
292 return value.value ? [value.value, ...(value.freeformValues ?? [])] : [...(value.freeformValues ?? [])];
297 return undefined;
298 }
299 > // field.type === 'string' copilotAgentSession.ts
300 > if (value.kind === ChatInputAnswerValueKind.Text) { return value.value; }
301 > if (value.kind === ChatInputAnswerValueKind.Selected) { return value.value; }
302 return undefined;
303 }
2820 const value = elicitationAnswerToFieldValue(field, answers[fieldName]);
2821 if (value !== undefined) {
2822 > content[fieldName] = value; copilotAgentSession.ts
2823 > }
2824 }
2825 return { action: 'accept', content };