@teevee98/synapse-hub 4.1.2 → 4.1.4

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 (122) hide show
  1. package/.agents/skills/01-web-automation/clean-pom-crafter/examples/standard_test_case.groovy +3 -0
  2. package/.agents/skills/01-web-automation/clean-pom-crafter/references/pom_patterns.groovy +3 -0
  3. package/.agents/skills/01-web-automation/e2e-testing-patterns/examples/playwright_sharded_config.ts +3 -0
  4. package/.agents/skills/01-web-automation/playwright-webapp-testing/examples/server_lifecycle_playwright.py +3 -0
  5. package/.agents/skills/04-performance-and-load/web-vitals-and-performance-profiler/examples/playwright_cwv_profiler_fixture.ts +3 -0
  6. package/.agents/skills/05-security-and-compliance/security-dast-sentinel/references/dast_recipes.ts +3 -0
  7. package/.agents/skills/08-code-quality/code-refactoring-refactor-clean/examples/refactored_page_sample.groovy +3 -0
  8. package/.agents/skills/08-code-quality/code-refactoring-refactor-clean/examples/refactored_playwright_pom.ts +3 -0
  9. package/.agents/skills/11-ai-and-prompting/qa-aci-interface/examples/surgical_code_window_walkthrough.md +1 -1
  10. package/README.en.md +2 -2
  11. package/README.md +2 -2
  12. package/agentskills.json +1 -1
  13. package/docs/ARCHITECTURE.en.md +1 -1
  14. package/docs/ARCHITECTURE.md +1 -1
  15. package/docs/PERFORMANCE_AUDIT_REPORT.md +2 -2
  16. package/package.json +1 -1
  17. package/plugin.json +1 -1
  18. package/scripts/generate_skill_examples.py +3 -0
  19. package/scripts/package_dist.py +3 -0
  20. package/skills_manifest.json +1 -1
  21. package/synapse.config.json +1 -1
  22. package/tools/.infer_baseline.json +3 -796
  23. package/tools/__init__.py +4 -1
  24. package/tools/agent_canary.py +3 -0
  25. package/tools/analyze_project.py +3 -0
  26. package/tools/api_drift_sentinel.py +3 -0
  27. package/tools/api_fuzzer.py +3 -0
  28. package/tools/ast_cache.py +4 -2
  29. package/tools/author_integrity.py +53 -1
  30. package/tools/auto_heal.py +7 -2
  31. package/tools/autogen_qa_broker.py +14 -15
  32. package/tools/benchmark_swarm_context.py +10 -2
  33. package/tools/browser_helpers.js +2 -2
  34. package/tools/bug_reporter.py +3 -0
  35. package/tools/build_consolidated_report.py +3 -0
  36. package/tools/bump_version.py +4 -1
  37. package/tools/cache_resolver.py +7 -3
  38. package/tools/check_env.py +3 -0
  39. package/tools/check_version_sync.py +3 -0
  40. package/tools/ci_healing_hook.py +3 -0
  41. package/tools/cli.py +10 -7
  42. package/tools/config_decoupler.py +3 -0
  43. package/tools/core/__init__.py +3 -0
  44. package/tools/core/file_lock.py +23 -14
  45. package/tools/core/i18n.py +9 -7
  46. package/tools/core/memory_bus.py +6 -3
  47. package/tools/core/process_supervisor.py +28 -18
  48. package/tools/core/token_estimator.py +55 -18
  49. package/tools/count_tokens.py +11 -7
  50. package/tools/create_mock_docx.py +3 -0
  51. package/tools/dashboard_generator.py +17 -15
  52. package/tools/db_sandbox.py +4 -1
  53. package/tools/debt_harvester.py +2 -2
  54. package/tools/diagram_architect.py +3 -0
  55. package/tools/distill_log.py +119 -26
  56. package/tools/e2e_flow_prober.py +3 -0
  57. package/tools/export_postman_collection.py +3 -0
  58. package/tools/flaky_detector.py +3 -0
  59. package/tools/fsm_enforcer.py +2 -2
  60. package/tools/fuzz_payloads.py +3 -0
  61. package/tools/generate_allure_report.py +3 -0
  62. package/tools/generate_api_matrix.py +3 -0
  63. package/tools/generate_jmx_plan.py +3 -0
  64. package/tools/generate_tc_from_story.py +3 -0
  65. package/tools/generate_test_reports.py +3 -0
  66. package/tools/git_pre_commit_guard.py +13 -3
  67. package/tools/git_worktree_manager.py +3 -0
  68. package/tools/heal/__init__.py +3 -0
  69. package/tools/heal_pr_automator.py +3 -0
  70. package/tools/heuristic_locator_matcher.py +3 -0
  71. package/tools/hub_publisher.py +3 -3
  72. package/tools/infer_linter.py +19 -9
  73. package/tools/init_config.py +6 -9
  74. package/tools/jtl_analyzer.py +3 -0
  75. package/tools/lint/__init__.py +3 -0
  76. package/tools/lint_ai_docs.py +3 -0
  77. package/tools/lookup_tc.py +3 -0
  78. package/tools/lookup_xpath.py +3 -0
  79. package/tools/matrix_sharder.py +3 -0
  80. package/tools/mcp/__init__.py +3 -0
  81. package/tools/mcp_docx_server.py +1 -1
  82. package/tools/mcp_excel_server.py +4 -1
  83. package/tools/mcp_server.py +4 -1
  84. package/tools/md_to_xlsx.py +3 -0
  85. package/tools/mechanical_ui_gate.py +3 -0
  86. package/tools/micro_mutator.py +9 -5
  87. package/tools/network_mock_shield.py +3 -0
  88. package/tools/newman_analyzer.py +3 -0
  89. package/tools/omni_emitter.py +3 -0
  90. package/tools/omni_parser.py +3 -0
  91. package/tools/omni_transpiler.py +3 -0
  92. package/tools/output_formatter.py +3 -0
  93. package/tools/package_release.py +6 -6
  94. package/tools/pairwise_generator.py +3 -0
  95. package/tools/pentest_scope_guard.py +2 -2
  96. package/tools/perf/__init__.py +3 -0
  97. package/tools/pinpoint_failure.py +3 -0
  98. package/tools/project_state.py +3 -0
  99. package/tools/repo_map.py +3 -0
  100. package/tools/report/__init__.py +3 -0
  101. package/tools/rules_router.py +42 -10
  102. package/tools/runaway_stopper.py +3 -0
  103. package/tools/safety_firewall.py +3 -0
  104. package/tools/setup_project.py +9 -4
  105. package/tools/skill_collision_guard.py +2 -2
  106. package/tools/skillspector.py +2 -1
  107. package/tools/smart_visual_masker.py +3 -0
  108. package/tools/telemetry_correlator.py +3 -0
  109. package/tools/template_excel_exporter.py +2 -2
  110. package/tools/test_impact.py +3 -0
  111. package/tools/trace_data_flow.py +3 -0
  112. package/tools/traffic_session_converter.py +3 -0
  113. package/tools/ui_server.py +2 -2
  114. package/tools/universal_ir.py +3 -0
  115. package/tools/update_sentinel.py +15 -9
  116. package/tools/validate_groovy_scripts.py +3 -0
  117. package/tools/verify_all.py +27 -20
  118. package/tools/visual_diff_canvas.py +3 -0
  119. package/tools/visual_som_helper.py +3 -0
  120. package/tools/watch_mode.py +4 -4
  121. package/tools/wcag_audit.py +3 -0
  122. package/tools/welcome_page.py +1 -1
@@ -125,7 +125,8 @@ class UnifiedMemoryBus:
125
125
  try:
126
126
  cur.execute("ALTER TABLE actor_mailbox ADD COLUMN session_id TEXT;")
127
127
  except sqlite3.OperationalError as _err:
128
- _ = _err
128
+ import logging
129
+ logging.getLogger("memory_bus").debug("session_id column already exists: %s", _err)
129
130
 
130
131
  # 3. Skill Vault Partition
131
132
  cur.execute("""
@@ -734,7 +735,8 @@ class UnifiedMemoryBus:
734
735
  try:
735
736
  self._conn.execute("ROLLBACK;")
736
737
  except Exception as _rb_err:
737
- _ = _rb_err
738
+ import logging
739
+ logging.getLogger("memory_bus").debug("Rollback on transaction error: %s", _rb_err)
738
740
  if attempt == max_retries - 1:
739
741
  raise
740
742
  # Non-blocking backoff jitter on SQLite contention
@@ -881,7 +883,8 @@ class UnifiedMemoryBus:
881
883
  try:
882
884
  self._conn.close()
883
885
  except Exception as err:
884
- _ = err
886
+ import logging
887
+ logging.getLogger("memory_bus").debug("Connection close error: %s", err)
885
888
 
886
889
  def __enter__(self) -> "UnifiedMemoryBus":
887
890
  return self
@@ -64,21 +64,22 @@ def kill_process_tree(pid: int, timeout: float = 2.0) -> bool:
64
64
  for child in children:
65
65
  try:
66
66
  child.terminate()
67
- except (psutil.NoSuchProcess, psutil.AccessDenied) as err:
68
- _ = err
67
+ except (psutil.NoSuchProcess, psutil.AccessDenied):
68
+ continue
69
69
  parent.terminate()
70
70
 
71
71
  gone, alive = psutil.wait_procs(children + [parent], timeout=timeout)
72
72
  for p in alive:
73
73
  try:
74
74
  p.kill()
75
- except (psutil.NoSuchProcess, psutil.AccessDenied) as err:
76
- _ = err
75
+ except (psutil.NoSuchProcess, psutil.AccessDenied):
76
+ continue
77
77
  return True
78
78
  except (psutil.NoSuchProcess, psutil.AccessDenied):
79
79
  return True
80
80
  except ImportError as err:
81
- _ = err
81
+ import logging
82
+ logging.getLogger("process_supervisor").debug("psutil import error: %s", err)
82
83
 
83
84
  # 2. Platform-native fallback
84
85
  if sys.platform == "win32":
@@ -116,7 +117,9 @@ def kill_process_tree(pid: int, timeout: float = 2.0) -> bool:
116
117
  descendant_pids.append(cp)
117
118
  to_check.append(cp)
118
119
  except Exception as err:
119
- _ = err
120
+ import logging
121
+ logging.getLogger("process_supervisor").debug("Process tree inspection error: %s", err)
122
+ continue
120
123
 
121
124
  try:
122
125
  caller_pgrp = os.getpgrp() if hasattr(os, "getpgrp") else None
@@ -128,7 +131,8 @@ def kill_process_tree(pid: int, timeout: float = 2.0) -> bool:
128
131
  else:
129
132
  pgid = None
130
133
  except OSError as err:
131
- _ = err
134
+ import logging
135
+ logging.getLogger("process_supervisor").debug("getpgid failed: %s", err)
132
136
  pgid = None
133
137
 
134
138
  sig_term = getattr(signal, "SIGTERM", 15)
@@ -139,12 +143,13 @@ def kill_process_tree(pid: int, timeout: float = 2.0) -> bool:
139
143
  try:
140
144
  os.killpg(pgid, sig_term)
141
145
  except OSError as err:
142
- _ = err
146
+ import logging
147
+ logging.getLogger("process_supervisor").debug("SIGTERM to pgid %s failed: %s", pgid, err)
143
148
  for p in [pid] + descendant_pids:
144
149
  try:
145
150
  os.kill(p, sig_term)
146
- except OSError as err:
147
- _ = err
151
+ except OSError:
152
+ continue
148
153
 
149
154
  # Bounded polling wait before force kill
150
155
  start = time.time()
@@ -155,32 +160,36 @@ def kill_process_tree(pid: int, timeout: float = 2.0) -> bool:
155
160
  os.killpg(pgid, 0)
156
161
  alive = True
157
162
  except OSError as err:
158
- _ = err
163
+ import logging
164
+ logging.getLogger("process_supervisor").debug("killpg 0 probe failed: %s", err)
159
165
  for p in [pid] + descendant_pids:
160
166
  try:
161
167
  os.kill(p, 0)
162
168
  alive = True
163
169
  except OSError as err:
164
- _ = err
170
+ import logging
171
+ logging.getLogger("process_supervisor").debug("killpg 0 probe failed: %s", err)
165
172
  if not alive:
166
173
  return True
167
- time.sleep(0.05)
174
+ time.sleep(0.05) # synapse-ignore: HARD_DELAY_ANTI_PATTERN
168
175
 
169
176
  # Stage 2: Forceful SIGKILL to eradicate all remaining processes
170
177
  for p in descendant_pids + [pid]:
171
178
  try:
172
179
  os.kill(p, sig_kill)
173
- except OSError as err:
174
- _ = err
180
+ except OSError:
181
+ continue
175
182
  if pgid is not None:
176
183
  try:
177
184
  os.killpg(pgid, sig_kill)
178
185
  except OSError as err:
179
- _ = err
186
+ import logging
187
+ logging.getLogger("process_supervisor").debug("SIGKILL to pgid %s failed: %s", pgid, err)
180
188
  try:
181
189
  subprocess.run(["pkill", "-KILL", "-P", str(pid)], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, timeout=2.0)
182
190
  except Exception as err:
183
- _ = err
191
+ import logging
192
+ logging.getLogger("process_supervisor").debug("pkill subprocess failed: %s", err)
184
193
  return True
185
194
 
186
195
 
@@ -338,7 +347,8 @@ class ProcessSupervisor:
338
347
  stdout_data = _to_str(stdout_raw)
339
348
  stderr_data = _to_str(stderr_raw)
340
349
  except Exception as comm_err:
341
- _ = comm_err
350
+ import logging
351
+ logging.getLogger("process_supervisor").debug("Process communicate error: %s", comm_err)
342
352
  returncode = 124
343
353
  except Exception as exc:
344
354
  kill_process_tree(proc.pid)
@@ -39,15 +39,30 @@ try:
39
39
  except ImportError:
40
40
  _TIKTOKEN_ENCODER = None
41
41
 
42
- _SKILLS_MANIFEST_CACHE: Optional[Dict[str, Dict[str, Any]]] = None
42
+ # Cache mapping canonical manifest_path -> (mtime, parsed_manifest)
43
+ _SKILLS_MANIFEST_CACHE: Dict[str, Any] = {}
44
+
45
+
46
+ def clear_skills_manifest_cache() -> None:
47
+ """Clears the in-memory skills manifest cache."""
48
+ global _SKILLS_MANIFEST_CACHE
49
+ _SKILLS_MANIFEST_CACHE.clear()
43
50
 
44
51
 
45
52
  def get_estimator_info() -> Dict[str, Any]:
46
53
  """Returns active tokenizer engine metadata, exactness status, and model hint."""
54
+ pkg_version = None
55
+ if _TIKTOKEN_ENCODER is not None:
56
+ try:
57
+ pkg_version = getattr(tiktoken, "__version__", None)
58
+ except Exception:
59
+ pkg_version = None
60
+
47
61
  return {
48
62
  "engine": "cl100k_base" if _TIKTOKEN_ENCODER is not None else "heuristic_polyglot",
49
63
  "is_exact": _TIKTOKEN_ENCODER is not None,
50
64
  "encoding": "cl100k_base",
65
+ "package_version": pkg_version,
51
66
  "calibrated_ratios": {
52
67
  "ascii_chars_per_token": 3.85,
53
68
  "non_ascii_chars_per_token": 1.80,
@@ -70,7 +85,8 @@ def count_tokens(text: str, model_hint: str = "cl100k") -> int:
70
85
  try:
71
86
  return len(_TIKTOKEN_ENCODER.encode(text, disallowed_special=()))
72
87
  except Exception as err:
73
- _ = err
88
+ import sys
89
+ sys.stderr.write(f"Warning: tiktoken encoding error, fallback to heuristic: {err}\n")
74
90
 
75
91
  # Heuristic calibrated against standard LLM subword tokenizers
76
92
  non_ascii_chars = len([c for c in text if ord(c) > 127])
@@ -100,24 +116,45 @@ def count_file_tokens(file_path: str) -> int:
100
116
 
101
117
 
102
118
  def _get_skills_manifest(repo_root: str) -> Dict[str, Dict[str, Any]]:
103
- """Loads and caches skills_manifest.json mapping skill_id to metadata."""
119
+ """
120
+ Loads and caches skills_manifest.json mapping skill_id to metadata.
121
+ Cache is keyed by the canonical realpath of the manifest file and validated
122
+ against file modification time (mtime) to support multi-repo isolation,
123
+ runtime manifest mutations, and deletions.
124
+ """
104
125
  global _SKILLS_MANIFEST_CACHE
105
- if _SKILLS_MANIFEST_CACHE is not None:
106
- return _SKILLS_MANIFEST_CACHE
126
+ manifest_path = os.path.realpath(os.path.join(repo_root, "skills_manifest.json"))
107
127
 
108
- manifest_path = os.path.join(repo_root, "skills_manifest.json")
109
- _SKILLS_MANIFEST_CACHE = {}
110
- if os.path.isfile(manifest_path):
111
- try:
112
- with open(manifest_path, "r", encoding="utf-8") as f:
113
- data = json.load(f)
114
- for s in data.get("skills", []):
115
- sid = s.get("id")
116
- if sid:
117
- _SKILLS_MANIFEST_CACHE[sid] = s
118
- except (OSError, json.JSONDecodeError) as err:
119
- _ = err
120
- return _SKILLS_MANIFEST_CACHE
128
+ if not os.path.isfile(manifest_path):
129
+ _SKILLS_MANIFEST_CACHE.pop(manifest_path, None)
130
+ return {}
131
+
132
+ try:
133
+ current_mtime = os.path.getmtime(manifest_path)
134
+ except OSError:
135
+ _SKILLS_MANIFEST_CACHE.pop(manifest_path, None)
136
+ return {}
137
+
138
+ if manifest_path in _SKILLS_MANIFEST_CACHE:
139
+ cached_mtime, cached_data = _SKILLS_MANIFEST_CACHE[manifest_path]
140
+ if cached_mtime == current_mtime:
141
+ return cached_data
142
+
143
+ manifest_data: Dict[str, Dict[str, Any]] = {}
144
+ try:
145
+ with open(manifest_path, "r", encoding="utf-8") as f:
146
+ data = json.load(f)
147
+ for s in data.get("skills", []):
148
+ sid = s.get("id")
149
+ if sid:
150
+ manifest_data[sid] = s
151
+ _SKILLS_MANIFEST_CACHE[manifest_path] = (current_mtime, manifest_data)
152
+ except (OSError, json.JSONDecodeError) as err:
153
+ import sys
154
+ sys.stderr.write(f"Warning: Failed to load manifest at {manifest_path}: {err}\n")
155
+ _SKILLS_MANIFEST_CACHE.pop(manifest_path, None)
156
+
157
+ return manifest_data
121
158
 
122
159
 
123
160
  def serialize_skill_summary(skill_name: str, meta: Optional[Dict[str, Any]] = None) -> str:
@@ -1,4 +1,7 @@
1
1
  #!/usr/bin/env python3
2
+ # SPDX-FileCopyrightText: © 2026 Thế Vị (@TeeVee98) <https://github.com/TeeVee98/Synapse-Hub>
3
+ # SPDX-License-Identifier: MIT
4
+
2
5
  """
3
6
  Cross-Platform Token & Cost Auditor (Synapse-Hub)
4
7
  Author: Thế Vị (@TeeVee98) <https://github.com/TeeVee98/Synapse-Hub>
@@ -147,8 +150,9 @@ def get_budget_config() -> Dict[str, int]:
147
150
  "budget_5h": data.get("budget_5h", DEFAULT_5H_BUDGET),
148
151
  "budget_7d": data.get("budget_7d", DEFAULT_7D_BUDGET),
149
152
  }
150
- except (OSError, json.JSONDecodeError):
151
- _ = False
153
+ except (OSError, json.JSONDecodeError) as err:
154
+ import logging
155
+ logging.getLogger("count_tokens").debug("Failed to read budget config: %s", err)
152
156
  return {
153
157
  "budget_5h": DEFAULT_5H_BUDGET,
154
158
  "budget_7d": DEFAULT_7D_BUDGET,
@@ -221,8 +225,9 @@ class AntigravityAdapter:
221
225
  }
222
226
  finally:
223
227
  conn.close()
224
- except (sqlite3.Error, OSError):
225
- _ = False
228
+ except (sqlite3.Error, OSError) as err:
229
+ import logging
230
+ logging.getLogger("count_tokens").debug("Failed to query database: %s", err)
226
231
 
227
232
  conversations = []
228
233
  for entry in os.listdir(brain_dir):
@@ -402,7 +407,7 @@ class AntigravityAdapter:
402
407
  usage_hours["cache"] += cache_tok
403
408
  usage_hours["output"] += out_tok
404
409
  except (OSError, UnicodeDecodeError):
405
- _ = False
410
+ continue
406
411
 
407
412
  budgets = get_budget_config()
408
413
  b_5h = budgets["budget_5h"]
@@ -679,8 +684,7 @@ def detect_platform_from_file(file_path: str) -> str:
679
684
  if "claude" in line.lower():
680
685
  return "claude"
681
686
  except (OSError, UnicodeDecodeError):
682
- _ = False
683
- return "antigravity"
687
+ return "antigravity"
684
688
 
685
689
 
686
690
  def get_adapter(platform: str):
@@ -1,4 +1,7 @@
1
1
  #!/usr/bin/env python3
2
+ # SPDX-FileCopyrightText: © 2026 Thế Vị (@TeeVee98) <https://github.com/TeeVee98/Synapse-Hub>
3
+ # SPDX-License-Identifier: MIT
4
+
2
5
  """Generates a lightweight valid mock DOCX fixture (< 20 KB) for OpenXML Guard / Word reader tests."""
3
6
 
4
7
  import os
@@ -183,8 +183,9 @@ def load_manifest(hub_root: str) -> Dict[str, Any]:
183
183
  try:
184
184
  with open(path, "r", encoding="utf-8") as f:
185
185
  return json.load(f)
186
- except (OSError, json.JSONDecodeError):
187
- _ = False
186
+ except (OSError, json.JSONDecodeError) as err:
187
+ import logging
188
+ logging.getLogger("dashboard_generator").debug("Failed to load skills_manifest: %s", err)
188
189
  return {"totalSkills": 50, "skills": [], "categories": {}, "profiles": {}}
189
190
 
190
191
 
@@ -211,7 +212,7 @@ def load_benchmark_report(hub_root: str) -> Dict[str, Any]:
211
212
  "available": True
212
213
  }
213
214
  except (OSError, UnicodeDecodeError):
214
- _ = False
215
+ continue
215
216
  return {
216
217
  "resolution_rate": "100.0%",
217
218
  "mttr": "0.0s",
@@ -245,7 +246,7 @@ def load_health_report(target_dir: str) -> Dict[str, Any]:
245
246
  "available": True
246
247
  }
247
248
  except (OSError, UnicodeDecodeError):
248
- _ = False
249
+ continue
249
250
  return {
250
251
  "dod_status": "100%_PASS",
251
252
  "classes_count": 0,
@@ -310,8 +311,9 @@ def load_latest_execution_results(target_dir: str) -> Dict[str, Any]:
310
311
  "timestamp": mtime_str,
311
312
  "report_path": rel_path
312
313
  }
313
- except (ET.ParseError, OSError, ValueError, KeyError):
314
- _ = False
314
+ except (ET.ParseError, OSError, ValueError, KeyError) as err:
315
+ import logging
316
+ logging.getLogger("dashboard_generator").debug("Failed to parse JUnit XML report: %s", err)
315
317
 
316
318
  # Check summaryTemp.txt if JUnit report not parsed
317
319
  summary_files = list(target_path.glob("**/summaryTemp.txt"))
@@ -344,7 +346,7 @@ def load_latest_execution_results(target_dir: str) -> Dict[str, Any]:
344
346
  "report_path": str(sf.relative_to(target_path))
345
347
  }
346
348
  except (OSError, ValueError):
347
- _ = False
349
+ continue
348
350
 
349
351
  return {
350
352
  "available": False,
@@ -404,7 +406,7 @@ def scan_target_project_assets(target_dir: str, stack_info: Dict[str, str]) -> D
404
406
  if classes_list:
405
407
  break
406
408
  except (json.JSONDecodeError, OSError, KeyError):
407
- _ = False
409
+ continue
408
410
 
409
411
  # Priority B: Parse repo_map.txt
410
412
  if not classes_list:
@@ -491,7 +493,7 @@ def scan_target_project_assets(target_dir: str, stack_info: Dict[str, str]) -> D
491
493
  "methods": m_list or ["(Defined in source)"]
492
494
  })
493
495
  except (OSError, UnicodeDecodeError):
494
- _ = False
496
+ continue
495
497
 
496
498
  # 2. Discover Test Cases
497
499
  test_files = []
@@ -1348,7 +1350,7 @@ def _build_target_translations(
1348
1350
  "th_step_status": "Trạng Thái",
1349
1351
  "th_step_details": "Chi Tiết Kỹ Thuật (OTel & AST)",
1350
1352
 
1351
- "footer_text": "Báo cáo được khởi tạo tự động bởi Synapse-Hub v4.1.2 &bull; Bản quyền &copy; Thế Vị (@TeeVee98) &bull; Chuẩn Clean POM & Kiểm Thử Tự Chủ",
1353
+ "footer_text": "Báo cáo được khởi tạo tự động bởi Synapse-Hub v4.1.4 &bull; Bản quyền &copy; Thế Vị (@TeeVee98) &bull; Chuẩn Clean POM & Kiểm Thử Tự Chủ",
1352
1354
  }
1353
1355
 
1354
1356
  translations_en = {
@@ -1426,7 +1428,7 @@ def _build_target_translations(
1426
1428
  "th_step_status": "Status",
1427
1429
  "th_step_details": "Technical Details (OTel & AST)",
1428
1430
 
1429
- "footer_text": "Generated automatically by Synapse-Hub v4.1.2 &bull; Copyright &copy; Thế Vị (@TeeVee98) &bull; Clean POM & Autonomous Testing",
1431
+ "footer_text": "Generated automatically by Synapse-Hub v4.1.4 &bull; Copyright &copy; Thế Vị (@TeeVee98) &bull; Clean POM & Autonomous Testing",
1430
1432
  }
1431
1433
 
1432
1434
  _inject_gate_translations(translations_vi, translations_en, gates)
@@ -1915,7 +1917,7 @@ def _build_hub_translations(
1915
1917
  """Builds bilingual dictionaries for Hub Dashboard."""
1916
1918
  translations_vi = {
1917
1919
  "header_title": "Bảng Điều Hành Chất Lượng Doanh Nghiệp",
1918
- "header_subtitle": "Synapse-Hub v4.1.2 &bull; Hệ Sinh Thái Kiểm Thử AI Agent Tự Chủ",
1920
+ "header_subtitle": "Synapse-Hub v4.1.4 &bull; Hệ Sinh Thái Kiểm Thử AI Agent Tự Chủ",
1919
1921
  "nav_welcome": "Giới Thiệu",
1920
1922
  "meta_mode": "🏷️ Chế độ: <strong>HỆ SINH THÁI QA HUB</strong>",
1921
1923
  "meta_gen": f"🕒 Khởi tạo: <strong>{now_str}</strong>",
@@ -1985,12 +1987,12 @@ def _build_hub_translations(
1985
1987
  "th_sk_ver": "Phiên Bản",
1986
1988
  "th_sk_cap": "Khả Năng Nghiệp Vụ Cốt Lõi",
1987
1989
 
1988
- "footer_text": "Bảng Điều Hành Chất Lượng Doanh Nghiệp &bull; Synapse-Hub v4.1.2 &bull; Bản quyền &copy; Thế Vị (@TeeVee98) &bull; Hệ Thống Kiểm Thử AI Agent Tự Chủ",
1990
+ "footer_text": "Bảng Điều Hành Chất Lượng Doanh Nghiệp &bull; Synapse-Hub v4.1.4 &bull; Bản quyền &copy; Thế Vị (@TeeVee98) &bull; Hệ Thống Kiểm Thử AI Agent Tự Chủ",
1989
1991
  }
1990
1992
 
1991
1993
  translations_en = {
1992
1994
  "header_title": "Enterprise QA Executive Dashboard",
1993
- "header_subtitle": "Synapse-Hub v4.1.2 &bull; Autonomous AI Agent Testing Ecosystem",
1995
+ "header_subtitle": "Synapse-Hub v4.1.4 &bull; Autonomous AI Agent Testing Ecosystem",
1994
1996
  "nav_welcome": "Welcome",
1995
1997
  "meta_mode": "🏷️ Mode: <strong>QA HUB ECOSYSTEM</strong>",
1996
1998
  "meta_gen": f"🕒 Generated: <strong>{now_str}</strong>",
@@ -2060,7 +2062,7 @@ def _build_hub_translations(
2060
2062
  "th_sk_ver": "Version",
2061
2063
  "th_sk_cap": "Core Capabilities",
2062
2064
 
2063
- "footer_text": "Enterprise QA Executive Dashboard &bull; Synapse-Hub v4.1.2 &bull; Copyright &copy; Thế Vị (@TeeVee98) &bull; Autonomous AI Agent Testing Ecosystem",
2065
+ "footer_text": "Enterprise QA Executive Dashboard &bull; Synapse-Hub v4.1.4 &bull; Copyright &copy; Thế Vị (@TeeVee98) &bull; Autonomous AI Agent Testing Ecosystem",
2064
2066
  }
2065
2067
 
2066
2068
  _inject_gate_translations(translations_vi, translations_en, gates)
@@ -1,4 +1,7 @@
1
1
  #!/usr/bin/env python3
2
+ # SPDX-FileCopyrightText: © 2026 Thế Vị (@TeeVee98) <https://github.com/TeeVee98/Synapse-Hub>
3
+ # SPDX-License-Identifier: MIT
4
+
2
5
  """
3
6
  Enterprise Zero-Pollution Database Sandbox & Ephemeral Teardown Engine
4
7
  ---------------------------------------------------------------------
@@ -550,7 +553,7 @@ def wait_for_ready(target: str, strategy: str = "auto", timeout_sec: float = 30.
550
553
  "error": None,
551
554
  }
552
555
  last_error = detail
553
- time.sleep(backoff)
556
+ time.sleep(backoff) # synapse-ignore: HARD_DELAY_ANTI_PATTERN
554
557
  backoff = min(backoff * 2, 2.0)
555
558
 
556
559
  return {
@@ -29,8 +29,8 @@ if hasattr(sys.stdout, 'reconfigure'):
29
29
  try:
30
30
  sys.stdout.reconfigure(encoding='utf-8')
31
31
  sys.stderr.reconfigure(encoding='utf-8')
32
- except Exception as exc:
33
- _ = exc
32
+ except Exception:
33
+ pass
34
34
 
35
35
  # Default directories to ignore during scan
36
36
  IGNORED_DIRS = {
@@ -1,4 +1,7 @@
1
1
  #!/usr/bin/env python3
2
+ # SPDX-FileCopyrightText: © 2026 Thế Vị (@TeeVee98) <https://github.com/TeeVee98/Synapse-Hub>
3
+ # SPDX-License-Identifier: MIT
4
+
2
5
  # -*- coding: utf-8 -*-
3
6
  """
4
7
  tools/diagram_architect.py — Standalone Self-Contained SVG & HTML Diagram Builder