dsh-github-copilot 0.4.2-alpha.5 → 0.4.2-alpha.7
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 +6 -1
- package/CHANGELOG.md +30 -0
- package/README.md +16 -8
- package/README.zh.md +15 -8
- package/deployment-baseline.json +11 -2
- package/docs/auto-iteration-review.json +12 -12
- package/docs/auto-task-routing.md +64 -5
- package/docs/plugin-diagnostics.md +12 -0
- package/lib/client.js +21 -5
- package/lib/client.js.map +1 -1
- package/lib/diagnostics-analysis.js +1 -1
- package/lib/{diagnostics-types-Cd4BmeOe.js → diagnostics-types-BDIc78T4.js} +21 -3
- package/lib/index.js +4005 -3989
- package/lib/manual-compaction-recovery.js +1 -1
- package/lib/remote.js +14 -0
- package/lib/types/auto-allocation-diagnostics.d.ts +25 -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/diagnostics-host.d.ts +2 -0
- package/lib/types/diagnostics-types.d.ts +48 -0
- package/lib/types/preview-route.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./copilot-identity-DRZY_d2X.js";
|
|
2
|
-
import { d as diagnosticsReason, u as diagnosticsOutcome } from "./diagnostics-types-
|
|
2
|
+
import { d as diagnosticsReason, u as diagnosticsOutcome } from "./diagnostics-types-BDIc78T4.js";
|
|
3
3
|
import { i as resolveRequestBudgetPolicy, r as calculateRequestBudget } from "./request-budget-DLY_aRq0.js";
|
|
4
4
|
import z from "@deepseek-ai/schemastery";
|
|
5
5
|
import { LlmError, createUserMessage } from "@deepseek-ai/dsh-llm";
|
package/lib/remote.js
CHANGED
|
@@ -766,6 +766,18 @@ const AUTO_ALLOCATION_DIAGNOSTIC_MAX_ROWS = 1024;
|
|
|
766
766
|
const dayMs = 864e5;
|
|
767
767
|
const integer$2 = z.number().int().min(0).max(Number.MAX_SAFE_INTEGER);
|
|
768
768
|
const version$1 = z.string().max(64).regex(/^\d+\.\d+\.\d+(?:-[a-zA-Z0-9.-]+)?$/);
|
|
769
|
+
const assessmentOutcome = z.enum([
|
|
770
|
+
"local-known",
|
|
771
|
+
"local-unknown",
|
|
772
|
+
"semantic-known",
|
|
773
|
+
"semantic-unknown",
|
|
774
|
+
"disabled",
|
|
775
|
+
"unavailable",
|
|
776
|
+
"invalid-result",
|
|
777
|
+
"timeout",
|
|
778
|
+
"failed",
|
|
779
|
+
"context-omitted"
|
|
780
|
+
]);
|
|
769
781
|
const allocationRow = z.object({
|
|
770
782
|
day: integer$2.multipleOf(dayMs),
|
|
771
783
|
version: version$1,
|
|
@@ -789,6 +801,7 @@ const allocationRow = z.object({
|
|
|
789
801
|
"unknown"
|
|
790
802
|
]),
|
|
791
803
|
assessmentSource: z.enum(["local", "semantic"]),
|
|
804
|
+
assessmentOutcome: assessmentOutcome.optional(),
|
|
792
805
|
method: z.enum(["weighted-distribution", "only-candidate"]),
|
|
793
806
|
fallback: z.boolean(),
|
|
794
807
|
highCost: z.boolean(),
|
|
@@ -820,6 +833,7 @@ const noFitRow = z.object({
|
|
|
820
833
|
"unknown"
|
|
821
834
|
]),
|
|
822
835
|
assessmentSource: z.enum(["local", "semantic"]),
|
|
836
|
+
assessmentOutcome: assessmentOutcome.optional(),
|
|
823
837
|
decisions: integer$2.min(1)
|
|
824
838
|
}).strict();
|
|
825
839
|
const AutoAllocationDiagnosticsSchema = z.object({
|
|
@@ -33,6 +33,18 @@ export declare const AutoAllocationDiagnosticsSchema: z.ZodObject<{
|
|
|
33
33
|
local: "local";
|
|
34
34
|
semantic: "semantic";
|
|
35
35
|
}>;
|
|
36
|
+
assessmentOutcome: z.ZodOptional<z.ZodEnum<{
|
|
37
|
+
disabled: "disabled";
|
|
38
|
+
unavailable: "unavailable";
|
|
39
|
+
"context-omitted": "context-omitted";
|
|
40
|
+
"invalid-result": "invalid-result";
|
|
41
|
+
timeout: "timeout";
|
|
42
|
+
failed: "failed";
|
|
43
|
+
"local-known": "local-known";
|
|
44
|
+
"local-unknown": "local-unknown";
|
|
45
|
+
"semantic-known": "semantic-known";
|
|
46
|
+
"semantic-unknown": "semantic-unknown";
|
|
47
|
+
}>>;
|
|
36
48
|
method: z.ZodEnum<{
|
|
37
49
|
"weighted-distribution": "weighted-distribution";
|
|
38
50
|
"only-candidate": "only-candidate";
|
|
@@ -70,6 +82,18 @@ export declare const AutoAllocationDiagnosticsSchema: z.ZodObject<{
|
|
|
70
82
|
local: "local";
|
|
71
83
|
semantic: "semantic";
|
|
72
84
|
}>;
|
|
85
|
+
assessmentOutcome: z.ZodOptional<z.ZodEnum<{
|
|
86
|
+
disabled: "disabled";
|
|
87
|
+
unavailable: "unavailable";
|
|
88
|
+
"context-omitted": "context-omitted";
|
|
89
|
+
"invalid-result": "invalid-result";
|
|
90
|
+
timeout: "timeout";
|
|
91
|
+
failed: "failed";
|
|
92
|
+
"local-known": "local-known";
|
|
93
|
+
"local-unknown": "local-unknown";
|
|
94
|
+
"semantic-known": "semantic-known";
|
|
95
|
+
"semantic-unknown": "semantic-unknown";
|
|
96
|
+
}>>;
|
|
73
97
|
decisions: z.ZodNumber;
|
|
74
98
|
}, z.core.$strict>>;
|
|
75
99
|
observationStart: z.ZodNullable<z.ZodNumber>;
|
|
@@ -83,7 +107,7 @@ export declare const AutoAllocationDiagnosticsSchema: z.ZodObject<{
|
|
|
83
107
|
}, z.core.$strict>;
|
|
84
108
|
export type AutoAllocationDiagnostics = z.infer<typeof AutoAllocationDiagnosticsSchema>;
|
|
85
109
|
export declare function emptyAutoAllocationDiagnostics(): AutoAllocationDiagnostics;
|
|
86
|
-
/** Profile-local rolling aggregates; no per-turn, Session, prompt, or outcome records. */
|
|
110
|
+
/** Profile-local rolling aggregates; no per-turn, Session, prompt, or execution-outcome records. */
|
|
87
111
|
export declare class AutoAllocationDiagnosticsCollector {
|
|
88
112
|
private readonly version;
|
|
89
113
|
private readonly changed;
|
|
@@ -19,6 +19,7 @@ export interface AutoModelHostDependencies {
|
|
|
19
19
|
followParentModel?: () => boolean;
|
|
20
20
|
admitModel?: (agent: Agent, turn: number, model: string, signal: AbortSignal) => void;
|
|
21
21
|
semanticAssessment?: () => boolean;
|
|
22
|
+
assessmentTimeoutMs?: () => number | undefined;
|
|
22
23
|
highCostModelIds?: () => readonly string[];
|
|
23
24
|
allocationEvidence?: () => boolean;
|
|
24
25
|
classifyTask?: TaskAssessmentDependencies['classify'];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { SemanticAssessmentEvidence, TaskClassifierObserver } from './auto-assessment-evidence.ts';
|
|
3
|
+
export declare const DEFAULT_AUTO_ASSESSMENT_TIMEOUT_MS = 30000;
|
|
3
4
|
export declare const TaskAssessmentSchema: z.ZodObject<{
|
|
4
5
|
demand: z.ZodEnum<{
|
|
5
6
|
unknown: "unknown";
|
|
@@ -3,7 +3,7 @@ import type { AccountModelDescriptor } from './account-model-catalog.ts';
|
|
|
3
3
|
import type { AssessmentInput } from './auto-task-assessment.ts';
|
|
4
4
|
import type { TaskClassifierObserver } from './auto-assessment-evidence.ts';
|
|
5
5
|
export declare const TASK_CLASSIFIER_MAX_TOKENS = 128;
|
|
6
|
-
export declare function taskClassifierModel(models: readonly AccountModelDescriptor[], highCostModelIds?: readonly string[]): AccountModelDescriptor | undefined;
|
|
6
|
+
export declare function taskClassifierModel(models: readonly AccountModelDescriptor[], highCostModelIds?: readonly string[], modelId?: string): AccountModelDescriptor | undefined;
|
|
7
7
|
/** One auxiliary concrete-model call; no Auto recursion, tools, history writes or retry loop. */
|
|
8
8
|
export declare function classifyTaskWithAdapter(model: AccountModelDescriptor, input: AssessmentInput, signal: AbortSignal, stream: (request: GenerateOptions) => AsyncIterable<StreamChunk>, observe?: TaskClassifierObserver, reasoningOffSupported?: boolean, checkpoint?: () => void): Promise<string>;
|
|
9
9
|
//# sourceMappingURL=auto-task-classifier.d.ts.map
|
package/lib/types/config.d.ts
CHANGED
|
@@ -69,6 +69,10 @@ export interface InlineConfig {
|
|
|
69
69
|
followParentModel?: boolean;
|
|
70
70
|
/** Default-on bounded task assessment; explicit false opts out of auxiliary inference. */
|
|
71
71
|
autoSemanticAssessment?: boolean;
|
|
72
|
+
/** Total preparation/response budget; finite wait, independent of native Chat deadlines. */
|
|
73
|
+
autoSemanticAssessmentTimeoutMs?: number;
|
|
74
|
+
/** Exact account classifier ID; empty keeps metadata-driven automatic selection. */
|
|
75
|
+
autoSemanticAssessmentModel?: string;
|
|
72
76
|
/** Capture bounded local candidate opportunities for future policy review. */
|
|
73
77
|
autoAllocationEvidence?: boolean;
|
|
74
78
|
/** Estimated managed-route input headroom, separate from truthful catalog capacities. */
|
|
@@ -88,7 +92,9 @@ export interface InlineConfig {
|
|
|
88
92
|
/** Internal JSON backup of route leaves temporarily owned by the GPT-6 overlay. */
|
|
89
93
|
temporaryRouteBackup?: string;
|
|
90
94
|
}
|
|
91
|
-
export type LiveInlineConfig = Omit<InlineConfig, 'diagnosticsEnabled' | 'autoAllocationDiagnosticsEnabled' | 'requestDiagnosticsEnabled' | 'searchModel' | 'searchRouting' | 'temporaryRouteBackup' | 'excludedModelIds' | 'highCostModelIds' | 'parentModelFollow' | 'followParentModel' | 'activeAccountId' | 'sessionAccounts' | 'sessionContinuation' | 'continuationDefaultHistory'> & {
|
|
95
|
+
export type LiveInlineConfig = Omit<InlineConfig, 'diagnosticsEnabled' | 'autoAllocationDiagnosticsEnabled' | 'requestDiagnosticsEnabled' | 'searchModel' | 'searchRouting' | 'temporaryRouteBackup' | 'excludedModelIds' | 'highCostModelIds' | 'parentModelFollow' | 'followParentModel' | 'activeAccountId' | 'sessionAccounts' | 'sessionContinuation' | 'continuationDefaultHistory' | 'autoSemanticAssessmentTimeoutMs' | 'autoSemanticAssessmentModel'> & {
|
|
96
|
+
autoSemanticAssessmentTimeoutMs?: number | LiveSetting<number>;
|
|
97
|
+
autoSemanticAssessmentModel?: string | LiveSetting<string>;
|
|
92
98
|
continuationDefaultHistory?: InlineConfig['continuationDefaultHistory'] | LiveSetting<ArrayLike<{
|
|
93
99
|
enabled: boolean;
|
|
94
100
|
changedAt: number;
|
|
@@ -107,7 +113,9 @@ export type LiveInlineConfig = Omit<InlineConfig, 'diagnosticsEnabled' | 'autoAl
|
|
|
107
113
|
searchRouting?: WebSearchRoutingConfig | LiveSetting<WebSearchRoutingConfig | undefined>;
|
|
108
114
|
temporaryRouteBackup?: string | LiveSetting<string | undefined>;
|
|
109
115
|
};
|
|
110
|
-
export type ResolvedInlineConfig = Omit<InlineConfig, 'diagnosticsEnabled' | 'autoAllocationDiagnosticsEnabled' | 'requestDiagnosticsEnabled' | 'searchModel' | 'searchRouting' | 'temporaryRouteBackup' | 'excludedModelIds' | 'highCostModelIds' | 'parentModelFollow' | 'followParentModel' | 'activeAccountId' | 'sessionAccounts' | 'sessionContinuation' | 'continuationDefaultHistory'> & {
|
|
116
|
+
export type ResolvedInlineConfig = Omit<InlineConfig, 'diagnosticsEnabled' | 'autoAllocationDiagnosticsEnabled' | 'requestDiagnosticsEnabled' | 'searchModel' | 'searchRouting' | 'temporaryRouteBackup' | 'excludedModelIds' | 'highCostModelIds' | 'parentModelFollow' | 'followParentModel' | 'activeAccountId' | 'sessionAccounts' | 'sessionContinuation' | 'continuationDefaultHistory' | 'autoSemanticAssessmentTimeoutMs' | 'autoSemanticAssessmentModel'> & {
|
|
117
|
+
autoSemanticAssessmentTimeoutMs: LiveSetting<number>;
|
|
118
|
+
autoSemanticAssessmentModel: LiveSetting<string>;
|
|
111
119
|
diagnosticsEnabled: LiveSetting<boolean>;
|
|
112
120
|
autoAllocationDiagnosticsEnabled: LiveSetting<boolean>;
|
|
113
121
|
requestDiagnosticsEnabled: LiveSetting<boolean>;
|
|
@@ -57,6 +57,7 @@ export declare const diagnosticsDomain: {
|
|
|
57
57
|
opportunities: number;
|
|
58
58
|
expectedSelections: number;
|
|
59
59
|
selections: number;
|
|
60
|
+
assessmentOutcome?: "disabled" | "unavailable" | "context-omitted" | "invalid-result" | "timeout" | "failed" | "local-known" | "local-unknown" | "semantic-known" | "semantic-unknown" | undefined;
|
|
60
61
|
}[];
|
|
61
62
|
noFitRows: {
|
|
62
63
|
day: number;
|
|
@@ -67,6 +68,7 @@ export declare const diagnosticsDomain: {
|
|
|
67
68
|
demand: "unknown" | "simple" | "routine" | "complex";
|
|
68
69
|
assessmentSource: "local" | "semantic";
|
|
69
70
|
decisions: number;
|
|
71
|
+
assessmentOutcome?: "disabled" | "unavailable" | "context-omitted" | "invalid-result" | "timeout" | "failed" | "local-known" | "local-unknown" | "semantic-known" | "semantic-unknown" | undefined;
|
|
70
72
|
}[];
|
|
71
73
|
observationStart: number | null;
|
|
72
74
|
observationEnd: number | null;
|
|
@@ -251,6 +251,18 @@ export declare const DiagnosticsSnapshotSchema: z.ZodObject<{
|
|
|
251
251
|
local: "local";
|
|
252
252
|
semantic: "semantic";
|
|
253
253
|
}>;
|
|
254
|
+
assessmentOutcome: z.ZodOptional<z.ZodEnum<{
|
|
255
|
+
disabled: "disabled";
|
|
256
|
+
unavailable: "unavailable";
|
|
257
|
+
"context-omitted": "context-omitted";
|
|
258
|
+
"invalid-result": "invalid-result";
|
|
259
|
+
timeout: "timeout";
|
|
260
|
+
failed: "failed";
|
|
261
|
+
"local-known": "local-known";
|
|
262
|
+
"local-unknown": "local-unknown";
|
|
263
|
+
"semantic-known": "semantic-known";
|
|
264
|
+
"semantic-unknown": "semantic-unknown";
|
|
265
|
+
}>>;
|
|
254
266
|
method: z.ZodEnum<{
|
|
255
267
|
"weighted-distribution": "weighted-distribution";
|
|
256
268
|
"only-candidate": "only-candidate";
|
|
@@ -288,6 +300,18 @@ export declare const DiagnosticsSnapshotSchema: z.ZodObject<{
|
|
|
288
300
|
local: "local";
|
|
289
301
|
semantic: "semantic";
|
|
290
302
|
}>;
|
|
303
|
+
assessmentOutcome: z.ZodOptional<z.ZodEnum<{
|
|
304
|
+
disabled: "disabled";
|
|
305
|
+
unavailable: "unavailable";
|
|
306
|
+
"context-omitted": "context-omitted";
|
|
307
|
+
"invalid-result": "invalid-result";
|
|
308
|
+
timeout: "timeout";
|
|
309
|
+
failed: "failed";
|
|
310
|
+
"local-known": "local-known";
|
|
311
|
+
"local-unknown": "local-unknown";
|
|
312
|
+
"semantic-known": "semantic-known";
|
|
313
|
+
"semantic-unknown": "semantic-unknown";
|
|
314
|
+
}>>;
|
|
291
315
|
decisions: z.ZodNumber;
|
|
292
316
|
}, z.core.$strict>>;
|
|
293
317
|
observationStart: z.ZodNullable<z.ZodNumber>;
|
|
@@ -577,6 +601,18 @@ export declare const DiagnosticsViewSchema: z.ZodObject<{
|
|
|
577
601
|
local: "local";
|
|
578
602
|
semantic: "semantic";
|
|
579
603
|
}>;
|
|
604
|
+
assessmentOutcome: z.ZodOptional<z.ZodEnum<{
|
|
605
|
+
disabled: "disabled";
|
|
606
|
+
unavailable: "unavailable";
|
|
607
|
+
"context-omitted": "context-omitted";
|
|
608
|
+
"invalid-result": "invalid-result";
|
|
609
|
+
timeout: "timeout";
|
|
610
|
+
failed: "failed";
|
|
611
|
+
"local-known": "local-known";
|
|
612
|
+
"local-unknown": "local-unknown";
|
|
613
|
+
"semantic-known": "semantic-known";
|
|
614
|
+
"semantic-unknown": "semantic-unknown";
|
|
615
|
+
}>>;
|
|
580
616
|
method: z.ZodEnum<{
|
|
581
617
|
"weighted-distribution": "weighted-distribution";
|
|
582
618
|
"only-candidate": "only-candidate";
|
|
@@ -614,6 +650,18 @@ export declare const DiagnosticsViewSchema: z.ZodObject<{
|
|
|
614
650
|
local: "local";
|
|
615
651
|
semantic: "semantic";
|
|
616
652
|
}>;
|
|
653
|
+
assessmentOutcome: z.ZodOptional<z.ZodEnum<{
|
|
654
|
+
disabled: "disabled";
|
|
655
|
+
unavailable: "unavailable";
|
|
656
|
+
"context-omitted": "context-omitted";
|
|
657
|
+
"invalid-result": "invalid-result";
|
|
658
|
+
timeout: "timeout";
|
|
659
|
+
failed: "failed";
|
|
660
|
+
"local-known": "local-known";
|
|
661
|
+
"local-unknown": "local-unknown";
|
|
662
|
+
"semantic-known": "semantic-known";
|
|
663
|
+
"semantic-unknown": "semantic-unknown";
|
|
664
|
+
}>>;
|
|
617
665
|
decisions: z.ZodNumber;
|
|
618
666
|
}, z.core.$strict>>;
|
|
619
667
|
observationStart: z.ZodNullable<z.ZodNumber>;
|
|
@@ -10,7 +10,7 @@ import type { RequestBudgetPolicy } from './request-budget.ts';
|
|
|
10
10
|
export type PreviewRouteConfig = Pick<PiAiProviderProfile, 'reasoning' | 'cacheRetention' | 'transport' | 'timeoutMs' | 'websocketConnectTimeoutMs' | 'streamIdleTimeoutMs' | 'maxRequestImageBytes' | 'requestImagePixelBudget' | 'requestImageMaxBytes' | 'retryPolicy'> & Pick<InlineConfig, 'accountModelTtlMs' | 'accountModelFailureCooldownMs'> & {
|
|
11
11
|
readonly streamLiveness?: boolean;
|
|
12
12
|
readonly chatRequestSettings?: () => Pick<InlineConfig, 'chatStreamIdleTimeoutMs' | 'chatStreamLiveness' | 'chatMaxRequestImageBytes' | 'responsesRequestCompression' | 'responsesOmitTemperature'>;
|
|
13
|
-
readonly accountModelSettings?: () => Pick<InlineConfig, 'accountModelTtlMs' | 'accountModelFailureCooldownMs' | 'excludedModelIds' | 'highCostModelIds' | 'parentModelFollow' | 'followParentModel' | 'autoSemanticAssessment' | 'autoAllocationEvidence'>;
|
|
13
|
+
readonly accountModelSettings?: () => Pick<InlineConfig, 'accountModelTtlMs' | 'accountModelFailureCooldownMs' | 'excludedModelIds' | 'highCostModelIds' | 'parentModelFollow' | 'followParentModel' | 'autoSemanticAssessment' | 'autoSemanticAssessmentTimeoutMs' | 'autoSemanticAssessmentModel' | 'autoAllocationEvidence'>;
|
|
14
14
|
readonly requestBudget?: Partial<RequestBudgetPolicy>;
|
|
15
15
|
readonly requestBudgetSettings?: () => Partial<RequestBudgetPolicy>;
|
|
16
16
|
};
|
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.
|
|
4
|
+
"version": "0.4.2-alpha.7",
|
|
5
5
|
"releaseNotes": "CHANGELOG.md",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public",
|