hyperflash 1.1.2__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.2
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,28 +181,32 @@ 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
187
  # Configure globally across ALL workspaces (user home directory):
188
- # Sets up OpenCode (~/.config/opencode/opencode.json), Claude Code (~/.claude.json), and Antigravity globally
188
+ # Sets up OpenCode, Claude Code, Windsurf, Cursor, Cline, Roo Code, and Antigravity globally
189
189
  hyperflash init --global # or: hyperflash init -g
190
190
 
191
191
  # Or target your specific harness globally or locally:
192
+ hyperflash init --target claude --global
193
+ hyperflash init --target windsurf --global
192
194
  hyperflash init --target opencode --global
193
- hyperflash init --target cursor
194
- hyperflash init --target claude
195
- hyperflash init --target windsurf
195
+ hyperflash init --target cursor --global
196
+ hyperflash init --target cline --global
197
+ hyperflash init --target roo --global
196
198
  hyperflash init --target git
197
199
  hyperflash init --target antigravity
198
- hyperflash init --target opencode
199
200
  ```
200
201
 
201
202
  > [!TIP]
202
203
  > **Global Configuration Mode (`--global` / `-g`):**
203
- > When running `hyperflash init --global` (or `-g`), HyperFlash configures your user home directory rather than the current working folder. This means:
204
- > - **OpenCode:** Registers HyperFlash agent persona and MCP server in `~/.config/opencode/opencode.json` so `opencode --agent hyperflash` works anywhere on your system.
205
- > - **Claude Code:** Registers the MCP server in `~/.claude.json` and slash command in `~/.claude/commands/hyperflash.md`.
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`.
206
210
  > - **Antigravity:** Installs skills, agents, and rules globally in `~/.gemini/config/`.
207
211
  > You only need to run this once—no per-repository initialization required!
208
212
 
@@ -227,7 +231,19 @@ hyperflash launch windsurf
227
231
  ### 🔌 Universal MCP Server Integration
228
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`):
229
233
 
230
- #### 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`):
231
247
  ```json
232
248
  {
233
249
  "mcpServers": {
@@ -239,7 +255,7 @@ HyperFlash features a built-in Model Context Protocol (MCP) server running over
239
255
  }
240
256
  ```
241
257
 
242
- #### In Claude Code (`~/.claude/claude.json` or `.claude.json`):
258
+ #### In Windsurf (`~/.codeium/windsurf/mcp_config.json` or `.windsurf/mcp.json`):
243
259
  ```json
244
260
  {
245
261
  "mcpServers": {
@@ -251,7 +267,7 @@ HyperFlash features a built-in Model Context Protocol (MCP) server running over
251
267
  }
252
268
  ```
253
269
 
254
- #### In Windsurf (`.windsurf/mcp.json`):
270
+ #### In OpenCode (`~/.config/opencode/opencode.json` or `opencode.json`):
255
271
  ```json
256
272
  {
257
273
  "mcpServers": {
@@ -263,7 +279,7 @@ HyperFlash features a built-in Model Context Protocol (MCP) server running over
263
279
  }
264
280
  ```
265
281
 
266
- #### In OpenCode (`opencode.json`):
282
+ #### In Cline & Roo Code (`cline_mcp_settings.json`):
267
283
  ```json
268
284
  {
269
285
  "mcpServers": {
@@ -330,16 +346,28 @@ HyperFlash integrates directly into the Antigravity Desktop IDE and the terminal
330
346
 
331
347
  ### 2. Claude Code (Anthropic CLI)
332
348
 
333
- 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.
334
350
 
335
351
  #### Step 1: Automatic Setup via CLI
336
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:
337
357
  hyperflash init --target claude
338
358
  ```
339
359
  This automatically configures:
340
- - `CLAUDE.md`: System reliability constitution.
341
- - `.claude.json`: Local stdio MCP server for safe patching and AST symbol graphs.
342
- - `.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.
343
371
 
344
372
  #### Step 2: Activate HyperFlash in Claude Code
345
373
  Inside any Claude Code terminal session, simply run:
@@ -374,9 +402,11 @@ hyperflash init --target opencode
374
402
 
375
403
  **Global Setup (`--global`) configures:**
376
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.
377
406
 
378
407
  **Local Setup configures:**
379
408
  - `OPENCODE.md`: OpenCode engineering constitution.
409
+ - `.opencode/agents/hyperflash.md`: Local markdown agent persona.
380
410
  - `.opencode/agents/hyperflash.json`: Dedicated agent persona definition.
381
411
  - `opencode.json`: Declares `agent: "hyperflash"`, registers agent configuration, and wires the `hyperflash` stdio MCP server.
382
412
 
@@ -418,8 +448,13 @@ HyperFlash delivers always-on rule enforcement and tool capabilities for modern
418
448
 
419
449
  #### Step 1: Automatic Setup via CLI
420
450
  ```bash
451
+ # Configure workspace
421
452
  hyperflash init --target cursor # Configures .cursorrules, .cursor/rules/hyperflash.mdc, .cursor/mcp.json
422
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/
423
458
  ```
424
459
 
425
460
  #### Step 2: Launch IDE with HyperFlash
@@ -430,12 +465,38 @@ hyperflash launch windsurf
430
465
 
431
466
  #### What Gets Configured:
432
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.
433
- - **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.
434
470
  - **MCP Integration (`mcp.json`):** Exposes `hyperflash_safe_patch`, `hyperflash_verify`, and `hyperflash_get_symbol_graph` directly to the IDE agent.
435
471
 
436
472
  ---
437
473
 
438
- ### 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
439
500
 
440
501
  Enforce HyperFlash invariants automatically on every `git commit` or pull request, preventing elided code and unverified mutations from ever reaching your repository:
441
502