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.
Files changed (209) hide show
  1. package/AGENTS.md +439 -0
  2. package/CHANGELOG.md +875 -0
  3. package/CONTRIBUTING.md +55 -0
  4. package/LICENSE +21 -0
  5. package/README.md +366 -0
  6. package/README.zh.md +341 -0
  7. package/SECURITY.md +29 -0
  8. package/cordis.patch.yml +16 -0
  9. package/deployment-baseline.json +1580 -0
  10. package/docs/account-management-experience.md +143 -0
  11. package/docs/agent-readiness.md +110 -0
  12. package/docs/auto-high-cost.md +255 -0
  13. package/docs/auto-iteration-review.json +22 -0
  14. package/docs/auto-review-sampling.md +60 -0
  15. package/docs/auto-task-routing.md +341 -0
  16. package/docs/automatic-model-routing.md +236 -0
  17. package/docs/copilot-accounts.md +424 -0
  18. package/docs/copilot-compaction.md +148 -0
  19. package/docs/copilot-usage.md +133 -0
  20. package/docs/dual-model.md +66 -0
  21. package/docs/evidence-driven-iteration.md +86 -0
  22. package/docs/image-input-compatibility.md +64 -0
  23. package/docs/images/copilot-accounts-credits.png +0 -0
  24. package/docs/images/copilot-accounts.png +0 -0
  25. package/docs/images/copilot-current-provenance.json +39 -0
  26. package/docs/images/copilot-model-preferences.png +0 -0
  27. package/docs/images/copilot-search-routing.png +0 -0
  28. package/docs/images/copilot-session-continuation.png +0 -0
  29. package/docs/images/dual-model-desktop.png +0 -0
  30. package/docs/images/dual-model-mobile.png +0 -0
  31. package/docs/images/dual-model-provenance.json +35 -0
  32. package/docs/images/parent-model-follow.png +0 -0
  33. package/docs/manual-compaction-recovery.md +109 -0
  34. package/docs/mockups/copilot-account-dropdown.html +71 -0
  35. package/docs/mockups/copilot-account-management.html +393 -0
  36. package/docs/model-compatibility-acceptance.md +182 -0
  37. package/docs/npm-distribution.md +202 -0
  38. package/docs/official-first-016-alpha2.md +66 -0
  39. package/docs/official-first-020-rc1.md +32 -0
  40. package/docs/official-first-020-rc2.md +17 -0
  41. package/docs/official-first-021-alpha4.md +157 -0
  42. package/docs/official-first-021-alpha5.md +83 -0
  43. package/docs/plugin-diagnostics.md +605 -0
  44. package/docs/session-continuation.md +141 -0
  45. package/docs/session-search-routing.md +133 -0
  46. package/docs/single-route-migration.md +131 -0
  47. package/docs/web-lifecycle-rc2.md +55 -0
  48. package/lib/client.js +13236 -0
  49. package/lib/client.js.map +1 -0
  50. package/lib/copilot-identity-DRZY_d2X.js +15 -0
  51. package/lib/diagnostics-analysis-io.js +78 -0
  52. package/lib/diagnostics-analysis.js +427 -0
  53. package/lib/diagnostics-types-CF-qg8Do.js +708 -0
  54. package/lib/index.js +15661 -0
  55. package/lib/manual-compaction-recovery.js +485 -0
  56. package/lib/remote.js +1507 -0
  57. package/lib/request-budget-DLY_aRq0.js +87 -0
  58. package/lib/routed-web.js +120 -0
  59. package/lib/search-routing-CV2hs8as.js +792 -0
  60. package/lib/types/account-dropdown.d.ts +22 -0
  61. package/lib/types/account-model-auth.d.ts +15 -0
  62. package/lib/types/account-model-catalog.d.ts +70 -0
  63. package/lib/types/account-model-source.d.ts +85 -0
  64. package/lib/types/agent-compaction.d.ts +4 -0
  65. package/lib/types/authorization-code-clipboard.d.ts +4 -0
  66. package/lib/types/authorization-controller.d.ts +121 -0
  67. package/lib/types/auto-allocation-card.d.ts +9 -0
  68. package/lib/types/auto-allocation-diagnostics.d.ts +126 -0
  69. package/lib/types/auto-allocation-evidence.d.ts +44 -0
  70. package/lib/types/auto-allocation.d.ts +47 -0
  71. package/lib/types/auto-assessment-evidence.d.ts +111 -0
  72. package/lib/types/auto-model-host.d.ts +30 -0
  73. package/lib/types/auto-model-intent.d.ts +36 -0
  74. package/lib/types/auto-model-presentation.d.ts +57 -0
  75. package/lib/types/auto-model-routing.d.ts +64 -0
  76. package/lib/types/auto-review-sampling.d.ts +6 -0
  77. package/lib/types/auto-selection-explanation.d.ts +9 -0
  78. package/lib/types/auto-task-assessment.d.ts +49 -0
  79. package/lib/types/auto-task-classifier.d.ts +10 -0
  80. package/lib/types/background-compaction.d.ts +30 -0
  81. package/lib/types/client.d.ts +129 -0
  82. package/lib/types/compact-account.d.ts +42 -0
  83. package/lib/types/compaction-continuation-ui.d.ts +29 -0
  84. package/lib/types/compaction-continuation.d.ts +48 -0
  85. package/lib/types/compaction-input-estimate.d.ts +28 -0
  86. package/lib/types/compaction-pressure.d.ts +23 -0
  87. package/lib/types/compaction-replay.d.ts +18 -0
  88. package/lib/types/compatibility.d.ts +17 -0
  89. package/lib/types/composer-notice-style.d.ts +7 -0
  90. package/lib/types/config.d.ts +141 -0
  91. package/lib/types/content-file.d.ts +10 -0
  92. package/lib/types/context-evidence-ui.d.ts +28 -0
  93. package/lib/types/context-evidence.d.ts +256 -0
  94. package/lib/types/context-usage.d.ts +4 -0
  95. package/lib/types/copilot-account-presentation.d.ts +7 -0
  96. package/lib/types/copilot-accounts-card.d.ts +43 -0
  97. package/lib/types/copilot-accounts-host.d.ts +93 -0
  98. package/lib/types/copilot-accounts-remote.d.ts +85 -0
  99. package/lib/types/copilot-accounts-types.d.ts +43 -0
  100. package/lib/types/copilot-auth.d.ts +31 -0
  101. package/lib/types/copilot-grant.d.ts +11 -0
  102. package/lib/types/copilot-identity.d.ts +11 -0
  103. package/lib/types/copilot-request.d.ts +11 -0
  104. package/lib/types/copilot-stream-liveness.d.ts +23 -0
  105. package/lib/types/copilot-usage-card.d.ts +51 -0
  106. package/lib/types/copilot-usage-host.d.ts +61 -0
  107. package/lib/types/copilot-usage-normalize.d.ts +9 -0
  108. package/lib/types/copilot-usage-remote.d.ts +63 -0
  109. package/lib/types/copilot-usage-types.d.ts +20 -0
  110. package/lib/types/copilot-usage-ui.d.ts +4 -0
  111. package/lib/types/current-provider.d.ts +59 -0
  112. package/lib/types/deepseek-search-fallback.d.ts +11 -0
  113. package/lib/types/diagnostics-analysis-io.d.ts +23 -0
  114. package/lib/types/diagnostics-analysis.d.ts +298 -0
  115. package/lib/types/diagnostics-card.d.ts +12 -0
  116. package/lib/types/diagnostics-client.d.ts +13 -0
  117. package/lib/types/diagnostics-collector.d.ts +50 -0
  118. package/lib/types/diagnostics-host.d.ts +183 -0
  119. package/lib/types/diagnostics-remote.d.ts +113 -0
  120. package/lib/types/diagnostics-types.d.ts +893 -0
  121. package/lib/types/dual-model-host.d.ts +119 -0
  122. package/lib/types/dual-model-remote.d.ts +63 -0
  123. package/lib/types/dual-model-types.d.ts +34 -0
  124. package/lib/types/external-link.d.ts +3 -0
  125. package/lib/types/failure.d.ts +38 -0
  126. package/lib/types/http.d.ts +48 -0
  127. package/lib/types/image-input-admission.d.ts +5 -0
  128. package/lib/types/index.d.ts +39 -0
  129. package/lib/types/manual-compaction-recovery.d.ts +67 -0
  130. package/lib/types/migration-status.d.ts +50 -0
  131. package/lib/types/model-exclusions.d.ts +15 -0
  132. package/lib/types/model-preferences-card.d.ts +9 -0
  133. package/lib/types/model-protocol.d.ts +31 -0
  134. package/lib/types/native-select-style.d.ts +4 -0
  135. package/lib/types/native-settings-style.d.ts +10 -0
  136. package/lib/types/parent-model-follow-card.d.ts +32 -0
  137. package/lib/types/parent-model-follow.d.ts +44 -0
  138. package/lib/types/pi-provider-bridge.d.ts +22 -0
  139. package/lib/types/plan.d.ts +148 -0
  140. package/lib/types/pre-step-pressure.d.ts +8 -0
  141. package/lib/types/preview-provider.d.ts +77 -0
  142. package/lib/types/preview-route.d.ts +76 -0
  143. package/lib/types/probe.d.ts +39 -0
  144. package/lib/types/remote-codec.d.ts +10 -0
  145. package/lib/types/remote.d.ts +202 -0
  146. package/lib/types/replay-recovery-host.d.ts +28 -0
  147. package/lib/types/replay-recovery-remote.d.ts +14 -0
  148. package/lib/types/replay-recovery-types.d.ts +24 -0
  149. package/lib/types/replay-recovery-ui.d.ts +28 -0
  150. package/lib/types/replay-recovery.d.ts +17 -0
  151. package/lib/types/request-body-composition.d.ts +17 -0
  152. package/lib/types/request-body-evidence.d.ts +37 -0
  153. package/lib/types/request-body-timeout-marker.d.ts +2 -0
  154. package/lib/types/request-body-timeout.d.ts +4 -0
  155. package/lib/types/request-budget.d.ts +58 -0
  156. package/lib/types/request-diagnostics.d.ts +278 -0
  157. package/lib/types/request-upload-evidence.d.ts +23 -0
  158. package/lib/types/response-error-body.d.ts +3 -0
  159. package/lib/types/responses-reasoning-text.d.ts +24 -0
  160. package/lib/types/responses-reasoning.d.ts +7 -0
  161. package/lib/types/responses-replay-compat.d.ts +31 -0
  162. package/lib/types/responses-request-compression.d.ts +33 -0
  163. package/lib/types/route-ownership.d.ts +70 -0
  164. package/lib/types/routed-web.d.ts +50 -0
  165. package/lib/types/search-backend.d.ts +16 -0
  166. package/lib/types/search-routing-host.d.ts +19 -0
  167. package/lib/types/search-routing-policy.d.ts +18 -0
  168. package/lib/types/search-routing-remote.d.ts +20 -0
  169. package/lib/types/search-routing.d.ts +43 -0
  170. package/lib/types/search-tool-routing.d.ts +22 -0
  171. package/lib/types/serialize.d.ts +106 -0
  172. package/lib/types/session-accounts-controller.d.ts +20 -0
  173. package/lib/types/session-accounts-host.d.ts +33 -0
  174. package/lib/types/session-accounts-remote.d.ts +114 -0
  175. package/lib/types/session-accounts.d.ts +38 -0
  176. package/lib/types/session-continuation-host.d.ts +45 -0
  177. package/lib/types/session-continuation-remote.d.ts +22 -0
  178. package/lib/types/session-continuation-types.d.ts +62 -0
  179. package/lib/types/session-continuation-ui.d.ts +49 -0
  180. package/lib/types/session-continuation.d.ts +14 -0
  181. package/lib/types/settings-reader.d.ts +16 -0
  182. package/lib/types/sse.d.ts +28 -0
  183. package/lib/types/temporary-models.d.ts +25 -0
  184. package/lib/types/tool-schema-compat.d.ts +17 -0
  185. package/lib/types/traditional-search.d.ts +17 -0
  186. package/lib/types/turn-model-provenance.d.ts +45 -0
  187. package/lib/types/turn-request-models.d.ts +55 -0
  188. package/lib/types/turn-selection-card.d.ts +24 -0
  189. package/lib/types/turn-selection-host.d.ts +35 -0
  190. package/lib/types/turn-selection-remote.d.ts +17 -0
  191. package/lib/types/turn-selection.d.ts +186 -0
  192. package/lib/types/turn-usage-evidence.d.ts +66 -0
  193. package/lib/types/turn-usage-notice.d.ts +7 -0
  194. package/lib/types/types.d.ts +69 -0
  195. package/lib/types/usage.d.ts +26 -0
  196. package/lib/types/watchdog.d.ts +22 -0
  197. package/lib/types/web-delegate.d.ts +12 -0
  198. package/lib/types/web-search-routing-card.d.ts +16 -0
  199. package/lib/types/web-search-routing-config.d.ts +12 -0
  200. package/lib/types/wire-anthropic.d.ts +37 -0
  201. package/lib/types/wire.d.ts +56 -0
  202. package/lib/web-delegate.js +9 -0
  203. package/output/auto-model-mockup/index.html +207 -0
  204. package/package.json +261 -0
  205. package/scripts/analyze-diagnostics.mjs +91 -0
  206. package/scripts/check-search-composition.mjs +191 -0
  207. package/scripts/iteration-review.mjs +53 -0
  208. package/scripts/release-policy.mjs +353 -0
  209. package/scripts/select-core-release.mjs +11 -0
@@ -0,0 +1,893 @@
1
+ import { z } from 'zod';
2
+ export declare const DIAGNOSTICS_OPERATIONS: readonly ["account-global-switch", "account-session-select", "account-session-inherit", "identity-read", "identity-flight", "compaction", "compaction-summary", "collection"];
3
+ export declare const DIAGNOSTICS_STAGES: readonly ["admitted", "rpc-invoked", "host-received", "identity-validation", "model-validation", "cas", "readback", "response-received", "decoded", "client-settled", "summary-attempt", "checkpoint-committed", "ended", "cache-hit", "joined-flight", "cooldown", "dispatched"];
4
+ export declare const DIAGNOSTICS_METRICS: readonly ["started", "stage", "success", "no-op", "cancelled", "policy-rejected", "revoked", "environment-fault", "failed", "unknown", "interrupted", "dropped", "paused", "expired", "clock-discontinuity", "pending-sample"];
5
+ export declare const DIAGNOSTICS_REASONS: readonly ["none", "unknown", "rpc-unavailable", "decode-invalid", "COPILOT_ACCOUNTS_BUSY", "COPILOT_ACCOUNTS_CONFLICT", "COPILOT_ACCOUNTS_CHANGED", "COPILOT_ACCOUNTS_COMMIT_UNCERTAIN", "COPILOT_ACCOUNTS_IDENTITY_TIMEOUT", "COPILOT_ACCOUNTS_IDENTITY_UNAVAILABLE", "COPILOT_ACCOUNTS_MODELS_FAILED", "COPILOT_ACCOUNTS_SETTINGS_UNAVAILABLE", "COPILOT_ACCOUNTS_IDENTITY_TLS", "COPILOT_ACCOUNTS_IDENTITY_NETWORK", "COPILOT_ACCOUNTS_IDENTITY_RATE_LIMITED", "COPILOT_ACCOUNTS_IDENTITY_AUTH_REJECTED", "COPILOT_ACCOUNTS_IDENTITY_HTTP_ERROR", "COPILOT_ACCOUNTS_IDENTITY_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"];
6
+ export declare const DIAGNOSTICS_MAX_ROWS = 4096;
7
+ export declare const DIAGNOSTICS_MAX_BYTES: number;
8
+ export declare const DIAGNOSTICS_RETENTION_MS: number;
9
+ export declare const DIAGNOSTICS_MAX_LIVE = 128;
10
+ export declare const DiagnosticsRowSchema: z.ZodObject<{
11
+ hour: z.ZodNumber;
12
+ version: z.ZodString;
13
+ layer: z.ZodEnum<{
14
+ client: "client";
15
+ host: "host";
16
+ }>;
17
+ operation: z.ZodEnum<{
18
+ compaction: "compaction";
19
+ "account-global-switch": "account-global-switch";
20
+ "account-session-select": "account-session-select";
21
+ "account-session-inherit": "account-session-inherit";
22
+ "identity-read": "identity-read";
23
+ "identity-flight": "identity-flight";
24
+ "compaction-summary": "compaction-summary";
25
+ collection: "collection";
26
+ }>;
27
+ stage: z.ZodEnum<{
28
+ ended: "ended";
29
+ dispatched: "dispatched";
30
+ admitted: "admitted";
31
+ "rpc-invoked": "rpc-invoked";
32
+ "host-received": "host-received";
33
+ "identity-validation": "identity-validation";
34
+ "model-validation": "model-validation";
35
+ cas: "cas";
36
+ readback: "readback";
37
+ "response-received": "response-received";
38
+ decoded: "decoded";
39
+ "client-settled": "client-settled";
40
+ "summary-attempt": "summary-attempt";
41
+ "checkpoint-committed": "checkpoint-committed";
42
+ "cache-hit": "cache-hit";
43
+ "joined-flight": "joined-flight";
44
+ cooldown: "cooldown";
45
+ }>;
46
+ metric: z.ZodEnum<{
47
+ paused: "paused";
48
+ unknown: "unknown";
49
+ success: "success";
50
+ stage: "stage";
51
+ failed: "failed";
52
+ dropped: "dropped";
53
+ expired: "expired";
54
+ cancelled: "cancelled";
55
+ revoked: "revoked";
56
+ interrupted: "interrupted";
57
+ started: "started";
58
+ "no-op": "no-op";
59
+ "policy-rejected": "policy-rejected";
60
+ "environment-fault": "environment-fault";
61
+ "clock-discontinuity": "clock-discontinuity";
62
+ "pending-sample": "pending-sample";
63
+ }>;
64
+ reason: z.ZodEnum<{
65
+ none: "none";
66
+ COPILOT_ACCOUNTS_SETTINGS_UNAVAILABLE: "COPILOT_ACCOUNTS_SETTINGS_UNAVAILABLE";
67
+ COPILOT_ACCOUNTS_CHANGED: "COPILOT_ACCOUNTS_CHANGED";
68
+ COPILOT_ACCOUNTS_BUSY: "COPILOT_ACCOUNTS_BUSY";
69
+ COPILOT_ACCOUNTS_CONFLICT: "COPILOT_ACCOUNTS_CONFLICT";
70
+ COPILOT_ACCOUNTS_COMMIT_UNCERTAIN: "COPILOT_ACCOUNTS_COMMIT_UNCERTAIN";
71
+ COPILOT_ACCOUNTS_MODELS_FAILED: "COPILOT_ACCOUNTS_MODELS_FAILED";
72
+ COPILOT_ACCOUNTS_IDENTITY_UNAVAILABLE: "COPILOT_ACCOUNTS_IDENTITY_UNAVAILABLE";
73
+ COPILOT_ACCOUNTS_IDENTITY_INVALID: "COPILOT_ACCOUNTS_IDENTITY_INVALID";
74
+ COPILOT_ACCOUNTS_IDENTITY_TIMEOUT: "COPILOT_ACCOUNTS_IDENTITY_TIMEOUT";
75
+ COPILOT_ACCOUNTS_IDENTITY_TLS: "COPILOT_ACCOUNTS_IDENTITY_TLS";
76
+ COPILOT_ACCOUNTS_IDENTITY_NETWORK: "COPILOT_ACCOUNTS_IDENTITY_NETWORK";
77
+ COPILOT_ACCOUNTS_IDENTITY_AUTH_REJECTED: "COPILOT_ACCOUNTS_IDENTITY_AUTH_REJECTED";
78
+ COPILOT_ACCOUNTS_IDENTITY_RATE_LIMITED: "COPILOT_ACCOUNTS_IDENTITY_RATE_LIMITED";
79
+ COPILOT_ACCOUNTS_IDENTITY_HTTP_ERROR: "COPILOT_ACCOUNTS_IDENTITY_HTTP_ERROR";
80
+ unknown: "unknown";
81
+ "rpc-unavailable": "rpc-unavailable";
82
+ "decode-invalid": "decode-invalid";
83
+ COPILOT_SESSION_ACCOUNTS_UNAVAILABLE: "COPILOT_SESSION_ACCOUNTS_UNAVAILABLE";
84
+ COPILOT_SESSION_ACCOUNTS_SETTINGS_UNAVAILABLE: "COPILOT_SESSION_ACCOUNTS_SETTINGS_UNAVAILABLE";
85
+ COPILOT_SESSION_ACCOUNTS_COMMIT_UNCERTAIN: "COPILOT_SESSION_ACCOUNTS_COMMIT_UNCERTAIN";
86
+ COPILOT_RESPONSES_REPLAY_SCOPE_MISMATCH: "COPILOT_RESPONSES_REPLAY_SCOPE_MISMATCH";
87
+ CONTEXT_WINDOW_EXCEEDED: "CONTEXT_WINDOW_EXCEEDED";
88
+ COPILOT_MANUAL_RECOVERY_FIXED_PREFIX: "COPILOT_MANUAL_RECOVERY_FIXED_PREFIX";
89
+ COPILOT_MANUAL_RECOVERY_INDIVISIBLE: "COPILOT_MANUAL_RECOVERY_INDIVISIBLE";
90
+ COPILOT_MANUAL_RECOVERY_TOKEN_METER_UNAVAILABLE: "COPILOT_MANUAL_RECOVERY_TOKEN_METER_UNAVAILABLE";
91
+ COPILOT_MANUAL_RECOVERY_TOKEN_ESTIMATE_INVALID: "COPILOT_MANUAL_RECOVERY_TOKEN_ESTIMATE_INVALID";
92
+ COPILOT_MANUAL_RECOVERY_CALL_LIMIT: "COPILOT_MANUAL_RECOVERY_CALL_LIMIT";
93
+ COPILOT_MANUAL_RECOVERY_EMPTY_SUMMARY: "COPILOT_MANUAL_RECOVERY_EMPTY_SUMMARY";
94
+ COPILOT_MANUAL_RECOVERY_UNBALANCED: "COPILOT_MANUAL_RECOVERY_UNBALANCED";
95
+ }>;
96
+ bucket: z.ZodNumber;
97
+ count: z.ZodNumber;
98
+ }, z.core.$strict>;
99
+ export declare const DiagnosticsPendingSchema: z.ZodObject<{
100
+ version: z.ZodString;
101
+ operation: z.ZodEnum<{
102
+ compaction: "compaction";
103
+ "account-global-switch": "account-global-switch";
104
+ "account-session-select": "account-session-select";
105
+ "account-session-inherit": "account-session-inherit";
106
+ "identity-read": "identity-read";
107
+ "identity-flight": "identity-flight";
108
+ "compaction-summary": "compaction-summary";
109
+ collection: "collection";
110
+ }>;
111
+ stage: z.ZodEnum<{
112
+ ended: "ended";
113
+ dispatched: "dispatched";
114
+ admitted: "admitted";
115
+ "rpc-invoked": "rpc-invoked";
116
+ "host-received": "host-received";
117
+ "identity-validation": "identity-validation";
118
+ "model-validation": "model-validation";
119
+ cas: "cas";
120
+ readback: "readback";
121
+ "response-received": "response-received";
122
+ decoded: "decoded";
123
+ "client-settled": "client-settled";
124
+ "summary-attempt": "summary-attempt";
125
+ "checkpoint-committed": "checkpoint-committed";
126
+ "cache-hit": "cache-hit";
127
+ "joined-flight": "joined-flight";
128
+ cooldown: "cooldown";
129
+ }>;
130
+ bucket: z.ZodNumber;
131
+ count: z.ZodNumber;
132
+ }, z.core.$strict>;
133
+ export declare const DiagnosticsSnapshotSchema: z.ZodObject<{
134
+ schemaVersion: z.ZodLiteral<1>;
135
+ coverageVersion: z.ZodLiteral<1>;
136
+ epoch: z.ZodNumber;
137
+ updatedAt: z.ZodNumber;
138
+ rows: z.ZodArray<z.ZodObject<{
139
+ hour: z.ZodNumber;
140
+ version: z.ZodString;
141
+ layer: z.ZodEnum<{
142
+ client: "client";
143
+ host: "host";
144
+ }>;
145
+ operation: z.ZodEnum<{
146
+ compaction: "compaction";
147
+ "account-global-switch": "account-global-switch";
148
+ "account-session-select": "account-session-select";
149
+ "account-session-inherit": "account-session-inherit";
150
+ "identity-read": "identity-read";
151
+ "identity-flight": "identity-flight";
152
+ "compaction-summary": "compaction-summary";
153
+ collection: "collection";
154
+ }>;
155
+ stage: z.ZodEnum<{
156
+ ended: "ended";
157
+ dispatched: "dispatched";
158
+ admitted: "admitted";
159
+ "rpc-invoked": "rpc-invoked";
160
+ "host-received": "host-received";
161
+ "identity-validation": "identity-validation";
162
+ "model-validation": "model-validation";
163
+ cas: "cas";
164
+ readback: "readback";
165
+ "response-received": "response-received";
166
+ decoded: "decoded";
167
+ "client-settled": "client-settled";
168
+ "summary-attempt": "summary-attempt";
169
+ "checkpoint-committed": "checkpoint-committed";
170
+ "cache-hit": "cache-hit";
171
+ "joined-flight": "joined-flight";
172
+ cooldown: "cooldown";
173
+ }>;
174
+ metric: z.ZodEnum<{
175
+ paused: "paused";
176
+ unknown: "unknown";
177
+ success: "success";
178
+ stage: "stage";
179
+ failed: "failed";
180
+ dropped: "dropped";
181
+ expired: "expired";
182
+ cancelled: "cancelled";
183
+ revoked: "revoked";
184
+ interrupted: "interrupted";
185
+ started: "started";
186
+ "no-op": "no-op";
187
+ "policy-rejected": "policy-rejected";
188
+ "environment-fault": "environment-fault";
189
+ "clock-discontinuity": "clock-discontinuity";
190
+ "pending-sample": "pending-sample";
191
+ }>;
192
+ reason: z.ZodEnum<{
193
+ none: "none";
194
+ COPILOT_ACCOUNTS_SETTINGS_UNAVAILABLE: "COPILOT_ACCOUNTS_SETTINGS_UNAVAILABLE";
195
+ COPILOT_ACCOUNTS_CHANGED: "COPILOT_ACCOUNTS_CHANGED";
196
+ COPILOT_ACCOUNTS_BUSY: "COPILOT_ACCOUNTS_BUSY";
197
+ COPILOT_ACCOUNTS_CONFLICT: "COPILOT_ACCOUNTS_CONFLICT";
198
+ COPILOT_ACCOUNTS_COMMIT_UNCERTAIN: "COPILOT_ACCOUNTS_COMMIT_UNCERTAIN";
199
+ COPILOT_ACCOUNTS_MODELS_FAILED: "COPILOT_ACCOUNTS_MODELS_FAILED";
200
+ COPILOT_ACCOUNTS_IDENTITY_UNAVAILABLE: "COPILOT_ACCOUNTS_IDENTITY_UNAVAILABLE";
201
+ COPILOT_ACCOUNTS_IDENTITY_INVALID: "COPILOT_ACCOUNTS_IDENTITY_INVALID";
202
+ COPILOT_ACCOUNTS_IDENTITY_TIMEOUT: "COPILOT_ACCOUNTS_IDENTITY_TIMEOUT";
203
+ COPILOT_ACCOUNTS_IDENTITY_TLS: "COPILOT_ACCOUNTS_IDENTITY_TLS";
204
+ COPILOT_ACCOUNTS_IDENTITY_NETWORK: "COPILOT_ACCOUNTS_IDENTITY_NETWORK";
205
+ COPILOT_ACCOUNTS_IDENTITY_AUTH_REJECTED: "COPILOT_ACCOUNTS_IDENTITY_AUTH_REJECTED";
206
+ COPILOT_ACCOUNTS_IDENTITY_RATE_LIMITED: "COPILOT_ACCOUNTS_IDENTITY_RATE_LIMITED";
207
+ COPILOT_ACCOUNTS_IDENTITY_HTTP_ERROR: "COPILOT_ACCOUNTS_IDENTITY_HTTP_ERROR";
208
+ unknown: "unknown";
209
+ "rpc-unavailable": "rpc-unavailable";
210
+ "decode-invalid": "decode-invalid";
211
+ COPILOT_SESSION_ACCOUNTS_UNAVAILABLE: "COPILOT_SESSION_ACCOUNTS_UNAVAILABLE";
212
+ COPILOT_SESSION_ACCOUNTS_SETTINGS_UNAVAILABLE: "COPILOT_SESSION_ACCOUNTS_SETTINGS_UNAVAILABLE";
213
+ COPILOT_SESSION_ACCOUNTS_COMMIT_UNCERTAIN: "COPILOT_SESSION_ACCOUNTS_COMMIT_UNCERTAIN";
214
+ COPILOT_RESPONSES_REPLAY_SCOPE_MISMATCH: "COPILOT_RESPONSES_REPLAY_SCOPE_MISMATCH";
215
+ CONTEXT_WINDOW_EXCEEDED: "CONTEXT_WINDOW_EXCEEDED";
216
+ COPILOT_MANUAL_RECOVERY_FIXED_PREFIX: "COPILOT_MANUAL_RECOVERY_FIXED_PREFIX";
217
+ COPILOT_MANUAL_RECOVERY_INDIVISIBLE: "COPILOT_MANUAL_RECOVERY_INDIVISIBLE";
218
+ COPILOT_MANUAL_RECOVERY_TOKEN_METER_UNAVAILABLE: "COPILOT_MANUAL_RECOVERY_TOKEN_METER_UNAVAILABLE";
219
+ COPILOT_MANUAL_RECOVERY_TOKEN_ESTIMATE_INVALID: "COPILOT_MANUAL_RECOVERY_TOKEN_ESTIMATE_INVALID";
220
+ COPILOT_MANUAL_RECOVERY_CALL_LIMIT: "COPILOT_MANUAL_RECOVERY_CALL_LIMIT";
221
+ COPILOT_MANUAL_RECOVERY_EMPTY_SUMMARY: "COPILOT_MANUAL_RECOVERY_EMPTY_SUMMARY";
222
+ COPILOT_MANUAL_RECOVERY_UNBALANCED: "COPILOT_MANUAL_RECOVERY_UNBALANCED";
223
+ }>;
224
+ bucket: z.ZodNumber;
225
+ count: z.ZodNumber;
226
+ }, z.core.$strict>>;
227
+ autoAllocation: z.ZodOptional<z.ZodObject<{
228
+ status: z.ZodEnum<{
229
+ observed: "observed";
230
+ "not-collected": "not-collected";
231
+ }>;
232
+ rows: z.ZodArray<z.ZodObject<{
233
+ day: z.ZodNumber;
234
+ version: z.ZodString;
235
+ policyVersion: z.ZodString;
236
+ modelId: z.ZodString;
237
+ targetCategory: z.ZodEnum<{
238
+ powerful: "powerful";
239
+ versatile: "versatile";
240
+ lightweight: "lightweight";
241
+ }>;
242
+ category: z.ZodEnum<{
243
+ unknown: "unknown";
244
+ powerful: "powerful";
245
+ versatile: "versatile";
246
+ lightweight: "lightweight";
247
+ }>;
248
+ demand: z.ZodEnum<{
249
+ unknown: "unknown";
250
+ simple: "simple";
251
+ routine: "routine";
252
+ complex: "complex";
253
+ }>;
254
+ assessmentSource: z.ZodEnum<{
255
+ local: "local";
256
+ semantic: "semantic";
257
+ }>;
258
+ assessmentOutcome: z.ZodOptional<z.ZodEnum<{
259
+ disabled: "disabled";
260
+ unavailable: "unavailable";
261
+ "context-omitted": "context-omitted";
262
+ "invalid-result": "invalid-result";
263
+ timeout: "timeout";
264
+ failed: "failed";
265
+ "local-known": "local-known";
266
+ "local-unknown": "local-unknown";
267
+ "semantic-known": "semantic-known";
268
+ "semantic-unknown": "semantic-unknown";
269
+ }>>;
270
+ method: z.ZodEnum<{
271
+ "weighted-distribution": "weighted-distribution";
272
+ "only-candidate": "only-candidate";
273
+ }>;
274
+ fallback: z.ZodBoolean;
275
+ highCost: z.ZodBoolean;
276
+ previous: z.ZodBoolean;
277
+ weight: z.ZodNumber;
278
+ opportunities: z.ZodNumber;
279
+ expectedSelections: z.ZodNumber;
280
+ selections: z.ZodNumber;
281
+ }, z.core.$strict>>;
282
+ noFitRows: z.ZodArray<z.ZodObject<{
283
+ day: z.ZodNumber;
284
+ version: z.ZodString;
285
+ policyVersion: z.ZodString;
286
+ targetCategory: z.ZodEnum<{
287
+ powerful: "powerful";
288
+ versatile: "versatile";
289
+ lightweight: "lightweight";
290
+ }>;
291
+ category: z.ZodEnum<{
292
+ unknown: "unknown";
293
+ powerful: "powerful";
294
+ versatile: "versatile";
295
+ lightweight: "lightweight";
296
+ }>;
297
+ demand: z.ZodEnum<{
298
+ unknown: "unknown";
299
+ simple: "simple";
300
+ routine: "routine";
301
+ complex: "complex";
302
+ }>;
303
+ assessmentSource: z.ZodEnum<{
304
+ local: "local";
305
+ semantic: "semantic";
306
+ }>;
307
+ assessmentOutcome: z.ZodOptional<z.ZodEnum<{
308
+ disabled: "disabled";
309
+ unavailable: "unavailable";
310
+ "context-omitted": "context-omitted";
311
+ "invalid-result": "invalid-result";
312
+ timeout: "timeout";
313
+ failed: "failed";
314
+ "local-known": "local-known";
315
+ "local-unknown": "local-unknown";
316
+ "semantic-known": "semantic-known";
317
+ "semantic-unknown": "semantic-unknown";
318
+ }>>;
319
+ decisions: z.ZodNumber;
320
+ }, z.core.$strict>>;
321
+ observationStart: z.ZodNullable<z.ZodNumber>;
322
+ observationEnd: z.ZodNullable<z.ZodNumber>;
323
+ completeHistory: z.ZodLiteral<false>;
324
+ rowsTruncated: z.ZodBoolean;
325
+ dropped: z.ZodNumber;
326
+ expired: z.ZodNumber;
327
+ saturated: z.ZodNumber;
328
+ restarts: z.ZodNumber;
329
+ }, z.core.$strict>>;
330
+ requests: z.ZodOptional<z.ZodObject<{
331
+ rows: z.ZodArray<z.ZodObject<{
332
+ streamId: z.ZodString;
333
+ dispatchIndex: z.ZodNumber;
334
+ version: z.ZodString;
335
+ startedAt: z.ZodNumber;
336
+ elapsedMs: z.ZodNumber;
337
+ model: z.ZodString;
338
+ protocol: z.ZodEnum<{
339
+ "openai-completions": "openai-completions";
340
+ "openai-responses": "openai-responses";
341
+ "anthropic-messages": "anthropic-messages";
342
+ }>;
343
+ composition: z.ZodDiscriminatedUnion<[z.ZodObject<{
344
+ state: z.ZodLiteral<"complete">;
345
+ totalBytes: z.ZodNumber;
346
+ conversationBytes: z.ZodNumber;
347
+ toolSchemaBytes: z.ZodNumber;
348
+ systemBytes: z.ZodNumber;
349
+ otherBytes: z.ZodNumber;
350
+ imageBlockBytes: z.ZodNumber;
351
+ opaqueReplayBytes: z.ZodNumber;
352
+ remainingConversationBytes: z.ZodNumber;
353
+ }, z.core.$strict>, z.ZodObject<{
354
+ state: z.ZodEnum<{
355
+ unavailable: "unavailable";
356
+ "work-limit": "work-limit";
357
+ "size-limit": "size-limit";
358
+ "invalid-json": "invalid-json";
359
+ "unsupported-shape": "unsupported-shape";
360
+ cancelled: "cancelled";
361
+ "time-limit": "time-limit";
362
+ }>;
363
+ totalBytes: z.ZodOptional<z.ZodNumber>;
364
+ }, z.core.$strict>], "state">;
365
+ encoding: z.ZodEnum<{
366
+ unknown: "unknown";
367
+ identity: "identity";
368
+ gzip: "gzip";
369
+ }>;
370
+ wireBytes: z.ZodOptional<z.ZodNumber>;
371
+ upload: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
372
+ state: z.ZodLiteral<"observed">;
373
+ bodyWrite: z.ZodEnum<{
374
+ observed: "observed";
375
+ "not-observed": "not-observed";
376
+ }>;
377
+ bodyWriteCompleteMs: z.ZodOptional<z.ZodNumber>;
378
+ nativeResponseHeadersMs: z.ZodOptional<z.ZodNumber>;
379
+ alpn: z.ZodEnum<{
380
+ h2: "h2";
381
+ unavailable: "unavailable";
382
+ "http/1.1": "http/1.1";
383
+ }>;
384
+ nodeWritableBufferBytes: z.ZodOptional<z.ZodNumber>;
385
+ }, z.core.$strict>, z.ZodObject<{
386
+ state: z.ZodEnum<{
387
+ unavailable: "unavailable";
388
+ "work-limit": "work-limit";
389
+ }>;
390
+ }, z.core.$strict>, z.ZodObject<{
391
+ state: z.ZodLiteral<"ambiguous">;
392
+ requestCount: z.ZodNumber;
393
+ }, z.core.$strict>], "state">>;
394
+ responseHeadersMs: z.ZodOptional<z.ZodNumber>;
395
+ httpStatus: z.ZodOptional<z.ZodNumber>;
396
+ outcome: z.ZodEnum<{
397
+ cancelled: "cancelled";
398
+ "http-error": "http-error";
399
+ "transport-error": "transport-error";
400
+ "stream-done": "stream-done";
401
+ "stream-error": "stream-error";
402
+ interrupted: "interrupted";
403
+ }>;
404
+ reason: z.ZodEnum<{
405
+ none: "none";
406
+ unknown: "unknown";
407
+ "request-body-timeout": "request-body-timeout";
408
+ "caller-abort": "caller-abort";
409
+ "credential-changed": "credential-changed";
410
+ disposed: "disposed";
411
+ "byte-idle-timeout": "byte-idle-timeout";
412
+ "signal-abort": "signal-abort";
413
+ }>;
414
+ }, z.core.$strict>>;
415
+ dropped: z.ZodNumber;
416
+ evicted: z.ZodNumber;
417
+ pending: z.ZodOptional<z.ZodNumber>;
418
+ interruptedOnReopen: z.ZodOptional<z.ZodNumber>;
419
+ credentialChanges: z.ZodOptional<z.ZodObject<{
420
+ rows: z.ZodArray<z.ZodObject<{
421
+ changeId: z.ZodString;
422
+ observedAt: z.ZodNumber;
423
+ version: z.ZodString;
424
+ phase: z.ZodEnum<{
425
+ notification: "notification";
426
+ commit: "commit";
427
+ }>;
428
+ reason: z.ZodEnum<{
429
+ expired: "expired";
430
+ qualified: "qualified";
431
+ "unknown-source": "unknown-source";
432
+ "account-changed": "account-changed";
433
+ "endpoint-changed": "endpoint-changed";
434
+ "entitlements-changed": "entitlements-changed";
435
+ "auth-mismatch": "auth-mismatch";
436
+ "duplicate-notification": "duplicate-notification";
437
+ "missing-notification": "missing-notification";
438
+ "commit-mismatch": "commit-mismatch";
439
+ "write-failed": "write-failed";
440
+ "write-conflict": "write-conflict";
441
+ }>;
442
+ preparing: z.ZodNumber;
443
+ dispatched: z.ZodNumber;
444
+ alreadyAborted: z.ZodNumber;
445
+ preserved: z.ZodNumber;
446
+ revoked: z.ZodNumber;
447
+ }, z.core.$strict>>;
448
+ dropped: z.ZodNumber;
449
+ evicted: z.ZodNumber;
450
+ pending: z.ZodOptional<z.ZodNumber>;
451
+ interruptedOnReopen: z.ZodOptional<z.ZodNumber>;
452
+ }, z.core.$strict>>;
453
+ }, z.core.$strict>>;
454
+ pending: z.ZodArray<z.ZodObject<{
455
+ version: z.ZodString;
456
+ operation: z.ZodEnum<{
457
+ compaction: "compaction";
458
+ "account-global-switch": "account-global-switch";
459
+ "account-session-select": "account-session-select";
460
+ "account-session-inherit": "account-session-inherit";
461
+ "identity-read": "identity-read";
462
+ "identity-flight": "identity-flight";
463
+ "compaction-summary": "compaction-summary";
464
+ collection: "collection";
465
+ }>;
466
+ stage: z.ZodEnum<{
467
+ ended: "ended";
468
+ dispatched: "dispatched";
469
+ admitted: "admitted";
470
+ "rpc-invoked": "rpc-invoked";
471
+ "host-received": "host-received";
472
+ "identity-validation": "identity-validation";
473
+ "model-validation": "model-validation";
474
+ cas: "cas";
475
+ readback: "readback";
476
+ "response-received": "response-received";
477
+ decoded: "decoded";
478
+ "client-settled": "client-settled";
479
+ "summary-attempt": "summary-attempt";
480
+ "checkpoint-committed": "checkpoint-committed";
481
+ "cache-hit": "cache-hit";
482
+ "joined-flight": "joined-flight";
483
+ cooldown: "cooldown";
484
+ }>;
485
+ bucket: z.ZodNumber;
486
+ count: z.ZodNumber;
487
+ }, z.core.$strict>>;
488
+ dropped: z.ZodNumber;
489
+ clientDropped: z.ZodNumber;
490
+ clientUnconfirmed: z.ZodNumber;
491
+ saturated: z.ZodNumber;
492
+ evicted: z.ZodNumber;
493
+ interrupted: z.ZodNumber;
494
+ }, z.core.$strict>;
495
+ export declare const DiagnosticsViewSchema: z.ZodObject<{
496
+ enabled: z.ZodBoolean;
497
+ autoAllocationEnabled: z.ZodBoolean;
498
+ requestEnabled: z.ZodOptional<z.ZodBoolean>;
499
+ state: z.ZodEnum<{
500
+ error: "error";
501
+ ready: "ready";
502
+ unavailable: "unavailable";
503
+ loading: "loading";
504
+ }>;
505
+ diagnostic: z.ZodEnum<{
506
+ none: "none";
507
+ "storage-unavailable": "storage-unavailable";
508
+ "storage-invalid": "storage-invalid";
509
+ "storage-write-failed": "storage-write-failed";
510
+ "profile-unavailable": "profile-unavailable";
511
+ "settings-unavailable": "settings-unavailable";
512
+ "settings-conflict": "settings-conflict";
513
+ "client-report-failed": "client-report-failed";
514
+ "client-report-revoked": "client-report-revoked";
515
+ closed: "closed";
516
+ }>;
517
+ persistedAt: z.ZodOptional<z.ZodNumber>;
518
+ dirty: z.ZodBoolean;
519
+ snapshot: z.ZodObject<{
520
+ schemaVersion: z.ZodLiteral<1>;
521
+ coverageVersion: z.ZodLiteral<1>;
522
+ epoch: z.ZodNumber;
523
+ updatedAt: z.ZodNumber;
524
+ rows: z.ZodArray<z.ZodObject<{
525
+ hour: z.ZodNumber;
526
+ version: z.ZodString;
527
+ layer: z.ZodEnum<{
528
+ client: "client";
529
+ host: "host";
530
+ }>;
531
+ operation: z.ZodEnum<{
532
+ compaction: "compaction";
533
+ "account-global-switch": "account-global-switch";
534
+ "account-session-select": "account-session-select";
535
+ "account-session-inherit": "account-session-inherit";
536
+ "identity-read": "identity-read";
537
+ "identity-flight": "identity-flight";
538
+ "compaction-summary": "compaction-summary";
539
+ collection: "collection";
540
+ }>;
541
+ stage: z.ZodEnum<{
542
+ ended: "ended";
543
+ dispatched: "dispatched";
544
+ admitted: "admitted";
545
+ "rpc-invoked": "rpc-invoked";
546
+ "host-received": "host-received";
547
+ "identity-validation": "identity-validation";
548
+ "model-validation": "model-validation";
549
+ cas: "cas";
550
+ readback: "readback";
551
+ "response-received": "response-received";
552
+ decoded: "decoded";
553
+ "client-settled": "client-settled";
554
+ "summary-attempt": "summary-attempt";
555
+ "checkpoint-committed": "checkpoint-committed";
556
+ "cache-hit": "cache-hit";
557
+ "joined-flight": "joined-flight";
558
+ cooldown: "cooldown";
559
+ }>;
560
+ metric: z.ZodEnum<{
561
+ paused: "paused";
562
+ unknown: "unknown";
563
+ success: "success";
564
+ stage: "stage";
565
+ failed: "failed";
566
+ dropped: "dropped";
567
+ expired: "expired";
568
+ cancelled: "cancelled";
569
+ revoked: "revoked";
570
+ interrupted: "interrupted";
571
+ started: "started";
572
+ "no-op": "no-op";
573
+ "policy-rejected": "policy-rejected";
574
+ "environment-fault": "environment-fault";
575
+ "clock-discontinuity": "clock-discontinuity";
576
+ "pending-sample": "pending-sample";
577
+ }>;
578
+ reason: z.ZodEnum<{
579
+ none: "none";
580
+ COPILOT_ACCOUNTS_SETTINGS_UNAVAILABLE: "COPILOT_ACCOUNTS_SETTINGS_UNAVAILABLE";
581
+ COPILOT_ACCOUNTS_CHANGED: "COPILOT_ACCOUNTS_CHANGED";
582
+ COPILOT_ACCOUNTS_BUSY: "COPILOT_ACCOUNTS_BUSY";
583
+ COPILOT_ACCOUNTS_CONFLICT: "COPILOT_ACCOUNTS_CONFLICT";
584
+ COPILOT_ACCOUNTS_COMMIT_UNCERTAIN: "COPILOT_ACCOUNTS_COMMIT_UNCERTAIN";
585
+ COPILOT_ACCOUNTS_MODELS_FAILED: "COPILOT_ACCOUNTS_MODELS_FAILED";
586
+ COPILOT_ACCOUNTS_IDENTITY_UNAVAILABLE: "COPILOT_ACCOUNTS_IDENTITY_UNAVAILABLE";
587
+ COPILOT_ACCOUNTS_IDENTITY_INVALID: "COPILOT_ACCOUNTS_IDENTITY_INVALID";
588
+ COPILOT_ACCOUNTS_IDENTITY_TIMEOUT: "COPILOT_ACCOUNTS_IDENTITY_TIMEOUT";
589
+ COPILOT_ACCOUNTS_IDENTITY_TLS: "COPILOT_ACCOUNTS_IDENTITY_TLS";
590
+ COPILOT_ACCOUNTS_IDENTITY_NETWORK: "COPILOT_ACCOUNTS_IDENTITY_NETWORK";
591
+ COPILOT_ACCOUNTS_IDENTITY_AUTH_REJECTED: "COPILOT_ACCOUNTS_IDENTITY_AUTH_REJECTED";
592
+ COPILOT_ACCOUNTS_IDENTITY_RATE_LIMITED: "COPILOT_ACCOUNTS_IDENTITY_RATE_LIMITED";
593
+ COPILOT_ACCOUNTS_IDENTITY_HTTP_ERROR: "COPILOT_ACCOUNTS_IDENTITY_HTTP_ERROR";
594
+ unknown: "unknown";
595
+ "rpc-unavailable": "rpc-unavailable";
596
+ "decode-invalid": "decode-invalid";
597
+ COPILOT_SESSION_ACCOUNTS_UNAVAILABLE: "COPILOT_SESSION_ACCOUNTS_UNAVAILABLE";
598
+ COPILOT_SESSION_ACCOUNTS_SETTINGS_UNAVAILABLE: "COPILOT_SESSION_ACCOUNTS_SETTINGS_UNAVAILABLE";
599
+ COPILOT_SESSION_ACCOUNTS_COMMIT_UNCERTAIN: "COPILOT_SESSION_ACCOUNTS_COMMIT_UNCERTAIN";
600
+ COPILOT_RESPONSES_REPLAY_SCOPE_MISMATCH: "COPILOT_RESPONSES_REPLAY_SCOPE_MISMATCH";
601
+ CONTEXT_WINDOW_EXCEEDED: "CONTEXT_WINDOW_EXCEEDED";
602
+ COPILOT_MANUAL_RECOVERY_FIXED_PREFIX: "COPILOT_MANUAL_RECOVERY_FIXED_PREFIX";
603
+ COPILOT_MANUAL_RECOVERY_INDIVISIBLE: "COPILOT_MANUAL_RECOVERY_INDIVISIBLE";
604
+ COPILOT_MANUAL_RECOVERY_TOKEN_METER_UNAVAILABLE: "COPILOT_MANUAL_RECOVERY_TOKEN_METER_UNAVAILABLE";
605
+ COPILOT_MANUAL_RECOVERY_TOKEN_ESTIMATE_INVALID: "COPILOT_MANUAL_RECOVERY_TOKEN_ESTIMATE_INVALID";
606
+ COPILOT_MANUAL_RECOVERY_CALL_LIMIT: "COPILOT_MANUAL_RECOVERY_CALL_LIMIT";
607
+ COPILOT_MANUAL_RECOVERY_EMPTY_SUMMARY: "COPILOT_MANUAL_RECOVERY_EMPTY_SUMMARY";
608
+ COPILOT_MANUAL_RECOVERY_UNBALANCED: "COPILOT_MANUAL_RECOVERY_UNBALANCED";
609
+ }>;
610
+ bucket: z.ZodNumber;
611
+ count: z.ZodNumber;
612
+ }, z.core.$strict>>;
613
+ autoAllocation: z.ZodOptional<z.ZodObject<{
614
+ status: z.ZodEnum<{
615
+ observed: "observed";
616
+ "not-collected": "not-collected";
617
+ }>;
618
+ rows: z.ZodArray<z.ZodObject<{
619
+ day: z.ZodNumber;
620
+ version: z.ZodString;
621
+ policyVersion: z.ZodString;
622
+ modelId: z.ZodString;
623
+ targetCategory: z.ZodEnum<{
624
+ powerful: "powerful";
625
+ versatile: "versatile";
626
+ lightweight: "lightweight";
627
+ }>;
628
+ category: z.ZodEnum<{
629
+ unknown: "unknown";
630
+ powerful: "powerful";
631
+ versatile: "versatile";
632
+ lightweight: "lightweight";
633
+ }>;
634
+ demand: z.ZodEnum<{
635
+ unknown: "unknown";
636
+ simple: "simple";
637
+ routine: "routine";
638
+ complex: "complex";
639
+ }>;
640
+ assessmentSource: z.ZodEnum<{
641
+ local: "local";
642
+ semantic: "semantic";
643
+ }>;
644
+ assessmentOutcome: z.ZodOptional<z.ZodEnum<{
645
+ disabled: "disabled";
646
+ unavailable: "unavailable";
647
+ "context-omitted": "context-omitted";
648
+ "invalid-result": "invalid-result";
649
+ timeout: "timeout";
650
+ failed: "failed";
651
+ "local-known": "local-known";
652
+ "local-unknown": "local-unknown";
653
+ "semantic-known": "semantic-known";
654
+ "semantic-unknown": "semantic-unknown";
655
+ }>>;
656
+ method: z.ZodEnum<{
657
+ "weighted-distribution": "weighted-distribution";
658
+ "only-candidate": "only-candidate";
659
+ }>;
660
+ fallback: z.ZodBoolean;
661
+ highCost: z.ZodBoolean;
662
+ previous: z.ZodBoolean;
663
+ weight: z.ZodNumber;
664
+ opportunities: z.ZodNumber;
665
+ expectedSelections: z.ZodNumber;
666
+ selections: z.ZodNumber;
667
+ }, z.core.$strict>>;
668
+ noFitRows: z.ZodArray<z.ZodObject<{
669
+ day: z.ZodNumber;
670
+ version: z.ZodString;
671
+ policyVersion: z.ZodString;
672
+ targetCategory: z.ZodEnum<{
673
+ powerful: "powerful";
674
+ versatile: "versatile";
675
+ lightweight: "lightweight";
676
+ }>;
677
+ category: z.ZodEnum<{
678
+ unknown: "unknown";
679
+ powerful: "powerful";
680
+ versatile: "versatile";
681
+ lightweight: "lightweight";
682
+ }>;
683
+ demand: z.ZodEnum<{
684
+ unknown: "unknown";
685
+ simple: "simple";
686
+ routine: "routine";
687
+ complex: "complex";
688
+ }>;
689
+ assessmentSource: z.ZodEnum<{
690
+ local: "local";
691
+ semantic: "semantic";
692
+ }>;
693
+ assessmentOutcome: z.ZodOptional<z.ZodEnum<{
694
+ disabled: "disabled";
695
+ unavailable: "unavailable";
696
+ "context-omitted": "context-omitted";
697
+ "invalid-result": "invalid-result";
698
+ timeout: "timeout";
699
+ failed: "failed";
700
+ "local-known": "local-known";
701
+ "local-unknown": "local-unknown";
702
+ "semantic-known": "semantic-known";
703
+ "semantic-unknown": "semantic-unknown";
704
+ }>>;
705
+ decisions: z.ZodNumber;
706
+ }, z.core.$strict>>;
707
+ observationStart: z.ZodNullable<z.ZodNumber>;
708
+ observationEnd: z.ZodNullable<z.ZodNumber>;
709
+ completeHistory: z.ZodLiteral<false>;
710
+ rowsTruncated: z.ZodBoolean;
711
+ dropped: z.ZodNumber;
712
+ expired: z.ZodNumber;
713
+ saturated: z.ZodNumber;
714
+ restarts: z.ZodNumber;
715
+ }, z.core.$strict>>;
716
+ requests: z.ZodOptional<z.ZodObject<{
717
+ rows: z.ZodArray<z.ZodObject<{
718
+ streamId: z.ZodString;
719
+ dispatchIndex: z.ZodNumber;
720
+ version: z.ZodString;
721
+ startedAt: z.ZodNumber;
722
+ elapsedMs: z.ZodNumber;
723
+ model: z.ZodString;
724
+ protocol: z.ZodEnum<{
725
+ "openai-completions": "openai-completions";
726
+ "openai-responses": "openai-responses";
727
+ "anthropic-messages": "anthropic-messages";
728
+ }>;
729
+ composition: z.ZodDiscriminatedUnion<[z.ZodObject<{
730
+ state: z.ZodLiteral<"complete">;
731
+ totalBytes: z.ZodNumber;
732
+ conversationBytes: z.ZodNumber;
733
+ toolSchemaBytes: z.ZodNumber;
734
+ systemBytes: z.ZodNumber;
735
+ otherBytes: z.ZodNumber;
736
+ imageBlockBytes: z.ZodNumber;
737
+ opaqueReplayBytes: z.ZodNumber;
738
+ remainingConversationBytes: z.ZodNumber;
739
+ }, z.core.$strict>, z.ZodObject<{
740
+ state: z.ZodEnum<{
741
+ unavailable: "unavailable";
742
+ "work-limit": "work-limit";
743
+ "size-limit": "size-limit";
744
+ "invalid-json": "invalid-json";
745
+ "unsupported-shape": "unsupported-shape";
746
+ cancelled: "cancelled";
747
+ "time-limit": "time-limit";
748
+ }>;
749
+ totalBytes: z.ZodOptional<z.ZodNumber>;
750
+ }, z.core.$strict>], "state">;
751
+ encoding: z.ZodEnum<{
752
+ unknown: "unknown";
753
+ identity: "identity";
754
+ gzip: "gzip";
755
+ }>;
756
+ wireBytes: z.ZodOptional<z.ZodNumber>;
757
+ upload: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
758
+ state: z.ZodLiteral<"observed">;
759
+ bodyWrite: z.ZodEnum<{
760
+ observed: "observed";
761
+ "not-observed": "not-observed";
762
+ }>;
763
+ bodyWriteCompleteMs: z.ZodOptional<z.ZodNumber>;
764
+ nativeResponseHeadersMs: z.ZodOptional<z.ZodNumber>;
765
+ alpn: z.ZodEnum<{
766
+ h2: "h2";
767
+ unavailable: "unavailable";
768
+ "http/1.1": "http/1.1";
769
+ }>;
770
+ nodeWritableBufferBytes: z.ZodOptional<z.ZodNumber>;
771
+ }, z.core.$strict>, z.ZodObject<{
772
+ state: z.ZodEnum<{
773
+ unavailable: "unavailable";
774
+ "work-limit": "work-limit";
775
+ }>;
776
+ }, z.core.$strict>, z.ZodObject<{
777
+ state: z.ZodLiteral<"ambiguous">;
778
+ requestCount: z.ZodNumber;
779
+ }, z.core.$strict>], "state">>;
780
+ responseHeadersMs: z.ZodOptional<z.ZodNumber>;
781
+ httpStatus: z.ZodOptional<z.ZodNumber>;
782
+ outcome: z.ZodEnum<{
783
+ cancelled: "cancelled";
784
+ "http-error": "http-error";
785
+ "transport-error": "transport-error";
786
+ "stream-done": "stream-done";
787
+ "stream-error": "stream-error";
788
+ interrupted: "interrupted";
789
+ }>;
790
+ reason: z.ZodEnum<{
791
+ none: "none";
792
+ unknown: "unknown";
793
+ "request-body-timeout": "request-body-timeout";
794
+ "caller-abort": "caller-abort";
795
+ "credential-changed": "credential-changed";
796
+ disposed: "disposed";
797
+ "byte-idle-timeout": "byte-idle-timeout";
798
+ "signal-abort": "signal-abort";
799
+ }>;
800
+ }, z.core.$strict>>;
801
+ dropped: z.ZodNumber;
802
+ evicted: z.ZodNumber;
803
+ pending: z.ZodOptional<z.ZodNumber>;
804
+ interruptedOnReopen: z.ZodOptional<z.ZodNumber>;
805
+ credentialChanges: z.ZodOptional<z.ZodObject<{
806
+ rows: z.ZodArray<z.ZodObject<{
807
+ changeId: z.ZodString;
808
+ observedAt: z.ZodNumber;
809
+ version: z.ZodString;
810
+ phase: z.ZodEnum<{
811
+ notification: "notification";
812
+ commit: "commit";
813
+ }>;
814
+ reason: z.ZodEnum<{
815
+ expired: "expired";
816
+ qualified: "qualified";
817
+ "unknown-source": "unknown-source";
818
+ "account-changed": "account-changed";
819
+ "endpoint-changed": "endpoint-changed";
820
+ "entitlements-changed": "entitlements-changed";
821
+ "auth-mismatch": "auth-mismatch";
822
+ "duplicate-notification": "duplicate-notification";
823
+ "missing-notification": "missing-notification";
824
+ "commit-mismatch": "commit-mismatch";
825
+ "write-failed": "write-failed";
826
+ "write-conflict": "write-conflict";
827
+ }>;
828
+ preparing: z.ZodNumber;
829
+ dispatched: z.ZodNumber;
830
+ alreadyAborted: z.ZodNumber;
831
+ preserved: z.ZodNumber;
832
+ revoked: z.ZodNumber;
833
+ }, z.core.$strict>>;
834
+ dropped: z.ZodNumber;
835
+ evicted: z.ZodNumber;
836
+ pending: z.ZodOptional<z.ZodNumber>;
837
+ interruptedOnReopen: z.ZodOptional<z.ZodNumber>;
838
+ }, z.core.$strict>>;
839
+ }, z.core.$strict>>;
840
+ pending: z.ZodArray<z.ZodObject<{
841
+ version: z.ZodString;
842
+ operation: z.ZodEnum<{
843
+ compaction: "compaction";
844
+ "account-global-switch": "account-global-switch";
845
+ "account-session-select": "account-session-select";
846
+ "account-session-inherit": "account-session-inherit";
847
+ "identity-read": "identity-read";
848
+ "identity-flight": "identity-flight";
849
+ "compaction-summary": "compaction-summary";
850
+ collection: "collection";
851
+ }>;
852
+ stage: z.ZodEnum<{
853
+ ended: "ended";
854
+ dispatched: "dispatched";
855
+ admitted: "admitted";
856
+ "rpc-invoked": "rpc-invoked";
857
+ "host-received": "host-received";
858
+ "identity-validation": "identity-validation";
859
+ "model-validation": "model-validation";
860
+ cas: "cas";
861
+ readback: "readback";
862
+ "response-received": "response-received";
863
+ decoded: "decoded";
864
+ "client-settled": "client-settled";
865
+ "summary-attempt": "summary-attempt";
866
+ "checkpoint-committed": "checkpoint-committed";
867
+ "cache-hit": "cache-hit";
868
+ "joined-flight": "joined-flight";
869
+ cooldown: "cooldown";
870
+ }>;
871
+ bucket: z.ZodNumber;
872
+ count: z.ZodNumber;
873
+ }, z.core.$strict>>;
874
+ dropped: z.ZodNumber;
875
+ clientDropped: z.ZodNumber;
876
+ clientUnconfirmed: z.ZodNumber;
877
+ saturated: z.ZodNumber;
878
+ evicted: z.ZodNumber;
879
+ interrupted: z.ZodNumber;
880
+ }, z.core.$strict>;
881
+ }, z.core.$strict>;
882
+ export type DiagnosticsRow = z.infer<typeof DiagnosticsRowSchema>;
883
+ export type DiagnosticsSnapshot = z.infer<typeof DiagnosticsSnapshotSchema>;
884
+ export type DiagnosticsView = z.infer<typeof DiagnosticsViewSchema>;
885
+ export type DiagnosticsOperation = typeof DIAGNOSTICS_OPERATIONS[number];
886
+ export type DiagnosticsStage = typeof DIAGNOSTICS_STAGES[number];
887
+ export type DiagnosticsMetric = typeof DIAGNOSTICS_METRICS[number];
888
+ export type DiagnosticsReason = typeof DIAGNOSTICS_REASONS[number];
889
+ export type DiagnosticsOutcome = Exclude<DiagnosticsMetric, 'started' | 'stage' | 'dropped' | 'paused' | 'expired' | 'clock-discontinuity' | 'pending-sample'>;
890
+ export declare function diagnosticsBucket(ms: number): number;
891
+ export declare function diagnosticsReason(error: unknown): DiagnosticsReason;
892
+ export declare function diagnosticsOutcome(reason: DiagnosticsReason): DiagnosticsOutcome;
893
+ //# sourceMappingURL=diagnostics-types.d.ts.map