@promptscript/cli 1.17.1 → 1.18.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.
Files changed (48) hide show
  1. package/README.md +20 -4
  2. package/index.js +10002 -1959
  3. package/package.json +4 -3
  4. package/skills/promptscript/SKILL.md +33 -4
  5. package/src/cli.d.ts.map +1 -1
  6. package/src/commands/check.d.ts +1 -1
  7. package/src/commands/check.d.ts.map +1 -1
  8. package/src/commands/compile.d.ts.map +1 -1
  9. package/src/commands/diff.d.ts +1 -1
  10. package/src/commands/diff.d.ts.map +1 -1
  11. package/src/commands/explain.d.ts +6 -0
  12. package/src/commands/explain.d.ts.map +1 -0
  13. package/src/commands/index.d.ts +1 -0
  14. package/src/commands/index.d.ts.map +1 -1
  15. package/src/commands/lock.d.ts +5 -1
  16. package/src/commands/lock.d.ts.map +1 -1
  17. package/src/commands/migrate.d.ts.map +1 -1
  18. package/src/commands/skills.d.ts.map +1 -1
  19. package/src/index.d.ts +2 -0
  20. package/src/index.d.ts.map +1 -1
  21. package/src/prettier/post-format.d.ts +2 -1
  22. package/src/prettier/post-format.d.ts.map +1 -1
  23. package/src/types.d.ts +19 -0
  24. package/src/types.d.ts.map +1 -1
  25. package/src/utils/build-profile.d.ts +5 -0
  26. package/src/utils/build-profile.d.ts.map +1 -0
  27. package/src/utils/bundled-skill.d.ts +6 -0
  28. package/src/utils/bundled-skill.d.ts.map +1 -0
  29. package/src/utils/conflict-detector.d.ts +6 -2
  30. package/src/utils/conflict-detector.d.ts.map +1 -1
  31. package/src/utils/diff-report.d.ts +76 -0
  32. package/src/utils/diff-report.d.ts.map +1 -0
  33. package/src/utils/legacy-factory-hooks.d.ts +2 -0
  34. package/src/utils/legacy-factory-hooks.d.ts.map +1 -1
  35. package/src/utils/managed-output-cleanup.d.ts +3 -1
  36. package/src/utils/managed-output-cleanup.d.ts.map +1 -1
  37. package/src/utils/migration-prompt.d.ts +1 -1
  38. package/src/utils/migration-prompt.d.ts.map +1 -1
  39. package/src/utils/output-ownership.d.ts +8 -0
  40. package/src/utils/output-ownership.d.ts.map +1 -0
  41. package/src/utils/output-plan.d.ts +21 -0
  42. package/src/utils/output-plan.d.ts.map +1 -0
  43. package/src/utils/registry-resolver.d.ts +3 -1
  44. package/src/utils/registry-resolver.d.ts.map +1 -1
  45. package/src/utils/skill-lock-integrity.d.ts +20 -0
  46. package/src/utils/skill-lock-integrity.d.ts.map +1 -0
  47. package/src/utils/target-config.d.ts +8 -0
  48. package/src/utils/target-config.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 48 AI coding platforms.
8
+ native configuration for 49 AI coding platforms.
9
9
 
10
10
  [![npm version](https://img.shields.io/npm/v/@promptscript/cli.svg)](https://www.npmjs.com/package/@promptscript/cli)
11
11
  [![CI](https://github.com/mrwogu/promptscript/actions/workflows/ci.yml/badge.svg)](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
- ## 48 Built-In Targets
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 10 AGENTS.md targets and 29 Markdown instruction targets, including
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 ForgeCode.
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