@mcp-b/react-components 0.72.0 → 0.72.2
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { r as AgentComputerApp } from "../../AgentComputer-BI8RsGzq.js";
|
|
2
|
+
import { a as ExecutionTrace, r as ExecutionGraph } from "../../ExecutionBoard-DBj1Aiva.js";
|
|
2
3
|
import { l as WorkspaceAutomationSource } from "../../WorkspaceAutomation-hwl6C1aX.js";
|
|
3
4
|
import { t as ThinkSchedule } from "../../ThinkSchedule-C9vErgZQ.js";
|
|
4
5
|
import { ComputerCalendarEvent, ComputerCalendarRange } from "./ComputerCalendar.js";
|
|
@@ -30,8 +31,16 @@ export interface ComputerAutomationsSelection {
|
|
|
30
31
|
* apps place runs on.
|
|
31
32
|
*/
|
|
32
33
|
export interface ComputerAutomationsHost<TSchedule extends ComputerSchedule = ComputerSchedule> {
|
|
33
|
-
/**
|
|
34
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Saved automations; Automations itself opens a workflow and starts its
|
|
36
|
+
* schedule, single or per table row. `onOpen` receives every other path a
|
|
37
|
+
* workbench link names, such as a run's trace or result; absent, Files opens it.
|
|
38
|
+
*/
|
|
39
|
+
automations: Omit<WorkspaceAutomationSource, "onSchedule" | "onScheduleTable">;
|
|
40
|
+
/** The selected automation's step outline, loaded by the host; absent while it loads. */
|
|
41
|
+
selectedGraph?: ExecutionGraph;
|
|
42
|
+
/** The saved run the host loaded for the selected trace file. */
|
|
43
|
+
selectedTrace?: ExecutionTrace;
|
|
35
44
|
/** Every schedule, each carrying its next run and retained runs. */
|
|
36
45
|
schedules: readonly TSchedule[];
|
|
37
46
|
/** Creates a schedule and resolves its id. `requestKey` is stable for one editor, so a retried save is idempotent. */
|
|
@@ -1096,24 +1096,20 @@ function useAutomationsModel() {
|
|
|
1096
1096
|
const workflows = useQuery(host.automations.queryOptions);
|
|
1097
1097
|
const { onRun } = host.automations;
|
|
1098
1098
|
let t5;
|
|
1099
|
-
if ($[9] !==
|
|
1100
|
-
t5 = (path_1) => workflows.data?.some((automation) => automation.path === path_1) ? setSelectedWorkflowPath(path_1) : openWorkspaceFile(path_1);
|
|
1101
|
-
$[9] =
|
|
1102
|
-
$[10] =
|
|
1103
|
-
$[11] =
|
|
1104
|
-
$[12] =
|
|
1105
|
-
|
|
1099
|
+
if ($[9] !== host.automations.onOpen || $[10] !== openWorkspaceFile || $[11] !== setSelectedWorkflowPath || $[12] !== workflows) {
|
|
1100
|
+
t5 = (path_1) => workflows.data?.some((automation) => automation.path === path_1) ? setSelectedWorkflowPath(path_1) : (host.automations.onOpen ?? openWorkspaceFile)(path_1);
|
|
1101
|
+
$[9] = host.automations.onOpen;
|
|
1102
|
+
$[10] = openWorkspaceFile;
|
|
1103
|
+
$[11] = setSelectedWorkflowPath;
|
|
1104
|
+
$[12] = workflows;
|
|
1105
|
+
$[13] = t5;
|
|
1106
|
+
} else t5 = $[13];
|
|
1106
1107
|
let t6;
|
|
1107
1108
|
let t7;
|
|
1108
|
-
if ($[
|
|
1109
|
-
t6 = async (path_2) => {
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
t7 = async (invocation) => {
|
|
1113
|
-
if (await openAutomationSchedule(invocation)) setSection("schedules");
|
|
1114
|
-
};
|
|
1115
|
-
$[13] = openAutomationSchedule;
|
|
1116
|
-
$[14] = setSection;
|
|
1109
|
+
if ($[14] !== openAutomationSchedule) {
|
|
1110
|
+
t6 = async (path_2) => void await openAutomationSchedule({ path: path_2 });
|
|
1111
|
+
t7 = async (invocation) => void await openAutomationSchedule(invocation);
|
|
1112
|
+
$[14] = openAutomationSchedule;
|
|
1117
1113
|
$[15] = t6;
|
|
1118
1114
|
$[16] = t7;
|
|
1119
1115
|
} else {
|
|
@@ -1256,6 +1252,8 @@ function useAutomationsModel() {
|
|
|
1256
1252
|
"aria-label": workflows.data?.find((automation_0) => automation_0.path === selectedWorkflowPath)?.name ?? "Automation library",
|
|
1257
1253
|
source,
|
|
1258
1254
|
selectedPath: selectedWorkflowPath,
|
|
1255
|
+
selectedGraph: host.selectedGraph,
|
|
1256
|
+
selectedTrace: host.selectedTrace,
|
|
1259
1257
|
onBack: () => setSelectedWorkflowPath(void 0)
|
|
1260
1258
|
})
|
|
1261
1259
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-b/react-components",
|
|
3
|
-
"version": "0.72.
|
|
3
|
+
"version": "0.72.2",
|
|
4
4
|
"description": "MCP-B React components built on Base UI and shared design tokens, including Cloudflare Think chat primitives.",
|
|
5
5
|
"homepage": "https://design-system.sigvelo.com",
|
|
6
6
|
"bugs": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"streamdown": "^2.7.0",
|
|
56
56
|
"unist-util-visit": "^5.1.0",
|
|
57
57
|
"yet-another-react-lightbox": "^3.32.2",
|
|
58
|
-
"@mcp-b/design-tokens": "0.72.
|
|
58
|
+
"@mcp-b/design-tokens": "0.72.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@ai-sdk/react": "^4.0.136",
|