@shuffleio/shuffle-mcps 0.0.56 → 0.0.58
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/{appsCache-ITT5ZZQS.mjs → appsCache-VD3DQH53.mjs} +1 -1
- package/dist/{chunk-45B7UK6Q.mjs → chunk-7HRNENGV.mjs} +2 -2
- package/dist/index.d.mts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +1595 -721
- package/dist/index.mjs +1422 -548
- package/package.json +1 -1
|
@@ -972,10 +972,10 @@ var getAuthHeader = (overrideOrgId) => {
|
|
|
972
972
|
let orgId = overrideOrgId ?? _trackedOrgId;
|
|
973
973
|
if (!orgId && typeof localStorage !== "undefined") {
|
|
974
974
|
try {
|
|
975
|
-
const raw = localStorage.getItem("shuffle_user_info");
|
|
975
|
+
const raw = localStorage.getItem("shuffle_user_info") || localStorage.getItem("userinfo") || localStorage.getItem("user_info");
|
|
976
976
|
if (raw) {
|
|
977
977
|
const parsed = JSON.parse(raw);
|
|
978
|
-
orgId = parsed?.active_org?.id || parsed?.org_id || null;
|
|
978
|
+
orgId = parsed?.active_org?.id || parsed?.org_id || parsed?.active_org_id || parsed?.orgs && parsed.orgs[0]?.id || null;
|
|
979
979
|
}
|
|
980
980
|
} catch {
|
|
981
981
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -434,6 +434,10 @@ interface AiAgentPromptsEditorProps {
|
|
|
434
434
|
apps: string[][];
|
|
435
435
|
/** Read-only mode: render prompts as plain text, no edit/add/remove. */
|
|
436
436
|
readOnly?: boolean;
|
|
437
|
+
/** Optional skill label (e.g. "Incident Handler") to show shared permission context. */
|
|
438
|
+
skillLabel?: string;
|
|
439
|
+
/** Optional check if an app key is a built-in default app for the active skill. */
|
|
440
|
+
isBuiltInApp?: (appKey: string) => boolean;
|
|
437
441
|
/** Edit handlers — required when `readOnly` is false. */
|
|
438
442
|
onChangePrompt?: (index: number, value: string) => void;
|
|
439
443
|
onRemovePrompt?: (index: number) => void;
|
|
@@ -809,6 +813,8 @@ interface AgentUIProps {
|
|
|
809
813
|
contextParams?: Record<string, string>;
|
|
810
814
|
/** Optional target incident ID for incident-handler skill */
|
|
811
815
|
incidentId?: string;
|
|
816
|
+
/** Optional target incident context (observables, summary, tasks) */
|
|
817
|
+
incidentContext?: Record<string, unknown>;
|
|
812
818
|
/** Optional target vulnerability ID for vulnerability skill */
|
|
813
819
|
vulnerabilityId?: string;
|
|
814
820
|
/** Optional target workflow ID for edit-workflow skill */
|
|
@@ -1114,6 +1120,10 @@ declare const ASK_AI_PANEL_WIDTH_STORAGE_KEY = "shuffle:ask_ai_panel_width";
|
|
|
1114
1120
|
declare const MIN_ASK_AI_PANEL_WIDTH = 340;
|
|
1115
1121
|
declare const MAX_ASK_AI_PANEL_WIDTH = 960;
|
|
1116
1122
|
interface AskAiSidePanelProps extends ShuffleHostProps {
|
|
1123
|
+
/** Target incident ID */
|
|
1124
|
+
incidentId?: string;
|
|
1125
|
+
/** Structured incident context */
|
|
1126
|
+
incidentContext?: Record<string, any>;
|
|
1117
1127
|
/** Whether the side panel is open */
|
|
1118
1128
|
open: boolean;
|
|
1119
1129
|
/** Callback to close the side panel */
|
|
@@ -1906,6 +1916,7 @@ interface DatastoreKeyExisted {
|
|
|
1906
1916
|
interface DatastoreResponse {
|
|
1907
1917
|
success: boolean;
|
|
1908
1918
|
data?: DatastoreItem[];
|
|
1919
|
+
items?: DatastoreItem[];
|
|
1909
1920
|
categoryConfig?: CategoryConfig;
|
|
1910
1921
|
cursor?: string;
|
|
1911
1922
|
totalAmount?: number;
|
|
@@ -1989,6 +2000,7 @@ declare const deleteDatastoreItems: (keys: string[], category: string) => Promis
|
|
|
1989
2000
|
}>;
|
|
1990
2001
|
declare const DATASTORE_CATEGORIES: {
|
|
1991
2002
|
readonly INCIDENTS: "shuffle-security_incidents";
|
|
2003
|
+
readonly EVENTS: "shuffle-security_events";
|
|
1992
2004
|
readonly VULNERABILITIES: "shuffle-security_vulns";
|
|
1993
2005
|
readonly VULNS: "shuffle-security_vulns";
|
|
1994
2006
|
readonly ASSETS: "shuffle-security_assets";
|
package/dist/index.d.ts
CHANGED
|
@@ -434,6 +434,10 @@ interface AiAgentPromptsEditorProps {
|
|
|
434
434
|
apps: string[][];
|
|
435
435
|
/** Read-only mode: render prompts as plain text, no edit/add/remove. */
|
|
436
436
|
readOnly?: boolean;
|
|
437
|
+
/** Optional skill label (e.g. "Incident Handler") to show shared permission context. */
|
|
438
|
+
skillLabel?: string;
|
|
439
|
+
/** Optional check if an app key is a built-in default app for the active skill. */
|
|
440
|
+
isBuiltInApp?: (appKey: string) => boolean;
|
|
437
441
|
/** Edit handlers — required when `readOnly` is false. */
|
|
438
442
|
onChangePrompt?: (index: number, value: string) => void;
|
|
439
443
|
onRemovePrompt?: (index: number) => void;
|
|
@@ -809,6 +813,8 @@ interface AgentUIProps {
|
|
|
809
813
|
contextParams?: Record<string, string>;
|
|
810
814
|
/** Optional target incident ID for incident-handler skill */
|
|
811
815
|
incidentId?: string;
|
|
816
|
+
/** Optional target incident context (observables, summary, tasks) */
|
|
817
|
+
incidentContext?: Record<string, unknown>;
|
|
812
818
|
/** Optional target vulnerability ID for vulnerability skill */
|
|
813
819
|
vulnerabilityId?: string;
|
|
814
820
|
/** Optional target workflow ID for edit-workflow skill */
|
|
@@ -1114,6 +1120,10 @@ declare const ASK_AI_PANEL_WIDTH_STORAGE_KEY = "shuffle:ask_ai_panel_width";
|
|
|
1114
1120
|
declare const MIN_ASK_AI_PANEL_WIDTH = 340;
|
|
1115
1121
|
declare const MAX_ASK_AI_PANEL_WIDTH = 960;
|
|
1116
1122
|
interface AskAiSidePanelProps extends ShuffleHostProps {
|
|
1123
|
+
/** Target incident ID */
|
|
1124
|
+
incidentId?: string;
|
|
1125
|
+
/** Structured incident context */
|
|
1126
|
+
incidentContext?: Record<string, any>;
|
|
1117
1127
|
/** Whether the side panel is open */
|
|
1118
1128
|
open: boolean;
|
|
1119
1129
|
/** Callback to close the side panel */
|
|
@@ -1906,6 +1916,7 @@ interface DatastoreKeyExisted {
|
|
|
1906
1916
|
interface DatastoreResponse {
|
|
1907
1917
|
success: boolean;
|
|
1908
1918
|
data?: DatastoreItem[];
|
|
1919
|
+
items?: DatastoreItem[];
|
|
1909
1920
|
categoryConfig?: CategoryConfig;
|
|
1910
1921
|
cursor?: string;
|
|
1911
1922
|
totalAmount?: number;
|
|
@@ -1989,6 +2000,7 @@ declare const deleteDatastoreItems: (keys: string[], category: string) => Promis
|
|
|
1989
2000
|
}>;
|
|
1990
2001
|
declare const DATASTORE_CATEGORIES: {
|
|
1991
2002
|
readonly INCIDENTS: "shuffle-security_incidents";
|
|
2003
|
+
readonly EVENTS: "shuffle-security_events";
|
|
1992
2004
|
readonly VULNERABILITIES: "shuffle-security_vulns";
|
|
1993
2005
|
readonly VULNS: "shuffle-security_vulns";
|
|
1994
2006
|
readonly ASSETS: "shuffle-security_assets";
|