@codingame/monaco-vscode-chat-service-override 38.0.7 → 38.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common.js +0 -53
- package/index.js +0 -3
- package/package.json +5 -5
- package/session.js +0 -3
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/missionControlAgentHostContribution.js +1 -1
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteAgentHostActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatContribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionListController.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionListController.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/editorCloudSandboxContribution.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/editorCloudSandboxContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHost.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostChatContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +1 -1
- package/vscode/src/vs/platform/agentHost/browser/webPubSubRelayTransport.d.ts +0 -135
- package/vscode/src/vs/platform/agentHost/browser/webPubSubRelayTransport.js +0 -510
- package/vscode/src/vs/platform/agentHost/common/agentModelNotices.d.ts +0 -22
- package/vscode/src/vs/platform/agentHost/common/agentModelNotices.js +0 -21
- package/vscode/src/vs/platform/agentHost/common/cloudSandboxAgentHost.d.ts +0 -273
- package/vscode/src/vs/platform/agentHost/common/cloudSandboxAgentHost.js +0 -61
- package/vscode/src/vs/platform/agentHost/common/meta/agentModelMeta.d.ts +0 -7
- package/vscode/src/vs/platform/agentHost/common/meta/agentModelMeta.js +0 -17
- package/vscode/src/vs/platform/agentHost/common/meta/copilotd/cloudSandboxProjectMeta.d.ts +0 -12
- package/vscode/src/vs/platform/agentHost/common/meta/copilotd/cloudSandboxProjectMeta.js +0 -48
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelEnsembleMeta.d.ts +0 -8
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelEnsembleMeta.js +0 -11
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelPricing.d.ts +0 -114
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelPricing.js +0 -141
- package/vscode/src/vs/platform/agentHost/common/taskEventReplay.d.ts +0 -48
- package/vscode/src/vs/platform/agentHost/common/taskEventReplay.js +0 -238
- package/vscode/src/vs/platform/agentHost/common/webPubSub/chunking.d.ts +0 -102
- package/vscode/src/vs/platform/agentHost/common/webPubSub/chunking.js +0 -260
- package/vscode/src/vs/platform/agentHost/common/webPubSub/framing.d.ts +0 -102
- package/vscode/src/vs/platform/agentHost/common/webPubSub/framing.js +0 -115
- package/vscode/src/vs/platform/agentHost/common/webPubSub/groups.d.ts +0 -46
- package/vscode/src/vs/platform/agentHost/common/webPubSub/groups.js +0 -92
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +0 -9
- package/vscode/src/vs/sessions/contrib/chat/browser/voiceBridge.contribution.d.ts +0 -14
- package/vscode/src/vs/sessions/contrib/chat/browser/voiceBridge.contribution.js +0 -385
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudAutomationStore.d.ts +0 -67
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudAutomationStore.js +0 -695
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudSandboxSessionConfig.d.ts +0 -4
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudSandboxSessionConfig.js +0 -39
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessions.contribution.d.ts +0 -1
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessions.contribution.js +0 -59
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsActions.d.ts +0 -1
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsActions.js +0 -83
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsChangesets.d.ts +0 -87
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsChangesets.js +0 -176
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsProvider.d.ts +0 -422
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsProvider.js +0 -2444
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/githubCloudAutomationStore.d.ts +0 -91
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/githubCloudAutomationStore.js +0 -620
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHost.contribution.d.ts +0 -1
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHost.contribution.js +0 -5
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHostContribution.d.ts +0 -46
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHostContribution.js +0 -321
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxSessionsProvider.d.ts +0 -104
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxSessionsProvider.js +0 -345
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.js +0 -611
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.js +0 -85
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.d.ts +0 -200
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.js +0 -981
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.js +0 -206
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.d.ts +0 -65
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.js +0 -368
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.js +0 -57
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.d.ts +0 -33
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.js +0 -98
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.d.ts +0 -32
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.js +0 -186
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.js +0 -116
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.d.ts +0 -32
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.js +0 -226
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.js +0 -138
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.d.ts +0 -32
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.js +0 -29
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/transcriptComponent.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/transcriptComponent.js +0 -108
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.js +0 -63
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/media/voiceModeOnboarding.css +0 -252
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.js +0 -178
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.d.ts +0 -47
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.js +0 -322
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.d.ts +0 -146
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.js +0 -890
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.d.ts +0 -132
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.js +0 -237
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.d.ts +0 -120
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.js +0 -234
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +0 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +0 -164
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/repositoryPicker.d.ts +0 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/repositoryPicker.js +0 -122
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupMicrosoftProbe.d.ts +0 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupMicrosoftProbe.js +0 -213
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxAgentHostService.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxAgentHostService.js +0 -561
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxApiService.d.ts +0 -133
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxApiService.js +0 -1176
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxConnectionCustomization.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxConnectionCustomization.js +0 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxCredentialRefresh.d.ts +0 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxCredentialRefresh.js +0 -220
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxHistoryCache.d.ts +0 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxHistoryCache.js +0 -184
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxLegacySessionPreparation.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxLegacySessionPreparation.js +0 -165
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxModels.d.ts +0 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxModels.js +0 -162
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxReadOnlySessionHandler.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxReadOnlySessionHandler.js +0 -129
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionContribution.d.ts +0 -166
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionContribution.js +0 -838
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionHandler.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionHandler.js +0 -604
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxTelemetry.d.ts +0 -289
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxTelemetry.js +0 -497
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlCredentialSealing.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlCredentialSealing.js +0 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentService.d.ts +0 -73
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentService.js +0 -398
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlSharingService.d.ts +0 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlSharingService.js +0 -296
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/voiceCodeTranscriptionClient.d.ts +0 -63
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/voiceCodeTranscriptionClient.js +0 -361
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/ttsPlaybackService.d.ts +0 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/ttsPlaybackService.js +0 -198
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.d.ts +0 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.js +0 -871
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.d.ts +0 -66
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.js +0 -297
- package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.d.ts +0 -31
- package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.js +0 -118
package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxApiService.d.ts
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
|
-
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
-
import { CloudSandboxConnectResult, ICloudSandboxConnectionRequest, ICloudSandboxCreatedSession, ICloudSandboxCreateSessionRequest, ICloudSandboxDiscoveryResult, ICloudSandboxEnvironment, IMissionControlEnvironment, ICloudSandboxModelCatalog } from "../../../../../platform/agentHost/common/cloudSandboxAgentHost.js";
|
|
4
|
-
import { ICloudSandboxApiService } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/cloudSandboxAgentHost.service";
|
|
5
|
-
import { IReplayedTaskHistory } from "../../../../../platform/agentHost/common/taskEventReplay.js";
|
|
6
|
-
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
7
|
-
import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
|
|
8
|
-
import { IRequestService } from "@codingame/monaco-vscode-api/vscode/vs/platform/request/common/request.service";
|
|
9
|
-
import { IAuthenticationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service";
|
|
10
|
-
import { ICloudSandboxTelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxTelemetry.service";
|
|
11
|
-
/**
|
|
12
|
-
* Mission Control client for cloud sandbox sessions: mints (`connect`) and refreshes (`reconnect`)
|
|
13
|
-
* Web PubSub credentials, reads environment and task records, discovers sandbox-backed sessions,
|
|
14
|
-
* and replays a task's persisted AHP history.
|
|
15
|
-
*
|
|
16
|
-
* Runs in the renderer so the sandbox path works in VS Code Web, where no Copilot extension host is
|
|
17
|
-
* available.
|
|
18
|
-
*/
|
|
19
|
-
export declare class CloudSandboxApiService extends Disposable implements ICloudSandboxApiService {
|
|
20
|
-
private readonly _requestService;
|
|
21
|
-
private readonly _authenticationService;
|
|
22
|
-
private readonly _productService;
|
|
23
|
-
private readonly _logService;
|
|
24
|
-
private readonly _telemetry;
|
|
25
|
-
readonly _serviceBrand: undefined;
|
|
26
|
-
/** Resolved (or in-flight) repository names, keyed by numeric repository id. */
|
|
27
|
-
private readonly _repositoryNames;
|
|
28
|
-
private readonly _discoveredTasks;
|
|
29
|
-
private _discoverySince;
|
|
30
|
-
private _discoveryGeneration;
|
|
31
|
-
private _historyRequestId;
|
|
32
|
-
private readonly _historyCache;
|
|
33
|
-
private _environments;
|
|
34
|
-
private readonly _onDidChangeAccount;
|
|
35
|
-
readonly onDidChangeAccount: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<string | undefined>;
|
|
36
|
-
constructor(_requestService: IRequestService, _authenticationService: IAuthenticationService, _productService: IProductService, _logService: ILogService, _telemetry: ICloudSandboxTelemetryService);
|
|
37
|
-
private get _authenticationProviderId();
|
|
38
|
-
getAccountKey(): Promise<string | undefined>;
|
|
39
|
-
private _onAuthenticationChanged;
|
|
40
|
-
connect(request: ICloudSandboxConnectionRequest, token: CancellationToken): Promise<CloudSandboxConnectResult>;
|
|
41
|
-
reconnect(request: ICloudSandboxConnectionRequest, clientId: string, token: CancellationToken): Promise<CloudSandboxConnectResult>;
|
|
42
|
-
getEnvironment(environmentId: string, token: CancellationToken): Promise<ICloudSandboxEnvironment>;
|
|
43
|
-
getCachedEnvironments(): readonly IMissionControlEnvironment[] | undefined;
|
|
44
|
-
listEnvironments(token: CancellationToken, options?: {
|
|
45
|
-
readonly refresh?: boolean;
|
|
46
|
-
}): Promise<readonly IMissionControlEnvironment[]>;
|
|
47
|
-
/** Incremental scans preserve absent tasks; full scans also find tasks without environment-kind metadata. */
|
|
48
|
-
listSessions(token: CancellationToken, options?: {
|
|
49
|
-
readonly incremental?: boolean;
|
|
50
|
-
}): Promise<ICloudSandboxDiscoveryResult>;
|
|
51
|
-
/**
|
|
52
|
-
* Provision a sandbox task bound to an on-demand environment. Mission Control provisions a VM
|
|
53
|
-
* and binds a session but starts no run, so the caller sends the first turn over the relay.
|
|
54
|
-
* The environment on the returned session is the real VM, not the sentinel.
|
|
55
|
-
*/
|
|
56
|
-
createSession(request: ICloudSandboxCreateSessionRequest, token: CancellationToken): Promise<ICloudSandboxCreatedSession>;
|
|
57
|
-
private _createSession;
|
|
58
|
-
deleteTask(taskId: string, token: CancellationToken): Promise<void>;
|
|
59
|
-
renameTask(taskId: string, title: string, token: CancellationToken): Promise<void>;
|
|
60
|
-
setTaskArchived(taskId: string, archived: boolean, token: CancellationToken): Promise<void>;
|
|
61
|
-
/**
|
|
62
|
-
* Delete a task we created but cannot use. Best-effort: the caller is already failing, and a
|
|
63
|
-
* failed cleanup must not replace the error that explains why.
|
|
64
|
-
*
|
|
65
|
-
* Only covers tasks whose id we learned. Mission Control writes the task record before it
|
|
66
|
-
* provisions compute, so any failure after that point (an authorization rejection, or a
|
|
67
|
-
* provisioning error such as HTTP 500 `failed to create agent compute`) leaves a task behind.
|
|
68
|
-
* When the failure response omits the id, that orphan can only be cleaned up server-side.
|
|
69
|
-
*/
|
|
70
|
-
private _deleteTaskBestEffort;
|
|
71
|
-
/**
|
|
72
|
-
* Read a task's persisted AHP history and fold it into session/chat state.
|
|
73
|
-
*
|
|
74
|
-
* The only history path that survives the sandbox: `/events` is served by Mission Control's
|
|
75
|
-
* mirror, not the environment. The `vnd.github.ahp+json` media type selects the raw relayed
|
|
76
|
-
* frames rather than the cloud-task event summaries the endpoint serves by default.
|
|
77
|
-
*/
|
|
78
|
-
getSessionHistory(taskId: string, token: CancellationToken, diagnosticId?: string, onCachedHistory?: (history: IReplayedTaskHistory) => void, canCacheHistory?: (history: IReplayedTaskHistory | undefined) => boolean): Promise<IReplayedTaskHistory | undefined>;
|
|
79
|
-
invalidateSessionHistory(taskId: string, preserveCached?: boolean): void;
|
|
80
|
-
clearSessionHistory(taskId?: string): void;
|
|
81
|
-
private _fetchSessionHistory;
|
|
82
|
-
/**
|
|
83
|
-
* Resolve a numeric repository id to its `owner/name`, memoized for the life of the service.
|
|
84
|
-
* A task names its repository nowhere — `repository` carries an id, and the session's
|
|
85
|
-
* `event_url` / `base_ref` are empty for tasks created through the tasks API.
|
|
86
|
-
*
|
|
87
|
-
* The cached promise must never reject: every task in a pass shares it, and a rejection would
|
|
88
|
-
* count each one as unresolved (forcing the scan `partial`) and drop those sessions from the
|
|
89
|
-
* listing entirely. A miss is evicted so the next pass retries.
|
|
90
|
-
*/
|
|
91
|
-
private _resolveRepositoryName;
|
|
92
|
-
/** Shared handler for the `connect`/`reconnect` endpoints (200 token or 202 waking). */
|
|
93
|
-
private _connectRequest;
|
|
94
|
-
/**
|
|
95
|
-
* Issue an agent-environment request and return the raw response. The caller owns status
|
|
96
|
-
* handling, since the meaning of a status is endpoint-specific (notably HTTP 202 = "waking",
|
|
97
|
-
* which is neither an error nor a result).
|
|
98
|
-
*/
|
|
99
|
-
private _sendEnvironment;
|
|
100
|
-
/** Issue a task API request, throwing on a non-success status. */
|
|
101
|
-
private _sendTask;
|
|
102
|
-
/**
|
|
103
|
-
* Re-issue a discovery read that came back rate-limited, waiting for `Retry-After` when the
|
|
104
|
-
* response names one and backing off exponentially when it does not.
|
|
105
|
-
*
|
|
106
|
-
* Discovery reads the API far harder than any other sandbox call, so it is the one path that
|
|
107
|
-
* routinely trips the limit. Reporting a 429 rather than retrying it loses the session being
|
|
108
|
-
* resolved for the rest of the window, because nothing re-runs a pass that otherwise succeeded.
|
|
109
|
-
*/
|
|
110
|
-
private _retryWhileRateLimited;
|
|
111
|
-
private _request;
|
|
112
|
-
/**
|
|
113
|
-
* Mission Control task API base. Uses the Copilot API host: `api.github.com/agents/*` omits
|
|
114
|
-
* CORS headers on authenticated responses, so a renderer `fetch` receives the reply and discards it.
|
|
115
|
-
*/
|
|
116
|
-
private _tasksBaseUrl;
|
|
117
|
-
listModels(token: CancellationToken): Promise<ICloudSandboxModelCatalog>;
|
|
118
|
-
private _readJson;
|
|
119
|
-
/**
|
|
120
|
-
* Throw a diagnosable error for a non-success response. Pass `prereadBody` when the caller has
|
|
121
|
-
* already consumed the stream, since reading it twice yields nothing.
|
|
122
|
-
*/
|
|
123
|
-
private _throwForStatus;
|
|
124
|
-
/**
|
|
125
|
-
* Describe a response verbatim for a support escalation: status, the server-side request id,
|
|
126
|
-
* and the body as received.
|
|
127
|
-
*/
|
|
128
|
-
private _describeResponse;
|
|
129
|
-
/** The task id from a failed create, when the response names the task it already recorded. */
|
|
130
|
-
private _taskIdFromFailure;
|
|
131
|
-
/** A GitHub session carrying at least the configured chat provider scopes. */
|
|
132
|
-
private _resolveGitHubSession;
|
|
133
|
-
}
|