@promptscript/cli 1.19.1 → 1.21.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 +44 -0
- package/index.js +3062 -4857
- package/managed-output-worker.js +220 -0
- package/package.json +4 -3
- package/skills/promptscript/SKILL.md +30 -3
- package/src/cli-version.d.ts +3 -0
- package/src/cli-version.d.ts.map +1 -0
- package/src/cli.d.ts.map +1 -1
- package/src/commands/check.d.ts.map +1 -1
- package/src/commands/compile.d.ts.map +1 -1
- package/src/commands/diff.d.ts.map +1 -1
- package/src/commands/init.d.ts.map +1 -1
- package/src/commands/update-check.d.ts.map +1 -1
- package/src/commands/validate.d.ts.map +1 -1
- package/src/generated/promptscript-skill.d.ts +7 -0
- package/src/generated/promptscript-skill.d.ts.map +1 -0
- package/src/managed-output-worker.d.ts +44 -0
- package/src/managed-output-worker.d.ts.map +1 -0
- package/src/runtime/runtime-info.d.ts +29 -0
- package/src/runtime/runtime-info.d.ts.map +1 -0
- package/src/runtime/self-invocation.d.ts +22 -0
- package/src/runtime/self-invocation.d.ts.map +1 -0
- package/src/services.d.ts +5 -5
- package/src/services.d.ts.map +1 -1
- package/src/telemetry/session.d.ts +11 -1
- package/src/telemetry/session.d.ts.map +1 -1
- package/src/utils/bundled-skill.d.ts +6 -1
- package/src/utils/bundled-skill.d.ts.map +1 -1
- package/src/utils/managed-output-cleanup.d.ts +6 -0
- package/src/utils/managed-output-cleanup.d.ts.map +1 -1
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
|
[](https://www.npmjs.com/package/@promptscript/cli)
|
|
11
|
+
[](https://getpromptscript.dev/getting-started/#installation)
|
|
12
|
+
[](https://getpromptscript.dev/reference/cli/#running-under-deno)
|
|
11
13
|
[](https://github.com/mrwogu/promptscript/actions/workflows/ci.yml)
|
|
12
14
|
[](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
|