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.
- package/AGENTS.md +11 -1
- package/CHANGELOG.md +31 -0
- package/README.md +17 -7
- package/README.zh.md +15 -7
- package/deployment-baseline.json +12 -2
- package/docs/auto-iteration-review.json +5 -5
- package/docs/auto-task-routing.md +64 -5
- package/docs/copilot-accounts.md +6 -0
- package/docs/plugin-diagnostics.md +45 -5
- package/lib/client.js +93 -14
- package/lib/client.js.map +1 -1
- package/lib/diagnostics-analysis.js +1 -1
- package/lib/{diagnostics-types-BDIc78T4.js → diagnostics-types-C1BD6ayS.js} +35 -2
- package/lib/index.js +1840 -1654
- package/lib/manual-compaction-recovery.js +1 -1
- package/lib/remote.js +34 -1
- package/lib/types/auto-model-host.d.ts +1 -0
- package/lib/types/auto-task-assessment.d.ts +1 -0
- package/lib/types/auto-task-classifier.d.ts +1 -1
- package/lib/types/config.d.ts +10 -2
- package/lib/types/copilot-auth.d.ts +2 -1
- package/lib/types/diagnostics-analysis.d.ts +1 -1
- package/lib/types/diagnostics-card.d.ts +1 -0
- package/lib/types/diagnostics-collector.d.ts +3 -1
- package/lib/types/diagnostics-host.d.ts +21 -3
- package/lib/types/diagnostics-remote.d.ts +2 -2
- package/lib/types/diagnostics-types.d.ts +77 -9
- package/lib/types/preview-route.d.ts +1 -1
- package/lib/types/request-diagnostics.d.ts +82 -0
- package/package.json +1 -1
|
@@ -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-
|
|
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,
|
|
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 };
|