dsh-github-copilot 0.4.2-alpha.7 → 0.4.2-alpha.9

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.
@@ -19,8 +19,8 @@ export declare const diagnosticsDomain: {
19
19
  version: string;
20
20
  layer: "client" | "host";
21
21
  operation: "compaction" | "account-global-switch" | "account-session-select" | "account-session-inherit" | "identity-read" | "identity-flight" | "compaction-summary" | "collection";
22
- stage: "ended" | "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" | "dispatched";
23
- metric: "paused" | "unknown" | "success" | "stage" | "failed" | "dropped" | "expired" | "cancelled" | "interrupted" | "started" | "no-op" | "policy-rejected" | "revoked" | "environment-fault" | "clock-discontinuity" | "pending-sample";
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
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_CALL_LIMIT" | "COPILOT_MANUAL_RECOVERY_EMPTY_SUMMARY" | "COPILOT_MANUAL_RECOVERY_UNBALANCED";
25
25
  bucket: number;
26
26
  count: number;
@@ -28,7 +28,7 @@ export declare const diagnosticsDomain: {
28
28
  pending: {
29
29
  version: string;
30
30
  operation: "compaction" | "account-global-switch" | "account-session-select" | "account-session-inherit" | "identity-read" | "identity-flight" | "compaction-summary" | "collection";
31
- stage: "ended" | "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" | "dispatched";
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
32
  bucket: number;
33
33
  count: number;
34
34
  }[];
@@ -126,6 +126,24 @@ export declare const diagnosticsDomain: {
126
126
  evicted: number;
127
127
  pending?: number | undefined;
128
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;
129
147
  } | undefined;
130
148
  }>;
131
149
  };
@@ -22,6 +22,7 @@ export declare const ClientDiagnosticsBatchSchema: z.ZodObject<{
22
22
  }>;
23
23
  stage: z.ZodEnum<{
24
24
  ended: "ended";
25
+ dispatched: "dispatched";
25
26
  admitted: "admitted";
26
27
  "rpc-invoked": "rpc-invoked";
27
28
  "host-received": "host-received";
@@ -37,7 +38,6 @@ export declare const ClientDiagnosticsBatchSchema: z.ZodObject<{
37
38
  "cache-hit": "cache-hit";
38
39
  "joined-flight": "joined-flight";
39
40
  cooldown: "cooldown";
40
- dispatched: "dispatched";
41
41
  }>;
42
42
  metric: z.ZodEnum<{
43
43
  paused: "paused";
@@ -48,11 +48,11 @@ export declare const ClientDiagnosticsBatchSchema: z.ZodObject<{
48
48
  dropped: "dropped";
49
49
  expired: "expired";
50
50
  cancelled: "cancelled";
51
+ revoked: "revoked";
51
52
  interrupted: "interrupted";
52
53
  started: "started";
53
54
  "no-op": "no-op";
54
55
  "policy-rejected": "policy-rejected";
55
- revoked: "revoked";
56
56
  "environment-fault": "environment-fault";
57
57
  "clock-discontinuity": "clock-discontinuity";
58
58
  "pending-sample": "pending-sample";
@@ -26,6 +26,7 @@ export declare const DiagnosticsRowSchema: z.ZodObject<{
26
26
  }>;
27
27
  stage: z.ZodEnum<{
28
28
  ended: "ended";
29
+ dispatched: "dispatched";
29
30
  admitted: "admitted";
30
31
  "rpc-invoked": "rpc-invoked";
31
32
  "host-received": "host-received";
@@ -41,7 +42,6 @@ export declare const DiagnosticsRowSchema: z.ZodObject<{
41
42
  "cache-hit": "cache-hit";
42
43
  "joined-flight": "joined-flight";
43
44
  cooldown: "cooldown";
44
- dispatched: "dispatched";
45
45
  }>;
46
46
  metric: z.ZodEnum<{
47
47
  paused: "paused";
@@ -52,11 +52,11 @@ export declare const DiagnosticsRowSchema: z.ZodObject<{
52
52
  dropped: "dropped";
53
53
  expired: "expired";
54
54
  cancelled: "cancelled";
55
+ revoked: "revoked";
55
56
  interrupted: "interrupted";
56
57
  started: "started";
57
58
  "no-op": "no-op";
58
59
  "policy-rejected": "policy-rejected";
59
- revoked: "revoked";
60
60
  "environment-fault": "environment-fault";
61
61
  "clock-discontinuity": "clock-discontinuity";
62
62
  "pending-sample": "pending-sample";
@@ -108,6 +108,7 @@ export declare const DiagnosticsPendingSchema: z.ZodObject<{
108
108
  }>;
109
109
  stage: z.ZodEnum<{
110
110
  ended: "ended";
111
+ dispatched: "dispatched";
111
112
  admitted: "admitted";
112
113
  "rpc-invoked": "rpc-invoked";
113
114
  "host-received": "host-received";
@@ -123,7 +124,6 @@ export declare const DiagnosticsPendingSchema: z.ZodObject<{
123
124
  "cache-hit": "cache-hit";
124
125
  "joined-flight": "joined-flight";
125
126
  cooldown: "cooldown";
126
- dispatched: "dispatched";
127
127
  }>;
128
128
  bucket: z.ZodNumber;
129
129
  count: z.ZodNumber;
@@ -152,6 +152,7 @@ export declare const DiagnosticsSnapshotSchema: z.ZodObject<{
152
152
  }>;
153
153
  stage: z.ZodEnum<{
154
154
  ended: "ended";
155
+ dispatched: "dispatched";
155
156
  admitted: "admitted";
156
157
  "rpc-invoked": "rpc-invoked";
157
158
  "host-received": "host-received";
@@ -167,7 +168,6 @@ export declare const DiagnosticsSnapshotSchema: z.ZodObject<{
167
168
  "cache-hit": "cache-hit";
168
169
  "joined-flight": "joined-flight";
169
170
  cooldown: "cooldown";
170
- dispatched: "dispatched";
171
171
  }>;
172
172
  metric: z.ZodEnum<{
173
173
  paused: "paused";
@@ -178,11 +178,11 @@ export declare const DiagnosticsSnapshotSchema: z.ZodObject<{
178
178
  dropped: "dropped";
179
179
  expired: "expired";
180
180
  cancelled: "cancelled";
181
+ revoked: "revoked";
181
182
  interrupted: "interrupted";
182
183
  started: "started";
183
184
  "no-op": "no-op";
184
185
  "policy-rejected": "policy-rejected";
185
- revoked: "revoked";
186
186
  "environment-fault": "environment-fault";
187
187
  "clock-discontinuity": "clock-discontinuity";
188
188
  "pending-sample": "pending-sample";
@@ -412,6 +412,40 @@ export declare const DiagnosticsSnapshotSchema: z.ZodObject<{
412
412
  evicted: z.ZodNumber;
413
413
  pending: z.ZodOptional<z.ZodNumber>;
414
414
  interruptedOnReopen: z.ZodOptional<z.ZodNumber>;
415
+ credentialChanges: z.ZodOptional<z.ZodObject<{
416
+ rows: z.ZodArray<z.ZodObject<{
417
+ changeId: z.ZodString;
418
+ observedAt: z.ZodNumber;
419
+ version: z.ZodString;
420
+ phase: z.ZodEnum<{
421
+ notification: "notification";
422
+ commit: "commit";
423
+ }>;
424
+ reason: z.ZodEnum<{
425
+ expired: "expired";
426
+ qualified: "qualified";
427
+ "unknown-source": "unknown-source";
428
+ "account-changed": "account-changed";
429
+ "endpoint-changed": "endpoint-changed";
430
+ "entitlements-changed": "entitlements-changed";
431
+ "auth-mismatch": "auth-mismatch";
432
+ "duplicate-notification": "duplicate-notification";
433
+ "missing-notification": "missing-notification";
434
+ "commit-mismatch": "commit-mismatch";
435
+ "write-failed": "write-failed";
436
+ "write-conflict": "write-conflict";
437
+ }>;
438
+ preparing: z.ZodNumber;
439
+ dispatched: z.ZodNumber;
440
+ alreadyAborted: z.ZodNumber;
441
+ preserved: z.ZodNumber;
442
+ revoked: z.ZodNumber;
443
+ }, z.core.$strict>>;
444
+ dropped: z.ZodNumber;
445
+ evicted: z.ZodNumber;
446
+ pending: z.ZodOptional<z.ZodNumber>;
447
+ interruptedOnReopen: z.ZodOptional<z.ZodNumber>;
448
+ }, z.core.$strict>>;
415
449
  }, z.core.$strict>>;
416
450
  pending: z.ZodArray<z.ZodObject<{
417
451
  version: z.ZodString;
@@ -427,6 +461,7 @@ export declare const DiagnosticsSnapshotSchema: z.ZodObject<{
427
461
  }>;
428
462
  stage: z.ZodEnum<{
429
463
  ended: "ended";
464
+ dispatched: "dispatched";
430
465
  admitted: "admitted";
431
466
  "rpc-invoked": "rpc-invoked";
432
467
  "host-received": "host-received";
@@ -442,7 +477,6 @@ export declare const DiagnosticsSnapshotSchema: z.ZodObject<{
442
477
  "cache-hit": "cache-hit";
443
478
  "joined-flight": "joined-flight";
444
479
  cooldown: "cooldown";
445
- dispatched: "dispatched";
446
480
  }>;
447
481
  bucket: z.ZodNumber;
448
482
  count: z.ZodNumber;
@@ -502,6 +536,7 @@ export declare const DiagnosticsViewSchema: z.ZodObject<{
502
536
  }>;
503
537
  stage: z.ZodEnum<{
504
538
  ended: "ended";
539
+ dispatched: "dispatched";
505
540
  admitted: "admitted";
506
541
  "rpc-invoked": "rpc-invoked";
507
542
  "host-received": "host-received";
@@ -517,7 +552,6 @@ export declare const DiagnosticsViewSchema: z.ZodObject<{
517
552
  "cache-hit": "cache-hit";
518
553
  "joined-flight": "joined-flight";
519
554
  cooldown: "cooldown";
520
- dispatched: "dispatched";
521
555
  }>;
522
556
  metric: z.ZodEnum<{
523
557
  paused: "paused";
@@ -528,11 +562,11 @@ export declare const DiagnosticsViewSchema: z.ZodObject<{
528
562
  dropped: "dropped";
529
563
  expired: "expired";
530
564
  cancelled: "cancelled";
565
+ revoked: "revoked";
531
566
  interrupted: "interrupted";
532
567
  started: "started";
533
568
  "no-op": "no-op";
534
569
  "policy-rejected": "policy-rejected";
535
- revoked: "revoked";
536
570
  "environment-fault": "environment-fault";
537
571
  "clock-discontinuity": "clock-discontinuity";
538
572
  "pending-sample": "pending-sample";
@@ -762,6 +796,40 @@ export declare const DiagnosticsViewSchema: z.ZodObject<{
762
796
  evicted: z.ZodNumber;
763
797
  pending: z.ZodOptional<z.ZodNumber>;
764
798
  interruptedOnReopen: z.ZodOptional<z.ZodNumber>;
799
+ credentialChanges: z.ZodOptional<z.ZodObject<{
800
+ rows: z.ZodArray<z.ZodObject<{
801
+ changeId: z.ZodString;
802
+ observedAt: z.ZodNumber;
803
+ version: z.ZodString;
804
+ phase: z.ZodEnum<{
805
+ notification: "notification";
806
+ commit: "commit";
807
+ }>;
808
+ reason: z.ZodEnum<{
809
+ expired: "expired";
810
+ qualified: "qualified";
811
+ "unknown-source": "unknown-source";
812
+ "account-changed": "account-changed";
813
+ "endpoint-changed": "endpoint-changed";
814
+ "entitlements-changed": "entitlements-changed";
815
+ "auth-mismatch": "auth-mismatch";
816
+ "duplicate-notification": "duplicate-notification";
817
+ "missing-notification": "missing-notification";
818
+ "commit-mismatch": "commit-mismatch";
819
+ "write-failed": "write-failed";
820
+ "write-conflict": "write-conflict";
821
+ }>;
822
+ preparing: z.ZodNumber;
823
+ dispatched: z.ZodNumber;
824
+ alreadyAborted: z.ZodNumber;
825
+ preserved: z.ZodNumber;
826
+ revoked: z.ZodNumber;
827
+ }, z.core.$strict>>;
828
+ dropped: z.ZodNumber;
829
+ evicted: z.ZodNumber;
830
+ pending: z.ZodOptional<z.ZodNumber>;
831
+ interruptedOnReopen: z.ZodOptional<z.ZodNumber>;
832
+ }, z.core.$strict>>;
765
833
  }, z.core.$strict>>;
766
834
  pending: z.ZodArray<z.ZodObject<{
767
835
  version: z.ZodString;
@@ -777,6 +845,7 @@ export declare const DiagnosticsViewSchema: z.ZodObject<{
777
845
  }>;
778
846
  stage: z.ZodEnum<{
779
847
  ended: "ended";
848
+ dispatched: "dispatched";
780
849
  admitted: "admitted";
781
850
  "rpc-invoked": "rpc-invoked";
782
851
  "host-received": "host-received";
@@ -792,7 +861,6 @@ export declare const DiagnosticsViewSchema: z.ZodObject<{
792
861
  "cache-hit": "cache-hit";
793
862
  "joined-flight": "joined-flight";
794
863
  cooldown: "cooldown";
795
- dispatched: "dispatched";
796
864
  }>;
797
865
  bucket: z.ZodNumber;
798
866
  count: z.ZodNumber;
@@ -68,9 +68,9 @@ export type AccountPiModel = Model<AccountModelApi> & {
68
68
  };
69
69
  export declare function copilotPublicHeaders(): Readonly<Record<string, string>>;
70
70
  /** Materialize advertised capabilities only; model names and the local static catalog never select the API. */
71
- export declare function accountModelFromDescriptor(descriptor: AccountModelDescriptor, baseURL: string): AccountPiModel;
71
+ export declare function accountModelFromDescriptor(descriptor: AccountModelDescriptor, baseURL: string, classifierReasoningOff?: boolean): AccountPiModel;
72
72
  /** Create a descriptor-driven, OAuth-only provider using native SDK serialization for all supported endpoints. */
73
- export declare function createAccountProvider(descriptors: readonly AccountModelDescriptor[], guard: AccountProviderGuard, baseURL: string): {
73
+ export declare function createAccountProvider(descriptors: readonly AccountModelDescriptor[], guard: AccountProviderGuard, baseURL: string, classifierReasoningOff?: boolean): {
74
74
  provider: CoreCompatibleProvider;
75
75
  models: readonly AccountPiModel[];
76
76
  };
@@ -3,6 +3,54 @@ import type { RequestBodyEvidence } from './request-body-evidence.ts';
3
3
  import type { RequestUploadEvidence } from './request-upload-evidence.ts';
4
4
  export declare const REQUEST_DIAGNOSTICS_MAX_ROWS = 128;
5
5
  export declare const REQUEST_DIAGNOSTICS_RETENTION_MS: number;
6
+ export declare const CredentialChangeReasonSchema: z.ZodEnum<{
7
+ expired: "expired";
8
+ qualified: "qualified";
9
+ "unknown-source": "unknown-source";
10
+ "account-changed": "account-changed";
11
+ "endpoint-changed": "endpoint-changed";
12
+ "entitlements-changed": "entitlements-changed";
13
+ "auth-mismatch": "auth-mismatch";
14
+ "duplicate-notification": "duplicate-notification";
15
+ "missing-notification": "missing-notification";
16
+ "commit-mismatch": "commit-mismatch";
17
+ "write-failed": "write-failed";
18
+ "write-conflict": "write-conflict";
19
+ }>;
20
+ export declare const CredentialChangeSchema: z.ZodObject<{
21
+ changeId: z.ZodString;
22
+ observedAt: z.ZodNumber;
23
+ version: z.ZodString;
24
+ phase: z.ZodEnum<{
25
+ notification: "notification";
26
+ commit: "commit";
27
+ }>;
28
+ reason: z.ZodEnum<{
29
+ expired: "expired";
30
+ qualified: "qualified";
31
+ "unknown-source": "unknown-source";
32
+ "account-changed": "account-changed";
33
+ "endpoint-changed": "endpoint-changed";
34
+ "entitlements-changed": "entitlements-changed";
35
+ "auth-mismatch": "auth-mismatch";
36
+ "duplicate-notification": "duplicate-notification";
37
+ "missing-notification": "missing-notification";
38
+ "commit-mismatch": "commit-mismatch";
39
+ "write-failed": "write-failed";
40
+ "write-conflict": "write-conflict";
41
+ }>;
42
+ preparing: z.ZodNumber;
43
+ dispatched: z.ZodNumber;
44
+ alreadyAborted: z.ZodNumber;
45
+ preserved: z.ZodNumber;
46
+ revoked: z.ZodNumber;
47
+ }, z.core.$strict>;
48
+ export type CredentialChangeReason = z.infer<typeof CredentialChangeReasonSchema>;
49
+ export type CredentialChangeEvidence = Omit<z.infer<typeof CredentialChangeSchema>, 'changeId' | 'observedAt' | 'version'>;
50
+ export interface CredentialChangeHandle {
51
+ record(evidence: CredentialChangeEvidence): void;
52
+ cancel(): void;
53
+ }
6
54
  export declare const RequestDiagnosticSchema: z.ZodObject<{
7
55
  streamId: z.ZodString;
8
56
  dispatchIndex: z.ZodNumber;
@@ -176,6 +224,40 @@ export declare const RequestDiagnosticsSchema: z.ZodObject<{
176
224
  evicted: z.ZodNumber;
177
225
  pending: z.ZodOptional<z.ZodNumber>;
178
226
  interruptedOnReopen: z.ZodOptional<z.ZodNumber>;
227
+ credentialChanges: z.ZodOptional<z.ZodObject<{
228
+ rows: z.ZodArray<z.ZodObject<{
229
+ changeId: z.ZodString;
230
+ observedAt: z.ZodNumber;
231
+ version: z.ZodString;
232
+ phase: z.ZodEnum<{
233
+ notification: "notification";
234
+ commit: "commit";
235
+ }>;
236
+ reason: z.ZodEnum<{
237
+ expired: "expired";
238
+ qualified: "qualified";
239
+ "unknown-source": "unknown-source";
240
+ "account-changed": "account-changed";
241
+ "endpoint-changed": "endpoint-changed";
242
+ "entitlements-changed": "entitlements-changed";
243
+ "auth-mismatch": "auth-mismatch";
244
+ "duplicate-notification": "duplicate-notification";
245
+ "missing-notification": "missing-notification";
246
+ "commit-mismatch": "commit-mismatch";
247
+ "write-failed": "write-failed";
248
+ "write-conflict": "write-conflict";
249
+ }>;
250
+ preparing: z.ZodNumber;
251
+ dispatched: z.ZodNumber;
252
+ alreadyAborted: z.ZodNumber;
253
+ preserved: z.ZodNumber;
254
+ revoked: z.ZodNumber;
255
+ }, z.core.$strict>>;
256
+ dropped: z.ZodNumber;
257
+ evicted: z.ZodNumber;
258
+ pending: z.ZodOptional<z.ZodNumber>;
259
+ interruptedOnReopen: z.ZodOptional<z.ZodNumber>;
260
+ }, z.core.$strict>>;
179
261
  }, z.core.$strict>;
180
262
  export type RequestDiagnostic = z.infer<typeof RequestDiagnosticSchema>;
181
263
  export interface RequestDiagnosticHandle {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-github-copilot",
3
3
  "description": "DSH companion for GitHub Copilot sign-in, account-aware model profiles, tool compatibility, and provider-hosted search.",
4
- "version": "0.4.2-alpha.7",
4
+ "version": "0.4.2-alpha.9",
5
5
  "releaseNotes": "CHANGELOG.md",
6
6
  "publishConfig": {
7
7
  "access": "public",