hyperflash 1.1.2__tar.gz → 1.2.1__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.
- {hyperflash-1.1.2 → hyperflash-1.2.1}/PKG-INFO +82 -21
- hyperflash-1.1.2/src/hyperflash.egg-info/PKG-INFO → hyperflash-1.2.1/README.md +781 -745
- {hyperflash-1.1.2 → hyperflash-1.2.1}/pyproject.toml +1 -1
- {hyperflash-1.1.2 → hyperflash-1.2.1}/src/hyperflash/__init__.py +1 -1
- {hyperflash-1.1.2 → hyperflash-1.2.1}/src/hyperflash/cli.py +13 -3
- {hyperflash-1.1.2 → hyperflash-1.2.1}/src/hyperflash/polyglot.py +276 -34
- hyperflash-1.1.2/README.md → hyperflash-1.2.1/src/hyperflash.egg-info/PKG-INFO +806 -720
- {hyperflash-1.1.2 → hyperflash-1.2.1}/tests/test_cli.py +130 -2
- {hyperflash-1.1.2 → hyperflash-1.2.1}/tests/test_core.py +127 -7
- {hyperflash-1.1.2 → hyperflash-1.2.1}/LICENSE +0 -0
- {hyperflash-1.1.2 → hyperflash-1.2.1}/setup.cfg +0 -0
- {hyperflash-1.1.2 → hyperflash-1.2.1}/src/hyperflash/core.py +0 -0
- {hyperflash-1.1.2 → hyperflash-1.2.1}/src/hyperflash/mcp_server.py +0 -0
- {hyperflash-1.1.2 → hyperflash-1.2.1}/src/hyperflash.egg-info/SOURCES.txt +0 -0
- {hyperflash-1.1.2 → hyperflash-1.2.1}/src/hyperflash.egg-info/dependency_links.txt +0 -0
- {hyperflash-1.1.2 → hyperflash-1.2.1}/src/hyperflash.egg-info/entry_points.txt +0 -0
- {hyperflash-1.1.2 → hyperflash-1.2.1}/src/hyperflash.egg-info/requires.txt +0 -0
- {hyperflash-1.1.2 → hyperflash-1.2.1}/src/hyperflash.egg-info/top_level.txt +0 -0
- {hyperflash-1.1.2 → hyperflash-1.2.1}/tests/test_mcp.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hyperflash
|
|
3
|
-
Version: 1.1
|
|
3
|
+
Version: 1.2.1
|
|
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
|
[](https://github.com/Virat-Ghatge/hyperflash/network/members)
|
|
49
49
|
[](https://github.com/Virat-Ghatge/hyperflash/issues)
|
|
50
50
|
[](LICENSE)
|
|
51
|
-
[](#-multi-platform-setup-guides)
|
|
52
52
|
[](#-universal-model--harness-compatibility)
|
|
53
53
|
[](#-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
|
|
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
|
|
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
|
|
195
|
-
hyperflash init --target
|
|
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
|
|
204
|
-
> - **
|
|
205
|
-
> - **
|
|
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
|
|
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
|
|
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
|
|
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
|
-
- `
|
|
341
|
-
-
|
|
342
|
-
-
|
|
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 (
|
|
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.
|
|
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
|
|