tzero-mcp 11.15.3 → 12.2.1
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/CHANGELOG.md +14 -0
- package/CONTRIBUTING.md +4 -4
- package/README.md +5 -5
- package/bin/postinstall.js +10 -2
- package/bin/tzero-mcp.js +1 -1
- package/bin/tzero.js +17 -0
- package/package.json +1 -1
- package/src/addmcp.py +34 -23
- package/src/app.py +1 -1
- package/src/main.py +6 -0
- package/src/tzero/__init__.py +10 -0
- package/src/tzero/anti_rea/__init__.py +70 -0
- package/src/tzero/anti_rea/algebraic_mutator.py +86 -0
- package/src/tzero/anti_rea/anti_agent_guard.py +96 -0
- package/src/tzero/anti_rea/anti_debugger.py +239 -0
- package/src/tzero/anti_rea/anti_vm.py +160 -0
- package/src/tzero/anti_rea/asar_shield.py +99 -0
- package/src/tzero/anti_rea/auditor.py +158 -0
- package/src/tzero/anti_rea/bpe_disrupter.py +48 -0
- package/src/tzero/anti_rea/bytecode_trap.py +85 -0
- package/src/tzero/anti_rea/canary_beacon.py +187 -0
- package/src/tzero/anti_rea/cli.py +102 -0
- package/src/tzero/anti_rea/confusables.py +86 -0
- package/src/tzero/anti_rea/engine.py +204 -0
- package/src/tzero/anti_rea/extractor_shield.py +102 -0
- package/src/tzero/anti_rea/flattener.py +136 -0
- package/src/tzero/anti_rea/gui.py +267 -0
- package/src/tzero/anti_rea/honeypot.py +58 -0
- package/src/tzero/anti_rea/integrity_guard.py +66 -0
- package/src/tzero/anti_rea/jailbreak_decoy.py +77 -0
- package/src/tzero/anti_rea/mcp_poison.py +41 -0
- package/src/tzero/anti_rea/native_bridge.py +169 -0
- package/src/tzero/anti_rea/rdtsc_guard.py +64 -0
- package/src/tzero/anti_rea/string_vault.py +94 -0
- package/src/tzero/anti_rea/sybil_network.py +53 -0
- package/src/tzero/anti_rea/timing_guard.py +46 -0
- package/src/tzero/anti_rea/token_bomb.py +65 -0
- package/src/tzero/anti_rea/traps.py +76 -0
- package/src/tzero/anti_rea/vm_obfuscator.py +182 -0
- package/src/tzero/siber_akademi.ico +0 -0
- package/src/tzero/siber_akademi_icon.py +1 -1
- package/src/tzero/tzero_armor.py +165 -0
- package/src/tzero/tzero_bridge.py +28 -15
- package/src/tzero/tzero_budget.py +10 -3
- package/src/tzero/tzero_card.py +7 -5
- package/src/tzero/tzero_ci.py +1 -0
- package/src/tzero/tzero_contracts.py +30 -11
- package/src/tzero/tzero_dashboard.py +34 -14
- package/src/tzero/tzero_debt.py +14 -5
- package/src/tzero/tzero_federation.py +11 -6
- package/src/tzero/tzero_fixer/security_zero_leak.py +21 -3
- package/src/tzero/tzero_golden.py +11 -6
- package/src/tzero/tzero_graph_hud.html +1 -1
- package/src/tzero/tzero_growth.py +10 -10
- package/src/tzero/tzero_jarvis/agent_guard.py +16 -10
- package/src/tzero/tzero_jarvis/workspace_orchestrator.py +34 -23
- package/src/tzero/tzero_lsp.py +1 -1
- package/src/tzero/tzero_mcp.py +89 -31
- package/src/tzero/tzero_mutation.py +44 -16
- package/src/tzero/tzero_neural_cortex.py +1 -1
- package/src/tzero/tzero_pc_fixer.py +21 -3
- package/src/tzero/tzero_promo.py +196 -36
- package/src/tzero/tzero_rust_bridge.py +1086 -42
- package/src/tzero/tzero_scip.py +15 -2
- package/src/tzero/tzero_semantic_merge.py +34 -10
- package/src/tzero/tzero_task_benchmark.py +2 -2
- package/src/tzero/tzero_telemetry.py +146 -0
- package/src/tzero/tzero_terminal.py +366 -0
- package/src/tzero/tzero_traffic.py +350 -0
- package/src/tzero/tzero_tui.py +342 -133
- package/src/tzero/tzero_v3.py +652 -29
- package/src/tzero/tzero_welcome.py +124 -37
|
@@ -273,10 +273,28 @@ class SecurityZeroLeakDoctor:
|
|
|
273
273
|
with open(p, "w", encoding="utf-8", newline="\n") as f:
|
|
274
274
|
f.writelines(lines)
|
|
275
275
|
|
|
276
|
-
#
|
|
277
|
-
|
|
276
|
+
# Store secret in OS keyring when available and write non-sensitive .env stub
|
|
277
|
+
stored_in_keyring = False
|
|
278
|
+
try:
|
|
279
|
+
import keyring # type: ignore
|
|
280
|
+
keyring.set_password("tzero-vault", env_var, raw_sec)
|
|
281
|
+
stored_in_keyring = True
|
|
282
|
+
except Exception:
|
|
283
|
+
pass
|
|
284
|
+
|
|
285
|
+
stub_note = (
|
|
286
|
+
f"# {env_var} stored in OS Keyring service 'tzero-vault'\n"
|
|
287
|
+
if stored_in_keyring
|
|
288
|
+
else f"# {env_var} migrated from source — populate securely\n"
|
|
289
|
+
)
|
|
290
|
+
env_stub = f"{stub_note}{env_var}=\n"
|
|
278
291
|
with open(env_file, "a", encoding="utf-8") as ef:
|
|
279
|
-
ef.write(
|
|
292
|
+
ef.write(env_stub)
|
|
293
|
+
if os.name != "nt":
|
|
294
|
+
try:
|
|
295
|
+
os.chmod(env_file, 0o600)
|
|
296
|
+
except OSError:
|
|
297
|
+
pass
|
|
280
298
|
|
|
281
299
|
actions.append(HealAction(
|
|
282
300
|
category=DiagnosticCategory.SECURITY.value,
|
|
@@ -11,7 +11,7 @@ Capabilities:
|
|
|
11
11
|
- 100% Offline, $0 cost, zero cloud dependencies (Python standard library only).
|
|
12
12
|
|
|
13
13
|
Author: Toprak Ahmet Aydoğmuş (Siber Akademi)
|
|
14
|
-
Part of T-Zero Context Architect
|
|
14
|
+
Part of T-Zero Context Architect v12.2.1 Master Edition.
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
import ast
|
|
@@ -160,7 +160,7 @@ class ASTGoldenRegressionEngine:
|
|
|
160
160
|
@classmethod
|
|
161
161
|
def generate_baseline(cls, workspace_root: str = ".", max_files: int = 300) -> GoldenBaseline:
|
|
162
162
|
"""Scans workspace and generates the golden contract baseline."""
|
|
163
|
-
abs_root = os.path.abspath(workspace_root)
|
|
163
|
+
abs_root = os.path.realpath(os.path.abspath(workspace_root))
|
|
164
164
|
all_sigs: Dict[str, Dict[str, Any]] = {}
|
|
165
165
|
hasher = hashlib.sha256()
|
|
166
166
|
|
|
@@ -171,7 +171,9 @@ class ASTGoldenRegressionEngine:
|
|
|
171
171
|
dirs[:] = [d for d in dirs if d not in ignore_dirs and not d.startswith(".")]
|
|
172
172
|
for f in files:
|
|
173
173
|
if f.endswith(".py"):
|
|
174
|
-
full_p = os.path.join(root, f)
|
|
174
|
+
full_p = os.path.realpath(os.path.join(root, f))
|
|
175
|
+
if not (full_p == abs_root or full_p.startswith(abs_root + os.sep)):
|
|
176
|
+
continue
|
|
175
177
|
rel_p = os.path.relpath(full_p, abs_root).replace("\\", "/")
|
|
176
178
|
try:
|
|
177
179
|
with open(full_p, "r", encoding="utf-8", errors="replace") as fp:
|
|
@@ -192,7 +194,7 @@ class ASTGoldenRegressionEngine:
|
|
|
192
194
|
|
|
193
195
|
return GoldenBaseline(
|
|
194
196
|
workspace_root=abs_root,
|
|
195
|
-
version="
|
|
197
|
+
version="12.2.1",
|
|
196
198
|
created_at=time.time(),
|
|
197
199
|
symbols=all_sigs,
|
|
198
200
|
total_symbols=len(all_sigs),
|
|
@@ -210,8 +212,11 @@ class ASTGoldenRegressionEngine:
|
|
|
210
212
|
@classmethod
|
|
211
213
|
def verify_against_golden(cls, workspace_root: str = ".", golden_path: Optional[str] = None) -> Dict[str, Any]:
|
|
212
214
|
"""Compares current working tree AST signatures against the golden baseline."""
|
|
213
|
-
abs_root = os.path.abspath(workspace_root)
|
|
214
|
-
|
|
215
|
+
abs_root = os.path.realpath(os.path.abspath(workspace_root))
|
|
216
|
+
raw_g_path = golden_path or os.path.join(abs_root, ".tzero", "goldens.json")
|
|
217
|
+
g_path = os.path.realpath(os.path.abspath(raw_g_path))
|
|
218
|
+
if not (g_path == abs_root or g_path.startswith(abs_root + os.sep)):
|
|
219
|
+
return {"success": False, "error": "Golden path outside workspace root."}
|
|
215
220
|
|
|
216
221
|
if not os.path.isfile(g_path):
|
|
217
222
|
return {
|
|
@@ -22,7 +22,7 @@ REPO_URL = "https://github.com/toprakahmetaydogmus/TZeroAlgorithm"
|
|
|
22
22
|
WEB_URL = "https://tzero-indol.vercel.app"
|
|
23
23
|
AUTHOR = "Toprak Ahmet Aydoğmuş"
|
|
24
24
|
ORGANIZATION = "Siber Akademi"
|
|
25
|
-
VERSION = "v11.
|
|
25
|
+
VERSION = "v11.15.5"
|
|
26
26
|
PYPI_PKG = "tzero-mcp"
|
|
27
27
|
NPM_PKG = "tzero-mcp"
|
|
28
28
|
|
|
@@ -34,9 +34,9 @@ def get_live_github_stars() -> int:
|
|
|
34
34
|
req = urllib.request.Request(url, headers={"User-Agent": "T-Zero-Growth-Engine"})
|
|
35
35
|
with urllib.request.urlopen(req, timeout=5) as resp:
|
|
36
36
|
data = json.loads(resp.read().decode("utf-8"))
|
|
37
|
-
return int(data.get("stargazers_count",
|
|
37
|
+
return int(data.get("stargazers_count", 45))
|
|
38
38
|
except Exception:
|
|
39
|
-
return
|
|
39
|
+
return 45
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
def render_progress_bar(current: int, target: int = 100, length: int = 30) -> str:
|
|
@@ -63,7 +63,7 @@ To solve this, I spent the last several months engineering **T-Zero** ({VERSION}
|
|
|
63
63
|
- **T-Zero 4-Tier AST Tree:** 1,319,828 tokens (**-88.0% token reduction**)
|
|
64
64
|
- **Focus File Skeleton (T-3):** **-94.6% token reduction**
|
|
65
65
|
- **AST Visitor Speed:** <400ms (100% offline via local Python AST parser)
|
|
66
|
-
- **Unit & E2E Tests:**
|
|
66
|
+
- **Unit & E2E Tests:** 617 automated tests passing with 0 errors
|
|
67
67
|
|
|
68
68
|
### 🤖 New in {VERSION} — AI Godfather Auto-Corrector:
|
|
69
69
|
- Catches AI coding hallucinations before code is committed.
|
|
@@ -89,7 +89,7 @@ Add this to your Cursor MCP settings (`~/.cursor/mcp.json`):
|
|
|
89
89
|
- Zero external LLM calls or cloud telemetry.
|
|
90
90
|
- Built-in Shannon Entropy scanner (H >= 4.75) detects and redacts hardcoded API keys and credentials locally.
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
Building this as a solo open-source engineer at {ORGANIZATION}. Everything is 100% free under MIT.
|
|
93
93
|
|
|
94
94
|
If this saves your Cursor context budget, **I'd genuinely appreciate a star on GitHub ⭐** — we are on the road to our first 100 stars!
|
|
95
95
|
|
|
@@ -150,10 +150,10 @@ Check it out and drop a star if you find it useful! ⭐
|
|
|
150
150
|
"""
|
|
151
151
|
},
|
|
152
152
|
"r/Turkey": {
|
|
153
|
-
"title": f"
|
|
153
|
+
"title": f"Cursor ve Claude için geliştirdiğim açık kaynaklı context motoru {VERSION} ile yayında! 🇹🇷",
|
|
154
154
|
"body": f"""Merhaba Türk yazılımcı topluluğu!
|
|
155
155
|
|
|
156
|
-
Ben Toprak Ahmet Aydoğmuş,
|
|
156
|
+
Ben Toprak Ahmet Aydoğmuş, {ORGANIZATION} bünyesinde bağımsız açık kaynaklı yazılımlar geliştiriyorum.
|
|
157
157
|
|
|
158
158
|
Yapay zeka kodlama araçlarıyla (Cursor, Claude Desktop, Antigravity, Windsurf) büyük projelerde çalışırken en büyük darboğaz **token sınırları ve yüksek context maliyetleri**. Tüm dosyaları yapay zekaya yüklediğinizde binlerce satır gereksiz gövde kodu yapay zekanın dikkatini dağıtıyor ve pencereyi tüketiyor.
|
|
159
159
|
|
|
@@ -181,7 +181,7 @@ def generate_show_hn() -> Dict[str, str]:
|
|
|
181
181
|
return {
|
|
182
182
|
"title": f"Show HN: T-Zero – Local AST context pruning for LLMs with 88-95% token reduction",
|
|
183
183
|
"url": REPO_URL,
|
|
184
|
-
"first_comment": f"""Hi HN! I'm Toprak ({AUTHOR}), a
|
|
184
|
+
"first_comment": f"""Hi HN! I'm Toprak ({AUTHOR}), a software engineer from Turkey. I built T-Zero to solve a fundamental efficiency problem in AI-assisted software engineering: prompt context bloat.
|
|
185
185
|
|
|
186
186
|
### The Problem:
|
|
187
187
|
When developers feed large repositories into Cursor, Claude Desktop, or Claude Code, they either:
|
|
@@ -262,7 +262,7 @@ Option C (Standalone .exe):
|
|
|
262
262
|
Download precompiled Windows 64-bit binaries from our GitHub Releases!""",
|
|
263
263
|
f"""7/7 🌟 We are on a mission to reach our first 100 stars on GitHub!
|
|
264
264
|
|
|
265
|
-
Built by Toprak Ahmet Aydoğmuş (
|
|
265
|
+
Built by Toprak Ahmet Aydoğmuş (Siber Akademi). 100% free under AGPL-3.0-only.
|
|
266
266
|
|
|
267
267
|
If you care about AI efficiency and open source tooling, please drop a star ⭐:
|
|
268
268
|
|
|
@@ -282,7 +282,7 @@ def generate_product_hunt() -> Dict[str, str]:
|
|
|
282
282
|
"description": "T-Zero is a local Model Context Protocol (MCP) server for Cursor, Claude Desktop, Antigravity IDE, and Windsurf that deterministically prunes codebase bodies to typed AST skeletons, reducing LLM token consumption by 85–95% with 100% Zero-Leak security.",
|
|
283
283
|
"maker_comment": f"""Hey Product Hunt community! 👋
|
|
284
284
|
|
|
285
|
-
I'm Toprak ({AUTHOR}),
|
|
285
|
+
I'm Toprak ({AUTHOR}), and I've spent the past few months building **T-Zero** at {ORGANIZATION}.
|
|
286
286
|
|
|
287
287
|
### The Problem We Solved:
|
|
288
288
|
AI coding assistants like Cursor and Claude are transformative, but as soon as you open a repository with 50+ files, you run into:
|
|
@@ -284,16 +284,6 @@ class PathGuard:
|
|
|
284
284
|
if ".." in parts_str:
|
|
285
285
|
return False, "Path traversal ('..') detected.", None
|
|
286
286
|
|
|
287
|
-
# Check symlinks on target and parents
|
|
288
|
-
try:
|
|
289
|
-
test_path = path
|
|
290
|
-
while test_path != test_path.parent:
|
|
291
|
-
if test_path.is_symlink():
|
|
292
|
-
return False, f"Symlink path forbidden: {test_path}", None
|
|
293
|
-
test_path = test_path.parent
|
|
294
|
-
except (OSError, RuntimeError):
|
|
295
|
-
pass
|
|
296
|
-
|
|
297
287
|
try:
|
|
298
288
|
resolved = path.resolve(strict=for_write)
|
|
299
289
|
except FileNotFoundError:
|
|
@@ -309,6 +299,22 @@ class PathGuard:
|
|
|
309
299
|
except ValueError:
|
|
310
300
|
return False, f"Path escapes workspace boundary: {resolved} is outside {root}", None
|
|
311
301
|
|
|
302
|
+
# Check symlinks on target and parents within workspace boundary
|
|
303
|
+
try:
|
|
304
|
+
test_path = path
|
|
305
|
+
while test_path != test_path.parent:
|
|
306
|
+
try:
|
|
307
|
+
if test_path == root or test_path.resolve() == root:
|
|
308
|
+
break
|
|
309
|
+
except (OSError, RuntimeError):
|
|
310
|
+
if test_path == root:
|
|
311
|
+
break
|
|
312
|
+
if test_path.is_symlink():
|
|
313
|
+
return False, f"Symlink path forbidden: {test_path}", None
|
|
314
|
+
test_path = test_path.parent
|
|
315
|
+
except (OSError, RuntimeError):
|
|
316
|
+
pass
|
|
317
|
+
|
|
312
318
|
# Check every component of relative path for symlinks or protected directories
|
|
313
319
|
current = root
|
|
314
320
|
for part in relative.parts:
|
|
@@ -221,6 +221,9 @@ class WorkspaceProfiler:
|
|
|
221
221
|
container_configs: List[str] = []
|
|
222
222
|
ci_cd_configs: List[str] = []
|
|
223
223
|
|
|
224
|
+
test_cmds: List[str] = []
|
|
225
|
+
lint_cmds: List[str] = []
|
|
226
|
+
build_cmds: List[str] = []
|
|
224
227
|
test_cmd = "pytest -v" if primary_language == "Python" else "npm test"
|
|
225
228
|
lint_cmd = "ruff check ." if primary_language == "Python" else "eslint ."
|
|
226
229
|
build_cmd = "python -m build" if primary_language == "Python" else "npm run build"
|
|
@@ -231,6 +234,7 @@ class WorkspaceProfiler:
|
|
|
231
234
|
setup_p = os.path.join(self.workspace_root, "setup.py")
|
|
232
235
|
|
|
233
236
|
if os.path.isfile(pyproject_p) or os.path.isfile(req_p) or os.path.isfile(setup_p) or "Python" in languages_count:
|
|
237
|
+
py_lint = "flake8 ."
|
|
234
238
|
if os.path.isfile(pyproject_p):
|
|
235
239
|
package_managers.append("poetry/uv/flit")
|
|
236
240
|
build_systems.append("pyproject.toml")
|
|
@@ -241,7 +245,7 @@ class WorkspaceProfiler:
|
|
|
241
245
|
if "django" in txt: frameworks.append("Django")
|
|
242
246
|
if "flask" in txt: frameworks.append("Flask")
|
|
243
247
|
if "pytest" in txt: test_frameworks.append("pytest")
|
|
244
|
-
if "ruff" in txt:
|
|
248
|
+
if "ruff" in txt: py_lint = "ruff check ."
|
|
245
249
|
except Exception:
|
|
246
250
|
pass
|
|
247
251
|
if os.path.isfile(req_p):
|
|
@@ -259,9 +263,9 @@ class WorkspaceProfiler:
|
|
|
259
263
|
pass
|
|
260
264
|
if not test_frameworks:
|
|
261
265
|
test_frameworks.append("unittest/pytest")
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
266
|
+
test_cmds.append("python -m unittest discover -s tests -p \"test_*.py\"" if os.path.isdir(os.path.join(self.workspace_root, "tests")) else "pytest")
|
|
267
|
+
lint_cmds.append("ruff check ." if os.path.isfile(os.path.join(self.workspace_root, "ruff.toml")) else py_lint)
|
|
268
|
+
build_cmds.append("python setup.py build" if os.path.isfile(setup_p) else "python -m build")
|
|
265
269
|
|
|
266
270
|
# Node / TypeScript / JavaScript İncelemesi
|
|
267
271
|
pkg_json_p = os.path.join(self.workspace_root, "package.json")
|
|
@@ -295,11 +299,11 @@ class WorkspaceProfiler:
|
|
|
295
299
|
if "mocha" in deps: test_frameworks.append("mocha")
|
|
296
300
|
|
|
297
301
|
if "test" in scripts:
|
|
298
|
-
|
|
302
|
+
test_cmds.append("npm test")
|
|
299
303
|
if "lint" in scripts:
|
|
300
|
-
|
|
304
|
+
lint_cmds.append("npm run lint")
|
|
301
305
|
if "build" in scripts:
|
|
302
|
-
|
|
306
|
+
build_cmds.append("npm run build")
|
|
303
307
|
|
|
304
308
|
workspaces = pkg_data.get("workspaces", [])
|
|
305
309
|
if workspaces:
|
|
@@ -313,9 +317,9 @@ class WorkspaceProfiler:
|
|
|
313
317
|
package_managers.append("cargo")
|
|
314
318
|
build_systems.append("cargo")
|
|
315
319
|
test_frameworks.append("cargo test")
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
320
|
+
test_cmds.append("cargo test")
|
|
321
|
+
lint_cmds.append("cargo clippy")
|
|
322
|
+
build_cmds.append("cargo build --release")
|
|
319
323
|
try:
|
|
320
324
|
with open(cargo_p, "r", encoding="utf-8", errors="ignore") as fp:
|
|
321
325
|
c_txt = fp.read().lower()
|
|
@@ -332,9 +336,9 @@ class WorkspaceProfiler:
|
|
|
332
336
|
package_managers.append("go modules")
|
|
333
337
|
build_systems.append("go build")
|
|
334
338
|
test_frameworks.append("go test")
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
339
|
+
test_cmds.append("go test ./...")
|
|
340
|
+
lint_cmds.append("golangci-lint run")
|
|
341
|
+
build_cmds.append("go build ./...")
|
|
338
342
|
try:
|
|
339
343
|
with open(go_mod_p, "r", encoding="utf-8", errors="ignore") as fp:
|
|
340
344
|
g_txt = fp.read().lower()
|
|
@@ -344,6 +348,13 @@ class WorkspaceProfiler:
|
|
|
344
348
|
except Exception:
|
|
345
349
|
pass
|
|
346
350
|
|
|
351
|
+
if test_cmds:
|
|
352
|
+
test_cmd = " && ".join(test_cmds)
|
|
353
|
+
if lint_cmds:
|
|
354
|
+
lint_cmd = " && ".join(lint_cmds)
|
|
355
|
+
if build_cmds:
|
|
356
|
+
build_cmd = " && ".join(build_cmds)
|
|
357
|
+
|
|
347
358
|
# Container & CI/CD
|
|
348
359
|
if os.path.isfile(os.path.join(self.workspace_root, "Dockerfile")):
|
|
349
360
|
container_configs.append("Dockerfile")
|
|
@@ -540,7 +551,7 @@ class WorkspaceGovernanceSynthesizer:
|
|
|
540
551
|
@staticmethod
|
|
541
552
|
def generate_agent_md(profile: WorkspaceProfile) -> str:
|
|
542
553
|
"""Antigravity, AutoGPT ve Otonom Ajanlar için AGENT.md / AGENTS.md yönergesi üretir."""
|
|
543
|
-
return f"""#
|
|
554
|
+
return f"""# MASTER AGENT DIRECTIVE & ORCHESTRATION PROTOCOL
|
|
544
555
|
## Workspace: `{profile.project_name}`
|
|
545
556
|
*Engine: Siber Akademi T-Zero Jarvis Autonomous Multi-Agent Orchestrator*
|
|
546
557
|
*Version: 5.0.0 | Security Rating: 100% Zero-Leak Certified*
|
|
@@ -745,7 +756,7 @@ globs: **/*
|
|
|
745
756
|
|
|
746
757
|
mermaid_block = "```mermaid\nflowchart TD\n" + "\n".join(nodes) + "\n" + "\n".join(links) + "\n```"
|
|
747
758
|
|
|
748
|
-
return f"""#
|
|
759
|
+
return f"""# SYSTEM ARCHITECTURE SPECIFICATION: {profile.project_name}
|
|
749
760
|
*Generated by Siber Akademi T-Zero Jarvis Autonomous Engine V5.0*
|
|
750
761
|
|
|
751
762
|
## 1. Architectural Blueprint
|
|
@@ -1028,18 +1039,18 @@ flowchart LR
|
|
|
1028
1039
|
prof = profile or self.profile_workspace()
|
|
1029
1040
|
layers_desc = ", ".join(prof.architectural_layers.keys()) or "Standart Katmanlar"
|
|
1030
1041
|
|
|
1031
|
-
return f"""#
|
|
1042
|
+
return f"""# T-ZERO JARVIS MASTER WORKSPACE ORCHESTRATOR
|
|
1032
1043
|
*Executive AI Engineering Manager & Autonomous Multi-Agent Coordinator*
|
|
1033
1044
|
*Version: 5.1.0 | 100% Offline | $0.00 Cost | 100% Zero-Leak Certified*
|
|
1034
1045
|
|
|
1035
1046
|
---
|
|
1036
1047
|
|
|
1037
|
-
###
|
|
1048
|
+
### Merhaba! Ben T-Zero Jarvis.
|
|
1038
1049
|
Bu çalışma alanında (`{prof.project_name}`) bir **Yönetici (Executive Manager) ve Süper-Orkestratör** olarak görev yapıyorum.
|
|
1039
1050
|
Geliştiriciye veya yapay zeka ajanlarına (Cursor, Claude, Antigravity, Windsurf) adım adım rehberlik edebilir,
|
|
1040
1051
|
aşağıdaki otonom yetenekleri sunabilir ve projeyi uçtan uca planlayıp yönetebilirim:
|
|
1041
1052
|
|
|
1042
|
-
####
|
|
1053
|
+
#### Çalışma Alanı Durumu (Workspace Overview)
|
|
1043
1054
|
- **Proje:** `{prof.project_name}`
|
|
1044
1055
|
- **Ana Dil:** **{prof.primary_language}**
|
|
1045
1056
|
- **Çatılar:** `{', '.join(prof.frameworks) or 'Standart Kütüphane'}`
|
|
@@ -1051,7 +1062,7 @@ aşağıdaki otonom yetenekleri sunabilir ve projeyi uçtan uca planlayıp yöne
|
|
|
1051
1062
|
|
|
1052
1063
|
---
|
|
1053
1064
|
|
|
1054
|
-
####
|
|
1065
|
+
#### Neler Yapabilirim? (Executive Capabilities)
|
|
1055
1066
|
|
|
1056
1067
|
1. 📐 **Poliglot AI Yönetişim & Kural Dosyaları (.md) Oluşturma:**
|
|
1057
1068
|
- Projenin dili ({prof.primary_language}) ve mimarisine ({prof.architecture_pattern}) özel `.cursorrules`, `.cursor/rules/*.mdc`, `AGENT.md`, `ARCHITECTURE.md`, `.clinerules`, `.windsurfrules`, `CLAUDE.md`, `tzero.rules.json` dosyalarını otomatik üretir ve senkronize ederim (`export_agent_rules`).
|
|
@@ -1076,7 +1087,7 @@ aşağıdaki otonom yetenekleri sunabilir ve projeyi uçtan uca planlayıp yöne
|
|
|
1076
1087
|
|
|
1077
1088
|
---
|
|
1078
1089
|
|
|
1079
|
-
####
|
|
1090
|
+
#### Nasıl Başlatırsınız?
|
|
1080
1091
|
- Bir hedef veya görev belirtin (Örn: `"Projede kimlik doğrulama modülünü refactor et"`, `"Mimari kuralları ayarla"`, `"Güvenlik denetimi yap"`).
|
|
1081
1092
|
- Jarvis hedefinize özel **Çok Fazlı Master Eylem Planı (Phased Execution Plan)** sunacaktır!
|
|
1082
1093
|
"""
|
|
@@ -1144,7 +1155,7 @@ aşağıdaki otonom yetenekleri sunabilir ve projeyi uçtan uca planlayıp yöne
|
|
|
1144
1155
|
|
|
1145
1156
|
def _format_plan_markdown(self, goal: str, prof: WorkspaceProfile, phases: List[Dict[str, Any]]) -> str:
|
|
1146
1157
|
lines = [
|
|
1147
|
-
f"#
|
|
1158
|
+
f"# T-ZERO JARVIS MASTER MÜHENDİSLİK EYLEM PLANI",
|
|
1148
1159
|
f"- **Hedef:** **{goal}**",
|
|
1149
1160
|
f"- **Çalışma Alanı:** `{prof.project_name}` ({prof.primary_language}) | **Desen:** `{prof.architecture_pattern}`",
|
|
1150
1161
|
f"- **Doğrulama Komutu:** `{prof.default_test_command}` | **Maliyet:** `$0.00 (Zero-Key)`",
|
|
@@ -1154,7 +1165,7 @@ aşağıdaki otonom yetenekleri sunabilir ve projeyi uçtan uca planlayıp yöne
|
|
|
1154
1165
|
]
|
|
1155
1166
|
|
|
1156
1167
|
for p in phases:
|
|
1157
|
-
lines.append(f"###
|
|
1168
|
+
lines.append(f"### Faz {p['phase_id']}: {p['name']}")
|
|
1158
1169
|
lines.append("**Hedefler:**")
|
|
1159
1170
|
for obj in p["objectives"]:
|
|
1160
1171
|
lines.append(f"- [ ] {obj}")
|
|
@@ -1162,6 +1173,6 @@ aşağıdaki otonom yetenekleri sunabilir ve projeyi uçtan uca planlayıp yöne
|
|
|
1162
1173
|
lines.append(f"**Güvenlik / Doğrulama Kapısı:** *{p['safety_gate']}*\n")
|
|
1163
1174
|
|
|
1164
1175
|
lines.append("---")
|
|
1165
|
-
lines.append("####
|
|
1176
|
+
lines.append("#### İcra Başlatma:")
|
|
1166
1177
|
lines.append("Bu planı otonom olarak icra etmek için `jarvis_orchestrate_goal` aracını doğrudan bu hedefle çağırabilirsiniz.")
|
|
1167
1178
|
return "\n".join(lines)
|
package/src/tzero/tzero_lsp.py
CHANGED