dsh-github-copilot 0.1.0-alpha.1.dsh.0.2.1.alpha.5
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/AGENTS.md +439 -0
- package/CHANGELOG.md +875 -0
- package/CONTRIBUTING.md +55 -0
- package/LICENSE +21 -0
- package/README.md +366 -0
- package/README.zh.md +341 -0
- package/SECURITY.md +29 -0
- package/cordis.patch.yml +16 -0
- package/deployment-baseline.json +1580 -0
- package/docs/account-management-experience.md +143 -0
- package/docs/agent-readiness.md +110 -0
- package/docs/auto-high-cost.md +255 -0
- package/docs/auto-iteration-review.json +22 -0
- package/docs/auto-review-sampling.md +60 -0
- package/docs/auto-task-routing.md +341 -0
- package/docs/automatic-model-routing.md +236 -0
- package/docs/copilot-accounts.md +424 -0
- package/docs/copilot-compaction.md +148 -0
- package/docs/copilot-usage.md +133 -0
- package/docs/dual-model.md +66 -0
- package/docs/evidence-driven-iteration.md +86 -0
- package/docs/image-input-compatibility.md +64 -0
- package/docs/images/copilot-accounts-credits.png +0 -0
- package/docs/images/copilot-accounts.png +0 -0
- package/docs/images/copilot-current-provenance.json +39 -0
- package/docs/images/copilot-model-preferences.png +0 -0
- package/docs/images/copilot-search-routing.png +0 -0
- package/docs/images/copilot-session-continuation.png +0 -0
- package/docs/images/dual-model-desktop.png +0 -0
- package/docs/images/dual-model-mobile.png +0 -0
- package/docs/images/dual-model-provenance.json +35 -0
- package/docs/images/parent-model-follow.png +0 -0
- package/docs/manual-compaction-recovery.md +109 -0
- package/docs/mockups/copilot-account-dropdown.html +71 -0
- package/docs/mockups/copilot-account-management.html +393 -0
- package/docs/model-compatibility-acceptance.md +182 -0
- package/docs/npm-distribution.md +202 -0
- package/docs/official-first-016-alpha2.md +66 -0
- package/docs/official-first-020-rc1.md +32 -0
- package/docs/official-first-020-rc2.md +17 -0
- package/docs/official-first-021-alpha4.md +157 -0
- package/docs/official-first-021-alpha5.md +83 -0
- package/docs/plugin-diagnostics.md +605 -0
- package/docs/session-continuation.md +141 -0
- package/docs/session-search-routing.md +133 -0
- package/docs/single-route-migration.md +131 -0
- package/docs/web-lifecycle-rc2.md +55 -0
- package/lib/client.js +13236 -0
- package/lib/client.js.map +1 -0
- package/lib/copilot-identity-DRZY_d2X.js +15 -0
- package/lib/diagnostics-analysis-io.js +78 -0
- package/lib/diagnostics-analysis.js +427 -0
- package/lib/diagnostics-types-CF-qg8Do.js +708 -0
- package/lib/index.js +15661 -0
- package/lib/manual-compaction-recovery.js +485 -0
- package/lib/remote.js +1507 -0
- package/lib/request-budget-DLY_aRq0.js +87 -0
- package/lib/routed-web.js +120 -0
- package/lib/search-routing-CV2hs8as.js +792 -0
- package/lib/types/account-dropdown.d.ts +22 -0
- package/lib/types/account-model-auth.d.ts +15 -0
- package/lib/types/account-model-catalog.d.ts +70 -0
- package/lib/types/account-model-source.d.ts +85 -0
- package/lib/types/agent-compaction.d.ts +4 -0
- package/lib/types/authorization-code-clipboard.d.ts +4 -0
- package/lib/types/authorization-controller.d.ts +121 -0
- package/lib/types/auto-allocation-card.d.ts +9 -0
- package/lib/types/auto-allocation-diagnostics.d.ts +126 -0
- package/lib/types/auto-allocation-evidence.d.ts +44 -0
- package/lib/types/auto-allocation.d.ts +47 -0
- package/lib/types/auto-assessment-evidence.d.ts +111 -0
- package/lib/types/auto-model-host.d.ts +30 -0
- package/lib/types/auto-model-intent.d.ts +36 -0
- package/lib/types/auto-model-presentation.d.ts +57 -0
- package/lib/types/auto-model-routing.d.ts +64 -0
- package/lib/types/auto-review-sampling.d.ts +6 -0
- package/lib/types/auto-selection-explanation.d.ts +9 -0
- package/lib/types/auto-task-assessment.d.ts +49 -0
- package/lib/types/auto-task-classifier.d.ts +10 -0
- package/lib/types/background-compaction.d.ts +30 -0
- package/lib/types/client.d.ts +129 -0
- package/lib/types/compact-account.d.ts +42 -0
- package/lib/types/compaction-continuation-ui.d.ts +29 -0
- package/lib/types/compaction-continuation.d.ts +48 -0
- package/lib/types/compaction-input-estimate.d.ts +28 -0
- package/lib/types/compaction-pressure.d.ts +23 -0
- package/lib/types/compaction-replay.d.ts +18 -0
- package/lib/types/compatibility.d.ts +17 -0
- package/lib/types/composer-notice-style.d.ts +7 -0
- package/lib/types/config.d.ts +141 -0
- package/lib/types/content-file.d.ts +10 -0
- package/lib/types/context-evidence-ui.d.ts +28 -0
- package/lib/types/context-evidence.d.ts +256 -0
- package/lib/types/context-usage.d.ts +4 -0
- package/lib/types/copilot-account-presentation.d.ts +7 -0
- package/lib/types/copilot-accounts-card.d.ts +43 -0
- package/lib/types/copilot-accounts-host.d.ts +93 -0
- package/lib/types/copilot-accounts-remote.d.ts +85 -0
- package/lib/types/copilot-accounts-types.d.ts +43 -0
- package/lib/types/copilot-auth.d.ts +31 -0
- package/lib/types/copilot-grant.d.ts +11 -0
- package/lib/types/copilot-identity.d.ts +11 -0
- package/lib/types/copilot-request.d.ts +11 -0
- package/lib/types/copilot-stream-liveness.d.ts +23 -0
- package/lib/types/copilot-usage-card.d.ts +51 -0
- package/lib/types/copilot-usage-host.d.ts +61 -0
- package/lib/types/copilot-usage-normalize.d.ts +9 -0
- package/lib/types/copilot-usage-remote.d.ts +63 -0
- package/lib/types/copilot-usage-types.d.ts +20 -0
- package/lib/types/copilot-usage-ui.d.ts +4 -0
- package/lib/types/current-provider.d.ts +59 -0
- package/lib/types/deepseek-search-fallback.d.ts +11 -0
- package/lib/types/diagnostics-analysis-io.d.ts +23 -0
- package/lib/types/diagnostics-analysis.d.ts +298 -0
- package/lib/types/diagnostics-card.d.ts +12 -0
- package/lib/types/diagnostics-client.d.ts +13 -0
- package/lib/types/diagnostics-collector.d.ts +50 -0
- package/lib/types/diagnostics-host.d.ts +183 -0
- package/lib/types/diagnostics-remote.d.ts +113 -0
- package/lib/types/diagnostics-types.d.ts +893 -0
- package/lib/types/dual-model-host.d.ts +119 -0
- package/lib/types/dual-model-remote.d.ts +63 -0
- package/lib/types/dual-model-types.d.ts +34 -0
- package/lib/types/external-link.d.ts +3 -0
- package/lib/types/failure.d.ts +38 -0
- package/lib/types/http.d.ts +48 -0
- package/lib/types/image-input-admission.d.ts +5 -0
- package/lib/types/index.d.ts +39 -0
- package/lib/types/manual-compaction-recovery.d.ts +67 -0
- package/lib/types/migration-status.d.ts +50 -0
- package/lib/types/model-exclusions.d.ts +15 -0
- package/lib/types/model-preferences-card.d.ts +9 -0
- package/lib/types/model-protocol.d.ts +31 -0
- package/lib/types/native-select-style.d.ts +4 -0
- package/lib/types/native-settings-style.d.ts +10 -0
- package/lib/types/parent-model-follow-card.d.ts +32 -0
- package/lib/types/parent-model-follow.d.ts +44 -0
- package/lib/types/pi-provider-bridge.d.ts +22 -0
- package/lib/types/plan.d.ts +148 -0
- package/lib/types/pre-step-pressure.d.ts +8 -0
- package/lib/types/preview-provider.d.ts +77 -0
- package/lib/types/preview-route.d.ts +76 -0
- package/lib/types/probe.d.ts +39 -0
- package/lib/types/remote-codec.d.ts +10 -0
- package/lib/types/remote.d.ts +202 -0
- package/lib/types/replay-recovery-host.d.ts +28 -0
- package/lib/types/replay-recovery-remote.d.ts +14 -0
- package/lib/types/replay-recovery-types.d.ts +24 -0
- package/lib/types/replay-recovery-ui.d.ts +28 -0
- package/lib/types/replay-recovery.d.ts +17 -0
- package/lib/types/request-body-composition.d.ts +17 -0
- package/lib/types/request-body-evidence.d.ts +37 -0
- package/lib/types/request-body-timeout-marker.d.ts +2 -0
- package/lib/types/request-body-timeout.d.ts +4 -0
- package/lib/types/request-budget.d.ts +58 -0
- package/lib/types/request-diagnostics.d.ts +278 -0
- package/lib/types/request-upload-evidence.d.ts +23 -0
- package/lib/types/response-error-body.d.ts +3 -0
- package/lib/types/responses-reasoning-text.d.ts +24 -0
- package/lib/types/responses-reasoning.d.ts +7 -0
- package/lib/types/responses-replay-compat.d.ts +31 -0
- package/lib/types/responses-request-compression.d.ts +33 -0
- package/lib/types/route-ownership.d.ts +70 -0
- package/lib/types/routed-web.d.ts +50 -0
- package/lib/types/search-backend.d.ts +16 -0
- package/lib/types/search-routing-host.d.ts +19 -0
- package/lib/types/search-routing-policy.d.ts +18 -0
- package/lib/types/search-routing-remote.d.ts +20 -0
- package/lib/types/search-routing.d.ts +43 -0
- package/lib/types/search-tool-routing.d.ts +22 -0
- package/lib/types/serialize.d.ts +106 -0
- package/lib/types/session-accounts-controller.d.ts +20 -0
- package/lib/types/session-accounts-host.d.ts +33 -0
- package/lib/types/session-accounts-remote.d.ts +114 -0
- package/lib/types/session-accounts.d.ts +38 -0
- package/lib/types/session-continuation-host.d.ts +45 -0
- package/lib/types/session-continuation-remote.d.ts +22 -0
- package/lib/types/session-continuation-types.d.ts +62 -0
- package/lib/types/session-continuation-ui.d.ts +49 -0
- package/lib/types/session-continuation.d.ts +14 -0
- package/lib/types/settings-reader.d.ts +16 -0
- package/lib/types/sse.d.ts +28 -0
- package/lib/types/temporary-models.d.ts +25 -0
- package/lib/types/tool-schema-compat.d.ts +17 -0
- package/lib/types/traditional-search.d.ts +17 -0
- package/lib/types/turn-model-provenance.d.ts +45 -0
- package/lib/types/turn-request-models.d.ts +55 -0
- package/lib/types/turn-selection-card.d.ts +24 -0
- package/lib/types/turn-selection-host.d.ts +35 -0
- package/lib/types/turn-selection-remote.d.ts +17 -0
- package/lib/types/turn-selection.d.ts +186 -0
- package/lib/types/turn-usage-evidence.d.ts +66 -0
- package/lib/types/turn-usage-notice.d.ts +7 -0
- package/lib/types/types.d.ts +69 -0
- package/lib/types/usage.d.ts +26 -0
- package/lib/types/watchdog.d.ts +22 -0
- package/lib/types/web-delegate.d.ts +12 -0
- package/lib/types/web-search-routing-card.d.ts +16 -0
- package/lib/types/web-search-routing-config.d.ts +12 -0
- package/lib/types/wire-anthropic.d.ts +37 -0
- package/lib/types/wire.d.ts +56 -0
- package/lib/web-delegate.js +9 -0
- package/output/auto-model-mockup/index.html +207 -0
- package/package.json +261 -0
- package/scripts/analyze-diagnostics.mjs +91 -0
- package/scripts/check-search-composition.mjs +191 -0
- package/scripts/iteration-review.mjs +53 -0
- package/scripts/release-policy.mjs +353 -0
- package/scripts/select-core-release.mjs +11 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { DiagnosticsSnapshot, DiagnosticsView } from './diagnostics-types.ts';
|
|
3
|
+
export declare const DiagnosticsAnalysisReportSchema: z.ZodObject<{
|
|
4
|
+
reportVersion: z.ZodLiteral<1>;
|
|
5
|
+
coverageVersion: z.ZodLiteral<1>;
|
|
6
|
+
interpretation: z.ZodLiteral<"descriptive-observations-only">;
|
|
7
|
+
source: z.ZodEnum<{
|
|
8
|
+
"reviewed-view": "reviewed-view";
|
|
9
|
+
"persisted-snapshot": "persisted-snapshot";
|
|
10
|
+
}>;
|
|
11
|
+
observedAt: z.ZodNumber;
|
|
12
|
+
snapshotAt: z.ZodNumber;
|
|
13
|
+
ageMs: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
epoch: z.ZodNumber;
|
|
15
|
+
coverageComplete: z.ZodLiteral<false>;
|
|
16
|
+
effectivenessVerified: z.ZodLiteral<false>;
|
|
17
|
+
gaps: z.ZodArray<z.ZodEnum<{
|
|
18
|
+
"clock-discontinuity": "clock-discontinuity";
|
|
19
|
+
"persisted-only": "persisted-only";
|
|
20
|
+
"live-enabled-state-unknown": "live-enabled-state-unknown";
|
|
21
|
+
"live-pending-state-unknown": "live-pending-state-unknown";
|
|
22
|
+
"unflushed-tail-unknown": "unflushed-tail-unknown";
|
|
23
|
+
"stored-pending-is-not-live": "stored-pending-is-not-live";
|
|
24
|
+
"no-retained-operation-observations": "no-retained-operation-observations";
|
|
25
|
+
"account-switch-not-observed": "account-switch-not-observed";
|
|
26
|
+
"compaction-not-observed": "compaction-not-observed";
|
|
27
|
+
"stale-snapshot": "stale-snapshot";
|
|
28
|
+
"expired-in-stored-snapshot": "expired-in-stored-snapshot";
|
|
29
|
+
"host-dropped": "host-dropped";
|
|
30
|
+
"client-dropped": "client-dropped";
|
|
31
|
+
"client-unconfirmed": "client-unconfirmed";
|
|
32
|
+
"retention-or-capacity-eviction": "retention-or-capacity-eviction";
|
|
33
|
+
"collector-saturated": "collector-saturated";
|
|
34
|
+
"interrupted-observations": "interrupted-observations";
|
|
35
|
+
"recorded-pause": "recorded-pause";
|
|
36
|
+
"unpersisted-observations": "unpersisted-observations";
|
|
37
|
+
"collection-paused": "collection-paused";
|
|
38
|
+
"storage-not-ready": "storage-not-ready";
|
|
39
|
+
"analysis-count-overflow": "analysis-count-overflow";
|
|
40
|
+
"no-cross-layer-correlation": "no-cross-layer-correlation";
|
|
41
|
+
"no-unique-impact": "no-unique-impact";
|
|
42
|
+
"hour-boundary-censoring": "hour-boundary-censoring";
|
|
43
|
+
"no-collection-coverage-clock": "no-collection-coverage-clock";
|
|
44
|
+
"no-calibrated-alert-thresholds": "no-calibrated-alert-thresholds";
|
|
45
|
+
"no-baseline-trend": "no-baseline-trend";
|
|
46
|
+
"no-root-cause-proof": "no-root-cause-proof";
|
|
47
|
+
"request-observations-not-analyzed": "request-observations-not-analyzed";
|
|
48
|
+
}>>;
|
|
49
|
+
collection: z.ZodObject<{
|
|
50
|
+
enabled: z.ZodNullable<z.ZodBoolean>;
|
|
51
|
+
state: z.ZodNullable<z.ZodEnum<{
|
|
52
|
+
error: "error";
|
|
53
|
+
ready: "ready";
|
|
54
|
+
unavailable: "unavailable";
|
|
55
|
+
loading: "loading";
|
|
56
|
+
}>>;
|
|
57
|
+
diagnostic: z.ZodNullable<z.ZodEnum<{
|
|
58
|
+
none: "none";
|
|
59
|
+
"storage-unavailable": "storage-unavailable";
|
|
60
|
+
"storage-invalid": "storage-invalid";
|
|
61
|
+
"storage-write-failed": "storage-write-failed";
|
|
62
|
+
"profile-unavailable": "profile-unavailable";
|
|
63
|
+
"settings-unavailable": "settings-unavailable";
|
|
64
|
+
"settings-conflict": "settings-conflict";
|
|
65
|
+
"client-report-failed": "client-report-failed";
|
|
66
|
+
"client-report-revoked": "client-report-revoked";
|
|
67
|
+
closed: "closed";
|
|
68
|
+
}>>;
|
|
69
|
+
dirty: z.ZodNullable<z.ZodBoolean>;
|
|
70
|
+
persistedAt: z.ZodNullable<z.ZodNumber>;
|
|
71
|
+
}, z.core.$strict>;
|
|
72
|
+
counters: z.ZodObject<{
|
|
73
|
+
dropped: z.ZodNumber;
|
|
74
|
+
clientDropped: z.ZodNumber;
|
|
75
|
+
clientUnconfirmed: z.ZodNumber;
|
|
76
|
+
evicted: z.ZodNumber;
|
|
77
|
+
saturated: z.ZodNumber;
|
|
78
|
+
interrupted: z.ZodNumber;
|
|
79
|
+
}, z.core.$strict>;
|
|
80
|
+
populations: z.ZodArray<z.ZodObject<{
|
|
81
|
+
version: z.ZodString;
|
|
82
|
+
layer: z.ZodEnum<{
|
|
83
|
+
client: "client";
|
|
84
|
+
host: "host";
|
|
85
|
+
}>;
|
|
86
|
+
operation: z.ZodEnum<{
|
|
87
|
+
compaction: "compaction";
|
|
88
|
+
"account-global-switch": "account-global-switch";
|
|
89
|
+
"account-session-select": "account-session-select";
|
|
90
|
+
"account-session-inherit": "account-session-inherit";
|
|
91
|
+
"identity-read": "identity-read";
|
|
92
|
+
"identity-flight": "identity-flight";
|
|
93
|
+
"compaction-summary": "compaction-summary";
|
|
94
|
+
collection: "collection";
|
|
95
|
+
}>;
|
|
96
|
+
successMeaning: z.ZodEnum<{
|
|
97
|
+
"owner-terminal-observation-only": "owner-terminal-observation-only";
|
|
98
|
+
"matching-checkpoint-and-end-observed": "matching-checkpoint-and-end-observed";
|
|
99
|
+
"summary-call-fulfilled-not-checkpoint-commit": "summary-call-fulfilled-not-checkpoint-commit";
|
|
100
|
+
}>;
|
|
101
|
+
firstHour: z.ZodNumber;
|
|
102
|
+
lastHour: z.ZodNumber;
|
|
103
|
+
started: z.ZodObject<{
|
|
104
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
105
|
+
overflow: z.ZodBoolean;
|
|
106
|
+
}, z.core.$strict>;
|
|
107
|
+
terminalObservations: z.ZodObject<{
|
|
108
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
109
|
+
overflow: z.ZodBoolean;
|
|
110
|
+
}, z.core.$strict>;
|
|
111
|
+
outcomes: z.ZodObject<{
|
|
112
|
+
success: z.ZodObject<{
|
|
113
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
114
|
+
overflow: z.ZodBoolean;
|
|
115
|
+
}, z.core.$strict>;
|
|
116
|
+
'no-op': z.ZodObject<{
|
|
117
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
118
|
+
overflow: z.ZodBoolean;
|
|
119
|
+
}, z.core.$strict>;
|
|
120
|
+
cancelled: z.ZodObject<{
|
|
121
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
122
|
+
overflow: z.ZodBoolean;
|
|
123
|
+
}, z.core.$strict>;
|
|
124
|
+
'policy-rejected': z.ZodObject<{
|
|
125
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
126
|
+
overflow: z.ZodBoolean;
|
|
127
|
+
}, z.core.$strict>;
|
|
128
|
+
revoked: z.ZodObject<{
|
|
129
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
130
|
+
overflow: z.ZodBoolean;
|
|
131
|
+
}, z.core.$strict>;
|
|
132
|
+
'environment-fault': z.ZodObject<{
|
|
133
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
134
|
+
overflow: z.ZodBoolean;
|
|
135
|
+
}, z.core.$strict>;
|
|
136
|
+
failed: z.ZodObject<{
|
|
137
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
138
|
+
overflow: z.ZodBoolean;
|
|
139
|
+
}, z.core.$strict>;
|
|
140
|
+
unknown: z.ZodObject<{
|
|
141
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
142
|
+
overflow: z.ZodBoolean;
|
|
143
|
+
}, z.core.$strict>;
|
|
144
|
+
interrupted: z.ZodObject<{
|
|
145
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
146
|
+
overflow: z.ZodBoolean;
|
|
147
|
+
}, z.core.$strict>;
|
|
148
|
+
}, z.core.$strict>;
|
|
149
|
+
terminalLatency: z.ZodArray<z.ZodObject<{
|
|
150
|
+
lowerMs: z.ZodNumber;
|
|
151
|
+
upperExclusiveMs: z.ZodNullable<z.ZodNumber>;
|
|
152
|
+
count: z.ZodObject<{
|
|
153
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
154
|
+
overflow: z.ZodBoolean;
|
|
155
|
+
}, z.core.$strict>;
|
|
156
|
+
}, z.core.$strict>>;
|
|
157
|
+
stageAgeObservations: z.ZodArray<z.ZodObject<{
|
|
158
|
+
lowerMs: z.ZodNumber;
|
|
159
|
+
upperExclusiveMs: z.ZodNullable<z.ZodNumber>;
|
|
160
|
+
count: z.ZodObject<{
|
|
161
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
162
|
+
overflow: z.ZodBoolean;
|
|
163
|
+
}, z.core.$strict>;
|
|
164
|
+
}, z.core.$strict>>;
|
|
165
|
+
pendingSamples: z.ZodObject<{
|
|
166
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
167
|
+
overflow: z.ZodBoolean;
|
|
168
|
+
}, z.core.$strict>;
|
|
169
|
+
pendingSampleAges: z.ZodArray<z.ZodObject<{
|
|
170
|
+
lowerMs: z.ZodNumber;
|
|
171
|
+
upperExclusiveMs: z.ZodNullable<z.ZodNumber>;
|
|
172
|
+
count: z.ZodObject<{
|
|
173
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
174
|
+
overflow: z.ZodBoolean;
|
|
175
|
+
}, z.core.$strict>;
|
|
176
|
+
}, z.core.$strict>>;
|
|
177
|
+
stageObservations: z.ZodObject<{
|
|
178
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
179
|
+
overflow: z.ZodBoolean;
|
|
180
|
+
}, z.core.$strict>;
|
|
181
|
+
startsMinusTerminals: z.ZodNull;
|
|
182
|
+
exactOperationFailureRate: z.ZodNull;
|
|
183
|
+
}, z.core.$strict>>;
|
|
184
|
+
pendingAtSnapshot: z.ZodArray<z.ZodObject<{
|
|
185
|
+
version: z.ZodString;
|
|
186
|
+
operation: z.ZodEnum<{
|
|
187
|
+
compaction: "compaction";
|
|
188
|
+
"account-global-switch": "account-global-switch";
|
|
189
|
+
"account-session-select": "account-session-select";
|
|
190
|
+
"account-session-inherit": "account-session-inherit";
|
|
191
|
+
"identity-read": "identity-read";
|
|
192
|
+
"identity-flight": "identity-flight";
|
|
193
|
+
"compaction-summary": "compaction-summary";
|
|
194
|
+
collection: "collection";
|
|
195
|
+
}>;
|
|
196
|
+
stage: z.ZodEnum<{
|
|
197
|
+
ended: "ended";
|
|
198
|
+
dispatched: "dispatched";
|
|
199
|
+
admitted: "admitted";
|
|
200
|
+
"rpc-invoked": "rpc-invoked";
|
|
201
|
+
"host-received": "host-received";
|
|
202
|
+
"identity-validation": "identity-validation";
|
|
203
|
+
"model-validation": "model-validation";
|
|
204
|
+
cas: "cas";
|
|
205
|
+
readback: "readback";
|
|
206
|
+
"response-received": "response-received";
|
|
207
|
+
decoded: "decoded";
|
|
208
|
+
"client-settled": "client-settled";
|
|
209
|
+
"summary-attempt": "summary-attempt";
|
|
210
|
+
"checkpoint-committed": "checkpoint-committed";
|
|
211
|
+
"cache-hit": "cache-hit";
|
|
212
|
+
"joined-flight": "joined-flight";
|
|
213
|
+
cooldown: "cooldown";
|
|
214
|
+
}>;
|
|
215
|
+
bucket: z.ZodNumber;
|
|
216
|
+
count: z.ZodNumber;
|
|
217
|
+
}, z.core.$strict>>;
|
|
218
|
+
investigationCandidates: z.ZodArray<z.ZodObject<{
|
|
219
|
+
fingerprint: z.ZodString;
|
|
220
|
+
category: z.ZodEnum<{
|
|
221
|
+
"recorded-failure": "recorded-failure";
|
|
222
|
+
"unknown-outcome": "unknown-outcome";
|
|
223
|
+
}>;
|
|
224
|
+
layer: z.ZodEnum<{
|
|
225
|
+
client: "client";
|
|
226
|
+
host: "host";
|
|
227
|
+
}>;
|
|
228
|
+
operation: z.ZodEnum<{
|
|
229
|
+
compaction: "compaction";
|
|
230
|
+
"account-global-switch": "account-global-switch";
|
|
231
|
+
"account-session-select": "account-session-select";
|
|
232
|
+
"account-session-inherit": "account-session-inherit";
|
|
233
|
+
"identity-read": "identity-read";
|
|
234
|
+
"identity-flight": "identity-flight";
|
|
235
|
+
"compaction-summary": "compaction-summary";
|
|
236
|
+
collection: "collection";
|
|
237
|
+
}>;
|
|
238
|
+
metric: z.ZodEnum<{
|
|
239
|
+
unknown: "unknown";
|
|
240
|
+
failed: "failed";
|
|
241
|
+
"environment-fault": "environment-fault";
|
|
242
|
+
}>;
|
|
243
|
+
reason: z.ZodEnum<{
|
|
244
|
+
none: "none";
|
|
245
|
+
COPILOT_ACCOUNTS_SETTINGS_UNAVAILABLE: "COPILOT_ACCOUNTS_SETTINGS_UNAVAILABLE";
|
|
246
|
+
COPILOT_ACCOUNTS_CHANGED: "COPILOT_ACCOUNTS_CHANGED";
|
|
247
|
+
COPILOT_ACCOUNTS_BUSY: "COPILOT_ACCOUNTS_BUSY";
|
|
248
|
+
COPILOT_ACCOUNTS_CONFLICT: "COPILOT_ACCOUNTS_CONFLICT";
|
|
249
|
+
COPILOT_ACCOUNTS_COMMIT_UNCERTAIN: "COPILOT_ACCOUNTS_COMMIT_UNCERTAIN";
|
|
250
|
+
COPILOT_ACCOUNTS_MODELS_FAILED: "COPILOT_ACCOUNTS_MODELS_FAILED";
|
|
251
|
+
COPILOT_ACCOUNTS_IDENTITY_UNAVAILABLE: "COPILOT_ACCOUNTS_IDENTITY_UNAVAILABLE";
|
|
252
|
+
COPILOT_ACCOUNTS_IDENTITY_INVALID: "COPILOT_ACCOUNTS_IDENTITY_INVALID";
|
|
253
|
+
COPILOT_ACCOUNTS_IDENTITY_TIMEOUT: "COPILOT_ACCOUNTS_IDENTITY_TIMEOUT";
|
|
254
|
+
COPILOT_ACCOUNTS_IDENTITY_TLS: "COPILOT_ACCOUNTS_IDENTITY_TLS";
|
|
255
|
+
COPILOT_ACCOUNTS_IDENTITY_NETWORK: "COPILOT_ACCOUNTS_IDENTITY_NETWORK";
|
|
256
|
+
COPILOT_ACCOUNTS_IDENTITY_AUTH_REJECTED: "COPILOT_ACCOUNTS_IDENTITY_AUTH_REJECTED";
|
|
257
|
+
COPILOT_ACCOUNTS_IDENTITY_RATE_LIMITED: "COPILOT_ACCOUNTS_IDENTITY_RATE_LIMITED";
|
|
258
|
+
COPILOT_ACCOUNTS_IDENTITY_HTTP_ERROR: "COPILOT_ACCOUNTS_IDENTITY_HTTP_ERROR";
|
|
259
|
+
unknown: "unknown";
|
|
260
|
+
"rpc-unavailable": "rpc-unavailable";
|
|
261
|
+
"decode-invalid": "decode-invalid";
|
|
262
|
+
COPILOT_SESSION_ACCOUNTS_UNAVAILABLE: "COPILOT_SESSION_ACCOUNTS_UNAVAILABLE";
|
|
263
|
+
COPILOT_SESSION_ACCOUNTS_SETTINGS_UNAVAILABLE: "COPILOT_SESSION_ACCOUNTS_SETTINGS_UNAVAILABLE";
|
|
264
|
+
COPILOT_SESSION_ACCOUNTS_COMMIT_UNCERTAIN: "COPILOT_SESSION_ACCOUNTS_COMMIT_UNCERTAIN";
|
|
265
|
+
COPILOT_RESPONSES_REPLAY_SCOPE_MISMATCH: "COPILOT_RESPONSES_REPLAY_SCOPE_MISMATCH";
|
|
266
|
+
CONTEXT_WINDOW_EXCEEDED: "CONTEXT_WINDOW_EXCEEDED";
|
|
267
|
+
COPILOT_MANUAL_RECOVERY_FIXED_PREFIX: "COPILOT_MANUAL_RECOVERY_FIXED_PREFIX";
|
|
268
|
+
COPILOT_MANUAL_RECOVERY_INDIVISIBLE: "COPILOT_MANUAL_RECOVERY_INDIVISIBLE";
|
|
269
|
+
COPILOT_MANUAL_RECOVERY_TOKEN_METER_UNAVAILABLE: "COPILOT_MANUAL_RECOVERY_TOKEN_METER_UNAVAILABLE";
|
|
270
|
+
COPILOT_MANUAL_RECOVERY_TOKEN_ESTIMATE_INVALID: "COPILOT_MANUAL_RECOVERY_TOKEN_ESTIMATE_INVALID";
|
|
271
|
+
COPILOT_MANUAL_RECOVERY_CALL_LIMIT: "COPILOT_MANUAL_RECOVERY_CALL_LIMIT";
|
|
272
|
+
COPILOT_MANUAL_RECOVERY_EMPTY_SUMMARY: "COPILOT_MANUAL_RECOVERY_EMPTY_SUMMARY";
|
|
273
|
+
COPILOT_MANUAL_RECOVERY_UNBALANCED: "COPILOT_MANUAL_RECOVERY_UNBALANCED";
|
|
274
|
+
}>;
|
|
275
|
+
versions: z.ZodArray<z.ZodString>;
|
|
276
|
+
firstHour: z.ZodNumber;
|
|
277
|
+
lastHour: z.ZodNumber;
|
|
278
|
+
observations: z.ZodObject<{
|
|
279
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
280
|
+
overflow: z.ZodBoolean;
|
|
281
|
+
}, z.core.$strict>;
|
|
282
|
+
regressionProven: z.ZodLiteral<false>;
|
|
283
|
+
persistentFaultProven: z.ZodLiteral<false>;
|
|
284
|
+
rootCause: z.ZodLiteral<"unknown">;
|
|
285
|
+
}, z.core.$strict>>;
|
|
286
|
+
}, z.core.$strict>;
|
|
287
|
+
export type DiagnosticsAnalysisReport = z.infer<typeof DiagnosticsAnalysisReportSchema>;
|
|
288
|
+
export type DiagnosticsAnalysisSource = 'reviewed-view' | 'persisted-snapshot';
|
|
289
|
+
export declare function diagnosticsUnitName(profileName: string): string;
|
|
290
|
+
export declare function parseReviewedView(text: string): DiagnosticsView;
|
|
291
|
+
export declare function parsePersistedUnit(text: string, expectedUnit: string): DiagnosticsSnapshot;
|
|
292
|
+
export declare function analyzeSnapshot(input: unknown, options: {
|
|
293
|
+
source: DiagnosticsAnalysisSource;
|
|
294
|
+
observedAt: number;
|
|
295
|
+
view?: DiagnosticsView;
|
|
296
|
+
}): DiagnosticsAnalysisReport;
|
|
297
|
+
export declare function analyzeReviewedView(view: DiagnosticsView, observedAt: number): DiagnosticsAnalysisReport;
|
|
298
|
+
//# sourceMappingURL=diagnostics-analysis.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
2
|
+
import type { CSSProperties } from 'react';
|
|
3
|
+
export type DiagnosticsRemote = Context['remote']['githubCopilotDiagnostics'];
|
|
4
|
+
export declare function DiagnosticsCard({ remote }: {
|
|
5
|
+
remote?: DiagnosticsRemote;
|
|
6
|
+
}): import("react").DetailedReactHTMLElement<{
|
|
7
|
+
'aria-label': string;
|
|
8
|
+
'data-copilot-native-ui': boolean;
|
|
9
|
+
'data-copilot-diagnostics': boolean;
|
|
10
|
+
style: CSSProperties;
|
|
11
|
+
}, HTMLElement>;
|
|
12
|
+
//# sourceMappingURL=diagnostics-card.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
2
|
+
import type { DiagnosticsHandle } from './diagnostics-collector.ts';
|
|
3
|
+
import type { DiagnosticsOperation, DiagnosticsView } from './diagnostics-types.ts';
|
|
4
|
+
export declare function updateDiagnosticsClient(view: DiagnosticsView): void;
|
|
5
|
+
export declare function clientDiagnosticsReportingFailed(): boolean;
|
|
6
|
+
export declare function beginClientDiagnostics(operation: DiagnosticsOperation): DiagnosticsHandle | undefined;
|
|
7
|
+
export declare function createClientDiagnosticsScope(): {
|
|
8
|
+
begin(operation: DiagnosticsOperation): DiagnosticsHandle | undefined;
|
|
9
|
+
close(): void;
|
|
10
|
+
};
|
|
11
|
+
/** Bounded additive reporting, no retry after an uncertain RPC result. */
|
|
12
|
+
export declare function installDiagnosticsClient(ctx: Context): () => Promise<void>;
|
|
13
|
+
//# sourceMappingURL=diagnostics-client.d.ts.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { DiagnosticsOperation, DiagnosticsStage, DiagnosticsOutcome, DiagnosticsReason, DiagnosticsRow, DiagnosticsSnapshot } from './diagnostics-types.ts';
|
|
2
|
+
import type { AutoSelectionExplanation } from './auto-model-routing.ts';
|
|
3
|
+
import type { RequestDiagnosticHandle, RequestDiagnosticStart, CredentialChangeHandle } from './request-diagnostics.ts';
|
|
4
|
+
export interface DiagnosticsHandle {
|
|
5
|
+
stage(stage: DiagnosticsStage): void;
|
|
6
|
+
finish(outcome: DiagnosticsOutcome, reason?: DiagnosticsReason): void;
|
|
7
|
+
}
|
|
8
|
+
export declare function emptyDiagnostics(): DiagnosticsSnapshot;
|
|
9
|
+
/** Only fixed dimensions cross this boundary; live handles never leave the owner. */
|
|
10
|
+
export declare class DiagnosticsCollector {
|
|
11
|
+
readonly version: string;
|
|
12
|
+
readonly layer: 'client' | 'host';
|
|
13
|
+
private readonly changed;
|
|
14
|
+
private readonly wall;
|
|
15
|
+
private readonly mono;
|
|
16
|
+
private data;
|
|
17
|
+
private readonly live;
|
|
18
|
+
private enabled;
|
|
19
|
+
private autoAllocationEnabled;
|
|
20
|
+
private requestEnabled;
|
|
21
|
+
private readonly requestHandles;
|
|
22
|
+
private readonly credentialHandles;
|
|
23
|
+
private requestGeneration;
|
|
24
|
+
private lastWall;
|
|
25
|
+
private readonly autoAllocation;
|
|
26
|
+
constructor(version: string, layer: 'client' | 'host', changed?: () => void, wall?: () => number, mono?: () => number);
|
|
27
|
+
restore(snapshot: DiagnosticsSnapshot): void;
|
|
28
|
+
setEnabled(enabled: boolean): void;
|
|
29
|
+
assertCanEnable(): void;
|
|
30
|
+
clear(): void;
|
|
31
|
+
begin(operation: DiagnosticsOperation): DiagnosticsHandle;
|
|
32
|
+
private settle;
|
|
33
|
+
private age;
|
|
34
|
+
private increment;
|
|
35
|
+
private expire;
|
|
36
|
+
private add;
|
|
37
|
+
private oldestIndex;
|
|
38
|
+
snapshot(): DiagnosticsSnapshot;
|
|
39
|
+
close(): void;
|
|
40
|
+
setRequestEnabled(enabled: boolean): void;
|
|
41
|
+
beginCredentialChange(): CredentialChangeHandle | undefined;
|
|
42
|
+
beginRequest(start: RequestDiagnosticStart): RequestDiagnosticHandle | undefined;
|
|
43
|
+
isRequestEnabled(): boolean;
|
|
44
|
+
noteDropped(): void;
|
|
45
|
+
noteClientGaps(dropped: number, unconfirmed: number): void;
|
|
46
|
+
recordAutoAllocation(explanation: AutoSelectionExplanation): void;
|
|
47
|
+
setAutoAllocationEnabled(enabled: boolean): void;
|
|
48
|
+
mergeClient(rows: readonly DiagnosticsRow[]): void;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=diagnostics-collector.d.ts.map
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { Context } from '@deepseek-ai/cordis';
|
|
2
|
+
import { TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
|
|
3
|
+
import type { DomainGlobalSpec } from '@deepseek-ai/dsh-storage-domain';
|
|
4
|
+
import { DiagnosticsCollector } from './diagnostics-collector.ts';
|
|
5
|
+
import type { DiagnosticsHandle } from './diagnostics-collector.ts';
|
|
6
|
+
import type { DiagnosticsOperation, DiagnosticsView } from './diagnostics-types.ts';
|
|
7
|
+
import type { ClientDiagnosticsBatch } from './diagnostics-remote.ts';
|
|
8
|
+
export declare const diagnosticsDomain: {
|
|
9
|
+
name: string;
|
|
10
|
+
version: number;
|
|
11
|
+
tables: {};
|
|
12
|
+
global: DomainGlobalSpec<{
|
|
13
|
+
schemaVersion: 1;
|
|
14
|
+
coverageVersion: 1;
|
|
15
|
+
epoch: number;
|
|
16
|
+
updatedAt: number;
|
|
17
|
+
rows: {
|
|
18
|
+
hour: number;
|
|
19
|
+
version: string;
|
|
20
|
+
layer: "client" | "host";
|
|
21
|
+
operation: "compaction" | "account-global-switch" | "account-session-select" | "account-session-inherit" | "identity-read" | "identity-flight" | "compaction-summary" | "collection";
|
|
22
|
+
stage: "ended" | "dispatched" | "admitted" | "rpc-invoked" | "host-received" | "identity-validation" | "model-validation" | "cas" | "readback" | "response-received" | "decoded" | "client-settled" | "summary-attempt" | "checkpoint-committed" | "cache-hit" | "joined-flight" | "cooldown";
|
|
23
|
+
metric: "paused" | "unknown" | "success" | "stage" | "failed" | "dropped" | "expired" | "cancelled" | "revoked" | "interrupted" | "started" | "no-op" | "policy-rejected" | "environment-fault" | "clock-discontinuity" | "pending-sample";
|
|
24
|
+
reason: "none" | "COPILOT_ACCOUNTS_SETTINGS_UNAVAILABLE" | "COPILOT_ACCOUNTS_CHANGED" | "COPILOT_ACCOUNTS_BUSY" | "COPILOT_ACCOUNTS_CONFLICT" | "COPILOT_ACCOUNTS_COMMIT_UNCERTAIN" | "COPILOT_ACCOUNTS_MODELS_FAILED" | "COPILOT_ACCOUNTS_IDENTITY_UNAVAILABLE" | "COPILOT_ACCOUNTS_IDENTITY_INVALID" | "COPILOT_ACCOUNTS_IDENTITY_TIMEOUT" | "COPILOT_ACCOUNTS_IDENTITY_TLS" | "COPILOT_ACCOUNTS_IDENTITY_NETWORK" | "COPILOT_ACCOUNTS_IDENTITY_AUTH_REJECTED" | "COPILOT_ACCOUNTS_IDENTITY_RATE_LIMITED" | "COPILOT_ACCOUNTS_IDENTITY_HTTP_ERROR" | "unknown" | "rpc-unavailable" | "decode-invalid" | "COPILOT_SESSION_ACCOUNTS_UNAVAILABLE" | "COPILOT_SESSION_ACCOUNTS_SETTINGS_UNAVAILABLE" | "COPILOT_SESSION_ACCOUNTS_COMMIT_UNCERTAIN" | "COPILOT_RESPONSES_REPLAY_SCOPE_MISMATCH" | "CONTEXT_WINDOW_EXCEEDED" | "COPILOT_MANUAL_RECOVERY_FIXED_PREFIX" | "COPILOT_MANUAL_RECOVERY_INDIVISIBLE" | "COPILOT_MANUAL_RECOVERY_TOKEN_METER_UNAVAILABLE" | "COPILOT_MANUAL_RECOVERY_TOKEN_ESTIMATE_INVALID" | "COPILOT_MANUAL_RECOVERY_CALL_LIMIT" | "COPILOT_MANUAL_RECOVERY_EMPTY_SUMMARY" | "COPILOT_MANUAL_RECOVERY_UNBALANCED";
|
|
25
|
+
bucket: number;
|
|
26
|
+
count: number;
|
|
27
|
+
}[];
|
|
28
|
+
pending: {
|
|
29
|
+
version: string;
|
|
30
|
+
operation: "compaction" | "account-global-switch" | "account-session-select" | "account-session-inherit" | "identity-read" | "identity-flight" | "compaction-summary" | "collection";
|
|
31
|
+
stage: "ended" | "dispatched" | "admitted" | "rpc-invoked" | "host-received" | "identity-validation" | "model-validation" | "cas" | "readback" | "response-received" | "decoded" | "client-settled" | "summary-attempt" | "checkpoint-committed" | "cache-hit" | "joined-flight" | "cooldown";
|
|
32
|
+
bucket: number;
|
|
33
|
+
count: number;
|
|
34
|
+
}[];
|
|
35
|
+
dropped: number;
|
|
36
|
+
clientDropped: number;
|
|
37
|
+
clientUnconfirmed: number;
|
|
38
|
+
saturated: number;
|
|
39
|
+
evicted: number;
|
|
40
|
+
interrupted: number;
|
|
41
|
+
autoAllocation?: {
|
|
42
|
+
status: "observed" | "not-collected";
|
|
43
|
+
rows: {
|
|
44
|
+
day: number;
|
|
45
|
+
version: string;
|
|
46
|
+
policyVersion: string;
|
|
47
|
+
modelId: string;
|
|
48
|
+
targetCategory: "powerful" | "versatile" | "lightweight";
|
|
49
|
+
category: "unknown" | "powerful" | "versatile" | "lightweight";
|
|
50
|
+
demand: "unknown" | "simple" | "routine" | "complex";
|
|
51
|
+
assessmentSource: "local" | "semantic";
|
|
52
|
+
method: "weighted-distribution" | "only-candidate";
|
|
53
|
+
fallback: boolean;
|
|
54
|
+
highCost: boolean;
|
|
55
|
+
previous: boolean;
|
|
56
|
+
weight: number;
|
|
57
|
+
opportunities: number;
|
|
58
|
+
expectedSelections: number;
|
|
59
|
+
selections: number;
|
|
60
|
+
assessmentOutcome?: "disabled" | "unavailable" | "context-omitted" | "invalid-result" | "timeout" | "failed" | "local-known" | "local-unknown" | "semantic-known" | "semantic-unknown" | undefined;
|
|
61
|
+
}[];
|
|
62
|
+
noFitRows: {
|
|
63
|
+
day: number;
|
|
64
|
+
version: string;
|
|
65
|
+
policyVersion: string;
|
|
66
|
+
targetCategory: "powerful" | "versatile" | "lightweight";
|
|
67
|
+
category: "unknown" | "powerful" | "versatile" | "lightweight";
|
|
68
|
+
demand: "unknown" | "simple" | "routine" | "complex";
|
|
69
|
+
assessmentSource: "local" | "semantic";
|
|
70
|
+
decisions: number;
|
|
71
|
+
assessmentOutcome?: "disabled" | "unavailable" | "context-omitted" | "invalid-result" | "timeout" | "failed" | "local-known" | "local-unknown" | "semantic-known" | "semantic-unknown" | undefined;
|
|
72
|
+
}[];
|
|
73
|
+
observationStart: number | null;
|
|
74
|
+
observationEnd: number | null;
|
|
75
|
+
completeHistory: false;
|
|
76
|
+
rowsTruncated: boolean;
|
|
77
|
+
dropped: number;
|
|
78
|
+
expired: number;
|
|
79
|
+
saturated: number;
|
|
80
|
+
restarts: number;
|
|
81
|
+
} | undefined;
|
|
82
|
+
requests?: {
|
|
83
|
+
rows: {
|
|
84
|
+
streamId: string;
|
|
85
|
+
dispatchIndex: number;
|
|
86
|
+
version: string;
|
|
87
|
+
startedAt: number;
|
|
88
|
+
elapsedMs: number;
|
|
89
|
+
model: string;
|
|
90
|
+
protocol: "openai-completions" | "openai-responses" | "anthropic-messages";
|
|
91
|
+
composition: {
|
|
92
|
+
state: "complete";
|
|
93
|
+
totalBytes: number;
|
|
94
|
+
conversationBytes: number;
|
|
95
|
+
toolSchemaBytes: number;
|
|
96
|
+
systemBytes: number;
|
|
97
|
+
otherBytes: number;
|
|
98
|
+
imageBlockBytes: number;
|
|
99
|
+
opaqueReplayBytes: number;
|
|
100
|
+
remainingConversationBytes: number;
|
|
101
|
+
} | {
|
|
102
|
+
state: "unavailable" | "work-limit" | "size-limit" | "invalid-json" | "unsupported-shape" | "cancelled" | "time-limit";
|
|
103
|
+
totalBytes?: number | undefined;
|
|
104
|
+
};
|
|
105
|
+
encoding: "unknown" | "identity" | "gzip";
|
|
106
|
+
outcome: "cancelled" | "http-error" | "transport-error" | "stream-done" | "stream-error" | "interrupted";
|
|
107
|
+
reason: "none" | "unknown" | "request-body-timeout" | "caller-abort" | "credential-changed" | "disposed" | "byte-idle-timeout" | "signal-abort";
|
|
108
|
+
wireBytes?: number | undefined;
|
|
109
|
+
upload?: {
|
|
110
|
+
state: "observed";
|
|
111
|
+
bodyWrite: "observed" | "not-observed";
|
|
112
|
+
alpn: "h2" | "unavailable" | "http/1.1";
|
|
113
|
+
bodyWriteCompleteMs?: number | undefined;
|
|
114
|
+
nativeResponseHeadersMs?: number | undefined;
|
|
115
|
+
nodeWritableBufferBytes?: number | undefined;
|
|
116
|
+
} | {
|
|
117
|
+
state: "unavailable" | "work-limit";
|
|
118
|
+
} | {
|
|
119
|
+
state: "ambiguous";
|
|
120
|
+
requestCount: number;
|
|
121
|
+
} | undefined;
|
|
122
|
+
responseHeadersMs?: number | undefined;
|
|
123
|
+
httpStatus?: number | undefined;
|
|
124
|
+
}[];
|
|
125
|
+
dropped: number;
|
|
126
|
+
evicted: number;
|
|
127
|
+
pending?: number | undefined;
|
|
128
|
+
interruptedOnReopen?: number | undefined;
|
|
129
|
+
credentialChanges?: {
|
|
130
|
+
rows: {
|
|
131
|
+
changeId: string;
|
|
132
|
+
observedAt: number;
|
|
133
|
+
version: string;
|
|
134
|
+
phase: "notification" | "commit";
|
|
135
|
+
reason: "expired" | "qualified" | "unknown-source" | "account-changed" | "endpoint-changed" | "entitlements-changed" | "auth-mismatch" | "duplicate-notification" | "missing-notification" | "commit-mismatch" | "write-failed" | "write-conflict";
|
|
136
|
+
preparing: number;
|
|
137
|
+
dispatched: number;
|
|
138
|
+
alreadyAborted: number;
|
|
139
|
+
preserved: number;
|
|
140
|
+
revoked: number;
|
|
141
|
+
}[];
|
|
142
|
+
dropped: number;
|
|
143
|
+
evicted: number;
|
|
144
|
+
pending?: number | undefined;
|
|
145
|
+
interruptedOnReopen?: number | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
} | undefined;
|
|
148
|
+
}>;
|
|
149
|
+
};
|
|
150
|
+
export declare function diagnosticsDomainForProfile(profileId: string): typeof diagnosticsDomain;
|
|
151
|
+
declare module '@deepseek-ai/cordis' {
|
|
152
|
+
interface Context {
|
|
153
|
+
githubCopilotDiagnostics: DiagnosticsController;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
export declare function beginDiagnostics(ctx: Context, operation: DiagnosticsOperation): DiagnosticsHandle | undefined;
|
|
157
|
+
/** Keeps diagnostics durability failures separate from observed business failures. */
|
|
158
|
+
export declare class DiagnosticsController extends TypertRemoteService {
|
|
159
|
+
readonly collector: DiagnosticsCollector;
|
|
160
|
+
private domain;
|
|
161
|
+
private state;
|
|
162
|
+
private problem;
|
|
163
|
+
private enabled;
|
|
164
|
+
private autoAllocationEnabled;
|
|
165
|
+
private requestEnabled;
|
|
166
|
+
private dirty;
|
|
167
|
+
private persistedAt;
|
|
168
|
+
private revision;
|
|
169
|
+
private writing;
|
|
170
|
+
private closed;
|
|
171
|
+
private settingsBusy;
|
|
172
|
+
private readonly brackets;
|
|
173
|
+
constructor(ctx: Context);
|
|
174
|
+
flush(): Promise<void>;
|
|
175
|
+
markCompactionCancelled(session: object): void;
|
|
176
|
+
get(): DiagnosticsView;
|
|
177
|
+
setRequestEnabled(enabled: boolean): Promise<DiagnosticsView>;
|
|
178
|
+
setEnabled(enabled: boolean): Promise<DiagnosticsView>;
|
|
179
|
+
setAutoAllocationEnabled(enabled: boolean): Promise<DiagnosticsView>;
|
|
180
|
+
clear(): Promise<DiagnosticsView>;
|
|
181
|
+
recordClient(batch: ClientDiagnosticsBatch): Promise<DiagnosticsView>;
|
|
182
|
+
}
|
|
183
|
+
//# sourceMappingURL=diagnostics-host.d.ts.map
|