@teevee98/synapse-hub 3.8.2 → 3.8.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/.agents/agents/orchestrator.md +1 -1
- package/.agents/agents/quality-gatekeeper.md +3 -3
- package/.agents/rules/author-integrity-guard.md +5 -5
- package/.agents/rules/mandatory-playwright-live.md +1 -1
- package/.agents/rules/skill-precedence.md +1 -1
- package/.agents/rules/systematic-debugging.md +1 -1
- package/.agents/skills/antigravity-test-sentinel/SKILL.md +3 -3
- package/.agents/skills/antigravity-test-sentinel/examples/sprint_dod_enforcement.md +1 -1
- package/.agents/skills/consumer-driven-contract-testing/SKILL.md +1 -1
- package/.agents/skills/lean-impact-scoreboard/examples/sample_scoreboard.md +1 -1
- package/.agents/skills/persistent-planning-files/SKILL.md +1 -1
- package/.agents/skills/persistent-planning-files/examples/task_plan_example.md +1 -1
- package/.agents/skills/repo-quality-audit/SKILL.md +1 -1
- package/.agents/skills/surgical-coding-principles/SKILL.md +2 -2
- package/.agents/skills/verification-before-completion/SKILL.md +2 -2
- package/.agents/skills/verification-before-completion/examples/evidence_log_example.md +2 -2
- package/.agents/workflows/verify.md +3 -3
- package/.cursor/rules/synapse-qa.mdc +1 -1
- package/.cursorrules +3 -3
- package/.pre-commit-hooks.yaml +2 -2
- package/.windsurfrules +3 -3
- package/AGENTS.md +3 -3
- package/CLAUDE.md +4 -4
- package/Dockerfile +5 -5
- package/README.en.md +16 -17
- package/README.md +16 -17
- package/action.yml +2 -2
- package/agentskills.json +3 -3
- package/bin/agent-qa.js +2 -2
- package/docker-compose.yml +8 -8
- package/docs/ARCHITECTURE.en.md +6 -5
- package/docs/ARCHITECTURE.md +7 -6
- package/docs/CI_CD_INTEGRATION.en.md +16 -16
- package/docs/CI_CD_INTEGRATION.md +16 -16
- package/docs/CLI_REFERENCE.en.md +2 -3
- package/docs/CLI_REFERENCE.md +4 -5
- package/docs/CONTRIBUTING.en.md +1 -1
- package/docs/CONTRIBUTING.md +1 -1
- package/docs/PERFORMANCE_AUDIT_REPORT.md +2 -3
- package/docs/PLUGIN_DEVELOPMENT_GUIDE.md +1 -1
- package/docs/QUALITY_GATES.en.md +9 -12
- package/docs/QUALITY_GATES.md +10 -13
- package/docs/TOOL_CATALOG.md +1 -1
- package/docs/research/EXTERNAL_AGENT_SKILLS_SURVEY.md +3 -3
- package/docs/research/agent_skill_training_analysis.md +17 -18
- package/docs/schemas/synapse.config.schema.json +0 -1
- package/package.json +5 -5
- package/plugin.json +6 -6
- package/skills_manifest.json +1 -1
- package/synapse.config.json +2 -3
- package/templates/PROJECT_AI_GUIDE_TEMPLATE.md +2 -2
- package/templates/PROJECT_STATE_TEMPLATE.md +1 -1
- package/templates/ai_bridges/CLAUDE.md +4 -4
- package/templates/ai_bridges/copilot-instructions.md +2 -2
- package/templates/ai_bridges/cursor_synapse_qa.mdc +1 -1
- package/templates/ai_bridges/windsurfrules +3 -3
- package/templates/ci/github-actions-synapse.yml +5 -5
- package/templates/welcome.html.tmpl +29 -34
- package/tools/TOOLS_RUNBOOK.md +7 -7
- package/tools/TOOL_CATALOG.json +1 -1
- package/tools/__init__.py +5 -5
- package/tools/_openapi_parser.py +2 -2
- package/tools/agentless_patcher.py +2 -2
- package/tools/analyze_project.py +10 -6
- package/tools/author_integrity.py +19 -13
- package/tools/auto_heal_reflexion.py +2 -2
- package/tools/autogen_qa_broker.py +2 -2
- package/tools/benchmark_swarm_context.py +2 -2
- package/tools/browser_helpers.js +2 -2
- package/tools/browsergym_eval.py +2 -2
- package/tools/bump_version.py +2 -2
- package/tools/ci_healing_hook.py +1 -1
- package/tools/cli.py +11 -11
- package/tools/contract_validator.py +2 -2
- package/tools/core/adapters.py +2 -2
- package/tools/core/circuit_breaker.py +2 -2
- package/tools/core/cli_runtime.py +2 -2
- package/tools/core/file_lock.py +2 -2
- package/tools/core/i18n.py +7 -7
- package/tools/core/memory_bus.py +2 -2
- package/tools/core/process_supervisor.py +2 -2
- package/tools/core/telemetry.py +2 -2
- package/tools/count_tokens.py +1 -1
- package/tools/dashboard_generator.py +29 -45
- package/tools/debt_harvester.py +2 -2
- package/tools/dspy_qa_signatures.py +3 -3
- package/tools/fsm_enforcer.py +4 -4
- package/tools/fsm_middleware.py +2 -2
- package/tools/generate_sbom.py +9 -9
- package/tools/generate_tool_catalog.py +3 -3
- package/tools/gherkin_suite.py +2 -2
- package/tools/goldfish_review.py +2 -2
- package/tools/heal_pr_automator.py +1 -1
- package/tools/hub_publisher.py +12 -12
- package/tools/humanize_linter.py +2 -2
- package/tools/init_config.py +4 -5
- package/tools/interview_story.py +2 -2
- package/tools/jira_sync.py +2 -2
- package/tools/lint_ai_docs.py +2 -2
- package/tools/mcp_docx_server.py +3 -3
- package/tools/mcp_excel_server.py +1 -1
- package/tools/mcp_server.py +5 -4
- package/tools/mipro_assertion_tuner.py +2 -2
- package/tools/openxml_guard.py +2 -2
- package/tools/package_release.py +2 -2
- package/tools/project_state.py +2 -2
- package/tools/qa_event_stream.py +2 -2
- package/tools/reversible_sandbox.py +2 -2
- package/tools/security_coverage_ledger.py +1 -1
- package/tools/security_scanner.py +2 -2
- package/tools/senior_code_review.py +2 -2
- package/tools/skill_collision_guard.py +2 -2
- package/tools/skill_profiles.py +2 -2
- package/tools/skill_vault.py +2 -2
- package/tools/skillspector.py +2 -2
- package/tools/spec_drift_sentinel.py +2 -2
- package/tools/swe_qa_aci.py +2 -2
- package/tools/synapse_observer.py +2 -2
- package/tools/synapse_qa_bench.py +2 -2
- package/tools/sync_agent_rules.py +15 -15
- package/tools/template_excel_exporter.py +2 -2
- package/tools/test_memory_os.py +2 -2
- package/tools/textgrad_mutation_optimizer.py +2 -2
- package/tools/tms_sync_bridge.py +2 -2
- package/tools/tot_exploratory_tester.py +2 -2
- package/tools/trend_analytics.py +2 -2
- package/tools/ui_server.py +6 -6
- package/tools/update_sentinel.py +6 -6
- package/tools/verify_all.py +26 -14
- package/tools/watch_mode.py +2 -2
- package/tools/welcome_page.py +9 -9
package/tools/cli.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
|
-
# Project: Synapse-Hub (https://github.com/
|
|
4
|
+
# Project: Synapse-Hub (https://github.com/TeeVee98/Synapse-Hub)
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
Enterprise Agent-QA CLI Entrypoint
|
|
@@ -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.3"
|
|
103
103
|
if os.path.exists(manifest_path):
|
|
104
104
|
try:
|
|
105
105
|
import json
|
|
@@ -118,7 +118,7 @@ def cmd_version(args):
|
|
|
118
118
|
except (OSError, json.JSONDecodeError):
|
|
119
119
|
manifest_skills = 42
|
|
120
120
|
print(f"Catalog: {manifest_skills} Standardized Skills | 9 Subagent Swarm Profiles")
|
|
121
|
-
print("Created by: Thế Vị (@
|
|
121
|
+
print("Created by: Thế Vị (@TeeVee98) <https://github.com/TeeVee98/Synapse-Hub>")
|
|
122
122
|
print("License : MIT (Attribution Required)")
|
|
123
123
|
|
|
124
124
|
|
|
@@ -171,7 +171,7 @@ def _forward_subcommand_args(args_or_name=None) -> list:
|
|
|
171
171
|
|
|
172
172
|
|
|
173
173
|
def cmd_verify(args):
|
|
174
|
-
"""Executes the
|
|
174
|
+
"""Executes the 10 Quality Gates Definition of Done (DoD) verification suite."""
|
|
175
175
|
from verify_all import main as verify_main
|
|
176
176
|
sys.argv = _forward_subcommand_args(args)
|
|
177
177
|
sys.exit(verify_main())
|
|
@@ -639,7 +639,7 @@ def cmd_review(args):
|
|
|
639
639
|
|
|
640
640
|
|
|
641
641
|
def cmd_release(args):
|
|
642
|
-
"""1-Click atomic release: bumps version across all files, runs
|
|
642
|
+
"""1-Click atomic release: bumps version across all files, runs 10 Quality Gates, tags & pushes to trigger NPM Trusted Publishing."""
|
|
643
643
|
from bump_version import main as bump_main
|
|
644
644
|
forwarded = _forward_subcommand_args(args)
|
|
645
645
|
if "--no-push" not in forwarded and "--push" not in forwarded:
|
|
@@ -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.3"
|
|
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.3"
|
|
691
691
|
return version
|
|
692
692
|
|
|
693
693
|
|
|
@@ -1425,7 +1425,7 @@ def _register_platform_and_tools_commands(subparsers, lang: Optional[str] = None
|
|
|
1425
1425
|
help=t("cmd_publish", lang=lang)
|
|
1426
1426
|
)
|
|
1427
1427
|
p_publish.add_argument("--message", "-m", help=_lh("Optional commit message for unstaged/pending changes", "Thông điệp commit tùy chọn cho các thay đổi chưa commit", lang))
|
|
1428
|
-
p_publish.add_argument("--skip-verify", action="store_true", help=_lh("Skip running
|
|
1428
|
+
p_publish.add_argument("--skip-verify", action="store_true", help=_lh("Skip running 10 Quality Gates DoD before push", "Bỏ qua kiểm tra 10 Cổng Chất Lượng DoD trước khi đẩy", lang))
|
|
1429
1429
|
p_publish.add_argument("--dry-run", action="store_true", help=_lh("Simulate all steps without pushing or publishing", "Mô phỏng toàn bộ các bước mà không thực sự đẩy hay xuất bản", lang))
|
|
1430
1430
|
p_publish.add_argument("--no-wait", action="store_true", help=_lh("Fire and forget without waiting for CI workflow / npm verification", "Chạy nền mà không chờ quy trình CI workflow / kiểm tra NPM hoàn tất", lang))
|
|
1431
1431
|
p_publish.add_argument("--timeout", type=int, default=180, help=_lh("Maximum seconds to wait for npm publication", "Thời gian chờ tối đa tính bằng giây cho việc xuất bản NPM", lang))
|
|
@@ -1445,7 +1445,7 @@ def _handle_interactive_wizard(parser, args):
|
|
|
1445
1445
|
print(f" {BOLD}2.{RESET} 🚀 {BOLD}Setup{RESET} - Thiết lập bảo vệ 1-click cho dự án kiểm thử mục tiêu")
|
|
1446
1446
|
print(f" {BOLD}3.{RESET} ⚙️ {BOLD}Init-Config{RESET} - Khởi tạo file cấu hình .synapse.json chuẩn hóa cho dự án Spoke")
|
|
1447
1447
|
print(f" {BOLD}4.{RESET} 🔍 {BOLD}Lint{RESET} - Quét phát hiện test pass ảo, 0 assert, sleep cứng")
|
|
1448
|
-
print(f" {BOLD}5.{RESET} 🛡️ {BOLD}Verify{RESET} - Chạy kiểm tra
|
|
1448
|
+
print(f" {BOLD}5.{RESET} 🛡️ {BOLD}Verify{RESET} - Chạy kiểm tra 10 Cổng Chất Lượng DoD")
|
|
1449
1449
|
print(f" {BOLD}6.{RESET} 📊 {BOLD}Export-Excel{RESET} - Xuất test cases Markdown sang file Excel (.xlsx)")
|
|
1450
1450
|
print(f" {BOLD}7.{RESET} 🌐 {BOLD}Welcome{RESET} - Mở trang Landing Page trực quan")
|
|
1451
1451
|
print(f" {BOLD}8.{RESET} ❓ {BOLD}Help{RESET} - Xem danh sách đầy đủ tất cả các lệnh CLI")
|
|
@@ -1457,7 +1457,7 @@ def _handle_interactive_wizard(parser, args):
|
|
|
1457
1457
|
print(f" {BOLD}2.{RESET} 🚀 {BOLD}Setup{RESET} - 1-click bootstrap & protection for target test project")
|
|
1458
1458
|
print(f" {BOLD}3.{RESET} ⚙️ {BOLD}Init-Config{RESET} - Initialize standardized .synapse.json config for Spoke project")
|
|
1459
1459
|
print(f" {BOLD}4.{RESET} 🔍 {BOLD}Lint{RESET} - AST scan catching fake-passes, 0 asserts, hard sleeps")
|
|
1460
|
-
print(f" {BOLD}5.{RESET} 🛡️ {BOLD}Verify{RESET} - Execute
|
|
1460
|
+
print(f" {BOLD}5.{RESET} 🛡️ {BOLD}Verify{RESET} - Execute 10 Quality Gates Definition of Done (DoD)")
|
|
1461
1461
|
print(f" {BOLD}6.{RESET} 📊 {BOLD}Export-Excel{RESET} - Export Markdown test cases to enterprise Excel (.xlsx)")
|
|
1462
1462
|
print(f" {BOLD}7.{RESET} 🌐 {BOLD}Welcome{RESET} - Launch interactive visual landing page")
|
|
1463
1463
|
print(f" {BOLD}8.{RESET} ❓ {BOLD}Help{RESET} - Display full list of CLI commands")
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
|
-
# Project: Synapse-Hub (https://github.com/
|
|
4
|
+
# Project: Synapse-Hub (https://github.com/TeeVee98/Synapse-Hub)
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
Swarm Data Contract Validator (Single Front-Door Integrity Guard)
|
package/tools/core/adapters.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
|
-
# Project: Synapse-Hub (https://github.com/
|
|
4
|
+
# Project: Synapse-Hub (https://github.com/TeeVee98/Synapse-Hub)
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
tools/core/adapters.py — Unified Memory Bus Bridges & Adapters
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
|
-
# Project: Synapse-Hub (https://github.com/
|
|
4
|
+
# Project: Synapse-Hub (https://github.com/TeeVee98/Synapse-Hub)
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
Synapse Hub — In-Flight Token Circuit Breaker & Model Cascade Engine
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
|
-
# Project: Synapse-Hub (https://github.com/
|
|
4
|
+
# Project: Synapse-Hub (https://github.com/TeeVee98/Synapse-Hub)
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
Shared CLI Runtime Utilities for Synapse-Hub Tools
|
package/tools/core/file_lock.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
|
-
# Project: Synapse-Hub (https://github.com/
|
|
4
|
+
# Project: Synapse-Hub (https://github.com/TeeVee98/Synapse-Hub)
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
Cross-Platform Advisory File Locking (tools.core.file_lock)
|
package/tools/core/i18n.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
|
-
# Project: Synapse-Hub (https://github.com/
|
|
4
|
+
# Project: Synapse-Hub (https://github.com/TeeVee98/Synapse-Hub)
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
Synapse Hub — Bilingual Internationalization Engine (tools.core.i18n)
|
|
@@ -20,7 +20,7 @@ MESSAGES: Dict[str, Dict[str, str]] = {
|
|
|
20
20
|
"en": {
|
|
21
21
|
"banner_title": "SYNAPSE HUB CLI — Enterprise AI Agent Quality Engineering Hub",
|
|
22
22
|
"hub_cli_description": "Enterprise AI Agent Quality Engineering & Test Automation Hub CLI",
|
|
23
|
-
"version_info": "Version: v{version} | Author: Thế Vị (@
|
|
23
|
+
"version_info": "Version: v{version} | Author: Thế Vị (@TeeVee98) | License: MIT",
|
|
24
24
|
"usage_title": "USAGE:",
|
|
25
25
|
"usage_syntax": " agent-qa <command> [options...]",
|
|
26
26
|
"core_commands_title": "🌟 CORE & DAILY WORKFLOWS:",
|
|
@@ -42,7 +42,7 @@ MESSAGES: Dict[str, Dict[str, str]] = {
|
|
|
42
42
|
"cmd_setup": "Autonomous 1-click bootstrap of target project (AI guide, Git hook, AST map)",
|
|
43
43
|
"cmd_init_config": "Initialize standardized .synapse.json configuration for Spoke project",
|
|
44
44
|
"cmd_lint": "AST scan catching fake-passes (0 assert, try-catch swallow, hard sleeps)",
|
|
45
|
-
"cmd_verify": "Execute
|
|
45
|
+
"cmd_verify": "Execute 10 Quality Gates Definition of Done (DoD) verification",
|
|
46
46
|
"cmd_export_excel": "Export Markdown test cases to enterprise 12-column Excel (.xlsx)",
|
|
47
47
|
"cmd_welcome": "Launch interactive visual landing page introducing Synapse Hub",
|
|
48
48
|
"cmd_ui": "Launch real-time Interactive Mission Control Web UI dashboard",
|
|
@@ -116,7 +116,7 @@ MESSAGES: Dict[str, Dict[str, str]] = {
|
|
|
116
116
|
"vi": {
|
|
117
117
|
"banner_title": "SYNAPSE HUB CLI — Enterprise AI Agent Quality Engineering Hub",
|
|
118
118
|
"hub_cli_description": "Nền tảng kỹ thuật kiểm thử và đảm bảo chất lượng AI Agent tự động",
|
|
119
|
-
"version_info": "Phiên bản: v{version} | Tác giả: Thế Vị (@
|
|
119
|
+
"version_info": "Phiên bản: v{version} | Tác giả: Thế Vị (@TeeVee98) | Giấy phép: MIT",
|
|
120
120
|
"usage_title": "CÚ PHÁP SỬ DỤNG:",
|
|
121
121
|
"usage_syntax": " agent-qa <lệnh> [tùy_chọn...]",
|
|
122
122
|
"core_commands_title": "🌟 LỆNH CỐT LÕI & THƯỜNG DÙNG:",
|
|
@@ -138,7 +138,7 @@ MESSAGES: Dict[str, Dict[str, str]] = {
|
|
|
138
138
|
"cmd_setup": "Thiết lập bảo vệ 1-click cho dự án mục tiêu (AI rules, Git hook, AST map)",
|
|
139
139
|
"cmd_init_config": "Khởi tạo file cấu hình .synapse.json chuẩn hóa cho dự án Spoke",
|
|
140
140
|
"cmd_lint": "Quét AST phát hiện test pass ảo (0 assert, try-catch rỗng, sleep cứng)",
|
|
141
|
-
"cmd_verify": "Kiểm tra toàn diện
|
|
141
|
+
"cmd_verify": "Kiểm tra toàn diện 10 Cổng Chất Lượng DoD (Definition of Done)",
|
|
142
142
|
"cmd_export_excel": "Xuất test cases Markdown sang file Excel (.xlsx) chuẩn doanh nghiệp",
|
|
143
143
|
"cmd_welcome": "Khởi chạy Landing Page trực quan giới thiệu các trụ cột của Synapse Hub",
|
|
144
144
|
"cmd_ui": "Khởi chạy Web UI Mission Control tương tác thời gian thực (Live Dashboard)",
|
|
@@ -201,7 +201,7 @@ MESSAGES: Dict[str, Dict[str, str]] = {
|
|
|
201
201
|
"cmd_mcp_serve": "Khởi chạy máy chủ giao thức Model Context Protocol (MCP) chuẩn JSON-RPC 2.0",
|
|
202
202
|
"cmd_mcp_excel": "Khởi chạy máy chủ MCP Excel chuyên dụng qua luồng stdio",
|
|
203
203
|
"cmd_mcp_docx": "Khởi chạy máy chủ MCP Word (.docx) chuyên dụng qua luồng stdio",
|
|
204
|
-
"cmd_release": "Phát hành 1-click: nâng số phiên bản, kiểm tra
|
|
204
|
+
"cmd_release": "Phát hành 1-click: nâng số phiên bản, kiểm tra 10 Cổng DoD, gắn tag git và xuất bản NPM",
|
|
205
205
|
"cmd_publish": "Quy trình phát hành trọn gói 1-click: đẩy nhánh main, tạo tag git, phát hành GitHub Release & NPM",
|
|
206
206
|
"subcommands_help": "Danh sách các lệnh khả dụng",
|
|
207
207
|
"typo_error": "❌ Lỗi: Lệnh '{choice}' không tồn tại trong Synapse-Hub.",
|
package/tools/core/memory_bus.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.
|
|
2
2
|
# SPDX-License-Identifier: MIT
|
|
3
|
-
# Project: Synapse-Hub (https://github.com/
|
|
3
|
+
# Project: Synapse-Hub (https://github.com/TeeVee98/Synapse-Hub)
|
|
4
4
|
|
|
5
5
|
"""
|
|
6
6
|
tools/core/memory_bus.py — Unified QA Memory Bus Architecture
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
|
-
# Project: Synapse-Hub (https://github.com/
|
|
4
|
+
# Project: Synapse-Hub (https://github.com/TeeVee98/Synapse-Hub)
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
Reusable Process Group Supervisor & Zombie Process Reaper (tools.core.process_supervisor)
|
package/tools/core/telemetry.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
|
-
# Project: Synapse-Hub (https://github.com/
|
|
4
|
+
# Project: Synapse-Hub (https://github.com/TeeVee98/Synapse-Hub)
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
Synapse Hub — Structured Observability & OpenTelemetry W3C Trace Context
|
package/tools/count_tokens.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
2
|
"""
|
|
3
3
|
Cross-Platform Token & Cost Auditor (Synapse-Hub)
|
|
4
|
-
Author: Thế Vị (@
|
|
4
|
+
Author: Thế Vị (@TeeVee98) <https://github.com/TeeVee98/Synapse-Hub>
|
|
5
5
|
License: MIT
|
|
6
6
|
|
|
7
7
|
Audits and counts exact token usage (Prompt Input, Cache Read, Output),
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
|
-
# Project: Synapse-Hub (https://github.com/
|
|
4
|
+
# Project: Synapse-Hub (https://github.com/TeeVee98/Synapse-Hub)
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
tools/dashboard_generator.py — Standalone One-Page Enterprise QA HTML Dashboard
|
|
8
8
|
--------------------------------------------------------------------------------
|
|
9
|
-
Compiles project health metrics,
|
|
9
|
+
Compiles project health metrics, 10 Quality Gates status, AST repository maps,
|
|
10
10
|
benchmark results, and skills inventory into a single, dependency-free,
|
|
11
11
|
executive HTML dashboard.
|
|
12
12
|
|
|
13
13
|
Supports Dual-Mode:
|
|
14
14
|
1. TARGET PROJECT MODE: Displays target project test suites, POM PageClasses,
|
|
15
|
-
automation tech stack (Playwright/Katalon/Pytest/Cypress), in-project
|
|
15
|
+
automation tech stack (Playwright/Katalon/Pytest/Cypress), in-project 10 Gates DoD,
|
|
16
16
|
and active AI skill profile.
|
|
17
17
|
2. HUB ECOSYSTEM MODE: Displays central Synapse-Hub catalog (51 skills),
|
|
18
18
|
self-healing benchmark (25 challenges), and platform governance.
|
|
@@ -623,8 +623,8 @@ def build_swarm_timeline_html(default_lang: str = "vi") -> str:
|
|
|
623
623
|
"name_vi": "5. Nghiệm Thu Chất Lượng DoD",
|
|
624
624
|
"name_en": "5. Final Acceptance",
|
|
625
625
|
"agent": "quality-gatekeeper",
|
|
626
|
-
"desc_vi": "Vượt qua
|
|
627
|
-
"desc_en": "
|
|
626
|
+
"desc_vi": "Vượt qua 10 Cổng Chất Lượng & Độ nhạy đột biến ≥ 80%",
|
|
627
|
+
"desc_en": "10 Quality Gates + Mutation Score ≥ 80%",
|
|
628
628
|
"icon": "🛡️",
|
|
629
629
|
"badge": "PASS",
|
|
630
630
|
},
|
|
@@ -658,7 +658,7 @@ def build_swarm_timeline_html(default_lang: str = "vi") -> str:
|
|
|
658
658
|
("Test Run", "badge-ver", "test-runner", "dispatch_headless_cli & distill_log", "3,200ms", "120 tok", "✓ PASS (0 Fails)", "badge-pass", "tool.name: distill_log.py | noise_reduction: 95.2%"),
|
|
659
659
|
("Perf Benchmark", "badge-tool", "perf-engineer", "jtl_analyzer.py & telemetry_correlator.py", "420ms", "0 tok", "⚡ P95 320ms (< 500ms)", "badge-pass", "tool.name: jtl_analyzer.py | p95_latency: 320ms | error_rate: 0.0%"),
|
|
660
660
|
("Memory Cache", "badge-cat", "failure-analyst", "cache_resolver.py fingerprint & lookup", "8ms", "0 tok", "⚡ 0-TOKEN RESOLVE", "badge-pass", "tool.name: cache_resolver.py | fingerprint: fp_7f2e76cf | hits: 0"),
|
|
661
|
-
("Gatekeeper", "badge-gate", "quality-gatekeeper", "verify_all.py (
|
|
661
|
+
("Gatekeeper", "badge-gate", "quality-gatekeeper", "verify_all.py (10 Gates + MicroMutator)", "1,450ms", "0 tok", "🛡️ 10/10 GATES PASS", "badge-pass", "tool.name: verify_all.py | mutation_score: 91.4% (DoD >= 80%)"),
|
|
662
662
|
]
|
|
663
663
|
|
|
664
664
|
step_rows = []
|
|
@@ -1017,16 +1017,8 @@ def _render_html_page_wrapper(
|
|
|
1017
1017
|
|
|
1018
1018
|
|
|
1019
1019
|
def _get_target_gates() -> List[Dict[str, str]]:
|
|
1020
|
-
"""Returns the
|
|
1020
|
+
"""Returns the 10 Quality Gates for a Target Project."""
|
|
1021
1021
|
return [
|
|
1022
|
-
{
|
|
1023
|
-
"id": "Gate 0",
|
|
1024
|
-
"name_vi": "Định Danh Tác Giả & Tính Toàn Vẹn",
|
|
1025
|
-
"name_en": "Author Attribution & Integrity",
|
|
1026
|
-
"desc_vi": "Bảo vệ nguồn gốc bản quyền tác giả Thế Vị (@TeeVee998) & chống can thiệp trái phép",
|
|
1027
|
-
"desc_en": "Provenance & anti-tamper guard for QA engine",
|
|
1028
|
-
"status": "PASS",
|
|
1029
|
-
},
|
|
1030
1022
|
{
|
|
1031
1023
|
"id": "Gate 1",
|
|
1032
1024
|
"name_vi": "Mã Hóa 100% UTF-8 No BOM",
|
|
@@ -1290,8 +1282,8 @@ def _build_target_translations(
|
|
|
1290
1282
|
"meta_gen": f"🕒 Khởi tạo: <strong>{now_str}</strong>",
|
|
1291
1283
|
"meta_status": "🛡️ Trạng thái: <strong>100% ĐẠT CHUẨN DoD</strong>",
|
|
1292
1284
|
|
|
1293
|
-
"kpi_dod_lbl": "
|
|
1294
|
-
"kpi_dod_sub": "✓ Tất Cả
|
|
1285
|
+
"kpi_dod_lbl": "10 Cổng Kiểm Soát DoD",
|
|
1286
|
+
"kpi_dod_sub": "✓ Tất Cả 10 Cổng Đạt Chuẩn",
|
|
1295
1287
|
"kpi_pom_lbl": "Page Classes & POM",
|
|
1296
1288
|
"kpi_pom_sub": f"{assets['methods_count']} Phương Thức Đóng Gói",
|
|
1297
1289
|
"kpi_tc_lbl": "Kịch Bản Test Tự Động",
|
|
@@ -1301,7 +1293,7 @@ def _build_target_translations(
|
|
|
1301
1293
|
"kpi_clean_lbl": "Kỷ Luật Clean POM",
|
|
1302
1294
|
"kpi_clean_sub": "Không Chứa Locator Trong Test Script",
|
|
1303
1295
|
|
|
1304
|
-
"sec_gates_title": "🛡️
|
|
1296
|
+
"sec_gates_title": "🛡️ 10 Cổng Kiểm Soát Chất Lượng (DoD Dự Án Mục Tiêu)",
|
|
1305
1297
|
"sec_gates_badge": "Cổng Kiểm Soát Tự Động DoD",
|
|
1306
1298
|
"badge_pass": "✓ PASS",
|
|
1307
1299
|
|
|
@@ -1356,7 +1348,7 @@ def _build_target_translations(
|
|
|
1356
1348
|
"th_step_status": "Trạng Thái",
|
|
1357
1349
|
"th_step_details": "Chi Tiết Kỹ Thuật (OTel & AST)",
|
|
1358
1350
|
|
|
1359
|
-
"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.3 • Bản quyền © Thế Vị (@TeeVee98) • Chuẩn Clean POM & Kiểm Thử Tự Chủ",
|
|
1360
1352
|
}
|
|
1361
1353
|
|
|
1362
1354
|
translations_en = {
|
|
@@ -1368,8 +1360,8 @@ def _build_target_translations(
|
|
|
1368
1360
|
"meta_gen": f"🕒 Generated: <strong>{now_str}</strong>",
|
|
1369
1361
|
"meta_status": "🛡️ Status: <strong>100% DoD COMPLIANT</strong>",
|
|
1370
1362
|
|
|
1371
|
-
"kpi_dod_lbl": "
|
|
1372
|
-
"kpi_dod_sub": "✓ All
|
|
1363
|
+
"kpi_dod_lbl": "10 DoD Quality Gates",
|
|
1364
|
+
"kpi_dod_sub": "✓ All 10 Gates Fully Passed",
|
|
1373
1365
|
"kpi_pom_lbl": "Page Classes & POM",
|
|
1374
1366
|
"kpi_pom_sub": f"{assets['methods_count']} Encapsulated Methods",
|
|
1375
1367
|
"kpi_tc_lbl": "Automated Tests",
|
|
@@ -1379,7 +1371,7 @@ def _build_target_translations(
|
|
|
1379
1371
|
"kpi_clean_lbl": "Clean POM Discipline",
|
|
1380
1372
|
"kpi_clean_sub": "Zero Locators in Test Scripts",
|
|
1381
1373
|
|
|
1382
|
-
"sec_gates_title": "🛡️
|
|
1374
|
+
"sec_gates_title": "🛡️ 10 Quality Gates (Target Project DoD)",
|
|
1383
1375
|
"sec_gates_badge": "Automated DoD Sentinels",
|
|
1384
1376
|
"badge_pass": "✓ PASS",
|
|
1385
1377
|
|
|
@@ -1434,7 +1426,7 @@ def _build_target_translations(
|
|
|
1434
1426
|
"th_step_status": "Status",
|
|
1435
1427
|
"th_step_details": "Technical Details (OTel & AST)",
|
|
1436
1428
|
|
|
1437
|
-
"footer_text": "Generated automatically by Synapse-Hub v3.8.
|
|
1429
|
+
"footer_text": "Generated automatically by Synapse-Hub v3.8.3 • Copyright © Thế Vị (@TeeVee98) • Clean POM & Autonomous Testing",
|
|
1438
1430
|
}
|
|
1439
1431
|
|
|
1440
1432
|
_inject_gate_translations(translations_vi, translations_en, gates)
|
|
@@ -1515,7 +1507,7 @@ def _render_target_content(
|
|
|
1515
1507
|
</div>
|
|
1516
1508
|
</div>
|
|
1517
1509
|
|
|
1518
|
-
<!--
|
|
1510
|
+
<!-- 10 Quality Gates DoD Sentinel Grid -->
|
|
1519
1511
|
<div class="section-header">
|
|
1520
1512
|
<h2 data-i18n="sec_gates_title">{t['sec_gates_title']}</h2>
|
|
1521
1513
|
<span class="section-badge" data-i18n="sec_gates_badge">{t['sec_gates_badge']}</span>
|
|
@@ -1726,16 +1718,8 @@ def generate_target_project_html(
|
|
|
1726
1718
|
|
|
1727
1719
|
|
|
1728
1720
|
def _get_hub_gates() -> List[Dict[str, str]]:
|
|
1729
|
-
"""Returns the
|
|
1721
|
+
"""Returns the 10 Definition-of-Done Quality Gates for Synapse-Hub."""
|
|
1730
1722
|
return [
|
|
1731
|
-
{
|
|
1732
|
-
"id": "Gate 0",
|
|
1733
|
-
"name_vi": "Định Danh Tác Giả & Nguồn Gốc",
|
|
1734
|
-
"name_en": "Author Attribution & Provenance",
|
|
1735
|
-
"desc_vi": "Xác thực tác giả gốc Thế Vị (@TeeVee998) & tính toàn vẹn bản quyền MIT",
|
|
1736
|
-
"desc_en": "Canonical author watermark & MIT license integrity",
|
|
1737
|
-
"status": "PASS",
|
|
1738
|
-
},
|
|
1739
1723
|
{
|
|
1740
1724
|
"id": "Gate 1",
|
|
1741
1725
|
"name_vi": "Mã Hóa 100% UTF-8 No BOM",
|
|
@@ -1931,13 +1915,13 @@ def _build_hub_translations(
|
|
|
1931
1915
|
"""Builds bilingual dictionaries for Hub Dashboard."""
|
|
1932
1916
|
translations_vi = {
|
|
1933
1917
|
"header_title": "Bảng Điều Hành Chất Lượng Doanh Nghiệp",
|
|
1934
|
-
"header_subtitle": "Synapse-Hub v3.8.
|
|
1918
|
+
"header_subtitle": "Synapse-Hub v3.8.3 • Hệ Sinh Thái Kiểm Thử AI Agent Tự Chủ",
|
|
1935
1919
|
"nav_welcome": "Giới Thiệu",
|
|
1936
1920
|
"meta_mode": "🏷️ Chế độ: <strong>HỆ SINH THÁI QA HUB</strong>",
|
|
1937
1921
|
"meta_gen": f"🕒 Khởi tạo: <strong>{now_str}</strong>",
|
|
1938
|
-
"meta_status": "🛡️ Gatekeeper: <strong>
|
|
1922
|
+
"meta_status": "🛡️ Gatekeeper: <strong>10/10 ĐẠT CHUẨN</strong>",
|
|
1939
1923
|
|
|
1940
|
-
"kpi_dod_lbl": "
|
|
1924
|
+
"kpi_dod_lbl": "10 Cổng Kiểm Soát DoD",
|
|
1941
1925
|
"kpi_dod_sub": "✓ 100% Cổng Đạt Chuẩn",
|
|
1942
1926
|
"kpi_skills_lbl": "Kỹ Năng AI Chuyên Biệt",
|
|
1943
1927
|
"kpi_skills_sub": "Phân Bổ Trong 4 Danh Mục Doanh Nghiệp",
|
|
@@ -1948,7 +1932,7 @@ def _build_hub_translations(
|
|
|
1948
1932
|
"kpi_sec_lbl": "Kiểm Tra Bảo Mật AI",
|
|
1949
1933
|
"kpi_sec_sub": "NVIDIA SkillSpector An Toàn Tuyệt Đối",
|
|
1950
1934
|
|
|
1951
|
-
"sec_gates_title": "🛡️
|
|
1935
|
+
"sec_gates_title": "🛡️ 10 Cổng Kiểm Soát Chất Lượng (Definition of Done)",
|
|
1952
1936
|
"sec_gates_badge": "Cổng Kiểm Soát Tự Động DoD",
|
|
1953
1937
|
"badge_pass": "✓ PASS",
|
|
1954
1938
|
|
|
@@ -2001,18 +1985,18 @@ def _build_hub_translations(
|
|
|
2001
1985
|
"th_sk_ver": "Phiên Bản",
|
|
2002
1986
|
"th_sk_cap": "Khả Năng Nghiệp Vụ Cốt Lõi",
|
|
2003
1987
|
|
|
2004
|
-
"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.3 • Bản quyền © Thế Vị (@TeeVee98) • Hệ Thống Kiểm Thử AI Agent Tự Chủ",
|
|
2005
1989
|
}
|
|
2006
1990
|
|
|
2007
1991
|
translations_en = {
|
|
2008
1992
|
"header_title": "Enterprise QA Executive Dashboard",
|
|
2009
|
-
"header_subtitle": "Synapse-Hub v3.8.
|
|
1993
|
+
"header_subtitle": "Synapse-Hub v3.8.3 • Autonomous AI Agent Testing Ecosystem",
|
|
2010
1994
|
"nav_welcome": "Welcome",
|
|
2011
1995
|
"meta_mode": "🏷️ Mode: <strong>QA HUB ECOSYSTEM</strong>",
|
|
2012
1996
|
"meta_gen": f"🕒 Generated: <strong>{now_str}</strong>",
|
|
2013
|
-
"meta_status": "🛡️ Gatekeeper: <strong>
|
|
1997
|
+
"meta_status": "🛡️ Gatekeeper: <strong>10/10 COMPLIANT</strong>",
|
|
2014
1998
|
|
|
2015
|
-
"kpi_dod_lbl": "
|
|
1999
|
+
"kpi_dod_lbl": "10 Quality Gates",
|
|
2016
2000
|
"kpi_dod_sub": "✓ 100% Verification Compliant",
|
|
2017
2001
|
"kpi_skills_lbl": "Specialized AI Skills",
|
|
2018
2002
|
"kpi_skills_sub": "Spanned across 4 Enterprise Categories",
|
|
@@ -2023,7 +2007,7 @@ def _build_hub_translations(
|
|
|
2023
2007
|
"kpi_sec_lbl": "AI Security Verification",
|
|
2024
2008
|
"kpi_sec_sub": "NVIDIA SkillSpector Certified Safe",
|
|
2025
2009
|
|
|
2026
|
-
"sec_gates_title": "🛡️
|
|
2010
|
+
"sec_gates_title": "🛡️ 10 Quality Gates (Definition of Done)",
|
|
2027
2011
|
"sec_gates_badge": "Automated DoD Sentinels",
|
|
2028
2012
|
"badge_pass": "✓ PASS",
|
|
2029
2013
|
|
|
@@ -2076,7 +2060,7 @@ def _build_hub_translations(
|
|
|
2076
2060
|
"th_sk_ver": "Version",
|
|
2077
2061
|
"th_sk_cap": "Core Capabilities",
|
|
2078
2062
|
|
|
2079
|
-
"footer_text": "Enterprise QA Executive Dashboard • Synapse-Hub v3.8.
|
|
2063
|
+
"footer_text": "Enterprise QA Executive Dashboard • Synapse-Hub v3.8.3 • Copyright © Thế Vị (@TeeVee98) • Autonomous AI Agent Testing Ecosystem",
|
|
2080
2064
|
}
|
|
2081
2065
|
|
|
2082
2066
|
_inject_gate_translations(translations_vi, translations_en, gates)
|
|
@@ -2153,7 +2137,7 @@ def _render_hub_content(
|
|
|
2153
2137
|
</div>
|
|
2154
2138
|
</div>
|
|
2155
2139
|
|
|
2156
|
-
<!--
|
|
2140
|
+
<!-- 10 Quality Gates DoD Sentinel Grid -->
|
|
2157
2141
|
<div class="section-header">
|
|
2158
2142
|
<h2 data-i18n="sec_gates_title">{t['sec_gates_title']}</h2>
|
|
2159
2143
|
<span class="section-badge" data-i18n="sec_gates_badge">{t['sec_gates_badge']}</span>
|
package/tools/debt_harvester.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
|
-
# Project: Synapse-Hub (https://github.com/
|
|
4
|
+
# Project: Synapse-Hub (https://github.com/TeeVee98/Synapse-Hub)
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
tools/debt_harvester.py — Technical Debt & Shortcut Harvester
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
|
-
# Project: Synapse-Hub (https://github.com/
|
|
4
|
+
# Project: Synapse-Hub (https://github.com/TeeVee98/Synapse-Hub)
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
Declarative QA Signature Compilation Engine (Stanford DSPy Pattern)
|
|
8
8
|
--------------------------------------------------------------------
|
|
9
9
|
Replaces brittle static prompt strings with typed declarative DSPy signatures.
|
|
10
10
|
Enables prompt compilation via BootstrapFewShot and MIPROv2, optimizing test
|
|
11
|
-
synthesis directly against Synapse-Hub's
|
|
11
|
+
synthesis directly against Synapse-Hub's 10 Quality Gates DoD metric.
|
|
12
12
|
|
|
13
13
|
Reference:
|
|
14
14
|
- Omar Khattab et al. (Stanford NLP DSPy: Compiling Declarative Language Model Calls).
|
package/tools/fsm_enforcer.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
|
-
# Project: Synapse-Hub (https://github.com/
|
|
4
|
+
# Project: Synapse-Hub (https://github.com/TeeVee98/Synapse-Hub)
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
Enterprise 5-Stage QA Multi-Agent Finite State Machine (FSM) Enforcer
|
|
@@ -12,7 +12,7 @@ tamper-evident state machine enforced by code:
|
|
|
12
12
|
Stage 2: CODE_SYNTHESIS (Actor: pom-crafter) -> Requires synthesized PageClass/script
|
|
13
13
|
Stage 3: HEADLESS_EXEC (Actor: test-runner) -> Requires test run evidence (JUnit/exitcode)
|
|
14
14
|
Stage 4: AUTOPSY_HEAL (Actor: failure-analyst) -> Requires autopsy triage (or PASSED waiver)
|
|
15
|
-
Stage 5: ACCEPTANCE_DOD (Actor: quality-gatekeeper) -> Requires
|
|
15
|
+
Stage 5: ACCEPTANCE_DOD (Actor: quality-gatekeeper) -> Requires 10 Quality Gates verification
|
|
16
16
|
|
|
17
17
|
Usage:
|
|
18
18
|
python tools/fsm_enforcer.py start --session-id "SESS_001"
|
|
@@ -71,7 +71,7 @@ STAGE_EVIDENCE_SCHEMAS = {
|
|
|
71
71
|
},
|
|
72
72
|
"ACCEPTANCE_DOD": {
|
|
73
73
|
"required_any": ["gates_passed", "gates", "verify_all_passed", "passed_gates", "summary"],
|
|
74
|
-
"description": "Requires
|
|
74
|
+
"description": "Requires 10 Quality Gates DoD verification evidence."
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
package/tools/fsm_middleware.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
|
-
# Project: Synapse-Hub (https://github.com/
|
|
4
|
+
# Project: Synapse-Hub (https://github.com/TeeVee98/Synapse-Hub)
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
Runtime FSM Interceptor & Tool Proxy Middleware
|
package/tools/generate_sbom.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
|
-
# Project: Synapse-Hub (https://github.com/
|
|
4
|
+
# Project: Synapse-Hub (https://github.com/TeeVee98/Synapse-Hub)
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
tools/generate_sbom.py — Enterprise Software Bill of Materials (SBOM) Generator
|
|
@@ -122,14 +122,14 @@ def build_spdx_sbom(repo_root: str = REPO_ROOT) -> Dict[str, Any]:
|
|
|
122
122
|
"SPDXID": root_pkg_id,
|
|
123
123
|
"name": "synapse-hub",
|
|
124
124
|
"versionInfo": version,
|
|
125
|
-
"downloadLocation": "https://github.com/
|
|
125
|
+
"downloadLocation": "https://github.com/TeeVee98/Synapse-Hub",
|
|
126
126
|
"filesAnalyzed": False,
|
|
127
|
-
"homepage": "https://github.com/
|
|
128
|
-
"originator": "Person: Thế Vị (@
|
|
129
|
-
"supplier": "Person: Thế Vị (@
|
|
127
|
+
"homepage": "https://github.com/TeeVee98/Synapse-Hub",
|
|
128
|
+
"originator": "Person: Thế Vị (@TeeVee98)",
|
|
129
|
+
"supplier": "Person: Thế Vị (@TeeVee98)",
|
|
130
130
|
"licenseConcluded": "MIT",
|
|
131
131
|
"licenseDeclared": "MIT",
|
|
132
|
-
"copyrightText": "Copyright (c) 2026 Thế Vị (@
|
|
132
|
+
"copyrightText": "Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.",
|
|
133
133
|
"description": "Enterprise QA & Automation Multi-Agent Hub enforcing Clean POM Flat Architecture.",
|
|
134
134
|
"checksums": [
|
|
135
135
|
{
|
|
@@ -206,12 +206,12 @@ def build_spdx_sbom(repo_root: str = REPO_ROOT) -> Dict[str, Any]:
|
|
|
206
206
|
"dataLicense": "CC0-1.0",
|
|
207
207
|
"SPDXID": "SPDXRef-DOCUMENT",
|
|
208
208
|
"name": f"Synapse-Hub-SBOM-v{version}",
|
|
209
|
-
"documentNamespace": f"https://github.com/
|
|
209
|
+
"documentNamespace": f"https://github.com/TeeVee98/Synapse-Hub/spdx/{version}-{uuid.uuid4().hex[:12]}",
|
|
210
210
|
"creationInfo": {
|
|
211
211
|
"created": created_time,
|
|
212
212
|
"creators": [
|
|
213
213
|
"Tool: synapse-sbom-generator-1.0.0",
|
|
214
|
-
"Person: Thế Vị (@
|
|
214
|
+
"Person: Thế Vị (@TeeVee98)"
|
|
215
215
|
]
|
|
216
216
|
},
|
|
217
217
|
"packages": packages,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
|
-
# Project: Synapse-Hub (https://github.com/
|
|
4
|
+
# Project: Synapse-Hub (https://github.com/TeeVee98/Synapse-Hub)
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
tools/generate_tool_catalog.py — Enterprise Tooling Ecosystem Catalog Generator
|
|
@@ -47,7 +47,7 @@ TOOL_REGISTRY_METADATA = {
|
|
|
47
47
|
"risk_level": "read_only",
|
|
48
48
|
"inputs": ["--mode auto|hub|target", "--test-cmd", "--format text|json|junit"],
|
|
49
49
|
"outputs": ["Console report", "Exit code 0/1", "reports/PROJECT_HEALTH_REPORT.md"],
|
|
50
|
-
"description": "One-command
|
|
50
|
+
"description": "One-command 10 Quality Gates Definition of Done (DoD) verification sentinel."
|
|
51
51
|
},
|
|
52
52
|
"hub_publisher.py": {
|
|
53
53
|
"command": "python tools/hub_publisher.py",
|
package/tools/gherkin_suite.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
|
-
# Project: Synapse-Hub (https://github.com/
|
|
4
|
+
# Project: Synapse-Hub (https://github.com/TeeVee98/Synapse-Hub)
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
Gherkin BDD Suite Compiler - Natural-Language Test Ingestion (0-Token)
|
package/tools/goldfish_review.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Thế Vị (@TeeVee98). All rights reserved.
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
|
-
# Project: Synapse-Hub (https://github.com/
|
|
4
|
+
# Project: Synapse-Hub (https://github.com/TeeVee98/Synapse-Hub)
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
tools/goldfish_review.py — Zero-Context Test Specification Reviewer
|