hyperflash 1.1.1__tar.gz → 1.2.0__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperflash
3
- Version: 1.1.1
3
+ Version: 1.2.0
4
4
  Summary: Universal Engineering Reliability Runtime & Multi-Agent Verification Guardrails
5
5
  Author: Virat Ghatge
6
6
  License: MIT
@@ -48,7 +48,7 @@ Dynamic: license-file
48
48
  [![Forks](https://img.shields.io/github/forks/Virat-Ghatge/hyperflash?style=for-the-badge&logo=github&color=60A5FA)](https://github.com/Virat-Ghatge/hyperflash/network/members)
49
49
  [![Issues](https://img.shields.io/github/issues/Virat-Ghatge/hyperflash?style=for-the-badge&color=34D399)](https://github.com/Virat-Ghatge/hyperflash/issues)
50
50
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=for-the-badge)](LICENSE)
51
- [![Platforms](https://img.shields.io/badge/Harnesses-Antigravity%20|%20Claude%20Code%20|%20OpenCode%20|%20Cursor%20|%20CLI-FF5722.svg?style=for-the-badge)](#-multi-platform-setup-guides)
51
+ [![Platforms](https://img.shields.io/badge/Harnesses-Antigravity%20|%20Claude%20Code%20|%20OpenCode%20|%20Cursor%20|%20Windsurf%20|%20Cline%20|%20Roo-FF5722.svg?style=for-the-badge)](#-multi-platform-setup-guides)
52
52
  [![Engines](https://img.shields.io/badge/Engines-Gemini%20|%20Claude%20|%20OpenAI%20|%20DeepSeek%20|%20Ollama-8E75C2.svg?style=for-the-badge)](#-universal-model--harness-compatibility)
53
53
  [![Verification](https://img.shields.io/badge/Verification-9--Tier%20Deterministic%20Hierarchy-00C853.svg?style=for-the-badge)](#-the-9-tier-verification-hierarchy)
54
54
 
@@ -181,18 +181,35 @@ pip install hyperflash
181
181
  Scaffold your preferred IDE or agent harness in 1 second:
182
182
 
183
183
  ```bash
184
- # Configure Cursor, Claude Code, Windsurf, Git Hooks, Antigravity, and OpenCode in one command
184
+ # Configure Cursor, Claude Code, Windsurf, Git Hooks, Antigravity, OpenCode, Cline, and Roo Code in one command
185
185
  hyperflash init
186
186
 
187
- # Or target your specific harness:
188
- hyperflash init --target cursor
189
- hyperflash init --target claude
190
- hyperflash init --target windsurf
187
+ # Configure globally across ALL workspaces (user home directory):
188
+ # Sets up OpenCode, Claude Code, Windsurf, Cursor, Cline, Roo Code, and Antigravity globally
189
+ hyperflash init --global # or: hyperflash init -g
190
+
191
+ # Or target your specific harness globally or locally:
192
+ hyperflash init --target claude --global
193
+ hyperflash init --target windsurf --global
194
+ hyperflash init --target opencode --global
195
+ hyperflash init --target cursor --global
196
+ hyperflash init --target cline --global
197
+ hyperflash init --target roo --global
191
198
  hyperflash init --target git
192
199
  hyperflash init --target antigravity
193
- hyperflash init --target opencode
194
200
  ```
195
201
 
202
+ > [!TIP]
203
+ > **Global Configuration Mode (`--global` / `-g`):**
204
+ > When running `hyperflash init --global` (or `-g`), HyperFlash configures your user home directory rather than the current working folder:
205
+ > - **Claude Code:** Registers global constitution in `~/.claude/CLAUDE.md`, agent persona in `~/.claude/agents/hyperflash.md`, slash command in `~/.claude/commands/hyperflash.md`, and stdio MCP server in `~/.claude.json`. (Workspace mode also configures `.mcp.json`).
206
+ > - **Windsurf:** Writes primary global memory rules to `~/.codeium/windsurf/memories/global_rules.md`, primary global MCP to `~/.codeium/windsurf/mcp_config.json`, and fallback configs to `~/.windsurf/` and `~/.windsurfrules`.
207
+ > - **OpenCode:** Registers agent markdown in `~/.config/opencode/agents/hyperflash.md` and agent configuration & MCP server in `~/.config/opencode/opencode.json`.
208
+ > - **Cursor:** Writes global rules to `~/.cursorrules`, agent rules to `~/.cursor/rules/hyperflash.mdc`, and MCP to `~/.cursor/mcp.json`.
209
+ > - **Cline & Roo Code:** Automatically locates and merges MCP settings into VS Code globalStorage (`saoudrizwan.claude-dev` and `rooveterinaryinc.roo-cline`) across Windows, macOS, and Linux, alongside rules in `~/.clinerules` and `~/.roorules`.
210
+ > - **Antigravity:** Installs skills, agents, and rules globally in `~/.gemini/config/`.
211
+ > You only need to run this once—no per-repository initialization required!
212
+
196
213
  ### 🚀 Universal Agent Launcher
197
214
  Launch your preferred coding environment with the native HyperFlash agent persona pre-activated:
198
215
 
@@ -214,7 +231,19 @@ hyperflash launch windsurf
214
231
  ### 🔌 Universal MCP Server Integration
215
232
  HyperFlash features a built-in Model Context Protocol (MCP) server running over stdio with **zero external dependencies**. Adding it gives your agent surgical safe patching (`hyperflash_safe_patch`), workspace AST symbol inspection (`hyperflash_get_symbol_graph`), and deterministic multi-tier verification (`hyperflash_verify`):
216
233
 
217
- #### In Cursor (`.cursor/mcp.json`):
234
+ #### In Cursor (`.cursor/mcp.json` or `~/.cursor/mcp.json`):
235
+ ```json
236
+ {
237
+ "mcpServers": {
238
+ "hyperflash": {
239
+ "command": "hyperflash",
240
+ "args": ["mcp"]
241
+ }
242
+ }
243
+ }
244
+ ```
245
+
246
+ #### In Claude Code (`~/.claude.json` or `.mcp.json`):
218
247
  ```json
219
248
  {
220
249
  "mcpServers": {
@@ -226,7 +255,7 @@ HyperFlash features a built-in Model Context Protocol (MCP) server running over
226
255
  }
227
256
  ```
228
257
 
229
- #### In Claude Code (`~/.claude/claude.json` or `.claude.json`):
258
+ #### In Windsurf (`~/.codeium/windsurf/mcp_config.json` or `.windsurf/mcp.json`):
230
259
  ```json
231
260
  {
232
261
  "mcpServers": {
@@ -238,7 +267,7 @@ HyperFlash features a built-in Model Context Protocol (MCP) server running over
238
267
  }
239
268
  ```
240
269
 
241
- #### In Windsurf (`.windsurf/mcp.json`):
270
+ #### In OpenCode (`~/.config/opencode/opencode.json` or `opencode.json`):
242
271
  ```json
243
272
  {
244
273
  "mcpServers": {
@@ -250,7 +279,7 @@ HyperFlash features a built-in Model Context Protocol (MCP) server running over
250
279
  }
251
280
  ```
252
281
 
253
- #### In OpenCode (`opencode.json`):
282
+ #### In Cline & Roo Code (`cline_mcp_settings.json`):
254
283
  ```json
255
284
  {
256
285
  "mcpServers": {
@@ -317,16 +346,28 @@ HyperFlash integrates directly into the Antigravity Desktop IDE and the terminal
317
346
 
318
347
  ### 2. Claude Code (Anthropic CLI)
319
348
 
320
- You can bring HyperFlash's invariants into Claude Code using project memory, pre/post tool hooks, and native slash commands.
349
+ You can bring HyperFlash's invariants into Claude Code using project memory, pre/post tool hooks, agent definitions, and native slash commands.
321
350
 
322
351
  #### Step 1: Automatic Setup via CLI
323
352
  ```bash
353
+ # Option A: Global setup (recommended) - active across all Claude Code sessions:
354
+ hyperflash init --target claude --global
355
+
356
+ # Option B: Workspace setup - scoped to current project:
324
357
  hyperflash init --target claude
325
358
  ```
326
359
  This automatically configures:
327
- - `CLAUDE.md`: System reliability constitution.
328
- - `.claude.json`: Local stdio MCP server for safe patching and AST symbol graphs.
329
- - `.claude/commands/hyperflash.md`: Dedicated agent slash command.
360
+ - **Global (`--global`):**
361
+ - `~/.claude/CLAUDE.md`: System reliability constitution.
362
+ - `~/.claude/commands/hyperflash.md`: Dedicated agent slash command.
363
+ - `~/.claude/agents/hyperflash.md`: Native Claude Code subagent persona.
364
+ - `~/.claude.json`: User-level stdio MCP server for safe patching and AST symbol graphs.
365
+ - **Workspace:**
366
+ - `CLAUDE.md`: Repository reliability constitution.
367
+ - `.claude/commands/hyperflash.md`: Workspace slash command.
368
+ - `.claude/agents/hyperflash.md`: Workspace agent persona.
369
+ - `.claude.json`: Project MCP configuration.
370
+ - `.mcp.json`: Standard Claude Code workspace MCP configuration.
330
371
 
331
372
  #### Step 2: Activate HyperFlash in Claude Code
332
373
  Inside any Claude Code terminal session, simply run:
@@ -352,10 +393,20 @@ OpenCode supports dedicated named agents natively. HyperFlash installs as a firs
352
393
 
353
394
  #### Step 1: Automatic Setup via CLI
354
395
  ```bash
396
+ # Option A: Global setup (recommended) - works across all folders on your system:
397
+ hyperflash init --target opencode --global
398
+
399
+ # Option B: Local workspace setup - configures current repository:
355
400
  hyperflash init --target opencode
356
401
  ```
357
- This configures:
402
+
403
+ **Global Setup (`--global`) configures:**
404
+ - `~/.config/opencode/opencode.json`: Declares the global `hyperflash` agent persona and registers the stdio MCP server without overwriting existing agents or servers.
405
+ - `~/.config/opencode/agents/hyperflash.md`: Global markdown agent persona enforcing the 8 Invariants.
406
+
407
+ **Local Setup configures:**
358
408
  - `OPENCODE.md`: OpenCode engineering constitution.
409
+ - `.opencode/agents/hyperflash.md`: Local markdown agent persona.
359
410
  - `.opencode/agents/hyperflash.json`: Dedicated agent persona definition.
360
411
  - `opencode.json`: Declares `agent: "hyperflash"`, registers agent configuration, and wires the `hyperflash` stdio MCP server.
361
412
 
@@ -397,8 +448,13 @@ HyperFlash delivers always-on rule enforcement and tool capabilities for modern
397
448
 
398
449
  #### Step 1: Automatic Setup via CLI
399
450
  ```bash
451
+ # Configure workspace
400
452
  hyperflash init --target cursor # Configures .cursorrules, .cursor/rules/hyperflash.mdc, .cursor/mcp.json
401
453
  hyperflash init --target windsurf # Configures .windsurfrules, .windsurf/rules/hyperflash.md, .windsurf/mcp.json
454
+
455
+ # Or configure globally:
456
+ hyperflash init --target cursor --global # ~/.cursorrules, ~/.cursor/rules/hyperflash.mdc, ~/.cursor/mcp.json
457
+ hyperflash init --target windsurf --global # ~/.codeium/windsurf/memories/global_rules.md, mcp_config.json, ~/.windsurf/
402
458
  ```
403
459
 
404
460
  #### Step 2: Launch IDE with HyperFlash
@@ -409,12 +465,38 @@ hyperflash launch windsurf
409
465
 
410
466
  #### What Gets Configured:
411
467
  - **Cursor Rules MDC (`.cursor/rules/hyperflash.mdc`):** Enforces `alwaysApply: true` so Cursor Composer and Agent mode strictly observe the 8 Invariants across all edits.
412
- - **Windsurf Rules (`.windsurf/rules/hyperflash.md` & `.windsurfrules`):** Guides Cascade Agent with zero-elision and ground-before-mutating constraints.
468
+ - **Windsurf Global Rules (`~/.codeium/windsurf/memories/global_rules.md`):** Permanent global memory rules for Cascade Agent with zero-elision and ground-before-mutating constraints.
469
+ - **Windsurf MCP (`~/.codeium/windsurf/mcp_config.json` & `.windsurf/mcp.json`):** Wires the local HyperFlash stdio MCP server.
413
470
  - **MCP Integration (`mcp.json`):** Exposes `hyperflash_safe_patch`, `hyperflash_verify`, and `hyperflash_get_symbol_graph` directly to the IDE agent.
414
471
 
415
472
  ---
416
473
 
417
- ### 5. Git Pre-Commit & CI/CD Quality Gates
474
+ ### 5. Cline & Roo Code (VS Code Extensions & CLI)
475
+
476
+ HyperFlash provides seamless guardrail enforcement and MCP server integration for **Cline** (`saoudrizwan.claude-dev`) and **Roo Code** (`rooveterinaryinc.roo-cline`).
477
+
478
+ #### Step 1: Automatic Setup via CLI
479
+ ```bash
480
+ # Workspace setup (creates .clinerules or .roorules, wires MCP settings):
481
+ hyperflash init --target cline
482
+ hyperflash init --target roo
483
+
484
+ # Global setup (wires VS Code globalStorage MCP settings and global rules):
485
+ hyperflash init --target cline --global
486
+ hyperflash init --target roo --global
487
+ ```
488
+
489
+ #### What Gets Configured:
490
+ - **VS Code Extension MCP Storage:** HyperFlash automatically resolves the platform-specific `cline_mcp_settings.json` across:
491
+ - **Windows:** `%APPDATA%\Code\User\globalStorage\<extension>\settings\cline_mcp_settings.json`
492
+ - **macOS:** `~/Library/Application Support/Code/User/globalStorage/<extension>/settings/cline_mcp_settings.json`
493
+ - **Linux:** `~/.config/Code/User/globalStorage/<extension>/settings/cline_mcp_settings.json`
494
+ - **CLI:** `~/.cline/data/settings/cline_mcp_settings.json`
495
+ - **Rule Constraints (`.clinerules` & `.roorules`):** Embeds the 8 Watcher Invariants so the agent never elides code, respects task boundaries, and mandates verification before task conclusion.
496
+
497
+ ---
498
+
499
+ ### 6. Git Pre-Commit & CI/CD Quality Gates
418
500
 
419
501
  Enforce HyperFlash invariants automatically on every `git commit` or pull request, preventing elided code and unverified mutations from ever reaching your repository:
420
502