@elvis1513/auto-coding-skill 2.0.5 → 2.0.6
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.md +6 -0
- package/cli/assets/skill/scripts/ap.py +8 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,12 @@ npm install -g git+https://github.com/elvis1513/auto-coding-skill.git
|
|
|
23
23
|
|
|
24
24
|
## Release Notes
|
|
25
25
|
|
|
26
|
+
### v2.0.6
|
|
27
|
+
|
|
28
|
+
- Fixed `structure-check --json` so successful output stays machine-readable JSON without a trailing OK line.
|
|
29
|
+
- Moved CLI error messages to stderr, preserving JSON stdout for failing machine-readable commands.
|
|
30
|
+
- Made `structure.enabled: false` disable structure gate integration even when `commands.structure_check` is still present.
|
|
31
|
+
|
|
26
32
|
### v2.0.5
|
|
27
33
|
|
|
28
34
|
- Added generic engineering-structure governance: `docs/architecture/structure-standard.md`, ADR template, project health baseline, and optimization backlog templates.
|
|
@@ -11,6 +11,7 @@ import fnmatch
|
|
|
11
11
|
import json
|
|
12
12
|
import os
|
|
13
13
|
import re
|
|
14
|
+
import sys
|
|
14
15
|
import time
|
|
15
16
|
import urllib.parse
|
|
16
17
|
import urllib.error
|
|
@@ -1173,12 +1174,12 @@ def _configured_structure_docs(cfg: dict) -> dict[str, str]:
|
|
|
1173
1174
|
|
|
1174
1175
|
|
|
1175
1176
|
def _structure_gate_enabled(cfg: dict) -> bool:
|
|
1176
|
-
if _configured_command(cfg, "structure_check"):
|
|
1177
|
-
return True
|
|
1178
1177
|
structure_cfg = cfg.get("structure")
|
|
1179
|
-
if
|
|
1178
|
+
if isinstance(structure_cfg, dict) and not _bool_config(structure_cfg.get("enabled"), default=True):
|
|
1180
1179
|
return False
|
|
1181
|
-
|
|
1180
|
+
if _configured_command(cfg, "structure_check"):
|
|
1181
|
+
return True
|
|
1182
|
+
return isinstance(structure_cfg, dict)
|
|
1182
1183
|
|
|
1183
1184
|
|
|
1184
1185
|
def _print_limited(label: str, items: list[str], max_items: int = 60) -> None:
|
|
@@ -1273,7 +1274,8 @@ def cmd_structure_check(args: argparse.Namespace) -> None:
|
|
|
1273
1274
|
if blocking:
|
|
1274
1275
|
raise APError(f"structure-check failed with {len(blocking)} blocking issue(s)")
|
|
1275
1276
|
|
|
1276
|
-
|
|
1277
|
+
if not getattr(args, "json", False):
|
|
1278
|
+
print(f"[structure-check] OK scope={selected_scope} inspected={inspected} warnings={len(warnings)}")
|
|
1277
1279
|
|
|
1278
1280
|
|
|
1279
1281
|
def _run_structure_check_for_gate(repo: Path, cfg: dict, selected_scope: str, base_ref: str) -> list[str]:
|
|
@@ -2031,7 +2033,7 @@ def main(argv: Optional[List[str]] = None) -> int:
|
|
|
2031
2033
|
args.func(args)
|
|
2032
2034
|
return 0
|
|
2033
2035
|
except APError as e:
|
|
2034
|
-
print(f"[ERROR] {e}")
|
|
2036
|
+
print(f"[ERROR] {e}", file=sys.stderr)
|
|
2035
2037
|
return 2
|
|
2036
2038
|
|
|
2037
2039
|
|
package/package.json
CHANGED