@libxai/board 1.9.2 → 1.9.4

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 */
@@ -4233,6 +4239,9 @@ interface ListViewCallbacks {
4233
4239
  onReportBlocker?: (task: Task) => void;
4234
4240
  /** Handler for copying task link to clipboard */
4235
4241
  onCopyTaskLink?: (task: Task) => void;
4242
+ /** Drag-fill (Excel-style): a value (assignees / date) dragged from one cell
4243
+ * was applied to many tasks at once. */
4244
+ onBulkFill?: (taskIds: string[], column: 'assignees' | 'startDate' | 'endDate', value: any) => void;
4236
4245
  }
4237
4246
  /**
4238
4247
  * Available user for assignment
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 */
@@ -4233,6 +4239,9 @@ interface ListViewCallbacks {
4233
4239
  onReportBlocker?: (task: Task) => void;
4234
4240
  /** Handler for copying task link to clipboard */
4235
4241
  onCopyTaskLink?: (task: Task) => void;
4242
+ /** Drag-fill (Excel-style): a value (assignees / date) dragged from one cell
4243
+ * was applied to many tasks at once. */
4244
+ onBulkFill?: (taskIds: string[], column: 'assignees' | 'startDate' | 'endDate', value: any) => void;
4236
4245
  }
4237
4246
  /**
4238
4247
  * Available user for assignment