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 { Event } from '../../base/common/event.js';
import { IObservable, observableFromEvent } from '../../base/common/observable.js';
import { isWeb } from '../../base/common/platform.js';
import { AgentHostAllowSignedOutWhenUsableSettingId } from '../../platform/agentHost/common/agentService.js';
import type { IConfigurationService } from '../../platform/configuration/common/configuration.js';
import { SessionTypeAuthRequirement } from '../services/sessions/common/session.js';
/**
* Predicates behind the Agents window's conditional authentication — when the
* window may open for a user who is signed out of GitHub.
*
* Two gates, at different altitudes, are easy to confuse:
*
* - The **window gate** is the last-resort, window-level block that forces
* sign-in before *any* of the sessions UI is shown (backed by
* `SessionsWelcomeVisibleContext`). Historically unconditional; it now lifts
* when the opt-in is enabled and at least one registered session type does not
* require GitHub. Note the *editor* window is untouched by all of this — its
* chat-setup modal already offers a "Don't sign in" escape hatch, and it is
* that missing escape hatch in the Agents window (a non-dismissible modal) that
* this machinery restores conditionally.
* - The **per-type gate** is the on-demand sign-in surfaced when the user selects
* a specific session type that needs GitHub. It already existed
* (`getSessionTypeAvailability()` → `SignInRequired`) and carries the actual
* work: once the window is open, each type answers for itself.
*
* Session types update as native credentials come and go. The window gate must
* therefore use the live requirements rather than treating the experimentation
* opt-in itself as proof that a provider can run signed out.
*/
configurationService IConfigurationService
isWeb configurationServiceAgentHostAllowSignedOutWhenUsableSettingId
SignedOutWindowGate
Unresolved
Proceed
ForceGitHubSignIn
allowSignedOutWhenUsable authRequirements SessionTypeAuthRequirement SignedOutWindowGate
allowSignedOutWhenUsable
SignedOutWindowGateForceGitHubSignIn
authRequirementslength
SignedOutWindowGateUnresolved
authRequirementsrequirement requirement SessionTypeAuthRequirementGitHub
SignedOutWindowGateProceed
SignedOutWindowGateForceGitHubSignIn
signedIn allowSignedOutWhenUsable
signedIn allowSignedOutWhenUsable
ConditionalAuthState
Unresolved
SignedIn
SignedOut
accountResolved signedIn ConditionalAuthState
accountResolved
ConditionalAuthStateUnresolved
signedIn ConditionalAuthStateSignedIn ConditionalAuthStateSignedOut
configurationService IConfigurationService IObservable
EventconfigurationServiceonDidChangeConfiguration e eAgentHostAllowSignedOutWhenUsableSettingId
configurationService