dsh-github-copilot 0.4.2-alpha.6 → 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 +1 -1
- package/CHANGELOG.md +18 -0
- package/README.md +11 -7
- package/README.zh.md +11 -7
- package/deployment-baseline.json +8 -2
- package/docs/auto-iteration-review.json +5 -5
- package/docs/auto-task-routing.md +64 -5
- package/docs/plugin-diagnostics.md +4 -2
- package/lib/client.js +1 -1
- package/lib/client.js.map +1 -1
- package/lib/index.js +4004 -3988
- 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/preview-route.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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>;
|
|
@@ -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",
|