chore: include pre-built dist for github install
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export declare function extractLatestAssistantText(messages: unknown): string | null;
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
export declare const MULTIMODAL_LOOKER_AGENT: "multimodal-looker";
|
||||
export declare const LOOK_AT_DESCRIPTION = "Analyze media files (PDFs, images, diagrams) that require interpretation beyond raw text. Extracts specific information or summaries from documents, describes visual content. Use when you need analyzed/extracted data rather than literal file contents.";
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
export declare function needsConversion(mimeType: string): boolean;
|
||||
export declare function convertImageToJpeg(inputPath: string, mimeType: string): string;
|
||||
export declare function cleanupConvertedImage(filePath: string): void;
|
||||
export declare function convertBase64ImageToJpeg(base64Data: string, mimeType: string): {
|
||||
base64: string;
|
||||
tempFiles: string[];
|
||||
};
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
export * from "./types";
|
||||
export * from "./constants";
|
||||
export { createLookAt } from "./tools";
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import type { LookAtArgs } from "./types";
|
||||
export interface LookAtArgsWithAlias extends LookAtArgs {
|
||||
path?: string;
|
||||
}
|
||||
export declare function normalizeArgs(args: LookAtArgsWithAlias): LookAtArgs;
|
||||
export declare function validateArgs(args: LookAtArgs): string | null;
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
export declare function inferMimeTypeFromBase64(base64Data: string): string;
|
||||
export declare function inferMimeTypeFromFilePath(filePath: string): string;
|
||||
export declare function extractBase64Data(imageData: string): string;
|
||||
@@ -0,0 +1,11 @@
|
||||
import type { PluginInput } from "@opencode-ai/plugin";
|
||||
type AgentModel = {
|
||||
providerID: string;
|
||||
modelID: string;
|
||||
};
|
||||
type ResolvedAgentMetadata = {
|
||||
agentModel?: AgentModel;
|
||||
agentVariant?: string;
|
||||
};
|
||||
export declare function resolveMultimodalLookerAgentMetadata(ctx: PluginInput): Promise<ResolvedAgentMetadata>;
|
||||
export {};
|
||||
@@ -0,0 +1,4 @@
|
||||
import type { FallbackEntry } from "../../shared/model-requirements";
|
||||
import type { VisionCapableModel } from "../../plugin-state";
|
||||
export declare function isHardcodedMultimodalFallbackModel(model: VisionCapableModel): boolean;
|
||||
export declare function buildMultimodalLookerFallbackChain(visionCapableModels: VisionCapableModel[]): FallbackEntry[];
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import type { createOpencodeClient } from "@opencode-ai/sdk";
|
||||
type Client = ReturnType<typeof createOpencodeClient>;
|
||||
export interface PollOptions {
|
||||
pollIntervalMs?: number;
|
||||
timeoutMs?: number;
|
||||
}
|
||||
export declare function pollSessionUntilIdle(client: Client, sessionID: string, options?: PollOptions): Promise<void>;
|
||||
export {};
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
import { type PluginInput, type ToolDefinition } from "@opencode-ai/plugin";
|
||||
export { normalizeArgs, validateArgs } from "./look-at-arguments";
|
||||
export declare function createLookAt(ctx: PluginInput): ToolDefinition;
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
export interface LookAtArgs {
|
||||
file_path?: string;
|
||||
image_data?: string;
|
||||
goal: string;
|
||||
}
|
||||
Reference in New Issue
Block a user