@elvis1513/auto-coding-skill 4.1.6 → 4.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.
- package/README.md +4 -2
- package/cli/assets/skill/data/policies/workflow-migrations-v1.json +2 -2
- package/cli/assets/skill/data/templates/ENGINEERING.md +2 -2
- package/cli/assets/skill/data/templates/bridges/AGENTS.md +1 -1
- package/cli/assets/skill/scripts/ap.py +6 -6
- package/cli/tests/index.test.js +12 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ The Skill is a selectable guardrail, not a command sequence that must run for
|
|
|
9
9
|
every task. The model skips machinery whose expected benefit does not exceed its
|
|
10
10
|
cost; read-only work and obvious small clean-checkout changes normally stay direct.
|
|
11
11
|
|
|
12
|
-
Version 4.1.
|
|
12
|
+
Version 4.1.7 makes the Python runtime check, release verification, and tag
|
|
13
13
|
publication environment reproducible while removing the unnecessary `requests`
|
|
14
14
|
dependency. Version 4.1.4
|
|
15
15
|
made direct continuation provably pre-write, closed self-review and
|
|
@@ -213,7 +213,7 @@ project-specific facts outside the managed ENGINEERING block. Root `AGENTS.md` i
|
|
|
213
213
|
replaced as a whole; its previous content is archived under
|
|
214
214
|
`docs/archive/workflow/` as historical, non-authoritative context.
|
|
215
215
|
|
|
216
|
-
## What changed in 4.1.
|
|
216
|
+
## What changed in 4.1.7
|
|
217
217
|
|
|
218
218
|
- Made tag publication reproducible with explicit Node 24, Python 3.12, and pinned
|
|
219
219
|
PyYAML setup before package verification.
|
|
@@ -222,6 +222,8 @@ replaced as a whole; its previous content is archived under
|
|
|
222
222
|
- Removed the `requests` runtime dependency by using Python's standard HTTP library.
|
|
223
223
|
- Made concurrency tests self-contained instead of borrowing local thread and Git
|
|
224
224
|
identity configuration.
|
|
225
|
+
- Supported both GitHub-secret publication and local-token publication followed by
|
|
226
|
+
idempotent tag verification.
|
|
225
227
|
|
|
226
228
|
## What changed in 4.1.4
|
|
227
229
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
workflow:
|
|
3
|
-
skill_version: "4.1.
|
|
3
|
+
skill_version: "4.1.7"
|
|
4
4
|
mode: "dev"
|
|
5
5
|
profile: "auto"
|
|
6
6
|
completion: "push"
|
|
@@ -94,7 +94,7 @@ docs:
|
|
|
94
94
|
|
|
95
95
|
# Engineering Configuration and Project Facts
|
|
96
96
|
|
|
97
|
-
<!-- auto-coding-skill:managed-workflow:start version=4.1.
|
|
97
|
+
<!-- auto-coding-skill:managed-workflow:start version=4.1.7 -->
|
|
98
98
|
|
|
99
99
|
Root `AGENTS.md` is the single shared behavioral protocol. The installed
|
|
100
100
|
`SKILL.md` contains invocation guidance. This file is the single source for the
|
|
@@ -46,7 +46,7 @@ _RECOMMENDED_FINAL_TOTAL_SECONDS = 180.0
|
|
|
46
46
|
_WORKFLOW_MIGRATION_POLICY = Path("data/policies/workflow-migrations-v1.json")
|
|
47
47
|
_FALLBACK_WORKFLOW_MIGRATION_POLICY = {
|
|
48
48
|
"schema_version": 1,
|
|
49
|
-
"managed_versions": {"agents": "4.1.
|
|
49
|
+
"managed_versions": {"agents": "4.1.7", "engineering": "4.1.7"},
|
|
50
50
|
"known_official_engineering_body_sha256": [
|
|
51
51
|
"d1306cc626e8baf8c83c953b760fd771066de2bf125168eca3a7b7d6ff2b87a2",
|
|
52
52
|
"305931c6edef770033a4f1970b00e5fb1c1728351856a173dbfa497daf563021",
|
|
@@ -633,8 +633,8 @@ def _migrate_fast_development_defaults(cfg: dict, repo: Path) -> list[str]:
|
|
|
633
633
|
if _text(workflow_cfg.get("completion")).lower() != "push":
|
|
634
634
|
workflow_cfg["completion"] = "push"
|
|
635
635
|
changed.append("workflow.completion")
|
|
636
|
-
if _text(workflow_cfg.get("skill_version")) != "4.1.
|
|
637
|
-
workflow_cfg["skill_version"] = "4.1.
|
|
636
|
+
if _text(workflow_cfg.get("skill_version")) != "4.1.7":
|
|
637
|
+
workflow_cfg["skill_version"] = "4.1.7"
|
|
638
638
|
changed.append("workflow.skill_version")
|
|
639
639
|
|
|
640
640
|
commands_cfg = cfg.setdefault("commands", {})
|
|
@@ -947,16 +947,16 @@ def cmd_upgrade(args: argparse.Namespace) -> None:
|
|
|
947
947
|
if current_agents:
|
|
948
948
|
archive_dir = repo / "docs" / "archive" / "workflow"
|
|
949
949
|
archive_header = (
|
|
950
|
-
"# Archived AGENTS.md before auto-coding-skill 4.1.
|
|
950
|
+
"# Archived AGENTS.md before auto-coding-skill 4.1.7\n\n"
|
|
951
951
|
"This file is historical and non-authoritative. The root AGENTS.md is fully managed.\n"
|
|
952
952
|
"Move any still-current project facts into docs/ENGINEERING.md or docs/project/,\n"
|
|
953
953
|
"without copying workflow rules back into the root AGENTS.md.\n\n---\n\n"
|
|
954
954
|
)
|
|
955
955
|
archive_content = archive_header + current_agents
|
|
956
|
-
archive = archive_dir / "AGENTS.pre-4.1.
|
|
956
|
+
archive = archive_dir / "AGENTS.pre-4.1.7.md"
|
|
957
957
|
if archive.exists() and archive.read_text(encoding="utf-8") != archive_content:
|
|
958
958
|
digest = hashlib.sha256(current_agents.encode("utf-8")).hexdigest()[:12]
|
|
959
|
-
archive = archive_dir / f"AGENTS.pre-4.1.
|
|
959
|
+
archive = archive_dir / f"AGENTS.pre-4.1.7-{digest}.md"
|
|
960
960
|
if not archive.exists():
|
|
961
961
|
add_action("policy", archive, "archive", "historical and non-authoritative")
|
|
962
962
|
if write:
|
package/cli/tests/index.test.js
CHANGED
|
@@ -752,7 +752,7 @@ function testManagedEngineeringSyncIsControlledAndIdempotent() {
|
|
|
752
752
|
|
|
753
753
|
const engineering = path.join(repo, "docs", "ENGINEERING.md");
|
|
754
754
|
const initial = fs.readFileSync(engineering, "utf8");
|
|
755
|
-
const startPattern = /<!-- auto-coding-skill:managed-workflow:start version=4\.1\.
|
|
755
|
+
const startPattern = /<!-- auto-coding-skill:managed-workflow:start version=4\.1\.7 -->/;
|
|
756
756
|
const endMarker = "<!-- auto-coding-skill:managed-workflow:end -->";
|
|
757
757
|
assert(startPattern.test(initial), "new projects should include a versioned managed workflow marker");
|
|
758
758
|
assert(initial.includes(endMarker), "new projects should include the managed workflow end marker");
|
|
@@ -771,7 +771,7 @@ function testManagedEngineeringSyncIsControlledAndIdempotent() {
|
|
|
771
771
|
const dryRun = run("node", [cli, "sync", "--projects", repo, "--dry-run", "--json"]);
|
|
772
772
|
const dryResult = JSON.parse(dryRun.stdout).results[0];
|
|
773
773
|
assert(dryResult.managedWorkflow.state === "stale", `dry-run should expose stale workflow state: ${dryRun.stdout}`);
|
|
774
|
-
assert(dryResult.managedWorkflow.version === "4.1.
|
|
774
|
+
assert(dryResult.managedWorkflow.version === "4.1.7", "dry-run should expose the target workflow version");
|
|
775
775
|
assert(dryResult.actions.some(item => item.action === "would-update" && item.path === "docs/ENGINEERING.md"), "dry-run should plan the managed body update");
|
|
776
776
|
assert(fs.readFileSync(engineering, "utf8") === customized, "dry-run must not write ENGINEERING.md");
|
|
777
777
|
|
|
@@ -781,14 +781,14 @@ function testManagedEngineeringSyncIsControlledAndIdempotent() {
|
|
|
781
781
|
const updatedEnd = updated.indexOf(endMarker) + endMarker.length;
|
|
782
782
|
assert(updated.slice(0, updatedStart) === outsideBefore, "sync must preserve frontmatter and content before the managed block byte-for-byte");
|
|
783
783
|
assert(updated.slice(updatedEnd) === outsideAfter, "sync must preserve content after the managed block byte-for-byte");
|
|
784
|
-
assert(updated.includes("version=4.1.
|
|
784
|
+
assert(updated.includes("version=4.1.7"), "sync should install the current managed workflow version");
|
|
785
785
|
assert(updated.includes("The frontmatter contract is:"), "sync should refresh stale managed workflow content");
|
|
786
786
|
|
|
787
787
|
fillRequiredAccess(repo);
|
|
788
788
|
const status = run("node", [cli, "status", "--projects", repo, "--json"]);
|
|
789
789
|
const statusResult = JSON.parse(status.stdout).results[0];
|
|
790
790
|
assert(statusResult.managedWorkflow.state === "current", `status should expose current managed workflow state: ${status.stdout}`);
|
|
791
|
-
assert(statusResult.managedWorkflow.version === "4.1.
|
|
791
|
+
assert(statusResult.managedWorkflow.version === "4.1.7", "status should expose the installed managed workflow version");
|
|
792
792
|
|
|
793
793
|
const beforeSecondSync = fs.readFileSync(engineering, "utf8");
|
|
794
794
|
const second = run("node", [cli, "sync", "--projects", repo, "--json"]);
|
|
@@ -816,7 +816,7 @@ function testLegacyEngineeringMigrationPreservesExistingBody() {
|
|
|
816
816
|
assert(dryResult.actions.find(item => item.path === "docs/ENGINEERING.md")?.detail.includes("preserved-custom"), "custom legacy action should be labeled preserved-custom");
|
|
817
817
|
run("node", [cli, "sync", "--projects", repo]);
|
|
818
818
|
const migrated = fs.readFileSync(engineering, "utf8");
|
|
819
|
-
assert(migrated.includes("version=4.1.
|
|
819
|
+
assert(migrated.includes("version=4.1.7"), "legacy migration should insert the current managed workflow");
|
|
820
820
|
assert(migrated.includes(legacyNote), "legacy migration must preserve the complete existing body");
|
|
821
821
|
const migratedStart = migrated.indexOf("<!-- auto-coding-skill:managed-workflow:start");
|
|
822
822
|
const migratedEnd = migrated.indexOf(endMarker) + endMarker.length;
|
|
@@ -920,7 +920,7 @@ function testManagedAgentsMigrationReplacesWholeFileAndArchivesPreviousRules() {
|
|
|
920
920
|
run("node", [cli, "sync", "--projects", repo]);
|
|
921
921
|
const agents = path.join(repo, "AGENTS.md");
|
|
922
922
|
const initial = fs.readFileSync(agents, "utf8");
|
|
923
|
-
assert(initial.includes("managed-agents:start version=4.1.
|
|
923
|
+
assert(initial.includes("managed-agents:start version=4.1.7"), "new projects should receive the versioned root AGENTS block");
|
|
924
924
|
|
|
925
925
|
const custom = [
|
|
926
926
|
"# Project rules",
|
|
@@ -939,12 +939,12 @@ function testManagedAgentsMigrationReplacesWholeFileAndArchivesPreviousRules() {
|
|
|
939
939
|
|
|
940
940
|
run("node", [cli, "sync", "--projects", repo]);
|
|
941
941
|
const migrated = fs.readFileSync(agents, "utf8");
|
|
942
|
-
assert(migrated.includes("managed-agents:start version=4.1.
|
|
942
|
+
assert(migrated.includes("managed-agents:start version=4.1.7"), "AGENTS migration should install the current managed block");
|
|
943
943
|
assert(!migrated.includes("Preserve this repository-specific rule exactly."), "root AGENTS must contain no project-specific tail");
|
|
944
944
|
assert(!migrated.includes("must execute `commands.gate_full`"), "known official conflicting rule should be removed");
|
|
945
945
|
const canonical = fs.readFileSync(path.join(repoRoot, "cli", "assets", "skill", "data", "templates", "bridges", "AGENTS.md"), "utf8");
|
|
946
946
|
assert(migrated === canonical, "root AGENTS must be byte-identical to the packaged canonical file");
|
|
947
|
-
const archive = path.join(repo, "docs", "archive", "workflow", "AGENTS.pre-4.1.
|
|
947
|
+
const archive = path.join(repo, "docs", "archive", "workflow", "AGENTS.pre-4.1.7.md");
|
|
948
948
|
assert(fs.readFileSync(archive, "utf8").includes("Preserve this repository-specific rule exactly."), "previous AGENTS content must be archived once");
|
|
949
949
|
const stable = fs.readFileSync(agents);
|
|
950
950
|
run("node", [cli, "sync", "--projects", repo]);
|
|
@@ -1003,7 +1003,7 @@ function testEngineeringFrameworkAllowsProjectFactsButRejectsDuplicateWorkflow()
|
|
|
1003
1003
|
const migrationResult = JSON.parse(migration.stdout).results[0];
|
|
1004
1004
|
assert(migrationResult.managedWorkflow.state === "stale", "known duplicate sections should use controlled migration");
|
|
1005
1005
|
assert(migrationResult.managedWorkflow.migrations.includes("engineering-section-delivery-flow"), "known section migration should be explicit");
|
|
1006
|
-
assert(migrationResult.actions.some(item => item.action === "would-archive" && item.path.includes("ENGINEERING.pre-4.1.
|
|
1006
|
+
assert(migrationResult.actions.some(item => item.action === "would-archive" && item.path.includes("ENGINEERING.pre-4.1.7")), "controlled section cleanup should archive the previous ENGINEERING file");
|
|
1007
1007
|
run("node", [cli, "sync", "--projects", repo]);
|
|
1008
1008
|
assert(!fs.readFileSync(engineering, "utf8").includes("Known obsolete workflow"), "known duplicate workflow section should be removed");
|
|
1009
1009
|
|
|
@@ -1015,20 +1015,21 @@ function testEngineeringFrameworkAllowsProjectFactsButRejectsDuplicateWorkflow()
|
|
|
1015
1015
|
}
|
|
1016
1016
|
|
|
1017
1017
|
function testReleaseVersionMarkersStayInSync() {
|
|
1018
|
-
const expected = "4.1.
|
|
1018
|
+
const expected = "4.1.7";
|
|
1019
1019
|
const pkg = JSON.parse(fs.readFileSync(path.join(repoRoot, "package.json"), "utf8"));
|
|
1020
1020
|
const lock = JSON.parse(fs.readFileSync(path.join(repoRoot, "package-lock.json"), "utf8"));
|
|
1021
1021
|
const policy = JSON.parse(fs.readFileSync(
|
|
1022
1022
|
path.join(repoRoot, "src", "auto-coding-skill", "data", "policies", "workflow-migrations-v1.json"),
|
|
1023
1023
|
"utf8",
|
|
1024
1024
|
));
|
|
1025
|
-
assert(pkg.version === expected, "package version must match the 4.1.
|
|
1025
|
+
assert(pkg.version === expected, "package version must match the 4.1.7 release");
|
|
1026
1026
|
assert(lock.version === expected && lock.packages[""].version === expected, "package-lock versions must match");
|
|
1027
1027
|
assert(policy.managed_versions.engineering === expected && policy.managed_versions.agents === expected, "managed workflow versions must match");
|
|
1028
1028
|
const publishWorkflow = fs.readFileSync(path.join(repoRoot, ".github", "workflows", "npm-publish.yml"), "utf8");
|
|
1029
1029
|
const runtimeRequirements = fs.readFileSync(path.join(repoRoot, "src", "auto-coding-skill", "requirements.txt"), "utf8");
|
|
1030
1030
|
assert(publishWorkflow.includes("tags:\n - \"v*\""), "npm publish must run from version tag pushes");
|
|
1031
1031
|
assert(publishWorkflow.includes("actions/setup-python@v6") && publishWorkflow.includes("src/auto-coding-skill/requirements.txt"), "npm publish must install the pinned Python runtime before verification");
|
|
1032
|
+
assert(publishWorkflow.includes("NPM_TOKEN_AVAILABLE") && publishWorkflow.includes("Require external publication"), "npm publish must support local-token publication when no GitHub secret exists");
|
|
1032
1033
|
assert(runtimeRequirements.trim() === "PyYAML==6.0.3", "the runtime must have one pinned third-party dependency");
|
|
1033
1034
|
assert(!runtimeRequirements.toLowerCase().includes("requests"), "HTTP checks must stay on the Python standard library");
|
|
1034
1035
|
assert(publishWorkflow.includes("Verify release identity"), "npm publish must bind the tag to package version");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elvis1513/auto-coding-skill",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.7",
|
|
4
4
|
"description": "CLI installer for a delivery-first .agents workflow with adaptive Git isolation, routed changed-scope validation, risk-based review, push completion, and safe cleanup.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|