ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import type Anthropic from '@anthropic-ai/sdk';
import { URI } from '../../../../base/common/uri.js';
import { isAgentFeedbackAnnotationsAttachment, renderAgentFeedbackAnnotationsAttachment } from '../../common/meta/agentFeedbackAttachments.js';
import { isHostSnapshotAttachment } from '../../common/meta/agentSnapshotAttachmentMeta.js';
import { MessageAttachmentKind, type MessageAttachment } from '../../common/state/protocol/state.js';
/**
* Build the {@link Anthropic.ContentBlockParam}[] payload for an
* {@link SDKUserMessage} from a plain text prompt and the protocol
* attachments accompanying the user message.
*
* Phase 6 keeps the resolver pure and minimal: a single `text` block
* carrying the prompt, plus additional text blocks for attachments. This
* mirrors the production extension's resolver shape so a future phase that
* adds image rendering or inline range substitution can extend without
* restructuring.
*
* Selections are rendered as URI references with an optional line
* suffix. The protocol's TextSelection carries range metadata
* only; the selected text is not included inline.
*
* Resource attachments and simple attachments with model representations
* are honoured today. Embedded resources are dropped because the current
* Claude path does not have a place to consume them.
*/
prompt
attachments MessageAttachment
AnthropicContentBlockParam
blocks AnthropicContentBlockParam type text prompt
attachmentslength
blocks
refLines
simpleBlocks
feedbackBlocks
att attachments
att
rendered att
rendered
feedbackBlocksrendered
atttype MessageAttachmentKindSimple
attmodelRepresentation
simpleBlocksattmodelRepresentation
atttype MessageAttachmentKindResource
uri atturi
readonlySuffix att
attdisplayKind
startLine attselection
refLines
refLines
feedbackBlockslength
blocks
type
text feedbackBlocks
simpleBlockslength
blocks
type
text simpleBlocks
refLineslength
blocks
blocks
type
text
refLines
blocks
uri
urischeme urifsPath uri