xtrm-tools 2.1.6 → 2.1.7

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 (59) hide show
  1. package/cli/dist/index.cjs +31 -8
  2. package/cli/dist/index.cjs.map +1 -1
  3. package/cli/package.json +4 -1
  4. package/config/hooks.json +5 -0
  5. package/hooks/README.md +19 -0
  6. package/hooks/beads-stop-gate.mjs +1 -0
  7. package/hooks/main-guard-post-push.mjs +71 -0
  8. package/package.json +11 -4
  9. package/project-skills/{py-quality-gate → quality-gates}/.claude/settings.json +10 -0
  10. package/project-skills/quality-gates/.claude/skills/using-quality-gates/SKILL.md +254 -0
  11. package/project-skills/quality-gates/README.md +109 -0
  12. package/project-skills/quality-gates/evals/evals.json +181 -0
  13. package/project-skills/quality-gates/workspace/iteration-1/FINAL-EVAL-SUMMARY.md +75 -0
  14. package/project-skills/quality-gates/workspace/iteration-1/edge-case-auto-fix-verification/with_skill/outputs/response.md +59 -0
  15. package/project-skills/quality-gates/workspace/iteration-1/edge-case-mixed-language-project/with_skill/outputs/response.md +60 -0
  16. package/project-skills/quality-gates/workspace/iteration-1/eval-summary.md +105 -0
  17. package/project-skills/quality-gates/workspace/iteration-1/partial-install-python-only/with_skill/outputs/response.md +93 -0
  18. package/project-skills/quality-gates/workspace/iteration-1/python-refactor-request/with_skill/outputs/response.md +104 -0
  19. package/project-skills/quality-gates/workspace/iteration-1/quality-gate-error-fix/with_skill/outputs/response.md +74 -0
  20. package/project-skills/quality-gates/workspace/iteration-1/should-not-trigger-general-chat/with_skill/outputs/response.md +18 -0
  21. package/project-skills/quality-gates/workspace/iteration-1/should-not-trigger-math-question/with_skill/outputs/response.md +18 -0
  22. package/project-skills/quality-gates/workspace/iteration-1/should-not-trigger-unrelated-coding/with_skill/outputs/response.md +56 -0
  23. package/project-skills/quality-gates/workspace/iteration-1/tdd-guard-blocking-confusion/with_skill/outputs/response.md +67 -0
  24. package/project-skills/quality-gates/workspace/iteration-1/typescript-feature-with-tests/with_skill/outputs/response.md +97 -0
  25. package/project-skills/tdd-guard/.claude/hooks/tdd-guard-pretool-bridge.cjs +0 -1
  26. package/hooks/__pycache__/agent_context.cpython-314.pyc +0 -0
  27. package/project-skills/py-quality-gate/.claude/skills/using-py-quality-gate/SKILL.md +0 -112
  28. package/project-skills/py-quality-gate/README.md +0 -147
  29. package/project-skills/service-skills-set/.claude/git-hooks/__pycache__/doc_reminder.cpython-314.pyc +0 -0
  30. package/project-skills/service-skills-set/.claude/git-hooks/__pycache__/skill_staleness.cpython-314.pyc +0 -0
  31. package/project-skills/service-skills-set/.claude/skills/creating-service-skills/scripts/__pycache__/bootstrap.cpython-314.pyc +0 -0
  32. package/project-skills/service-skills-set/.claude/skills/updating-service-skills/scripts/__pycache__/drift_detector.cpython-314.pyc +0 -0
  33. package/project-skills/service-skills-set/.claude/skills/using-service-skills/scripts/__pycache__/cataloger.cpython-314.pyc +0 -0
  34. package/project-skills/service-skills-set/.claude/skills/using-service-skills/scripts/__pycache__/skill_activator.cpython-314.pyc +0 -0
  35. package/project-skills/service-skills-set/.claude/skills/using-service-skills/scripts/__pycache__/test_skill_activator.cpython-314-pytest-9.0.2.pyc +0 -0
  36. package/project-skills/service-skills-set/.claude/skills/using-service-skills/scripts/test_skill_activator.py +0 -58
  37. package/project-skills/service-skills-set/__pycache__/install-service-skills.cpython-314.pyc +0 -0
  38. package/project-skills/ts-quality-gate/.claude/settings.json +0 -16
  39. package/project-skills/ts-quality-gate/.claude/skills/using-ts-quality-gate/SKILL.md +0 -81
  40. package/project-skills/ts-quality-gate/README.md +0 -115
  41. package/skills/documenting/scripts/__pycache__/drift_detector.cpython-314.pyc +0 -0
  42. package/skills/documenting/scripts/__pycache__/orchestrator.cpython-314.pyc +0 -0
  43. package/skills/documenting/scripts/__pycache__/validate_metadata.cpython-314.pyc +0 -0
  44. package/skills/documenting/scripts/changelog/__pycache__/__init__.cpython-314.pyc +0 -0
  45. package/skills/documenting/scripts/changelog/__pycache__/add_entry.cpython-314.pyc +0 -0
  46. package/skills/documenting/scripts/changelog/__pycache__/bump_release.cpython-314.pyc +0 -0
  47. package/skills/documenting/scripts/changelog/__pycache__/validate_changelog.cpython-314.pyc +0 -0
  48. package/skills/documenting/tests/__pycache__/test_changelog.cpython-314-pytest-9.0.2.pyc +0 -0
  49. package/skills/documenting/tests/__pycache__/test_drift_detector.cpython-314-pytest-9.0.2.pyc +0 -0
  50. package/skills/documenting/tests/__pycache__/test_orchestrator.cpython-314-pytest-9.0.2.pyc +0 -0
  51. package/skills/documenting/tests/__pycache__/test_validate_metadata.cpython-314-pytest-9.0.2.pyc +0 -0
  52. package/skills/documenting/tests/integration_test.sh +0 -70
  53. package/skills/documenting/tests/test_changelog.py +0 -201
  54. package/skills/documenting/tests/test_drift_detector.py +0 -80
  55. package/skills/documenting/tests/test_orchestrator.py +0 -52
  56. package/skills/documenting/tests/test_validate_metadata.py +0 -64
  57. /package/project-skills/{ts-quality-gate → quality-gates}/.claude/hooks/hook-config.json +0 -0
  58. /package/project-skills/{ts-quality-gate → quality-gates}/.claude/hooks/quality-check.cjs +0 -0
  59. /package/project-skills/{py-quality-gate → quality-gates}/.claude/hooks/quality-check.py +0 -0
@@ -1,64 +0,0 @@
1
- import pytest
2
- from pathlib import Path
3
- import sys
4
- sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))
5
- from validate_metadata import extract_headings, generate_index_table, inject_index
6
-
7
-
8
- SAMPLE = """---
9
- title: Test
10
- version: 1.0.0
11
- updated: 2026-02-24
12
- scope: test
13
- category: ssot
14
- subcategory: test
15
- domain: [test]
16
- ---
17
-
18
- <!-- INDEX: auto-generated by validate_metadata.py — do not edit manually -->
19
- | Section | Summary |
20
- |---|---|
21
- | old | old |
22
- <!-- END INDEX -->
23
-
24
- ## Architecture
25
- Handles the core routing logic for all requests.
26
-
27
- ## Hook Wiring
28
- Three hooks fire on session events.
29
-
30
- ## Installer
31
- Single-purpose script, idempotent.
32
- """
33
-
34
-
35
- def test_extract_headings():
36
- headings = extract_headings(SAMPLE)
37
- assert headings == [
38
- ("Architecture", "Handles the core routing logic for all requests"),
39
- ("Hook Wiring", "Three hooks fire on session events"),
40
- ("Installer", "Single-purpose script, idempotent"),
41
- ]
42
-
43
-
44
- def test_generate_index_table():
45
- headings = [("Architecture", "Core routing."), ("Installer", "Idempotent.")]
46
- table = generate_index_table(headings)
47
- assert "| [Architecture](#architecture) |" in table
48
- assert "Core routing." in table
49
- assert "| [Installer](#installer) |" in table
50
-
51
-
52
- def test_inject_index_replaces_existing():
53
- new_table = "| Section | Summary |\n|---|---|\n| [Architecture](#architecture) | Core. |\n"
54
- result = inject_index(SAMPLE, new_table)
55
- assert "| old | old |" not in result
56
- assert "| [Architecture](#architecture) | Core. |" in result
57
-
58
-
59
- def test_inject_index_adds_when_missing():
60
- content = "---\ntitle: T\n---\n\n## Foo\nBar baz.\n"
61
- new_table = "| Section | Summary |\n|---|---|\n| [Foo](#foo) | Bar baz. |\n"
62
- result = inject_index(content, new_table)
63
- assert "<!-- INDEX:" in result
64
- assert "| [Foo](#foo) | Bar baz. |" in result