mirror of https://github.com/buster-so/buster.git
17 lines
573 B
TypeScript
17 lines
573 B
TypeScript
|
import type { CreateDashboardsAgentContext, CreateDashboardsInput } from './create-dashboards-tool';
|
||
|
|
||
|
export function createCreateDashboardsDelta<
|
||
|
TAgentContext extends CreateDashboardsAgentContext = CreateDashboardsAgentContext,
|
||
|
>(context: TAgentContext) {
|
||
|
return async (_delta: Partial<CreateDashboardsInput>) => {
|
||
|
const messageId = context?.messageId;
|
||
|
|
||
|
console.info('[create-dashboards] Input delta received', {
|
||
|
hasFiles: !!_delta.files,
|
||
|
fileCount: _delta.files?.length,
|
||
|
messageId,
|
||
|
timestamp: new Date().toISOString(),
|
||
|
});
|
||
|
};
|
||
|
}
|