@promptscript/cli 1.0.0-alpha.2 → 1.0.0-alpha.3

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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,19 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.0-alpha.3](https://github.com/mrwogu/promptscript/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2026-01-27)
9
+
10
+
11
+ ### chore
12
+
13
+ * prepare alpha release ([8bb0fb2](https://github.com/mrwogu/promptscript/commit/8bb0fb2e643566af2fed08a5cd7bc17420c4dd96))
14
+
15
+
16
+ ### Features
17
+
18
+ * **cli:** add file overwrite protection for prs compile ([9213a1d](https://github.com/mrwogu/promptscript/commit/9213a1d6edecff54333c65226a2ede8ff20ae417))
19
+ * **formatting:** add dynamic Prettier configuration support ([c7ceca1](https://github.com/mrwogu/promptscript/commit/c7ceca13928df3449d3ac9f16b1c4749cc48dc2f))
20
+
8
21
  ## [1.0.0-alpha.2](https://github.com/mrwogu/promptscript/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2026-01-24)
9
22
 
10
23
 
package/README.md CHANGED
@@ -67,11 +67,19 @@ Options:
67
67
  -w, --watch Watch mode for continuous compilation (uses chokidar)
68
68
  -o, --output <dir> Output directory
69
69
  --dry-run Preview changes without writing files
70
+ --force Force overwrite existing files without prompts
70
71
  --registry <path> Path or URL to registry
71
72
  ```
72
73
 
73
74
  **Watch Mode:** Uses [chokidar](https://github.com/paulmillr/chokidar) for reliable file watching across all platforms. Automatically recompiles when `.prs` files change.
74
75
 
76
+ **Overwrite Protection:** By default, `prs compile` protects user-created files from accidental overwriting. Files generated by PromptScript contain a marker (`> Auto-generated by PromptScript`) and are overwritten silently. For files without this marker:
77
+
78
+ - **Interactive mode:** You'll be prompted to overwrite (y/N/a)
79
+ - **Non-interactive mode:** Compilation fails with a list of conflicting files
80
+
81
+ Use `--force` to skip all prompts and overwrite everything. Use `--dry-run` to preview conflicts before writing.
82
+
75
83
  ### Validate
76
84
 
77
85
  ```bash