Skip to content

Python Jarvis Symbol Reference

Toprak Ahmet Aydoğmuş edited this page Nov 30, 2026 · 1 revision

T-Zero Algorithm Python Jarvis Symbol Reference

Coverage: 16 modules, 57 classes, 171 functions, 5875 source lines.

Source-linked AST index for the T-Zero Algorithm Python package.

Scope: Modules under tzero/tzero_jarvis/. Command execution and policy boundaries are summarized in Codebase-Internals.

Reading this reference

  • Every declaration is extracted from Python AST and linked to its current source location.
  • Signatures show parsed arguments and annotations; default expressions are included after personal-identifier, contact, and wallet redaction.
  • Source docstrings are quoted, not independently verified claims. Personal identifiers, contact details, and wallet-like values are redacted.
  • Missing docstrings are marked explicitly; behavior is not guessed.
  • This is a symbol map, not a line-by-line explanation of function bodies. Follow the source links for control flow and side effects.
  • Detailed Anti-REA implementation internals are intentionally excluded; see Anti-REA-Safe-Overview.

tzero/tzero_jarvis/__init__.py

Source: tzero/tzero_jarvis/init.py
Source size: 148 lines | 0 classes | 0 functions

Module docstring:


T-Zero Jarvis Autonomous Engine & Semantic Memory Package
---------------------------------------------------------
Developer: [redacted] (Siber Akademi)
Version: 6.0.0

tzero/tzero_jarvis/agent_guard.py

Source: tzero/tzero_jarvis/agent_guard.py
Source size: 626 lines | 11 classes | 24 functions

Module docstring:

Deterministic, Zero-Spend AI Agent Guardrails and Execution Safety Engine.

Provides multi-layer security policies, path protection, command risk assessment,
secret redaction, transactional file modification, and AI grounding verification.
Operates 100% locally and offline with zero cloud API dependencies.

CommandRiskLevel

Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:29-34

Declaration:

class CommandRiskLevel(str, enum.Enum):

Source docstring: none; consult the linked implementation rather than inferring behavior.

CommandEvaluation

Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:38-64

Declaration:

class CommandEvaluation:

Source docstring: none; consult the linked implementation rather than inferring behavior.

CommandEvaluation.to_dict

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:51-64

Signature:

def to_dict(self) -> Dict[str, Any]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

CommandRiskAssessor

Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:67-193

Declaration:

class CommandRiskAssessor:

Source docstring:

Evaluates commands for shell injection, network access, and risk level.

CommandRiskAssessor.parse_argv

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:100-114

Signature:

def parse_argv(cls, command: str) -> Optional[List[str]]:

Source docstring:

Attempt safe lexical splitting without invoking a host shell.

CommandRiskAssessor.assess

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:117-193

Signature:

def assess(cls, command: str) -> CommandEvaluation:

Source docstring:

Classify command risk level and identify dangerous primitives.

CommandExecutionPolicy

Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:197-238

Declaration:

class CommandExecutionPolicy:

Source docstring:

Operator-controlled permission policy separated from agent inputs.

CommandExecutionPolicy.from_environment

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:209-219

Signature:

def from_environment(cls) -> 'CommandExecutionPolicy':

Source docstring:

Read permissions strictly from server operator environment variables.

CommandExecutionPolicy.is_command_allowed

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:221-238

Signature:

def is_command_allowed(self, evaluation: CommandEvaluation) -> Tuple[bool, str]:

Source docstring:

Check whether the evaluated command is permitted under the active policy.

PathGuard

Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:245-344

Declaration:

class PathGuard:

Source docstring:

Guards against directory traversal, symlink escape, and protected file mutation.

PathGuard.validate_target_path

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:266-344

Signature:

def validate_target_path(cls, file_path: Union[str, Path], work_dir: Union[str, Path], for_write: bool = True) -> Tuple[bool, str, Optional[Path]]:

Source docstring:

Validate target file path against workspace boundaries, symlinks, and protected paths.

SecretRedactor

Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:351-408

Declaration:

class SecretRedactor:

Source docstring:

Masks API keys, tokens, high-entropy strings, and credentials from diagnostics.

SecretRedactor.calculate_shannon_entropy

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:367-375

Signature:

def calculate_shannon_entropy(cls, s: str) -> float:

Source docstring:

Calculate Shannon entropy in bits per character.

SecretRedactor.sanitize

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:378-408

Signature:

def sanitize(cls, text: str) -> str:

Source docstring:

Redact sensitive patterns and suspicious high-entropy tokens from text.

SecretRedactor.sanitize.replace_generic

Kind: Function
Source: tzero/tzero_jarvis/agent_guard.py:387-390

Signature:

def replace_generic(match: re.Match) -> str:

Source docstring: none; consult the linked implementation rather than inferring behavior.

AIGroundingVerifier

Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:415-513

Declaration:

class AIGroundingVerifier:

Source docstring:

Verifies that files, symbols, and line numbers claimed by AI exist in the workspace.

AIGroundingVerifier.verify_file

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:419-424

Signature:

def verify_file(cls, work_dir: Union[str, Path], file_path: str) -> Tuple[bool, str, Optional[Path]]:

Source docstring:

Verify that a referenced file exists within the workspace.

AIGroundingVerifier.verify_line

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:427-438

Signature:

def verify_line(cls, work_dir: Union[str, Path], file_path: str, line_no: int) -> Tuple[bool, str]:

Source docstring:

Verify that a referenced line number is within file boundaries.

AIGroundingVerifier.verify_python_symbol

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:441-467

Signature:

def verify_python_symbol(cls, work_dir: Union[str, Path], file_path: str, symbol_name: str) -> Tuple[bool, str, Optional[str], Optional[int]]:

Source docstring:

Verify that a function, class, or method symbol exists in a Python file's AST.

AIGroundingVerifier.audit_traceback_evidence

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:470-499

Signature:

def audit_traceback_evidence(cls, work_dir: Union[str, Path], traceback_text: str) -> Dict[str, Any]:

Source docstring:

Extract all File and line claims from traceback and verify their workspace ground truth.

AIGroundingVerifier.flag_unverified_claims

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:502-513

Signature:

def flag_unverified_claims(cls, text: str) -> List[str]:

Source docstring:

Detect and flag absolute or ungrounded claims in text.

TransactionEntry

Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:521-526

Declaration:

class TransactionEntry:

Source docstring: none; consult the linked implementation rather than inferring behavior.

MultiFileRollbackStack

Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:529-561

Declaration:

class MultiFileRollbackStack:

Source docstring:

Manages transactional file modifications with safe reverse-order rollback.

MultiFileRollbackStack.__init__

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:532-533

Signature:

def __init__(self):

Source docstring: none; consult the linked implementation rather than inferring behavior.

MultiFileRollbackStack.push

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:535-536

Signature:

def push(self, path: Path, original: bytes, applied: bytes, diff: str) -> None:

Source docstring: none; consult the linked implementation rather than inferring behavior.

MultiFileRollbackStack.rollback_all

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:538-555

Signature:

def rollback_all(self) -> List[str]:

Source docstring:

Roll back all modified files in reverse order if they haven't been concurrently modified.

MultiFileRollbackStack.clear

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:557-558

Signature:

def clear(self) -> None:

Source docstring: none; consult the linked implementation rather than inferring behavior.

MultiFileRollbackStack.__len__

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:560-561

Signature:

def __len__(self) -> int:

Source docstring: none; consult the linked implementation rather than inferring behavior.

SecurityAuditEvent

Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:569-585

Declaration:

class SecurityAuditEvent:

Source docstring: none; consult the linked implementation rather than inferring behavior.

SecurityAuditEvent.to_dict

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:577-585

Signature:

def to_dict(self) -> Dict[str, Any]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

SecurityAuditLogger

Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:588-622

Declaration:

class SecurityAuditLogger:

Source docstring:

Thread-safe, bounded, in-memory security audit log with secret sanitization.

SecurityAuditLogger.__init__

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:591-593

Signature:

def __init__(self, capacity: int = 500):

Source docstring: none; consult the linked implementation rather than inferring behavior.

SecurityAuditLogger.record

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:595-614

Signature:

def record(self, event_type: str, target: str, verdict: str, reason: str, metadata: Optional[Dict[str, Any]] = None) -> SecurityAuditEvent:

Source docstring: none; consult the linked implementation rather than inferring behavior.

SecurityAuditLogger.get_events

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:616-619

Signature:

def get_events(self, event_type: Optional[str] = None) -> List[Dict[str, Any]]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

SecurityAuditLogger.clear

Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:621-622

Signature:

def clear(self) -> None:

Source docstring: none; consult the linked implementation rather than inferring behavior.

tzero/tzero_jarvis/causal_graph.py

Source: tzero/tzero_jarvis/causal_graph.py
Source size: 310 lines | 4 classes | 12 functions

Module docstring:


T-ZERO CAUSAL & TEMPORAL KNOWLEDGE GRAPH ENGINE (4D GRAPH)
Developer: [redacted] (Siber Akademi)
Version: 4.4.0

Bu modül, anlamsal üçlüleri (Semantic Triplet) 4 boyutlu uzayda (zaman + nedensellik)
birleştiren akıllı çizge motorudur.

Temel Yetenekler:
1. Zamansal Sıralama (Temporal Sequencing): precedes, follows, simultaneous, timestamping
2. Nedensellik Bağları (Causal Edges): causes, triggered_by, fixes, resolves, mitigates, fails_with
3. Kök Neden Analizi (Root-Cause Analysis via Causal DAG Traversal)
4. Geri Alma Sıralaması (Rollback Order Planning)
5. Döngü Tespiti (Causal Cycle Detection)

CausalRelationType

Kind: Class
Source: tzero/tzero_jarvis/causal_graph.py:26-35

Declaration:

class CausalRelationType:

Source docstring: none; consult the linked implementation rather than inferring behavior.

CausalEdge

Kind: Class
Source: tzero/tzero_jarvis/causal_graph.py:39-48

Declaration:

class CausalEdge:

Source docstring: none; consult the linked implementation rather than inferring behavior.

CausalEdge.to_dict

Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:47-48

Signature:

def to_dict(self) -> Dict[str, Any]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

CausalNode

Kind: Class
Source: tzero/tzero_jarvis/causal_graph.py:52-61

Declaration:

class CausalNode:

Source docstring: none; consult the linked implementation rather than inferring behavior.

CausalNode.to_dict

Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:60-61

Signature:

def to_dict(self) -> Dict[str, Any]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

CausalTemporalGraph

Kind: Class
Source: tzero/tzero_jarvis/causal_graph.py:64-310

Declaration:

class CausalTemporalGraph:

Source docstring:


    4 Boyutlu Nedensellik ve Zaman Çizgesi Motoru.
    Gelişmiş DAG algoritmaları ile kök neden ve geri alma zincirlerini hesaplar.

CausalTemporalGraph.__init__

Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:70-75

Signature:

def __init__(self, codebook: Optional[VectorQuantizedCodebook] = None):

Source docstring: none; consult the linked implementation rather than inferring behavior.

CausalTemporalGraph.add_node

Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:77-98

Signature:

def add_node(self, node_id: str, label: str, entity_type: str = 'GENERIC', triplet_code: Optional[int] = None, timestamp: Optional[float] = None, attributes: Optional[Dict[str, Any]] = None) -> CausalNode:

Source docstring: none; consult the linked implementation rather than inferring behavior.

CausalTemporalGraph.add_edge

Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:100-117

Signature:

def add_edge(self, source_id: str, target_id: str, relation: str = CausalRelationType.CAUSES, weight: float = 1.0, metadata: Optional[Dict[str, Any]] = None) -> CausalEdge:

Source docstring: none; consult the linked implementation rather than inferring behavior.

CausalTemporalGraph.record_triplet_event

Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:119-158

Signature:

def record_triplet_event(self, triplet: SemanticTriplet, preceding_triplet_code: Optional[int] = None, causes_triplet_code: Optional[int] = None) -> Tuple[int, str]:

Source docstring:


        Bir semantik üçlüyü çizgeye zamansal düğüm olarak ekler ve nedensellik bağlarını kurar.

CausalTemporalGraph.get_root_causes

Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:160-199

Signature:

def get_root_causes(self, target_node_id: str, max_depth: int = 10) -> List[Dict[str, Any]]:

Source docstring:


        Hedef düğümün (örn: bir hata veya arıza durumu) tüm kök nedenlerini (Root Causes)
        nedensellik çizgisi boyunca geriye doğru izleyerek bulur.

CausalTemporalGraph.get_root_causes.dfs

Kind: Nested function
Source: tzero/tzero_jarvis/causal_graph.py:171-196

Signature:

def dfs(curr_id: str, depth: int, path: List[str]):

Source docstring: none; consult the linked implementation rather than inferring behavior.

CausalTemporalGraph.trace_effect_chain

Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:201-232

Signature:

def trace_effect_chain(self, start_node_id: str, max_depth: int = 10) -> List[Dict[str, Any]]:

Source docstring:


        Başlangıç düğümünün tetiklediği tüm zincirleme sonuçları (Downstream Effects) çıkarır.

CausalTemporalGraph.compute_rollback_order

Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:234-258

Signature:

def compute_rollback_order(self, target_node_id: str) -> List[Dict[str, Any]]:

Source docstring:


        Bir hata durumunda veya işlemin geri alınması gerektiğinde,
        ters topolojik sıralama (Reverse Topological Order) ile güvenli geri alma adımlarını hesaplar.

CausalTemporalGraph.get_timeline

Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:260-276

Signature:

def get_timeline(self, limit: int = 50) -> List[Dict[str, Any]]:

Source docstring:


        Kronolojik olay akışını döndürür.

CausalTemporalGraph.to_graph_data

Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:278-310

Signature:

def to_graph_data(self) -> Dict[str, Any]:

Source docstring:


        Görselleştirme için nodes ve links JSON verisi üretir.

tzero/tzero_jarvis/creative_director.py

Source: tzero/tzero_jarvis/creative_director.py
Source size: 333 lines | 4 classes | 4 functions

Module docstring:


T-ZERO JARVIS MULTI-MODAL CREATIVE DIRECTOR & PROMPT ENGINE
------------------------------------------------------------
Developer: [redacted] (Siber Akademi)
Version: 5.1.0 | License: AGPL-3.0-only

Autonomous creative director that synthesizes ultra-photorealistic image prompts
(Midjourney v6.1, Flux.1 Pro, Imagen 3) and cinematic video generation prompts
(OpenAI Sora, Kling 1.5, Runway Gen-3 Alpha, Luma Dream Machine), as well as
viral 5-scene tech product launch storyboards directly from source code and AST.

VideoPromptSpec

Kind: Class
Source: tzero/tzero_jarvis/creative_director.py:25-34

Declaration:

class VideoPromptSpec:

Source docstring: none; consult the linked implementation rather than inferring behavior.

PhotoPromptSpec

Kind: Class
Source: tzero/tzero_jarvis/creative_director.py:38-46

Declaration:

class PhotoPromptSpec:

Source docstring: none; consult the linked implementation rather than inferring behavior.

StoryboardScene

Kind: Class
Source: tzero/tzero_jarvis/creative_director.py:50-59

Declaration:

class StoryboardScene:

Source docstring: none; consult the linked implementation rather than inferring behavior.

JarvisCreativeDirector

Kind: Class
Source: tzero/tzero_jarvis/creative_director.py:62-333

Declaration:

class JarvisCreativeDirector:

Source docstring:

Enterprise multi-modal prompt synthesis and storyboard director.

JarvisCreativeDirector.generate_video_prompt

Kind: Method
Source: tzero/tzero_jarvis/creative_director.py:90-127

Signature:

def generate_video_prompt(cls, topic: str, style: str = 'cinematic', duration: int = 5, camera_work: Optional[str] = None, lighting: Optional[str] = None, audio_mood: Optional[str] = None) -> VideoPromptSpec:

Source docstring:

Synthesize high-fidelity prompt for Sora, Kling, Runway Gen-3, Luma.

JarvisCreativeDirector.generate_photo_prompt

Kind: Method
Source: tzero/tzero_jarvis/creative_director.py:130-166

Signature:

def generate_photo_prompt(cls, subject: str, style: str = 'portrait', lens_type: str = 'cinematic', lighting_style: str = 'golden_hour', aspect_ratio: str = '16:9', negative_extra: str = '') -> PhotoPromptSpec:

Source docstring:

Synthesize ultra-photorealistic image generation prompt for Midjourney v6.1 / Flux.1.

JarvisCreativeDirector.generate_launch_storyboard

Kind: Method
Source: tzero/tzero_jarvis/creative_director.py:169-234

Signature:

def generate_launch_storyboard(cls, product_name: str, core_feature: str, metric_highlight: str = '95% Token Reduction & 0 Hallucinations', target_audience: str = 'AI Engineers, Tech Leads & DevOps') -> List[StoryboardScene]:

Source docstring:

Creates a viral 5-scene 30-second tech launch video storyboard.

JarvisCreativeDirector.synthesize_from_code

Kind: Method
Source: tzero/tzero_jarvis/creative_director.py:237-333

Signature:

def synthesize_from_code(cls, code: str, file_name: str = 'module.py') -> Dict[str, Any]:

Source docstring:

Analyzes code AST and synthesizes matched video and photo campaign prompts.

tzero/tzero_jarvis/graph_visualizer.py

Source: tzero/tzero_jarvis/graph_visualizer.py
Source size: 395 lines | 1 classes | 3 functions

Module docstring:


T-ZERO CYBERPUNK KNOWLEDGE & CAUSAL GRAPH VISUALIZER
Developer: [redacted] (Siber Akademi)
Version: 4.4.0

Bu modül, T-Zero 4D Nedensellik ve Bilgi Çizgesini tamamen bağımsız (Offline),
neon siberpunk estetiğine sahip interaktif bir HTML5 / SVG Force-Directed Graph
olarak render eder ve dışa aktarır.

CyberpunkGraphVisualizer

Kind: Class
Source: tzero/tzero_jarvis/graph_visualizer.py:35-395

Declaration:

class CyberpunkGraphVisualizer:

Source docstring:


    Siberpunk Temalı Çizge Görselleştirici.
    Hiçbir CDN veya internet bağlantısına ihtiyaç duymadan saf HTML5/SVG/Canvas üretir.

CyberpunkGraphVisualizer.__init__

Kind: Method
Source: tzero/tzero_jarvis/graph_visualizer.py:41-42

Signature:

def __init__(self, causal_graph: Optional[CausalTemporalGraph] = None):

Source docstring: none; consult the linked implementation rather than inferring behavior.

CyberpunkGraphVisualizer.generate_html

Kind: Method
Source: tzero/tzero_jarvis/graph_visualizer.py:44-388

Signature:

def generate_html(self, title: str = 'T-ZERO JARVIS KNOWLEDGE & CAUSAL GRAPH') -> str:

Source docstring: none; consult the linked implementation rather than inferring behavior.

CyberpunkGraphVisualizer.export_to_file

Kind: Method
Source: tzero/tzero_jarvis/graph_visualizer.py:390-395

Signature:

def export_to_file(self, target_path: str, title: str = 'T-ZERO JARVIS KNOWLEDGE & CAUSAL GRAPH') -> str:

Source docstring: none; consult the linked implementation rather than inferring behavior.

tzero/tzero_jarvis/hybrid_search.py

Source: tzero/tzero_jarvis/hybrid_search.py
Source size: 214 lines | 3 classes | 7 functions

Module docstring:


T-ZERO ZERO-VECTOR-DB HYBRID IN-MEMORY SEARCH ENGINE
Developer: [redacted] (Siber Akademi)
Version: 4.4.0

Bu modül, harici hiçbir ağır Vektör Veritabanına (ChromaDB, Pinecone, FAISS vb.)
ihtiyaç duymadan; saf bellek içi (In-Memory) Ters İndeksleme (Inverted Index),
BM25 Anlamsal Sıralama ve T-Zero Latent Codebook (#code) eşleştirmesini
birleştiren mikro-saniye (<1 ms) hızında hibrit arama motorudur.

SearchDocument

Kind: Class
Source: tzero/tzero_jarvis/hybrid_search.py:23-31

Declaration:

class SearchDocument:

Source docstring: none; consult the linked implementation rather than inferring behavior.

SearchResult

Kind: Class
Source: tzero/tzero_jarvis/hybrid_search.py:35-55

Declaration:

class SearchResult:

Source docstring: none; consult the linked implementation rather than inferring behavior.

SearchResult.to_dict

Kind: Method
Source: tzero/tzero_jarvis/hybrid_search.py:45-55

Signature:

def to_dict(self) -> Dict[str, Any]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

ZeroVectorDBSearchEngine

Kind: Class
Source: tzero/tzero_jarvis/hybrid_search.py:58-214

Declaration:

class ZeroVectorDBSearchEngine:

Source docstring:


    Sıfır Dış Bağımlılıklı, Bellek İçi BM25 + T-Zero Latent Codebook Hibrit Arama Motoru.

ZeroVectorDBSearchEngine.__init__

Kind: Method
Source: tzero/tzero_jarvis/hybrid_search.py:63-71

Signature:

def __init__(self, k1: float = 1.5, b: float = 0.75):

Source docstring: none; consult the linked implementation rather than inferring behavior.

ZeroVectorDBSearchEngine.tokenize

Kind: Method
Source: tzero/tzero_jarvis/hybrid_search.py:74-79

Signature:

def tokenize(text: str) -> List[str]:

Source docstring:


        Gelişmiş regex tabanlı küçük harfe dönüştürücü ve temizleyici tokenizer.

ZeroVectorDBSearchEngine.add_document

Kind: Method
Source: tzero/tzero_jarvis/hybrid_search.py:81-112

Signature:

def add_document(self, doc_id: str, doc_type: str, title: str, content: str, discrete_code: Optional[int] = None, domain: str = 'GENERIC', metadata: Optional[Dict[str, Any]] = None) -> SearchDocument:

Source docstring: none; consult the linked implementation rather than inferring behavior.

ZeroVectorDBSearchEngine.search

Kind: Method
Source: tzero/tzero_jarvis/hybrid_search.py:114-183

Signature:

def search(self, query: str, top_k: int = 10, target_domain: Optional[str] = None) -> List[SearchResult]:

Source docstring:


        Hibrit BM25 + Latent Codebook Arama Algoritması.

ZeroVectorDBSearchEngine.index_codebase_scanner_results

Kind: Method
Source: tzero/tzero_jarvis/hybrid_search.py:185-205

Signature:

def index_codebase_scanner_results(self, scanner_report: Dict[str, Any]) -> int:

Source docstring:


        T-Zero CodebaseScanner (AST) sonuçlarını anında arama indeksine katar.

ZeroVectorDBSearchEngine.get_stats

Kind: Method
Source: tzero/tzero_jarvis/hybrid_search.py:207-214

Signature:

def get_stats(self) -> Dict[str, Any]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

tzero/tzero_jarvis/latent_press.py

Source: tzero/tzero_jarvis/latent_press.py
Source size: 137 lines | 2 classes | 4 functions

Module docstring:


T-ZERO LATENTPRESS: PRE-PREFILL CONTEXT COMPRESSION & QUANTIZATION ENGINE
Developer: [redacted] (Siber Akademi)
Version: 4.5.0

Bu modül, 2024-2025 "Latent Context Language Models (LCLM)" ve "LatentPress"
araştırma literatürünü uygulayarak; on binlerce kelimelik devasa log veya
kod bloklarını LLM prefill aşamasına girmeden önce upstream seviyede sıkıştırır,
MinHash LSH ile gereksiz tekrarları eler ve ultra-kompakt sanal bellek dizgisine
(<|tzero:mem:ID|>) dönüştürür.

LatentPressResult

Kind: Class
Source: tzero/tzero_jarvis/latent_press.py:24-51

Declaration:

class LatentPressResult:

Source docstring: none; consult the linked implementation rather than inferring behavior.

LatentPressResult.to_dict

Kind: Method
Source: tzero/tzero_jarvis/latent_press.py:38-51

Signature:

def to_dict(self) -> Dict[str, Any]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

LatentPressCompressor

Kind: Class
Source: tzero/tzero_jarvis/latent_press.py:54-137

Declaration:

class LatentPressCompressor:

Source docstring:


    Upstream Pre-Prefill Bağlam Sıkıştırıcı ve Uyarlamalı Kuantizasyon Motoru.

LatentPressCompressor.__init__

Kind: Method
Source: tzero/tzero_jarvis/latent_press.py:59-61

Signature:

def __init__(self, injector: Optional[DynamicVirtualMemoryInjector] = None):

Source docstring: none; consult the linked implementation rather than inferring behavior.

LatentPressCompressor._calculate_shannon_entropy

Kind: Method
Source: tzero/tzero_jarvis/latent_press.py:64-77

Signature:

def _calculate_shannon_entropy(text: str) -> float:

Source docstring:

Karakter dağılımı üzerinden Shannon Entropisini hesaplar.

LatentPressCompressor.compress_large_context

Kind: Method
Source: tzero/tzero_jarvis/latent_press.py:79-137

Signature:

def compress_large_context(self, context_text: str, near_dup_threshold: float = 0.65) -> LatentPressResult:

Source docstring:


        Geniş metni anlamsal bloklara ayırır, MinHash ile yakın-kopyaları eler
        ve Latent Soft-Prompt akışına dönüştürür.

tzero/tzero_jarvis/memory_consolidation.py

Source: tzero/tzero_jarvis/memory_consolidation.py
Source size: 212 lines | 4 classes | 9 functions

Module docstring:


T-ZERO DUAL-MEMORY CONSOLIDATION ENGINE (HIPPOCAMPAL REPLAY)
Developer: [redacted] (Siber Akademi)
Version: 4.4.0

Bu modül, insan beynindeki hipokampus-neokorteks bellek konsolidasyonunu taklit eder:
1. EpisodicMemory (Kısa süreli epizodik tampon bellek)
2. Semantic Consolidation (Derin konsolidasyon / Gece rüyası döngüsü):
   - Benzer epizotları kümeleme (Clustering)
   - Çoklu adımlardan Makro-Üçlü (Macro-Triplet) sentezleme
   - Çelişki Çözümleme (Contradiction Resolution & Temporal Superseding)
   - Kalıcı Latent Codebook'a terfi ettirme (Promotion)

Episode

Kind: Class
Source: tzero/tzero_jarvis/memory_consolidation.py:25-45

Declaration:

class Episode:

Source docstring: none; consult the linked implementation rather than inferring behavior.

Episode.to_dict

Kind: Method
Source: tzero/tzero_jarvis/memory_consolidation.py:35-45

Signature:

def to_dict(self) -> Dict[str, Any]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

MacroTriplet

Kind: Class
Source: tzero/tzero_jarvis/memory_consolidation.py:49-60

Declaration:

class MacroTriplet:

Source docstring: none; consult the linked implementation rather than inferring behavior.

MacroTriplet.to_dict

Kind: Method
Source: tzero/tzero_jarvis/memory_consolidation.py:59-60

Signature:

def to_dict(self) -> Dict[str, Any]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

EpisodicMemoryBuffer

Kind: Class
Source: tzero/tzero_jarvis/memory_consolidation.py:63-89

Declaration:

class EpisodicMemoryBuffer:

Source docstring:


    Kısa süreli epizodik bellek tamponu (Rolling Ring-Buffer).

EpisodicMemoryBuffer.__init__

Kind: Method
Source: tzero/tzero_jarvis/memory_consolidation.py:68-70

Signature:

def __init__(self, max_capacity: int = 1000):

Source docstring: none; consult the linked implementation rather than inferring behavior.

EpisodicMemoryBuffer.record_episode

Kind: Method
Source: tzero/tzero_jarvis/memory_consolidation.py:72-86

Signature:

def record_episode(self, content: str, source: str = 'user', tags: Optional[List[str]] = None) -> Episode:

Source docstring: none; consult the linked implementation rather than inferring behavior.

EpisodicMemoryBuffer.get_active_episodes

Kind: Method
Source: tzero/tzero_jarvis/memory_consolidation.py:88-89

Signature:

def get_active_episodes(self) -> List[Episode]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

ConsolidationEngine

Kind: Class
Source: tzero/tzero_jarvis/memory_consolidation.py:92-212

Declaration:

class ConsolidationEngine:

Source docstring:


    Derin Bellek Konsolidasyonu ve Çelişki Giderme Motoru.

ConsolidationEngine.__init__

Kind: Method
Source: tzero/tzero_jarvis/memory_consolidation.py:97-100

Signature:

def __init__(self, codebook: Optional[VectorQuantizedCodebook] = None):

Source docstring: none; consult the linked implementation rather than inferring behavior.

ConsolidationEngine.consolidate

Kind: Method
Source: tzero/tzero_jarvis/memory_consolidation.py:102-174

Signature:

def consolidate(self) -> Dict[str, Any]:

Source docstring:


        Konsolidasyon Döngüsünü (Replay Cycle) çalıştırır.
        1. Çelişki ve durum güncellemelerini yakalar (Örn: hata -> başarı).
        2. Varlık kümeleri üzerinden makro kavramlar türetir.
        3. Codebook'a deterministik hashlerle ekler.

ConsolidationEngine._resolve_contradictions

Kind: Method
Source: tzero/tzero_jarvis/memory_consolidation.py:176-201

Signature:

def _resolve_contradictions(self, episodes: List[Episode]) -> int:

Source docstring:


        Zaman içindeki zıtlıkları tespit eder ve eskiyen bilgileri geçersiz (superseded) kılar.

ConsolidationEngine.get_summary

Kind: Method
Source: tzero/tzero_jarvis/memory_consolidation.py:203-212

Signature:

def get_summary(self) -> Dict[str, Any]:

Source docstring:


        Konsolide edilmiş bellek özetini döndürür.

tzero/tzero_jarvis/minhash_lsh.py

Source: tzero/tzero_jarvis/minhash_lsh.py
Source size: 184 lines | 2 classes | 8 functions

Module docstring:


T-ZERO SUB-MICROSECOND MINHASH LSH TRIPLET SIMILARITY ENGINE
Developer: [redacted] (Siber Akademi)
Version: 4.5.0

Bu modül, en son 2024-2025 LSH (Locality-Sensitive Hashing) ve MinHash
literatüründen esinlenilmiş; harici hiçbir nöral kütüphaneye ihtiyaç duymadan,
anlamsal üçlüler (Semantic Triplets) arasındaki Jaccard benzerliğini
mikrosaniyenin altında (<1 µs / nanosecond-tier) hesaplayan ve yakın-kopyaları
(near-duplicates) anında kümeleyen deterministik hash motorudur.

_generate_hash_seeds

Kind: Function
Source: tzero/tzero_jarvis/minhash_lsh.py:29-37

Signature:

def _generate_hash_seeds(k: int = NUM_PERMUTATIONS) -> List[Tuple[int, int]]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

MinHashSignature

Kind: Class
Source: tzero/tzero_jarvis/minhash_lsh.py:43-54

Declaration:

class MinHashSignature:

Source docstring: none; consult the linked implementation rather than inferring behavior.

MinHashSignature.jaccard_similarity

Kind: Method
Source: tzero/tzero_jarvis/minhash_lsh.py:49-54

Signature:

def jaccard_similarity(self, other: MinHashSignature) -> float:

Source docstring:

İki imza arasındaki Jaccard benzerliğini hesaplar (Bitwise/Integer çarpışma oranı).

MinHashLSHEngine

Kind: Class
Source: tzero/tzero_jarvis/minhash_lsh.py:57-184

Declaration:

class MinHashLSHEngine:

Source docstring:


    Sub-Mikrosaniye MinHash LSH Çizge Benzerlik ve Kümeleme Motoru.
    Banding tekniği ile O(1) yakın-komşu araması yapar.

MinHashLSHEngine.__init__

Kind: Method
Source: tzero/tzero_jarvis/minhash_lsh.py:63-69

Signature:

def __init__(self, bands: int = BANDS, rows_per_band: int = ROWS_PER_BAND):

Source docstring: none; consult the linked implementation rather than inferring behavior.

MinHashLSHEngine._shingle_triplet

Kind: Method
Source: tzero/tzero_jarvis/minhash_lsh.py:72-87

Signature:

def _shingle_triplet(triplet: SemanticTriplet) -> Set[str]:

Source docstring:

Üçlünün bileşenlerinden 1-gram ve 2-gram anlamsal shingle'lar üretir.

MinHashLSHEngine.compute_signature

Kind: Method
Source: tzero/tzero_jarvis/minhash_lsh.py:89-107

Signature:

def compute_signature(self, triplet: SemanticTriplet, code: int) -> MinHashSignature:

Source docstring:

Üçlü için 64 boyutlu kompakt MinHash imzasını hesaplar.

MinHashLSHEngine.insert

Kind: Method
Source: tzero/tzero_jarvis/minhash_lsh.py:109-125

Signature:

def insert(self, triplet: SemanticTriplet, code: int) -> MinHashSignature:

Source docstring:

Üçlüyü LSH tablosuna ekler ve bant kovalarına yerleştirir.

MinHashLSHEngine.query_near_duplicates

Kind: Method
Source: tzero/tzero_jarvis/minhash_lsh.py:127-157

Signature:

def query_near_duplicates(self, triplet: SemanticTriplet, threshold: float = 0.5) -> List[Dict[str, Any]]:

Source docstring:


        LSH kovaları üzerinden O(1) hızında adayları çeker ve
        Jaccard benzerliği threshold üzerinde olanları döndürür.

MinHashLSHEngine.find_clusters

Kind: Method
Source: tzero/tzero_jarvis/minhash_lsh.py:159-184

Signature:

def find_clusters(self, min_similarity: float = 0.7) -> List[List[int]]:

Source docstring:

Tüm kayıtlı kodlar arasındaki benzerlik kümelerini (Clusters) çıkarır.

tzero/tzero_jarvis/orchestrator.py

Source: tzero/tzero_jarvis/orchestrator.py
Source size: 337 lines | 2 classes | 15 functions

Module docstring:


T-ZERO JARVIS AUTONOMOUS AGENT ORCHESTRATOR
-------------------------------------------
Developer: [redacted] (Siber Akademi)
Version: 4.2.0

T-Zero'nun AST analiz ve token sıkıştırma motorunu, otonom çoklu ajan icra gücüyle
birleştiren ana orkestrasyon sistemi.

Özellikler:
- Hedef Ayrıştırma ve Planlama (Planner)
- T-Zero 3-Katmanlı Anlamsal Bellek Sıkıştırması (Layers A, B, C)
- Sıfır Maliyetli / API Key'siz Çıkarım Motoru
- Terminal Çalıştırma ve Otonom Kendi Kendini İyileştirme (Self-Healing Loop)
- %100 Zero-Leak Güvenlik Taraması

AutonomousGoalResult

Kind: Class
Source: tzero/tzero_jarvis/orchestrator.py:50-80

Declaration:

class AutonomousGoalResult:

Source docstring:

Otonom görev icra sonucu.

AutonomousGoalResult.__init__

Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:52-60

Signature:

def __init__(self, goal: str):

Source docstring: none; consult the linked implementation rather than inferring behavior.

AutonomousGoalResult.add_step

Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:62-69

Signature:

def add_step(self, stage: str, message: str, status: str = 'done', details: Optional[Dict[str, Any]] = None):

Source docstring: none; consult the linked implementation rather than inferring behavior.

AutonomousGoalResult.to_dict

Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:71-80

Signature:

def to_dict(self) -> Dict[str, Any]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

JarvisOrchestrator

Kind: Class
Source: tzero/tzero_jarvis/orchestrator.py:83-292

Declaration:

class JarvisOrchestrator:

Source docstring:

T-Zero Jarvis Otonom Süper-Ajan Orkestratörü.

JarvisOrchestrator.__init__

Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:86-90

Signature:

def __init__(self, workspace_root: str = '.'):

Source docstring: none; consult the linked implementation rather than inferring behavior.

JarvisOrchestrator.execute_terminal

Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:92-134

Signature:

def execute_terminal(self, command: str, cwd: Optional[str] = None, timeout: int = 40) -> Dict[str, Any]:

Source docstring:

PowerShell / Komut satırı üzerinden komut çalıştırır.

JarvisOrchestrator.run_self_healing_command

Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:136-149

Signature:

def run_self_healing_command(self, command: str, max_retries: int = 2) -> Dict[str, Any]:

Source docstring:


        Komutu çalıştırır, hata oluşursa traceback'i analiz edip
        otonom iyileştirme adımlarıyla tekrar dener.

JarvisOrchestrator.orchestrate_goal

Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:151-210

Signature:

def orchestrate_goal(self, goal: str, auto_heal: bool = True) -> AutonomousGoalResult:

Source docstring:


        Verilen hedefi T-Zero zekası ve anlamsal bellek sıkıştırmasıyla baştan sona icra eder.

JarvisOrchestrator.orchestrate_workspace

Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:214-229

Signature:

def orchestrate_workspace(self, auto_apply_rules: bool = True, run_swarm: bool = True, run_diagnostics: bool = False) -> Dict[str, Any]:

Source docstring:


        Çalışma alanını (workspace) bir yönetici (executive orchestrator) gibi analiz eder,
        tüm AI kural dosyalarını (.cursorrules, AGENT.md, ARCHITECTURE.md vb.) üretir/günceller,
        PBFT konsensüsü ile denetler ve kendi kendini iyileştirir.

JarvisOrchestrator.profile_workspace

Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:231-233

Signature:

def profile_workspace(self) -> Dict[str, Any]:

Source docstring:

Çalışma alanının detaylı profilini sözlük olarak döner.

JarvisOrchestrator.tune_workspace_rules

Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:235-247

Signature:

def tune_workspace_rules(self, auto_apply: bool = True) -> Dict[str, Any]:

Source docstring:

Yalnızca yönetişim ve AI kural dosyalarını (.md) sentezler ve uygular.

JarvisOrchestrator.diagnose_and_heal_workspace

Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:249-251

Signature:

def diagnose_and_heal_workspace(self, command: Optional[str] = None) -> Dict[str, Any]:

Source docstring:

Çalışma alanı test/derleme komutunu çalıştırır ve otonom cerrahi yamalar uygular.

JarvisOrchestrator.generate_plan

Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:253-255

Signature:

def generate_plan(self, goal: str = '', context: str = '') -> Dict[str, Any]:

Source docstring:

Hedefe veya projeye özel çok fazlı mühendislik eylem planı hazırlar.

JarvisOrchestrator.present_capabilities

Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:257-259

Signature:

def present_capabilities(self) -> str:

Source docstring:

Jarvis'in çalışma alanındaki yetenek kataloğunu sunar.

JarvisOrchestrator.run_autonomous_benchmark

Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:261-292

Signature:

def run_autonomous_benchmark(self, target_budget: int = 64000) -> Dict[str, Any]:

Source docstring:


        Otonom olarak çok modelli (Claude, GPT-4o, Gemini, DeepSeek) token tasarruf ve
        finansal ROI benchmarkını çalıştırır, bağlam sıkıştırma bütçesini otomatik optimize eder.

main

Kind: Function
Source: tzero/tzero_jarvis/orchestrator.py:299-332

Signature:

def main():

Source docstring:

CLI Giriş Noktası: python -m tzero_jarvis.orchestrator --workspace . --apply

tzero/tzero_jarvis/self_healing.py

Source: tzero/tzero_jarvis/self_healing.py
Source size: 383 lines | 3 classes | 10 functions

Module docstring:

Conservative, local Python repair with verification, policy guards, and rollback.

Commands are run locally with risk assessment and secret redaction.
Repairs are intentionally limited to cases that can be checked syntactically
and verified against local workspace ground truth.

agent_command_execution_enabled

Kind: Function
Source: tzero/tzero_jarvis/self_healing.py:37-39

Signature:

def agent_command_execution_enabled() -> bool:

Source docstring:

Require the server operator to opt in before agent shell execution.

ExecutionResult

Kind: Class
Source: tzero/tzero_jarvis/self_healing.py:43-62

Declaration:

class ExecutionResult:

Source docstring: none; consult the linked implementation rather than inferring behavior.

ExecutionResult.to_dict

Kind: Method
Source: tzero/tzero_jarvis/self_healing.py:61-62

Signature:

def to_dict(self) -> Dict[str, Any]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

RepairProposal

Kind: Class
Source: tzero/tzero_jarvis/self_healing.py:66-72

Declaration:

class RepairProposal:

Source docstring: none; consult the linked implementation rather than inferring behavior.

SelfHealingExecutionEngine

Kind: Class
Source: tzero/tzero_jarvis/self_healing.py:75-383

Declaration:

class SelfHealingExecutionEngine:

Source docstring:

Propose limited repairs, then retain them only after command success.

SelfHealingExecutionEngine.__init__

Kind: Method
Source: tzero/tzero_jarvis/self_healing.py:78-90

Signature:

def __init__(self, causal_graph: Optional[CausalTemporalGraph] = None, work_dir: Optional[str] = None, policy: Optional[CommandExecutionPolicy] = None, enforce_agent_policy: bool = False):

Source docstring: none; consult the linked implementation rather than inferring behavior.

SelfHealingExecutionEngine.run_command

Kind: Method
Source: tzero/tzero_jarvis/self_healing.py:92-203

Signature:

def run_command(self, command: str, timeout: int = 30, dry_run: Optional[bool] = None) -> ExecutionResult:

Source docstring:

Execute command with risk assessment, policy gate, and secret sanitization.

SelfHealingExecutionEngine.diagnose_error

Kind: Method
Source: tzero/tzero_jarvis/self_healing.py:205-214

Signature:

def diagnose_error(self, error_text: str) -> Tuple[Optional[str], Optional[str], Optional[int]]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

SelfHealingExecutionEngine._target

Kind: Method
Source: tzero/tzero_jarvis/self_healing.py:216-222

Signature:

def _target(self, file_path: str) -> Optional[Path]:

Source docstring:

Validate target path within workspace boundary and without symlink escapes.

SelfHealingExecutionEngine.propose_repair

Kind: Method
Source: tzero/tzero_jarvis/self_healing.py:224-267

Signature:

def propose_repair(self, file_path: str, error_type: str, error_line: Optional[int], stderr: str) -> Optional[RepairProposal]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

SelfHealingExecutionEngine.auto_repair_python_file

Kind: Method
Source: tzero/tzero_jarvis/self_healing.py:269-278

Signature:

def auto_repair_python_file(self, file_path: str, error_type: str, error_line: Optional[int], stderr: str) -> bool:

Source docstring:

Legacy direct repair: syntax checked, but not command verified.

SelfHealingExecutionEngine._replace_if_unchanged

Kind: Method
Source: tzero/tzero_jarvis/self_healing.py:280-308

Signature:

def _replace_if_unchanged(self, path: Path, expected: bytes, replacement: bytes) -> bool:

Source docstring:

Replace from a same-directory temporary file; refuse observed changes.

        This is not a compare-and-swap: another process can still race the final
        check. Atomic replacement avoids exposing a partially written file.

SelfHealingExecutionEngine.execute_and_heal

Kind: Method
Source: tzero/tzero_jarvis/self_healing.py:310-383

Signature:

def execute_and_heal(self, command: str, max_retries: int = 3, dry_run: Optional[bool] = None) -> ExecutionResult:

Source docstring:

Execute command and apply verified, syntax-checked repairs with rollback on failure.

tzero/tzero_jarvis/semantic_compressor.py

Source: tzero/tzero_jarvis/semantic_compressor.py
Source size: 887 lines | 6 classes | 29 functions

Module docstring:


T-ZERO JARVIS UNIVERSAL 3-LAYER SEMANTIC MEMORY & COMPRESSION ENGINE
---------------------------------------------------------------------
Developer: [redacted] (Siber Akademi)
Version: 4.3.0

Evrensel 3-Katmanlı Anlamsal Çekirdek ve Vektör Bellek Mimarisi:
Katman A: Çok Dilli ve Çok Alanlı Anlamsal Graf Çıkarımı (TR + EN + 12 Alanlı NER)
Katman B: Deterministik Vektör Kuantizasyon Sözlüğü (VQ Codebook + Graf Topolojisi)
Katman C: Dinamik Soft-Prompt Sanal Bellek Enjeksiyonu (<|tzero:mem:ID|>) + Bellek Arama

EntityType

Kind: Class
Source: tzero/tzero_jarvis/semantic_compressor.py:23-36

Declaration:

class EntityType:

Source docstring: none; consult the linked implementation rather than inferring behavior.

TypedEntity

Kind: Class
Source: tzero/tzero_jarvis/semantic_compressor.py:40-47

Declaration:

class TypedEntity:

Source docstring: none; consult the linked implementation rather than inferring behavior.

TypedEntity.to_tagged_string

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:44-47

Signature:

def to_tagged_string(self) -> str:

Source docstring: none; consult the linked implementation rather than inferring behavior.

SemanticTriplet

Kind: Class
Source: tzero/tzero_jarvis/semantic_compressor.py:51-80

Declaration:

class SemanticTriplet:

Source docstring:

Saf anlamsal çizge üçlüsü (Graph Triplet) with NER.

SemanticTriplet.to_graph_string

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:58-64

Signature:

def to_graph_string(self) -> str:

Source docstring:

Kompakt çizge gösterimi üretir: (Özne)->[Yüklem]->(Nesne:TIP + Nesne:TIP | Bağlam:TIP)

SemanticTriplet.to_compact_code

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:66-70

Signature:

def to_compact_code(self) -> str:

Source docstring:

Token tasarrufu sağlayan ultra sıkışık format: &S:Özne#P:Eylem#O:Nesneler#C:Bağlamlar

SemanticTriplet.to_dict

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:72-80

Signature:

def to_dict(self) -> Dict[str, Any]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

SemanticTripletExtractor

Kind: Class
Source: tzero/tzero_jarvis/semantic_compressor.py:83-447

Declaration:

class SemanticTripletExtractor:

Source docstring:

Katman A: Dolgu kelimeleri temizleyip mantıksal çizgeye dönüştüren evrensel çıkarıcı.

SemanticTripletExtractor.strip_turkish_suffixes

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:218-238

Signature:

def strip_turkish_suffixes(cls, word: str) -> str:

Source docstring:

Kesme işaretini ve yönelme/ayrılma eklerini atar (ESP32'yi -> ESP32).

SemanticTripletExtractor.classify_entity

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:242-296

Signature:

def classify_entity(cls, token: str) -> str:

Source docstring: none; consult the linked implementation rather than inferring behavior.

SemanticTripletExtractor.detect_compound_predicate

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:300-310

Signature:

def detect_compound_predicate(cls, tokens: List[str]) -> Optional[Tuple[str, int, int]]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

SemanticTripletExtractor._normalize_predicate

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:313-344

Signature:

def _normalize_predicate(cls, raw_verb: str) -> str:

Source docstring: none; consult the linked implementation rather than inferring behavior.

SemanticTripletExtractor.extract_triplets

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:347-447

Signature:

def extract_triplets(cls, text: str) -> List[SemanticTriplet]:

Source docstring:

Metinden anlamsal graf üçlülerini eksiksiz ve deterministik çıkarır.

VectorQuantizedCodebook

Kind: Class
Source: tzero/tzero_jarvis/semantic_compressor.py:450-725

Declaration:

class VectorQuantizedCodebook:

Source docstring:

Katman B: VQ Codebook, Graf Topolojisi ve Kalıcı Disk Depolama.

VectorQuantizedCodebook.__init__

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:453-456

Signature:

def __init__(self, seed_code: int = 8421):

Source docstring: none; consult the linked implementation rather than inferring behavior.

VectorQuantizedCodebook._seed_reference_codes

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:458-547

Signature:

def _seed_reference_codes(self):

Source docstring:

12 Temel Evrensel Bilim ve Mühendislik Alanı için Çekirdek Referans Senaryolar.

VectorQuantizedCodebook._compute_signature

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:549-554

Signature:

def _compute_signature(self, triplet: SemanticTriplet) -> str:

Source docstring: none; consult the linked implementation rather than inferring behavior.

VectorQuantizedCodebook.register_triplet

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:556-569

Signature:

def register_triplet(self, triplet: SemanticTriplet) -> int:

Source docstring: none; consult the linked implementation rather than inferring behavior.

VectorQuantizedCodebook.register_triplet_with_code

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:571-574

Signature:

def register_triplet_with_code(self, code_id: int, triplet: SemanticTriplet):

Source docstring: none; consult the linked implementation rather than inferring behavior.

VectorQuantizedCodebook.lookup

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:576-577

Signature:

def lookup(self, code_id: int) -> Optional[SemanticTriplet]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

VectorQuantizedCodebook.size

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:579-580

Signature:

def size(self) -> int:

Source docstring: none; consult the linked implementation rather than inferring behavior.

VectorQuantizedCodebook.codes

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:583-598

Signature:

def codes(self) -> Dict[int, Dict[str, Any]]:

Source docstring:

Sözlükteki tüm kodları metadata sözlüğü olarak döndürür.

VectorQuantizedCodebook.query_graph

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:603-647

Signature:

def query_graph(self, entity: Optional[str] = None, predicate: Optional[str] = None, context: Optional[str] = None, text_query: Optional[str] = None) -> List[Dict[str, Any]]:

Source docstring:

Hafıza sözlüğünde kayıtlı çizgeleri varlık, eylem veya bağlam bazında filtreler.

VectorQuantizedCodebook.get_topology

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:652-688

Signature:

def get_topology(self) -> Dict[str, Any]:

Source docstring:

Tüm hafıza çizgelerinden düğüm (Node) ve kenar (Edge) listesi çıkarır.

VectorQuantizedCodebook.save_to_disk

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:693-705

Signature:

def save_to_disk(self, filepath: Optional[str] = None) -> str:

Source docstring:

Kayıtlı hafızayı diske JSON olarak serialize eder.

VectorQuantizedCodebook.load_from_disk

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:707-725

Signature:

def load_from_disk(self, filepath: Optional[str] = None) -> int:

Source docstring:

Diskteki kayıtlı hafızayı bellek sözlüğüne yükler.

DynamicVirtualMemoryInjector

Kind: Class
Source: tzero/tzero_jarvis/semantic_compressor.py:728-878

Declaration:

class DynamicVirtualMemoryInjector:

Source docstring:

Katman C: Dinamik Çözücü & Soft-Prompt / Virtual KV-Cache Enjeksiyonu.

DynamicVirtualMemoryInjector.__init__

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:731-732

Signature:

def __init__(self, codebook: Optional[VectorQuantizedCodebook] = None):

Source docstring: none; consult the linked implementation rather than inferring behavior.

DynamicVirtualMemoryInjector.compress_text_to_virtual_tokens

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:734-773

Signature:

def compress_text_to_virtual_tokens(self, text: str) -> Dict[str, Any]:

Source docstring:

Tekil veya kısa cümleleri 3 katmandan geçirir.

DynamicVirtualMemoryInjector.compress_document

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:778-817

Signature:

def compress_document(self, doc_text: str) -> Dict[str, Any]:

Source docstring:


        Geniş teknik dokümanları, logları veya konuşma geçmişlerini (1000+ kelime)
        tam bir bilgi grafiğine ve kompozit sanal token zincirine dönüştürür.

DynamicVirtualMemoryInjector.decode_virtual_token

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:819-846

Signature:

def decode_virtual_token(self, token_or_code: Union[str, int]) -> Optional[Dict[str, Any]]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

DynamicVirtualMemoryInjector.query_memory

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:848-850

Signature:

def query_memory(self, query: str) -> List[Dict[str, Any]]:

Source docstring:

Hafıza sözlüğünde doğal dil veya varlık araması yapar.

DynamicVirtualMemoryInjector.build_soft_prompt_prefix

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:852-863

Signature:

def build_soft_prompt_prefix(self, virtual_tokens: List[str]) -> str:

Source docstring: none; consult the linked implementation rather than inferring behavior.

DynamicVirtualMemoryInjector.compress_statement

Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:869-878

Signature:

def compress_statement(self, text: str) -> Dict[str, Any]:

Source docstring:

Tekil bir cümleyi hızlıca sanal bellek tokenına dönüştürür.

get_global_compressor

Kind: Function
Source: tzero/tzero_jarvis/semantic_compressor.py:883-884

Signature:

def get_global_compressor() -> DynamicVirtualMemoryInjector:

Source docstring: none; consult the linked implementation rather than inferring behavior.

tzero/tzero_jarvis/swarm.py

Source: tzero/tzero_jarvis/swarm.py
Source size: 282 lines | 7 classes | 13 functions

Module docstring:


T-ZERO AUTONOMOUS SWARM MULTI-AGENT ORCHESTRATION ENGINE
Developer: [redacted] (Siber Akademi)
Version: 4.4.0

Bu modül, JARVIS liderliğinde birbirleriyle T-Zero anlamsal tokenları (<|tzero:mem:...|>)
üzerinden haberleşen 5 uzman ajandan oluşan otonom bir sürüyü (Swarm) yönetir:

1. SecuritySentinelAgent (Sıfır Sızıntı & Siber Güvenlik)
2. EmbeddedHardwareAgent (ESP32, STM32, Donanım & Protokoller)
3. ASTOptimizerAgent (T-1 -> T-4 Mimari ve Token Tasarrufu)
4. AutonomousDevOpsAgent (Build, Test ve Ortam Doğrulama)
5. OrchestratorPrimeAgent (JARVIS - Sürü Lideri & Karar Motoru)

SwarmAgentReport

Kind: Class
Source: tzero/tzero_jarvis/swarm.py:27-49

Declaration:

class SwarmAgentReport:

Source docstring: none; consult the linked implementation rather than inferring behavior.

SwarmAgentReport.to_dict

Kind: Method
Source: tzero/tzero_jarvis/swarm.py:38-49

Signature:

def to_dict(self) -> Dict[str, Any]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

BaseSwarmAgent

Kind: Class
Source: tzero/tzero_jarvis/swarm.py:52-59

Declaration:

class BaseSwarmAgent:

Source docstring: none; consult the linked implementation rather than inferring behavior.

BaseSwarmAgent.__init__

Kind: Method
Source: tzero/tzero_jarvis/swarm.py:53-56

Signature:

def __init__(self, name: str, role: str, injector: DynamicVirtualMemoryInjector):

Source docstring: none; consult the linked implementation rather than inferring behavior.

BaseSwarmAgent.evaluate

Kind: Method
Source: tzero/tzero_jarvis/swarm.py:58-59

Signature:

def evaluate(self, mission_goal: str, context: str = '') -> SwarmAgentReport:

Source docstring: none; consult the linked implementation rather than inferring behavior.

SecuritySentinelAgent

Kind: Class
Source: tzero/tzero_jarvis/swarm.py:62-96

Declaration:

class SecuritySentinelAgent(BaseSwarmAgent):

Source docstring:

Siber Güvenlik ve Zero-Leak Muhafızı.

SecuritySentinelAgent.__init__

Kind: Method
Source: tzero/tzero_jarvis/swarm.py:64-65

Signature:

def __init__(self, injector: DynamicVirtualMemoryInjector):

Source docstring: none; consult the linked implementation rather than inferring behavior.

SecuritySentinelAgent.evaluate

Kind: Method
Source: tzero/tzero_jarvis/swarm.py:67-96

Signature:

def evaluate(self, mission_goal: str, context: str = '') -> SwarmAgentReport:

Source docstring: none; consult the linked implementation rather than inferring behavior.

EmbeddedHardwareAgent

Kind: Class
Source: tzero/tzero_jarvis/swarm.py:99-133

Declaration:

class EmbeddedHardwareAgent(BaseSwarmAgent):

Source docstring:

Gömülü Donanım, Mikrodenetleyiciler ve Veriyolu Uzmanı.

EmbeddedHardwareAgent.__init__

Kind: Method
Source: tzero/tzero_jarvis/swarm.py:101-102

Signature:

def __init__(self, injector: DynamicVirtualMemoryInjector):

Source docstring: none; consult the linked implementation rather than inferring behavior.

EmbeddedHardwareAgent.evaluate

Kind: Method
Source: tzero/tzero_jarvis/swarm.py:104-133

Signature:

def evaluate(self, mission_goal: str, context: str = '') -> SwarmAgentReport:

Source docstring: none; consult the linked implementation rather than inferring behavior.

ASTOptimizerAgent

Kind: Class
Source: tzero/tzero_jarvis/swarm.py:136-161

Declaration:

class ASTOptimizerAgent(BaseSwarmAgent):

Source docstring:

T-Zero AST ve Mimari Token Tasarruf Uzmanı.

ASTOptimizerAgent.__init__

Kind: Method
Source: tzero/tzero_jarvis/swarm.py:138-139

Signature:

def __init__(self, injector: DynamicVirtualMemoryInjector):

Source docstring: none; consult the linked implementation rather than inferring behavior.

ASTOptimizerAgent.evaluate

Kind: Method
Source: tzero/tzero_jarvis/swarm.py:141-161

Signature:

def evaluate(self, mission_goal: str, context: str = '') -> SwarmAgentReport:

Source docstring: none; consult the linked implementation rather than inferring behavior.

AutonomousDevOpsAgent

Kind: Class
Source: tzero/tzero_jarvis/swarm.py:164-189

Declaration:

class AutonomousDevOpsAgent(BaseSwarmAgent):

Source docstring:

Build, Test ve Ortam Doğrulayıcısı.

AutonomousDevOpsAgent.__init__

Kind: Method
Source: tzero/tzero_jarvis/swarm.py:166-167

Signature:

def __init__(self, injector: DynamicVirtualMemoryInjector):

Source docstring: none; consult the linked implementation rather than inferring behavior.

AutonomousDevOpsAgent.evaluate

Kind: Method
Source: tzero/tzero_jarvis/swarm.py:169-189

Signature:

def evaluate(self, mission_goal: str, context: str = '') -> SwarmAgentReport:

Source docstring: none; consult the linked implementation rather than inferring behavior.

SwarmCoordinator

Kind: Class
Source: tzero/tzero_jarvis/swarm.py:192-282

Declaration:

class SwarmCoordinator:

Source docstring:


    JARVIS Otonom Sürü Orkestratörü (Swarm Coordinator).
    5 ajanı aynı anda veya sıralı olarak koşturup nihai kararı sentezler.

SwarmCoordinator.__init__

Kind: Method
Source: tzero/tzero_jarvis/swarm.py:198-209

Signature:

def __init__(self, injector: Optional[DynamicVirtualMemoryInjector] = None, causal_graph: Optional[CausalTemporalGraph] = None):

Source docstring: none; consult the linked implementation rather than inferring behavior.

SwarmCoordinator.coordinate_mission

Kind: Method
Source: tzero/tzero_jarvis/swarm.py:211-282

Signature:

def coordinate_mission(self, mission_goal: str, context: str = '') -> Dict[str, Any]:

Source docstring:


        Görevi sürüye dağıtır, tüm uzman raporlarını toplar ve JARVIS liderliğinde sentezler.

tzero/tzero_jarvis/swarm_bft.py

Source: tzero/tzero_jarvis/swarm_bft.py
Source size: 144 lines | 2 classes | 3 functions

Module docstring:


T-ZERO BYZANTINE FAULT-TOLERANT (BFT) MULTI-AGENT CONSENSUS PROTOCOL
Developer: [redacted] (Siber Akademi)
Version: 4.5.0

Bu modül, dağıtık sistemlerdeki PBFT (Practical Byzantine Fault Tolerance)
ve Raft konsensüs mekanizmalarını otonom AI ajan sürüsüne uyarlar:
1. Dinamik Ajan İtibar & Güven Ağırlıkları (w_i in [0.1, 1.0])
2. Halüsinasyon ve Aykırı Değer (Outlier) İzolasyonu
3. Güvenlik Muhafızı Mutlak Veto Yetkisi (Zero-Leak Veto Protection)
4. 3-Aşamalı BFT Oylama: Pre-Prepare -> Prepare -> Commit (2/3 Ağırlıklı Quorum)

BFTConsensusCertificate

Kind: Class
Source: tzero/tzero_jarvis/swarm_bft.py:24-52

Declaration:

class BFTConsensusCertificate:

Source docstring: none; consult the linked implementation rather than inferring behavior.

BFTConsensusCertificate.to_dict

Kind: Method
Source: tzero/tzero_jarvis/swarm_bft.py:38-52

Signature:

def to_dict(self) -> Dict[str, Any]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

ByzantineFaultTolerantSwarm

Kind: Class
Source: tzero/tzero_jarvis/swarm_bft.py:55-144

Declaration:

class ByzantineFaultTolerantSwarm:

Source docstring:


    PBFT / Raft Tabanlı Otonom Ajan Konsensüs Yöneticisi.

ByzantineFaultTolerantSwarm.__init__

Kind: Method
Source: tzero/tzero_jarvis/swarm_bft.py:68-71

Signature:

def __init__(self, coordinator: Optional[SwarmCoordinator] = None):

Source docstring: none; consult the linked implementation rather than inferring behavior.

ByzantineFaultTolerantSwarm.reach_consensus

Kind: Method
Source: tzero/tzero_jarvis/swarm_bft.py:73-144

Signature:

def reach_consensus(self, mission_goal: str, context: str = '') -> BFTConsensusCertificate:

Source docstring:


        3 Aşamalı BFT Konsensüs Protokolünü çalıştırır.

tzero/tzero_jarvis/workspace_orchestrator.py

Source: tzero/tzero_jarvis/workspace_orchestrator.py
Source size: 1178 lines | 4 classes | 25 functions

Module docstring:


T-ZERO JARVIS MASTER WORKSPACE ORCHESTRATOR & EXECUTIVE GOVERNANCE ENGINE
------------------------------------------------------------------------
Developer: [redacted] (Siber Akademi)
Version: 5.0.0

Evrensel Çalışma Alanı Yöneticisi ve Otonom Orkestratör:
Herhangi bir yazılım projesini (Python, TypeScript, JavaScript, Rust, Go, C++,
Java, C#, Monorepo, Microservice vb.) derinlemesine analiz eder, teknoloji yığınını
ve mimari katmanlarını tespit eder; yapay zeka kodlama ajanları (Cursor, Antigravity,
Cline, Windsurf, Claude Code, GitHub Copilot) için en gelişmiş, projeye özel
kuralları (.cursorrules, AGENT.md, ARCHITECTURE.md, .clinerules vb.) otomatik
üretir ve çoklu-ajan PBFT konsensüsü ile yönetir.

Temel Yetenekler:
1. Derin Poliglot Çalışma Alanı Profilleme (WorkspaceProfiler)
2. Akıllı Mimari Katman ve İçe Aktarma Sınırı Tespiti (Layer Boundary Detection)
3. Özelleştirilmiş Yapay Zeka Kural ve Doküman Sentezi (WorkspaceGovernanceSynthesizer)
4. PBFT Sürü Güvenlik & Mimari Denetimi (Swarm Orchestration)
5. Çapraz Yığın Otonom Kendi Kendini Onarma ve Hata Teşhisi (Self-Healing Loop)
6. %100 Çevrimdışı, Sıfır Maliyetli ve Sıfır Sızıntı (%100 Zero-Leak)

WorkspaceProfile

Kind: Class
Source: tzero/tzero_jarvis/workspace_orchestrator.py:44-99

Declaration:

class WorkspaceProfile:

Source docstring:

Çalışma alanının çok boyutlu teknik ve mimari profili.

WorkspaceProfile.to_dict

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:72-99

Signature:

def to_dict(self) -> Dict[str, Any]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

WorkspaceProfiler

Kind: Class
Source: tzero/tzero_jarvis/workspace_orchestrator.py:102-496

Declaration:

class WorkspaceProfiler:

Source docstring:

Evrensel çalışma alanı tarayıcısı ve teknoloji yığını çözümleyicisi.

WorkspaceProfiler.__init__

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:137-140

Signature:

def __init__(self, workspace_root: str):

Source docstring: none; consult the linked implementation rather than inferring behavior.

WorkspaceProfiler._read_gitignore_patterns

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:142-157

Signature:

def _read_gitignore_patterns(self) -> List[str]:

Source docstring: none; consult the linked implementation rather than inferring behavior.

WorkspaceProfiler.profile

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:159-496

Signature:

def profile(self) -> WorkspaceProfile:

Source docstring:

Çalışma alanını baştan sona analiz ederek kapsamlı bir profil üretir.

WorkspaceGovernanceSynthesizer

Kind: Class
Source: tzero/tzero_jarvis/workspace_orchestrator.py:499-822

Declaration:

class WorkspaceGovernanceSynthesizer:

Source docstring:

Teknoloji yığınına özel, en gelişmiş yapay zeka ajan yönetişim dokümanları üreticisi.

WorkspaceGovernanceSynthesizer.generate_cursorrules

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:503-549

Signature:

def generate_cursorrules(profile: WorkspaceProfile) -> str:

Source docstring:

Cursor IDE için projeye özel .cursorrules dosyası üretir.

WorkspaceGovernanceSynthesizer.generate_agent_md

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:552-619

Signature:

def generate_agent_md(profile: WorkspaceProfile) -> str:

Source docstring:

Antigravity, AutoGPT ve Otonom Ajanlar için AGENT.md / AGENTS.md yönergesi üretir.

WorkspaceGovernanceSynthesizer.generate_clinerules

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:622-641

Signature:

def generate_clinerules(profile: WorkspaceProfile) -> str:

Source docstring:

Cline & Roo-Code için özel .clinerules üretir.

WorkspaceGovernanceSynthesizer.generate_windsurfrules

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:644-654

Signature:

def generate_windsurfrules(profile: WorkspaceProfile) -> str:

Source docstring:

Windsurf Cascade için .windsurfrules üretir.

WorkspaceGovernanceSynthesizer.generate_claude_instructions

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:657-676

Signature:

def generate_claude_instructions(profile: WorkspaceProfile) -> str:

Source docstring:

Claude Code CLI için CLAUDE.md yönergeleri üretir.

WorkspaceGovernanceSynthesizer.generate_copilot_instructions

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:679-687

Signature:

def generate_copilot_instructions(profile: WorkspaceProfile) -> str:

Source docstring:

GitHub Copilot için .github/copilot-instructions.md üretir.

WorkspaceGovernanceSynthesizer.generate_cursor_mdc_rules

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:690-731

Signature:

def generate_cursor_mdc_rules(profile: WorkspaceProfile) -> Dict[str, str]:

Source docstring:

Modern Cursor modular .cursor/rules/*.mdc formatı üretir.

WorkspaceGovernanceSynthesizer.generate_architecture_md

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:734-781

Signature:

def generate_architecture_md(profile: WorkspaceProfile) -> str:

Source docstring:

Mermaid topoloji diyagramlı kapsamlı ARCHITECTURE.md üretir.

WorkspaceGovernanceSynthesizer.generate_tzero_rules_json

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:784-801

Signature:

def generate_tzero_rules_json(profile: WorkspaceProfile) -> str:

Source docstring:

tzero.rules.json mimari sınır doğrulama matrisini üretir.

WorkspaceGovernanceSynthesizer.synthesize_all

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:804-822

Signature:

def synthesize_all(cls, profile: WorkspaceProfile) -> Dict[str, str]:

Source docstring:

Tüm yönetişim ve AI kural dosyalarını tek seferde üretir.

WorkspaceOrchestrator

Kind: Class
Source: tzero/tzero_jarvis/workspace_orchestrator.py:825-1178

Declaration:

class WorkspaceOrchestrator:

Source docstring:


    JARVIS MASTER WORKSPACE ORCHESTRATOR
    ------------------------------------
    Çalışma alanını otonom bir yönetici gibi analiz eden, yapılandıran,
    AI kural dosyalarını (.md) en gelişmiş şekilde üreten, PBFT konsensüsüyle
    denetleyen ve kendi kendini iyileştiren ana sistem.

WorkspaceOrchestrator.__init__

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:834-839

Signature:

def __init__(self, workspace_root: str = '.'):

Source docstring: none; consult the linked implementation rather than inferring behavior.

WorkspaceOrchestrator.profile_workspace

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:841-843

Signature:

def profile_workspace(self) -> WorkspaceProfile:

Source docstring:

Çalışma alanının detaylı profilini çıkarır.

WorkspaceOrchestrator.synthesize_rules

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:845-848

Signature:

def synthesize_rules(self, profile: Optional[WorkspaceProfile] = None) -> Dict[str, str]:

Source docstring:

Çalışma alanına özel tüm AI yönetişim dosyalarının içeriğini hazırlar.

WorkspaceOrchestrator.apply_governance_rules

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:850-871

Signature:

def apply_governance_rules(self, rules: Optional[Dict[str, str]] = None, overwrite: bool = True) -> List[str]:

Source docstring:


        Üretilen .md ve konfigürasyon kurallarını diske yazar.
        Mevcut dosyalar güvenli bir şekilde güncellenir.

WorkspaceOrchestrator.run_swarm_audit

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:873-890

Signature:

def run_swarm_audit(self, profile: Optional[WorkspaceProfile] = None) -> Dict[str, Any]:

Source docstring:


        5-Ajanlı PBFT Sürüsünü (Security, Hardware, AST Optimizer, DevOps, JARVIS Prime)
        çalışma alanı denetimi için göreve çağırır.

WorkspaceOrchestrator.run_workspace_diagnostics_and_heal

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:892-901

Signature:

def run_workspace_diagnostics_and_heal(self, command: Optional[str] = None) -> Dict[str, Any]:

Source docstring:


        Çalışma alanı test komutunu çalıştırır, hata oluşursa T-Zero otonom
        cerrahi yama (self-healing) motoru ile analiz edip çözer.

WorkspaceOrchestrator.orchestrate_workspace

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:903-966

Signature:

def orchestrate_workspace(self, auto_apply_rules: bool = True, run_swarm: bool = True, run_diagnostics: bool = False) -> Dict[str, Any]:

Source docstring:


        JARVIS ANA ORKESTRASYON AKIŞI:
        1. Çalışma alanını poliglot olarak tara ve profille
        2. Özel .md yönetişim kurallarını (.cursorrules, AGENT.md, ARCHITECTURE.md vb.) üret
        3. Talep edilirse diske uygula (auto-apply)
        4. 5-Ajanlı PBFT Sürüsü ile güvenlik ve mimari konsensüsü sağla
        5. Talep edilirse testleri çalıştır ve kendi kendini iyileştir
        6. Master Yönetişim Raporu (WORKSPACE_ORCHESTRATION.md) oluştur

WorkspaceOrchestrator._generate_master_report_md

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:968-1035

Signature:

def _generate_master_report_md(self, profile: WorkspaceProfile, applied_files: List[str], swarm_result: Optional[Dict[str, Any]], diag_result: Optional[Dict[str, Any]], duration_ms: float) -> str:

Source docstring:

Kapsamlı WORKSPACE_ORCHESTRATION.md metnini biçimlendirir.

WorkspaceOrchestrator.format_capabilities_catalog

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:1037-1093

Signature:

def format_capabilities_catalog(self, profile: Optional[WorkspaceProfile] = None) -> str:

Source docstring:

Kullanıcıya veya yapay zeka asistanına Jarvis'in neler yapabileceğini sunan interaktif katalog.

WorkspaceOrchestrator.generate_executive_plan

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:1095-1154

Signature:

def generate_executive_plan(self, goal: str = '', context: str = '') -> Dict[str, Any]:

Source docstring:

Verilen hedefe veya genel çalışma alanına özel çok fazlı mühendislik eylem planı hazırlar.

WorkspaceOrchestrator._format_plan_markdown

Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:1156-1178

Signature:

def _format_plan_markdown(self, goal: str, prof: WorkspaceProfile, phases: List[Dict[str, Any]]) -> str:

Source docstring: none; consult the linked implementation rather than inferring behavior.

tzero/tzero_jarvis/zero_key_router.py

Source: tzero/tzero_jarvis/zero_key_router.py
Source size: 105 lines | 2 classes | 5 functions

Module docstring:


JARVIS ZERO-KEY INTELLIGENCE ROUTER
-----------------------------------
Developer: [redacted] (Siber Akademi)
Version: 4.2.0

Runs keyless inference through a local Ollama API and exposes a separate web
search helper.

ZeroCostSecurityGuard

Kind: Class
Source: tzero/tzero_jarvis/zero_key_router.py:17-33

Declaration:

class ZeroCostSecurityGuard:

Source docstring:

Ücretli hiçbir modelin çağrılmamasını garanti eden güvenlik kalkanı.

ZeroCostSecurityGuard.assert_free

Kind: Method
Source: tzero/tzero_jarvis/zero_key_router.py:26-33

Signature:

def assert_free(cls, model_name: str):

Source docstring: none; consult the linked implementation rather than inferring behavior.

ZeroKeyAIRouter

Kind: Class
Source: tzero/tzero_jarvis/zero_key_router.py:36-101

Declaration:

class ZeroKeyAIRouter:

Source docstring:

API Key gerektirmeyen, hatasız ve yedekli yapay zeka motoru.

ZeroKeyAIRouter.check_ollama_available

Kind: Method
Source: tzero/tzero_jarvis/zero_key_router.py:40-47

Signature:

def check_ollama_available(cls) -> bool:

Source docstring:

Yerel makinede Ollama'nın çalışıp çalışmadığını yoklar.

ZeroKeyAIRouter.call_ollama

Kind: Method
Source: tzero/tzero_jarvis/zero_key_router.py:50-57

Signature:

def call_ollama(cls, prompt: str, model: str = 'qwen2.5:3b') -> str:

Source docstring:

Yerel Ollama servisi üzerinden tamamen internetsiz çıkarım yapar.

ZeroKeyAIRouter.search_duckduckgo_free

Kind: Method
Source: tzero/tzero_jarvis/zero_key_router.py:60-73

Signature:

def search_duckduckgo_free(cls, query: str, max_results: int = 4) -> str:

Source docstring:

API anahtarı olmadan canlı internet araması yapar.

ZeroKeyAIRouter.query_intelligence

Kind: Method
Source: tzero/tzero_jarvis/zero_key_router.py:76-99

Signature:

def query_intelligence(cls, prompt: str, system_prompt: Optional[str] = None) -> Dict[str, Any]:

Source docstring:

Return an Ollama completion or report that local inference is unavailable.

Clone this wiki locally