@elvis1513/auto-coding-skill 2.1.3 → 2.1.4
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
CHANGED
|
@@ -22,6 +22,12 @@ npm install -g git+https://github.com/elvis1513/auto-coding-skill.git
|
|
|
22
22
|
|
|
23
23
|
## Release Notes
|
|
24
24
|
|
|
25
|
+
### v2.1.4
|
|
26
|
+
|
|
27
|
+
- Updated the default reviewer and browser debugger agents to `gpt-5.6-sol`, retaining `xhigh` reasoning for deep review and UI diagnosis.
|
|
28
|
+
- Updated the read-only explorer and documentation researcher agents to `gpt-5.6-terra` with `medium` reasoning, while keeping the targeted fixer on `gpt-5.3-codex-spark`.
|
|
29
|
+
- Added regression coverage for installed model profiles, managed profile refreshes, and byte-for-byte preservation of custom agent files.
|
|
30
|
+
|
|
25
31
|
### v2.1.2
|
|
26
32
|
|
|
27
33
|
- Fixed `docs-ledger-archive` so settled task states such as `Superseded by ...`, `External Dependency`, `Deployed`, `Completed`, `Archived`, `Local PASS`, and `Local Verified` are recognized as archivable instead of blocking physical ledger cleanup.
|
package/cli/tests/index.test.js
CHANGED
|
@@ -7,6 +7,13 @@ import { fileURLToPath } from "node:url";
|
|
|
7
7
|
const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..", "..");
|
|
8
8
|
const cli = path.join(repoRoot, "cli", "src", "index.js");
|
|
9
9
|
const assetAp = path.join(repoRoot, "cli", "assets", "skill", "scripts", "ap.py");
|
|
10
|
+
const managedAgentProfiles = {
|
|
11
|
+
"browser-debugger.toml": { model: "gpt-5.6-sol", effort: "xhigh" },
|
|
12
|
+
"docs-researcher.toml": { model: "gpt-5.6-terra", effort: "medium" },
|
|
13
|
+
"explorer.toml": { model: "gpt-5.6-terra", effort: "medium" },
|
|
14
|
+
"fixer.toml": { model: "gpt-5.3-codex-spark", effort: "medium" },
|
|
15
|
+
"reviewer.toml": { model: "gpt-5.6-sol", effort: "xhigh" },
|
|
16
|
+
};
|
|
10
17
|
|
|
11
18
|
function assert(condition, message) {
|
|
12
19
|
if (!condition) throw new Error(message);
|
|
@@ -43,6 +50,22 @@ function writeFile(file, text) {
|
|
|
43
50
|
fs.writeFileSync(file, text);
|
|
44
51
|
}
|
|
45
52
|
|
|
53
|
+
function readTomlString(text, key, file) {
|
|
54
|
+
const match = text.match(new RegExp(`^${key}\\s*=\\s*"([^"]+)"\\s*$`, "m"));
|
|
55
|
+
assert(match, `${file}: missing ${key}`);
|
|
56
|
+
return match[1];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function assertManagedAgentProfiles(agentsDir) {
|
|
60
|
+
for (const [filename, expected] of Object.entries(managedAgentProfiles)) {
|
|
61
|
+
const file = path.join(agentsDir, filename);
|
|
62
|
+
assert(exists(file), `missing managed agent: ${filename}`);
|
|
63
|
+
const text = fs.readFileSync(file, "utf8");
|
|
64
|
+
assert(readTomlString(text, "model", file) === expected.model, `${filename}: unexpected model`);
|
|
65
|
+
assert(readTomlString(text, "model_reasoning_effort", file) === expected.effort, `${filename}: unexpected reasoning effort`);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
46
69
|
function assertStatusOk(repo) {
|
|
47
70
|
const result = run("node", [cli, "status", "--projects", repo, "--json"]);
|
|
48
71
|
const parsed = JSON.parse(result.stdout);
|
|
@@ -104,13 +127,41 @@ function testSyncCreatesScaffoldAndStatusConverges() {
|
|
|
104
127
|
assertStatusOk(repo);
|
|
105
128
|
}
|
|
106
129
|
|
|
130
|
+
function testSyncRefreshesManagedAgentProfiles() {
|
|
131
|
+
const repo = tmpdir("sync-agent-profiles");
|
|
132
|
+
run("node", [cli, "init"], { cwd: repo });
|
|
133
|
+
const agentsDir = path.join(repo, ".agents", "agents");
|
|
134
|
+
assertManagedAgentProfiles(agentsDir);
|
|
135
|
+
run("node", [cli, "sync", "--projects", repo]);
|
|
136
|
+
|
|
137
|
+
for (const filename of Object.keys(managedAgentProfiles)) {
|
|
138
|
+
const file = path.join(agentsDir, filename);
|
|
139
|
+
const stale = fs.readFileSync(file, "utf8")
|
|
140
|
+
.replace(/^model\s*=.*$/m, 'model = "gpt-5.5"')
|
|
141
|
+
.replace(/^model_reasoning_effort\s*=.*$/m, 'model_reasoning_effort = "low"');
|
|
142
|
+
writeFile(file, stale);
|
|
143
|
+
}
|
|
144
|
+
const custom = path.join(agentsDir, "custom-local.toml");
|
|
145
|
+
const customText = 'name = "custom-local"\ndescription = "custom"\nmodel = "gpt-5.5"\n';
|
|
146
|
+
writeFile(custom, customText);
|
|
147
|
+
|
|
148
|
+
const before = run("node", [cli, "status", "--projects", repo, "--json"], { check: false });
|
|
149
|
+
assert(before.status !== 0, "status should detect stale managed agent profiles");
|
|
150
|
+
run("node", [cli, "sync", "--projects", repo]);
|
|
151
|
+
|
|
152
|
+
assertManagedAgentProfiles(agentsDir);
|
|
153
|
+
assert(fs.readFileSync(custom, "utf8") === customText, "sync should preserve custom agent contents");
|
|
154
|
+
assertStatusOk(repo);
|
|
155
|
+
}
|
|
156
|
+
|
|
107
157
|
function testForcePreservesCustomAgents() {
|
|
108
158
|
const repo = tmpdir("custom-agent");
|
|
109
159
|
run("node", [cli, "init", "--force"], { cwd: repo });
|
|
110
160
|
const custom = path.join(repo, ".agents", "agents", "custom-local.toml");
|
|
111
|
-
|
|
161
|
+
const customText = 'name = "custom-local"\ndescription = "custom"\nmodel = "gpt-5.5"\n';
|
|
162
|
+
writeFile(custom, customText);
|
|
112
163
|
run("node", [cli, "init", "--force"], { cwd: repo });
|
|
113
|
-
assert(
|
|
164
|
+
assert(fs.readFileSync(custom, "utf8") === customText, "init --force should preserve custom agent contents");
|
|
114
165
|
}
|
|
115
166
|
|
|
116
167
|
function testBridgeIsGeneric() {
|
|
@@ -182,6 +233,7 @@ function testLedgerArchiveRecognizesSettledStatuses() {
|
|
|
182
233
|
testPreflightAvoidsPartialInstall();
|
|
183
234
|
testDestVariants();
|
|
184
235
|
testSyncCreatesScaffoldAndStatusConverges();
|
|
236
|
+
testSyncRefreshesManagedAgentProfiles();
|
|
185
237
|
testForcePreservesCustomAgents();
|
|
186
238
|
testBridgeIsGeneric();
|
|
187
239
|
testUpgradeCleansManagedBridgeExtrasOnly();
|
package/package.json
CHANGED