@teevee98/synapse-hub 3.8.3 → 3.8.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.
- package/README.en.md +2 -2
- package/README.md +2 -2
- package/agentskills.json +2 -2
- package/docs/ARCHITECTURE.en.md +1 -1
- package/docs/ARCHITECTURE.md +1 -1
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/skills_manifest.json +1 -1
- package/synapse.config.json +1 -1
- package/templates/ui/index.html +14 -14
- package/tools/__init__.py +1 -1
- package/tools/browser_helpers.js +2 -2
- package/tools/cli.py +3 -3
- package/tools/dashboard_generator.py +8 -8
- package/tools/fsm_enforcer.py +1 -1
- 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/ui_server.py +1 -1
- package/tools/update_sentinel.py +3 -3
- package/tools/verify_all.py +10 -5
- 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:** `v3.8.
|
|
9
|
+
> **Version:** `v3.8.4` | **Scale:** 53 Standardized QA Skills, 9 Specialized AI Agents, 10 DoD Quality Gates.
|
|
10
10
|
|
|
11
11
|
[](https://www.npmjs.com/package/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: v3.8.
|
|
157
|
+
rev: v3.8.4
|
|
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:** `v3.8.
|
|
9
|
+
> **Phiên bản:** `v3.8.4` | **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/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: v3.8.
|
|
157
|
+
rev: v3.8.4
|
|
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": "3.8.
|
|
4
|
+
"version": "3.8.4",
|
|
5
5
|
"description": "Enterprise QA & Test Automation AI Skills Ecosystem adhering to Clean POM Flat Architecture.",
|
|
6
6
|
"author": "Thế Vị (@TeeVee98)",
|
|
7
7
|
"repository": "https://github.com/TeeVee98/Synapse-Hub",
|
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
"Clean-POM-Flat-Architecture",
|
|
12
12
|
"100%-UTF8-No-BOM",
|
|
13
13
|
"Truth-Anchor-No-Fake-Pass",
|
|
14
|
-
"
|
|
14
|
+
"10-Quality-Gates-DoD"
|
|
15
15
|
]
|
|
16
16
|
}
|
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:** `3.8.
|
|
6
|
+
> **Version:** `3.8.4` | **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:** `3.8.
|
|
6
|
+
> **Version:** `3.8.4` | **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": "3.8.
|
|
4
|
+
"version": "3.8.4",
|
|
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/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": "3.8.
|
|
4
|
+
"version": "3.8.4",
|
|
5
5
|
"description": "Unified Catalog of 53 Specialized Skills for Autonomous AI Agents in Enterprise Software Quality Engineering, Performance, and Architecture.",
|
|
6
6
|
"totalSkills": 53,
|
|
7
7
|
"categories": {
|
package/synapse.config.json
CHANGED
package/templates/ui/index.html
CHANGED
|
@@ -436,8 +436,8 @@
|
|
|
436
436
|
<!-- Top Metrics -->
|
|
437
437
|
<section class="metric-grid">
|
|
438
438
|
<div class="metric-card">
|
|
439
|
-
<div class="metric-label" data-i18n="metric_gates_label">
|
|
440
|
-
<div class="metric-val">
|
|
439
|
+
<div class="metric-label" data-i18n="metric_gates_label">10 Quality Gates DoD</div>
|
|
440
|
+
<div class="metric-val">10 / 10 <span class="metric-sub" data-i18n="metric_gates_sub">100% TUÂN THỦ</span></div>
|
|
441
441
|
</div>
|
|
442
442
|
<div class="metric-card">
|
|
443
443
|
<div class="metric-label" data-i18n="metric_mutation_label">Micro-Mutation Sensitivity</div>
|
|
@@ -460,13 +460,13 @@
|
|
|
460
460
|
</div>
|
|
461
461
|
<div class="action-grid">
|
|
462
462
|
|
|
463
|
-
<!-- Action 1: Verify
|
|
463
|
+
<!-- Action 1: Verify 10 Gates -->
|
|
464
464
|
<div class="action-card">
|
|
465
465
|
<div class="action-header">
|
|
466
466
|
<div class="action-icon">🛡️</div>
|
|
467
467
|
<div class="action-info">
|
|
468
|
-
<h3 data-i18n="act_verify_title">Verify
|
|
469
|
-
<p data-i18n="act_verify_desc">Thẩm định toàn diện
|
|
468
|
+
<h3 data-i18n="act_verify_title">Verify 10 Quality Gates</h3>
|
|
469
|
+
<p data-i18n="act_verify_desc">Thẩm định toàn diện 10 cổng chất lượng Definition-of-Done trước khi bàn giao.</p>
|
|
470
470
|
</div>
|
|
471
471
|
</div>
|
|
472
472
|
<button class="btn-run" onclick="triggerJob('verify')" id="btn-verify">
|
|
@@ -680,7 +680,7 @@
|
|
|
680
680
|
vi: {
|
|
681
681
|
nav_dashboard: "Bảng Điều Hành",
|
|
682
682
|
nav_welcome: "Giới Thiệu",
|
|
683
|
-
metric_gates_label: "
|
|
683
|
+
metric_gates_label: "10 Quality Gates DoD",
|
|
684
684
|
metric_gates_sub: "100% TUÂN THỦ",
|
|
685
685
|
metric_mutation_label: "Độ Nhạy Kiểm Thử Đột Biến",
|
|
686
686
|
metric_skills_label: "Danh Mục Kỹ Năng QA",
|
|
@@ -688,8 +688,8 @@
|
|
|
688
688
|
metric_ecosystem_label: "Hệ Sinh Thái Tích Hợp",
|
|
689
689
|
section_actions: "Bảng Điều Khiển Tác Vụ 1-Click (Mission Actions)",
|
|
690
690
|
section_trends: "Biểu Đồ Xu Hướng Chất Lượng (Historical Quality Trends)",
|
|
691
|
-
act_verify_title: "Verify
|
|
692
|
-
act_verify_desc: "Thẩm định toàn diện
|
|
691
|
+
act_verify_title: "Verify 10 Quality Gates",
|
|
692
|
+
act_verify_desc: "Thẩm định toàn diện 10 cổng chất lượng Definition-of-Done trước khi bàn giao.",
|
|
693
693
|
act_lint_title: "Meta Infer AST Linter",
|
|
694
694
|
act_lint_desc: "Quét tĩnh AST 0.02s phát hiện test pass ảo, tautology và ngoại lệ bị nuốt.",
|
|
695
695
|
act_mutate_title: "Micro-Mutation Sentinel",
|
|
@@ -711,7 +711,7 @@
|
|
|
711
711
|
en: {
|
|
712
712
|
nav_dashboard: "Executive Dashboard",
|
|
713
713
|
nav_welcome: "Welcome Guide",
|
|
714
|
-
metric_gates_label: "
|
|
714
|
+
metric_gates_label: "10 Quality Gates DoD",
|
|
715
715
|
metric_gates_sub: "100% COMPLIANT",
|
|
716
716
|
metric_mutation_label: "Mutation Kill Score",
|
|
717
717
|
metric_skills_label: "QA Skill Catalog",
|
|
@@ -719,8 +719,8 @@
|
|
|
719
719
|
metric_ecosystem_label: "Ecosystem Extensions",
|
|
720
720
|
section_actions: "1-Click Mission Action Deck",
|
|
721
721
|
section_trends: "Historical Quality Trends",
|
|
722
|
-
act_verify_title: "Verify
|
|
723
|
-
act_verify_desc: "Comprehensive
|
|
722
|
+
act_verify_title: "Verify 10 Quality Gates",
|
|
723
|
+
act_verify_desc: "Comprehensive 10 Quality Gates DoD verification before commit/release.",
|
|
724
724
|
act_lint_title: "Meta Infer AST Linter",
|
|
725
725
|
act_lint_desc: "0.02s static AST scanner detecting fake-passes, tautologies, and swallowed errors.",
|
|
726
726
|
act_mutate_title: "Micro-Mutation Sentinel",
|
|
@@ -773,7 +773,7 @@
|
|
|
773
773
|
"\n[GATE 10] Running Performance & SLA Sentinel (k6, JMeter, Playwright CWV)...",
|
|
774
774
|
"[PASS] 100% Verified: No SLA breaches detected (P95 < 500ms, Error Rate < 1.0%).",
|
|
775
775
|
"\n======================================================================",
|
|
776
|
-
"[ALL
|
|
776
|
+
"[ALL 10 QUALITY GATES PASSED - 100% DoD COMPLIANT]",
|
|
777
777
|
" Repository is 100% compliant, secure, and ready for execution/CI/CD.",
|
|
778
778
|
"======================================================================"
|
|
779
779
|
],
|
|
@@ -828,7 +828,7 @@
|
|
|
828
828
|
" [2/5] Mapping Page Classes & AST Signatures (repo_map.txt updated)",
|
|
829
829
|
" [3/5] Scanning Static Defects & Fake-Passes (0 defects)",
|
|
830
830
|
" [4/5] Auditing Synthetic Data Lifecycle & Idempotency (PASS)",
|
|
831
|
-
" [5/5] Verifying
|
|
831
|
+
" [5/5] Verifying 10 Quality Gates DoD (100% COMPLIANT)\n",
|
|
832
832
|
" Report Path: reports/PROJECT_HEALTH_REPORT.md",
|
|
833
833
|
"======================================================================",
|
|
834
834
|
"✅ HEALTH VERDICT: GRADE A+ (Production Ready)",
|
|
@@ -862,7 +862,7 @@
|
|
|
862
862
|
"======================================================================",
|
|
863
863
|
" SYNAPSE HUB — EXECUTIVE HTML DASHBOARD SYNTHESIS ",
|
|
864
864
|
"======================================================================",
|
|
865
|
-
"Scanning skills catalog,
|
|
865
|
+
"Scanning skills catalog, 10 Quality Gates status, and AST repository maps...",
|
|
866
866
|
" [INDEXED] 53 Specialized Skills indexed with Vietnamese descriptions.",
|
|
867
867
|
" [RENDERED] Inline SVGs and bilingual toggles generated (zero CDN dependencies).",
|
|
868
868
|
" [SAVED] Standalone dashboard: reports/PROJECT_DASHBOARD.html\n",
|
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 === '3.8.
|
|
16
|
+
if (window.__qa && window.__qa.__version === '3.8.4') {
|
|
17
17
|
return window.__qa;
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
const qa = {
|
|
50
|
-
__version: '3.8.
|
|
50
|
+
__version: '3.8.4',
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* 1. Smart Action Batching
|
package/tools/cli.py
CHANGED
|
@@ -99,7 +99,7 @@ def cmd_set_lang(args):
|
|
|
99
99
|
def cmd_version(args):
|
|
100
100
|
"""Displays the current hub version, skill catalog count, and license information."""
|
|
101
101
|
manifest_path = os.path.join(REPO_ROOT, "skills_manifest.json")
|
|
102
|
-
version = "3.8.
|
|
102
|
+
version = "3.8.4"
|
|
103
103
|
if os.path.exists(manifest_path):
|
|
104
104
|
try:
|
|
105
105
|
import json
|
|
@@ -680,14 +680,14 @@ def cmd_trend(args):
|
|
|
680
680
|
|
|
681
681
|
def _hub_version():
|
|
682
682
|
manifest_path = os.path.join(REPO_ROOT, "skills_manifest.json")
|
|
683
|
-
version = "3.8.
|
|
683
|
+
version = "3.8.4"
|
|
684
684
|
if os.path.exists(manifest_path):
|
|
685
685
|
try:
|
|
686
686
|
import json
|
|
687
687
|
with open(manifest_path, "r", encoding="utf-8") as f:
|
|
688
688
|
version = json.load(f).get("version", version)
|
|
689
689
|
except (OSError, json.JSONDecodeError):
|
|
690
|
-
version = "3.8.
|
|
690
|
+
version = "3.8.4"
|
|
691
691
|
return version
|
|
692
692
|
|
|
693
693
|
|
|
@@ -1348,7 +1348,7 @@ def _build_target_translations(
|
|
|
1348
1348
|
"th_step_status": "Trạng Thái",
|
|
1349
1349
|
"th_step_details": "Chi Tiết Kỹ Thuật (OTel & AST)",
|
|
1350
1350
|
|
|
1351
|
-
"footer_text": "Báo cáo được khởi tạo tự động bởi Synapse-Hub v3.8.
|
|
1351
|
+
"footer_text": "Báo cáo được khởi tạo tự động bởi Synapse-Hub v3.8.4 • Bản quyền © Thế Vị (@TeeVee98) • Chuẩn Clean POM & Kiểm Thử Tự Chủ",
|
|
1352
1352
|
}
|
|
1353
1353
|
|
|
1354
1354
|
translations_en = {
|
|
@@ -1426,7 +1426,7 @@ def _build_target_translations(
|
|
|
1426
1426
|
"th_step_status": "Status",
|
|
1427
1427
|
"th_step_details": "Technical Details (OTel & AST)",
|
|
1428
1428
|
|
|
1429
|
-
"footer_text": "Generated automatically by Synapse-Hub v3.8.
|
|
1429
|
+
"footer_text": "Generated automatically by Synapse-Hub v3.8.4 • Copyright © Thế Vị (@TeeVee98) • Clean POM & Autonomous Testing",
|
|
1430
1430
|
}
|
|
1431
1431
|
|
|
1432
1432
|
_inject_gate_translations(translations_vi, translations_en, gates)
|
|
@@ -1482,7 +1482,7 @@ def _render_target_content(
|
|
|
1482
1482
|
<div class="kpi-grid">
|
|
1483
1483
|
<div class="kpi-card">
|
|
1484
1484
|
<div class="kpi-label" data-i18n="kpi_dod_lbl">{t['kpi_dod_lbl']}</div>
|
|
1485
|
-
<div class="kpi-value" style="color: var(--accent-emerald);">
|
|
1485
|
+
<div class="kpi-value" style="color: var(--accent-emerald);">10 / 10</div>
|
|
1486
1486
|
<div class="kpi-subtext" data-i18n="kpi_dod_sub">{t['kpi_dod_sub']}</div>
|
|
1487
1487
|
</div>
|
|
1488
1488
|
<div class="kpi-card">
|
|
@@ -1915,7 +1915,7 @@ def _build_hub_translations(
|
|
|
1915
1915
|
"""Builds bilingual dictionaries for Hub Dashboard."""
|
|
1916
1916
|
translations_vi = {
|
|
1917
1917
|
"header_title": "Bảng Điều Hành Chất Lượng Doanh Nghiệp",
|
|
1918
|
-
"header_subtitle": "Synapse-Hub v3.8.
|
|
1918
|
+
"header_subtitle": "Synapse-Hub v3.8.4 • Hệ Sinh Thái Kiểm Thử AI Agent Tự Chủ",
|
|
1919
1919
|
"nav_welcome": "Giới Thiệu",
|
|
1920
1920
|
"meta_mode": "🏷️ Chế độ: <strong>HỆ SINH THÁI QA HUB</strong>",
|
|
1921
1921
|
"meta_gen": f"🕒 Khởi tạo: <strong>{now_str}</strong>",
|
|
@@ -1985,12 +1985,12 @@ def _build_hub_translations(
|
|
|
1985
1985
|
"th_sk_ver": "Phiên Bản",
|
|
1986
1986
|
"th_sk_cap": "Khả Năng Nghiệp Vụ Cốt Lõi",
|
|
1987
1987
|
|
|
1988
|
-
"footer_text": "Bảng Điều Hành Chất Lượng Doanh Nghiệp • Synapse-Hub v3.8.
|
|
1988
|
+
"footer_text": "Bảng Điều Hành Chất Lượng Doanh Nghiệp • Synapse-Hub v3.8.4 • Bản quyền © Thế Vị (@TeeVee98) • Hệ Thống Kiểm Thử AI Agent Tự Chủ",
|
|
1989
1989
|
}
|
|
1990
1990
|
|
|
1991
1991
|
translations_en = {
|
|
1992
1992
|
"header_title": "Enterprise QA Executive Dashboard",
|
|
1993
|
-
"header_subtitle": "Synapse-Hub v3.8.
|
|
1993
|
+
"header_subtitle": "Synapse-Hub v3.8.4 • Autonomous AI Agent Testing Ecosystem",
|
|
1994
1994
|
"nav_welcome": "Welcome",
|
|
1995
1995
|
"meta_mode": "🏷️ Mode: <strong>QA HUB ECOSYSTEM</strong>",
|
|
1996
1996
|
"meta_gen": f"🕒 Generated: <strong>{now_str}</strong>",
|
|
@@ -2060,7 +2060,7 @@ def _build_hub_translations(
|
|
|
2060
2060
|
"th_sk_ver": "Version",
|
|
2061
2061
|
"th_sk_cap": "Core Capabilities",
|
|
2062
2062
|
|
|
2063
|
-
"footer_text": "Enterprise QA Executive Dashboard • Synapse-Hub v3.8.
|
|
2063
|
+
"footer_text": "Enterprise QA Executive Dashboard • Synapse-Hub v3.8.4 • Copyright © Thế Vị (@TeeVee98) • Autonomous AI Agent Testing Ecosystem",
|
|
2064
2064
|
}
|
|
2065
2065
|
|
|
2066
2066
|
_inject_gate_translations(translations_vi, translations_en, gates)
|
|
@@ -2112,7 +2112,7 @@ def _render_hub_content(
|
|
|
2112
2112
|
<div class="kpi-grid">
|
|
2113
2113
|
<div class="kpi-card">
|
|
2114
2114
|
<div class="kpi-label" data-i18n="kpi_dod_lbl">{t['kpi_dod_lbl']}</div>
|
|
2115
|
-
<div class="kpi-value" style="color: var(--accent-emerald);">
|
|
2115
|
+
<div class="kpi-value" style="color: var(--accent-emerald);">10 / 10</div>
|
|
2116
2116
|
<div class="kpi-subtext" data-i18n="kpi_dod_sub">{t['kpi_dod_sub']}</div>
|
|
2117
2117
|
</div>
|
|
2118
2118
|
<div class="kpi-card">
|
package/tools/fsm_enforcer.py
CHANGED
|
@@ -20,7 +20,7 @@ Usage:
|
|
|
20
20
|
python tools/fsm_enforcer.py advance --stage CODE_SYNTHESIS --actor pom-crafter --evidence '{"files": ["LoginPage.ts"]}'
|
|
21
21
|
python tools/fsm_enforcer.py advance --stage HEADLESS_EXEC --actor test-runner --evidence '{"exit_code": 0}'
|
|
22
22
|
python tools/fsm_enforcer.py advance --stage AUTOPSY_HEAL --actor failure-analyst --evidence '{"status": "PASSED"}'
|
|
23
|
-
python tools/fsm_enforcer.py advance --stage ACCEPTANCE_DOD --actor quality-gatekeeper --evidence '{"gates":
|
|
23
|
+
python tools/fsm_enforcer.py advance --stage ACCEPTANCE_DOD --actor quality-gatekeeper --evidence '{"gates": 10}'
|
|
24
24
|
python tools/fsm_enforcer.py verify-compliance
|
|
25
25
|
"""
|
|
26
26
|
|
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 = "3.8.
|
|
63
|
+
SERVER_VERSION = "3.8.4"
|
|
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
|
|
@@ -52,7 +52,7 @@ if hasattr(sys.stdout, 'reconfigure'):
|
|
|
52
52
|
except Exception:
|
|
53
53
|
pass
|
|
54
54
|
|
|
55
|
-
SERVER_VERSION = "3.8.
|
|
55
|
+
SERVER_VERSION = "3.8.4"
|
|
56
56
|
MAX_XLSX_SIZE = 50 * 1024 * 1024 # 50 MB
|
|
57
57
|
MAX_UNCOMPRESSED_SIZE = 200 * 1024 * 1024 # 200 MB
|
|
58
58
|
MAX_RATIO = 100 # 100:1 compression ratio limit
|
package/tools/mcp_server.py
CHANGED
package/tools/ui_server.py
CHANGED
|
@@ -236,7 +236,7 @@ class SynapseUiHandler(BaseHTTPRequestHandler):
|
|
|
236
236
|
if path == "/api/status":
|
|
237
237
|
active_target = JOB_MANAGER.target_dir or REPO_ROOT
|
|
238
238
|
self.send_json(200, {
|
|
239
|
-
"version": "3.8.
|
|
239
|
+
"version": "3.8.4",
|
|
240
240
|
"status": "ONLINE",
|
|
241
241
|
"os": sys.platform,
|
|
242
242
|
"workspace": active_target,
|
package/tools/update_sentinel.py
CHANGED
|
@@ -65,7 +65,7 @@ def get_local_version():
|
|
|
65
65
|
try:
|
|
66
66
|
with open(pkg_file, "r", encoding="utf-8") as f:
|
|
67
67
|
data = json.load(f)
|
|
68
|
-
return data.get("version", "3.8.
|
|
68
|
+
return data.get("version", "3.8.4")
|
|
69
69
|
except (OSError, json.JSONDecodeError):
|
|
70
70
|
data = {}
|
|
71
71
|
|
|
@@ -74,11 +74,11 @@ def get_local_version():
|
|
|
74
74
|
try:
|
|
75
75
|
with open(manifest_file, "r", encoding="utf-8") as f:
|
|
76
76
|
data = json.load(f)
|
|
77
|
-
return data.get("version", "3.8.
|
|
77
|
+
return data.get("version", "3.8.4")
|
|
78
78
|
except (OSError, json.JSONDecodeError):
|
|
79
79
|
data = {}
|
|
80
80
|
|
|
81
|
-
return "3.8.
|
|
81
|
+
return "3.8.4"
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
def fetch_remote_version():
|
package/tools/verify_all.py
CHANGED
|
@@ -424,7 +424,7 @@ def gate_4_ai_docs_lint(repo_root, mode="AUTO"):
|
|
|
424
424
|
return False
|
|
425
425
|
|
|
426
426
|
try:
|
|
427
|
-
res = subprocess.run([sys.executable, linter_script, repo_root], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, timeout=60.0)
|
|
427
|
+
res = subprocess.run([sys.executable, linter_script, repo_root], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, encoding="utf-8", errors="replace", timeout=60.0)
|
|
428
428
|
except subprocess.TimeoutExpired:
|
|
429
429
|
print("[FAIL] lint_ai_docs.py timed out after 60s!")
|
|
430
430
|
return False
|
|
@@ -783,7 +783,7 @@ def gate_7_infer_linter(repo_root, mode="AUTO"):
|
|
|
783
783
|
try:
|
|
784
784
|
res = subprocess.run([
|
|
785
785
|
sys.executable, infer_script, "--strict", "--baseline", baseline_file, "--dir", tools_dir
|
|
786
|
-
], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, timeout=60.0)
|
|
786
|
+
], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, encoding="utf-8", errors="replace", timeout=60.0)
|
|
787
787
|
if res.returncode != 0:
|
|
788
788
|
print("[FAIL] Hub internal tools contain unbaselined critical defects:")
|
|
789
789
|
safe_print(res.stdout)
|
|
@@ -812,10 +812,13 @@ def gate_7_infer_linter(repo_root, mode="AUTO"):
|
|
|
812
812
|
env = os.environ.copy()
|
|
813
813
|
env["SYNAPSE_GATE7_TESTING"] = "1"
|
|
814
814
|
env["SYNAPSE_LANG"] = "en"
|
|
815
|
+
env["PYTHONIOENCODING"] = "utf-8"
|
|
815
816
|
pytest_cmd = [sys.executable, "-m", "pytest", "tests", "-q"]
|
|
816
817
|
import importlib.util
|
|
817
818
|
if importlib.util.find_spec("xdist") is not None:
|
|
818
|
-
|
|
819
|
+
# Windows & cross-platform guard: cap workers to min(cpu_count, 8) to prevent socket/process exhaustion
|
|
820
|
+
max_workers = max(1, min(os.cpu_count() or 4, 8))
|
|
821
|
+
pytest_cmd.extend(["-n", str(max_workers)])
|
|
819
822
|
try:
|
|
820
823
|
test_res = subprocess.run(
|
|
821
824
|
pytest_cmd,
|
|
@@ -823,6 +826,8 @@ def gate_7_infer_linter(repo_root, mode="AUTO"):
|
|
|
823
826
|
stdout=subprocess.PIPE,
|
|
824
827
|
stderr=subprocess.PIPE,
|
|
825
828
|
text=True,
|
|
829
|
+
encoding="utf-8",
|
|
830
|
+
errors="replace",
|
|
826
831
|
timeout=240.0,
|
|
827
832
|
env=env
|
|
828
833
|
)
|
|
@@ -935,7 +940,7 @@ def gate_8_micro_mutator(repo_root, mode="AUTO", test_cmd=""):
|
|
|
935
940
|
if allow_empty_val:
|
|
936
941
|
cmd.append("--allow-empty")
|
|
937
942
|
try:
|
|
938
|
-
res = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, timeout=120.0)
|
|
943
|
+
res = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, encoding="utf-8", errors="replace", timeout=120.0)
|
|
939
944
|
except subprocess.TimeoutExpired:
|
|
940
945
|
print("[FAIL] Assertion Sensitivity Sentinel timed out after 120s!")
|
|
941
946
|
return False
|
|
@@ -991,7 +996,7 @@ def gate_9_skill_collision(repo_root, mode="AUTO"):
|
|
|
991
996
|
cmd.extend(["--scan-rules", "--rules-dir", rules_dir])
|
|
992
997
|
|
|
993
998
|
try:
|
|
994
|
-
res = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, timeout=60.0)
|
|
999
|
+
res = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, encoding="utf-8", errors="replace", timeout=60.0)
|
|
995
1000
|
except subprocess.TimeoutExpired:
|
|
996
1001
|
print("[FAIL] skill_collision_guard.py timed out after 60s!")
|
|
997
1002
|
return False
|
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": "3.8.
|
|
50
|
+
"version": "3.8.4",
|
|
51
51
|
"totalSkills": 42,
|
|
52
52
|
"author": "Thế Vị (@TeeVee98)",
|
|
53
53
|
"repo": "https://github.com/TeeVee98/Synapse-Hub"
|