dsh-github-copilot 0.4.0-alpha.97 → 0.4.0-alpha.99

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.
@@ -0,0 +1,36 @@
1
+ import { z } from 'zod';
2
+ export declare const AUTO_MODEL_INTENT_PROJECTION = "githubCopilotAutoModelIntent";
3
+ export declare const AutoModelIntentSchema: z.ZodObject<{
4
+ inherited: z.ZodNumber;
5
+ selection: z.ZodNullable<z.ZodObject<{
6
+ provider: z.ZodString;
7
+ model: z.ZodString;
8
+ }, z.core.$strict>>;
9
+ blocked: z.ZodBoolean;
10
+ }, z.core.$strict>;
11
+ export type AutoModelIntent = z.infer<typeof AutoModelIntentSchema>;
12
+ export declare function initialAutoModelIntent(inherited?: number): AutoModelIntent;
13
+ /** Request headers describe execution, not replacement of an explicit picker intent. */
14
+ export declare function foldAutoModelIntent(state: AutoModelIntent, event: unknown): AutoModelIntent;
15
+ export declare const autoModelIntentDefinition: {
16
+ key: string;
17
+ stateVersion: number;
18
+ stateSchema: z.ZodObject<{
19
+ inherited: z.ZodNumber;
20
+ selection: z.ZodNullable<z.ZodObject<{
21
+ provider: z.ZodString;
22
+ model: z.ZodString;
23
+ }, z.core.$strict>>;
24
+ blocked: z.ZodBoolean;
25
+ }, z.core.$strict>;
26
+ init: (_header: unknown, inherited?: number) => {
27
+ inherited: number;
28
+ selection: {
29
+ provider: string;
30
+ model: string;
31
+ } | null;
32
+ blocked: boolean;
33
+ };
34
+ apply: typeof foldAutoModelIntent;
35
+ };
36
+ //# sourceMappingURL=auto-model-intent.d.ts.map
@@ -33,7 +33,7 @@ export declare function assessmentInput(messages: readonly unknown[]): Assessmen
33
33
  export interface TaskAssessmentDependencies {
34
34
  enabled: boolean;
35
35
  signal: AbortSignal;
36
- classify?: (input: AssessmentInput, signal: AbortSignal, observe?: TaskClassifierObserver) => Promise<string>;
36
+ classify?: (input: AssessmentInput, signal: AbortSignal, observe?: TaskClassifierObserver, checkpoint?: () => void) => Promise<string>;
37
37
  diagnostic: (code: string) => void;
38
38
  timeoutMs?: number;
39
39
  }
@@ -5,5 +5,5 @@ import type { TaskClassifierObserver } from './auto-assessment-evidence.ts';
5
5
  export declare const TASK_CLASSIFIER_MAX_TOKENS = 128;
6
6
  export declare function taskClassifierModel(models: readonly AccountModelDescriptor[]): AccountModelDescriptor | undefined;
7
7
  /** One auxiliary concrete-model call; no Auto recursion, tools, history writes or retry loop. */
8
- export declare function classifyTaskWithAdapter(model: AccountModelDescriptor, input: AssessmentInput, signal: AbortSignal, stream: (request: GenerateOptions) => AsyncIterable<StreamChunk>, observe?: TaskClassifierObserver, reasoningOffSupported?: boolean): Promise<string>;
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
@@ -44,6 +44,8 @@ export interface AccountProviderGuard extends PreviewProviderGuard {
44
44
  readonly retrySignal?: AbortSignal;
45
45
  /** Per-dispatch admission after native context conversion, before starting a model wire. */
46
46
  inspectRequest?(model: Model<Api>, context: TranscriptContext, options?: StreamOptions): void;
47
+ /** Optional auxiliary-call deadline fence immediately before native Fetch dispatch. */
48
+ requestCheckpoint?(): void;
47
49
  assertEntitled(credential: GitHubCopilotOAuthCredential, modelId: string): void;
48
50
  }
49
51
  /** The independent prompt limit is retained for the route's budget guard, not folded into context capacity. */
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.0-alpha.97",
4
+ "version": "0.4.0-alpha.99",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "registry": "https://registry.npmjs.org/",