@i4ctime/q-ring 0.9.4 → 0.9.6

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
@@ -31,14 +31,17 @@ Stop pasting API keys into plain-text `.env` files or wrestling with clunky secr
31
31
  q-ring is designed to be installed globally so it's available anywhere in your terminal. Pick your favorite package manager:
32
32
 
33
33
  ```bash
34
- # npm
35
- npm install -g @i4ctime/q-ring
36
-
37
34
  # pnpm (recommended)
38
35
  pnpm add -g @i4ctime/q-ring
39
36
 
37
+ # npm
38
+ npm install -g @i4ctime/q-ring
39
+
40
40
  # yarn
41
41
  yarn global add @i4ctime/q-ring
42
+
43
+ # Homebrew (macOS / Linux)
44
+ brew install i4ctime/tap/qring
42
45
  ```
43
46
 
44
47
  ## ⚡ Quick Start
@@ -794,6 +797,21 @@ Add to `~/.claude/claude_desktop_config.json`:
794
797
  }
795
798
  ```
796
799
 
800
+ ## Cursor Plugin
801
+
802
+ The **q-ring Cursor Plugin** brings quantum secret management directly into your IDE with rules, skills, agents, commands, hooks, and a built-in MCP connector.
803
+
804
+ | Component | What it does |
805
+ |-----------|-------------|
806
+ | **3 Rules** | Always-on guidance: never hardcode secrets, use q-ring for all ops, warn about `.env` files |
807
+ | **4 Skills** | Auto-triggered by context: secret management, scanning, rotation, project onboarding |
808
+ | **2 Agents** | `security-auditor` (proactive monitoring) and `secret-ops` (day-to-day assistant) |
809
+ | **5 Commands** | `/qring:scan-secrets`, `/qring:health-check`, `/qring:rotate-expired`, `/qring:setup-project`, `/qring:teleport-secrets` |
810
+ | **2 Hooks** | `afterFileEdit` (lint scan), `sessionStart` (project context) |
811
+ | **MCP Connector** | Auto-connects to `qring-mcp` via stdio — all 44 tools available |
812
+
813
+ Install from the Cursor marketplace or see [`cursor-plugin/README.md`](cursor-plugin/README.md) for manual setup.
814
+
797
815
  ## Architecture
798
816
 
799
817
  ```
package/dist/index.js CHANGED
@@ -397,7 +397,14 @@ function parseDotenv(content) {
397
397
  if (value.startsWith('"') && value.endsWith('"') || value.startsWith("'") && value.endsWith("'")) {
398
398
  value = value.slice(1, -1);
399
399
  }
400
- value = value.replace(/\\n/g, "\n").replace(/\\r/g, "\r").replace(/\\t/g, " ").replace(/\\\\/g, "\\").replace(/\\"/g, '"');
400
+ const escapeMap = {
401
+ n: "\n",
402
+ r: "\r",
403
+ t: " ",
404
+ "\\": "\\",
405
+ '"': '"'
406
+ };
407
+ value = value.replace(/\\([nrt"\\])/g, (_, ch) => escapeMap[ch] ?? ch);
401
408
  if (value.includes("#") && !line.includes('"') && !line.includes("'")) {
402
409
  value = value.split("#")[0].trim();
403
410
  }