@infosuweb/prompt-rewriter 0.14.2 → 0.14.3

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 CHANGED
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.14.3] - 2026-09-01
11
+
12
+ ### Added
13
+
14
+ - Opt-in anonymous usage metrics — command invocations (F6–F12, rewrite selection/clipboard), first-run consent prompt, Rules → Privacy toggle, local aggregates, optional HTTPS endpoint, `Copy Usage Metrics Summary` command; documented in `docs/usage-metrics.md`.
15
+
16
+ ### Fixed
17
+
18
+ - F8 rewrite validation — positive invention detection with retry and safe fallback instead of brittle token-recall rejections.
19
+ - Preserve attached files, screenshots, and pasted console error blocks during rewrite (verbatim placeholders and extended attachment detection).
20
+ - 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).
21
+
10
22
  ## [0.14.2] - 2026-09-01
11
23
 
12
24
  ### Added
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.2",
5
+ "version": "0.14.3",
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": {
@@ -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": [
@@ -361,6 +367,16 @@
361
367
  "default": "",
362
368
  "editPresentation": "multilineText",
363
369
  "description": "Custom system prompt for Expand Current Input (Loop JSON) (F6). When empty, the built-in JSON loop rules are used, including a required expert_role (Act as a …). Editable from the Rules tab."
370
+ },
371
+ "promptRewriter.shareUsageMetrics": {
372
+ "type": "boolean",
373
+ "default": false,
374
+ "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."
375
+ },
376
+ "promptRewriter.usageMetricsEndpoint": {
377
+ "type": "string",
378
+ "default": "",
379
+ "description": "Optional HTTPS URL to POST anonymous usage event batches when shareUsageMetrics is enabled. Empty keeps metrics local only."
364
380
  }
365
381
  }
366
382
  }