draftify-cli 1.0.86 → 1.0.88

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 +2 -2
  2. package/package.json +1 -1
package/dist/repl.js CHANGED
@@ -603,7 +603,7 @@ async function startRepl(initialUsername) {
603
603
  }
604
604
  }
605
605
  }
606
- const createRegex = /<FILE_CREATE\s+path=['"]([^'"]+)['"]>([\s\S]*?)<\/FILE_CREATE>/gi;
606
+ const createRegex = /<FILE_CREATE\s+path=['"]([^'"]+)['"]>([\s\S]*?)<\/(?:FILE|SCRIPT|STYLE|HTML)_CREATE>/gi;
607
607
  while ((match = createRegex.exec(result)) !== null) {
608
608
  const filePath = match[1];
609
609
  const fullPath = path_1.default.resolve(process.cwd(), filePath);
@@ -628,7 +628,7 @@ async function startRepl(initialUsername) {
628
628
  ui_1.ui.error(`Failed to create ${filePath}: ${e.message}`);
629
629
  }
630
630
  }
631
- const modifyRegex = /<FILE_MODIFY\s+path=['"]([^'"]+)['"]>([\s\S]*?)<\/FILE_MODIFY>/gi;
631
+ const modifyRegex = /<FILE_MODIFY\s+path=['"]([^'"]+)['"]>([\s\S]*?)<\/(?:FILE|SCRIPT|STYLE|HTML)_MODIFY>/gi;
632
632
  while ((match = modifyRegex.exec(result)) !== null) {
633
633
  const filePath = match[1];
634
634
  const block = match[2];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "draftify-cli",
3
- "version": "1.0.86",
3
+ "version": "1.0.88",
4
4
  "description": "Draftify AI CLI tool",
5
5
  "main": "dist/index.js",
6
6
  "bin": {