@shuffleio/shuffle-mcps 0.0.18 → 0.0.21

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.mts CHANGED
@@ -5,21 +5,16 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  /**
6
6
  * ShuffleMcpThemeProvider
7
7
  *
8
- * Mirror of Shuffle-Core's theme provider, scoped for the Shuffle-MCPs lib.
9
- * Two jobs:
10
- *
11
- * 1. Pin MUI defaults (`size="small"`) so individual call sites never need to
12
- * thread sizing through.
13
- *
14
- * 2. Bridge the host app's light/dark scheme into MUI:
15
- * - `mode="auto"` (default) — track the `.dark` class on `<html>` and flip
16
- * MUI `palette.mode` accordingly. Tokens (`hsl(var(--…))`) flip with the
17
- * same class so nothing else needs to know about the theme.
18
- * - `mode="light" | "dark"` — pin the wrapped subtree to that scheme. We
19
- * render a `<div className="dark">` (or remove it) so Tailwind dark
20
- * variants and CSS-variable overrides scope to this subtree only —
21
- * useful when embedding MCPs inside a host that doesn't manage `.dark`
22
- * on `<html>`.
8
+ * - Pins MUI defaults (`size="small"`) so call sites never thread sizing.
9
+ * - Bridges the host app's light/dark scheme into MUI (`palette.mode`) and
10
+ * into our HSL token system (the scoped `.dark` class).
11
+ * - Exposes a React Context (`ShuffleMcpThemeContext`) so internal raw
12
+ * components — and views that compose other library components without
13
+ * going through the public wrapped exports — see the resolved mode.
14
+ * - Stamps the scope className onto MUI portaled paper (Drawer, Dialog,
15
+ * Menu, Popover, Tooltip), so portals rendered into <body> still resolve
16
+ * our `hsl(var(--…))` tokens against the pinned theme instead of the
17
+ * host's `<html>`.
23
18
  *
24
19
  * Wrap your MCP usage at any level:
25
20
  *
@@ -33,9 +28,9 @@ interface ShuffleMcpThemeProviderProps {
33
28
  children?: React$1.ReactNode;
34
29
  /**
35
30
  * Color mode for the wrapped subtree.
36
- * - `"dark"` (default) — render exactly like Shuffle Security standalone.
37
- * - `"auto"` — follow the host page's `.dark` class on `<html>`.
38
- * - `"light"` / `"dark"` — pin the subtree to that scheme via a wrapping div.
31
+ * - `"auto"` (default) — follow the host page's `.dark` class on `<html>`.
32
+ * - `"light"` / `"dark"` — pin the subtree (and any portals rendered from
33
+ * within it) to that scheme.
39
34
  */
40
35
  mode?: ShuffleMcpColorMode;
41
36
  }
@@ -765,14 +760,23 @@ interface AgentsViewProps extends ShuffleHostProps {
765
760
  maxWidth?: number;
766
761
  /**
767
762
  * Optional handler for the "Choose LLM" chip. Forwarded to the embedded
768
- * AgentUI. When omitted, AgentUI dispatches its legacy window event
769
- * (handled by the bundled AgentRunDrawer in Shuffle Security). On other
770
- * hosts, pass this prop to wire your own LLM picker — or set
763
+ * AgentUI. When omitted, AgentsView mounts its own internal
764
+ * `AgentRunDrawer` and opens it on the Local LLM tab — so the chip
765
+ * always does *something*, even on hosts that haven't wired a picker.
766
+ * Pass this prop to override with your own LLM picker, or set
771
767
  * `hideChooseLLM` to remove the chip entirely.
772
768
  */
773
769
  onChooseLLM?: () => void;
774
770
  /** Hide the "Choose LLM" chip in the embedded AgentUI. */
775
771
  hideChooseLLM?: boolean;
772
+ /**
773
+ * Content rendered inside the built-in AgentRunDrawer's Local LLM tab
774
+ * when no `onChooseLLM` is provided. Use to plug in your own local LLM
775
+ * config form. When omitted, a minimal built-in placeholder is shown.
776
+ */
777
+ localLLMSlot?: React.ReactNode;
778
+ /** Content for the built-in AgentRunDrawer's Permissions tab. Optional. */
779
+ permissionsSlot?: React.ReactNode;
776
780
  }
777
781
 
778
782
  /**
@@ -1329,6 +1333,15 @@ declare const UsageBar: React$1.FC<UsageBarProps>;
1329
1333
  * No host-app `@/` imports remain inside this folder (assets aside).
1330
1334
  */
1331
1335
 
1336
+ /**
1337
+ * Every exported component accepts an optional `theme` prop:
1338
+ * - `"light"` / `"dark"` — pin the subtree to that scheme
1339
+ * - `"system"` (default) — follow the host page's `.dark` class on `<html>`
1340
+ *
1341
+ * `colorMode` is preserved as a legacy alias (`"auto"` == `"system"`).
1342
+ */
1343
+ type ShuffleTheme = 'light' | 'dark' | 'system';
1344
+
1332
1345
  declare const ShuffleMCP: React$1.ForwardRefExoticComponent<any>;
1333
1346
 
1334
1347
  declare const AppDetailDrawer: React$1.ComponentType<any>;
@@ -1355,4 +1368,4 @@ declare const AgentsView: React$1.ComponentType<any>;
1355
1368
 
1356
1369
  declare const AgentRunDiagnosisBanner: React$1.ComponentType<any>;
1357
1370
 
1358
- export { API_CONFIG, AgentActivityList, type AgentActivityListProps, type AgentActivityParams, type AgentActivityResponse, type AgentDecision, AgentExecutionDrawer, type AgentExecutionDrawerProps, AgentIcon, type AgentRun, AgentRunDiagnosisBanner, AgentRunDrawer, type AgentRunDrawerProps, type AgentRunDrawerTab, type AgentRunResult, AgentUI, type AgentUIApp, type AgentUIProps, AgentsView, type AgentsViewProps, AiAgentPromptsEditor, type AiAgentPromptsEditorProps, type AlgoliaSearchApp, type ApiAuthEntry, AppAuthCard, type AppAuthCardProps, AppAuthConfig, AppAuthSection, type AppAuthSectionProps, type AppAuthState, type AppAuthentication, AppDetailDrawer, AppDetailProvider, type AppLookupResult, AppSearchDrawer, type AppSelectedEvent, AppTitleHeader, type AppTitleHeaderProps, type AuthStatus, CASES_PATTERNS, COMMUNICATION_PATTERNS_NAMES, type CategoryAutomation, type CategoryConfig, type CustomStyles, DATASTORE_CATEGORIES, type DatastoreDiagnostics, type DatastoreItem, type DatastoreResponse, type DiagnosableRun, type DiagnosisEvidence, EDR_PATTERNS, EMAIL_APP_PATTERNS, FORWARD_TICKETS_WORKFLOW_NAME, type FetchAppsOptions, INGEST_TICKETS_WORKFLOW_NAME, type IngestionCategory, IntegrationStatus, type OutputDiagnosis, type ResolvedApp, SIEM_PATTERNS, type ShuffleHostProps, ShuffleMCP, type ShuffleMCPHandle, type ShuffleMCPProps, type ShuffleMcpColorMode, ShuffleMcpThemeProvider, type ShuffleMcpThemeProviderProps, ShufflePipelinesBanner, SingulActionsPreview, THREAT_INTEL_PATTERNS, TryMcpSection, type TryMcpSectionProps, UsageBar, type UsageBarProps, VULN_SCANNER_PATTERNS, type ValidatedIngestionApp, ShuffleMCP as default, deleteDatastoreItem, deleteDatastoreItems, diagnoseOutputWarning, extractValidatedIngestionApps, extractWorkflowAppNames, fetchApps, fetchAppsViaApiConfig, findForwardTicketsWorkflow, findIngestTicketsWorkflow, getApiUrl, getAuthHeader, getDatastoreByCategory, getDatastoreItem, getDatastoreItemPublic, getFailureInfo, getHostBaseUrl, getIngestionCategory, hasOutputWarning, installFetchBreaker, invalidateAppsCache, invalidateResolvedApps, isCloud, isCloudDomain, isEmailApp, isIngestionApp, isOnprem, isThreatIntelApp, isVulnScannerApp, isWorkflowScheduleStopped, normalizeAppName, parseRunResult, refreshAllIntegrationStatus, registerProtectedOrigin, resetRegionUrl, resolveApp, resolveApps, searchAgentActivity, seedResolvedApp, setDatastoreItem, setDatastoreItems, setHostBaseUrl, setRegionUrl, setRuntimeOrgId, setToastImpl, shuffleFetch, toast, useAppAuth, useAppDetail, useAppDetailOptional, useAppLookup, useSyncHostBaseUrl };
1371
+ export { API_CONFIG, AgentActivityList, type AgentActivityListProps, type AgentActivityParams, type AgentActivityResponse, type AgentDecision, AgentExecutionDrawer, type AgentExecutionDrawerProps, AgentIcon, type AgentRun, AgentRunDiagnosisBanner, AgentRunDrawer, type AgentRunDrawerProps, type AgentRunDrawerTab, type AgentRunResult, AgentUI, type AgentUIApp, type AgentUIProps, AgentsView, type AgentsViewProps, AiAgentPromptsEditor, type AiAgentPromptsEditorProps, type AlgoliaSearchApp, type ApiAuthEntry, AppAuthCard, type AppAuthCardProps, AppAuthConfig, AppAuthSection, type AppAuthSectionProps, type AppAuthState, type AppAuthentication, AppDetailDrawer, AppDetailProvider, type AppLookupResult, AppSearchDrawer, type AppSelectedEvent, AppTitleHeader, type AppTitleHeaderProps, type AuthStatus, CASES_PATTERNS, COMMUNICATION_PATTERNS_NAMES, type CategoryAutomation, type CategoryConfig, type CustomStyles, DATASTORE_CATEGORIES, type DatastoreDiagnostics, type DatastoreItem, type DatastoreResponse, type DiagnosableRun, type DiagnosisEvidence, EDR_PATTERNS, EMAIL_APP_PATTERNS, FORWARD_TICKETS_WORKFLOW_NAME, type FetchAppsOptions, INGEST_TICKETS_WORKFLOW_NAME, type IngestionCategory, IntegrationStatus, type OutputDiagnosis, type ResolvedApp, SIEM_PATTERNS, type ShuffleHostProps, ShuffleMCP, type ShuffleMCPHandle, type ShuffleMCPProps, type ShuffleMcpColorMode, ShuffleMcpThemeProvider, type ShuffleMcpThemeProviderProps, ShufflePipelinesBanner, type ShuffleTheme, SingulActionsPreview, THREAT_INTEL_PATTERNS, TryMcpSection, type TryMcpSectionProps, UsageBar, type UsageBarProps, VULN_SCANNER_PATTERNS, type ValidatedIngestionApp, ShuffleMCP as default, deleteDatastoreItem, deleteDatastoreItems, diagnoseOutputWarning, extractValidatedIngestionApps, extractWorkflowAppNames, fetchApps, fetchAppsViaApiConfig, findForwardTicketsWorkflow, findIngestTicketsWorkflow, getApiUrl, getAuthHeader, getDatastoreByCategory, getDatastoreItem, getDatastoreItemPublic, getFailureInfo, getHostBaseUrl, getIngestionCategory, hasOutputWarning, installFetchBreaker, invalidateAppsCache, invalidateResolvedApps, isCloud, isCloudDomain, isEmailApp, isIngestionApp, isOnprem, isThreatIntelApp, isVulnScannerApp, isWorkflowScheduleStopped, normalizeAppName, parseRunResult, refreshAllIntegrationStatus, registerProtectedOrigin, resetRegionUrl, resolveApp, resolveApps, searchAgentActivity, seedResolvedApp, setDatastoreItem, setDatastoreItems, setHostBaseUrl, setRegionUrl, setRuntimeOrgId, setToastImpl, shuffleFetch, toast, useAppAuth, useAppDetail, useAppDetailOptional, useAppLookup, useSyncHostBaseUrl };
package/dist/index.d.ts CHANGED
@@ -5,21 +5,16 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  /**
6
6
  * ShuffleMcpThemeProvider
7
7
  *
8
- * Mirror of Shuffle-Core's theme provider, scoped for the Shuffle-MCPs lib.
9
- * Two jobs:
10
- *
11
- * 1. Pin MUI defaults (`size="small"`) so individual call sites never need to
12
- * thread sizing through.
13
- *
14
- * 2. Bridge the host app's light/dark scheme into MUI:
15
- * - `mode="auto"` (default) — track the `.dark` class on `<html>` and flip
16
- * MUI `palette.mode` accordingly. Tokens (`hsl(var(--…))`) flip with the
17
- * same class so nothing else needs to know about the theme.
18
- * - `mode="light" | "dark"` — pin the wrapped subtree to that scheme. We
19
- * render a `<div className="dark">` (or remove it) so Tailwind dark
20
- * variants and CSS-variable overrides scope to this subtree only —
21
- * useful when embedding MCPs inside a host that doesn't manage `.dark`
22
- * on `<html>`.
8
+ * - Pins MUI defaults (`size="small"`) so call sites never thread sizing.
9
+ * - Bridges the host app's light/dark scheme into MUI (`palette.mode`) and
10
+ * into our HSL token system (the scoped `.dark` class).
11
+ * - Exposes a React Context (`ShuffleMcpThemeContext`) so internal raw
12
+ * components — and views that compose other library components without
13
+ * going through the public wrapped exports — see the resolved mode.
14
+ * - Stamps the scope className onto MUI portaled paper (Drawer, Dialog,
15
+ * Menu, Popover, Tooltip), so portals rendered into <body> still resolve
16
+ * our `hsl(var(--…))` tokens against the pinned theme instead of the
17
+ * host's `<html>`.
23
18
  *
24
19
  * Wrap your MCP usage at any level:
25
20
  *
@@ -33,9 +28,9 @@ interface ShuffleMcpThemeProviderProps {
33
28
  children?: React$1.ReactNode;
34
29
  /**
35
30
  * Color mode for the wrapped subtree.
36
- * - `"dark"` (default) — render exactly like Shuffle Security standalone.
37
- * - `"auto"` — follow the host page's `.dark` class on `<html>`.
38
- * - `"light"` / `"dark"` — pin the subtree to that scheme via a wrapping div.
31
+ * - `"auto"` (default) — follow the host page's `.dark` class on `<html>`.
32
+ * - `"light"` / `"dark"` — pin the subtree (and any portals rendered from
33
+ * within it) to that scheme.
39
34
  */
40
35
  mode?: ShuffleMcpColorMode;
41
36
  }
@@ -765,14 +760,23 @@ interface AgentsViewProps extends ShuffleHostProps {
765
760
  maxWidth?: number;
766
761
  /**
767
762
  * Optional handler for the "Choose LLM" chip. Forwarded to the embedded
768
- * AgentUI. When omitted, AgentUI dispatches its legacy window event
769
- * (handled by the bundled AgentRunDrawer in Shuffle Security). On other
770
- * hosts, pass this prop to wire your own LLM picker — or set
763
+ * AgentUI. When omitted, AgentsView mounts its own internal
764
+ * `AgentRunDrawer` and opens it on the Local LLM tab — so the chip
765
+ * always does *something*, even on hosts that haven't wired a picker.
766
+ * Pass this prop to override with your own LLM picker, or set
771
767
  * `hideChooseLLM` to remove the chip entirely.
772
768
  */
773
769
  onChooseLLM?: () => void;
774
770
  /** Hide the "Choose LLM" chip in the embedded AgentUI. */
775
771
  hideChooseLLM?: boolean;
772
+ /**
773
+ * Content rendered inside the built-in AgentRunDrawer's Local LLM tab
774
+ * when no `onChooseLLM` is provided. Use to plug in your own local LLM
775
+ * config form. When omitted, a minimal built-in placeholder is shown.
776
+ */
777
+ localLLMSlot?: React.ReactNode;
778
+ /** Content for the built-in AgentRunDrawer's Permissions tab. Optional. */
779
+ permissionsSlot?: React.ReactNode;
776
780
  }
777
781
 
778
782
  /**
@@ -1329,6 +1333,15 @@ declare const UsageBar: React$1.FC<UsageBarProps>;
1329
1333
  * No host-app `@/` imports remain inside this folder (assets aside).
1330
1334
  */
1331
1335
 
1336
+ /**
1337
+ * Every exported component accepts an optional `theme` prop:
1338
+ * - `"light"` / `"dark"` — pin the subtree to that scheme
1339
+ * - `"system"` (default) — follow the host page's `.dark` class on `<html>`
1340
+ *
1341
+ * `colorMode` is preserved as a legacy alias (`"auto"` == `"system"`).
1342
+ */
1343
+ type ShuffleTheme = 'light' | 'dark' | 'system';
1344
+
1332
1345
  declare const ShuffleMCP: React$1.ForwardRefExoticComponent<any>;
1333
1346
 
1334
1347
  declare const AppDetailDrawer: React$1.ComponentType<any>;
@@ -1355,4 +1368,4 @@ declare const AgentsView: React$1.ComponentType<any>;
1355
1368
 
1356
1369
  declare const AgentRunDiagnosisBanner: React$1.ComponentType<any>;
1357
1370
 
1358
- export { API_CONFIG, AgentActivityList, type AgentActivityListProps, type AgentActivityParams, type AgentActivityResponse, type AgentDecision, AgentExecutionDrawer, type AgentExecutionDrawerProps, AgentIcon, type AgentRun, AgentRunDiagnosisBanner, AgentRunDrawer, type AgentRunDrawerProps, type AgentRunDrawerTab, type AgentRunResult, AgentUI, type AgentUIApp, type AgentUIProps, AgentsView, type AgentsViewProps, AiAgentPromptsEditor, type AiAgentPromptsEditorProps, type AlgoliaSearchApp, type ApiAuthEntry, AppAuthCard, type AppAuthCardProps, AppAuthConfig, AppAuthSection, type AppAuthSectionProps, type AppAuthState, type AppAuthentication, AppDetailDrawer, AppDetailProvider, type AppLookupResult, AppSearchDrawer, type AppSelectedEvent, AppTitleHeader, type AppTitleHeaderProps, type AuthStatus, CASES_PATTERNS, COMMUNICATION_PATTERNS_NAMES, type CategoryAutomation, type CategoryConfig, type CustomStyles, DATASTORE_CATEGORIES, type DatastoreDiagnostics, type DatastoreItem, type DatastoreResponse, type DiagnosableRun, type DiagnosisEvidence, EDR_PATTERNS, EMAIL_APP_PATTERNS, FORWARD_TICKETS_WORKFLOW_NAME, type FetchAppsOptions, INGEST_TICKETS_WORKFLOW_NAME, type IngestionCategory, IntegrationStatus, type OutputDiagnosis, type ResolvedApp, SIEM_PATTERNS, type ShuffleHostProps, ShuffleMCP, type ShuffleMCPHandle, type ShuffleMCPProps, type ShuffleMcpColorMode, ShuffleMcpThemeProvider, type ShuffleMcpThemeProviderProps, ShufflePipelinesBanner, SingulActionsPreview, THREAT_INTEL_PATTERNS, TryMcpSection, type TryMcpSectionProps, UsageBar, type UsageBarProps, VULN_SCANNER_PATTERNS, type ValidatedIngestionApp, ShuffleMCP as default, deleteDatastoreItem, deleteDatastoreItems, diagnoseOutputWarning, extractValidatedIngestionApps, extractWorkflowAppNames, fetchApps, fetchAppsViaApiConfig, findForwardTicketsWorkflow, findIngestTicketsWorkflow, getApiUrl, getAuthHeader, getDatastoreByCategory, getDatastoreItem, getDatastoreItemPublic, getFailureInfo, getHostBaseUrl, getIngestionCategory, hasOutputWarning, installFetchBreaker, invalidateAppsCache, invalidateResolvedApps, isCloud, isCloudDomain, isEmailApp, isIngestionApp, isOnprem, isThreatIntelApp, isVulnScannerApp, isWorkflowScheduleStopped, normalizeAppName, parseRunResult, refreshAllIntegrationStatus, registerProtectedOrigin, resetRegionUrl, resolveApp, resolveApps, searchAgentActivity, seedResolvedApp, setDatastoreItem, setDatastoreItems, setHostBaseUrl, setRegionUrl, setRuntimeOrgId, setToastImpl, shuffleFetch, toast, useAppAuth, useAppDetail, useAppDetailOptional, useAppLookup, useSyncHostBaseUrl };
1371
+ export { API_CONFIG, AgentActivityList, type AgentActivityListProps, type AgentActivityParams, type AgentActivityResponse, type AgentDecision, AgentExecutionDrawer, type AgentExecutionDrawerProps, AgentIcon, type AgentRun, AgentRunDiagnosisBanner, AgentRunDrawer, type AgentRunDrawerProps, type AgentRunDrawerTab, type AgentRunResult, AgentUI, type AgentUIApp, type AgentUIProps, AgentsView, type AgentsViewProps, AiAgentPromptsEditor, type AiAgentPromptsEditorProps, type AlgoliaSearchApp, type ApiAuthEntry, AppAuthCard, type AppAuthCardProps, AppAuthConfig, AppAuthSection, type AppAuthSectionProps, type AppAuthState, type AppAuthentication, AppDetailDrawer, AppDetailProvider, type AppLookupResult, AppSearchDrawer, type AppSelectedEvent, AppTitleHeader, type AppTitleHeaderProps, type AuthStatus, CASES_PATTERNS, COMMUNICATION_PATTERNS_NAMES, type CategoryAutomation, type CategoryConfig, type CustomStyles, DATASTORE_CATEGORIES, type DatastoreDiagnostics, type DatastoreItem, type DatastoreResponse, type DiagnosableRun, type DiagnosisEvidence, EDR_PATTERNS, EMAIL_APP_PATTERNS, FORWARD_TICKETS_WORKFLOW_NAME, type FetchAppsOptions, INGEST_TICKETS_WORKFLOW_NAME, type IngestionCategory, IntegrationStatus, type OutputDiagnosis, type ResolvedApp, SIEM_PATTERNS, type ShuffleHostProps, ShuffleMCP, type ShuffleMCPHandle, type ShuffleMCPProps, type ShuffleMcpColorMode, ShuffleMcpThemeProvider, type ShuffleMcpThemeProviderProps, ShufflePipelinesBanner, type ShuffleTheme, SingulActionsPreview, THREAT_INTEL_PATTERNS, TryMcpSection, type TryMcpSectionProps, UsageBar, type UsageBarProps, VULN_SCANNER_PATTERNS, type ValidatedIngestionApp, ShuffleMCP as default, deleteDatastoreItem, deleteDatastoreItems, diagnoseOutputWarning, extractValidatedIngestionApps, extractWorkflowAppNames, fetchApps, fetchAppsViaApiConfig, findForwardTicketsWorkflow, findIngestTicketsWorkflow, getApiUrl, getAuthHeader, getDatastoreByCategory, getDatastoreItem, getDatastoreItemPublic, getFailureInfo, getHostBaseUrl, getIngestionCategory, hasOutputWarning, installFetchBreaker, invalidateAppsCache, invalidateResolvedApps, isCloud, isCloudDomain, isEmailApp, isIngestionApp, isOnprem, isThreatIntelApp, isVulnScannerApp, isWorkflowScheduleStopped, normalizeAppName, parseRunResult, refreshAllIntegrationStatus, registerProtectedOrigin, resetRegionUrl, resolveApp, resolveApps, searchAgentActivity, seedResolvedApp, setDatastoreItem, setDatastoreItems, setHostBaseUrl, setRegionUrl, setRuntimeOrgId, setToastImpl, shuffleFetch, toast, useAppAuth, useAppDetail, useAppDetailOptional, useAppLookup, useSyncHostBaseUrl };