chore: include pre-built dist for github install
This commit is contained in:
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
export declare function detectThinkKeyword(text: string): boolean;
|
||||
export declare function extractPromptText(parts: Array<{
|
||||
type: string;
|
||||
text?: string;
|
||||
}>): string;
|
||||
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
export declare function clearThinkModeState(sessionID: string): void;
|
||||
export declare function createThinkModeHook(): {
|
||||
"chat.message": (input: {
|
||||
sessionID: string;
|
||||
model?: {
|
||||
providerID: string;
|
||||
modelID: string;
|
||||
};
|
||||
}, output: {
|
||||
message: Record<string, unknown>;
|
||||
parts: Array<{
|
||||
type: string;
|
||||
text?: string;
|
||||
[key: string]: unknown;
|
||||
}>;
|
||||
}) => Promise<void>;
|
||||
event: ({ event }: {
|
||||
event: {
|
||||
type: string;
|
||||
properties?: unknown;
|
||||
};
|
||||
}) => Promise<void>;
|
||||
};
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
export * from "./detector";
|
||||
export * from "./switcher";
|
||||
export * from "./types";
|
||||
export { clearThinkModeState, createThinkModeHook } from "./hook";
|
||||
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Think Mode Switcher
|
||||
*
|
||||
* This module handles "thinking mode" activation for reasoning-capable models.
|
||||
* When a user includes "think" keywords in their prompt, models are upgraded to
|
||||
* their high-reasoning variants with extended thinking budgets.
|
||||
*
|
||||
* PROVIDER ALIASING:
|
||||
* GitHub Copilot acts as a proxy provider that routes to underlying providers
|
||||
* (Anthropic, Google, OpenAI). We resolve the proxy to the actual provider
|
||||
* based on model name patterns, allowing GitHub Copilot to inherit thinking
|
||||
* configurations without duplication.
|
||||
*
|
||||
* NORMALIZATION:
|
||||
* Model IDs are normalized (dots → hyphens in version numbers) to handle API
|
||||
* inconsistencies defensively while maintaining backwards compatibility.
|
||||
*/
|
||||
export declare function getHighVariant(modelID: string): string | null;
|
||||
export declare function isAlreadyHighVariant(modelID: string): boolean;
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
export interface ThinkModeState {
|
||||
requested: boolean;
|
||||
modelSwitched: boolean;
|
||||
variantSet: boolean;
|
||||
providerID?: string;
|
||||
modelID?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user