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 { CopilotApiError, COPILOT_API_ERROR_STATUS_STREAMING } from './copilotApiService.js';
/**
* Marker prefix used to smuggle a structured, serialized chat fetch error
* through the Claude and Codex child-process boundaries. Their model proxies
* hold the rich {@link CopilotApiError}, while the child processes only see
* HTTP/SSE error text.
*/
export const PROXY_ERROR_PREFIX = 'VSCODE_PROXY_ERROR:';
/**
* Upper bound on the base64 marker payload we will decode. A forwarded chat
* error serializes to well under 1 KB; this cap prevents an oversized or
* adversarial marker riding along in model-influenced error text from driving
* an unbounded base64/JSON allocation.
*/
const MAX_FORWARDED_MARKER_B64_LENGTH = 8 * 1024;
/** Standard base64 alphabet with optional padding. */
const FORWARDED_MARKER_B64_PATTERN = /^[AZ+/=
type
reason
requestId
serverRequestId
category
retryAfter
isAuto
capiError code message
fetchError IForwardedChatFetchError
copilotPlan
isUsageBasedBilling
quotaResetDate
status
status
err CopilotApiError IForwardedChatError
status errstatus errstatus
requestId errenveloperequest_id errenveloperequest_id
capiError errenvelopeerrormessage code errenvelopeerrortype message errenvelopeerrormessage
fetchError
type status
reason capiErrormessage errenvelopeerrormessage
requestId
capiError
message code message
parsed
parsed message
parsed parsed
error parsed error error
error error
code error code code
msg error message message
code msg
code code code
message msg msg
forwarded IForwardedChatError
errorText IForwardedChatError
errorText
idx errorText
idx
start idx length
end errorTextstart
b64 end errorTextstart errorTextstart start end
b64length b64length b64
parsed Bufferb64 IForwardedChatError
parsed parsed parsedfetchError parsedfetchErrortype
parsed
text
idx text
idx
text
text idx text idx
forwarded IForwardedChatError Record
chatError forwarded
errorText Record
forwarded errorText
forwarded forwarded
message message _meta Record
forwarded message
forwarded
message
message message _meta forwarded