@promptscript/cli 1.0.0-alpha.0 → 1.0.0-alpha.1

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 ADDED
@@ -0,0 +1,239 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [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
+
10
+
11
+ ### ⚠ BREAKING CHANGES
12
+
13
+ * All packages now use ES Modules. Consumers must use ESM imports.
14
+ * All packages now use ES Modules. Consumers must use ESM imports.
15
+
16
+ ### chore
17
+
18
+ * prepare alpha.1 release ([01bb952](https://github.com/mrwogu/promptscript/commit/01bb952a967566c0dcd61b80eec2119c06966167))
19
+
20
+
21
+ ### refactor
22
+
23
+ * migrate to pure ESM ([72d0333](https://github.com/mrwogu/promptscript/commit/72d0333580c688c617831885c13a270619817d5b))
24
+ * migrate to pure ESM ([8a59387](https://github.com/mrwogu/promptscript/commit/8a59387d6f81ee9db33c46db8e737fe52e705c2e))
25
+
26
+
27
+ ### Features
28
+
29
+ * cli ([d6cfb7c](https://github.com/mrwogu/promptscript/commit/d6cfb7c5ee7262fcfb63f3ee79333fadfb39ee34))
30
+ * **cli/diff:** support pager ([c5133f7](https://github.com/mrwogu/promptscript/commit/c5133f7a58f0f03323c8fa925387178e823d9415))
31
+ * **cli:** add Antigravity to AI tool detection ([809d055](https://github.com/mrwogu/promptscript/commit/809d055d9b9308059306c6dd8d5893ecdfe8f3b5))
32
+ * **cli:** add chokidar watch mode and --registry flag ([afe30a9](https://github.com/mrwogu/promptscript/commit/afe30a93171ae2f08ea3d022b30a1356deca0627))
33
+ * **cli:** add Codecov bundle analysis ([b93568f](https://github.com/mrwogu/promptscript/commit/b93568f81835dd62517ff5f290687dd5ef9cb4da))
34
+ * **cli:** force init ([5275c14](https://github.com/mrwogu/promptscript/commit/5275c14b9559f16cbc1b4aecf2f8edcf520e51ff))
35
+ * **core:** config schema ([2692b4d](https://github.com/mrwogu/promptscript/commit/2692b4d51e1fb20c4df35b5ce6b8264369910bcb))
36
+ * **formatters:** copilot agents support ([886f6fc](https://github.com/mrwogu/promptscript/commit/886f6fca9d0a7cd276997a31e62618ef0153322f))
37
+ * interactive cli init ([3f77d28](https://github.com/mrwogu/promptscript/commit/3f77d28c1f7644cb9c0620ab4b9f94c01d1ea243))
38
+ * **resolver:** add Git registry support for remote configuration sharing ([555e488](https://github.com/mrwogu/promptscript/commit/555e4883c26b45661965d5994cbaf7f43b928d26))
39
+ * support conventions ([3ccea55](https://github.com/mrwogu/promptscript/commit/3ccea55eb92e3374a2613bbf975c7b4cae80fcf5))
40
+
41
+
42
+ ### Bug Fixes
43
+
44
+ * **cli:** change registry configuration default to No ([0927050](https://github.com/mrwogu/promptscript/commit/0927050523df7a659ea5eff47c11ae11dba976a6))
45
+
46
+ ## [1.0.0-alpha.1](https://github.com/mrwogu/promptscript/compare/v1.0.0-alpha.0...v1.0.0-alpha.1) (2026-01-23)
47
+
48
+
49
+ ### Features
50
+
51
+ * **cli:** add Antigravity to AI tool detection ([809d055](https://github.com/mrwogu/promptscript/commit/809d055d9b9308059306c6dd8d5893ecdfe8f3b5))
52
+ * **resolver:** add Git registry support for remote configuration sharing ([555e488](https://github.com/mrwogu/promptscript/commit/555e4883c26b45661965d5994cbaf7f43b928d26))
53
+
54
+
55
+ ### Bug Fixes
56
+
57
+ * **cli:** change registry configuration default to No ([0927050](https://github.com/mrwogu/promptscript/commit/0927050523df7a659ea5eff47c11ae11dba976a6))
58
+
59
+
60
+ ### Miscellaneous Chores
61
+
62
+ * prepare alpha.1 release ([01bb952](https://github.com/mrwogu/promptscript/commit/01bb952a967566c0dcd61b80eec2119c06966167))
63
+
64
+ ## [1.0.0-alpha.0] - 2026-01-22
65
+
66
+ ### Added
67
+
68
+ 🎉 **PromptScript Language Implementation** - A language for standardizing AI instructions across organizations.
69
+
70
+ #### Language Features
71
+
72
+ - **PromptScript Syntax 1.0.0** - Initial language specification for `.prs` files
73
+ - **@meta block** - Metadata with `id` and `syntax` fields, optional `org`, `team`, `tags`
74
+ - **@inherit directive** - Single inheritance from registry namespaces or relative paths
75
+ - **@use directive** - Import fragments for composition with optional aliasing
76
+ - **@extend block** - Modify inherited blocks at any nesting level
77
+ - **Content blocks:**
78
+ - `@identity` - AI persona definition
79
+ - `@context` - Project context with key-value properties and text
80
+ - `@standards` - Coding standards with nested objects (merged during inheritance)
81
+ - `@restrictions` - Things AI should avoid (concatenated during inheritance)
82
+ - `@shortcuts` - Custom commands (child overrides parent)
83
+ - `@params` - Configurable parameters with types and defaults
84
+ - `@guards` - Validation rules with `globs` for file targeting
85
+ - `@skills` - Reusable AI workflows with tool permissions
86
+ - `@local` - Private instructions (not committed to git)
87
+ - `@knowledge` - Reference documentation
88
+ - **Value types:** Strings, numbers, booleans, null, arrays, objects, multi-line text (`"""`)
89
+ - **Type expressions:** `range(min..max)`, `enum("a", "b", "c")`
90
+
91
+ #### Formatters
92
+
93
+ - **GitHub Copilot** - `simple`, `multifile`, `full` versions with agents support (`.github/copilot-instructions.md`, `.github/agents/`, `.github/skills/`)
94
+ - **Claude Code** - `simple`, `multifile`, `full` versions with local memory support (`CLAUDE.md`, `.claude/agents/`, `.claude/skills/`, `CLAUDE.local.md`)
95
+ - **Cursor** - `modern`, `multifile`, `legacy` versions (`.cursor/rules/project.mdc`, `.cursorrules`)
96
+ - **Google Antigravity** - `simple`, `frontmatter` versions (`.agent/rules/project.md`)
97
+ - Output conventions: `markdown` (default) and `xml`
98
+ - Path-specific rule generation with glob patterns
99
+
100
+ #### Internal Packages (bundled into CLI)
101
+
102
+ - `core` - AST types, error classes, utility functions
103
+ - `parser` - PromptScript parser with recovery support
104
+ - `resolver` - Resolution for `@inherit`, `@use`, `@extend` with registry support
105
+ - `validator` - Semantic validation with custom rule support
106
+ - `compiler` - Compilation pipeline with watch mode
107
+ - `formatters` - Multiple formatter implementations
108
+
109
+ #### CLI Features
110
+
111
+ - `prs init` - Project initialization with auto-detection
112
+ - Tech stack detection (TypeScript, JavaScript, Python, Rust, Go, Java, Ruby, PHP, C#)
113
+ - Framework detection (React, Vue, Angular, Next.js, Django, FastAPI, Express, NestJS, etc.)
114
+ - Existing AI tools detection (GitHub Copilot, Claude Code, Cursor)
115
+ - Interactive configuration wizard
116
+ - `prs compile` - Multi-file compilation with watch mode and dry-run support
117
+ - `prs validate` - File validation with detailed error reporting
118
+ - `prs diff` - Show compilation diff
119
+ - `prs pull` - Registry updates
120
+
121
+ #### Configuration
122
+
123
+ - `promptscript.yaml` - Project configuration
124
+ - Registry configuration with authentication support
125
+ - Target configuration for multiple AI platforms
126
+ - Validation rules configuration
127
+
128
+ #### Documentation
129
+
130
+ - Complete language reference
131
+ - API documentation for all 6 packages
132
+ - CLI reference guide
133
+ - Getting started guide and tutorial
134
+ - Multiple examples (minimal, enterprise, skills & local, team setup)
135
+ - Package READMEs with ecosystem diagrams
136
+
137
+ #### Infrastructure
138
+
139
+ - Nx monorepo with pnpm workspaces
140
+ - TypeScript strict mode with 100% type coverage
141
+ - Pure ESM packages with NodeNext module resolution
142
+ - Comprehensive test suite (Vitest)
143
+ - ESLint and Prettier
144
+ - Husky pre-commit hooks (format, lint, schema validation)
145
+ - TypeDoc for automated API documentation
146
+ - MkDocs documentation site with versioning support (mike)
147
+ - GitHub Actions CI/CD pipeline
148
+ - Code coverage tracking
149
+
150
+ ### Internal Architecture
151
+
152
+ > All packages below are internal and bundled into `@promptscript/cli`. They are not published separately.
153
+
154
+ #### core
155
+
156
+ - AST types and interfaces
157
+ - Error classes (`PSError`, `ParseError`, `ResolveError`, `ValidationError`)
158
+ - Utility functions for version comparison, paths, AST operations
159
+ - Config types: `input`, `watch`, `output`, `registry` with auth support
160
+ - Utility exports: `formatPath()`, `diagnostics`, constants
161
+
162
+ #### parser
163
+
164
+ - Chevrotain-based lexer and parser
165
+ - CST to AST transformation
166
+ - `parse()` and `parseOrThrow()` API
167
+ - `parseFile()` function with recovery option
168
+ - Error recovery for better diagnostics
169
+
170
+ #### resolver
171
+
172
+ - `@inherit`, `@use`, `@extend` resolution
173
+ - File loader with registry support
174
+ - `RegistryInterface` for custom registry implementations
175
+ - Standalone `resolve()` function for programmatic use
176
+
177
+ #### validator
178
+
179
+ - Required fields validation
180
+ - Semantic version format checking
181
+ - Custom rule support
182
+ - Standalone `validate()` function
183
+ - `removeRule()` API for dynamic rule management
184
+ - `formatters` export for formatting validation results
185
+
186
+ #### compiler
187
+
188
+ - Resolve → Validate → Format pipeline
189
+ - Watch mode with chokidar for file monitoring
190
+ - Dry-run support
191
+ - Standalone `compile()` function
192
+
193
+ #### formatters
194
+
195
+ - **GitHub Copilot** - `simple`, `multifile`, `full` versions with agents support
196
+ - **Claude Code** - `simple`, `multifile`, `full` versions
197
+ - **Cursor** - `modern`, `multifile`, `legacy` versions
198
+ - **Antigravity** - `simple`, `frontmatter` versions
199
+ - Output conventions: `markdown` or `xml`
200
+ - Base formatter class for custom implementations
201
+ - Standalone `format()` functions for each formatter
202
+
203
+ #### cli (published)
204
+
205
+ - `prs init` - Initialize project with auto-detection
206
+ - Tech stack detection (TypeScript, JavaScript, Python, Rust, Go, Java, Ruby, PHP, C#)
207
+ - Framework detection (React, Vue, Angular, Next.js, Django, FastAPI, etc.)
208
+ - Existing AI tools detection (GitHub, Claude, Cursor)
209
+ - `prs compile` - Compile to target formats with watch mode support
210
+ - `prs validate` - Validate files
211
+ - `prs diff` - Show output diff
212
+ - `prs pull` - Pull registry updates with `--registry` flag
213
+
214
+ ### Configuration
215
+
216
+ - `promptscript.yaml` configuration file
217
+ - Registry and targets configuration with authentication
218
+ - Validation rules configuration
219
+ - Support for multiple output formats per target
220
+
221
+ ### Documentation
222
+
223
+ - Complete language reference
224
+ - CLI and configuration reference
225
+ - Getting started guide and tutorial
226
+ - API documentation for all 6 packages
227
+ - Multiple examples and best practices
228
+
229
+ ### Infrastructure
230
+
231
+ - Nx monorepo with pnpm workspaces
232
+ - TypeScript strict mode
233
+ - Pure ESM packages with NodeNext module resolution
234
+ - Comprehensive test suite with Vitest
235
+ - ESLint and Prettier for code quality
236
+ - Husky pre-commit hooks
237
+ - TypeDoc for automated API documentation
238
+ - MkDocs documentation site with versioning (mike)
239
+ - GitHub Actions CI/CD pipeline