@infosuweb/prompt-rewriter 0.14.4 → 0.14.5
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/CHANGELOG.md +17 -0
- package/README.md +60 -60
- package/package.json +30 -13
- package/releases/prompt-rewriter-latest.vsix +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.14.5] - 2026-11-01
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- F8 rewrite makes the same idea coherent: it may join fragments the input already supports, and a shorter statement of that idea is kept. It still rejects a different task.
|
|
15
|
+
- F9/F10 rebranded as **Specify** — Spec Kit `/speckit-specify` feature specification (markdown/JSON) after F8, with bounds-only context (always skip chat), Input/Why/Independent Test validation, and Assumptions from rules/docs instead of inventing product scope.
|
|
16
|
+
- F7/F6 emit Spec Kit `/speckit-plan` (markdown/JSON) instead of Grill-with-Docs loops; F12 suggests the next Spec Kit–aware agent step.
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- OpenAI-compatible requests use `max_completion_tokens` and omit non-default `temperature` for gpt-5 / gpt-4.1 / o-series models (with one retry if a provider rejects the classic parameters), fixing HTTP 400 on newer chat models.
|
|
21
|
+
- F8 rewrite keeps the request when the model puts the expert role and the rewritten statement on the same line.
|
|
22
|
+
- OpenAI rewrite no longer sends an Anthropic or Google key. Saving Claude or Gemini keeps that key on its own provider, and Setup restores the matching key when switching providers.
|
|
23
|
+
- F8 rewrite validation — positive invention detection with retry and safe fallback instead of brittle token-recall rejections.
|
|
24
|
+
- Preserve attached files, screenshots, and pasted console error blocks during rewrite (verbatim placeholders and extended attachment detection).
|
|
25
|
+
- Attachment handling after F8 — keep `@.env` when Cursor copy serializes that way; re-chip to U+FFFC only when the original capture already contained chips (fixes invisible attachments from bare U+FFFC writes).
|
|
26
|
+
|
|
10
27
|
## [0.14.4] - 2026-09-08
|
|
11
28
|
|
|
12
29
|
- **0.14.2-rc.40**: Ground worker summaries in bounded verbatim excerpts, preserve exact rules/skills and source-channel provenance, defer unused worker validation, and require local RC installation in both Cursor and VS Code.
|
package/README.md
CHANGED
|
@@ -11,12 +11,12 @@ Independent commands:
|
|
|
11
11
|
|
|
12
12
|
| Command | Shortcut | Description |
|
|
13
13
|
| --- | --- | --- |
|
|
14
|
-
| **Rewrite Current Input** | **F8** |
|
|
15
|
-
| **
|
|
16
|
-
| **
|
|
17
|
-
| **Expand Current Input (
|
|
18
|
-
| **Expand Current Input (
|
|
19
|
-
| **Suggest Next Prompt** | **F12** | Uses chat history plus bounded project identity to propose the next ready-to-send agent prompt
|
|
14
|
+
| **Rewrite Current Input** | **F8** | Turns the input into one coherent statement of the same idea, without a new task, and prefixes a task/project-grounded expert persona (`Act as a …`). Uses skills plus a bounded 6,000-character view of workspace rules and configured root docs; skips chat history, the docs folder, and global rules. Repeating F8 must produce a material refinement rather than the same result. |
|
|
15
|
+
| **Specify Current Input** | **F9** | Writes a complete Spec Kit `/speckit-specify` feature specification (`spec.md`: user story with Why/Independent Test/Given/When/Then, `FR-###`, `SC-###`, Assumptions) after F8 clarifies the intent. Starts with a context-grounded `Act as a …` expert role. Uses rules/docs/architecture as bounds; **always skips chat history**. Does not write plan, tasks, or implementation. |
|
|
16
|
+
| **Specify Current Input (JSON)** | **F10** | Same `/speckit-specify` content as F9 Specify, as structured JSON (`expert_role`, stories, `FR-###`, `SC-###`, assumptions). Also skips chat history. |
|
|
17
|
+
| **Expand Current Input (Plan)** | **F7** | Writes a Spec Kit `/speckit-plan` implementation plan (`Summary`, `Technical Context`, `Constitution Check`). Does not write tasks or execute the plan. |
|
|
18
|
+
| **Expand Current Input (Plan JSON)** | **F6** | Same `/speckit-plan` as F7, as structured JSON. |
|
|
19
|
+
| **Suggest Next Prompt** | **F12** | Uses chat history plus bounded project identity to propose the next ready-to-send agent prompt (Spec Kit plan/tasks/implement/converge when the chat is in SDD; otherwise a concrete repo action). |
|
|
20
20
|
| **Rewrite Prompt** | — | Rewrites the current editor selection and shows a diff before replacing it. |
|
|
21
21
|
| **Rewrite Clipboard Prompt** | — | Rewrites the current clipboard text and copies the result back for a manual paste. |
|
|
22
22
|
| **Open Configuration** | — | Opens the sidebar panel to pick backend + model and save. |
|
|
@@ -31,7 +31,7 @@ Every F6-F12 transformation enforces a specific expert role, validates its outpu
|
|
|
31
31
|
|
|
32
32
|
- Visual Studio Code 1.80+ or Cursor (any recent build that installs standard VS Code extensions)
|
|
33
33
|
- To **build** the `.vsix` from source (not required if you already have the installer file): Node.js 22 or later and npm 10 or later
|
|
34
|
-
- For **Rewrite Current Input**, **
|
|
34
|
+
- For **Rewrite Current Input**, **Specify Current Input**, and **Rewrite Clipboard Prompt**: a configured backend (Ollama with a pulled model, cloud API key, or Cursor Agent CLI on PATH)
|
|
35
35
|
- For **Cursor Agents** backend: Cursor Agent CLI (`agent` / `cursor-agent`) on `PATH`, authenticated via `agent login` or `CURSOR_API_KEY`
|
|
36
36
|
- For current-input commands on macOS: Accessibility permission for Cursor (or VS Code) so `osascript` can send Cmd+A / Cmd+C / Cmd+V to the focused field
|
|
37
37
|
|
|
@@ -186,12 +186,12 @@ Open **Settings** and set:
|
|
|
186
186
|
| `promptRewriter.includeRootDocs` | When true, **F6/F7/F9/F10** load `AGENTS.md`, `README.md`, and `.cursorrules`; **F8/F12** include them only within their bounded 6,000-character lean context. Default: `true` |
|
|
187
187
|
| `promptRewriter.docsFolder` | Docs folder for **F6/F7/F9/F10** (`.md`/`.mdc`/`.txt`). Default: `docs`. Empty disables it. **F8/F12** always skip the docs folder. |
|
|
188
188
|
| `promptRewriter.includeArchitectureDefaults` | When true, F6-F12 inject built-in SOLID + hexagonal constraints for software work. Default: `true` |
|
|
189
|
-
| `promptRewriter.includeLastChatResponse` | When true, **F6/F7
|
|
190
|
-
| `promptRewriter.rewriteSystemPromptRules` | Custom system prompt for **F8 Rewrite**. Empty uses the built-in
|
|
191
|
-
| `promptRewriter.expandSystemPromptRules` | Custom system prompt for **F9
|
|
192
|
-
| `promptRewriter.expandJsonSystemPromptRules` | Custom system prompt for **F10
|
|
193
|
-
| `promptRewriter.loopSystemPromptRules` | Custom system prompt for **F7
|
|
194
|
-
| `promptRewriter.loopJsonSystemPromptRules` | Custom system prompt for **F6
|
|
189
|
+
| `promptRewriter.includeLastChatResponse` | When true, **F6/F7 Plan** include full chat history from Cursor agent transcripts (current conversation turns + older transcripts when budget allows). **F9/F10 Specify** always skip chat history. **F8** always skips chat history (lean rewrite). **F12** always loads it. Default: `true` |
|
|
190
|
+
| `promptRewriter.rewriteSystemPromptRules` | Custom system prompt for **F8 Rewrite**. Empty uses the built-in rules (one coherent statement of the same idea, without a new task) and always prefixes a context-grounded expert agent persona. Editable in the Rules tab. |
|
|
191
|
+
| `promptRewriter.expandSystemPromptRules` | Custom system prompt for **F9 Specify**. Empty uses the built-in complete `/speckit-specify` feature specification (after F8) with a context-grounded `Act as a …` expert role line. Editable in the Rules tab. |
|
|
192
|
+
| `promptRewriter.expandJsonSystemPromptRules` | Custom system prompt for **F10 Specify JSON**. Empty uses built-in Spec Kit `/speckit-specify` JSON rules with required `expert_role` (`Act as a …`). Editable in the Rules tab. |
|
|
193
|
+
| `promptRewriter.loopSystemPromptRules` | Custom system prompt for **F7 Plan**. Empty uses built-in Spec Kit `/speckit-plan` rules with a context-grounded `Act as a …` expert role line. Editable in the Rules tab. |
|
|
194
|
+
| `promptRewriter.loopJsonSystemPromptRules` | Custom system prompt for **F6 Plan JSON**. Empty uses built-in Spec Kit `/speckit-plan` JSON rules with required `expert_role` (`Act as a …`). Editable in the Rules tab. |
|
|
195
195
|
|
|
196
196
|
- Prefer **User** settings over **Workspace** settings so the API key is not stored in the repository.
|
|
197
197
|
- **Save & apply** writes User settings and clears any Workspace overrides for the same keys, so F6–F12 match the panel.
|
|
@@ -222,7 +222,7 @@ The simplest way to get F6–F12 working with the model you want:
|
|
|
222
222
|
- **Google** — set your Google AI Studio key + Gemini model (default **gemini-3.6-flash**). The Setup model list is loaded from that API key via the native `/v1beta/models` catalog.
|
|
223
223
|
- **Cursor Agents** — Cursor Agent CLI (`agent`) in ask/print mode (Composer and account models).
|
|
224
224
|
- **Compatible** — Hermes proxy / any OpenAI-compatible endpoint (free routes can be slow).
|
|
225
|
-
- **Rules** — configure agent context settings; edit **F8 Rewrite / F9
|
|
225
|
+
- **Rules** — configure agent context settings; edit **F8 Rewrite / F9 Specify / F10 Specify JSON / F7 Plan / F6 Plan JSON** system prompts (labeled by purpose in the panel); toggle individual global (`~/.cursor/rules`) and workspace rule files on/off; create or edit rule files in-panel; create/edit skill files (`SKILL.md`); assign named task prompts to skills (stored as `## Task:` sections). Click **Save settings** after toggling includes or editing prompt rules.
|
|
226
226
|
4. On **Setup**, pick a **Model** from the icon list (or type a custom id), then **Save & apply**.
|
|
227
227
|
5. Use **F6** / **F7** / **F8** / **F9** / **F10** / **F12** in Cursor chat.
|
|
228
228
|
|
|
@@ -380,28 +380,27 @@ If the focused input is empty, the extension shows an error and does not call Ol
|
|
|
380
380
|
|
|
381
381
|
F6–F12 replace the focused chat input in place (Accessibility write, or Cmd+A / Cmd+V paste). Keep the chat input focused while the model runs for best results.
|
|
382
382
|
|
|
383
|
-
###
|
|
383
|
+
### Specify the current input (Spec Kit `/speckit-specify`, macOS)
|
|
384
384
|
|
|
385
|
-
Same capture/replace flow as **Rewrite Current Input**,
|
|
385
|
+
Same capture/replace flow as **Rewrite Current Input**, optimized as the F8→product-contract step for Cursor agents:
|
|
386
386
|
|
|
387
|
-
- Output format:
|
|
388
|
-
- Loads
|
|
389
|
-
-
|
|
390
|
-
-
|
|
391
|
-
-
|
|
392
|
-
-
|
|
393
|
-
-
|
|
394
|
-
- Always injects built-in **SOLID + hexagonal** defaults for software tasks (disable with `promptRewriter.includeArchitectureDefaults: false`).
|
|
395
|
-
- Forbids inventing stacks, features, examples, or speculative gaps.
|
|
387
|
+
- Output format: a complete Spec Kit `/speckit-specify` feature specification (`# Feature Specification`, non-empty `**Input**`, user story with **Why this priority**, **Independent Test**, Given/When/Then, `FR-###`, `SC-###`, `## Assumptions`). When the input is already an F8 rewrite (`Act as …` + coherent request), that request becomes `**Input**` and is specified — not re-compressed. No plan, tasks, or implementation.
|
|
388
|
+
- Loads **bounds** context, in order: Cursor global rules (`~/.cursor/rules`), `promptRewriter.contextFolder` (default `.cursor/rules`), root docs (`AGENTS.md`, `README.md`, `.cursorrules`), then `promptRewriter.docsFolder` (default `docs`). Rules/docs/architecture go into Assumptions (or phrasing bounds) — not new product scope.
|
|
389
|
+
- **Always skips chat history** (unlike F6/F7 Plan). F9/F10 ignore `promptRewriter.includeLastChatResponse`.
|
|
390
|
+
- When the input includes slash skills (for example `/speckit-specify`), Specify loads matching `SKILL.md` files from workspace/user skill folders — including Hermes `~/.hermes/skills` — and nested `/skill` references, then builds the prompt from what those skills expect.
|
|
391
|
+
- Slash skills are kept on leading lines of the specified text so the invocation remains visible after replace.
|
|
392
|
+
- Always injects built-in **SOLID + hexagonal** defaults for software tasks into Assumptions (disable with `promptRewriter.includeArchitectureDefaults: false`).
|
|
393
|
+
- Forbids inventing stacks, features, examples, or speculative gaps. Derive GWT/FR/SC only from `**Input**` plus bounds.
|
|
396
394
|
|
|
397
|
-
1.
|
|
398
|
-
2.
|
|
399
|
-
3.
|
|
400
|
-
4.
|
|
401
|
-
5.
|
|
402
|
-
6.
|
|
395
|
+
1. Prefer F8 first so the chat input is a clarified request.
|
|
396
|
+
2. Put global Cursor rules in `~/.cursor/rules`; put project rules in `.cursor/rules` and optional docs in `docs/` / `AGENTS.md` / `README.md`.
|
|
397
|
+
3. Optionally include a slash skill such as `/speckit-specify` (skills live under `.agents/skills`, `.cursor/skills`, `~/.agents/skills`, or Hermes `~/.hermes/skills`).
|
|
398
|
+
4. Focus the Cursor chat input. Do not send it.
|
|
399
|
+
5. Press **Ctrl+Shift+Alt+E** or **F9**.
|
|
400
|
+
6. Review the specification in the input. The message is not sent.
|
|
401
|
+
7. If a slash skill appears as plain text (not a teal chip), re-select it from Cursor’s skill menu so it is marked again — the extension cannot recreate Cursor’s chip UI.
|
|
403
402
|
|
|
404
|
-
Use **Rewrite** when you only want
|
|
403
|
+
Use **Rewrite** (F8) when you only want a coherent statement of the same idea. Use **Specify** (F9) when you want a complete Spec Kit specification ready for a later `/speckit-plan` (F7) step.
|
|
405
404
|
|
|
406
405
|
### Suggest the next prompt from chat context (macOS)
|
|
407
406
|
|
|
@@ -414,17 +413,20 @@ Uses chat history from agent transcripts plus the same bounded project identity
|
|
|
414
413
|
|
|
415
414
|
If Ollama times out, raise `promptRewriter.ollamaTimeoutMs` or switch `promptRewriter.ollamaModel` to `qwen2.5-coder:7b` (large models like 32b often exceed 60s with long context).
|
|
416
415
|
|
|
417
|
-
###
|
|
416
|
+
### Specify the current input as JSON (macOS)
|
|
418
417
|
|
|
419
|
-
Same
|
|
418
|
+
Same `/speckit-specify` content as **Specify Current Input** (F9), but pretty-printed JSON:
|
|
420
419
|
|
|
421
420
|
```json
|
|
422
421
|
{
|
|
423
422
|
"expert_role": "Act as a …",
|
|
424
|
-
"
|
|
425
|
-
"
|
|
426
|
-
"
|
|
427
|
-
"
|
|
423
|
+
"feature_name": "...",
|
|
424
|
+
"status": "Draft",
|
|
425
|
+
"input": "...",
|
|
426
|
+
"user_stories": [{ "title": "...", "priority": "P1", "why": "...", "independent_test": "...", "acceptance_scenarios": ["Given … When … Then …"] }],
|
|
427
|
+
"functional_requirements": ["FR-001: …"],
|
|
428
|
+
"success_criteria": ["SC-001: …"],
|
|
429
|
+
"assumptions": ["…"]
|
|
428
430
|
}
|
|
429
431
|
```
|
|
430
432
|
|
|
@@ -432,37 +434,35 @@ Same behavior as **Expand Current Input** (Cursor global rules, rules folder, ro
|
|
|
432
434
|
2. Press **Ctrl+Shift+Alt+J** or **F10**.
|
|
433
435
|
3. Review the JSON in the input. The message is not sent.
|
|
434
436
|
|
|
435
|
-
### Expand the current input as a
|
|
437
|
+
### Expand the current input as a plan (macOS)
|
|
436
438
|
|
|
437
|
-
Same capture/replace flow
|
|
439
|
+
Same capture/replace flow as **Specify Current Input** (F9), plus chat history when enabled, but the result is a Spec Kit **`/speckit-plan`** implementation plan. It writes the plan into the chat input; it does not create `tasks.md` or execute the plan.
|
|
438
440
|
|
|
439
|
-
- Output format:
|
|
440
|
-
- `### Loop` is included only when the input already has iteration details (what to repeat, when to stop, cadence). Interval, cadence, and stop conditions are not invented.
|
|
441
|
+
- Output format: `# Implementation Plan`, `## Summary`, `## Technical Context`, `## Constitution Check` (optional `## Project Structure`).
|
|
441
442
|
|
|
442
|
-
1. Focus the Cursor chat input and type a rough request. Do not send it.
|
|
443
|
+
1. Focus the Cursor chat input and type a rough request or paste an F9 specification. Do not send it.
|
|
443
444
|
2. Press **F7**.
|
|
444
|
-
3. Review the
|
|
445
|
+
3. Review the plan in the input. The message is not sent.
|
|
445
446
|
|
|
446
|
-
### Expand the current input as a JSON
|
|
447
|
+
### Expand the current input as a JSON plan (macOS)
|
|
447
448
|
|
|
448
|
-
Same behavior as **Expand Current Input (
|
|
449
|
+
Same behavior as **Expand Current Input (Plan)** (F7), but pretty-printed JSON:
|
|
449
450
|
|
|
450
451
|
```json
|
|
451
452
|
{
|
|
452
453
|
"expert_role": "Act as a …",
|
|
453
|
-
"
|
|
454
|
-
"
|
|
455
|
-
"
|
|
456
|
-
"
|
|
457
|
-
"
|
|
454
|
+
"plan_name": "...",
|
|
455
|
+
"status": "Draft",
|
|
456
|
+
"input": "...",
|
|
457
|
+
"summary": "...",
|
|
458
|
+
"technical_context": ["…"],
|
|
459
|
+
"constitution_check": ["…"]
|
|
458
460
|
}
|
|
459
461
|
```
|
|
460
462
|
|
|
461
|
-
`loop` is omitted when the input has no iteration details.
|
|
462
|
-
|
|
463
463
|
1. Focus the Cursor chat input and type a rough request. Do not send it.
|
|
464
464
|
2. Press **F6**.
|
|
465
|
-
3. Review the JSON
|
|
465
|
+
3. Review the JSON plan in the input. The message is not sent.
|
|
466
466
|
|
|
467
467
|
### Rewrite a selection in the editor
|
|
468
468
|
|
|
@@ -492,12 +492,12 @@ If the clipboard is empty, the extension shows an error and does not call Ollama
|
|
|
492
492
|
|
|
493
493
|
| Command | Default shortcut | Context |
|
|
494
494
|
| --- | --- | --- |
|
|
495
|
-
| **Rewrite Current Input** | `Ctrl+Shift+Alt+P` or `F8` | Global.
|
|
496
|
-
| **
|
|
497
|
-
| **
|
|
498
|
-
| **Expand Current Input (
|
|
499
|
-
| **Expand Current Input (
|
|
500
|
-
| **Suggest Next Prompt** | `Ctrl+Shift+Alt+N` or `F12` | Global. Next
|
|
495
|
+
| **Rewrite Current Input** | `Ctrl+Shift+Alt+P` or `F8` | Global. Makes the same idea coherent |
|
|
496
|
+
| **Specify Current Input** | `Ctrl+Shift+Alt+E` or `F9` | Global. Spec Kit specify (markdown) |
|
|
497
|
+
| **Specify Current Input (JSON)** | `Ctrl+Shift+Alt+J` or `F10` | Global. Spec Kit specify (JSON) |
|
|
498
|
+
| **Expand Current Input (Plan)** | `F7` | Global. Spec Kit plan (markdown) |
|
|
499
|
+
| **Expand Current Input (Plan JSON)** | `F6` | Global. Spec Kit plan (JSON) |
|
|
500
|
+
| **Suggest Next Prompt** | `Ctrl+Shift+Alt+N` or `F12` | Global. Next Spec Kit–aware prompt from last chat |
|
|
501
501
|
| **Rewrite Prompt** | `Ctrl+Alt+Shift+R` (macOS: `Cmd+Alt+Shift+R`) | Editor focused |
|
|
502
502
|
| **Rewrite Clipboard Prompt** | `Ctrl+Alt+Shift+C` (macOS: `Cmd+Alt+Shift+C`) | Global |
|
|
503
503
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@infosuweb/prompt-rewriter",
|
|
3
3
|
"displayName": "Prompt Rewriter",
|
|
4
4
|
"description": "Rewrite a selected prompt so it is clearer and more precise, without adding new ideas.",
|
|
5
|
-
"version": "0.14.
|
|
5
|
+
"version": "0.14.5",
|
|
6
6
|
"publisher": "suweb",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|
|
@@ -52,7 +52,8 @@
|
|
|
52
52
|
"onCommand:promptRewriter.selectOllamaModel",
|
|
53
53
|
"onCommand:promptRewriter.selectLlmBackend",
|
|
54
54
|
"onCommand:promptRewriter.selectActiveModel",
|
|
55
|
-
"onCommand:promptRewriter.importHermesSettings"
|
|
55
|
+
"onCommand:promptRewriter.importHermesSettings",
|
|
56
|
+
"onCommand:promptRewriter.copyUsageMetricsSummary"
|
|
56
57
|
],
|
|
57
58
|
"main": "./out/extension.js",
|
|
58
59
|
"contributes": {
|
|
@@ -97,22 +98,22 @@
|
|
|
97
98
|
},
|
|
98
99
|
{
|
|
99
100
|
"command": "promptRewriter.expandCurrentInput",
|
|
100
|
-
"title": "
|
|
101
|
+
"title": "Specify Current Input",
|
|
101
102
|
"category": "Prompt Rewriter"
|
|
102
103
|
},
|
|
103
104
|
{
|
|
104
105
|
"command": "promptRewriter.expandJsonCurrentInput",
|
|
105
|
-
"title": "
|
|
106
|
+
"title": "Specify Current Input (JSON)",
|
|
106
107
|
"category": "Prompt Rewriter"
|
|
107
108
|
},
|
|
108
109
|
{
|
|
109
110
|
"command": "promptRewriter.expandLoopCurrentInput",
|
|
110
|
-
"title": "Expand Current Input (
|
|
111
|
+
"title": "Expand Current Input (Plan)",
|
|
111
112
|
"category": "Prompt Rewriter"
|
|
112
113
|
},
|
|
113
114
|
{
|
|
114
115
|
"command": "promptRewriter.expandLoopJsonCurrentInput",
|
|
115
|
-
"title": "Expand Current Input (
|
|
116
|
+
"title": "Expand Current Input (Plan JSON)",
|
|
116
117
|
"category": "Prompt Rewriter"
|
|
117
118
|
},
|
|
118
119
|
{
|
|
@@ -139,6 +140,11 @@
|
|
|
139
140
|
"command": "promptRewriter.importHermesSettings",
|
|
140
141
|
"title": "Import Hermes Model Settings",
|
|
141
142
|
"category": "Prompt Rewriter"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"command": "promptRewriter.copyUsageMetricsSummary",
|
|
146
|
+
"title": "Copy Usage Metrics Summary",
|
|
147
|
+
"category": "Prompt Rewriter"
|
|
142
148
|
}
|
|
143
149
|
],
|
|
144
150
|
"keybindings": [
|
|
@@ -366,37 +372,47 @@
|
|
|
366
372
|
"promptRewriter.includeLastChatResponse": {
|
|
367
373
|
"type": "boolean",
|
|
368
374
|
"default": true,
|
|
369
|
-
"description": "When true,
|
|
375
|
+
"description": "When true, Plan modes (F6/F7) include chat history from Cursor agent transcripts: the current conversation (user + assistant turns) plus older project transcripts when the character budget allows. F9/F10 Specify always skip chat history. F8 Rewrite always skips chat history. F12 Suggest Next always loads it."
|
|
370
376
|
},
|
|
371
377
|
"promptRewriter.rewriteSystemPromptRules": {
|
|
372
378
|
"type": "string",
|
|
373
379
|
"default": "",
|
|
374
380
|
"editPresentation": "multilineText",
|
|
375
|
-
"description": "Custom system prompt for Rewrite Current Input (F8). When empty, the built-in
|
|
381
|
+
"description": "Custom system prompt for Rewrite Current Input (F8). When empty, the built-in rules make the same idea coherent without a new task, and always prefix a context-grounded expert agent persona. Editable from the Rules tab."
|
|
376
382
|
},
|
|
377
383
|
"promptRewriter.expandSystemPromptRules": {
|
|
378
384
|
"type": "string",
|
|
379
385
|
"default": "",
|
|
380
386
|
"editPresentation": "multilineText",
|
|
381
|
-
"description": "Custom system prompt for
|
|
387
|
+
"description": "Custom system prompt for Specify Current Input (F9). When empty, the built-in rules write a complete spec-kit /speckit-specify feature specification (spec.md) after F8, with a context-grounded Act as a … expert role line. Editable from the Rules tab."
|
|
382
388
|
},
|
|
383
389
|
"promptRewriter.expandJsonSystemPromptRules": {
|
|
384
390
|
"type": "string",
|
|
385
391
|
"default": "",
|
|
386
392
|
"editPresentation": "multilineText",
|
|
387
|
-
"description": "Custom system prompt for
|
|
393
|
+
"description": "Custom system prompt for Specify Current Input (JSON) (F10). When empty, the built-in Spec Kit /speckit-specify JSON rules are used, including a required expert_role (Act as a …). Editable from the Rules tab."
|
|
388
394
|
},
|
|
389
395
|
"promptRewriter.loopSystemPromptRules": {
|
|
390
396
|
"type": "string",
|
|
391
397
|
"default": "",
|
|
392
398
|
"editPresentation": "multilineText",
|
|
393
|
-
"description": "Custom system prompt for Expand Current Input (
|
|
399
|
+
"description": "Custom system prompt for Expand Current Input (Plan) (F7). When empty, the built-in Spec Kit /speckit-plan rules are used, including a context-grounded Act as a … expert role line. Editable from the Rules tab."
|
|
394
400
|
},
|
|
395
401
|
"promptRewriter.loopJsonSystemPromptRules": {
|
|
396
402
|
"type": "string",
|
|
397
403
|
"default": "",
|
|
398
404
|
"editPresentation": "multilineText",
|
|
399
|
-
"description": "Custom system prompt for Expand Current Input (
|
|
405
|
+
"description": "Custom system prompt for Expand Current Input (Plan JSON) (F6). When empty, the built-in Spec Kit /speckit-plan JSON rules are used, including a required expert_role (Act as a …). Editable from the Rules tab."
|
|
406
|
+
},
|
|
407
|
+
"promptRewriter.shareUsageMetrics": {
|
|
408
|
+
"type": "boolean",
|
|
409
|
+
"default": false,
|
|
410
|
+
"description": "When true, record anonymous usage metrics (command id, success/failure, extension version, platform, LLM backend). Never records prompt text, API keys, or personal data. See docs/usage-metrics.md."
|
|
411
|
+
},
|
|
412
|
+
"promptRewriter.usageMetricsEndpoint": {
|
|
413
|
+
"type": "string",
|
|
414
|
+
"default": "",
|
|
415
|
+
"description": "Optional HTTPS URL to POST anonymous usage event batches when shareUsageMetrics is enabled. Empty keeps metrics local only."
|
|
400
416
|
}
|
|
401
417
|
}
|
|
402
418
|
}
|
|
@@ -417,7 +433,8 @@
|
|
|
417
433
|
"release:minor": "npm version minor -m \"chore(release): %s\"",
|
|
418
434
|
"release:major": "npm version major -m \"chore(release): %s\"",
|
|
419
435
|
"package": "node scripts/package-vsix.mjs",
|
|
420
|
-
"publish:npm": "npm run package && npm publish --access public --tag rc"
|
|
436
|
+
"publish:npm": "npm run package && npm publish --access public --tag rc",
|
|
437
|
+
"publish:npm:stable": "npm run check:changelog && npm run package && npm publish --access public"
|
|
421
438
|
},
|
|
422
439
|
"devDependencies": {
|
|
423
440
|
"@eslint/js": "^9.34.0",
|
|
Binary file
|