@shuffleio/shuffle-mcps 0.0.9 → 0.0.11

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
@@ -458,6 +458,24 @@ interface AgentUIProps {
458
458
  submitTooltip?: string;
459
459
  /** Custom icon for the submit button. */
460
460
  submitIcon?: React$1.ReactNode;
461
+ /**
462
+ * When provided, the submit button + Cmd/Ctrl+Enter call this instead of
463
+ * running the agent. Used for "edit existing scheduled workflow" mode where
464
+ * the same starter UI is reused for editing the prompt + apps.
465
+ */
466
+ submitOverride?: (info: {
467
+ input: string;
468
+ apps: Array<{
469
+ name: string;
470
+ id?: string;
471
+ icon?: string;
472
+ }>;
473
+ }) => void | Promise<void>;
474
+ /** When set, renders the submit control as a wider labelled button instead of the icon-only send button. */
475
+ submitLabel?: string;
476
+ /** Force-disable the schedule (clock) button. Optional tooltip override. */
477
+ disableSchedule?: boolean;
478
+ disableScheduleTooltip?: string;
461
479
  /** Placeholder for the post-finish continuation field. */
462
480
  continuationPlaceholder?: string;
463
481
  /** Read `?execution_id` & `?authorization` from window URL on mount. */
@@ -507,6 +525,11 @@ interface AgentUIProps {
507
525
  onSchedule?: (info: {
508
526
  cron: string;
509
527
  input: string;
528
+ apps?: Array<{
529
+ name: string;
530
+ id?: string;
531
+ icon?: string;
532
+ }>;
510
533
  onStep?: (event: {
511
534
  id: 'name' | 'workflow' | 'schedule';
512
535
  state: 'active' | 'done' | 'error';
@@ -659,9 +682,11 @@ interface AgentActivityParams {
659
682
  apiBaseUrl?: string;
660
683
  /** Optional Shuffle Org ID — sent as the `Org-Id` header. */
661
684
  orgId?: string;
685
+ /** Workflow ID to search. Defaults to the synthetic 'AGENT' grouping. */
686
+ workflowId?: string;
662
687
  }
663
688
  /**
664
- * Search agent workflow executions (workflow_id = "AGENT").
689
+ * Search agent workflow executions (workflow_id = "AGENT" by default).
665
690
  */
666
691
  declare const searchAgentActivity: (params?: AgentActivityParams) => Promise<AgentActivityResponse>;
667
692
 
@@ -674,6 +699,16 @@ interface AgentActivityListProps {
674
699
  orgId?: string;
675
700
  /** Called when a run row is clicked. */
676
701
  onRunClick?: (run: AgentRun) => void;
702
+ /** Called when "Edit" is clicked on a selected scheduled workflow. */
703
+ onEditWorkflow?: (info: {
704
+ workflowId: string;
705
+ name: string;
706
+ prompt: string;
707
+ apps: Array<{
708
+ name: string;
709
+ id?: string;
710
+ }>;
711
+ }) => void;
677
712
  /** Show the search box. Default: true. */
678
713
  showSearchBar?: boolean;
679
714
  /** Show the status filter chips. Default: true. */
@@ -693,7 +728,7 @@ interface AgentActivityListProps {
693
728
  /** Style overrides for each individual run row. */
694
729
  rowSx?: SxProps<Theme>;
695
730
  }
696
- declare const AgentActivityList: ({ apiKey, apiBaseUrl, orgId, onRunClick, showSearchBar, showStatusChips, limit, emptyTitle, emptySubtitle, className, sx, toolbarSx, rowSx, }: AgentActivityListProps) => react_jsx_runtime.JSX.Element;
731
+ declare const AgentActivityList: ({ apiKey, apiBaseUrl, orgId, onRunClick, onEditWorkflow, showSearchBar, showStatusChips, limit, emptyTitle, emptySubtitle, className, sx, toolbarSx, rowSx, }: AgentActivityListProps) => react_jsx_runtime.JSX.Element;
697
732
 
698
733
  interface AgentExecutionDrawerProps {
699
734
  open: boolean;
package/dist/index.d.ts CHANGED
@@ -458,6 +458,24 @@ interface AgentUIProps {
458
458
  submitTooltip?: string;
459
459
  /** Custom icon for the submit button. */
460
460
  submitIcon?: React$1.ReactNode;
461
+ /**
462
+ * When provided, the submit button + Cmd/Ctrl+Enter call this instead of
463
+ * running the agent. Used for "edit existing scheduled workflow" mode where
464
+ * the same starter UI is reused for editing the prompt + apps.
465
+ */
466
+ submitOverride?: (info: {
467
+ input: string;
468
+ apps: Array<{
469
+ name: string;
470
+ id?: string;
471
+ icon?: string;
472
+ }>;
473
+ }) => void | Promise<void>;
474
+ /** When set, renders the submit control as a wider labelled button instead of the icon-only send button. */
475
+ submitLabel?: string;
476
+ /** Force-disable the schedule (clock) button. Optional tooltip override. */
477
+ disableSchedule?: boolean;
478
+ disableScheduleTooltip?: string;
461
479
  /** Placeholder for the post-finish continuation field. */
462
480
  continuationPlaceholder?: string;
463
481
  /** Read `?execution_id` & `?authorization` from window URL on mount. */
@@ -507,6 +525,11 @@ interface AgentUIProps {
507
525
  onSchedule?: (info: {
508
526
  cron: string;
509
527
  input: string;
528
+ apps?: Array<{
529
+ name: string;
530
+ id?: string;
531
+ icon?: string;
532
+ }>;
510
533
  onStep?: (event: {
511
534
  id: 'name' | 'workflow' | 'schedule';
512
535
  state: 'active' | 'done' | 'error';
@@ -659,9 +682,11 @@ interface AgentActivityParams {
659
682
  apiBaseUrl?: string;
660
683
  /** Optional Shuffle Org ID — sent as the `Org-Id` header. */
661
684
  orgId?: string;
685
+ /** Workflow ID to search. Defaults to the synthetic 'AGENT' grouping. */
686
+ workflowId?: string;
662
687
  }
663
688
  /**
664
- * Search agent workflow executions (workflow_id = "AGENT").
689
+ * Search agent workflow executions (workflow_id = "AGENT" by default).
665
690
  */
666
691
  declare const searchAgentActivity: (params?: AgentActivityParams) => Promise<AgentActivityResponse>;
667
692
 
@@ -674,6 +699,16 @@ interface AgentActivityListProps {
674
699
  orgId?: string;
675
700
  /** Called when a run row is clicked. */
676
701
  onRunClick?: (run: AgentRun) => void;
702
+ /** Called when "Edit" is clicked on a selected scheduled workflow. */
703
+ onEditWorkflow?: (info: {
704
+ workflowId: string;
705
+ name: string;
706
+ prompt: string;
707
+ apps: Array<{
708
+ name: string;
709
+ id?: string;
710
+ }>;
711
+ }) => void;
677
712
  /** Show the search box. Default: true. */
678
713
  showSearchBar?: boolean;
679
714
  /** Show the status filter chips. Default: true. */
@@ -693,7 +728,7 @@ interface AgentActivityListProps {
693
728
  /** Style overrides for each individual run row. */
694
729
  rowSx?: SxProps<Theme>;
695
730
  }
696
- declare const AgentActivityList: ({ apiKey, apiBaseUrl, orgId, onRunClick, showSearchBar, showStatusChips, limit, emptyTitle, emptySubtitle, className, sx, toolbarSx, rowSx, }: AgentActivityListProps) => react_jsx_runtime.JSX.Element;
731
+ declare const AgentActivityList: ({ apiKey, apiBaseUrl, orgId, onRunClick, onEditWorkflow, showSearchBar, showStatusChips, limit, emptyTitle, emptySubtitle, className, sx, toolbarSx, rowSx, }: AgentActivityListProps) => react_jsx_runtime.JSX.Element;
697
732
 
698
733
  interface AgentExecutionDrawerProps {
699
734
  open: boolean;