octeract-context 0.0.0-stage → 4.0.0
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/AGENTS.md +32 -0
- package/LICENSE.md +28 -0
- package/README.md +610 -2
- package/assets/architecture.jpg +0 -0
- package/assets/banner.jpg +0 -0
- package/assets/logo.jpg +0 -0
- package/bin/octeract-context.js +26 -0
- package/bin/tesseract-context.js +26 -0
- package/package.json +59 -4
- package/src/cli/commands.ts +804 -0
- package/src/cli/init.ts +395 -0
- package/src/cli/tui.ts +180 -0
- package/src/core/accelerator.ts +259 -0
- package/src/core/asymptotics.ts +219 -0
- package/src/core/async-flow.ts +147 -0
- package/src/core/auditor.ts +1609 -0
- package/src/core/binary.ts +147 -0
- package/src/core/blast.ts +487 -0
- package/src/core/cache.ts +108 -0
- package/src/core/causality.ts +121 -0
- package/src/core/diagnostic.ts +145 -0
- package/src/core/diff.ts +162 -0
- package/src/core/events.ts +42 -0
- package/src/core/flow.ts +317 -0
- package/src/core/healing.ts +380 -0
- package/src/core/hexadectree.ts +262 -0
- package/src/core/honeycomb.ts +235 -0
- package/src/core/hypercube.ts +323 -0
- package/src/core/indexer.ts +621 -0
- package/src/core/octeract.ts +242 -0
- package/src/core/preflight.ts +574 -0
- package/src/core/sarif.ts +368 -0
- package/src/core/security.ts +309 -0
- package/src/core/shadow.ts +485 -0
- package/src/core/skeleton.ts +194 -0
- package/src/core/types.ts +506 -0
- package/src/enterprise/license.ts +242 -0
- package/src/enterprise/lsc.ts +196 -0
- package/src/enterprise/mesh.ts +171 -0
- package/src/enterprise/mutation.ts +267 -0
- package/src/enterprise/portfolio.ts +288 -0
- package/src/enterprise/swarm.ts +306 -0
- package/src/enterprise/swe-ci.ts +172 -0
- package/src/enterprise/transmute.ts +172 -0
- package/src/index.ts +359 -0
- package/src/mcp/server.ts +1792 -0
- package/src/parsers/base.ts +17 -0
- package/src/parsers/generic-parser.ts +105 -0
- package/src/parsers/py-parser.ts +71 -0
- package/src/parsers/ts-parser.ts +242 -0
- package/src/shield/watcher.ts +110 -0
- package/src/ui/dashboard.ts +2084 -0
package/AGENTS.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# OCTERACT 8D CONTEXT & AUTONOMOUS SHIELD PROTOCOL
|
|
2
|
+
|
|
3
|
+
CRITICAL INSTRUCTIONS FOR ALL AI AGENTS (Antigravity, Cursor, Windsurf, Claude Code, Cline, Roo, Copilot):
|
|
4
|
+
This repository is monitored, indexed, and actively protected by the **Octeract-Context 8D Hypercube Engine (E8 Riemannian Torus T^8)**.
|
|
5
|
+
|
|
6
|
+
## 0. MANDATORY ONBOARDING DIRECTIVE (ZERO-TOUCH PROTOCOL)
|
|
7
|
+
When you install Octeract, initialize, or are asked to set up the MCP:
|
|
8
|
+
- **DO NOT merely say "MCP installed" and stop.**
|
|
9
|
+
- You **MUST** immediately inspect the pre-existing health status from `.octeract/HEALTH_REPORT.md` or `.tesseract/HEALTH_REPORT.md` (or call `octeract_audit_health` / `octeract_hybrid_audit` / `octeract_stats`).
|
|
10
|
+
- You **MUST** deliver a detailed, comprehensive report directly to the user in your response:
|
|
11
|
+
1. **Executive Summary:** Total files indexed in the 8D Octeract ($E_8$ Torus $T^8$) and overall health score.
|
|
12
|
+
2. **Every Critical Fracture Detected:** Broken imports, contract mismatches, altered methods, dead-ends, topological sinks, unmatched events, unreachable zombie islands, floating promises, dead exports, boundary violations, secret leaks, asymptotic degradations, and spurious causal fixes.
|
|
13
|
+
3. **Connected Network (Ripple Effect):** List all modules and subsystems connected to each broken file that are failing or will fail in cascade.
|
|
14
|
+
4. **Unified In-Depth Universal Diagnostic:** Deliver a single, deeply detailed, comprehensive analysis with 4 universal pillars:
|
|
15
|
+
- 🔍 **Radiografía del Problema:** Precise facts, exact variables/methods, why it fails silently or produces an issue.
|
|
16
|
+
- 💥 **El Peligro Oculto y Efecto Dominó:** All connected modules and downstream systemic consequences.
|
|
17
|
+
- 📜 **Evidencia en Código:** File, exact line number, and verbatim snippet.
|
|
18
|
+
- 🛡️ **Solución Quirúrgica Recomendada:** Exact fix verified via `octeract_safe_write`.
|
|
19
|
+
5. **Safe Healing Proposal:** Recommend exact surgical fixes using `octeract_safe_write` to prevent cascading regressions.
|
|
20
|
+
|
|
21
|
+
## 1. SURGICAL CONTEXT (TOKEN CONSERVATION)
|
|
22
|
+
- NEVER perform blind grep scans or dump thousands of raw code lines into the context window.
|
|
23
|
+
- ALWAYS invoke `octeract_slice` with the target cell (CoreLogic, Storage, UI, Security, Config, Telemetry, Tests) or `octeract_trace_flow` to work in < 500 tokens.
|
|
24
|
+
- For 8D spatial localization, invoke `octeract_slice` or `octeract_octeract_slice` to query geodesic neighborhoods in $T^8$ via the 256-ary fractal tree.
|
|
25
|
+
- BEFORE modifying central interfaces, invoke `octeract_blast_radius` to preview multi-hop ripple effects (< 300 tokens).
|
|
26
|
+
|
|
27
|
+
## 2. ACTIVE WRITE SHIELD & 8-AXIS EXOSKELETON (MANDATORY SAFE WRITES)
|
|
28
|
+
- NEVER modify or overwrite existing files directly with blind write tools.
|
|
29
|
+
- ALWAYS execute file changes through the MCP tool: `octeract_safe_write`.
|
|
30
|
+
* The 8-Axis Exoskeleton ($X$ AST Syntax, $Y$ Contract Topology, $Z$ Ephemeral Sandbox, $W$ Shannon Security, $\Phi$ Big-O Asymptotics, $\Psi$ Pearl Causal SCM, $\Omega$ Event Loop Dynamics, $\Xi$ Packaging & Runtime) verifies that both the Euclidean distance $D_{\text{shear}} \le 0.75$ and 8D Riemannian Torus distance $D_{\text{shear8D}}$ remain strictly within stability bounds.
|
|
31
|
+
* If `octeract_safe_write` returns `WRITTEN_SAFELY`, the change is safe and written to disk.
|
|
32
|
+
* If `octeract_safe_write` returns `BLOCKED_BY_SHIELD` or `BLOCKED_BY_4D_SHIELD`, the write is physically rejected to prevent catastrophic cascading collapse or data loss. Use the returned `synthesizedPatch` or safe alternative for immediate zero-touch remediation.
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Business Source License 1.1 (BSL 1.1)
|
|
2
|
+
|
|
3
|
+
Parameters:
|
|
4
|
+
- Licensor: Miguel Guerra <miguelguerra200022@gmail.com>
|
|
5
|
+
- Licensed Work: TESSERACT-CONTEXT (4D Hypercube Context Engine & Autonomous Shield)
|
|
6
|
+
- Initial Effective Date: October 19, 2026
|
|
7
|
+
- Change Date: October 19, 2029
|
|
8
|
+
- Change License: Apache License, Version 2.0
|
|
9
|
+
- Additional Use Grant: You may make use of the Licensed Work for non-production purposes, including personal development, testing, research, academic study, and evaluating the software. Any use in a commercial production environment, incorporation into proprietary commercial SaaS offerings, or deployment within revenue-generating products requires an explicit commercial license agreement with the Licensor.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
TERMS AND CONDITIONS
|
|
14
|
+
|
|
15
|
+
1. Grant of License.
|
|
16
|
+
Licensor hereby grants you the right to copy, modify, create derivative works, redistribute, and make non-production use of the Licensed Work, subject to the terms and conditions of this License and the Additional Use Grant above.
|
|
17
|
+
|
|
18
|
+
2. Commercial and Production Use.
|
|
19
|
+
Any use of the Licensed Work, or any derivative work thereof, in production, within a commercial entity, or for commercial profit (including but not limited to hosting as a cloud service, integrating into commercial developer toolchains, or running automated autonomous agents in revenue-generating enterprise systems) requires a separate commercial license agreement. To obtain a commercial license, contact Miguel Guerra at miguelguerra200022@gmail.com.
|
|
20
|
+
|
|
21
|
+
3. Attribution and Notice.
|
|
22
|
+
You must retain all copyright notices, trademarks, and disclaimers in all copies or substantial portions of the Licensed Work.
|
|
23
|
+
|
|
24
|
+
4. Change to Open Source License.
|
|
25
|
+
On the Change Date specified above, this License shall automatically terminate and your rights to use the Licensed Work will be governed by the Change License (Apache License, Version 2.0) without further action required.
|
|
26
|
+
|
|
27
|
+
5. Disclaimer of Warranties.
|
|
28
|
+
THE LICENSED WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE LICENSOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE LICENSED WORK OR THE USE OR OTHER DEALINGS IN THE LICENSED WORK.
|