dsh-github-copilot 0.4.2-alpha.6 → 0.4.2-alpha.8

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.
@@ -1,4 +1,4 @@
1
- import { a as DiagnosticsPendingSchema, c as DiagnosticsViewSchema, n as DIAGNOSTICS_OPERATIONS, r as DIAGNOSTICS_REASONS, s as DiagnosticsSnapshotSchema } from "./diagnostics-types-BDIc78T4.js";
1
+ import { a as DiagnosticsPendingSchema, c as DiagnosticsViewSchema, n as DIAGNOSTICS_OPERATIONS, r as DIAGNOSTICS_REASONS, s as DiagnosticsSnapshotSchema } from "./diagnostics-types-C1BD6ayS.js";
2
2
  import { z } from "zod";
3
3
  //#region lib/types/diagnostics-analysis.js
4
4
  const RETENTION_MS = 12096e5;
@@ -386,6 +386,32 @@ const upload = z.discriminatedUnion("state", [
386
386
  }).strict()
387
387
  ]);
388
388
  const REQUEST_DIAGNOSTICS_RETENTION_MS = 864e5;
389
+ const CredentialChangeReasonSchema = z.enum([
390
+ "qualified",
391
+ "unknown-source",
392
+ "account-changed",
393
+ "endpoint-changed",
394
+ "entitlements-changed",
395
+ "expired",
396
+ "auth-mismatch",
397
+ "duplicate-notification",
398
+ "missing-notification",
399
+ "commit-mismatch",
400
+ "write-failed",
401
+ "write-conflict"
402
+ ]);
403
+ const CredentialChangeSchema = z.object({
404
+ changeId: z.string().uuid(),
405
+ observedAt: integer$1,
406
+ version: z.string().max(64).regex(/^\d+\.\d+\.\d+(?:-[a-zA-Z0-9.-]+)?$/),
407
+ phase: z.enum(["notification", "commit"]),
408
+ reason: CredentialChangeReasonSchema,
409
+ preparing: integer$1,
410
+ dispatched: integer$1,
411
+ alreadyAborted: integer$1,
412
+ preserved: integer$1,
413
+ revoked: integer$1
414
+ }).strict();
389
415
  const RequestDiagnosticSchema = z.object({
390
416
  streamId: z.string().uuid(),
391
417
  dispatchIndex: integer$1.min(1),
@@ -432,7 +458,14 @@ const RequestDiagnosticsSchema = z.object({
432
458
  dropped: integer$1,
433
459
  evicted: integer$1,
434
460
  pending: integer$1.max(128).optional(),
435
- interruptedOnReopen: integer$1.optional()
461
+ interruptedOnReopen: integer$1.optional(),
462
+ credentialChanges: z.object({
463
+ rows: z.array(CredentialChangeSchema).max(128),
464
+ dropped: integer$1,
465
+ evicted: integer$1,
466
+ pending: integer$1.max(128).optional(),
467
+ interruptedOnReopen: integer$1.optional()
468
+ }).strict().optional()
436
469
  }).strict();
437
470
  //#endregion
438
471
  //#region lib/types/diagnostics-types.js
@@ -619,4 +652,4 @@ function diagnosticsOutcome(reason) {
619
652
  return "failed";
620
653
  }
621
654
  //#endregion
622
- export { normalizeExcludedModelIds as S, AutoAllocationSchema as _, DiagnosticsPendingSchema as a, ModelExclusionTurns as b, DiagnosticsViewSchema as c, diagnosticsReason as d, REQUEST_DIAGNOSTICS_RETENTION_MS as f, AUTO_ALLOCATION_POLICY as g, emptyAutoAllocationDiagnostics as h, DIAGNOSTICS_RETENTION_MS as i, diagnosticsBucket as l, AutoAllocationDiagnosticsCollector as m, DIAGNOSTICS_OPERATIONS as n, DiagnosticsRowSchema as o, RequestDiagnosticSchema as p, DIAGNOSTICS_REASONS as r, DiagnosticsSnapshotSchema as s, DIAGNOSTICS_MAX_ROWS as t, diagnosticsOutcome as u, allocateAutoModel as v, excludedModelSet as x, normalizeHighCostModelIds as y };
655
+ export { normalizeExcludedModelIds as C, excludedModelSet as S, AUTO_ALLOCATION_POLICY as _, DiagnosticsPendingSchema as a, normalizeHighCostModelIds as b, DiagnosticsViewSchema as c, diagnosticsReason as d, CredentialChangeSchema as f, emptyAutoAllocationDiagnostics as g, AutoAllocationDiagnosticsCollector as h, DIAGNOSTICS_RETENTION_MS as i, diagnosticsBucket as l, RequestDiagnosticSchema as m, DIAGNOSTICS_OPERATIONS as n, DiagnosticsRowSchema as o, REQUEST_DIAGNOSTICS_RETENTION_MS as p, DIAGNOSTICS_REASONS as r, DiagnosticsSnapshotSchema as s, DIAGNOSTICS_MAX_ROWS as t, diagnosticsOutcome as u, AutoAllocationSchema as v, ModelExclusionTurns as x, allocateAutoModel as y };