@teevee98/synapse-hub 4.2.2 → 4.2.3
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/README.en.md +2 -2
- package/README.md +2 -2
- package/agentskills.json +1 -1
- package/docs/ARCHITECTURE.en.md +1 -1
- package/docs/ARCHITECTURE.md +1 -1
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/scripts/package_dist.py +21 -8
- package/skills_manifest.json +1 -1
- package/synapse.config.json +1 -1
- package/tools/__init__.py +1 -1
- package/tools/browser_helpers.js +2 -2
- package/tools/cli.py +3 -3
- package/tools/dashboard_generator.py +6 -6
- package/tools/mcp_docx_server.py +1 -1
- package/tools/mcp_excel_server.py +1 -1
- package/tools/mcp_server.py +1 -1
- package/tools/package_release.py +6 -0
- package/tools/skillspector.py +6 -2
- package/tools/ui_server.py +1 -1
- package/tools/update_sentinel.py +3 -3
- package/tools/verify_all.py +10 -9
- package/tools/watch_mode.py +1 -1
- package/tools/welcome_page.py +1 -1
package/README.en.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
> **Core Mission:** A standalone linter and guardrail engine (zero external dependencies for core engine & DoD gates) safeguarding automated test suites when AI writes code — Automatically catching "fake-pass" tests (0 assertions, tautologies), eliminating fixed sleeps, compressing 95% of CI/CD log noise, and enforcing Clean POM architecture.
|
|
8
8
|
> **Author:** Thế Vị ([@TeeVee98](https://github.com/TeeVee98)) | **License:** MIT License
|
|
9
|
-
> **Version:** `v4.2.
|
|
9
|
+
> **Version:** `v4.2.3` | **Scale:** 53 Standardized QA Skills, 9 Specialized AI Agents, 10 DoD Quality Gates.
|
|
10
10
|
|
|
11
11
|
[](https://www.npmjs.com/package/@teevee98/synapse-hub)
|
|
12
12
|
[](https://nodejs.org)
|
|
@@ -154,7 +154,7 @@ Every test code change must satisfy all 10 Quality Gates before pull request mer
|
|
|
154
154
|
# Pre-commit hook (.pre-commit-config.yaml):
|
|
155
155
|
repos:
|
|
156
156
|
- repo: https://github.com/TeeVee98/Synapse-Hub
|
|
157
|
-
rev: v4.2.
|
|
157
|
+
rev: v4.2.3
|
|
158
158
|
hooks:
|
|
159
159
|
- id: synapse-lint
|
|
160
160
|
- id: synapse-verify
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
> **Định vị cốt lõi:** Bộ Linter & Guardrails độc lập (zero external dependencies cho core engine & DoD gates) bảo vệ độ tin cậy của test suite khi AI viết code — Tự động bắt test "pass ảo" (0 assert, tautology), loại bỏ hoàn toàn sleep cố định, nén 95% log CI/CD, và chuẩn hóa cấu trúc Clean POM.
|
|
8
8
|
> **Tác giả:** Thế Vị ([@TeeVee98](https://github.com/TeeVee98)) | **Giấy phép:** MIT License
|
|
9
|
-
> **Phiên bản:** `v4.2.
|
|
9
|
+
> **Phiên bản:** `v4.2.3` | **Quy mô:** 53 Kỹ năng QA, 9 Vai trò AI Agent, 10 Cổng kiểm định DoD.
|
|
10
10
|
|
|
11
11
|
[](https://www.npmjs.com/package/@teevee98/synapse-hub)
|
|
12
12
|
[](https://nodejs.org)
|
|
@@ -154,7 +154,7 @@ Mọi thay đổi mã nguồn kiểm thử đều được kiểm chứng qua 10
|
|
|
154
154
|
# Pre-commit hook (.pre-commit-config.yaml):
|
|
155
155
|
repos:
|
|
156
156
|
- repo: https://github.com/TeeVee98/Synapse-Hub
|
|
157
|
-
rev: v4.2.
|
|
157
|
+
rev: v4.2.3
|
|
158
158
|
hooks:
|
|
159
159
|
- id: synapse-lint
|
|
160
160
|
- id: synapse-verify
|
package/agentskills.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agentskills.io/schema/v1.json",
|
|
3
3
|
"name": "Synapse-Hub",
|
|
4
|
-
"version": "4.2.
|
|
4
|
+
"version": "4.2.3",
|
|
5
5
|
"description": "Enterprise QA & Test Automation AI Skills Ecosystem — 53 skills organised across 11 Domain Packages adhering to Clean POM Flat Architecture.",
|
|
6
6
|
"author": "Thế Vị (@TeeVee98)",
|
|
7
7
|
"repository": "https://github.com/TeeVee98/Synapse-Hub",
|
package/docs/ARCHITECTURE.en.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[🇻🇳 Tiếng Việt](ARCHITECTURE.md) | [🇬🇧 English Edition](ARCHITECTURE.en.md)
|
|
4
4
|
|
|
5
5
|
> **Scope:** Enterprise Multi-Agent QA Hub
|
|
6
|
-
> **Version:** `4.2.
|
|
6
|
+
> **Version:** `4.2.3` | **Status:** Active / Production Standard
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[🇻🇳 Tiếng Việt](ARCHITECTURE.md) | [🇬🇧 English Edition](ARCHITECTURE.en.md)
|
|
4
4
|
|
|
5
5
|
> **Phạm vi:** Enterprise Multi-Agent QA Hub
|
|
6
|
-
> **Version:** `4.2.
|
|
6
|
+
> **Version:** `4.2.3` | **Trạng thái:** Hoạt động / Tiêu chuẩn Sản xuất
|
|
7
7
|
> **Tác giả:** Thế Vị (@TeeVee98) | **Giấy phép:** MIT License
|
|
8
8
|
|
|
9
9
|
---
|
package/package.json
CHANGED
package/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "synapse-hub",
|
|
3
3
|
"displayName": "Synapse Hub Enterprise QA",
|
|
4
|
-
"version": "4.2.
|
|
4
|
+
"version": "4.2.3",
|
|
5
5
|
"description": "Enterprise AI Agent Intelligence Hub & Autonomous Skill Network for Quality Engineering, Clean POM, and Automated Testing.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "TeeVee98",
|
package/scripts/package_dist.py
CHANGED
|
@@ -44,6 +44,7 @@ EXCLUDE_DIRS = {
|
|
|
44
44
|
".idea",
|
|
45
45
|
".vscode",
|
|
46
46
|
"agent_qa.egg-info",
|
|
47
|
+
"synapse_hub.egg-info",
|
|
47
48
|
"archive",
|
|
48
49
|
"reports",
|
|
49
50
|
"Reports",
|
|
@@ -274,10 +275,16 @@ def create_package(output_zip: str = "agent-skills.zip") -> Path:
|
|
|
274
275
|
with zipfile.ZipFile(out_path, mode="w", compression=zipfile.ZIP_DEFLATED, compresslevel=9) as zf:
|
|
275
276
|
for root, dirs, files in os.walk(REPO_ROOT):
|
|
276
277
|
# Prune excluded directories
|
|
277
|
-
dirs[:] = [
|
|
278
|
+
dirs[:] = [
|
|
279
|
+
d for d in dirs
|
|
280
|
+
if d not in EXCLUDE_DIRS
|
|
281
|
+
and not d.startswith(".temp-")
|
|
282
|
+
and not d.endswith(".egg-info")
|
|
283
|
+
and not d.startswith(("synapse_hub-", "synapse-hub-"))
|
|
284
|
+
]
|
|
278
285
|
|
|
279
286
|
rel_root = Path(root).relative_to(REPO_ROOT)
|
|
280
|
-
if any(part in EXCLUDE_DIRS for part in rel_root.parts):
|
|
287
|
+
if any(part in EXCLUDE_DIRS or part.endswith(".egg-info") or part.startswith(("synapse_hub-", "synapse-hub-")) for part in rel_root.parts):
|
|
281
288
|
continue
|
|
282
289
|
|
|
283
290
|
for file_name in files:
|
|
@@ -289,12 +296,18 @@ def create_package(output_zip: str = "agent-skills.zip") -> Path:
|
|
|
289
296
|
continue
|
|
290
297
|
|
|
291
298
|
full_path = Path(root) / file_name
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
299
|
+
try:
|
|
300
|
+
if not full_path.exists():
|
|
301
|
+
continue
|
|
302
|
+
rel_path = full_path.relative_to(REPO_ROOT)
|
|
303
|
+
arc_name = rel_path.as_posix()
|
|
304
|
+
|
|
305
|
+
zf.write(full_path, arcname=arc_name)
|
|
306
|
+
total_files += 1
|
|
307
|
+
total_size += full_path.stat().st_size
|
|
308
|
+
except (FileNotFoundError, OSError):
|
|
309
|
+
# Handle transient build files or race conditions
|
|
310
|
+
continue
|
|
298
311
|
|
|
299
312
|
zip_size_mb = out_path.stat().st_size / (1024 * 1024)
|
|
300
313
|
print("✅ Packaging complete:")
|
package/skills_manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"name": "Synapse-Hub",
|
|
4
|
-
"version": "4.2.
|
|
4
|
+
"version": "4.2.3",
|
|
5
5
|
"description": "Unified Catalog of 53 Skills across 11 Domain Packages for Enterprise QA AI Agents.",
|
|
6
6
|
"totalSkills": 53,
|
|
7
7
|
"domains": {
|
package/synapse.config.json
CHANGED
package/tools/__init__.py
CHANGED
package/tools/browser_helpers.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
(function () {
|
|
14
14
|
'use strict';
|
|
15
15
|
|
|
16
|
-
if (window.__qa && window.__qa.__version === '4.2.
|
|
16
|
+
if (window.__qa && window.__qa.__version === '4.2.3') {
|
|
17
17
|
return window.__qa;
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
const qa = {
|
|
50
|
-
__version: '4.2.
|
|
50
|
+
__version: '4.2.3',
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* 1. Smart Action Batching
|
package/tools/cli.py
CHANGED
|
@@ -133,7 +133,7 @@ def _resolve_manifest_path(repo_root: Optional[str] = None) -> Optional[str]:
|
|
|
133
133
|
def cmd_version(args):
|
|
134
134
|
"""Displays the current hub version, skill catalog count, and license information."""
|
|
135
135
|
manifest_path = _resolve_manifest_path()
|
|
136
|
-
version = "4.2.
|
|
136
|
+
version = "4.2.3"
|
|
137
137
|
manifest_skills = 53
|
|
138
138
|
if manifest_path and os.path.exists(manifest_path):
|
|
139
139
|
try:
|
|
@@ -775,14 +775,14 @@ def cmd_trend(args):
|
|
|
775
775
|
|
|
776
776
|
def _hub_version():
|
|
777
777
|
manifest_path = _resolve_manifest_path()
|
|
778
|
-
version = "4.2.
|
|
778
|
+
version = "4.2.3"
|
|
779
779
|
if manifest_path and os.path.exists(manifest_path):
|
|
780
780
|
try:
|
|
781
781
|
import json
|
|
782
782
|
with open(manifest_path, "r", encoding="utf-8") as f:
|
|
783
783
|
version = json.load(f).get("version", version)
|
|
784
784
|
except (OSError, json.JSONDecodeError):
|
|
785
|
-
version = "4.2.
|
|
785
|
+
version = "4.2.3"
|
|
786
786
|
return version
|
|
787
787
|
|
|
788
788
|
|
|
@@ -1350,7 +1350,7 @@ def _build_target_translations(
|
|
|
1350
1350
|
"th_step_status": "Trạng Thái",
|
|
1351
1351
|
"th_step_details": "Chi Tiết Kỹ Thuật (OTel & AST)",
|
|
1352
1352
|
|
|
1353
|
-
"footer_text": "Báo cáo được khởi tạo tự động bởi Synapse-Hub v4.2.
|
|
1353
|
+
"footer_text": "Báo cáo được khởi tạo tự động bởi Synapse-Hub v4.2.3 • Bản quyền © Thế Vị (@TeeVee98) • Chuẩn Clean POM & Kiểm Thử Tự Chủ",
|
|
1354
1354
|
}
|
|
1355
1355
|
|
|
1356
1356
|
translations_en = {
|
|
@@ -1428,7 +1428,7 @@ def _build_target_translations(
|
|
|
1428
1428
|
"th_step_status": "Status",
|
|
1429
1429
|
"th_step_details": "Technical Details (OTel & AST)",
|
|
1430
1430
|
|
|
1431
|
-
"footer_text": "Generated automatically by Synapse-Hub v4.2.
|
|
1431
|
+
"footer_text": "Generated automatically by Synapse-Hub v4.2.3 • Copyright © Thế Vị (@TeeVee98) • Clean POM & Autonomous Testing",
|
|
1432
1432
|
}
|
|
1433
1433
|
|
|
1434
1434
|
_inject_gate_translations(translations_vi, translations_en, gates)
|
|
@@ -1917,7 +1917,7 @@ def _build_hub_translations(
|
|
|
1917
1917
|
"""Builds bilingual dictionaries for Hub Dashboard."""
|
|
1918
1918
|
translations_vi = {
|
|
1919
1919
|
"header_title": "Bảng Điều Hành Chất Lượng Doanh Nghiệp",
|
|
1920
|
-
"header_subtitle": "Synapse-Hub v4.2.
|
|
1920
|
+
"header_subtitle": "Synapse-Hub v4.2.3 • Hệ Sinh Thái Kiểm Thử AI Agent Tự Chủ",
|
|
1921
1921
|
"nav_welcome": "Giới Thiệu",
|
|
1922
1922
|
"meta_mode": "🏷️ Chế độ: <strong>HỆ SINH THÁI QA HUB</strong>",
|
|
1923
1923
|
"meta_gen": f"🕒 Khởi tạo: <strong>{now_str}</strong>",
|
|
@@ -1987,12 +1987,12 @@ def _build_hub_translations(
|
|
|
1987
1987
|
"th_sk_ver": "Phiên Bản",
|
|
1988
1988
|
"th_sk_cap": "Khả Năng Nghiệp Vụ Cốt Lõi",
|
|
1989
1989
|
|
|
1990
|
-
"footer_text": "Bảng Điều Hành Chất Lượng Doanh Nghiệp • Synapse-Hub v4.2.
|
|
1990
|
+
"footer_text": "Bảng Điều Hành Chất Lượng Doanh Nghiệp • Synapse-Hub v4.2.3 • Bản quyền © Thế Vị (@TeeVee98) • Hệ Thống Kiểm Thử AI Agent Tự Chủ",
|
|
1991
1991
|
}
|
|
1992
1992
|
|
|
1993
1993
|
translations_en = {
|
|
1994
1994
|
"header_title": "Enterprise QA Executive Dashboard",
|
|
1995
|
-
"header_subtitle": "Synapse-Hub v4.2.
|
|
1995
|
+
"header_subtitle": "Synapse-Hub v4.2.3 • Autonomous AI Agent Testing Ecosystem",
|
|
1996
1996
|
"nav_welcome": "Welcome",
|
|
1997
1997
|
"meta_mode": "🏷️ Mode: <strong>QA HUB ECOSYSTEM</strong>",
|
|
1998
1998
|
"meta_gen": f"🕒 Generated: <strong>{now_str}</strong>",
|
|
@@ -2062,7 +2062,7 @@ def _build_hub_translations(
|
|
|
2062
2062
|
"th_sk_ver": "Version",
|
|
2063
2063
|
"th_sk_cap": "Core Capabilities",
|
|
2064
2064
|
|
|
2065
|
-
"footer_text": "Enterprise QA Executive Dashboard • Synapse-Hub v4.2.
|
|
2065
|
+
"footer_text": "Enterprise QA Executive Dashboard • Synapse-Hub v4.2.3 • Copyright © Thế Vị (@TeeVee98) • Autonomous AI Agent Testing Ecosystem",
|
|
2066
2066
|
}
|
|
2067
2067
|
|
|
2068
2068
|
_inject_gate_translations(translations_vi, translations_en, gates)
|
package/tools/mcp_docx_server.py
CHANGED
|
@@ -60,7 +60,7 @@ if hasattr(sys.stdout, 'reconfigure'):
|
|
|
60
60
|
except Exception:
|
|
61
61
|
pass
|
|
62
62
|
|
|
63
|
-
SERVER_VERSION = "4.2.
|
|
63
|
+
SERVER_VERSION = "4.2.3"
|
|
64
64
|
MAX_DOCX_SIZE = 50 * 1024 * 1024 # 50 MB
|
|
65
65
|
MAX_UNCOMPRESSED_SIZE = 200 * 1024 * 1024 # 200 MB
|
|
66
66
|
MAX_RATIO = 100 # 100:1 compression ratio limit
|
|
@@ -55,7 +55,7 @@ if hasattr(sys.stdout, 'reconfigure'):
|
|
|
55
55
|
except Exception:
|
|
56
56
|
pass
|
|
57
57
|
|
|
58
|
-
SERVER_VERSION = "4.2.
|
|
58
|
+
SERVER_VERSION = "4.2.3"
|
|
59
59
|
MAX_XLSX_SIZE = 50 * 1024 * 1024 # 50 MB
|
|
60
60
|
MAX_UNCOMPRESSED_SIZE = 200 * 1024 * 1024 # 200 MB
|
|
61
61
|
MAX_RATIO = 100 # 100:1 compression ratio limit
|
package/tools/mcp_server.py
CHANGED
package/tools/package_release.py
CHANGED
|
@@ -58,6 +58,8 @@ EXCLUDE_DIRS = {
|
|
|
58
58
|
".pytest_cache",
|
|
59
59
|
".mypy_cache",
|
|
60
60
|
"node_modules",
|
|
61
|
+
"agent_qa.egg-info",
|
|
62
|
+
"synapse_hub.egg-info",
|
|
61
63
|
"dist",
|
|
62
64
|
"build",
|
|
63
65
|
"teamwork",
|
|
@@ -127,6 +129,8 @@ def collect_package_files(repo_root: str) -> List[Tuple[str, str]]:
|
|
|
127
129
|
d for d in dirs
|
|
128
130
|
if d not in EXCLUDE_DIRS
|
|
129
131
|
and not (d.startswith(".") and d not in MANDATORY_DOT_DIRS)
|
|
132
|
+
and not d.endswith(".egg-info")
|
|
133
|
+
and not d.startswith(("synapse_hub-", "synapse-hub-", ".temp-"))
|
|
130
134
|
]
|
|
131
135
|
|
|
132
136
|
for f in files:
|
|
@@ -137,6 +141,8 @@ def collect_package_files(repo_root: str) -> List[Tuple[str, str]]:
|
|
|
137
141
|
continue
|
|
138
142
|
|
|
139
143
|
full_path = os.path.join(root, f)
|
|
144
|
+
if not os.path.exists(full_path):
|
|
145
|
+
continue
|
|
140
146
|
# Symlink escape guard: verify file does not resolve outside repository root
|
|
141
147
|
real_file = os.path.realpath(full_path)
|
|
142
148
|
real_root_dir = os.path.realpath(repo_root)
|
package/tools/skillspector.py
CHANGED
|
@@ -1048,7 +1048,8 @@ def scan_target(target_path: str) -> ScanReport:
|
|
|
1048
1048
|
SKIP_DIRS = {
|
|
1049
1049
|
".git", ".venv", "venv", "node_modules", "__pycache__", ".pytest_cache",
|
|
1050
1050
|
"dist", "build", "claude-ecosystem-repos", "graphify-out", ".synapse",
|
|
1051
|
-
".mypy_cache", ".ruff_cache", ".sandbox_snapshots", "reports"
|
|
1051
|
+
".mypy_cache", ".ruff_cache", ".sandbox_snapshots", "reports",
|
|
1052
|
+
"agent_qa.egg-info", "synapse_hub.egg-info"
|
|
1052
1053
|
}
|
|
1053
1054
|
SKIP_FILES = {"skillspector.py"}
|
|
1054
1055
|
SCANNABLE_EXTS = {".md", ".py", ".json", ".yaml", ".yml", ".sh", ".ps1", ".txt", ".ts", ".js"}
|
|
@@ -1061,7 +1062,10 @@ def scan_target(target_path: str) -> ScanReport:
|
|
|
1061
1062
|
for root, dirs, files in os.walk(path_obj):
|
|
1062
1063
|
dirs[:] = [
|
|
1063
1064
|
d for d in dirs
|
|
1064
|
-
if d not in SKIP_DIRS
|
|
1065
|
+
if d not in SKIP_DIRS
|
|
1066
|
+
and not d.endswith(".egg-info")
|
|
1067
|
+
and not d.startswith(("synapse_hub-", "synapse-hub-", ".temp-"))
|
|
1068
|
+
and not is_path_ignored(os.path.join(root, d), repo_anchor, ignore_patterns)
|
|
1065
1069
|
]
|
|
1066
1070
|
for file in files:
|
|
1067
1071
|
if file in SKIP_FILES:
|
package/tools/ui_server.py
CHANGED
|
@@ -238,7 +238,7 @@ class SynapseUiHandler(BaseHTTPRequestHandler):
|
|
|
238
238
|
if path == "/api/status":
|
|
239
239
|
active_target = JOB_MANAGER.target_dir or REPO_ROOT
|
|
240
240
|
self.send_json(200, {
|
|
241
|
-
"version": "4.2.
|
|
241
|
+
"version": "4.2.3",
|
|
242
242
|
"status": "ONLINE",
|
|
243
243
|
"os": sys.platform,
|
|
244
244
|
"workspace": active_target,
|
package/tools/update_sentinel.py
CHANGED
|
@@ -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.2.
|
|
71
|
+
return data.get("version", "4.2.3")
|
|
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.2.
|
|
80
|
+
return data.get("version", "4.2.3")
|
|
81
81
|
except (OSError, json.JSONDecodeError):
|
|
82
82
|
data = {}
|
|
83
83
|
|
|
84
|
-
return "4.2.
|
|
84
|
+
return "4.2.3"
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
def fetch_remote_version():
|
package/tools/verify_all.py
CHANGED
|
@@ -358,12 +358,12 @@ MOJIBAKE_INDICATORS = (
|
|
|
358
358
|
def gate_1_bom_check(repo_root, mode="AUTO"):
|
|
359
359
|
"""Gate 1: Verifies 100% UTF-8 encoding with zero Byte Order Mark (BOM) bytes and zero corrupted control characters."""
|
|
360
360
|
print("\n[GATE 1] Scanning UTF-8 No BOM and Encoding Integrity across repository...")
|
|
361
|
-
ignored_dirs = {".git", ".gradle", "node_modules", "allure-results", "graphify-out", "__pycache__", ".pytest_cache", ".ruff_cache", ".mypy_cache", "build", "dist", "claude-ecosystem-repos", "external_repos", "teamwork", ".synapse", ".sandbox_snapshots"}
|
|
361
|
+
ignored_dirs = {".git", ".gradle", "node_modules", "allure-results", "graphify-out", "__pycache__", ".pytest_cache", ".ruff_cache", ".mypy_cache", "build", "dist", "claude-ecosystem-repos", "external_repos", "teamwork", ".synapse", ".sandbox_snapshots", "agent_qa.egg-info", "synapse_hub.egg-info"}
|
|
362
362
|
ignored_files = {"verify_all.py", "test_tools.py"}
|
|
363
363
|
bom_violations = []
|
|
364
364
|
mojibake_violations = []
|
|
365
365
|
for root, dirs, files in os.walk(repo_root):
|
|
366
|
-
dirs[:] = [d for d in dirs if d not in ignored_dirs]
|
|
366
|
+
dirs[:] = [d for d in dirs if d not in ignored_dirs and not d.endswith(".egg-info") and not d.startswith(("synapse_hub-", "synapse-hub-", ".temp-"))]
|
|
367
367
|
for f in files:
|
|
368
368
|
if f.endswith(BOM_EXTENSIONS):
|
|
369
369
|
full_path = os.path.join(root, f)
|
|
@@ -413,7 +413,7 @@ def gate_2_path_portability(repo_root, mode="AUTO"):
|
|
|
413
413
|
ignored_dirs = {
|
|
414
414
|
".git", ".gradle", "node_modules", "allure-results", "Screenshots",
|
|
415
415
|
"Reports", "reports", "TestReports", "testreports", "Libs", ".settings", "graphify-out",
|
|
416
|
-
"__pycache__", ".pytest_cache", ".ruff_cache", ".mypy_cache", "agent_qa.egg-info", "dist", "build", "claude-ecosystem-repos", "external_repos", "teamwork", ".synapse", ".sandbox_snapshots"
|
|
416
|
+
"__pycache__", ".pytest_cache", ".ruff_cache", ".mypy_cache", "agent_qa.egg-info", "synapse_hub.egg-info", "dist", "build", "claude-ecosystem-repos", "external_repos", "teamwork", ".synapse", ".sandbox_snapshots"
|
|
417
417
|
}
|
|
418
418
|
ignored_files = {
|
|
419
419
|
".project", ".classpath", ".DS_Store", "memory_cache.db",
|
|
@@ -422,7 +422,7 @@ def gate_2_path_portability(repo_root, mode="AUTO"):
|
|
|
422
422
|
}
|
|
423
423
|
violations = []
|
|
424
424
|
for root, dirs, files in os.walk(repo_root):
|
|
425
|
-
dirs[:] = [d for d in dirs if d not in ignored_dirs]
|
|
425
|
+
dirs[:] = [d for d in dirs if d not in ignored_dirs and not d.endswith(".egg-info") and not d.startswith(("synapse_hub-", "synapse-hub-", ".temp-"))]
|
|
426
426
|
for f in files:
|
|
427
427
|
if f.startswith(".temp-") or f in ignored_files or f.endswith(
|
|
428
428
|
(".pyc", ".db", ".png", ".jpg", ".zip", ".tar", ".gz", ".xlsx", ".class", ".prefs")
|
|
@@ -659,11 +659,11 @@ def gate_6_credential_security(repo_root, mode="AUTO"):
|
|
|
659
659
|
ignored_dirs = {
|
|
660
660
|
".git", ".gradle", "node_modules", "allure-results", "Screenshots",
|
|
661
661
|
"Reports", "reports", "TestReports", "testreports", "Libs", ".settings", "graphify-out",
|
|
662
|
-
"__pycache__", ".pytest_cache", ".ruff_cache", ".mypy_cache", "agent_qa.egg-info", "dist", "build", "claude-ecosystem-repos", "external_repos", "teamwork", ".synapse", ".sandbox_snapshots"
|
|
662
|
+
"__pycache__", ".pytest_cache", ".ruff_cache", ".mypy_cache", "agent_qa.egg-info", "synapse_hub.egg-info", "dist", "build", "claude-ecosystem-repos", "external_repos", "teamwork", ".synapse", ".sandbox_snapshots"
|
|
663
663
|
}
|
|
664
664
|
|
|
665
665
|
for root, dirs, files in os.walk(repo_root):
|
|
666
|
-
dirs[:] = [d for d in dirs if d not in ignored_dirs]
|
|
666
|
+
dirs[:] = [d for d in dirs if d not in ignored_dirs and not d.endswith(".egg-info") and not d.startswith(("synapse_hub-", "synapse-hub-", ".temp-"))]
|
|
667
667
|
for f in files:
|
|
668
668
|
if not f.endswith((".py", ".groovy", ".ts", ".js", ".json", ".txt", ".md", ".yml", ".yaml", ".properties", ".sh", ".ps1", ".glbl")):
|
|
669
669
|
continue
|
|
@@ -671,7 +671,8 @@ def gate_6_credential_security(repo_root, mode="AUTO"):
|
|
|
671
671
|
rel_path = os.path.relpath(full_path, repo_root)
|
|
672
672
|
|
|
673
673
|
# Skip self scanning of pattern definitions in verify_all.py or scanner tests
|
|
674
|
-
|
|
674
|
+
norm_rel = rel_path.replace("\\", "/")
|
|
675
|
+
if norm_rel in ("tools/verify_all.py", "tests/test_tools.py", "tests/test_git_pre_commit_guard.py") or norm_rel.endswith(("/verify_all.py", "/test_tools.py", "/test_git_pre_commit_guard.py")):
|
|
675
676
|
continue
|
|
676
677
|
|
|
677
678
|
try:
|
|
@@ -714,10 +715,10 @@ def check_python_ast_integrity(repo_root):
|
|
|
714
715
|
"""
|
|
715
716
|
builtin_names = set(dir(builtins)) | {'__file__', '__name__', '__doc__', '__package__'}
|
|
716
717
|
py_files = []
|
|
717
|
-
ignored = {'.git', 'node_modules', '__pycache__', '.venv', 'venv', 'claude-ecosystem-repos', 'build', 'dist', '.gradle', 'external_repos', 'teamwork'}
|
|
718
|
+
ignored = {'.git', 'node_modules', '__pycache__', '.venv', 'venv', 'claude-ecosystem-repos', 'build', 'dist', '.gradle', 'external_repos', 'teamwork', 'synapse_hub.egg-info', 'agent_qa.egg-info'}
|
|
718
719
|
|
|
719
720
|
for root, dirs, files in os.walk(repo_root):
|
|
720
|
-
dirs[:] = [d for d in dirs if d not in ignored and not d.startswith('synapse_hub-')]
|
|
721
|
+
dirs[:] = [d for d in dirs if d not in ignored and not d.endswith('.egg-info') and not d.startswith(('synapse_hub-', 'synapse-hub-', '.temp-'))]
|
|
721
722
|
for f in files:
|
|
722
723
|
if f.endswith('.py'):
|
|
723
724
|
py_files.append(os.path.join(root, f))
|
package/tools/watch_mode.py
CHANGED
|
@@ -45,7 +45,7 @@ WATCH_EXTENSIONS = (
|
|
|
45
45
|
IGNORED_DIRS = {
|
|
46
46
|
".git", ".gradle", "node_modules", "allure-results", "Screenshots",
|
|
47
47
|
"Reports", "reports", "TestReports", "testreports", "bin", "Libs", ".settings",
|
|
48
|
-
"graphify-out", "__pycache__", "agent_qa.egg-info", "dist", "build", ".pytest_cache",
|
|
48
|
+
"graphify-out", "__pycache__", "agent_qa.egg-info", "synapse_hub.egg-info", "dist", "build", ".pytest_cache",
|
|
49
49
|
"claude-ecosystem-repos", "external_repos", "teamwork", ".synapse", ".sandbox_snapshots"
|
|
50
50
|
}
|
|
51
51
|
|
package/tools/welcome_page.py
CHANGED
|
@@ -47,7 +47,7 @@ def get_hub_metadata() -> Dict[str, Any]:
|
|
|
47
47
|
"""Retrieves version and catalog count from skills_manifest.json."""
|
|
48
48
|
manifest_path = os.path.join(HUB_ROOT, "skills_manifest.json")
|
|
49
49
|
meta = {
|
|
50
|
-
"version": "4.2.
|
|
50
|
+
"version": "4.2.3",
|
|
51
51
|
"totalSkills": 53,
|
|
52
52
|
"author": "Thế Vị (@TeeVee98)",
|
|
53
53
|
"repo": "https://github.com/TeeVee98/Synapse-Hub"
|