draftify-cli 1.0.76 → 1.0.78

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/repl.js +3 -2
  2. package/package.json +1 -1
package/dist/repl.js CHANGED
@@ -655,7 +655,7 @@ async function startRepl(initialUsername) {
655
655
  }
656
656
  if (fs_1.default.existsSync(fullPath)) {
657
657
  let fileContent = fs_1.default.readFileSync(fullPath, 'utf-8');
658
- const searchBlockRegex = /<<<<<<< SEARCH\n([\s\S]*?)\n=======\n([\s\S]*?)\n>>>>>>>/g;
658
+ const searchBlockRegex = /<<<<<<< SEARCH>?\r?\n([\s\S]*?)\r?\n=======\r?\n([\s\S]*?)\r?\n>>>>>>>/g;
659
659
  let diffMatch;
660
660
  let diffApplied = false;
661
661
  let hasDiffBlocks = false;
@@ -1041,7 +1041,8 @@ async function startRepl(initialUsername) {
1041
1041
  promptAdditions.push(`I executed your file system requests. Here are the results:\n${autoExplorationOutputs.join('\n\n')}`);
1042
1042
  autoPrompt = promptAdditions.join("\n\n");
1043
1043
  }
1044
- if (finalDisplayResult) {
1044
+ const isIntermediateExploration = (filesToReadAuto.length > 0 || dirsToListAuto.length > 0) && commandsToRun.length === 0 && questions.length === 0;
1045
+ if (finalDisplayResult && !isIntermediateExploration) {
1045
1046
  ui_1.ui.box("Draftify AI", finalDisplayResult.split("\n"));
1046
1047
  }
1047
1048
  // --- INTERACTIVE MENU FOR QUESTIONS ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "draftify-cli",
3
- "version": "1.0.76",
3
+ "version": "1.0.78",
4
4
  "description": "Draftify AI CLI tool",
5
5
  "main": "dist/index.js",
6
6
  "bin": {