/** * HumancyPlugin - Main plugin class * * Implements the AgencyPlugin interface with lifecycle hooks. */ import type { AgencyPlugin, AgencyCoreAPI, PluginManifest } from '@generacy-ai/agency'; import { ConnectionModeDetector } from './connection/index.js'; import { DecisionStore } from './storage/index.js'; import { HumancyHttpClient } from './http/index.js'; /** * Humancy Plugin for human-agent interaction * * Provides tools for agents to request human input: * - humancy.ask_question: Freeform questions * - humancy.request_review: Artifact review * - humancy.request_decision: Structured options (with three-layer support) * - humancy.notify: Fire-and-forget notifications * - humancy.get_decision_outcome: Retrieve decision records * - humancy.report_decision_result: Report decision outcomes */ export declare class HumancyPlugin implements AgencyPlugin { readonly manifest: PluginManifest; private coreAPI?; private detector; private decisionStore; private httpClient?; private cleanups; constructor(); /** * Initialize the plugin with core API access */ initialize(core: AgencyCoreAPI): Promise; /** * Clean shutdown of the plugin */ shutdown(): Promise; /** * Handle mode changes */ onModeChange?(_mode: string): void; /** * Get the connection detector for testing/status */ getDetector(): ConnectionModeDetector; /** * Get the decision store for testing */ getDecisionStore(): DecisionStore; /** * Get the HTTP client for testing (cloud mode only) */ getHttpClient(): HumancyHttpClient | undefined; } /** * Create and export the plugin instance */ export declare function createHumancyPlugin(): HumancyPlugin; //# sourceMappingURL=plugin.d.ts.map