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.
*--------------------------------------------------------------------------------------------*/
/**
* Contract for the inline model feedback survey.
*
* A survey is fully described by a versioned JSON payload delivered as an experiment treatment,
* so one can be authored or retired without shipping code. The shapes stay close to the editor
* pane survey in `contrib/surveys/browser/surveyQuestions.ts` so the two can converge later,
* but cannot share code today because that renderer needs telemetry keys known at compile time.
*/
import { expandModelMatchCandidates, ID_PATTERN, isObject, MAX_ID_LENGTH, normalizeSelector, parseExpPayloadEnvelope, readSelectorList, readText } from '../expPayload.js';
/** Payload versions this build understands. Bump when making a breaking shape change. */
export const CHAT_MODEL_FEEDBACK_SURVEY_CONFIG_VERSION = 1;
/** Sentinel matching sessions that are not backed by an agent host. */
export const CHAT_MODEL_FEEDBACK_SURVEY_NO_HARNESS = 'none';
const MAX_STEPS = 8;
const
ChatModelFeedbackSurveyStepKind
Choice
Text
id
label
id
title
kind ChatModelFeedbackSurveyStepKindChoice
options IChatModelFeedbackSurveyOption
kind ChatModelFeedbackSurveyStepKindText
placeholder
maxLength
IChatModelFeedbackSurveyChoiceStep IChatModelFeedbackSurveyTextStep
selectedModels
resolvedModels
modes
harnesses
sessionTypes
cooldownDays
maxPerSession
chance IChatModelFeedbackSurveyChance
triggers IChatModelFeedbackSurveyTriggers
initial
increment
max
modelSwitchedAway IChatModelFeedbackSurveyTrigger
enabled
bypassCooldown
version
id
match IChatModelFeedbackSurveyMatch
prompt IChatModelFeedbackSurveyPrompt
steps ChatModelFeedbackSurveyStep
config IChatModelFeedbackSurveyConfig error
config error
selectedModelId
selectedModelAliases
resolvedModelId
modeId
harness
sessionType
raw ChatModelFeedbackSurveyParseResult
parsed raw
parsed
error parsed
id parsedid
id
error
match parsedmatch
match
error match
prompt parsedprompt
prompt
error prompt
steps parsedsteps
steps
error steps
config version id match prompt steps
raw IChatModelFeedbackSurveyMatch
raw raw
source raw raw
match Record
field
selectors sourcefield
selectors
selectors
matchfield selectors
field matchfieldlength
selectedModels matchselectedModels
resolvedModels matchresolvedModels
modes matchmodes
harnesses matchharnesses
sessionTypes matchsessionTypes
raw IChatModelFeedbackSurveyPrompt
raw raw
source raw raw
cooldownDays sourcecooldownDays
cooldownDays
maxPerSession sourcemaxPerSession
maxPerSession
chance sourcechance
chance
chance
triggers sourcetriggers
triggers
triggers
cooldownDays maxPerSession chance triggers
raw IChatModelFeedbackSurveyChance
raw raw
source raw raw
initial sourceinitial
initial
increment sourceincrement
increment
max sourcemax
max
max initial
initial increment max
raw IChatModelFeedbackSurveyTriggers
raw raw
source raw raw
modelSwitchedAway sourcemodelSwitchedAway
modelSwitchedAway
modelSwitchedAway
modelSwitchedAway
raw path IChatModelFeedbackSurveyTrigger
raw
enabled bypassCooldown
raw
enabled raw bypassCooldown
raw
rawenabled rawenabled
rawbypassCooldown rawbypassCooldown
enabled rawenabled bypassCooldown rawbypassCooldown
raw ChatModelFeedbackSurveyStep
raw rawlength
rawlength
steps ChatModelFeedbackSurveyStep
seenIds
i i rawlength i
step rawi i
step
step
seenIdsstepid
seenIdsstepid
stepsstep
textStepIndexes stepsstep index stepkind ChatModelFeedbackSurveyStepKindText index index index
textStepIndexeslength
textStepIndexeslength textStepIndexes stepslength
steps
raw index ChatModelFeedbackSurveyStep
raw
id rawid
id
title rawtitle
title
rawkind ChatModelFeedbackSurveyStepKindText
placeholder rawplaceholder rawplaceholder
rawplaceholder placeholder
requestedMaxLength rawmaxLength
requestedMaxLength
kind ChatModelFeedbackSurveyStepKindText
id
title
placeholder
maxLength MathrequestedMaxLength
rawkind ChatModelFeedbackSurveyStepKindChoice
rawoptions rawoptionslength rawoptionslength
options IChatModelFeedbackSurveyOption
seenOptionIds
i i rawoptionslength i
option rawoptionsi
option
optionId optionid
optionId
seenOptionIdsoptionId
label optionlabel
label
seenOptionIdsoptionId
options id optionId label
kind ChatModelFeedbackSurveyStepKindChoice id title options
raw fallback
raw
fallback
raw Numberraw raw
raw
raw fallback
raw
fallback
raw Numberraw raw
raw
raw fallback
raw
fallback
raw Numberraw raw raw
raw
config IChatModelFeedbackSurveyConfig context IChatModelFeedbackSurveyMatchContext
match config
matchselectedModelslength
candidates contextselectedModelId contextselectedModelAliases
matchselectedModelsselector candidatesselector
matchresolvedModelslength
candidates contextresolvedModelId
matchresolvedModelsselector candidatesselector
matchmodeslength matchmodes contextmodeId
matchharnesseslength matchharnesses contextharness
matchsessionTypeslength matchsessionTypes contextsessionType
selectors value
normalized value value
normalized selectorsnormalized