UNPKG

knowhub

Version:

Synchronize AI coding–agent knowledge files (rules, templates, guidelines) across your project.

29 lines • 1.02 kB
import type { Plugin, PluginConfigSchema, PluginContext, PluginResult } from "../types.js"; /** * Configuration for the HTTP plugin */ export interface HttpPluginConfig { /** HTTP(S) URL to fetch */ url: string; /** Optional custom headers */ headers?: Record<string, string>; /** Request timeout in milliseconds (default: 30000) */ timeout?: number; /** HTTP method (default: GET) */ method?: string; /** Request body for POST/PUT requests */ body?: string; } /** * Plugin for handling HTTP(S) resources * This maintains backward compatibility with existing `url` resources */ export declare class HttpPlugin implements Plugin { readonly name = "http"; readonly version = "1.0.0"; readonly description = "Fetch files from HTTP(S) URLs with advanced features"; readonly schema: PluginConfigSchema; validate(config: unknown): Promise<void>; fetch(config: unknown, context: PluginContext): Promise<PluginResult>; } //# sourceMappingURL=http.d.ts.map