@promptscript/cli 1.0.0-alpha.6 → 1.0.0-alpha.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/CHANGELOG.md +12 -0
- package/README.md +36 -0
- package/index.js +906 -72
- package/package.json +1 -1
- 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/update-check.d.ts +6 -0
- package/src/commands/update-check.d.ts.map +1 -0
- package/src/commands/validate.d.ts.map +1 -1
- package/src/index.d.ts +3 -0
- package/src/index.d.ts.map +1 -1
- package/src/types.d.ts +0 -2
- package/src/types.d.ts.map +1 -1
- package/src/utils/manifest-loader.d.ts +157 -0
- package/src/utils/manifest-loader.d.ts.map +1 -0
- package/src/utils/registry-resolver.d.ts +41 -0
- package/src/utils/registry-resolver.d.ts.map +1 -0
- package/src/utils/suggestion-engine.d.ts +56 -0
- package/src/utils/suggestion-engine.d.ts.map +1 -0
- package/src/utils/version-check.d.ts +48 -0
- package/src/utils/version-check.d.ts.map +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ 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.7](https://github.com/mrwogu/promptscript/compare/v1.0.0-alpha.6...v1.0.0-alpha.7) (2026-01-28)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### chore
|
|
12
|
+
|
|
13
|
+
* prepare alpha release ([9f2f1ed](https://github.com/mrwogu/promptscript/commit/9f2f1ed61923048312206118ff1e0a10679f9899))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* **cli:** add registry manifest support for init command ([790ae31](https://github.com/mrwogu/promptscript/commit/790ae312bfef2cb80a74feb6ccbb334f15a3985b))
|
|
19
|
+
|
|
8
20
|
## [1.0.0-alpha.6](https://github.com/mrwogu/promptscript/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2026-01-28)
|
|
9
21
|
|
|
10
22
|
|
package/README.md
CHANGED
|
@@ -114,6 +114,42 @@ Options:
|
|
|
114
114
|
|
|
115
115
|
By default, diff output is shown through a pager (`less`) for easy scrolling. Use `--no-pager` to disable this behavior. You can customize the pager via the `PAGER` environment variable.
|
|
116
116
|
|
|
117
|
+
### Check for Updates
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
prs update-check
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Checks if a newer version of the CLI is available on npm and displays the result:
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
@promptscript/cli v1.0.0
|
|
127
|
+
✓ Up to date
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Or if an update is available:
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
@promptscript/cli v1.0.0
|
|
134
|
+
Update available: 1.0.0 → 1.1.0 (npm i -g @promptscript/cli)
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
**Automatic Update Checks:** The CLI automatically checks for updates once every 24 hours when running any command. The check is non-blocking and cached locally. To disable automatic checks, set the `PROMPTSCRIPT_NO_UPDATE_CHECK` environment variable:
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
PROMPTSCRIPT_NO_UPDATE_CHECK=1 prs compile
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Environment Variables
|
|
144
|
+
|
|
145
|
+
| Variable | Description |
|
|
146
|
+
| ------------------------------ | ---------------------------------------------- |
|
|
147
|
+
| `PROMPTSCRIPT_NO_UPDATE_CHECK` | Set to `1` to disable automatic update checks |
|
|
148
|
+
| `PROMPTSCRIPT_VERBOSE` | Set to `1` to enable verbose output |
|
|
149
|
+
| `PROMPTSCRIPT_DEBUG` | Set to `1` to enable debug output |
|
|
150
|
+
| `PAGER` | Custom pager for diff output (default: `less`) |
|
|
151
|
+
| `NO_COLOR` | Set to disable colored output |
|
|
152
|
+
|
|
117
153
|
## Configuration
|
|
118
154
|
|
|
119
155
|
Create a `promptscript.yaml` file:
|