rrce-workflow 0.2.50 → 0.2.51

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 +16 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2944,7 +2944,7 @@ var App_exports = {};
2944
2944
  __export(App_exports, {
2945
2945
  App: () => App
2946
2946
  });
2947
- import { useState as useState4, useEffect as useEffect3, useCallback } from "react";
2947
+ import { useState as useState4, useEffect as useEffect3, useMemo, useCallback } from "react";
2948
2948
  import { Box as Box10, useInput as useInput3, useApp } from "ink";
2949
2949
  import fs15 from "fs";
2950
2950
  import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
@@ -2980,15 +2980,21 @@ var init_App = __esm({
2980
2980
  pid: process.pid,
2981
2981
  running: false
2982
2982
  });
2983
- const [configVersion, setConfigVersion] = useState4(0);
2984
- const config = loadMCPConfig();
2985
- const projects = scanForProjects();
2986
- const exposedProjects = projects.filter((p) => {
2987
- const cfg = config.projects.find(
2988
- (c) => c.path && c.path === p.path || !c.path && c.name === p.name
2989
- );
2990
- return cfg?.expose ?? config.defaults.includeNew;
2991
- });
2983
+ const [config, setConfig] = useState4(() => loadMCPConfig());
2984
+ const [projects, setProjects] = useState4(() => scanForProjects());
2985
+ const refreshData = useCallback(() => {
2986
+ setConfig(loadMCPConfig());
2987
+ setProjects(scanForProjects());
2988
+ }, []);
2989
+ const exposedProjects = useMemo(
2990
+ () => projects.filter((p) => {
2991
+ const cfg = config.projects.find(
2992
+ (c) => c.path && c.path === p.path || !c.path && c.name === p.name
2993
+ );
2994
+ return cfg?.expose ?? config.defaults.includeNew;
2995
+ }),
2996
+ [projects, config]
2997
+ );
2992
2998
  const workspacePath = detectWorkspaceRoot();
2993
2999
  const installStatus = checkInstallStatus(workspacePath);
2994
3000
  const installedCount = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rrce-workflow",
3
- "version": "0.2.50",
3
+ "version": "0.2.51",
4
4
  "description": "RRCE-Workflow TUI - Agentic code workflow generator for AI-assisted development",
5
5
  "author": "RRCE Team",
6
6
  "license": "MIT",