rrce-workflow 0.2.52 → 0.2.53

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.
Files changed (2) hide show
  1. package/dist/index.js +20 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2644,7 +2644,12 @@ var init_Overview = __esm({
2644
2644
  /* @__PURE__ */ jsx2(Text2, { children: "Server Port: " }),
2645
2645
  /* @__PURE__ */ jsx2(Text2, { color: "cyan", children: serverStatus.port })
2646
2646
  ] }),
2647
- /* @__PURE__ */ jsx2(Box2, { marginTop: 1, children: /* @__PURE__ */ jsx2(Text2, { color: "dim", children: "Press 'q' to stop server and exit." }) })
2647
+ /* @__PURE__ */ jsxs(Box2, { marginTop: 1, flexDirection: "column", children: [
2648
+ /* @__PURE__ */ jsx2(Text2, { color: "dim", children: "Controls:" }),
2649
+ /* @__PURE__ */ jsx2(Text2, { color: "dim", children: " \u2022 Press 'r' to restart server" }),
2650
+ /* @__PURE__ */ jsx2(Text2, { color: "dim", children: " \u2022 Use 1-4 or \u25C4/\u25BA to navigate tabs" }),
2651
+ /* @__PURE__ */ jsx2(Text2, { color: "dim", children: " \u2022 Press 'q' to stop server and exit" })
2652
+ ] })
2648
2653
  ] })
2649
2654
  ] });
2650
2655
  };
@@ -3034,7 +3039,7 @@ var init_App = __esm({
3034
3039
  ];
3035
3040
  App = ({ onExit, initialPort }) => {
3036
3041
  const { exit } = useApp();
3037
- const [activeTab, setActiveTab] = useState4("logs");
3042
+ const [activeTab, setActiveTab] = useState4("overview");
3038
3043
  const [logs, setLogs] = useState4([]);
3039
3044
  const [serverInfo, setServerInfo] = useState4({
3040
3045
  port: initialPort,
@@ -3107,12 +3112,24 @@ var init_App = __esm({
3107
3112
  }, 500);
3108
3113
  return () => clearInterval(interval);
3109
3114
  }, []);
3110
- useInput3((input, key) => {
3115
+ useInput3(async (input, key) => {
3111
3116
  if (input === "q" || key.ctrl && input === "c") {
3112
3117
  stopMCPServer();
3113
3118
  onExit();
3114
3119
  exit();
3115
3120
  }
3121
+ if (input === "r") {
3122
+ setLogs((prev) => [...prev, "[INFO] Restarting server..."]);
3123
+ stopMCPServer();
3124
+ setServerInfo((prev) => ({ ...prev, running: false }));
3125
+ try {
3126
+ const res = await startMCPServer({ interactive: true });
3127
+ setServerInfo((prev) => ({ ...prev, running: true, port: res.port, pid: res.pid }));
3128
+ setLogs((prev) => [...prev, "[INFO] Server restarted successfully"]);
3129
+ } catch (e) {
3130
+ setLogs((prev) => [...prev, `[ERROR] Failed to restart: ${e}`]);
3131
+ }
3132
+ }
3116
3133
  });
3117
3134
  const termHeight = process.stdout.rows || 24;
3118
3135
  const contentHeight = termHeight - 8;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rrce-workflow",
3
- "version": "0.2.52",
3
+ "version": "0.2.53",
4
4
  "description": "RRCE-Workflow TUI - Agentic code workflow generator for AI-assisted development",
5
5
  "author": "RRCE Team",
6
6
  "license": "MIT",