rrce-workflow 0.2.58 → 0.2.59

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 +30 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -49,6 +49,27 @@ function getConfigPath(workspaceRoot) {
49
49
  if (fs.existsSync(legacyPath)) {
50
50
  return legacyPath;
51
51
  }
52
+ try {
53
+ const rrceHome = getDefaultRRCEHome();
54
+ const mcpConfigPath = path.join(rrceHome, "mcp.yaml");
55
+ if (fs.existsSync(mcpConfigPath)) {
56
+ const mcpContent = fs.readFileSync(mcpConfigPath, "utf-8");
57
+ const lines = mcpContent.split("\n");
58
+ let currentName = "";
59
+ for (let i = 0; i < lines.length; i++) {
60
+ const line = lines[i].trim();
61
+ if (line.startsWith("- name:")) {
62
+ currentName = line.replace("- name:", "").trim();
63
+ } else if (line.startsWith("path:")) {
64
+ const p = line.replace("path:", "").trim();
65
+ if (p === workspaceRoot || p === `"${workspaceRoot}"` || p === `'${workspaceRoot}'`) {
66
+ return path.join(rrceHome, "workspaces", currentName, "config.yaml");
67
+ }
68
+ }
69
+ }
70
+ }
71
+ } catch (e) {
72
+ }
52
73
  return newPath;
53
74
  }
54
75
  function getWorkspaceName(workspaceRoot) {
@@ -1168,7 +1189,13 @@ function installAgentPrompts(config, workspacePath, dataPaths) {
1168
1189
  }
1169
1190
  }
1170
1191
  function createWorkspaceConfig(config, workspacePath, workspaceName) {
1171
- const configPath = path10.join(workspacePath, ".rrce-workflow", "config.yaml");
1192
+ let configPath;
1193
+ if (config.storageMode === "global") {
1194
+ const rrceHome = config.globalPath || getDefaultRRCEHome();
1195
+ configPath = path10.join(rrceHome, "workspaces", workspaceName, "config.yaml");
1196
+ } else {
1197
+ configPath = path10.join(workspacePath, ".rrce-workflow", "config.yaml");
1198
+ }
1172
1199
  ensureDir(path10.dirname(configPath));
1173
1200
  let content = `# RRCE-Workflow Configuration
1174
1201
  version: 1
@@ -3852,7 +3879,8 @@ async function executeSetup(config, workspacePath, workspaceName, allProjects, s
3852
3879
  const { updateGitignore: updateGitignore2 } = await Promise.resolve().then(() => (init_gitignore(), gitignore_exports));
3853
3880
  updateGitignore2(workspacePath, config.storageMode, config.tools);
3854
3881
  }
3855
- if (config.tools.includes("copilot") || config.linkedProjects.length > 0) {
3882
+ const needsVSCodeWorkspace = config.storageMode === "workspace" && config.tools.includes("copilot") || config.linkedProjects.length > 0;
3883
+ if (needsVSCodeWorkspace) {
3856
3884
  const selectedProjects = allProjects.filter(
3857
3885
  (p) => config.linkedProjects.includes(`${p.name}:${p.source}`)
3858
3886
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rrce-workflow",
3
- "version": "0.2.58",
3
+ "version": "0.2.59",
4
4
  "description": "RRCE-Workflow TUI - Agentic code workflow generator for AI-assisted development",
5
5
  "author": "RRCE Team",
6
6
  "license": "MIT",