codexMapAppServerEvents.ts ×3

Frontier kind: Code frontier

unlabeled · c_d5fb651cf762

3 tests · 21653 LOC · 93 files · introduces 0 tests · 46 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
3 ranges46 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1737 ranges21653 lines · 93 files · Browse complete extent
All tests (intent)
3 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.

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

src/vs/platform/agentHost/node/codex/codexMapAppServerEvents.ts 46 introduced LOC · 3 ranges

Open complete file

235 }
236
237 > function dynamicToolOutput(contentItems: readonly DynamicToolCallOutputContentItem[] | null): string { codexMapAppServerEvents.ts
238 > return contentItems?.map(item => item.type === 'inputText' ? item.text : item.imageUrl).join('\n') ?? '';
239 > }
240
241 function mcpToolOutput(result: McpToolCallResult | null, errorMessage?: string): string {
615 }
616 if (params.item.type === 'dynamicToolCall') {
617 > const toolCallId = generateUuid(); codexMapAppServerEvents.ts
618 > const toolName = params.item.namespace ? `${params.item.namespace}.${params.item.tool}` : params.item.tool;
619 > const toolInput = toolInputText(params.item.arguments);
620 > const output = dynamicToolOutput(params.item.contentItems);
621 > // Server tools (registered under their bare name) execute in-process, so
622 > // they carry no `Client` contributor; only client-provided tools route
623 > // execution back to the owning workbench client.
624 > const isServerTool = params.item.namespace === null && state.serverToolNames.has(params.item.tool);
625 > const ownerClientId = isServerTool ? undefined : state.clientToolSet.ownerOf(params.item.tool);
626 > const serverDisplay = getServerToolDisplay(params.item.tool, params.item.arguments);
627 > state.itemToToolCall.set(params.item.id, {
628 > toolCallId,
629 > turnId: params.turnId,
630 > toolName,
631 > output,
632 > });
633 > return [
634 > {
635 > type: ActionType.ChatToolCallStart,
636 > turnId: params.turnId,
637 > toolCallId,
638 > toolName,
639 > displayName: serverDisplay?.displayName ?? params.item.tool,
640 > ...(ownerClientId ? { contributor: { kind: ToolCallContributorKind.Client, clientId: ownerClientId } } : {}),
641 > },
642 > {
643 > type: ActionType.ChatToolCallDelta,
644 > turnId: params.turnId,
645 > toolCallId,
646 > content: toolInput,
647 > },
648 > {
649 > type: ActionType.ChatToolCallReady,
650 > turnId: params.turnId,
651 > toolCallId,
652 > invocationMessage: serverDisplay?.invocationMessage ?? `Calling ${toolName}`,
653 > toolInput,
654 > confirmed: ToolCallConfirmationReason.NotNeeded,
655 > },
656 > ...(output ? [{
657 type: ActionType.ChatToolCallContentChanged,
658 turnId: params.turnId,
659 toolCallId,
660 content: [{ type: ToolResultContentType.Text, text: output }],
661 > } satisfies SessionAction | ChatAction] : []), codexMapAppServerEvents.ts
662 > ];
663 > }
664 if (params.item.type === 'collabAgentToolCall') {
665 const toolCallId = generateUuid();