@i4ctime/q-ring 0.10.1 → 0.11.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/README.md CHANGED
@@ -626,9 +626,23 @@ qring agent --once
626
626
 
627
627
  ### Quantum Status Dashboard — Live Monitoring
628
628
 
629
- Launch a real-time dashboard in your browser that visualizes every quantum subsystem at a glance: health summary, decay timers, superposition states, entanglement pairs, active tunnels, anomaly alerts, audit log, and environment detection.
629
+ Launch a real-time dashboard in your browser that turns the entire quantum subsystem into one glanceable page. The dashboard is a single self-contained HTML page served locally — no dependencies, no cloud, no config — and streams updates every 5 seconds via Server-Sent Events while preserving search input and scroll position across ticks.
630
630
 
631
- The dashboard is a self-contained HTML page served locally. Data streams in via Server-Sent Events and updates every 5 seconds — no dependencies, no cloud, no config.
631
+ What you get:
632
+
633
+ - **KPI strip** — total secrets, detected environment, protected count, active approvals, hooks, 24-hour reads, and live anomaly count.
634
+ - **Health summary** — donut chart of healthy / stale / expired / no-decay secrets plus per-scope counts (global / project / team / org).
635
+ - **Environment** — wavefunction collapse details: detected env, source, branch, and any project context.
636
+ - **Manifest** — `.q-ring.json` summary with declared / required / missing / expired / stale keys.
637
+ - **Policy** — at-a-glance view of MCP, exec, and secret policies (allow/deny tools, deny keys/tags, allow/deny commands, approval & rotation requirements).
638
+ - **Secrets table** — searchable, sortable view of every secret (key, scope, env, type, decay, tags, last read), with quick chips for `expired`, `stale`, and `protected` filters. Press `/` to focus the search box.
639
+ - **Quantum cards** — decay timers, superposition states, entanglement pairs, and active quantum tunnels.
640
+ - **Approvals & hooks** — live list of valid (and tampered) approval grants and every registered hook with its match summary.
641
+ - **Agent memory** — count of encrypted memory keys persisted at `~/.config/q-ring/agent-memory.enc`.
642
+ - **Anomaly alerts** — burst reads, off-hours access, tampered audit chain, and other suspicious patterns.
643
+ - **Audit log (24h)** — filterable feed with action chips (`read`/`write`/`delete`/`export`), source chips (`cli`/`mcp`/`hook`/`agent`), and a free-text filter.
644
+
645
+ Top-bar controls let you **pause** SSE updates (handy while reading the audit feed), **refresh** on demand, or jump to the raw JSON snapshot at `/api/status`. Keyboard shortcuts: `/` focus secrets search · `P` pause · `R` refresh.
632
646
 
633
647
  ```bash
634
648
  # Open the dashboard (auto-launches your browser)
@@ -727,7 +741,7 @@ q-ring includes a full MCP server with 44 tools for AI agent integration.
727
741
  | `verify_audit_chain` | Verify tamper-evident hash chain integrity |
728
742
  | `export_audit` | Export audit events in jsonl, json, or csv format |
729
743
  | `health_check` | Full health report |
730
- | `status_dashboard` | Launch the quantum status dashboard via MCP |
744
+ | `status_dashboard` | Launch the quantum status dashboard (SSE) — live KPIs, health, secrets table, manifest, policy, approvals, hooks, agent memory, anomalies, and audit feed |
731
745
  | `agent_scan` | Run autonomous agent scan |
732
746
 
733
747
  ### Governance & Policy Tools
@@ -797,21 +811,66 @@ Add to `~/.claude/claude_desktop_config.json`:
797
811
  }
798
812
  ```
799
813
 
800
- ## Cursor Plugin
814
+ ## Editor Plugins
815
+
816
+ The q-ring repo ships three first-party editor packs — each one adds rules/steering, agents, commands, skills, hooks, and the MCP connector to its host editor.
817
+
818
+ | Plugin | Editor | Highlights |
819
+ |--------|--------|-----------|
820
+ | [`cursor-plugin/`](cursor-plugin/README.md) | [Cursor](https://cursor.com) | 3 rules, 5 skills, 2 agents, 8 slash commands, 3 hooks, MCP autoconnect |
821
+ | [`kiro-plugin/`](kiro-plugin/README.md) | [Kiro](https://kiro.dev) | Official [Power](https://kiro.dev/docs/powers/create/) layout: `POWER.md`, root `mcp.json`, `steering/`, `hooks/`; or flatten with `plugin:sync:kiro` |
822
+ | [`claude-code-plugin/`](claude-code-plugin/README.md) | [Claude Code](https://docs.claude.com/en/docs/claude-code/overview) | `CLAUDE.md` memory, project `.mcp.json`, 2 subagents, 8 slash commands, 5 skills, 3 hook scripts |
823
+
824
+ ### Cursor Plugin
801
825
 
802
826
  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
827
 
804
828
  | Component | What it does |
805
829
  |-----------|-------------|
806
830
  | **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 |
831
+ | **5 Skills** | Auto-triggered by context: secret management, scanning, rotation, project onboarding, exec-with-secrets |
808
832
  | **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) |
833
+ | **8 Commands** | `/qring:scan-secrets`, `/qring:health-check`, `/qring:rotate-expired`, `/qring:setup-project`, `/qring:teleport-secrets`, `/qring:dashboard`, `/qring:exec-safe`, `/qring:analyze` |
834
+ | **3 Hooks** | `afterFileEdit` (lint scan), `sessionStart` (project context), `beforeShellExecution` (`.env` guard) |
811
835
  | **MCP Connector** | Auto-connects to `qring-mcp` via stdio — all 44 tools available |
812
836
 
813
837
  Install from the Cursor marketplace or see [`cursor-plugin/README.md`](cursor-plugin/README.md) for manual setup.
814
838
 
839
+ ### Kiro Plugin (Power)
840
+
841
+ The [`kiro-plugin/`](kiro-plugin/) directory is a Kiro **Power** per [Create powers](https://kiro.dev/docs/powers/create/): `POWER.md` (metadata, onboarding, steering map), root [`mcp.json`](kiro-plugin/mcp.json) (MCP server must match the server name referenced in the power), and [`steering/`](kiro-plugin/steering/) for workflows. Install from Kiro → **Powers** → **Add power from Local Path** and select `kiro-plugin`, or publish the folder on GitHub and use **Add power from GitHub**.
842
+
843
+ Always-on steering blocks hardcoded secrets and routes everything through q-ring; `manual` steering files act as agent personas (`#qring-secret-ops`, `#qring-security-auditor`), skill packs, and slash-style commands (`#qring-cmd-scan-secrets`, etc.). Optional hooks live in `hooks/` for copy into `.kiro/hooks/`.
844
+
845
+ ```bash
846
+ # Alternative: flatten into ~/.kiro (settings + steering + hooks)
847
+ pnpm run plugin:sync:kiro
848
+
849
+ # Or scope to a single project
850
+ pnpm run plugin:sync:kiro -- /path/to/your/project/.kiro
851
+ ```
852
+
853
+ See [`kiro-plugin/README.md`](kiro-plugin/README.md) for the full breakdown.
854
+
855
+ ### Claude Code Plugin
856
+
857
+ For [Claude Code](https://docs.claude.com/en/docs/claude-code/overview), q-ring ships a `CLAUDE.md` memory file, a project-scoped `.mcp.json`, two [subagents](https://docs.claude.com/en/docs/claude-code/sub-agents) (`secret-ops`, `security-auditor`), eight [slash commands](https://docs.claude.com/en/docs/claude-code/slash-commands) (`/qring-scan-secrets`, `/qring-health-check`, …), five [skills](https://docs.claude.com/en/docs/claude-code/skills), and three [hooks](https://docs.claude.com/en/docs/claude-code/hooks) (post-edit lint reminder, pre-Bash `.env` guard, session-start context primer).
858
+
859
+ ```bash
860
+ # Install into the current project ($PWD)
861
+ pnpm run plugin:sync:claude
862
+
863
+ # Install agents/commands/skills/hooks at user scope (~/.claude)
864
+ pnpm run plugin:sync:claude -- --user
865
+
866
+ # Or target a specific project
867
+ pnpm run plugin:sync:claude -- /path/to/your/project
868
+ ```
869
+
870
+ Existing `CLAUDE.md`, `.mcp.json`, or `.claude/settings.json` files are never silently overwritten — the script writes a `<filename>.qring-template` next to them so you can merge by hand. Pass `--force` to overwrite.
871
+
872
+ See [`claude-code-plugin/README.md`](claude-code-plugin/README.md) for the full breakdown.
873
+
815
874
  ## Architecture
816
875
 
817
876
  ```
@@ -886,7 +945,11 @@ Optional per-project configuration:
886
945
  - Run **`pnpm run lint`**, **`pnpm run typecheck`**, and **`pnpm run test:ci`** before opening a PR.
887
946
  - Tests or sandboxes can point the audit log elsewhere with **`QRING_AUDIT_DIR`** (directory is created if missing); default is `~/.config/q-ring/audit.jsonl`.
888
947
  - Optional local pre-commit: **`qring hook:install`** (uses this package’s `precommit` hook when `qring` is on your `PATH`).
889
- - After changing the Cursor plugin under **`cursor-plugin/`**, run **`pnpm run plugin:sync`** to copy it to `~/.cursor/plugins/local/my-plugin` (or pass a custom path). See also [docs/cli-mcp-parity.md](docs/cli-mcp-parity.md).
948
+ - After changing one of the editor plugins:
949
+ - **Cursor:** `pnpm run plugin:sync` copies `cursor-plugin/` to `~/.cursor/plugins/local/my-plugin` (or pass a custom path).
950
+ - **Kiro:** `pnpm run plugin:sync:kiro` copies `kiro-plugin/mcp.json` → `~/.kiro/settings/mcp.json`, plus `steering/` and `hooks/` (or pass a project `.kiro` path). Prefer adding `kiro-plugin/` as a [Power](https://kiro.dev/docs/powers/create/) from the Powers panel instead.
951
+ - **Claude Code:** `pnpm run plugin:sync:claude` copies `claude-code-plugin/` into the current directory (or pass a project path; add `--user` to install at `~/.claude/`).
952
+ - See also [docs/cli-mcp-parity.md](docs/cli-mcp-parity.md).
890
953
 
891
954
  ## 📜 License
892
955