@promptscript/cli 1.0.0-alpha.2 → 1.0.0-alpha.4
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 +29 -0
- package/README.md +8 -0
- package/index.js +921 -410
- package/package.json +1 -1
- package/src/cli.d.ts.map +1 -1
- package/src/commands/compile.d.ts +2 -1
- package/src/commands/compile.d.ts.map +1 -1
- package/src/commands/init.d.ts.map +1 -1
- package/src/output/console.d.ts +4 -0
- package/src/output/console.d.ts.map +1 -1
- package/src/prettier/index.d.ts +2 -0
- package/src/prettier/index.d.ts.map +1 -0
- package/src/prettier/loader.d.ts +36 -0
- package/src/prettier/loader.d.ts.map +1 -0
- package/src/services.d.ts +1 -0
- package/src/services.d.ts.map +1 -1
- package/src/types.d.ts +2 -0
- package/src/types.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,35 @@ 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.4](https://github.com/mrwogu/promptscript/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) (2026-01-27)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### ⚠ BREAKING CHANGES
|
|
12
|
+
|
|
13
|
+
* **compiler:** Generated files now have compact marker instead of verbose header. Existing files with legacy marker still recognized.
|
|
14
|
+
|
|
15
|
+
### chore
|
|
16
|
+
|
|
17
|
+
* prepare alpha release ([8c3a428](https://github.com/mrwogu/promptscript/commit/8c3a428856bc088fb27a4fdd6a16185fe5e63589))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **compiler:** add compact PromptScript marker to all outputs ([6d74480](https://github.com/mrwogu/promptscript/commit/6d744800a4ab38030b6c23b2ab949c79977ab12e))
|
|
23
|
+
|
|
24
|
+
## [1.0.0-alpha.3](https://github.com/mrwogu/promptscript/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2026-01-27)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### chore
|
|
28
|
+
|
|
29
|
+
* prepare alpha release ([8bb0fb2](https://github.com/mrwogu/promptscript/commit/8bb0fb2e643566af2fed08a5cd7bc17420c4dd96))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
|
|
34
|
+
* **cli:** add file overwrite protection for prs compile ([9213a1d](https://github.com/mrwogu/promptscript/commit/9213a1d6edecff54333c65226a2ede8ff20ae417))
|
|
35
|
+
* **formatting:** add dynamic Prettier configuration support ([c7ceca1](https://github.com/mrwogu/promptscript/commit/c7ceca13928df3449d3ac9f16b1c4749cc48dc2f))
|
|
36
|
+
|
|
8
37
|
## [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
38
|
|
|
10
39
|
|
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
|