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 assert from 'assert';
import { Emitter, Event } from '../../../../../base/common/event.js';
import { IObservable, observableValue } from '../../../../../base/common/observable.js';
import { ensureNoDisposablesAreLeakedInTestSuite } from '../../../../../base/test/common/utils.js';
import { NullLogService } from '../../../../../platform/log/common/log.js';
import { InMemoryStorageService } from '../../../../../platform/storage/common/storage.js';
import { IAssignmentFilter, IWorkbenchAssignmentService } from '../../../../services/assignment/common/assignmentService.js';
ChatEntitlement IChatEntitlementService IChatSentiment IQuotaSnapshot IRateLimitSnapshot
ChatQuotaNotificationContribution
ILanguageModelChatMetadata ILanguageModelChatMetadataAndIdentifier
ChatInputNotificationActionKind IChatInputNotification IChatInputNotificationBody IChatInputNotificationCommandAction IChatInputNotificationContext IChatInputNotificationService resolveChatInputNotificationBody
usageBasedBilling
chat IQuotaSnapshot
completions IQuotaSnapshot
premiumChat IQuotaSnapshot
additionalUsageEnabled
additionalUsageCount
sessionRateLimit IRateLimitSnapshot
weeklyRateLimit IRateLimitSnapshot
opts
entitlement ChatEntitlement
quotas IMockQuotas
onDidChangeQuotaRemaining
onDidChangeQuotaExceeded
onDidChangeEntitlement
service IChatEntitlementService
_serviceBrand
entitlement optsentitlement ChatEntitlementPro
entitlementObs optsentitlement ChatEntitlementPro
onDidChangeEntitlement onDidChangeEntitlementevent
onDidChangeQuotaExceeded onDidChangeQuotaExceededevent
onDidChangeQuotaRemaining onDidChangeQuotaRemainingevent
onDidChangeUsageBasedBilling EventNone
quotas
usageBasedBilling optsquotasusageBasedBilling
chat optsquotaschat
completions optsquotascompletions
premiumChat optsquotaspremiumChat
additionalUsageEnabled optsquotasadditionalUsageEnabled
additionalUsageCount optsquotasadditionalUsageCount
sessionRateLimit optsquotassessionRateLimit
weeklyRateLimit optsquotasweeklyRateLimit
organisations
isInternal
sku
copilotTrackingId
clientByokEnabled
hasByokModels
onDidChangeSentiment EventNone
sentiment IChatSentiment
sentimentObs IChatSentiment IObservableIChatSentiment
onDidChangeAnonymous EventNone
anonymous
anonymousObs
service onDidChangeQuotaRemaining onDidChangeQuotaExceeded onDidChangeEntitlement
lastNotification IChatInputNotification
deleted
dismissed
setCount
onDidChange
onDidDismiss
service IChatInputNotificationService
_serviceBrand
onDidChange onDidChangeevent
onDidDismiss onDidDismissevent
notification IChatInputNotification
lastNotification notification
deleted
dismissed
setCount
onDidChange
id
lastNotificationid id deleted
deleted
dismissed
onDidChange
id
lastNotification lastNotificationid id deleted dismissed
dismissed
onDidDismissid
onDidChange
filter notification IChatInputNotification
deleted dismissed lastNotification
filter lastNotification lastNotification
service
IChatInputNotification deleted dismissed lastNotification
deleted
setCount
id
notificationId id lastNotificationid
notificationId
servicenotificationId
lastNotification deleted dismissed setCount
body PickIChatInputNotificationBody IChatInputNotificationCommandAction
action bodyactions
actionkind ChatInputNotificationActionKindCommand
assert
action
identifier id ILanguageModelChatMetadataAndIdentifier
vendor identifier
identifier metadata id vendor family id ILanguageModelChatMetadata
autoModel
manualModel
byokModel
metadata id vendor family byokModelIdentifier ILanguageModelChatMetadata
selectedLanguageModel manualModel availableLanguageModels ILanguageModelChatMetadataAndIdentifier autoModel manualModel IChatInputNotificationContext
sessionType
sessionResource
deferredNotificationsEnabled
isTransientChat
sessionStarted
modelState currentModel selectedLanguageModel models availableLanguageModels
notification IChatInputNotification context IChatInputNotificationContext IChatInputNotificationBody
notification context error error
switchToAutoTreatment
getTreatmentCalls
service IWorkbenchAssignmentService
_serviceBrand
onDidRefetchAssignments EventNone
_filter IAssignmentFilter
name
getTreatmentCallsname
name
switchToAutoTreatment
service getTreatmentCalls
percentRemaining opts PartialIQuotaSnapshot IQuotaSnapshot
percentRemaining
unlimited
opts
resolve resolve
percentRemaining opts PartialIRateLimitSnapshot IRateLimitSnapshot
percentRemaining
unlimited
resetDate
opts
store
entitlementOpts Parameters createMockEntitlementService
modelOpts switchToAutoTreatment
sharedStorageService InMemoryStorageService
entitlementMock entitlementOpts
notificationMock
assignmentMock modelOptsswitchToAutoTreatment
storageService sharedStorageService store
storeentitlementMockonDidChangeQuotaRemaining
storeentitlementMockonDidChangeQuotaExceeded
storeentitlementMockonDidChangeEntitlement
contribution store
entitlementMockservice
notificationMockservice
storageService
assignmentMockservice
contribution entitlementMock notificationMock storageService assignmentMock
entitlementMock ReturnType createMockEntitlementService
quotas IMockQuotas
opts entitlement ChatEntitlement
svc entitlement ChatEntitlement quotas IMockQuotas entitlementMockservice IChatEntitlementService entitlement ChatEntitlement quotas IMockQuotas
optsentitlement
svcentitlement optsentitlement
svcquotas svcquotas quotas
entitlementMockonDidChangeQuotaRemaining
notificationMock
quotas usageBasedBilling premiumChat
assertnotificationMockmessage
notificationMock
entitlement ChatEntitlementFree
quotas usageBasedBilling chat
assertnotificationMock
assertnotificationMockmessage
entitlementMock notificationMock
quotas usageBasedBilling premiumChat
assertnotificationMock
entitlementMock premiumChat
assertnotificationMockwasDeleted
entitlementMock notificationMock
quotas usageBasedBilling premiumChat
entitlementMock usageBasedBilling premiumChat
assertnotificationMock
entitlementMock notificationMock
quotas usageBasedBilling premiumChat
entitlementMock premiumChat
assertnotificationMock
assertnotificationMockmessage
notificationMock
entitlementMock premiumChat
assertnotificationMock
notificationMock
quotas usageBasedBilling premiumChat unlimited hasQuota
assertnotificationMock
notificationMock
quotas usageBasedBilling premiumChat unlimited hasQuota
assertnotificationMock
assertnotificationMockmessage
storageService store
first
quotas usageBasedBilling premiumChat
storageService
notification firstnotificationMock
assertnotification
firstnotificationMocknotificationid
firstcontribution
second
quotas usageBasedBilling premiumChat
storageService
assertsecondnotificationMock
storageService store
first
quotas usageBasedBilling premiumChat
storageService
firstnotificationMockfirstnotificationMockid
firstentitlementMock premiumChat
firstcontribution
second
quotas usageBasedBilling premiumChat
storageService
assertsecondnotificationMock
assertsecondnotificationMockmessage
storageService store
first
quotas usageBasedBilling premiumChat
storageService
firstnotificationMockfirstnotificationMockid
firstcontribution
second
quotas usageBasedBilling premiumChat
storageService
assertsecondnotificationMock
secondentitlementMock premiumChat
assertsecondnotificationMock
notificationMock
entitlement ChatEntitlementUnknown
quotas usageBasedBilling premiumChat
assertnotificationMock
assertnotificationMockdescription
assertnotificationMockactionslength
assertnotificationMockcommandId
notificationMock
entitlement ChatEntitlementFree
quotas usageBasedBilling chat
assertnotificationMock
assertnotificationMockdescription
assertnotificationMockcommandId
notificationMock
entitlement ChatEntitlementBusiness
quotas usageBasedBilling premiumChat
assertnotificationMock
assertnotificationMockdescription
assertnotificationMockactionslength
notificationMock
entitlement ChatEntitlementBusiness
quotas usageBasedBilling premiumChat unlimited hasQuota
assertnotificationMock
assertnotificationMockmessage
assertnotificationMockdescription
assertnotificationMockactionslength
notificationMock
entitlement ChatEntitlementEnterprise
quotas usageBasedBilling premiumChat unlimited hasQuota additionalUsageEnabled
assertnotificationMock
assertnotificationMockmessage
assertnotificationMockdescription
assertnotificationMockactionslength
notificationMock
entitlement ChatEntitlementPro
quotas usageBasedBilling premiumChat additionalUsageCount
assertnotificationMock
assertnotificationMockdescription
assertnotificationMockcommandId
assignmentMock notificationMock
entitlement ChatEntitlementPro
quotas usageBasedBilling premiumChat
switchToAutoTreatment
assertnotificationMock
assertnotificationMockdescription
assertnotificationMockcommandId
assertassignmentMockgetTreatmentCalls
notificationMock
quotas usageBasedBilling premiumChat
assertnotificationMock
entitlementMock notificationMock
quotas usageBasedBilling premiumChat
entitlementMock premiumChat
assertnotificationMock
assertnotificationMockmessage
assignmentMock entitlementMock notificationMock
quotas usageBasedBilling premiumChat
switchToAutoTreatment
entitlementMock premiumChat
notificationMock
notification notificationMock
body notification
action bodyactions
assert
treatments assignmentMockgetTreatmentCalls
setCount notificationMocksetCount
description bodydescription
actionKind actionkind
matchesAuto actionkind ChatInputNotificationActionKindSwitchToModel actionautoModel
treatments
setCount
description
actionKind ChatInputNotificationActionKindSwitchToModel
matchesAuto
assignmentMock entitlementMock notificationMock
quotas usageBasedBilling premiumChat
switchToAutoTreatment
entitlementMock premiumChat
entitlementMock premiumChat
body notificationMock autoModel
assert
description bodydescription
commandId bodycommandId
treatments assignmentMockgetTreatmentCalls
description
commandId
treatments
entitlementMock notificationMock
quotas usageBasedBilling premiumChat
switchToAutoTreatment
alternateAuto
entitlementMock premiumChat
entitlementMock premiumChat
body notificationMock alternateAuto alternateAuto manualModel
assert
description bodydescription
commandId bodycommandId
description
commandId
entitlementMock notificationMock
quotas usageBasedBilling premiumChat
switchToAutoTreatment
entitlementMock premiumChat
body notificationMock
assert
description bodydescription
commandId bodycommandId
description
commandId
entitlementMock notificationMock
quotas usageBasedBilling premiumChat
entitlementMock premiumChat
assertnotificationMock
notificationMock
entitlementMockonDidChangeQuotaRemaining
assertnotificationMock
entitlementMock notificationMock
quotas usageBasedBilling premiumChat
entitlementMock premiumChat
assertnotificationMockmessage
entitlementMock premiumChat
assertnotificationMockmessage
entitlementMock notificationMock
quotas usageBasedBilling premiumChat
entitlementMock premiumChat
entitlementMock premiumChat
afterRecovery notificationMock
entitlementMock premiumChat
assert
afterRecovery
afterRecrossing notificationMockmessage
afterRecovery
afterRecrossing
unlimited
quotas usageBasedBilling premiumChat
ineligible
quotas usageBasedBilling premiumChat
unlimitedentitlementMock premiumChat
ineligibleentitlementMock premiumChat
unlimitedentitlementMock premiumChat unlimited
ineligibleentitlementMock usageBasedBilling premiumChat
assert
unlimited unlimitednotificationMock
ineligible ineligiblenotificationMock
unlimited
ineligible
entitlementMock notificationMock
quotas
usageBasedBilling
premiumChat
sessionRateLimit
entitlementMock
premiumChat
sessionRateLimit
entitlementMock
premiumChat
sessionRateLimit
entitlementMock
premiumChat
sessionRateLimit
assertnotificationMocktelemetryId
notificationMock
entitlement ChatEntitlementPro
quotas usageBasedBilling premiumChat
assertnotificationMock
entitlementMock notificationMock
entitlement ChatEntitlementPro
quotas usageBasedBilling premiumChat
entitlementMock premiumChat
assertnotificationMock
entitlementMock notificationMock
quotas usageBasedBilling premiumChat additionalUsageEnabled
entitlementMock premiumChat additionalUsageEnabled
assertnotificationMock
assertnotificationMockmessage
assertnotificationMockdescription
notificationMock
quotas usageBasedBilling premiumChat additionalUsageEnabled
assertnotificationMock
notificationMock
quotas usageBasedBilling premiumChat additionalUsageEnabled
assertnotificationMock
assertnotificationMockmessage
assertnotificationMockdescription
entitlementMock notificationMock
quotas usageBasedBilling premiumChat additionalUsageEnabled
assertnotificationMock
entitlementMock additionalUsageEnabled premiumChat
assertnotificationMockdescription
entitlementMock notificationMock
quotas usageBasedBilling sessionRateLimit
entitlementMock sessionRateLimit
assertnotificationMock
assertnotificationMockmessage
assertnotificationMockmessage
entitlementMock notificationMock
quotas usageBasedBilling weeklyRateLimit
entitlementMock weeklyRateLimit
assertnotificationMock
assertnotificationMockmessage
assertnotificationMockmessage
notificationMock
quotas usageBasedBilling sessionRateLimit
assertnotificationMock
notificationMock
quotas usageBasedBilling premiumChat
assertnotificationMock
assertnotificationMockmessage
entitlementMock notificationMock
quotas
usageBasedBilling
premiumChat
sessionRateLimit
entitlementMock
premiumChat
sessionRateLimit
assertnotificationMock
assertnotificationMockmessage
entitlementMock notificationMock
entitlement ChatEntitlementFree
quotas usageBasedBilling chat
entitlementMock chat
assertnotificationMock
assertnotificationMockdescription
entitlementMock notificationMock
entitlement ChatEntitlementEnterprise
quotas usageBasedBilling premiumChat
entitlementMock premiumChat
assertnotificationMock
assertnotificationMockdescription
entitlementMock notificationMock
quotas usageBasedBilling premiumChat additionalUsageEnabled
entitlementMock premiumChat
assertnotificationMock
assertnotificationMockdescription
entitlementMock notificationMock
quotas usageBasedBilling premiumChat
entitlementMock premiumChat
assertnotificationMock
assertnotificationMockdescription
assertnotificationMockcommandId
notificationMock
quotas usageBasedBilling premiumChat
notification notificationMock
assert
copilot notificationwhenmanualModel
byok notificationwhenbyokModel
copilot
byok
notificationMock
quotas usageBasedBilling premiumChat
notification notificationMock
assert
message notificationmessage
visible notificationwhen modelState currentModel models
message
visible