@elvis1513/auto-coding-skill 1.0.2 → 1.0.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.
|
@@ -317,12 +317,12 @@ def _resolve_jenkins_job_candidates(
|
|
|
317
317
|
) -> List[str]:
|
|
318
318
|
jenkins_cfg = (cfg.get("jenkins") or {})
|
|
319
319
|
effective_branch = str(branch_name or "").strip()
|
|
320
|
-
|
|
320
|
+
effective_root = str(multibranch_root_job or "").strip()
|
|
321
|
+
if not effective_branch and effective_root:
|
|
321
322
|
inferred_branch = _resolve_git_branch_name(repo, git_ref or "HEAD")
|
|
322
323
|
if inferred_branch:
|
|
323
324
|
effective_branch = inferred_branch
|
|
324
325
|
|
|
325
|
-
effective_root = str(multibranch_root_job or "").strip()
|
|
326
326
|
explicit_url = str(job_url or "").strip()
|
|
327
327
|
explicit_name = str(job_name or "").strip()
|
|
328
328
|
configured_url = str(jenkins_cfg.get("job_url") or "").strip()
|
|
@@ -423,6 +423,8 @@ def cmd_gen_summary(args: argparse.Namespace) -> None:
|
|
|
423
423
|
staged = run(["git", "diff", "--cached", "--name-only"], cwd=repo, check=False).stdout.strip()
|
|
424
424
|
unstaged = run(["git", "diff", "--name-only"], cwd=repo, check=False).stdout.strip()
|
|
425
425
|
status = run(["git", "status", "--porcelain=v1"], cwd=repo, check=False).stdout.strip()
|
|
426
|
+
staged_block = "- " + staged.replace("\n", "\n- ") if staged else "- (none)"
|
|
427
|
+
unstaged_block = "- " + unstaged.replace("\n", "\n- ") if unstaged else "- (none)"
|
|
426
428
|
|
|
427
429
|
content = f"""# Task Summary — {task_id} — {title}
|
|
428
430
|
|
|
@@ -442,9 +444,9 @@ def cmd_gen_summary(args: argparse.Namespace) -> None:
|
|
|
442
444
|
## 2. 变更概览
|
|
443
445
|
### Git change snapshot
|
|
444
446
|
- Staged files:
|
|
445
|
-
{
|
|
447
|
+
{staged_block}
|
|
446
448
|
- Unstaged files:
|
|
447
|
-
{
|
|
449
|
+
{unstaged_block}
|
|
448
450
|
- Status:
|
|
449
451
|
```text
|
|
450
452
|
{status}
|
|
@@ -868,7 +870,9 @@ def cmd_verify_jenkins_build(args: argparse.Namespace) -> None:
|
|
|
868
870
|
max_builds = int(args.max_builds or 20)
|
|
869
871
|
timeout_s = int(args.timeout_sec or 300)
|
|
870
872
|
poll_s = int(args.poll_sec or 5)
|
|
871
|
-
inferred_branch =
|
|
873
|
+
inferred_branch = ""
|
|
874
|
+
if args.multibranch_root_job and not args.branch_name:
|
|
875
|
+
inferred_branch = _resolve_git_branch_name(repo, git_ref)
|
|
872
876
|
branch_hint = str(args.branch_name or inferred_branch or "").strip()
|
|
873
877
|
root_hint = str(
|
|
874
878
|
args.multibranch_root_job
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elvis1513/auto-coding-skill",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "CLI installer for auto-coding-skill (Claude Code + Codex CLI) with Go fullstack + Jenkins workflow support.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"LICENSE"
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
16
|
-
"test": "node -c cli/src/index.js && python3 -m py_compile src/auto-coding-skill/scripts/ap.py src/auto-coding-skill/scripts/core.py src/auto-coding-skill/scripts/http_checks.py cli/assets/skill/scripts/ap.py cli/assets/skill/scripts/core.py cli/assets/skill/scripts/http_checks.py && find src cli -type d -name '__pycache__' -prune -exec rm -rf {} +",
|
|
16
|
+
"test": "node -c cli/src/index.js && python3 -c \"import ast, pathlib; files = ['src/auto-coding-skill/scripts/ap.py', 'src/auto-coding-skill/scripts/core.py', 'src/auto-coding-skill/scripts/http_checks.py', 'cli/assets/skill/scripts/ap.py', 'cli/assets/skill/scripts/core.py', 'cli/assets/skill/scripts/http_checks.py']; [ast.parse(pathlib.Path(rel).read_text(encoding='utf-8'), filename=rel, feature_version=(3, 11)) for rel in files]; print('python311-grammar-ok')\" && python3 -m py_compile src/auto-coding-skill/scripts/ap.py src/auto-coding-skill/scripts/core.py src/auto-coding-skill/scripts/http_checks.py cli/assets/skill/scripts/ap.py cli/assets/skill/scripts/core.py cli/assets/skill/scripts/http_checks.py && find src cli -type d -name '__pycache__' -prune -exec rm -rf {} +",
|
|
17
17
|
"sync-assets": "node cli/src/sync-assets.js",
|
|
18
18
|
"release:check": "npm run sync-assets && npm run test && npm pack --dry-run"
|
|
19
19
|
},
|