@prompts-gpt/client 0.2.3 → 0.2.4

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
@@ -7,15 +7,21 @@ CLI and SDK for syncing [Prompts-GPT](https://prompts-gpt.com) prompt packs into
7
7
  ## Get Started
8
8
 
9
9
  ```bash
10
- # 1. Install
10
+ # Install
11
11
  npm install -D @prompts-gpt/client
12
12
 
13
- # 2. Save your project token
14
- npx prompts-gpt init --token-prompt
13
+ # Interactive setup handles credentials, config, and shows runnable commands
14
+ npx prompts-gpt quickstart
15
+ ```
16
+
17
+ Or step by step:
15
18
 
16
- # 3. Sync prompts and run
17
- npx prompts-gpt load-config
18
- npx prompts-gpt run
19
+ ```bash
20
+ npx prompts-gpt init # save your project token (prompts interactively)
21
+ npx prompts-gpt sync # pull prompts and write agent files
22
+ npx prompts-gpt list # see what's available
23
+ npx prompts-gpt run # execute a single prompt
24
+ npx prompts-gpt sweep # run a multi-iteration sweep
19
25
  ```
20
26
 
21
27
  **Requires** Node.js 18.18+.
@@ -54,18 +60,22 @@ Bridges the Prompts-GPT cloud library with the agent instruction files each tool
54
60
 
55
61
  | Command | Description |
56
62
  |---------|-------------|
57
- | `init` | Save project token |
58
- | `load-config` | Pull full config from Prompts Studio |
63
+ | `quickstart` | Interactive setup credentials, config, and first run |
64
+ | `init` | Save project token (prompts interactively if no flags given) |
65
+ | `setup` | Scaffold local orchestration config |
59
66
  | `sync` | Pull + generate + write agent files |
60
- | `run` | Execute one prompt with a local agent |
67
+ | `pull` | Download prompt packs as Markdown files |
68
+ | `generate` | Generate a prompt pack from a goal |
69
+ | `load-config` | Pull full config from Prompts Studio |
70
+ | `run` | Execute one prompt with a local agent (`-f <file>`) |
61
71
  | `run-batch` | Execute multiple prompts |
62
- | `sweep` | Multi-iteration execution |
63
- | `setup` | Scaffold local config |
64
- | `status` | Show workspace readiness |
72
+ | `sweep` | Multi-iteration execution (`-f <file> -n <count>`) |
65
73
  | `list` | Show prompts, sweeps, agents |
74
+ | `status` | Show workspace readiness |
66
75
  | `providers` | Show detected CLIs |
67
76
  | `doctor` | Validate prerequisites |
68
77
  | `validate` | Check config for errors |
78
+ | `project` | Show the current project linked to the token |
69
79
 
70
80
  Run `prompts-gpt help <command>` for detailed options.
71
81
 
@@ -74,15 +84,22 @@ Run `prompts-gpt help <command>` for detailed options.
74
84
  ## Examples
75
85
 
76
86
  ```bash
77
- # Run a single prompt
78
- prompts-gpt run --prompt-file .prompts-gpt/review.md --agent cursor
87
+ # Run a single prompt (auto-selects if only one exists)
88
+ prompts-gpt run -f .prompts-gpt/review.md --agent cursor
79
89
 
80
- # Run a sweep (multi-iteration)
81
- prompts-gpt sweep --prompt-file .prompts-gpt/sweeps/design.md --iterations 3
90
+ # Run a sweep (auto-detects local sweeps, reads iterations from frontmatter)
91
+ prompts-gpt sweep
92
+ prompts-gpt sweep -f .prompts-gpt/sweeps/design.md -n 5
93
+
94
+ # Preview what a sweep would do
95
+ prompts-gpt sweep --dry-run
82
96
 
83
97
  # Sync from cloud
84
98
  prompts-gpt sync --agent all
85
99
 
100
+ # Generate a prompt pack from a goal
101
+ prompts-gpt generate --goal "Review PRs for security issues" --sync-agents
102
+
86
103
  # CI/CD — pipe token from secret
87
104
  printf '%s' "$PROMPTS_GPT_TOKEN" | prompts-gpt sync --token-stdin --agent all
88
105
  ```
@@ -123,6 +140,21 @@ await syncPrompts(prompts, { agent: "all" });
123
140
 
124
141
  ---
125
142
 
143
+ ## Data Privacy
144
+
145
+ **What stays local:**
146
+ - `.prompts-gpt/*.md` prompt files are written locally
147
+ - Agent files (`AGENTS.md`, `.cursor/rules/`, etc.) are updated locally
148
+ - Run artifacts (`.scripts/runs/`) including logs, diffs, and summaries stay local
149
+ - No local files, repo content, or uncommitted changes are uploaded
150
+
151
+ **What is sent to prompts-gpt.com:**
152
+ - `prompts-gpt generate --goal ...` — the text you explicitly pass via `--goal`, `--context`, and `--constraints` flags is sent to the API for AI-powered prompt generation
153
+ - `prompts-gpt sync --goal ...` — same as above when `--goal` is used
154
+ - `prompts-gpt pull` / `sync` / `load-config` — your project token is sent to authenticate and download prompts from your library
155
+
156
+ **Do not include PII, secrets, or confidential data** in `--goal`, `--context`, or `--constraints` flags. Use `--dry-run` with `sync` to preview what would be sent.
157
+
126
158
  ## Security
127
159
 
128
160
  - Credentials stored with `0600` permissions
@@ -130,7 +162,7 @@ await syncPrompts(prompts, { agent: "all" });
130
162
  - Token prefix (`pgpt_`) validated before requests
131
163
  - HTTPS enforced for non-localhost
132
164
  - Path traversal blocked for all file writes
133
- - Secret redaction in command previews and error output
165
+ - Secret patterns (`pgpt_`, `sk-`, `ghp_`) are redacted from API-bound input, command previews, and error output
134
166
  - SIGINT/SIGTERM cleanup releases locks
135
167
  - Run artifact directories are intended to stay local and may contain sensitive prompt, output, and diff data
136
168