From 603d04ee3ac6ed496f84478164f832a9b5ce3b91 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Sun, 11 Oct 2026 00:33:36 +0800 Subject: [PATCH] fix(ci): repair format gate and pin maintenance skill destinations format:check failed on ApktoolProvider; existingMaintenanceScope now returns skillDestinations (consumed by maintenance planning), so pin the field in the exact-shape scope assertions. --- src/apktool/ApktoolProvider.ts | 2 +- tests/process-global/updateMaintenance.test.ts | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/apktool/ApktoolProvider.ts b/src/apktool/ApktoolProvider.ts index 3bcb98510..d898b785a 100644 --- a/src/apktool/ApktoolProvider.ts +++ b/src/apktool/ApktoolProvider.ts @@ -157,7 +157,7 @@ const runApktool = async ( timeoutMs: limits.timeoutMs, diagnosticBytes: limits.maxOutputBytes, }, - (signal === undefined ? {} : { signal }), + signal === undefined ? {} : { signal }, ); return ok({ stdout: output.stdout.text, stderr: output.stderr.text }); } catch (cause) { diff --git a/tests/process-global/updateMaintenance.test.ts b/tests/process-global/updateMaintenance.test.ts index 760bd96aa..43e2927a3 100644 --- a/tests/process-global/updateMaintenance.test.ts +++ b/tests/process-global/updateMaintenance.test.ts @@ -148,6 +148,7 @@ describe("existing REA integration maintenance", () => { ).resolves.toEqual({ clients: ["codex", "vscode"], skill: false, + skillDestinations: [], }); }); @@ -157,6 +158,7 @@ describe("existing REA integration maintenance", () => { ).resolves.toEqual({ clients: [], skill: false, + skillDestinations: [], }); await writeSkill("---\nname: another-skill\n---\nUser-authored content\n"); await expect( @@ -164,6 +166,7 @@ describe("existing REA integration maintenance", () => { ).resolves.toEqual({ clients: [], skill: false, + skillDestinations: [], }); }); @@ -177,6 +180,12 @@ describe("existing REA integration maintenance", () => { ).resolves.toEqual({ clients: [], skill: true, + skillDestinations: [ + { + client: "shared", + path: join(home, ".agents", "skills", PRODUCT_IDENTITY.skillName), + }, + ], }); expect(await readFile(path, "utf8")).toBe(original); }); @@ -224,7 +233,7 @@ describe("existing REA integration maintenance", () => { ]); expect(result).toEqual({ status: "planned", - scope: { clients: ["codex"], skill: false }, + scope: { clients: ["codex"], skill: false, skillDestinations: [] }, command: recorded[0]?.slice(0, -2), plannedActions: [action], });