@libxai/board 0.13.12 → 0.14.0

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
@@ -1524,6 +1524,40 @@ interface GanttScrollBehavior {
1524
1524
  */
1525
1525
  allowScrollWhenOutOfBounds?: boolean;
1526
1526
  }
1527
+ /**
1528
+ * AI Assistant configuration for natural language task editing
1529
+ * @version 0.14.0
1530
+ */
1531
+ interface GanttAIAssistantConfig {
1532
+ /** Enable AI assistant (default: false) */
1533
+ enabled?: boolean;
1534
+ /** Custom placeholder text */
1535
+ placeholder?: string;
1536
+ /** Position of the chat button */
1537
+ position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
1538
+ /** Handler for AI commands - should return task updates */
1539
+ onCommand?: (command: string, tasks: Task[]) => Promise<AICommandResult>;
1540
+ /** Custom suggestions for the command palette */
1541
+ suggestions?: string[];
1542
+ /** Maximum messages to keep in history */
1543
+ maxHistory?: number;
1544
+ }
1545
+ /**
1546
+ * AI Command result interface
1547
+ * @version 0.14.0
1548
+ */
1549
+ interface AICommandResult {
1550
+ type: 'move_task' | 'resize_task' | 'rename_task' | 'delete_task' | 'create_task' | 'link_tasks' | 'unlink_tasks' | 'assign_task' | 'set_progress' | 'set_status' | 'split_task' | 'group_tasks' | 'unknown';
1551
+ taskId?: string;
1552
+ taskName?: string;
1553
+ updates?: Partial<Task>;
1554
+ newTask?: Task;
1555
+ dependencyFrom?: string;
1556
+ dependencyTo?: string;
1557
+ message: string;
1558
+ success: boolean;
1559
+ error?: string;
1560
+ }
1527
1561
  interface GanttConfig {
1528
1562
  theme?: Theme$1;
1529
1563
  timeScale?: TimeScale;
@@ -1536,6 +1570,7 @@ interface GanttConfig {
1536
1570
  initials: string;
1537
1571
  color: string;
1538
1572
  }>;
1573
+ aiAssistant?: GanttAIAssistantConfig;
1539
1574
  templates?: GanttTemplates;
1540
1575
  permissions?: GanttPermissions;
1541
1576
  disableScrollSync?: boolean;
package/dist/index.d.ts CHANGED
@@ -1524,6 +1524,40 @@ interface GanttScrollBehavior {
1524
1524
  */
1525
1525
  allowScrollWhenOutOfBounds?: boolean;
1526
1526
  }
1527
+ /**
1528
+ * AI Assistant configuration for natural language task editing
1529
+ * @version 0.14.0
1530
+ */
1531
+ interface GanttAIAssistantConfig {
1532
+ /** Enable AI assistant (default: false) */
1533
+ enabled?: boolean;
1534
+ /** Custom placeholder text */
1535
+ placeholder?: string;
1536
+ /** Position of the chat button */
1537
+ position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
1538
+ /** Handler for AI commands - should return task updates */
1539
+ onCommand?: (command: string, tasks: Task[]) => Promise<AICommandResult>;
1540
+ /** Custom suggestions for the command palette */
1541
+ suggestions?: string[];
1542
+ /** Maximum messages to keep in history */
1543
+ maxHistory?: number;
1544
+ }
1545
+ /**
1546
+ * AI Command result interface
1547
+ * @version 0.14.0
1548
+ */
1549
+ interface AICommandResult {
1550
+ type: 'move_task' | 'resize_task' | 'rename_task' | 'delete_task' | 'create_task' | 'link_tasks' | 'unlink_tasks' | 'assign_task' | 'set_progress' | 'set_status' | 'split_task' | 'group_tasks' | 'unknown';
1551
+ taskId?: string;
1552
+ taskName?: string;
1553
+ updates?: Partial<Task>;
1554
+ newTask?: Task;
1555
+ dependencyFrom?: string;
1556
+ dependencyTo?: string;
1557
+ message: string;
1558
+ success: boolean;
1559
+ error?: string;
1560
+ }
1527
1561
  interface GanttConfig {
1528
1562
  theme?: Theme$1;
1529
1563
  timeScale?: TimeScale;
@@ -1536,6 +1570,7 @@ interface GanttConfig {
1536
1570
  initials: string;
1537
1571
  color: string;
1538
1572
  }>;
1573
+ aiAssistant?: GanttAIAssistantConfig;
1539
1574
  templates?: GanttTemplates;
1540
1575
  permissions?: GanttPermissions;
1541
1576
  disableScrollSync?: boolean;