@promptscript/cli 1.0.0-alpha.1 → 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 +27 -0
- package/README.md +17 -8
- package/index.js +1023 -5938
- package/package.json +17 -6
- package/package.publish.json +20 -2
- 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,33 @@ 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
|
+
|
|
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)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### chore
|
|
25
|
+
|
|
26
|
+
* prepare alpha.2 release ([449fbcc](https://github.com/mrwogu/promptscript/commit/449fbccc119d34ab2a674cbfcd8cc4cc3012d108))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* **cli:** resolve ESM dynamic require error for simple-git ([748a401](https://github.com/mrwogu/promptscript/commit/748a401377b5b58dff1935b94543f65f11f5360c))
|
|
32
|
+
* **formatters:** read devCommands and postWork from [@knowledge](https://github.com/knowledge) block ([83a2727](https://github.com/mrwogu/promptscript/commit/83a272707bf3550142ae440f1a595657bb5704e9))
|
|
33
|
+
* sync package.publish.json keywords and description ([ae7481f](https://github.com/mrwogu/promptscript/commit/ae7481fe64639420ba38fc98ea1349bca17cb91d))
|
|
34
|
+
|
|
8
35
|
## [1.0.0-alpha.1](https://github.com/mrwogu/promptscript/compare/v1.0.0-alpha.1...v1.0.0-alpha.1) (2026-01-23)
|
|
9
36
|
|
|
10
37
|
|
package/README.md
CHANGED
|
@@ -8,16 +8,17 @@ Command-line interface for PromptScript. Compile, validate, and manage AI instru
|
|
|
8
8
|
|
|
9
9
|
The CLI bundles all internal packages into a single distributable:
|
|
10
10
|
|
|
11
|
-
```
|
|
11
|
+
```
|
|
12
12
|
@promptscript/cli (published)
|
|
13
13
|
│
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
├─► compiler (pipeline orchestration)
|
|
15
|
+
│ ├─► resolver
|
|
16
|
+
│ ├─► validator ─────► core
|
|
17
|
+
│ └─► formatters ────► core
|
|
18
|
+
│
|
|
19
|
+
└─► resolver (inheritance & import resolution)
|
|
20
|
+
├─► parser ────────► core
|
|
21
|
+
└───────────────────► core
|
|
21
22
|
```
|
|
22
23
|
|
|
23
24
|
See the [PromptScript monorepo](https://github.com/mrwogu/promptscript) for development details.
|
|
@@ -66,11 +67,19 @@ Options:
|
|
|
66
67
|
-w, --watch Watch mode for continuous compilation (uses chokidar)
|
|
67
68
|
-o, --output <dir> Output directory
|
|
68
69
|
--dry-run Preview changes without writing files
|
|
70
|
+
--force Force overwrite existing files without prompts
|
|
69
71
|
--registry <path> Path or URL to registry
|
|
70
72
|
```
|
|
71
73
|
|
|
72
74
|
**Watch Mode:** Uses [chokidar](https://github.com/paulmillr/chokidar) for reliable file watching across all platforms. Automatically recompiles when `.prs` files change.
|
|
73
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
|
+
|
|
74
83
|
### Validate
|
|
75
84
|
|
|
76
85
|
```bash
|