From aa33c63c5bb66533f1e2b3a1e4edf5de37eed541 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 10 Aug 2026 10:24:15 -0700 Subject: [PATCH] chore(lint): clear sort mutation, spread fallback, and error-cause findings toSorted/flat in the labeler coverage test, drop no-op empty-object spread fallbacks in the telegram command-menu e2e config, and attach the caught cause when rewrapping the trusted-workflow parse error. --- .../runtime/telegram-command-menu-gateway.e2e.test.ts | 6 +++--- test/scripts/labeler-extension-coverage.test.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/e2e/qa-lab/runtime/telegram-command-menu-gateway.e2e.test.ts b/test/e2e/qa-lab/runtime/telegram-command-menu-gateway.e2e.test.ts index d0b1a65f3277..746a191dc38b 100644 --- a/test/e2e/qa-lab/runtime/telegram-command-menu-gateway.e2e.test.ts +++ b/test/e2e/qa-lab/runtime/telegram-command-menu-gateway.e2e.test.ts @@ -218,14 +218,14 @@ test("registers pressure-prioritized Telegram menus through a real Gateway", asy { agentId: "qa", match: { channel: "telegram", accountId: "skill" } }, ]; cfg.plugins = { - ...(cfg.plugins ?? {}), + ...cfg.plugins, allow: [...new Set([...(cfg.plugins?.allow ?? []), LOCALIZED_PLUGIN_ID])], entries: { - ...(cfg.plugins?.entries ?? {}), + ...cfg.plugins?.entries, [LOCALIZED_PLUGIN_ID]: { enabled: true }, }, load: { - ...(cfg.plugins?.load ?? {}), + ...cfg.plugins?.load, paths: [...new Set([...(cfg.plugins?.load?.paths ?? []), localizedPluginDir])], }, }; diff --git a/test/scripts/labeler-extension-coverage.test.ts b/test/scripts/labeler-extension-coverage.test.ts index ba6f1141e716..936ab55942b0 100644 --- a/test/scripts/labeler-extension-coverage.test.ts +++ b/test/scripts/labeler-extension-coverage.test.ts @@ -17,11 +17,11 @@ const labelerPath = path.join(repoRoot, ".github/labeler.yml"); const extensionDirectories = readdirSync(extensionsRoot, { withFileTypes: true }) .filter((entry) => entry.isDirectory()) .map((entry) => entry.name) - .sort(); + .toSorted(); const extensionDirectorySet = new Set(extensionDirectories); const labeler = parse(readFileSync(labelerPath, "utf8")) as Record; const extensionGlobDirectories = Object.values(labeler) - .flatMap((rules) => rules) + .flat() .flatMap((rule) => rule["changed-files"] ?? []) .flatMap((changedFiles) => changedFiles["any-glob-to-any-file"] ?? []) .flatMap((glob) => glob.match(/^extensions\/([^/]+)\//)?.[1] ?? []);