tzero-mcp 10.7.4 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/CHANGELOG.md +56 -29
  2. package/CONTRIBUTING.md +71 -71
  3. package/README.md +64 -64
  4. package/bin/tzero-mcp.js +62 -66
  5. package/bin/tzero.js +61 -65
  6. package/index.d.ts +25 -25
  7. package/index.js +15 -15
  8. package/package.json +88 -88
  9. package/src/addmcp.py +14 -11
  10. package/src/app.py +1810 -0
  11. package/src/main.py +1 -1
  12. package/src/pc_fixer_mcp.py +25 -0
  13. package/src/tzero/__init__.py +54 -0
  14. package/src/tzero/__main__.py +6 -0
  15. package/src/tzero/siber_akademi.ico +0 -0
  16. package/src/tzero/tzero_arch_test.py +463 -0
  17. package/src/{tzero_benchmark.py → tzero/tzero_benchmark.py} +475 -475
  18. package/src/tzero/tzero_blackboard.py +257 -0
  19. package/src/{tzero_bridge.py → tzero/tzero_bridge.py} +546 -362
  20. package/src/tzero/tzero_budget.py +195 -0
  21. package/src/{tzero_ci.py → tzero/tzero_ci.py} +153 -153
  22. package/src/{tzero_commit.py → tzero/tzero_commit.py} +192 -192
  23. package/src/tzero/tzero_contracts.py +1093 -0
  24. package/src/{tzero_cost.py → tzero/tzero_cost.py} +166 -163
  25. package/src/{tzero_dashboard.py → tzero/tzero_dashboard.py} +531 -19
  26. package/src/tzero/tzero_debt.py +461 -0
  27. package/src/{tzero_deps.py → tzero/tzero_deps.py} +179 -4
  28. package/src/{tzero_drift.py → tzero/tzero_drift.py} +208 -208
  29. package/src/{tzero_explain.py → tzero/tzero_explain.py} +73 -7
  30. package/src/{tzero_features.py → tzero/tzero_features.py} +19 -17
  31. package/src/tzero/tzero_federation.py +299 -0
  32. package/src/{tzero_fix.py → tzero/tzero_fix.py} +228 -228
  33. package/src/{tzero_fixer → tzero/tzero_fixer}/__init__.py +63 -63
  34. package/src/{tzero_fixer → tzero/tzero_fixer}/ast_syntax_healer.py +464 -464
  35. package/src/{tzero_fixer → tzero/tzero_fixer}/ast_type_modernizer.py +288 -288
  36. package/src/{tzero_fixer → tzero/tzero_fixer}/async_io_modernizer.py +127 -127
  37. package/src/{tzero_fixer → tzero/tzero_fixer}/automated_regression_suite.py +600 -600
  38. package/src/{tzero_fixer → tzero/tzero_fixer}/benchmarks_and_diagnostics.py +174 -174
  39. package/src/{tzero_fixer → tzero/tzero_fixer}/ci_cd_self_healing_gate.py +246 -246
  40. package/src/{tzero_fixer → tzero/tzero_fixer}/code_duplicity_and_refactorer.py +151 -151
  41. package/src/{tzero_fixer → tzero/tzero_fixer}/code_smells_healer.py +260 -260
  42. package/src/{tzero_fixer → tzero/tzero_fixer}/cwe_remediator.py +171 -171
  43. package/src/{tzero_fixer → tzero/tzero_fixer}/dead_code_eliminator.py +150 -150
  44. package/src/{tzero_fixer → tzero/tzero_fixer}/dependency_vulnerability_auditor.py +309 -309
  45. package/src/{tzero_fixer → tzero/tzero_fixer}/git_advanced_surgeon.py +1 -1
  46. package/src/{tzero_fixer → tzero/tzero_fixer}/hardware_and_disk_doctor.py +1 -1
  47. package/src/{tzero_fixer → tzero/tzero_fixer}/import_graph_healer.py +412 -412
  48. package/src/{tzero_fixer → tzero/tzero_fixer}/interactive_tui.py +91 -91
  49. package/src/{tzero_fixer → tzero/tzero_fixer}/knowledge_base.py +295 -295
  50. package/src/{tzero_fixer → tzero/tzero_fixer}/knowledge_base_extended.py +940 -940
  51. package/src/{tzero_fixer → tzero/tzero_fixer}/linters_and_static_analyzer.py +307 -307
  52. package/src/{tzero_fixer → tzero/tzero_fixer}/mcp_server.py +49 -7
  53. package/src/{tzero_fixer → tzero/tzero_fixer}/os_doctor.py +502 -502
  54. package/src/{tzero_fixer → tzero/tzero_fixer}/packaging_abi_surgeon.py +1 -1
  55. package/src/{tzero_fixer → tzero/tzero_fixer}/pc_fixer_doctor.py +600 -599
  56. package/src/{tzero_fixer → tzero/tzero_fixer}/performance_and_memory_profiler.py +274 -274
  57. package/src/{tzero_fixer → tzero/tzero_fixer}/polyglot_ast_parsers.py +313 -313
  58. package/src/{tzero_fixer → tzero/tzero_fixer}/polyglot_build_healer.py +1 -1
  59. package/src/{tzero_fixer → tzero/tzero_fixer}/polyglot_config_healer.py +318 -318
  60. package/src/{tzero_fixer → tzero/tzero_fixer}/polyglot_doctor.py +372 -372
  61. package/src/{tzero_fixer → tzero/tzero_fixer}/polyglot_linters.py +1 -1
  62. package/src/{tzero_fixer → tzero/tzero_fixer}/polyglot_schema_validator.py +305 -305
  63. package/src/{tzero_fixer → tzero/tzero_fixer}/security_cwe_database.py +444 -444
  64. package/src/{tzero_fixer → tzero/tzero_fixer}/security_deep_rules.py +114 -114
  65. package/src/{tzero_fixer → tzero/tzero_fixer}/security_rules_catalog.py +110 -110
  66. package/src/{tzero_fixer → tzero/tzero_fixer}/security_zero_leak.py +326 -326
  67. package/src/{tzero_fixer → tzero/tzero_fixer}/smart_patch_recommender.py +223 -223
  68. package/src/{tzero_fixer → tzero/tzero_fixer}/synthetic_workspace_generator.py +220 -220
  69. package/src/{tzero_fixer → tzero/tzero_fixer}/system_diagnostics_extended.py +1 -1
  70. package/src/{tzero_fixer → tzero/tzero_fixer}/system_repair_recipes.py +447 -447
  71. package/src/{tzero_fixer → tzero/tzero_fixer}/venv_doctor.py +309 -309
  72. package/src/tzero/tzero_golden.py +319 -0
  73. package/src/tzero/tzero_graph_hud.html +338 -0
  74. package/src/tzero/tzero_graph_rag.py +263 -0
  75. package/src/{tzero_guard.py → tzero/tzero_guard.py} +243 -243
  76. package/src/tzero/tzero_hooks.py +565 -0
  77. package/src/{tzero_infra.py → tzero/tzero_infra.py} +274 -274
  78. package/src/{tzero_jarvis → tzero/tzero_jarvis}/__init__.py +124 -124
  79. package/src/{tzero_jarvis → tzero/tzero_jarvis}/causal_graph.py +310 -310
  80. package/src/{tzero_jarvis → tzero/tzero_jarvis}/graph_visualizer.py +395 -395
  81. package/src/{tzero_jarvis → tzero/tzero_jarvis}/hybrid_search.py +214 -214
  82. package/src/{tzero_jarvis → tzero/tzero_jarvis}/latent_press.py +137 -137
  83. package/src/{tzero_jarvis → tzero/tzero_jarvis}/memory_consolidation.py +212 -212
  84. package/src/{tzero_jarvis → tzero/tzero_jarvis}/minhash_lsh.py +184 -184
  85. package/src/{tzero_jarvis → tzero/tzero_jarvis}/orchestrator.py +335 -335
  86. package/src/{tzero_jarvis → tzero/tzero_jarvis}/self_healing.py +308 -308
  87. package/src/{tzero_jarvis → tzero/tzero_jarvis}/semantic_compressor.py +887 -887
  88. package/src/{tzero_jarvis → tzero/tzero_jarvis}/swarm.py +261 -261
  89. package/src/{tzero_jarvis → tzero/tzero_jarvis}/swarm_bft.py +144 -144
  90. package/src/{tzero_jarvis → tzero/tzero_jarvis}/workspace_orchestrator.py +1167 -1167
  91. package/src/{tzero_jarvis → tzero/tzero_jarvis}/zero_key_router.py +173 -173
  92. package/src/tzero/tzero_lsp.py +634 -0
  93. package/src/{tzero_mcp.py → tzero/tzero_mcp.py} +479 -100
  94. package/src/tzero/tzero_mutation.py +358 -0
  95. package/src/tzero/tzero_packer.py +577 -0
  96. package/src/{tzero_patch.py → tzero/tzero_patch.py} +624 -624
  97. package/src/{tzero_pc_fixer.py → tzero/tzero_pc_fixer.py} +12699 -12657
  98. package/src/{tzero_pipe.py → tzero/tzero_pipe.py} +95 -95
  99. package/src/tzero/tzero_polyglot.py +799 -0
  100. package/src/tzero/tzero_proxy.py +127 -0
  101. package/src/{tzero_reachability.py → tzero/tzero_reachability.py} +272 -272
  102. package/src/{tzero_replay.py → tzero/tzero_replay.py} +141 -141
  103. package/src/tzero/tzero_rust_bridge.py +198 -0
  104. package/src/tzero/tzero_scip.py +368 -0
  105. package/src/{tzero_security.py → tzero/tzero_security.py} +5 -2
  106. package/src/tzero/tzero_semantic_merge.py +189 -0
  107. package/src/tzero/tzero_snapshot.py +471 -0
  108. package/src/{tzero_stubs.py → tzero/tzero_stubs.py} +313 -313
  109. package/src/tzero/tzero_subagent_engine.py +459 -0
  110. package/src/{tzero_superdesign.py → tzero/tzero_superdesign.py} +774 -774
  111. package/src/{tzero_sync.py → tzero/tzero_sync.py} +241 -241
  112. package/src/{tzero_task_benchmark.py → tzero/tzero_task_benchmark.py} +458 -363
  113. package/src/{tzero_tui.py → tzero/tzero_tui.py} +91 -22
  114. package/src/tzero/tzero_turbo.py +264 -0
  115. package/src/{tzero_v3.py → tzero/tzero_v3.py} +628 -163
  116. package/src/tzero.py +2 -54
  117. package/test/package.test.js +55 -43
  118. package/src/tzero/jarvis/semantic_compressor.py +0 -373
  119. package/src/tzero_gateway.py +0 -885
  120. package/src/tzero_packer.py +0 -370
  121. package/src/tzero_polyglot.py +0 -422
  122. package/src/tzero_snapshot.py +0 -258
  123. /package/src/{siber_akademi_icon.py → tzero/siber_akademi_icon.py} +0 -0
  124. /package/src/{tzero_fixer → tzero/tzero_fixer}/amalgamation.py +0 -0
  125. /package/src/{tzero_fixer → tzero/tzero_fixer}/models.py +0 -0
  126. /package/src/{tzero_fixer → tzero/tzero_fixer}/orchestrator.py +0 -0
  127. /package/src/{tzero_neural_cortex.py → tzero/tzero_neural_cortex.py} +0 -0
package/index.d.ts CHANGED
@@ -1,25 +1,25 @@
1
- /**
2
- * T-Zero Model Context Protocol (MCP) Server & AST Context Architect
3
- * Author: Toprak Ahmet Aydoğmuş (Siber Akademi)
4
- * Repository: https://github.com/toprakahmetaydogmus/TZeroAlgorithm
5
- */
6
-
7
- export interface TZeroPackageInfo {
8
- version: string;
9
- author: string;
10
- repository: string;
11
- srcDir: string;
12
- mcpServer: string;
13
- cli: string;
14
- }
15
-
16
- export declare const version: string;
17
- export declare const author: string;
18
- export declare const repository: string;
19
- export declare const srcDir: string;
20
- export declare const mcpServer: string;
21
- export declare const cli: string;
22
-
23
- declare const tzero: TZeroPackageInfo;
24
- export default tzero;
25
-
1
+ /**
2
+ * T-Zero Model Context Protocol (MCP) Server & AST Context Architect
3
+ * Author: Toprak Ahmet Aydoğmuş (Siber Akademi)
4
+ * Repository: https://github.com/toprakahmetaydogmus/TZeroAlgorithm
5
+ */
6
+
7
+ export interface TZeroPackageInfo {
8
+ version: string;
9
+ author: string;
10
+ repository: string;
11
+ srcDir: string;
12
+ mcpServer: string;
13
+ cli: string;
14
+ }
15
+
16
+ export declare const version: string;
17
+ export declare const author: string;
18
+ export declare const repository: string;
19
+ export declare const srcDir: string;
20
+ export declare const mcpServer: string;
21
+ export declare const cli: string;
22
+
23
+ declare const tzero: TZeroPackageInfo;
24
+ export default tzero;
25
+
package/index.js CHANGED
@@ -1,15 +1,15 @@
1
- const path = require("path");
2
-
3
- /**
4
- * T-Zero Context Architect & MCP Server
5
- * https://github.com/toprakahmetaydogmus/TZeroAlgorithm
6
- */
7
-
8
- module.exports = {
9
- version: "10.7.4",
10
- author: "Toprak Ahmet Aydoğmuş (Siber Akademi)",
11
- repository: "https://github.com/toprakahmetaydogmus/TZeroAlgorithm",
12
- srcDir: path.resolve(__dirname, "src"),
13
- mcpServer: path.resolve(__dirname, "src", "tzero_mcp.py"),
14
- cli: path.resolve(__dirname, "src", "tzero_v3.py")
15
- };
1
+ const path = require("path");
2
+
3
+ /**
4
+ * T-Zero Context Architect & MCP Server
5
+ * https://github.com/toprakahmetaydogmus/TZeroAlgorithm
6
+ */
7
+
8
+ module.exports = {
9
+ version: require("./package.json").version,
10
+ author: "Toprak Ahmet Aydoğmuş (Siber Akademi)",
11
+ repository: "https://github.com/toprakahmetaydogmus/TZeroAlgorithm",
12
+ srcDir: path.resolve(__dirname, "src"),
13
+ mcpServer: path.resolve(__dirname, "src", "tzero", "tzero_mcp.py"),
14
+ cli: path.resolve(__dirname, "src", "tzero", "tzero_v3.py")
15
+ };
package/package.json CHANGED
@@ -1,88 +1,88 @@
1
- {
2
- "name": "tzero-mcp",
3
- "version": "10.7.4",
4
- "description": "Deterministic AST Context Compressor, 95% Token Reducer & 20-Tool MCP Server for Cursor, Claude Desktop & Copilot",
5
- "main": "index.js",
6
- "types": "index.d.ts",
7
- "type": "commonjs",
8
- "exports": {
9
- ".": {
10
- "types": "./index.d.ts",
11
- "default": "./index.js"
12
- },
13
- "./package.json": "./package.json"
14
- },
15
- "sideEffects": false,
16
- "preferGlobal": true,
17
- "engines": {
18
- "node": ">=18.0.0",
19
- "npm": ">=9.0.0"
20
- },
21
- "files": [
22
- "bin",
23
- "src",
24
- "test",
25
- "index.js",
26
- "index.d.ts",
27
- "README.md",
28
- "CHANGELOG.md",
29
- "CONTRIBUTING.md",
30
- "LICENSE",
31
- "package.json"
32
- ],
33
- "bin": {
34
- "tzero": "bin/tzero.js",
35
- "tzero-mcp": "bin/tzero-mcp.js"
36
- },
37
- "scripts": {
38
- "test": "node --test test/package.test.js"
39
- },
40
- "repository": {
41
- "type": "git",
42
- "url": "git+https://github.com/toprakahmetaydogmus/TZeroAlgorithm.git"
43
- },
44
- "funding": [
45
- {
46
- "type": "github",
47
- "url": "https://github.com/sponsors/toprakahmetaydogmus"
48
- },
49
- {
50
- "type": "individual",
51
- "url": "https://github.com/toprakahmetaydogmus/TZeroAlgorithm"
52
- }
53
- ],
54
- "keywords": [
55
- "mcp",
56
- "mcp-server",
57
- "cursor",
58
- "claude",
59
- "claude-desktop",
60
- "token-reduction",
61
- "ast-pruning",
62
- "context-window",
63
- "ai-coding",
64
- "antigravity",
65
- "windsurf"
66
- ],
67
- "author": "Toprak Ahmet Aydoğmuş (Siber Akademi) <siberakademi@org.tr> (https://github.com/toprakahmetaydogmus)",
68
- "contributors": [
69
- {
70
- "name": "Toprak Ahmet Aydoğmuş",
71
- "email": "siberakademi@org.tr",
72
- "url": "https://github.com/toprakahmetaydogmus"
73
- },
74
- {
75
- "name": "Siber Akademi Core Team",
76
- "email": "contact@siberakademi.org.tr",
77
- "url": "https://github.com/toprakahmetaydogmus"
78
- }
79
- ],
80
- "license": "MIT",
81
- "bugs": {
82
- "url": "https://github.com/toprakahmetaydogmus/TZeroAlgorithm/issues"
83
- },
84
- "homepage": "https://github.com/toprakahmetaydogmus/TZeroAlgorithm#readme",
85
- "publishConfig": {
86
- "access": "public"
87
- }
88
- }
1
+ {
2
+ "name": "tzero-mcp",
3
+ "version": "11.0.0",
4
+ "description": "Deterministic AST Context Compressor, 95% Token Reducer & 20-Tool MCP Server for Cursor, Claude Desktop & Copilot",
5
+ "main": "index.js",
6
+ "types": "index.d.ts",
7
+ "type": "commonjs",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./index.d.ts",
11
+ "default": "./index.js"
12
+ },
13
+ "./package.json": "./package.json"
14
+ },
15
+ "sideEffects": false,
16
+ "preferGlobal": true,
17
+ "engines": {
18
+ "node": ">=18.0.0",
19
+ "npm": ">=9.0.0"
20
+ },
21
+ "files": [
22
+ "bin",
23
+ "src",
24
+ "test",
25
+ "index.js",
26
+ "index.d.ts",
27
+ "README.md",
28
+ "CHANGELOG.md",
29
+ "CONTRIBUTING.md",
30
+ "LICENSE",
31
+ "package.json"
32
+ ],
33
+ "bin": {
34
+ "tzero": "bin/tzero.js",
35
+ "tzero-mcp": "bin/tzero-mcp.js"
36
+ },
37
+ "scripts": {
38
+ "test": "node --test test/package.test.js"
39
+ },
40
+ "repository": {
41
+ "type": "git",
42
+ "url": "git+https://github.com/toprakahmetaydogmus/TZeroAlgorithm.git"
43
+ },
44
+ "funding": [
45
+ {
46
+ "type": "github",
47
+ "url": "https://github.com/sponsors/toprakahmetaydogmus"
48
+ },
49
+ {
50
+ "type": "individual",
51
+ "url": "https://github.com/toprakahmetaydogmus/TZeroAlgorithm"
52
+ }
53
+ ],
54
+ "keywords": [
55
+ "mcp",
56
+ "mcp-server",
57
+ "cursor",
58
+ "claude",
59
+ "claude-desktop",
60
+ "token-reduction",
61
+ "ast-pruning",
62
+ "context-window",
63
+ "ai-coding",
64
+ "antigravity",
65
+ "windsurf"
66
+ ],
67
+ "author": "Toprak Ahmet Aydoğmuş (Siber Akademi) <siberakademi@org.tr> (https://github.com/toprakahmetaydogmus)",
68
+ "contributors": [
69
+ {
70
+ "name": "Toprak Ahmet Aydoğmuş",
71
+ "email": "siberakademi@org.tr",
72
+ "url": "https://github.com/toprakahmetaydogmus"
73
+ },
74
+ {
75
+ "name": "Siber Akademi Core Team",
76
+ "email": "contact@siberakademi.org.tr",
77
+ "url": "https://github.com/toprakahmetaydogmus"
78
+ }
79
+ ],
80
+ "license": "MIT",
81
+ "bugs": {
82
+ "url": "https://github.com/toprakahmetaydogmus/TZeroAlgorithm/issues"
83
+ },
84
+ "homepage": "https://github.com/toprakahmetaydogmus/TZeroAlgorithm#readme",
85
+ "publishConfig": {
86
+ "access": "public"
87
+ }
88
+ }
package/src/addmcp.py CHANGED
@@ -22,7 +22,7 @@ from pathlib import Path
22
22
  from typing import Callable, Dict, List, Optional, Tuple
23
23
 
24
24
 
25
- APP_VERSION = "10.2.0"
25
+ APP_VERSION = "11.0.0"
26
26
  SERVER_NAME = "tzero"
27
27
  SERVER_FILENAME = "TZeroMCP.exe"
28
28
 
@@ -809,7 +809,9 @@ def resolve_and_install_server() -> Path:
809
809
 
810
810
  # 3. Python script fallback
811
811
  for script_cand in [
812
+ root / "tzero" / "tzero_mcp.py",
812
813
  root / "tzero_mcp.py",
814
+ Path.cwd() / "tzero" / "tzero_mcp.py",
813
815
  Path.cwd() / "tzero_mcp.py",
814
816
  ]:
815
817
  if script_cand.is_file():
@@ -862,7 +864,9 @@ class AddMCPApp:
862
864
  self.root.minsize(600, 540)
863
865
  self.root.configure(bg="#11151c")
864
866
 
865
- icon_path = _resource_path("siber_akademi.ico")
867
+ icon_path = _resource_path("tzero/siber_akademi.ico")
868
+ if not icon_path.is_file():
869
+ icon_path = _resource_path("siber_akademi.ico")
866
870
  if icon_path.is_file():
867
871
  try:
868
872
  self.root.iconbitmap(str(icon_path))
@@ -1111,7 +1115,7 @@ def run_init(argv: Optional[List[str]] = None) -> int:
1111
1115
  # Print banner
1112
1116
  print("""
1113
1117
  \033[1;36m================================================================================
1114
- ⚡ SİBER AKADEMİ — T-ZERO 1-CLICK MCP INITIALIZATION (v10.0.0)
1118
+ ⚡ SİBER AKADEMİ — T-ZERO 1-CLICK MCP INITIALIZATION (v11.0.0)
1115
1119
  ================================================================================\033[0m
1116
1120
  \033[32m🎯 Zero-Config AST Codebase Context & 100% Zero-Leak Security Guard\033[0m
1117
1121
  """)
@@ -1169,18 +1173,17 @@ def run_init(argv: Optional[List[str]] = None) -> int:
1169
1173
  \033[36m"Use T-Zero to get the project skeleton and analyze the blast radius."\033[0m
1170
1174
  \033[36m"Use tzero reduce_tokens to prune noise and audit zero-leak security."\033[0m
1171
1175
 
1172
- \033[1;33m┌──────────────────────────────────────────────────────────────────────────────┐
1173
- │ ⭐ A MESSAGE FROM THE CREATOR │
1176
+ \033[1;36m┌──────────────────────────────────────────────────────────────────────────────┐
1177
+ │ ⚡ SIBER AKADEMI T-ZERO CONTEXT ARCHITECT & MCP ENGINE │
1174
1178
  │ │
1175
- │ Hi! I'm Toprak Ahmet Aydoğmuş, a 15-year-old self-taught developer from │
1176
- │ Siber Akademi. I built T-Zero from scratch to eliminate token bloat and │
1177
- │ AI hallucinations for programmers worldwide ($0.00 cloud cost). │
1179
+ │ Engineered by Toprak Ahmet Aydoğmuş & Siber Akademi to eliminate token │
1180
+ │ bloat, token costs, and AI hallucinations for programmers worldwide. │
1178
1181
  │ │
1179
- │ If this open-source tool saved you tokens or helped your coding flow: │
1182
+ │ If this open-source tool saved you tokens or improved your coding flow: │
1180
1183
  │ 👉 Please consider giving it a ⭐ on GitHub: │
1181
1184
  │ https://github.com/toprakahmetaydogmus/TZeroAlgorithm │
1182
1185
  │ │
1183
- │ Every star means the world and helps a young open-source developer grow! 🚀 │
1186
+ │ 100% Free & Open-Source under MIT License. Thank you! 🚀 │
1184
1187
  └──────────────────────────────────────────────────────────────────────────────┘\033[0m
1185
1188
  """)
1186
1189
  return 0 if failures == 0 else 1
@@ -1191,4 +1194,4 @@ def main() -> None:
1191
1194
 
1192
1195
 
1193
1196
  if __name__ == "__main__":
1194
- main()
1197
+ main()