@promptscript/cli 1.19.0 → 1.20.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 CHANGED
@@ -8,6 +8,8 @@ Define instructions, skills, agents, MCP servers, hooks, workflows, and policies
8
8
  native configuration for 50 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
+ [![Node.js 20+](https://img.shields.io/badge/Node.js-20%2B-5FA04E?logo=nodedotjs&logoColor=white)](https://getpromptscript.dev/getting-started/#installation)
12
+ [![Deno 2.9+](https://img.shields.io/badge/Deno-2.9%2B-70FFAF?logo=deno&logoColor=000000)](https://getpromptscript.dev/reference/cli/#running-under-deno)
11
13
  [![CI](https://github.com/mrwogu/promptscript/actions/workflows/ci.yml/badge.svg)](https://github.com/mrwogu/promptscript/actions/workflows/ci.yml)
12
14
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/mrwogu/promptscript/blob/main/LICENSE)
13
15
 
@@ -20,9 +22,19 @@ native configuration for 50 AI coding platforms.
20
22
 
21
23
  [![Watch the PromptScript introduction](https://img.youtube.com/vi/7sHMn-DbZig/maxresdefault.jpg)](https://youtu.be/7sHMn-DbZig)
22
24
 
23
- AI coding platforms use different files for instructions, skills, agents, commands, MCP
24
- integrations, hooks, and settings. PromptScript replaces hand-maintained copies with one validated,
25
- composable, Git-native source and target-specific compilers.
25
+ ## What is PromptScript?
26
+
27
+ PromptScript is an open-source language and compiler for AI agent configuration. `.prs` sources
28
+ define instructions, project standards, restrictions, skills, agents, MCP servers, hooks, and
29
+ workflows, while `promptscript.yaml` configures targets and extension-compliance policies.
30
+ PromptScript compiles them into the native files each AI tool already reads, including `CLAUDE.md`,
31
+ `.github/copilot-instructions.md`, `.cursor/rules`, and output for 47 more targets.
32
+
33
+ Every AI coding tool uses its own file names, formats, and paths. Teams using several tools end up
34
+ maintaining several copies of the same rules. Those copies drift, and a change made for one tool may
35
+ never reach the others.
36
+
37
+ PromptScript fixes the source instead of patching each generated file:
26
38
 
27
39
  ```text
28
40
  .promptscript/project.prs
@@ -33,6 +45,16 @@ composable, Git-native source and target-specific compilers.
33
45
 
34
46
  No runtime proxy. Each selected platform keeps consuming its own native configuration.
35
47
 
48
+ ## Why maintain native files by hand?
49
+
50
+ Even a few tools create copies that need the same manual updates. Errors stay hidden until an agent
51
+ reads the broken file. Policy changes become separate edits across every repository and tool.
52
+
53
+ With PromptScript, you change one source, review the generated diff, and validate it in CI. Git
54
+ records each change. Remote dependencies stay pinned in `promptscript.lock`, so builds remain
55
+ reproducible. Adding or switching tools does not require rewriting the source. See the
56
+ [full comparison](https://getpromptscript.dev/guides/vs-manual/).
57
+
36
58
  ## Install
37
59
 
38
60
  Requires Node.js 20 or later.
@@ -54,6 +76,48 @@ Verify installation:
54
76
  prs --version
55
77
  ```
56
78
 
79
+ ## Running under Deno
80
+
81
+ The CLI also runs on Deno 2.9 or later, either straight from the installed
82
+ package or compiled into a standalone binary that needs no other runtime.
83
+
84
+ In any project that has `@promptscript/cli` in its dependencies, point Deno at
85
+ the installed bin shim:
86
+
87
+ ```bash
88
+ deno run --allow-env --allow-sys --allow-read --allow-write --allow-net --allow-run node_modules/@promptscript/cli/bin/prs.js init
89
+ ```
90
+
91
+ An `npm:@promptscript/cli` specifier resolves the published registry release
92
+ instead of the version installed in `node_modules`, so use the path above
93
+ whenever the project's own dependency is what should run.
94
+
95
+ Compile a self-contained `prs` binary, for example for CI images or machines
96
+ without Node:
97
+
98
+ ```bash
99
+ deno compile --allow-env --allow-sys --allow-read --allow-write --allow-net --allow-run -o prs node_modules/@promptscript/cli/bin/prs.js
100
+ ./prs --version
101
+ ```
102
+
103
+ Add `--target x86_64-unknown-linux-gnu` (or `aarch64-unknown-linux-gnu`,
104
+ `x86_64-pc-windows-msvc`) to cross-compile for another platform.
105
+
106
+ What the permissions are for:
107
+
108
+ | Flag | Used for |
109
+ | ------------------------------- | ----------------------------------------------------- |
110
+ | `--allow-env`, `--allow-sys` | runtime detection, configuration, telemetry |
111
+ | `--allow-read`, `--allow-write` | project files, caches, vendored dependencies |
112
+ | `--allow-net` | registries, update checks, telemetry delivery |
113
+ | `--allow-run` | git subprocesses, pagers, clipboard, guarded cleanups |
114
+
115
+ Guarded managed-output cleanup re-executes the CLI through a hidden worker
116
+ command: under `deno run` the worker is spawned with read and write access
117
+ scoped to the output directory, and a compiled binary re-executes itself.
118
+ Telemetry reports `runtime: deno` and is disabled with `DO_NOT_TRACK=1`.
119
+ Node.js 20+ remains fully supported with unchanged behavior.
120
+
57
121
  ## 60-Second Quick Start
58
122
 
59
123
  ```bash