@teevee98/synapse-hub 4.1.4 → 4.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.
Files changed (133) hide show
  1. package/.agents/rules/git-push-protocol.md +2 -2
  2. package/.agents/skills/01-web-automation/auth-session-and-cookie-manager/SKILL.md +52 -3
  3. package/.agents/skills/01-web-automation/bats-testing-patterns/SKILL.md +55 -5
  4. package/.agents/skills/01-web-automation/clean-pom-crafter/SKILL.md +62 -67
  5. package/.agents/skills/01-web-automation/e2e-testing-patterns/SKILL.md +54 -4
  6. package/.agents/skills/01-web-automation/katalon-cli-runner/SKILL.md +62 -12
  7. package/.agents/skills/01-web-automation/lam-script-generator/SKILL.md +55 -8
  8. package/.agents/skills/01-web-automation/mobile-appium-som/SKILL.md +60 -12
  9. package/.agents/skills/01-web-automation/mobile-appium-som/examples/BaseScreen.java +2 -2
  10. package/.agents/skills/01-web-automation/mobile-appium-som/examples/LoginScreen.java +2 -2
  11. package/.agents/skills/01-web-automation/mobile-appium-som/examples/TC_MobileLogin.java +2 -2
  12. package/.agents/skills/01-web-automation/playwright-live-interaction/SKILL.md +54 -91
  13. package/.agents/skills/01-web-automation/playwright-webapp-testing/SKILL.md +59 -11
  14. package/.agents/skills/01-web-automation/web-agent-gym-benchmarking/SKILL.md +50 -4
  15. package/.agents/skills/02-test-design/architecture-decision-records/SKILL.md +55 -9
  16. package/.agents/skills/02-test-design/gherkin-to-suite/SKILL.md +55 -9
  17. package/.agents/skills/02-test-design/rbt-manual-testing/SKILL.md +55 -8
  18. package/.agents/skills/02-test-design/review-spec/SKILL.md +50 -6
  19. package/.agents/skills/02-test-design/tot-exploratory-testing/SKILL.md +50 -4
  20. package/.agents/skills/03-api-and-contracts/api-network-mocking-interception/SKILL.md +56 -5
  21. package/.agents/skills/03-api-and-contracts/api-spec-to-e2e-matrix/SKILL.md +53 -7
  22. package/.agents/skills/03-api-and-contracts/consumer-driven-contract-testing/SKILL.md +86 -36
  23. package/.agents/skills/04-performance-and-load/backend-load-and-stress-patterns/SKILL.md +54 -6
  24. package/.agents/skills/04-performance-and-load/lean-impact-scoreboard/SKILL.md +50 -6
  25. package/.agents/skills/04-performance-and-load/web-vitals-and-performance-profiler/SKILL.md +50 -3
  26. package/.agents/skills/05-security-and-compliance/security-dast-sentinel/SKILL.md +63 -14
  27. package/.agents/skills/05-security-and-compliance/skillspector-security-guard/SKILL.md +51 -5
  28. package/.agents/skills/05-security-and-compliance/wcag-audit-patterns/SKILL.md +54 -4
  29. package/.agents/skills/06-healing-and-resilience/agentless-qa-repair/SKILL.md +51 -5
  30. package/.agents/skills/06-healing-and-resilience/antigravity-test-sentinel/SKILL.md +53 -6
  31. package/.agents/skills/06-healing-and-resilience/failure-autopsy-and-healing/SKILL.md +54 -8
  32. package/.agents/skills/06-healing-and-resilience/flaky-test-sentinel-and-quarantine/SKILL.md +60 -24
  33. package/.agents/skills/06-healing-and-resilience/self-healing-locator/SKILL.md +52 -6
  34. package/.agents/skills/06-healing-and-resilience/systematic-debugging/SKILL.md +56 -10
  35. package/.agents/skills/06-healing-and-resilience/test-driven-development/SKILL.md +58 -12
  36. package/.agents/skills/06-healing-and-resilience/verification-before-completion/SKILL.md +58 -12
  37. package/.agents/skills/06-healing-and-resilience/visual-regression-sentinel/SKILL.md +53 -5
  38. package/.agents/skills/07-data-and-state/db-state-verifier-and-seeder/SKILL.md +56 -5
  39. package/.agents/skills/07-data-and-state/file-and-report-validator/SKILL.md +53 -4
  40. package/.agents/skills/07-data-and-state/synthetic-test-data-generator/SKILL.md +58 -5
  41. package/.agents/skills/08-code-quality/code-refactoring-refactor-clean/SKILL.md +57 -11
  42. package/.agents/skills/08-code-quality/graphify-impact-analyzer/SKILL.md +83 -34
  43. package/.agents/skills/08-code-quality/graphify-impact-analyzer/examples/dependency_blast_radius.json +3 -4
  44. package/.agents/skills/08-code-quality/lean-code-ladder/SKILL.md +55 -10
  45. package/.agents/skills/08-code-quality/repo-quality-audit/SKILL.md +49 -6
  46. package/.agents/skills/08-code-quality/senior-code-review/SKILL.md +52 -7
  47. package/.agents/skills/08-code-quality/surgical-coding-principles/SKILL.md +55 -10
  48. package/.agents/skills/08-code-quality/technical-debt-harvester/SKILL.md +51 -5
  49. package/.agents/skills/09-ci-and-devops/github-actions-templates/SKILL.md +54 -17
  50. package/.agents/skills/09-ci-and-devops/github-actions-templates/examples/matrix_test_pipeline.yml +2 -1
  51. package/.agents/skills/10-agent-orchestration/actor-qa-swarm/SKILL.md +50 -4
  52. package/.agents/skills/10-agent-orchestration/agent-orchestration-multi-agent-optimize/SKILL.md +53 -7
  53. package/.agents/skills/10-agent-orchestration/event-stream-qa-orchestrator/SKILL.md +50 -4
  54. package/.agents/skills/10-agent-orchestration/persistent-planning-files/SKILL.md +58 -13
  55. package/.agents/skills/10-agent-orchestration/qa-memory-os/SKILL.md +51 -5
  56. package/.agents/skills/11-ai-and-prompting/meta-prompt-crafter/SKILL.md +57 -10
  57. package/.agents/skills/11-ai-and-prompting/mipro-prompt-compiler/SKILL.md +50 -4
  58. package/.agents/skills/11-ai-and-prompting/qa-aci-interface/SKILL.md +50 -4
  59. package/.agents/skills/11-ai-and-prompting/token-and-context-optimizer/SKILL.md +55 -9
  60. package/.cursor/rules/synapse-qa.mdc +20 -7
  61. package/.cursorrules +19 -5
  62. package/.windsurfrules +18 -3
  63. package/AGENTS.md +51 -59
  64. package/CLAUDE.md +38 -24
  65. package/LICENSE +5 -5
  66. package/NOTICE +1 -1
  67. package/README.en.md +4 -4
  68. package/README.md +4 -4
  69. package/agentskills.json +1 -1
  70. package/docs/ARCHITECTURE.en.md +2 -2
  71. package/docs/ARCHITECTURE.md +11 -2
  72. package/docs/CLIENT_SUPPORT_MATRIX.md +44 -0
  73. package/docs/CLI_REFERENCE.en.md +6 -4
  74. package/docs/CLI_REFERENCE.md +1 -1
  75. package/docs/CONTRIBUTING.en.md +1 -1
  76. package/docs/CONTRIBUTING.md +2 -2
  77. package/docs/SIDE_EFFECTING_TOOLS_INVENTORY.md +233 -0
  78. package/docs/TOOL_CATALOG.md +6 -2
  79. package/docs/research/agent_skill_training_analysis.md +1 -1
  80. package/package.json +1 -1
  81. package/plugin.json +1 -1
  82. package/skills_manifest.json +320 -55
  83. package/synapse.config.json +1 -1
  84. package/templates/ai_bridges/CLAUDE.md +29 -26
  85. package/templates/ai_bridges/copilot-instructions.md +14 -5
  86. package/templates/ai_bridges/cursor_synapse_qa.mdc +16 -7
  87. package/templates/ai_bridges/windsurfrules +14 -3
  88. package/templates/ui/index.html +2 -2
  89. package/tools/TOOLS_RUNBOOK.md +1 -1
  90. package/tools/TOOL_CATALOG.json +63 -3
  91. package/tools/__init__.py +1 -1
  92. package/tools/api_fuzzer.py +447 -132
  93. package/tools/author_integrity.py +121 -11
  94. package/tools/benchmark_swarm_context.py +130 -22
  95. package/tools/break_ui_generator.py +233 -0
  96. package/tools/browser_helpers.js +2 -2
  97. package/tools/check_version_sync.py +18 -50
  98. package/tools/cli.py +110 -19
  99. package/tools/core/bm25_retriever.py +218 -0
  100. package/tools/core/i18n.py +5 -5
  101. package/tools/core/provider_usage_adapter.py +383 -0
  102. package/tools/core/token_estimator.py +81 -15
  103. package/tools/count_tokens.py +7 -2
  104. package/tools/coverage_reporter.py +245 -0
  105. package/tools/dashboard_generator.py +8 -8
  106. package/tools/db_sandbox.py +290 -9
  107. package/tools/distill_log.py +1 -1
  108. package/tools/distill_skill.py +206 -0
  109. package/tools/git_pre_commit_guard.py +202 -1
  110. package/tools/humanize_linter.py +3 -0
  111. package/tools/mcp_docx_server.py +1 -1
  112. package/tools/mcp_excel_server.py +1 -1
  113. package/tools/mcp_server.py +104 -16
  114. package/tools/micro_mutator.py +114 -15
  115. package/tools/pentest_scope_guard.py +674 -58
  116. package/tools/perf/benchmark_perf_runner.py +42 -0
  117. package/tools/project_state.py +29 -5
  118. package/tools/reversible_sandbox.py +58 -13
  119. package/tools/rules_router.py +473 -60
  120. package/tools/security_scanner.py +80 -0
  121. package/tools/senior_code_review.py +14 -0
  122. package/tools/skill_canonical_digest.py +302 -0
  123. package/tools/skill_profiles.py +77 -7
  124. package/tools/slide_deck_exporter.py +477 -0
  125. package/tools/sync_agent_rules.py +187 -61
  126. package/tools/sync_skills_manifest.py +166 -0
  127. package/tools/task_memory_manager.py +275 -0
  128. package/tools/ui_server.py +3 -1
  129. package/tools/update_sentinel.py +3 -3
  130. package/tools/validate_host_interop.py +485 -0
  131. package/tools/validate_skills_schema.py +575 -0
  132. package/tools/verify_all.py +668 -44
  133. package/tools/welcome_page.py +2 -2
@@ -0,0 +1,275 @@
1
+ #!/usr/bin/env python3
2
+ # SPDX-FileCopyrightText: © 2026 Thế Vị (@TeeVee98) <https://github.com/TeeVee98/Synapse-Hub>
3
+ # SPDX-License-Identifier: MIT
4
+
5
+ # -*- coding: utf-8 -*-
6
+ """
7
+ tools/task_memory_manager.py — Compaction-Resilient Working Memory Manager
8
+ Inspired by OthmanAdi/planning-with-files (28.1k ⭐).
9
+
10
+ Maintains disk-persistent working memory across agent compactions and sessions:
11
+ - task_plan.md: Strategic goal, phases, and active state.
12
+ - findings.md: Empirical discovery, DOM selectors, diagnostic evidence.
13
+ - progress.md: Checklists, milestones, step-by-step audit log.
14
+ - .checksums.json: SHA-256 cryptographic verification of file integrity.
15
+
16
+ 100% Python Standard Library (zero external dependencies).
17
+ """
18
+
19
+ import argparse
20
+ import datetime
21
+ import hashlib
22
+ import json
23
+ import os
24
+ import sys
25
+ import time
26
+ from typing import Any, Dict, Optional, Tuple
27
+
28
+ DEFAULT_MEMORY_DIR = ".task_memory"
29
+
30
+
31
+ def compute_sha256(content: str) -> str:
32
+ """Computes SHA-256 hexadecimal digest for a string content."""
33
+ return hashlib.sha256(content.encode("utf-8")).hexdigest()
34
+
35
+
36
+ def compute_file_sha256(file_path: str) -> Optional[str]:
37
+ """Computes SHA-256 for a file on disk."""
38
+ if not os.path.isfile(file_path):
39
+ return None
40
+ with open(file_path, "r", encoding="utf-8") as f:
41
+ return hashlib.sha256(f.read().encode("utf-8")).hexdigest()
42
+
43
+
44
+ class TaskMemoryManager:
45
+ """Manages disk-persistent working memory files with cryptographic checksums."""
46
+
47
+ def __init__(self, memory_dir: str = DEFAULT_MEMORY_DIR):
48
+ self.memory_dir = os.path.abspath(memory_dir)
49
+ self.plan_path = os.path.join(self.memory_dir, "task_plan.md")
50
+ self.findings_path = os.path.join(self.memory_dir, "findings.md")
51
+ self.progress_path = os.path.join(self.memory_dir, "progress.md")
52
+ self.checksums_path = os.path.join(self.memory_dir, ".checksums.json")
53
+
54
+ def _read_checksums(self) -> Dict[str, str]:
55
+ if not os.path.isfile(self.checksums_path):
56
+ return {}
57
+ for _ in range(5):
58
+ try:
59
+ with open(self.checksums_path, "r", encoding="utf-8") as f:
60
+ return json.load(f)
61
+ except (json.JSONDecodeError, OSError):
62
+ continue
63
+ return {}
64
+
65
+ def _write_checksums(self, checksums: Dict[str, str]) -> None:
66
+ tmp_path = self.checksums_path + ".tmp"
67
+ actual_tmp = f"{tmp_path}.{os.getpid()}_{id(checksums)}"
68
+ with open(actual_tmp, "w", encoding="utf-8") as f:
69
+ json.dump(checksums, f, indent=2, ensure_ascii=False)
70
+ for attempt in range(10):
71
+ try:
72
+ os.replace(actual_tmp, self.checksums_path)
73
+ return
74
+ except OSError:
75
+ if attempt == 9:
76
+ try:
77
+ with open(self.checksums_path, "w", encoding="utf-8") as f:
78
+ json.dump(checksums, f, indent=2, ensure_ascii=False)
79
+ if os.path.exists(actual_tmp):
80
+ os.remove(actual_tmp)
81
+ return
82
+ except OSError:
83
+ return
84
+ time.sleep(0.02 * (attempt + 1))
85
+
86
+ def _update_file_checksum(self, filename: str, content: str) -> None:
87
+ checksums = self._read_checksums()
88
+ checksums[filename] = compute_sha256(content)
89
+ self._write_checksums(checksums)
90
+
91
+ def init_memory(self, title: str = "Task Execution Plan", goal: str = "Execute task according to DoD") -> Dict[str, str]:
92
+ """Initializes empty memory files if they do not exist."""
93
+ os.makedirs(self.memory_dir, exist_ok=True)
94
+ now = datetime.datetime.now(datetime.timezone.utc).isoformat()
95
+
96
+ if not os.path.isfile(self.plan_path):
97
+ initial_plan = (
98
+ f"# {title}\n\n"
99
+ f"> Initialized: `{now}`\n\n"
100
+ f"## 1. Goal & Requirements\n{goal}\n\n"
101
+ f"## 2. Phases & Milestones\n- [ ] Phase 1: Discovery & Analysis\n- [ ] Phase 2: Implementation\n- [ ] Phase 3: Verification & DoD\n\n"
102
+ f"## 3. Active Status\n`IN_PROGRESS`\n"
103
+ )
104
+ with open(self.plan_path, "w", encoding="utf-8") as f:
105
+ f.write(initial_plan)
106
+ self._update_file_checksum("task_plan.md", initial_plan)
107
+
108
+ if not os.path.isfile(self.findings_path):
109
+ initial_findings = (
110
+ f"# Empirical Findings & Evidence Log\n\n"
111
+ f"> Initialized: `{now}`\n\n"
112
+ f"| Timestamp | Category | Summary | Details |\n"
113
+ f"|---|---|---|---|\n"
114
+ )
115
+ with open(self.findings_path, "w", encoding="utf-8") as f:
116
+ f.write(initial_findings)
117
+ self._update_file_checksum("findings.md", initial_findings)
118
+
119
+ if not os.path.isfile(self.progress_path):
120
+ initial_progress = (
121
+ f"# Execution Progress & Milestone Ledger\n\n"
122
+ f"> Initialized: `{now}`\n\n"
123
+ f"## Milestones\n"
124
+ f"- [x] Task memory initialized (`{now}`)\n"
125
+ )
126
+ with open(self.progress_path, "w", encoding="utf-8") as f:
127
+ f.write(initial_progress)
128
+ self._update_file_checksum("progress.md", initial_progress)
129
+
130
+ return self._read_checksums()
131
+
132
+ def update_task_plan(self, content: str) -> str:
133
+ """Overwrites or updates task_plan.md and recomputes checksum."""
134
+ os.makedirs(self.memory_dir, exist_ok=True)
135
+ with open(self.plan_path, "w", encoding="utf-8") as f:
136
+ f.write(content)
137
+ sha = compute_sha256(content)
138
+ self._update_file_checksum("task_plan.md", content)
139
+ return sha
140
+
141
+ def record_finding(self, title: str, details: str, category: str = "OBSERVATION") -> None:
142
+ """Appends an empirical finding or diagnostic evidence to findings.md."""
143
+ os.makedirs(self.memory_dir, exist_ok=True)
144
+ now = datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%d %H:%M:%S UTC")
145
+ sanitized_title = str(title).replace("\r", " ").replace("\n", " ").replace("|", "/")
146
+ sanitized_cat = str(category).replace("\r", " ").replace("\n", " ").replace("|", "/")
147
+ sanitized_details = str(details).replace("\r", " ").replace("\n", " ").replace("|", "/")
148
+ row = f"| `{now}` | `{sanitized_cat}` | **{sanitized_title}** | {sanitized_details} |\n"
149
+
150
+ if not os.path.isfile(self.findings_path):
151
+ self.init_memory()
152
+
153
+ with open(self.findings_path, "a", encoding="utf-8") as f:
154
+ f.write(row)
155
+
156
+ with open(self.findings_path, "r", encoding="utf-8") as f:
157
+ content = f.read()
158
+ self._update_file_checksum("findings.md", content)
159
+
160
+ def record_progress(self, step: str, status: str = "DONE") -> None:
161
+ """Records a completed step or milestone in progress.md."""
162
+ os.makedirs(self.memory_dir, exist_ok=True)
163
+ now = datetime.datetime.now(datetime.timezone.utc).strftime("%H:%M:%S UTC")
164
+ sanitized_step = str(step).replace("\r", " ").replace("\n", " ")
165
+ sanitized_status = str(status).replace("\r", " ").replace("\n", " ")
166
+ mark = "[x]" if sanitized_status.upper() in ("DONE", "COMPLETED", "PASS") else "[-]"
167
+ entry = f"- {mark} `{now}` {sanitized_step} (`{sanitized_status}`)\n"
168
+
169
+ if not os.path.isfile(self.progress_path):
170
+ self.init_memory()
171
+
172
+ with open(self.progress_path, "a", encoding="utf-8") as f:
173
+ f.write(entry)
174
+
175
+ with open(self.progress_path, "r", encoding="utf-8") as f:
176
+ content = f.read()
177
+ self._update_file_checksum("progress.md", content)
178
+
179
+ def verify_integrity(self) -> Tuple[bool, Dict[str, Dict[str, Any]]]:
180
+ """
181
+ Verifies SHA-256 hashes of all memory files against recorded checksums.
182
+ Returns: (all_valid, details_map)
183
+ """
184
+ checksums = self._read_checksums()
185
+ results: Dict[str, Dict[str, Any]] = {}
186
+ all_valid = True
187
+
188
+ files = [
189
+ ("task_plan.md", self.plan_path),
190
+ ("findings.md", self.findings_path),
191
+ ("progress.md", self.progress_path),
192
+ ]
193
+
194
+ for fname, fpath in files:
195
+ expected = checksums.get(fname)
196
+ actual = compute_file_sha256(fpath)
197
+ valid = (actual is not None) and (actual == expected)
198
+ if not valid:
199
+ all_valid = False
200
+ results[fname] = {
201
+ "exists": os.path.isfile(fpath),
202
+ "expected_sha256": expected,
203
+ "actual_sha256": actual,
204
+ "valid": valid,
205
+ }
206
+
207
+ return all_valid, results
208
+
209
+ def export_summary(self) -> str:
210
+ """Exports a compact text summary of working memory state."""
211
+ valid, details = self.verify_integrity()
212
+ lines = [
213
+ f"Task Memory Status: {'VALID (100% SHA-256 Match)' if valid else 'COMPROMISED / MODIFIED'}",
214
+ f"Location: {self.memory_dir}",
215
+ ]
216
+ for fname, info in details.items():
217
+ status = "OK" if info["valid"] else "MISMATCH / MISSING"
218
+ lines.append(f" - {fname}: {status} (SHA: {str(info['actual_sha256'])[:8]}...)")
219
+ return "\n".join(lines)
220
+
221
+
222
+ def main() -> int:
223
+ parser = argparse.ArgumentParser(description="Compaction-Resilient Working Memory Manager (OthmanAdi Pattern)")
224
+ subparsers = parser.add_subparsers(dest="command", required=True)
225
+
226
+ # init
227
+ init_p = subparsers.add_parser("init", help="Initialize memory files")
228
+ init_p.add_argument("--dir", default=DEFAULT_MEMORY_DIR, help="Memory directory")
229
+ init_p.add_argument("--title", default="Task Execution Plan", help="Plan title")
230
+
231
+ # finding
232
+ finding_p = subparsers.add_parser("finding", help="Record finding")
233
+ finding_p.add_argument("title", help="Finding title")
234
+ finding_p.add_argument("details", help="Details text")
235
+ finding_p.add_argument("--dir", default=DEFAULT_MEMORY_DIR, help="Memory directory")
236
+ finding_p.add_argument("--cat", default="OBSERVATION", help="Category")
237
+
238
+ # progress
239
+ progress_p = subparsers.add_parser("progress", help="Record progress milestone")
240
+ progress_p.add_argument("step", help="Completed step description")
241
+ progress_p.add_argument("--dir", default=DEFAULT_MEMORY_DIR, help="Memory directory")
242
+ progress_p.add_argument("--status", default="DONE", help="Step status")
243
+
244
+ # verify
245
+ verify_p = subparsers.add_parser("verify", help="Verify cryptographic integrity")
246
+ verify_p.add_argument("--dir", default=DEFAULT_MEMORY_DIR, help="Memory directory")
247
+
248
+ args = parser.parse_args()
249
+ mgr = TaskMemoryManager(args.dir)
250
+
251
+ if args.command == "init":
252
+ res = mgr.init_memory(title=args.title)
253
+ print(f"✅ Initialized task memory in {args.dir} with checksums: {list(res.keys())}")
254
+ return 0
255
+
256
+ if args.command == "finding":
257
+ mgr.record_finding(title=args.title, details=args.details, category=args.cat)
258
+ print(f"✅ Recorded finding: '{args.title}' in {args.dir}/findings.md")
259
+ return 0
260
+
261
+ if args.command == "progress":
262
+ mgr.record_progress(step=args.step, status=args.status)
263
+ print(f"✅ Recorded progress: '{args.step}' in {args.dir}/progress.md")
264
+ return 0
265
+
266
+ if args.command == "verify":
267
+ valid, details = mgr.verify_integrity()
268
+ print(mgr.export_summary())
269
+ return 0 if valid else 1
270
+
271
+ return -1
272
+
273
+
274
+ if __name__ == "__main__":
275
+ sys.exit(main())
@@ -202,8 +202,10 @@ class SynapseUiHandler(BaseHTTPRequestHandler):
202
202
  self.send_header("Vary", "Origin")
203
203
  self.send_header("Access-Control-Allow-Methods", "GET, POST, OPTIONS")
204
204
  self.send_header("Access-Control-Allow-Headers", "Content-Type, Authorization")
205
+ self.send_header("Connection", "close")
205
206
  self.end_headers()
206
207
  self.wfile.write(body)
208
+ self.close_connection = True
207
209
 
208
210
  def do_OPTIONS(self):
209
211
  self.send_response(200)
@@ -236,7 +238,7 @@ class SynapseUiHandler(BaseHTTPRequestHandler):
236
238
  if path == "/api/status":
237
239
  active_target = JOB_MANAGER.target_dir or REPO_ROOT
238
240
  self.send_json(200, {
239
- "version": "4.1.4",
241
+ "version": "4.2.1",
240
242
  "status": "ONLINE",
241
243
  "os": sys.platform,
242
244
  "workspace": active_target,
@@ -68,7 +68,7 @@ def get_local_version():
68
68
  try:
69
69
  with open(pkg_file, "r", encoding="utf-8") as f:
70
70
  data = json.load(f)
71
- return data.get("version", "4.1.4")
71
+ return data.get("version", "4.2.1")
72
72
  except (OSError, json.JSONDecodeError):
73
73
  data = {}
74
74
 
@@ -77,11 +77,11 @@ def get_local_version():
77
77
  try:
78
78
  with open(manifest_file, "r", encoding="utf-8") as f:
79
79
  data = json.load(f)
80
- return data.get("version", "4.1.4")
80
+ return data.get("version", "4.2.1")
81
81
  except (OSError, json.JSONDecodeError):
82
82
  data = {}
83
83
 
84
- return "4.1.4"
84
+ return "4.2.1"
85
85
 
86
86
 
87
87
  def fetch_remote_version():