@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.
Files changed (144) hide show
  1. package/common.js +0 -53
  2. package/index.js +0 -3
  3. package/package.json +5 -5
  4. package/session.js +0 -3
  5. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/missionControlAgentHostContribution.js +1 -1
  6. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteAgentHostActions.js +1 -1
  7. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatContribution.js +1 -1
  8. package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +6 -6
  9. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionListController.d.ts +1 -1
  10. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionListController.js +1 -1
  11. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/editorCloudSandboxContribution.d.ts +1 -1
  12. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/editorCloudSandboxContribution.js +2 -2
  13. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentActions.js +1 -1
  14. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHost.contribution.js +7 -7
  15. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostChatContribution.js +4 -4
  16. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +1 -1
  17. package/vscode/src/vs/platform/agentHost/browser/webPubSubRelayTransport.d.ts +0 -135
  18. package/vscode/src/vs/platform/agentHost/browser/webPubSubRelayTransport.js +0 -510
  19. package/vscode/src/vs/platform/agentHost/common/agentModelNotices.d.ts +0 -22
  20. package/vscode/src/vs/platform/agentHost/common/agentModelNotices.js +0 -21
  21. package/vscode/src/vs/platform/agentHost/common/cloudSandboxAgentHost.d.ts +0 -273
  22. package/vscode/src/vs/platform/agentHost/common/cloudSandboxAgentHost.js +0 -61
  23. package/vscode/src/vs/platform/agentHost/common/meta/agentModelMeta.d.ts +0 -7
  24. package/vscode/src/vs/platform/agentHost/common/meta/agentModelMeta.js +0 -17
  25. package/vscode/src/vs/platform/agentHost/common/meta/copilotd/cloudSandboxProjectMeta.d.ts +0 -12
  26. package/vscode/src/vs/platform/agentHost/common/meta/copilotd/cloudSandboxProjectMeta.js +0 -48
  27. package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelEnsembleMeta.d.ts +0 -8
  28. package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelEnsembleMeta.js +0 -11
  29. package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelPricing.d.ts +0 -114
  30. package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelPricing.js +0 -141
  31. package/vscode/src/vs/platform/agentHost/common/taskEventReplay.d.ts +0 -48
  32. package/vscode/src/vs/platform/agentHost/common/taskEventReplay.js +0 -238
  33. package/vscode/src/vs/platform/agentHost/common/webPubSub/chunking.d.ts +0 -102
  34. package/vscode/src/vs/platform/agentHost/common/webPubSub/chunking.js +0 -260
  35. package/vscode/src/vs/platform/agentHost/common/webPubSub/framing.d.ts +0 -102
  36. package/vscode/src/vs/platform/agentHost/common/webPubSub/framing.js +0 -115
  37. package/vscode/src/vs/platform/agentHost/common/webPubSub/groups.d.ts +0 -46
  38. package/vscode/src/vs/platform/agentHost/common/webPubSub/groups.js +0 -92
  39. package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +0 -9
  40. package/vscode/src/vs/sessions/contrib/chat/browser/voiceBridge.contribution.d.ts +0 -14
  41. package/vscode/src/vs/sessions/contrib/chat/browser/voiceBridge.contribution.js +0 -385
  42. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudAutomationStore.d.ts +0 -67
  43. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudAutomationStore.js +0 -695
  44. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudSandboxSessionConfig.d.ts +0 -4
  45. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudSandboxSessionConfig.js +0 -39
  46. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessions.contribution.d.ts +0 -1
  47. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessions.contribution.js +0 -59
  48. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsActions.d.ts +0 -1
  49. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsActions.js +0 -83
  50. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsChangesets.d.ts +0 -87
  51. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsChangesets.js +0 -176
  52. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsProvider.d.ts +0 -422
  53. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsProvider.js +0 -2444
  54. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/githubCloudAutomationStore.d.ts +0 -91
  55. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/githubCloudAutomationStore.js +0 -620
  56. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHost.contribution.d.ts +0 -1
  57. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHost.contribution.js +0 -5
  58. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHostContribution.d.ts +0 -46
  59. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHostContribution.js +0 -321
  60. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxSessionsProvider.d.ts +0 -104
  61. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxSessionsProvider.js +0 -345
  62. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.d.ts +0 -2
  63. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.js +0 -611
  64. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.d.ts +0 -20
  65. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.js +0 -85
  66. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.d.ts +0 -200
  67. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.js +0 -981
  68. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.d.ts +0 -24
  69. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.js +0 -206
  70. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.d.ts +0 -65
  71. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.js +0 -368
  72. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.d.ts +0 -10
  73. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.js +0 -57
  74. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.d.ts +0 -33
  75. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.js +0 -98
  76. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.d.ts +0 -32
  77. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.js +0 -186
  78. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.d.ts +0 -12
  79. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.js +0 -116
  80. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.d.ts +0 -32
  81. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.js +0 -226
  82. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.d.ts +0 -18
  83. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.js +0 -138
  84. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.d.ts +0 -32
  85. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.js +0 -29
  86. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/transcriptComponent.d.ts +0 -13
  87. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/transcriptComponent.js +0 -108
  88. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.d.ts +0 -13
  89. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.js +0 -63
  90. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/media/voiceModeOnboarding.css +0 -252
  91. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.d.ts +0 -1
  92. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.js +0 -178
  93. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.d.ts +0 -47
  94. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.js +0 -322
  95. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.d.ts +0 -146
  96. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.js +0 -890
  97. package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.d.ts +0 -132
  98. package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.js +0 -237
  99. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.d.ts +0 -120
  100. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.js +0 -234
  101. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +0 -36
  102. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +0 -164
  103. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/repositoryPicker.d.ts +0 -21
  104. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/repositoryPicker.js +0 -122
  105. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupMicrosoftProbe.d.ts +0 -82
  106. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupMicrosoftProbe.js +0 -213
  107. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxAgentHostService.d.ts +0 -40
  108. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxAgentHostService.js +0 -561
  109. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxApiService.d.ts +0 -133
  110. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxApiService.js +0 -1176
  111. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxConnectionCustomization.d.ts +0 -17
  112. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxConnectionCustomization.js +0 -76
  113. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxCredentialRefresh.d.ts +0 -54
  114. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxCredentialRefresh.js +0 -220
  115. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxHistoryCache.d.ts +0 -21
  116. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxHistoryCache.js +0 -184
  117. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxLegacySessionPreparation.d.ts +0 -8
  118. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxLegacySessionPreparation.js +0 -165
  119. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxModels.d.ts +0 -43
  120. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxModels.js +0 -162
  121. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxReadOnlySessionHandler.d.ts +0 -40
  122. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxReadOnlySessionHandler.js +0 -129
  123. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionContribution.d.ts +0 -166
  124. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionContribution.js +0 -838
  125. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionHandler.d.ts +0 -40
  126. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionHandler.js +0 -604
  127. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxTelemetry.d.ts +0 -289
  128. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxTelemetry.js +0 -497
  129. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlCredentialSealing.d.ts +0 -6
  130. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlCredentialSealing.js +0 -41
  131. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentService.d.ts +0 -73
  132. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentService.js +0 -398
  133. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlSharingService.d.ts +0 -45
  134. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlSharingService.js +0 -296
  135. package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/voiceCodeTranscriptionClient.d.ts +0 -63
  136. package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/voiceCodeTranscriptionClient.js +0 -361
  137. package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/ttsPlaybackService.d.ts +0 -34
  138. package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/ttsPlaybackService.js +0 -198
  139. package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.d.ts +0 -131
  140. package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.js +0 -871
  141. package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.d.ts +0 -66
  142. package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.js +0 -297
  143. package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.d.ts +0 -31
  144. package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.js +0 -118
@@ -1,289 +0,0 @@
1
- import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
- import { type ICloudSandboxConnectOptions } from "../../../../../platform/agentHost/common/cloudSandboxAgentHost.js";
3
- import { IConnectionDiagnosticEvent } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/connectionDiagnostics";
4
- import { RemoteAgentHostConnectionObserver } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/remoteAgentHostService";
5
- import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
6
- import { ICloudSandboxTelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxTelemetry.service";
7
- /** The Mission Control call being reported. A closed set, so it is safe to send verbatim. */
8
- export type CloudSandboxRequestAction = "connect" | "reconnect" | "getEnvironment" | "listEnvironments" | "listTasks" | "getTask" | "createTask" | "deleteTask" | "renameTask" | "archiveTask" | "unarchiveTask" | "getTaskEvents" | "getRepository" | "listModels";
9
- /**
10
- * How a Mission Control request ended, bucketed so a count is meaningful without carrying the
11
- * response itself. `waking` is the 202 an environment returns while it boots, which is neither a
12
- * success nor a failure but is the response most likely to be retried in a loop. `unexpectedStatus`
13
- * covers 1xx/3xx, which the client does not treat as success either — see
14
- * {@link requestOutcomeForStatus}.
15
- */
16
- export type CloudSandboxRequestOutcome = "succeeded" | "waking" | "clientError" | "serverError" | "networkError" | "unexpectedStatus";
17
- /** Why on-demand credential acquisition stopped. A closed set of client-side decisions. */
18
- export type CloudSandboxRefreshStopReason =
19
- /** Mission Control rejected the request in a way that repeating cannot fix (e.g. 404). */
20
- "permanentError"
21
- /** Too many consecutive failed refreshes. */
22
- | "consecutiveFailures"
23
- /** `/reconnect` kept answering "waking" during credential acquisition. */
24
- | "environmentWaking"
25
- /** Refreshed tokens kept arriving already expired, or without a usable `expires_at`. */
26
- | "unusableToken";
27
- export type CloudSandboxConnectionStage = "credentials" | "connection" | "relay" | "protocol" | "authentication" | "restoration";
28
- export type CloudSandboxConnectionOutcome = "success" | "failure" | "cancelled";
29
- export type CloudSandboxConnectionSurface = "agentsDesktop" | "agentsWeb" | "editorDesktop" | "editorWeb" | "unknown";
30
- export type CloudSandboxConnectionSource = NonNullable<ICloudSandboxConnectOptions["connectionSource"]>;
31
- type CloudSandboxEnvironmentClassification = {
32
- environmentKind: {
33
- classification: "SystemMetaData";
34
- purpose: "FeatureInsight";
35
- comment: "Cloud sandbox or user-local Mission Control host; no environment identity.";
36
- };
37
- };
38
- export type CloudSandboxConnectionContext = Pick<ICloudSandboxConnectOptions, "provisioningStartedAt" | "environmentKind">;
39
- export declare function getCloudSandboxConnectionSurface(isSessionsWindow: boolean, isWeb: boolean): CloudSandboxConnectionSurface;
40
- export interface ICloudSandboxConnectionTelemetry extends IDisposable {
41
- setConnectStage(stage: CloudSandboxConnectionStage): void;
42
- completeConnect(outcome: CloudSandboxConnectionOutcome): void;
43
- onConnectionStateChange(state: Parameters<RemoteAgentHostConnectionObserver>[0]): void;
44
- recordReceivedFrame(): void;
45
- createRequestObserver(): (event: "issued" | "waking") => void;
46
- recordConnectionDiagnostic(event: IConnectionDiagnosticEvent): void;
47
- }
48
- /**
49
- * The outcome bucket for a response with {@link statusCode}.
50
- *
51
- * Only 2xx counts as a success, matching the client's own `isSuccess` check — a 1xx or 3xx is
52
- * thrown as a request failure, so counting it as a success would understate the failure rate.
53
- */
54
- export declare function requestOutcomeForStatus(statusCode: number | undefined): CloudSandboxRequestOutcome;
55
- export declare class CloudSandboxTelemetryService extends Disposable implements ICloudSandboxTelemetryService {
56
- private readonly _telemetryService;
57
- readonly _serviceBrand: undefined;
58
- private readonly _counts;
59
- private readonly _reportTimer;
60
- private readonly _connections;
61
- private readonly _connectionReportTimer;
62
- /** When the current window began, i.e. when its first request was recorded. */
63
- private _windowStart;
64
- constructor(_telemetryService: ITelemetryService);
65
- trackConnection(stage: CloudSandboxConnectionStage, surface?: CloudSandboxConnectionSurface, source?: CloudSandboxConnectionSource, context?: CloudSandboxConnectionContext): ICloudSandboxConnectionTelemetry;
66
- flushConnectionHealth(): void;
67
- private _reportConnectionHealth;
68
- reportRequest(action: CloudSandboxRequestAction, outcome: CloudSandboxRequestOutcome): void;
69
- reportProvisioningOutcome(outcome: CloudSandboxConnectionOutcome, durationMs: number): void;
70
- reportCredentialRefreshStopped(reason: CloudSandboxRefreshStopReason, consecutiveFailures: number, error?: unknown): void;
71
- /** Report and reset the accumulated request counts. Safe to call when nothing has been recorded. */
72
- flushRequestCounts(): void;
73
- }
74
- export type CloudSandboxConnectionOutcomeClassification = CloudSandboxEnvironmentClassification & {
75
- operation: {
76
- classification: "SystemMetaData";
77
- purpose: "PerformanceAndHealth";
78
- comment: "Logical connect or recovery, including all retries.";
79
- };
80
- environmentOperation: {
81
- classification: "SystemMetaData";
82
- purpose: "PerformanceAndHealth";
83
- comment: "Provision connects a newly created sandbox; resume opens an existing sandbox, including already-warm environments; recover follows loss of a ready connection, regardless of its original source; attach connects a user-local Mission Control host. Client workflow, not confirmed VM lifecycle state.";
84
- };
85
- outcome: {
86
- classification: "SystemMetaData";
87
- purpose: "PerformanceAndHealth";
88
- comment: "Success, failure, or cancellation; cancellations are not failures.";
89
- };
90
- stage: {
91
- classification: "SystemMetaData";
92
- purpose: "PerformanceAndHealth";
93
- comment: "Last observed connection stage: credentials, connection, relay, protocol, authentication, or restoration.";
94
- };
95
- durationMs: {
96
- classification: "SystemMetaData";
97
- purpose: "PerformanceAndHealth";
98
- isMeasurement: true;
99
- comment: "Elapsed milliseconds to readiness, terminal failure, or cancellation, including backoff.";
100
- };
101
- provisioningMs: {
102
- classification: "SystemMetaData";
103
- purpose: "PerformanceAndHealth";
104
- isMeasurement: true;
105
- comment: "Milliseconds from task creation start to connection start, including local provider setup. Zero for resume, recovery and user-local attach; absent when a created-environment caller did not supply the start time. Never carried into later recoveries.";
106
- };
107
- readinessMs: {
108
- classification: "SystemMetaData";
109
- purpose: "PerformanceAndHealth";
110
- isMeasurement: true;
111
- comment: "End-to-end client-observed milliseconds through authenticated AHP readiness, failure or cancellation: provisioningMs plus durationMs. Includes protocol waits even after credentials arrive. Absent when provisioning start is unknown; success samples compare provisioning with resuming at the same readiness boundary.";
112
- };
113
- preparationMs: {
114
- classification: "SystemMetaData";
115
- purpose: "PerformanceAndHealth";
116
- isMeasurement: true;
117
- comment: "Exclusive client-observed credential preparation time, including environment wake/resume, token waits and backoff after credential failures until preparation succeeds or connection setup resumes. Includes HTTP and authentication overhead; not pure server startup time. Excludes task provisioning.";
118
- };
119
- connectionMs: {
120
- classification: "SystemMetaData";
121
- purpose: "PerformanceAndHealth";
122
- isMeasurement: true;
123
- comment: "Elapsed milliseconds outside credential preparation, including relay, protocol, authentication, restoration and connection retry backoff. Together with preparationMs equals durationMs, without nested phase overlap.";
124
- };
125
- surface: {
126
- classification: "SystemMetaData";
127
- purpose: "PerformanceAndHealth";
128
- comment: "Editor or Agents window, on desktop or web; unknown when not supplied.";
129
- };
130
- source: {
131
- classification: "SystemMetaData";
132
- purpose: "PerformanceAndHealth";
133
- comment: "Created or existing environment from the caller; does not imply warm or cold compute.";
134
- };
135
- credentialRequests: {
136
- classification: "SystemMetaData";
137
- purpose: "PerformanceAndHealth";
138
- isMeasurement: true;
139
- comment: "Credential requests handed to the request service during this operation, including failed and cancelled in-flight requests.";
140
- };
141
- wakingResponses: {
142
- classification: "SystemMetaData";
143
- purpose: "PerformanceAndHealth";
144
- isMeasurement: true;
145
- comment: "Credential requests answered with a pending response during this operation.";
146
- };
147
- transportAttempts: {
148
- classification: "SystemMetaData";
149
- purpose: "PerformanceAndHealth";
150
- isMeasurement: true;
151
- comment: "Relay connection attempts begun during this operation.";
152
- };
153
- credentialsMs: {
154
- classification: "SystemMetaData";
155
- purpose: "PerformanceAndHealth";
156
- isMeasurement: true;
157
- comment: "Cumulative credential acquisition and waiting time, including partial spans; may overlap authentication.";
158
- };
159
- relayMs: {
160
- classification: "SystemMetaData";
161
- purpose: "PerformanceAndHealth";
162
- isMeasurement: true;
163
- comment: "Cumulative relay connection time, including interrupted attempts.";
164
- };
165
- protocolMs: {
166
- classification: "SystemMetaData";
167
- purpose: "PerformanceAndHealth";
168
- isMeasurement: true;
169
- comment: "Cumulative protocol initialization or reconnect time, including interrupted attempts.";
170
- };
171
- authenticationMs: {
172
- classification: "SystemMetaData";
173
- purpose: "PerformanceAndHealth";
174
- isMeasurement: true;
175
- comment: "Cumulative authentication time, including credential preparation and interrupted attempts.";
176
- };
177
- restorationMs: {
178
- classification: "SystemMetaData";
179
- purpose: "PerformanceAndHealth";
180
- isMeasurement: true;
181
- comment: "Cumulative subscription restoration time, including interrupted attempts.";
182
- };
183
- firstFailurePhase: {
184
- classification: "SystemMetaData";
185
- purpose: "PerformanceAndHealth";
186
- comment: "First failed diagnostic phase: credentials, transport.connect, transport.reconnect, protocol.initialize, protocol.reconnect, protocol.authentication, or protocol.subscriptions. Absent if no phase failure was observed; preserved across later retries and cancellation. This is the recovery step, not necessarily the failed RPC method.";
187
- };
188
- firstFailureCode: {
189
- classification: "SystemMetaData";
190
- purpose: "PerformanceAndHealth";
191
- isMeasurement: true;
192
- comment: "Known JSON-RPC or AHP error code on the first failed phase. Absent for unrecognized or missing codes; no messages or error data are included.";
193
- };
194
- credentialFailures: {
195
- classification: "SystemMetaData";
196
- purpose: "PerformanceAndHealth";
197
- isMeasurement: true;
198
- comment: "Failed credential preparation phases, including local cooldown rejections. Nested phase failures may overlap; not a count of HTTP requests.";
199
- };
200
- relayFailures: {
201
- classification: "SystemMetaData";
202
- purpose: "PerformanceAndHealth";
203
- isMeasurement: true;
204
- comment: "Failed transport establishment phases in this operation.";
205
- };
206
- protocolFailures: {
207
- classification: "SystemMetaData";
208
- purpose: "PerformanceAndHealth";
209
- isMeasurement: true;
210
- comment: "Failed initialization or reconnect phases, including fallback initialization failures; not a count of individual RPC requests.";
211
- };
212
- authenticationFailures: {
213
- classification: "SystemMetaData";
214
- purpose: "PerformanceAndHealth";
215
- isMeasurement: true;
216
- comment: "Failed authentication phases. May overlap nested credential preparation failures.";
217
- };
218
- restorationFailures: {
219
- classification: "SystemMetaData";
220
- purpose: "PerformanceAndHealth";
221
- isMeasurement: true;
222
- comment: "Failed subscription restoration phases in this operation.";
223
- };
224
- owner: "osortega";
225
- comment: "One outcome per logical cloud sandbox or user-local relay connect or recovery, excluding reuse of a ready connection.";
226
- };
227
- export type CloudSandboxProvisioningOutcomeClassification = {
228
- outcome: {
229
- classification: "SystemMetaData";
230
- purpose: "PerformanceAndHealth";
231
- comment: "Success, failure, or cancellation of sandbox task/VM provisioning; success requires a usable environment/session binding, not connection readiness.";
232
- };
233
- durationMs: {
234
- classification: "SystemMetaData";
235
- purpose: "PerformanceAndHealth";
236
- isMeasurement: true;
237
- comment: "Client-observed task creation milliseconds, including account resolution, HTTP, response validation and failure cleanup. Excludes subsequent environment connection and repository preparation; not pure server provisioning time.";
238
- };
239
- owner: "osortega";
240
- comment: "One outcome per sandbox task creation, measured separately from connect and recovery.";
241
- };
242
- export type CloudSandboxFirstSessionRequestClassification = CloudSandboxEnvironmentClassification & {
243
- surface: {
244
- classification: "SystemMetaData";
245
- purpose: "PerformanceAndHealth";
246
- comment: "Editor or Agents window, on desktop or web; unknown when not supplied.";
247
- };
248
- source: {
249
- classification: "SystemMetaData";
250
- purpose: "PerformanceAndHealth";
251
- comment: "Created or existing environment from the caller; does not imply warm or cold compute.";
252
- };
253
- outcome: {
254
- classification: "SystemMetaData";
255
- purpose: "PerformanceAndHealth";
256
- comment: "Outcome of the first session create, list, or subscribe request issued while ready; not turn completion.";
257
- };
258
- durationMs: {
259
- classification: "SystemMetaData";
260
- purpose: "PerformanceAndHealth";
261
- isMeasurement: true;
262
- comment: "Milliseconds for the first post-readiness session request, excluding user idle time before it.";
263
- };
264
- owner: "osortega";
265
- comment: "At most one first session request sample per ready connection cycle, without issuing an extra request or recording its content.";
266
- };
267
- export type CloudSandboxConnectionHealthClassification = CloudSandboxEnvironmentClassification & {
268
- connectedMs: {
269
- classification: "SystemMetaData";
270
- purpose: "PerformanceAndHealth";
271
- isMeasurement: true;
272
- comment: "Sum of authenticated ready connection milliseconds since the previous snapshot, excluding outages.";
273
- };
274
- unexpectedDisconnects: {
275
- classification: "SystemMetaData";
276
- purpose: "PerformanceAndHealth";
277
- isMeasurement: true;
278
- comment: "Losses of previously ready connections; excludes initial retries and intentional teardown.";
279
- };
280
- receivedFrames: {
281
- classification: "SystemMetaData";
282
- purpose: "PerformanceAndHealth";
283
- isMeasurement: true;
284
- comment: "Inbound relay WebSocket frames, including setup, recovery, control, malformed and chunk frames; not unique protocol messages.";
285
- };
286
- owner: "osortega";
287
- comment: "Delta cloud sandbox or user-local relay connection exposure, unexpected losses and receive load, aggregated every five minutes with a final teardown flush.";
288
- };
289
- export {};