chore: include pre-built dist for github install
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
import type { BackgroundManager } from "../../features/background-agent";
|
||||
interface Event {
|
||||
type: string;
|
||||
properties?: Record<string, unknown>;
|
||||
}
|
||||
interface EventInput {
|
||||
event: Event;
|
||||
}
|
||||
interface ChatMessageInput {
|
||||
sessionID: string;
|
||||
}
|
||||
interface ChatMessageOutput {
|
||||
parts: Array<{
|
||||
type: string;
|
||||
text?: string;
|
||||
[key: string]: unknown;
|
||||
}>;
|
||||
}
|
||||
/**
|
||||
* Background notification hook - handles event routing to BackgroundManager.
|
||||
*
|
||||
* Notifications are now delivered directly via session.prompt({ noReply })
|
||||
* from the manager, so this hook only needs to handle event routing.
|
||||
*/
|
||||
export declare function createBackgroundNotificationHook(manager: BackgroundManager): {
|
||||
"chat.message": (input: ChatMessageInput, output: ChatMessageOutput) => Promise<void>;
|
||||
event: ({ event }: EventInput) => Promise<void>;
|
||||
};
|
||||
export {};
|
||||
@@ -0,0 +1,2 @@
|
||||
export { createBackgroundNotificationHook } from "./hook";
|
||||
export type { BackgroundNotificationHookConfig } from "./types";
|
||||
@@ -0,0 +1,4 @@
|
||||
import type { BackgroundTask } from "../../features/background-agent";
|
||||
export interface BackgroundNotificationHookConfig {
|
||||
formatNotification?: (tasks: BackgroundTask[]) => string;
|
||||
}
|
||||
Reference in New Issue
Block a user