chore: include pre-built dist for github install
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
import type { BackgroundManager } from "../../features/background-agent";
|
||||
type BabysittingConfig = {
|
||||
timeout_ms?: number;
|
||||
};
|
||||
type BabysitterContext = {
|
||||
directory: string;
|
||||
client: {
|
||||
session: {
|
||||
messages: (args: {
|
||||
path: {
|
||||
id: string;
|
||||
};
|
||||
}) => Promise<{
|
||||
data?: unknown;
|
||||
} | unknown[]>;
|
||||
prompt: (args: {
|
||||
path: {
|
||||
id: string;
|
||||
};
|
||||
body: {
|
||||
parts: Array<{
|
||||
type: "text";
|
||||
text: string;
|
||||
}>;
|
||||
agent?: string;
|
||||
model?: {
|
||||
providerID: string;
|
||||
modelID: string;
|
||||
};
|
||||
tools?: Record<string, boolean>;
|
||||
};
|
||||
query?: {
|
||||
directory?: string;
|
||||
};
|
||||
}) => Promise<unknown>;
|
||||
promptAsync: (args: {
|
||||
path: {
|
||||
id: string;
|
||||
};
|
||||
body: {
|
||||
parts: Array<{
|
||||
type: "text";
|
||||
text: string;
|
||||
}>;
|
||||
agent?: string;
|
||||
model?: {
|
||||
providerID: string;
|
||||
modelID: string;
|
||||
};
|
||||
tools?: Record<string, boolean>;
|
||||
};
|
||||
query?: {
|
||||
directory?: string;
|
||||
};
|
||||
}) => Promise<unknown>;
|
||||
};
|
||||
};
|
||||
};
|
||||
type BabysitterOptions = {
|
||||
backgroundManager: Pick<BackgroundManager, "getTasksByParentSession">;
|
||||
config?: BabysittingConfig;
|
||||
};
|
||||
export declare function createUnstableAgentBabysitterHook(ctx: BabysitterContext, options: BabysitterOptions): {
|
||||
event: ({ event }: {
|
||||
event: {
|
||||
type: string;
|
||||
properties?: unknown;
|
||||
};
|
||||
}) => Promise<void>;
|
||||
};
|
||||
export {};
|
||||
Reference in New Issue
Block a user