@promptscript/cli 1.4.6 → 1.4.7
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 +18 -11
- package/index.js +3 -1
- package/package.json +1 -1
- package/src/index.d.ts +2 -0
- package/src/index.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -94,17 +94,22 @@ Run `prs compile` and get correctly formatted output for every AI tool your team
|
|
|
94
94
|
|
|
95
95
|
## Commands
|
|
96
96
|
|
|
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 diff` | Show diff between source and compiled output
|
|
105
|
-
| `prs import` | Import existing AI instruction files to .prs
|
|
106
|
-
| `prs
|
|
107
|
-
| `prs
|
|
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 diff` | Show diff between source and compiled output |
|
|
105
|
+
| `prs import` | Import existing AI instruction files to .prs |
|
|
106
|
+
| `prs check` | Check configuration and dependencies health |
|
|
107
|
+
| `prs serve` | Start local development server for playground |
|
|
108
|
+
| `prs registry init` | Create a new PromptScript registry |
|
|
109
|
+
| `prs registry validate` | Validate registry structure and manifest |
|
|
110
|
+
| `prs registry publish` | Publish registry to remote |
|
|
111
|
+
| `prs pull` | Pull updates from registry |
|
|
112
|
+
| `prs update-check` | Check for newer CLI versions |
|
|
108
113
|
|
|
109
114
|
## Key Features
|
|
110
115
|
|
|
@@ -193,6 +198,8 @@ Options:
|
|
|
193
198
|
--dry-run Preview changes without writing files
|
|
194
199
|
--force Force overwrite existing files without prompts
|
|
195
200
|
--registry <path> Path or URL to registry
|
|
201
|
+
-c, --config <path> Path to custom config file
|
|
202
|
+
--cwd <dir> Working directory (project root)
|
|
196
203
|
--verbose Show detailed compilation progress
|
|
197
204
|
--debug Show debug information (includes verbose)
|
|
198
205
|
```
|
package/index.js
CHANGED
|
@@ -2637,9 +2637,10 @@ ${this.convention.rootWrapper.end}`;
|
|
|
2637
2637
|
}
|
|
2638
2638
|
/**
|
|
2639
2639
|
* Get the section separator based on convention.
|
|
2640
|
+
* Returns '\n\n' (double newline) for all conventions.
|
|
2640
2641
|
*/
|
|
2641
2642
|
getSectionSeparator() {
|
|
2642
|
-
return
|
|
2643
|
+
return "\n\n";
|
|
2643
2644
|
}
|
|
2644
2645
|
getListMarker() {
|
|
2645
2646
|
switch (this.convention.listStyle) {
|
|
@@ -27593,6 +27594,7 @@ export {
|
|
|
27593
27594
|
getCacheDir,
|
|
27594
27595
|
getCachePath,
|
|
27595
27596
|
getContext,
|
|
27597
|
+
importCommand,
|
|
27596
27598
|
initCommand,
|
|
27597
27599
|
isQuiet,
|
|
27598
27600
|
isVerbose,
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export { pullCommand } from './commands/pull.js';
|
|
|
14
14
|
export { diffCommand } from './commands/diff.js';
|
|
15
15
|
export { checkCommand } from './commands/check.js';
|
|
16
16
|
export { updateCheckCommand } from './commands/update-check.js';
|
|
17
|
+
export { importCommand } from './commands/import.js';
|
|
18
|
+
export type { ImportCommandOptions } from './commands/import.js';
|
|
17
19
|
export { loadConfig, findConfigFile, CONFIG_FILES } from './config/loader.js';
|
|
18
20
|
export { ConsoleOutput, createSpinner, LogLevel, setContext, getContext, isVerbose, isQuiet, } from './output/console.js';
|
|
19
21
|
export type { CLIContext } from './output/console.js';
|
package/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/cli/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAG/B,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/cli/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAG/B,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,YAAY,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAGjE,OAAO,EAAE,UAAU,EAAE,cAAc,EA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