@libxai/board 1.9.3 → 1.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -334,8 +334,14 @@ interface GanttAIAssistantConfig {
334
334
  placeholder?: string;
335
335
  /** Position of the chat button */
336
336
  position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
337
- /** Handler for AI commands - should return task updates */
338
- onCommand?: (command: string, tasks: Task[]) => Promise<AICommandResult>;
337
+ /** Handler for AI commands - should return task updates.
338
+ * `history` is the recent conversation (oldest→newest, excluding the current
339
+ * command) so the assistant can resolve follow-ups like "ahora movelas un
340
+ * día más" / "deshacé eso". */
341
+ onCommand?: (command: string, tasks: Task[], history?: Array<{
342
+ role: 'user' | 'assistant';
343
+ content: string;
344
+ }>) => Promise<AICommandResult>;
339
345
  /** Custom suggestions for the command palette */
340
346
  suggestions?: string[];
341
347
  /** Maximum messages to keep in memory history */
package/dist/index.d.ts CHANGED
@@ -334,8 +334,14 @@ interface GanttAIAssistantConfig {
334
334
  placeholder?: string;
335
335
  /** Position of the chat button */
336
336
  position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
337
- /** Handler for AI commands - should return task updates */
338
- onCommand?: (command: string, tasks: Task[]) => Promise<AICommandResult>;
337
+ /** Handler for AI commands - should return task updates.
338
+ * `history` is the recent conversation (oldest→newest, excluding the current
339
+ * command) so the assistant can resolve follow-ups like "ahora movelas un
340
+ * día más" / "deshacé eso". */
341
+ onCommand?: (command: string, tasks: Task[], history?: Array<{
342
+ role: 'user' | 'assistant';
343
+ content: string;
344
+ }>) => Promise<AICommandResult>;
339
345
  /** Custom suggestions for the command palette */
340
346
  suggestions?: string[];
341
347
  /** Maximum messages to keep in memory history */