@shuffleio/shuffle-mcps 0.0.26 → 0.0.27
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.
|
@@ -244,6 +244,13 @@ var API_CONFIG = {
|
|
|
244
244
|
var getApiUrl = (endpoint) => {
|
|
245
245
|
return `${API_CONFIG.baseUrl}${endpoint}`;
|
|
246
246
|
};
|
|
247
|
+
var getShuffleCoreFormUrl = (refUrl) => {
|
|
248
|
+
if (!refUrl) return refUrl;
|
|
249
|
+
if (/^https?:\/\//i.test(refUrl)) return refUrl;
|
|
250
|
+
const path = refUrl.startsWith("/") ? refUrl : `/${refUrl}`;
|
|
251
|
+
if (isCloud()) return `https://shuffler.io${path}`;
|
|
252
|
+
return `${API_CONFIG.baseUrl}${path}`;
|
|
253
|
+
};
|
|
247
254
|
var shuffleFetch = (url, init) => {
|
|
248
255
|
const { headers: extraHeaders, ...rest } = init || {};
|
|
249
256
|
return fetch(url, {
|
|
@@ -333,6 +340,7 @@ export {
|
|
|
333
340
|
getTrackedOrgId,
|
|
334
341
|
API_CONFIG,
|
|
335
342
|
getApiUrl,
|
|
343
|
+
getShuffleCoreFormUrl,
|
|
336
344
|
shuffleFetch,
|
|
337
345
|
getAuthHeader,
|
|
338
346
|
fetchApps,
|
package/dist/index.d.mts
CHANGED
|
@@ -475,6 +475,8 @@ interface AgentUIProps {
|
|
|
475
475
|
executionId?: string;
|
|
476
476
|
error?: string;
|
|
477
477
|
}) => void;
|
|
478
|
+
/** Called whenever the chip set under the prompt changes (add/remove apps). */
|
|
479
|
+
onAppsChange?: (apps: AgentUIApp[]) => void;
|
|
478
480
|
/** Called whenever the active top-level view changes (start / simple / detailed). */
|
|
479
481
|
onViewChange?: (view: 'start' | 'simple' | 'detailed') => void;
|
|
480
482
|
/**
|
|
@@ -808,6 +810,10 @@ interface AgentsViewProps extends ShuffleHostProps {
|
|
|
808
810
|
localLLMSlot?: React.ReactNode;
|
|
809
811
|
/** Content for the built-in AgentRunDrawer's Permissions tab. Optional. */
|
|
810
812
|
permissionsSlot?: React.ReactNode;
|
|
813
|
+
/** Pre-fill the starter chip row on mount (e.g. from persisted host state). */
|
|
814
|
+
initialApps?: AgentUIApp[];
|
|
815
|
+
/** Called whenever the chip row under the prompt changes. */
|
|
816
|
+
onAppsChange?: (apps: AgentUIApp[]) => void;
|
|
811
817
|
}
|
|
812
818
|
|
|
813
819
|
interface AgentLocalModel {
|
package/dist/index.d.ts
CHANGED
|
@@ -475,6 +475,8 @@ interface AgentUIProps {
|
|
|
475
475
|
executionId?: string;
|
|
476
476
|
error?: string;
|
|
477
477
|
}) => void;
|
|
478
|
+
/** Called whenever the chip set under the prompt changes (add/remove apps). */
|
|
479
|
+
onAppsChange?: (apps: AgentUIApp[]) => void;
|
|
478
480
|
/** Called whenever the active top-level view changes (start / simple / detailed). */
|
|
479
481
|
onViewChange?: (view: 'start' | 'simple' | 'detailed') => void;
|
|
480
482
|
/**
|
|
@@ -808,6 +810,10 @@ interface AgentsViewProps extends ShuffleHostProps {
|
|
|
808
810
|
localLLMSlot?: React.ReactNode;
|
|
809
811
|
/** Content for the built-in AgentRunDrawer's Permissions tab. Optional. */
|
|
810
812
|
permissionsSlot?: React.ReactNode;
|
|
813
|
+
/** Pre-fill the starter chip row on mount (e.g. from persisted host state). */
|
|
814
|
+
initialApps?: AgentUIApp[];
|
|
815
|
+
/** Called whenever the chip row under the prompt changes. */
|
|
816
|
+
onAppsChange?: (apps: AgentUIApp[]) => void;
|
|
811
817
|
}
|
|
812
818
|
|
|
813
819
|
interface AgentLocalModel {
|