prompts-gpt 0.2.15 → 0.2.16
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 +41 -0
- package/dist/cli.js +707 -138
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/orchestrate.d.ts +9 -1
- package/dist/orchestrate.d.ts.map +1 -1
- package/dist/orchestrate.js +92 -39
- package/dist/orchestrate.js.map +1 -1
- package/dist/runtime.d.ts +15 -0
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +212 -17
- package/dist/runtime.js.map +1 -1
- package/dist/sweep.d.ts +1 -0
- package/dist/sweep.d.ts.map +1 -1
- package/dist/sweep.js +117 -59
- package/dist/sweep.js.map +1 -1
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -105,6 +105,33 @@ prompts-gpt sweep -f .prompts-gpt/sweeps/design.md -n 5
|
|
|
105
105
|
# Preview what a sweep would do
|
|
106
106
|
prompts-gpt sweep --dry-run
|
|
107
107
|
|
|
108
|
+
# Run and score multiple providers on one prompt
|
|
109
|
+
prompts-gpt orchestrate --mode parallel -f .prompts-gpt/review.md --providers codex,claude,cursor --criteria correctness,completeness
|
|
110
|
+
|
|
111
|
+
# Chain steps with context passing
|
|
112
|
+
cat > pipeline.json <<'EOF'
|
|
113
|
+
[
|
|
114
|
+
{"name":"research","promptFile":".prompts-gpt/review.md","agent":"codex"},
|
|
115
|
+
{"name":"implement","promptFile":".prompts-gpt/review.md","agent":"claude"},
|
|
116
|
+
{"name":"review","promptFile":".prompts-gpt/review.md","agent":"cursor"}
|
|
117
|
+
]
|
|
118
|
+
EOF
|
|
119
|
+
prompts-gpt orchestrate --mode pipeline --steps pipeline.json --dry-run
|
|
120
|
+
|
|
121
|
+
# Run once and evaluate with explicit criteria
|
|
122
|
+
prompts-gpt orchestrate --mode eval -f .prompts-gpt/review.md --criteria correctness,risk,clarity
|
|
123
|
+
prompts-gpt orchestrate --mode eval --dry-run --eval-criteria correctness,risk,clarity
|
|
124
|
+
|
|
125
|
+
# Re-run a prompt when the file changes
|
|
126
|
+
prompts-gpt run -f .prompts-gpt/review.md --watch
|
|
127
|
+
|
|
128
|
+
# Scaffold local runner config and prompt sources
|
|
129
|
+
prompts-gpt doctor --fix
|
|
130
|
+
|
|
131
|
+
# Inspect the worktree delta for a recent run
|
|
132
|
+
prompts-gpt diff
|
|
133
|
+
prompts-gpt diff <run-id>
|
|
134
|
+
|
|
108
135
|
# Run a sweep with reduced output
|
|
109
136
|
prompts-gpt sweep --quiet
|
|
110
137
|
|
|
@@ -116,6 +143,7 @@ prompts-gpt sync-models
|
|
|
116
143
|
|
|
117
144
|
# Use model aliases for shorter commands
|
|
118
145
|
prompts-gpt run --model opus # resolves to claude-opus-4-7
|
|
146
|
+
prompts-gpt run --agent cursor --model opus-4.6 # resolves to claude-4.6-opus-high
|
|
119
147
|
prompts-gpt run --model mini # resolves to gpt-5.4-mini
|
|
120
148
|
prompts-gpt run --model pro # resolves to gpt-5.5-pro
|
|
121
149
|
prompts-gpt run --model o3 # resolves to o3
|
|
@@ -149,6 +177,19 @@ All options can be overridden via environment variables. See `prompts-gpt help s
|
|
|
149
177
|
|
|
150
178
|
---
|
|
151
179
|
|
|
180
|
+
## Orchestration Patterns
|
|
181
|
+
|
|
182
|
+
- `parallel`: run multiple providers against the same prompt, score outputs, and keep the strongest result with local logs and diffs.
|
|
183
|
+
- `pipeline`: pass context across named steps when research, implementation, and review should be separated.
|
|
184
|
+
- `eval`: run one provider and force a structured quality score for the output.
|
|
185
|
+
- `eval --dry-run`: if `-f` is omitted, the CLI uses the first discovered `.prompts-gpt` prompt so workspace scaffolds can verify orchestration immediately.
|
|
186
|
+
- `sweep --eval --eval-criteria correctness,completeness,...`: add self-evaluation after each successful iteration.
|
|
187
|
+
- `diff <run-id>`: inspect the stored worktree delta from a prior run.
|
|
188
|
+
- `run --watch`: rerun automatically when the prompt file changes.
|
|
189
|
+
- `doctor --fix`: scaffold `.prompts-gpt/config.json`, detect prompt sources, and add the artifacts directory to `.gitignore`.
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
152
193
|
## SDK
|
|
153
194
|
|
|
154
195
|
```typescript
|