@promptscript/cli 1.3.0 → 1.4.0
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 +7 -0
- package/README.md +22 -1
- package/index.js +6510 -5953
- package/package.json +1 -1
- package/skills/promptscript/SKILL.md +236 -2
- package/src/cli.d.ts.map +1 -1
- package/src/commands/compile.d.ts.map +1 -1
- package/src/commands/import.d.ts +8 -0
- package/src/commands/import.d.ts.map +1 -0
- package/src/commands/index.d.ts +1 -0
- package/src/commands/index.d.ts.map +1 -1
- package/src/commands/init.d.ts +5 -0
- package/src/commands/init.d.ts.map +1 -1
- package/src/commands/registry/init.d.ts.map +1 -1
- package/src/commands/serve.d.ts +9 -0
- package/src/commands/serve.d.ts.map +1 -0
- package/src/utils/ai-tools-detector.d.ts +5 -5
- package/src/utils/ai-tools-detector.d.ts.map +1 -1
- package/src/utils/resolve-target-directory.d.ts +22 -0
- package/src/utils/resolve-target-directory.d.ts.map +1 -0
- package/src/utils/slugify.d.ts +8 -0
- package/src/utils/slugify.d.ts.map +1 -0
- package/skills/migrate-to-promptscript/SKILL.md +0 -228
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ 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.3.1](https://github.com/mrwogu/promptscript/compare/v1.3.0...v1.3.1) (2026-03-13)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* init config schema, migrate flow, and skill consolidation ([#100](https://github.com/mrwogu/promptscript/issues/100)) ([af6fb5f](https://github.com/mrwogu/promptscript/commit/af6fb5f2deb8984ba6545a68c6398a20b1d8ab85))
|
|
14
|
+
|
|
8
15
|
## [1.3.0](https://github.com/mrwogu/promptscript/compare/v1.2.0...v1.3.0) (2026-03-11)
|
|
9
16
|
|
|
10
17
|
|
package/README.md
CHANGED
|
@@ -59,7 +59,13 @@ prs compile
|
|
|
59
59
|
### Already have CLAUDE.md or .cursorrules?
|
|
60
60
|
|
|
61
61
|
```bash
|
|
62
|
-
#
|
|
62
|
+
# Import existing AI instruction file to PromptScript
|
|
63
|
+
prs import CLAUDE.md
|
|
64
|
+
|
|
65
|
+
# Preview the conversion without writing files
|
|
66
|
+
prs import .cursorrules --dry-run
|
|
67
|
+
|
|
68
|
+
# Auto-detect and migrate during project init
|
|
63
69
|
prs init --migrate
|
|
64
70
|
```
|
|
65
71
|
|
|
@@ -103,6 +109,7 @@ Run `prs compile` and get correctly formatted output for every AI tool your team
|
|
|
103
109
|
| `prs compile --dry-run` | Preview changes without writing files |
|
|
104
110
|
| `prs validate` | Validate `.prs` files with detailed errors |
|
|
105
111
|
| `prs diff` | Show diff between source and compiled output |
|
|
112
|
+
| `prs import` | Import existing AI instruction files to .prs |
|
|
106
113
|
| `prs pull` | Pull updates from registry |
|
|
107
114
|
| `prs update-check` | Check for newer CLI versions |
|
|
108
115
|
|
|
@@ -202,6 +209,20 @@ Options:
|
|
|
202
209
|
|
|
203
210
|
Use `--force` to skip all prompts and overwrite everything. Use `--dry-run` to preview conflicts before writing.
|
|
204
211
|
|
|
212
|
+
### Import
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
prs import <file> [options]
|
|
216
|
+
|
|
217
|
+
Options:
|
|
218
|
+
-f, --format <format> Source format (claude, github, cursor, generic)
|
|
219
|
+
-o, --output <dir> Output directory (default: .promptscript)
|
|
220
|
+
--dry-run Preview output without writing files
|
|
221
|
+
--validate Run roundtrip validation after import
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
Imports existing AI instruction files (CLAUDE.md, .cursorrules, copilot-instructions.md) into PromptScript format. Uses heuristic classification to map sections to appropriate `@identity`, `@standards`, `@restrictions`, and `@knowledge` blocks with confidence scoring.
|
|
225
|
+
|
|
205
226
|
### Validate
|
|
206
227
|
|
|
207
228
|
```bash
|