@promptscript/cli 1.17.1 → 1.18.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 +20 -4
- package/index.js +9605 -1894
- package/package.json +2 -1
- package/skills/promptscript/SKILL.md +33 -4
- package/src/cli.d.ts.map +1 -1
- package/src/commands/compile.d.ts.map +1 -1
- package/src/commands/diff.d.ts +1 -1
- package/src/commands/diff.d.ts.map +1 -1
- package/src/commands/explain.d.ts +6 -0
- package/src/commands/explain.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/lock.d.ts +5 -1
- package/src/commands/lock.d.ts.map +1 -1
- package/src/commands/skills.d.ts.map +1 -1
- package/src/index.d.ts +2 -0
- package/src/index.d.ts.map +1 -1
- package/src/prettier/post-format.d.ts +2 -1
- package/src/prettier/post-format.d.ts.map +1 -1
- package/src/types.d.ts +17 -0
- package/src/types.d.ts.map +1 -1
- package/src/utils/bundled-skill.d.ts +6 -0
- package/src/utils/bundled-skill.d.ts.map +1 -0
- package/src/utils/conflict-detector.d.ts +6 -2
- package/src/utils/conflict-detector.d.ts.map +1 -1
- package/src/utils/diff-report.d.ts +76 -0
- package/src/utils/diff-report.d.ts.map +1 -0
- package/src/utils/legacy-factory-hooks.d.ts +2 -0
- package/src/utils/legacy-factory-hooks.d.ts.map +1 -1
- package/src/utils/managed-output-cleanup.d.ts +3 -1
- package/src/utils/managed-output-cleanup.d.ts.map +1 -1
- package/src/utils/output-ownership.d.ts +8 -0
- package/src/utils/output-ownership.d.ts.map +1 -0
- package/src/utils/output-plan.d.ts +21 -0
- package/src/utils/output-plan.d.ts.map +1 -0
- package/src/utils/registry-resolver.d.ts +3 -1
- package/src/utils/registry-resolver.d.ts.map +1 -1
- package/src/utils/skill-lock-integrity.d.ts +20 -0
- package/src/utils/skill-lock-integrity.d.ts.map +1 -0
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
**Agent platform configuration as code**
|
|
6
6
|
|
|
7
7
|
Define instructions, skills, agents, MCP servers, hooks, workflows, and policies once. Compile
|
|
8
|
-
native configuration for
|
|
8
|
+
native configuration for 49 AI coding platforms.
|
|
9
9
|
|
|
10
10
|
[](https://www.npmjs.com/package/@promptscript/cli)
|
|
11
11
|
[](https://github.com/mrwogu/promptscript/actions/workflows/ci.yml)
|
|
@@ -206,7 +206,7 @@ unsupported platform-specific features.
|
|
|
206
206
|
| Automation | `@hooks`, `@workflows` | Lifecycle hooks and repeatable workflow files |
|
|
207
207
|
| Monorepo delivery | `builds` in `promptscript.yaml` | Scoped output for packages and applications |
|
|
208
208
|
|
|
209
|
-
##
|
|
209
|
+
## 49 Built-In Targets
|
|
210
210
|
|
|
211
211
|
| Platform | Primary and rich output |
|
|
212
212
|
| :------------- | :--------------------------------------------------------------- |
|
|
@@ -220,9 +220,9 @@ unsupported platform-specific features.
|
|
|
220
220
|
| Antigravity | `.agent/rules/`, workflows and MCP configuration |
|
|
221
221
|
| Grok | `AGENTS.md`, agents, skills, commands and integrations |
|
|
222
222
|
|
|
223
|
-
PromptScript also supports
|
|
223
|
+
PromptScript also supports 11 AGENTS.md targets and 29 Markdown instruction targets, including
|
|
224
224
|
Windsurf, Cline, Roo Code, Continue, Aider, Amazon Q, Warp, Zed, OpenHands, Qwen Code, Kimi, Mimo,
|
|
225
|
-
Deep Agents, and
|
|
225
|
+
Deep Agents, ForgeCode, and Hermes Agent.
|
|
226
226
|
|
|
227
227
|
See the [complete target and capability matrix](https://getpromptscript.dev/reference/formatters/).
|
|
228
228
|
|
|
@@ -339,8 +339,17 @@ Preview before writing:
|
|
|
339
339
|
```bash
|
|
340
340
|
prs compile --dry-run
|
|
341
341
|
prs diff --all
|
|
342
|
+
prs diff --format json
|
|
342
343
|
```
|
|
343
344
|
|
|
345
|
+
`prs diff --format json` emits a versioned report with target, path, source provenance, ownership,
|
|
346
|
+
change kind, deterministic content hashes, warnings, and unsupported capability entries. Content is
|
|
347
|
+
omitted by default; add `--include-content` when automation needs canonical output text. Reports
|
|
348
|
+
with changes exit 0; compilation and report errors emit `success: false` and exit 1. See the
|
|
349
|
+
[diff schema](https://getpromptscript.dev/schema/diff/v1.json). Diff uses the complete configured
|
|
350
|
+
target when `--target` selects one, never writes generated files or registry cache metadata, and
|
|
351
|
+
requires Git registries to already exist in vendor mode or a valid local cache.
|
|
352
|
+
|
|
344
353
|
## CLI Commands
|
|
345
354
|
|
|
346
355
|
| Command | Purpose |
|
|
@@ -354,6 +363,7 @@ prs diff --all
|
|
|
354
363
|
| `prs validate --fix` | Upgrade outdated syntax declarations when possible |
|
|
355
364
|
| `prs diff --all` | Preview compiled output differences |
|
|
356
365
|
| `prs inspect <skill>` | Show skill layers and property provenance |
|
|
366
|
+
| `prs explain <path>` | Show source and composition provenance |
|
|
357
367
|
| `prs hooks install [tool]` | Integrate supported AI tools and protect generated files |
|
|
358
368
|
| `prs skills <add\|remove\|list\|update>` | Manage remote Markdown skills |
|
|
359
369
|
| `prs registry <init\|validate\|publish\|list\|add>` | Manage registries and aliases |
|
|
@@ -364,6 +374,12 @@ prs diff --all
|
|
|
364
374
|
| `prs upgrade` | Upgrade `.prs` syntax versions |
|
|
365
375
|
| `prs serve` | Connect local files to the online playground |
|
|
366
376
|
|
|
377
|
+
`prs explain` emits project-relative source paths by default. Pass
|
|
378
|
+
`--absolute-paths` to opt in to host filesystem paths. JSON output contains
|
|
379
|
+
`version`, `path`, `entries`, and `diagnostics`. The command exits nonzero for
|
|
380
|
+
missing paths, resolution failures, or fatal diagnostics; warning-only
|
|
381
|
+
diagnostics keep exit status 0.
|
|
382
|
+
|
|
367
383
|
See the [complete CLI reference](https://getpromptscript.dev/reference/cli/) for every option.
|
|
368
384
|
|
|
369
385
|
## Hooks and Generated-File Protection
|