mirror of
https://github.com/harivansh-afk/clanker-agent.git
synced 2026-04-19 22:01:39 +00:00
pull into local
This commit is contained in:
parent
dd0c89d8aa
commit
d0f85b30cc
50 changed files with 26814 additions and 86 deletions
46
packages/coding-agent/companion-out/export-html/index.d.ts
vendored
Normal file
46
packages/coding-agent/companion-out/export-html/index.d.ts
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
import type { AgentState } from "@mariozechner/companion-agent-core";
|
||||
import { SessionManager } from "../session-manager.js";
|
||||
/**
|
||||
* Interface for rendering custom tools to HTML.
|
||||
* Used by agent-session to pre-render extension tool output.
|
||||
*/
|
||||
export interface ToolHtmlRenderer {
|
||||
/** Render a tool call to HTML. Returns undefined if tool has no custom renderer. */
|
||||
renderCall(toolName: string, args: unknown): string | undefined;
|
||||
/** Render a tool result to HTML. Returns undefined if tool has no custom renderer. */
|
||||
renderResult(
|
||||
toolName: string,
|
||||
result: Array<{
|
||||
type: string;
|
||||
text?: string;
|
||||
data?: string;
|
||||
mimeType?: string;
|
||||
}>,
|
||||
details: unknown,
|
||||
isError: boolean,
|
||||
): string | undefined;
|
||||
}
|
||||
export interface ExportOptions {
|
||||
outputPath?: string;
|
||||
themeName?: string;
|
||||
/** Optional tool renderer for custom tools */
|
||||
toolRenderer?: ToolHtmlRenderer;
|
||||
}
|
||||
/**
|
||||
* Export session to HTML using SessionManager and AgentState.
|
||||
* Used by TUI's /export command.
|
||||
*/
|
||||
export declare function exportSessionToHtml(
|
||||
sm: SessionManager,
|
||||
state?: AgentState,
|
||||
options?: ExportOptions | string,
|
||||
): Promise<string>;
|
||||
/**
|
||||
* Export session file to HTML (standalone, without AgentState).
|
||||
* Used by CLI for exporting arbitrary session files.
|
||||
*/
|
||||
export declare function exportFromFile(
|
||||
inputPath: string,
|
||||
options?: ExportOptions | string,
|
||||
): Promise<string>;
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue