@promptscript/cli 1.4.7 → 1.5.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/README.md +69 -19
- package/index.js +26798 -21185
- package/package.json +1 -1
- package/skills/promptscript/SKILL.md +93 -6
- package/src/cli.d.ts.map +1 -1
- package/src/commands/compile.d.ts.map +1 -1
- package/src/commands/diff.d.ts.map +1 -1
- package/src/commands/init.d.ts.map +1 -1
- package/src/commands/lock.d.ts +16 -0
- package/src/commands/lock.d.ts.map +1 -0
- package/src/commands/migrate.d.ts +11 -0
- package/src/commands/migrate.d.ts.map +1 -0
- package/src/commands/registry/add.d.ts +6 -0
- package/src/commands/registry/add.d.ts.map +1 -0
- package/src/commands/registry/index.d.ts.map +1 -1
- package/src/commands/registry/list.d.ts +6 -0
- package/src/commands/registry/list.d.ts.map +1 -0
- package/src/commands/resolve-cmd.d.ts +9 -0
- package/src/commands/resolve-cmd.d.ts.map +1 -0
- package/src/commands/update.d.ts +13 -0
- package/src/commands/update.d.ts.map +1 -0
- package/src/commands/upgrade.d.ts +8 -0
- package/src/commands/upgrade.d.ts.map +1 -0
- package/src/commands/validate.d.ts +9 -0
- package/src/commands/validate.d.ts.map +1 -1
- package/src/commands/vendor.d.ts +14 -0
- package/src/commands/vendor.d.ts.map +1 -0
- package/src/types.d.ts +60 -0
- package/src/types.d.ts.map +1 -1
- package/src/utils/ai-tools-detector.d.ts +12 -1
- package/src/utils/ai-tools-detector.d.ts.map +1 -1
- package/src/utils/backup.d.ts +8 -0
- package/src/utils/backup.d.ts.map +1 -0
- package/src/utils/clipboard.d.ts +2 -0
- package/src/utils/clipboard.d.ts.map +1 -0
- package/src/utils/conflict-detector.d.ts +10 -0
- package/src/utils/conflict-detector.d.ts.map +1 -0
- package/src/utils/markers.d.ts +16 -0
- package/src/utils/markers.d.ts.map +1 -0
- package/src/utils/migration-prompt.d.ts +7 -0
- package/src/utils/migration-prompt.d.ts.map +1 -0
package/README.md
CHANGED
|
@@ -50,8 +50,11 @@ prs import CLAUDE.md
|
|
|
50
50
|
# Preview the conversion without writing files
|
|
51
51
|
prs import .cursorrules --dry-run
|
|
52
52
|
|
|
53
|
-
#
|
|
54
|
-
prs init
|
|
53
|
+
# Migrate during project init (interactive gateway)
|
|
54
|
+
prs init
|
|
55
|
+
|
|
56
|
+
# Or use the dedicated migrate command
|
|
57
|
+
prs migrate
|
|
55
58
|
```
|
|
56
59
|
|
|
57
60
|
---
|
|
@@ -94,22 +97,28 @@ Run `prs compile` and get correctly formatted output for every AI tool your team
|
|
|
94
97
|
|
|
95
98
|
## Commands
|
|
96
99
|
|
|
97
|
-
| Command | Description
|
|
98
|
-
| :---------------------- |
|
|
99
|
-
| `prs init` | Initialize project with auto-detection
|
|
100
|
-
| `prs compile` | Compile to target AI tool formats
|
|
101
|
-
| `prs compile -w` | Watch mode - recompile on changes
|
|
102
|
-
| `prs compile --dry-run` | Preview changes without writing files
|
|
103
|
-
| `prs validate` | Validate `.prs` files with detailed errors
|
|
104
|
-
| `prs
|
|
105
|
-
| `prs
|
|
106
|
-
| `prs
|
|
107
|
-
| `prs
|
|
108
|
-
| `prs
|
|
109
|
-
| `prs
|
|
110
|
-
| `prs
|
|
111
|
-
| `prs
|
|
112
|
-
| `prs
|
|
100
|
+
| Command | Description |
|
|
101
|
+
| :---------------------- | :-------------------------------------------------- |
|
|
102
|
+
| `prs init` | Initialize project with auto-detection |
|
|
103
|
+
| `prs compile` | Compile to target AI tool formats |
|
|
104
|
+
| `prs compile -w` | Watch mode - recompile on changes |
|
|
105
|
+
| `prs compile --dry-run` | Preview changes without writing files |
|
|
106
|
+
| `prs validate` | Validate `.prs` files with detailed errors |
|
|
107
|
+
| `prs validate --fix` | Auto-fix syntax version mismatches |
|
|
108
|
+
| `prs upgrade` | Upgrade all `.prs` files to latest syntax version |
|
|
109
|
+
| `prs upgrade --dry-run` | Preview upgrade changes without writing files |
|
|
110
|
+
| `prs diff` | Show diff between source and compiled output |
|
|
111
|
+
| `prs import` | Import existing AI instruction files to .prs |
|
|
112
|
+
| `prs migrate` | Migrate existing AI instructions to PromptScript |
|
|
113
|
+
| `prs migrate --static` | Non-interactive static import of all detected files |
|
|
114
|
+
| `prs migrate --llm` | Generate AI-assisted migration prompt |
|
|
115
|
+
| `prs check` | Check configuration and dependencies health |
|
|
116
|
+
| `prs serve` | Start local development server for playground |
|
|
117
|
+
| `prs registry init` | Create a new PromptScript registry |
|
|
118
|
+
| `prs registry validate` | Validate registry structure and manifest |
|
|
119
|
+
| `prs registry publish` | Publish registry to remote |
|
|
120
|
+
| `prs pull` | Pull updates from registry |
|
|
121
|
+
| `prs update-check` | Check for newer CLI versions |
|
|
113
122
|
|
|
114
123
|
## Key Features
|
|
115
124
|
|
|
@@ -122,7 +131,7 @@ Run `prs compile` and get correctly formatted output for every AI tool your team
|
|
|
122
131
|
- **Overwrite protection** - never accidentally clobbers hand-written files
|
|
123
132
|
- **Validation** - catch errors before they reach your AI tools
|
|
124
133
|
- **Registry support** - share configs via Git registries (private or public)
|
|
125
|
-
- **AI-assisted migration
|
|
134
|
+
- **Migration** - static import or AI-assisted migration of existing `CLAUDE.md`, `.cursorrules`, etc.
|
|
126
135
|
- **Bundled language skill** - AI agents learn PromptScript syntax via injected SKILL.md
|
|
127
136
|
|
|
128
137
|
## Supported Targets
|
|
@@ -176,6 +185,8 @@ Options:
|
|
|
176
185
|
-i, --interactive Force interactive mode
|
|
177
186
|
-y, --yes Skip prompts, use defaults
|
|
178
187
|
-f, --force Force reinitialize even if already initialized
|
|
188
|
+
--auto-import Automatically import existing instruction files (static)
|
|
189
|
+
--backup Create .prs-backup/ before migration
|
|
179
190
|
```
|
|
180
191
|
|
|
181
192
|
**Auto-detection:** Project name, languages, frameworks, and existing AI tool configurations.
|
|
@@ -235,8 +246,47 @@ prs validate [options]
|
|
|
235
246
|
Options:
|
|
236
247
|
--strict Treat warnings as errors
|
|
237
248
|
--format <format> Output format (text, json)
|
|
249
|
+
--fix Auto-fix syntax version mismatches (bumps declared
|
|
250
|
+
version to the minimum required by used blocks)
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
`--fix` is conservative: it only raises the `syntax` field in `@meta` to the
|
|
254
|
+
lowest version that satisfies all blocks used in the file. It never downgrades
|
|
255
|
+
and never changes anything other than the version string.
|
|
256
|
+
|
|
257
|
+
### Upgrade
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
prs upgrade [options]
|
|
261
|
+
|
|
262
|
+
Options:
|
|
263
|
+
--dry-run Preview changes without writing files
|
|
238
264
|
```
|
|
239
265
|
|
|
266
|
+
Upgrades all `.prs` files in the project to the latest known syntax version.
|
|
267
|
+
Unlike `prs validate --fix` (which only bumps to the minimum required version),
|
|
268
|
+
`upgrade` is aggressive: it sets every file to `LATEST_SYNTAX_VERSION`
|
|
269
|
+
unconditionally. Use `--dry-run` to preview the changes before applying them.
|
|
270
|
+
|
|
271
|
+
### Migrate
|
|
272
|
+
|
|
273
|
+
```bash
|
|
274
|
+
prs migrate [options]
|
|
275
|
+
|
|
276
|
+
Options:
|
|
277
|
+
--static Non-interactive static import of all detected files
|
|
278
|
+
--llm Generate AI-assisted migration prompt
|
|
279
|
+
--files <files...> Specific files to import
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
Alias/shortcut to the init migration path. Detects existing AI instruction files
|
|
283
|
+
(CLAUDE.md, .cursorrules, copilot-instructions.md, etc.) and offers static or
|
|
284
|
+
AI-assisted import into PromptScript format.
|
|
285
|
+
|
|
286
|
+
- `--static` imports all detected candidates without prompts (equivalent to `prs init -y --auto-import`)
|
|
287
|
+
- `--llm` generates a kick-start prompt for AI-assisted migration and copies it to clipboard
|
|
288
|
+
- `--files` selectively imports only specified files
|
|
289
|
+
|
|
240
290
|
### Pull Updates
|
|
241
291
|
|
|
242
292
|
```bash
|