autosnippet
Version:
Extract code patterns into a knowledge base for AI coding assistants
25 lines (24 loc) • 706 B
TypeScript
/**
* LarkNotifier — Lark notification transport
*
* Extracted from task.ts. Sends task progress notifications via API Server → Lark.
* All methods are non-blocking and fire-and-forget.
*
* @module infrastructure/notification/LarkNotifier
*/
interface NotifyArgs {
id?: string;
title?: string;
reason?: string;
[key: string]: unknown;
}
interface NotifyResult {
success: boolean;
data?: unknown;
}
/**
* Send task progress notification to Lark (async, non-blocking).
* Fire-and-forget — failures are logged to stderr but never throw.
*/
export declare function notifyTaskProgress(operation: string, args: NotifyArgs, result: NotifyResult): Promise<void>;
export {};