rrce-workflow 0.2.48 → 0.2.49

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 +34 -22
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3311,6 +3311,10 @@ async function runSetupFlow(workspacePath, workspaceName, existingProjects) {
3311
3311
  ],
3312
3312
  required: false
3313
3313
  }),
3314
+ exposeToMCP: () => confirm4({
3315
+ message: "Expose this project to MCP (AI Agent) server?",
3316
+ initialValue: true
3317
+ }),
3314
3318
  linkedProjects: () => {
3315
3319
  if (existingProjects.length === 0) {
3316
3320
  return Promise.resolve([]);
@@ -3336,14 +3340,9 @@ async function runSetupFlow(workspacePath, workspaceName, existingProjects) {
3336
3340
  message: "Create configuration?",
3337
3341
  initialValue: true
3338
3342
  }),
3339
- exposeToMCP: () => confirm4({
3340
- message: "Expose this project to MCP (AI Agent) server?",
3341
- initialValue: true
3342
- }),
3343
3343
  enableRAG: () => confirm4({
3344
3344
  message: "Enable Semantic Search (Local Mini RAG)?",
3345
- initialValue: false
3346
- // Default false because it's heavy
3345
+ initialValue: true
3347
3346
  }),
3348
3347
  enableRAGConfirm: ({ results }) => {
3349
3348
  if (results.enableRAG) {
@@ -3482,18 +3481,19 @@ async function generateConfiguration(config, workspacePath, workspaceName, allPr
3482
3481
  copyPromptsToDir(prompts, antigravityPath, ".md");
3483
3482
  }
3484
3483
  }
3485
- const workspaceConfigPath = path14.join(workspacePath, ".rrce-workflow", "config.yaml");
3486
- ensureDir(path14.dirname(workspaceConfigPath));
3487
- let configContent = `# RRCE-Workflow Configuration
3484
+ if (config.storageMode === "workspace") {
3485
+ const workspaceConfigPath = path14.join(workspacePath, ".rrce-workflow", "config.yaml");
3486
+ ensureDir(path14.dirname(workspaceConfigPath));
3487
+ let configContent = `# RRCE-Workflow Configuration
3488
3488
  version: 1
3489
3489
 
3490
3490
  storage:
3491
3491
  mode: ${config.storageMode}`;
3492
- if (config.globalPath && config.globalPath !== getDefaultRRCEHome()) {
3493
- configContent += `
3492
+ if (config.globalPath && config.globalPath !== getDefaultRRCEHome()) {
3493
+ configContent += `
3494
3494
  globalPath: "${config.globalPath}"`;
3495
- }
3496
- configContent += `
3495
+ }
3496
+ configContent += `
3497
3497
 
3498
3498
  project:
3499
3499
  name: "${workspaceName}"
@@ -3502,16 +3502,17 @@ tools:
3502
3502
  copilot: ${config.tools.includes("copilot")}
3503
3503
  antigravity: ${config.tools.includes("antigravity")}
3504
3504
  `;
3505
- if (config.linkedProjects.length > 0) {
3506
- configContent += `
3505
+ if (config.linkedProjects.length > 0) {
3506
+ configContent += `
3507
3507
  linked_projects:
3508
3508
  `;
3509
- config.linkedProjects.forEach((name) => {
3510
- configContent += ` - ${name}
3509
+ config.linkedProjects.forEach((name) => {
3510
+ configContent += ` - ${name}
3511
3511
  `;
3512
- });
3512
+ });
3513
+ }
3514
+ fs14.writeFileSync(workspaceConfigPath, configContent);
3513
3515
  }
3514
- fs14.writeFileSync(workspaceConfigPath, configContent);
3515
3516
  if (config.addToGitignore) {
3516
3517
  updateGitignore(workspacePath, config.storageMode, config.tools);
3517
3518
  }
@@ -3540,6 +3541,7 @@ linked_projects:
3540
3541
  // semanticSearch
3541
3542
  );
3542
3543
  saveMCPConfig2(mcpConfig);
3544
+ saveMCPConfig2(mcpConfig);
3543
3545
  } else {
3544
3546
  setProjectConfig2(
3545
3547
  mcpConfig,
@@ -3547,8 +3549,8 @@ linked_projects:
3547
3549
  true,
3548
3550
  void 0,
3549
3551
  // permissions
3550
- void 0,
3551
- // path
3552
+ workspacePath,
3553
+ // <--- IMPORTANT: Register absolute path so config scanner finds it
3552
3554
  config.enableRAG ? { enabled: true } : void 0
3553
3555
  // semanticSearch
3554
3556
  );
@@ -3995,7 +3997,7 @@ Workspace: ${pc13.bold(workspaceName)}`,
3995
3997
  workspacePath
3996
3998
  });
3997
3999
  const configFilePath = getConfigPath(workspacePath);
3998
- const isAlreadyConfigured = fs19.existsSync(configFilePath);
4000
+ let isAlreadyConfigured = fs19.existsSync(configFilePath);
3999
4001
  let currentStorageMode = null;
4000
4002
  if (isAlreadyConfigured) {
4001
4003
  try {
@@ -4004,6 +4006,16 @@ Workspace: ${pc13.bold(workspaceName)}`,
4004
4006
  currentStorageMode = modeMatch?.[1] ?? null;
4005
4007
  } catch {
4006
4008
  }
4009
+ } else {
4010
+ try {
4011
+ const mcpConfig = loadMCPConfig();
4012
+ const mcpProject = mcpConfig.projects.find((p) => p.path === workspacePath);
4013
+ if (mcpProject) {
4014
+ isAlreadyConfigured = true;
4015
+ currentStorageMode = "global";
4016
+ }
4017
+ } catch (e) {
4018
+ }
4007
4019
  }
4008
4020
  const localDataPath = getLocalWorkspacePath(workspacePath);
4009
4021
  const hasLocalData = fs19.existsSync(localDataPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rrce-workflow",
3
- "version": "0.2.48",
3
+ "version": "0.2.49",
4
4
  "description": "RRCE-Workflow TUI - Agentic code workflow generator for AI-assisted development",
5
5
  "author": "RRCE Team",
6
6
  "license": "MIT",