@promptscript/cli 1.19.1 → 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
 
@@ -74,6 +76,48 @@ Verify installation:
74
76
  prs --version
75
77
  ```
76
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
+
77
121
  ## 60-Second Quick Start
78
122
 
79
123
  ```bash