refactor(agent)!: focus tools on SCADA
This commit is contained in:
@@ -42,7 +42,7 @@ describe("SkillStore", () => {
|
||||
process.chdir(alternateCwd);
|
||||
|
||||
const result = await store.writeScript(
|
||||
"workflow/hydraulic-bottleneck-analysis",
|
||||
"workflow/scada-level-review",
|
||||
"scripts/analyze.py",
|
||||
"print('ok')\n",
|
||||
);
|
||||
@@ -53,7 +53,7 @@ describe("SkillStore", () => {
|
||||
target: join(
|
||||
skillsRoot,
|
||||
"workflow",
|
||||
"hydraulic-bottleneck-analysis",
|
||||
"scada-level-review",
|
||||
"scripts",
|
||||
"analyze.py",
|
||||
),
|
||||
@@ -63,7 +63,7 @@ describe("SkillStore", () => {
|
||||
|
||||
it("rejects script paths outside scripts/*.py", async () => {
|
||||
const result = await store.writeScript(
|
||||
"workflow/hydraulic-bottleneck-analysis",
|
||||
"workflow/scada-level-review",
|
||||
"analyze.ts",
|
||||
"console.log('ok')\n",
|
||||
);
|
||||
@@ -76,21 +76,21 @@ describe("SkillStore", () => {
|
||||
});
|
||||
|
||||
it("writes and overwrites the main skill file", async () => {
|
||||
const skillPath = "workflow/pressure-review";
|
||||
const skillPath = "workflow/scada-level-review";
|
||||
const writeResult = await store.writeSkill(
|
||||
skillPath,
|
||||
skillDocument("pressure-review", "# Pressure Review"),
|
||||
skillDocument("scada-level-review", "# SCADA Level Review"),
|
||||
);
|
||||
|
||||
expect(writeResult).toEqual({
|
||||
changed: true,
|
||||
detail: "skill written",
|
||||
target: join(skillsRoot, "workflow", "pressure-review", "SKILL.md"),
|
||||
target: join(skillsRoot, "workflow", "scada-level-review", "SKILL.md"),
|
||||
});
|
||||
|
||||
const overwriteResult = await store.writeSkill(
|
||||
skillPath,
|
||||
skillDocument("pressure-review", "# Updated Pressure Review"),
|
||||
skillDocument("scada-level-review", "# Updated SCADA Level Review"),
|
||||
);
|
||||
|
||||
expect(overwriteResult).toEqual({
|
||||
@@ -99,7 +99,7 @@ describe("SkillStore", () => {
|
||||
target: writeResult.target,
|
||||
});
|
||||
await expect(readFile(writeResult.target, "utf8")).resolves.toContain(
|
||||
"# Updated Pressure Review\n",
|
||||
"# Updated SCADA Level Review\n",
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user