chore: include pre-built dist for github install

This commit is contained in:
Robin Mordasiewicz
2026-03-14 04:56:50 +00:00
parent a7f0a4cf46
commit bce8ff3a75
1011 changed files with 150081 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
export declare function detectThinkKeyword(text: string): boolean;
export declare function extractPromptText(parts: Array<{
type: string;
text?: string;
}>): string;
+23
View File
@@ -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>;
};
+4
View File
@@ -0,0 +1,4 @@
export * from "./detector";
export * from "./switcher";
export * from "./types";
export { clearThinkModeState, createThinkModeHook } from "./hook";
+19
View File
@@ -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;
+7
View File
@@ -0,0 +1,7 @@
export interface ThinkModeState {
requested: boolean;
modelSwitched: boolean;
variantSet: boolean;
providerID?: string;
modelID?: string;
}