

























@@ -28,7 +28,6 @@ import {
2828listPluginInstallWholeRecordPaths,
2929resolveConfigReloadMetadata,
3030resolveGatewayReloadSettings,
31-shouldInvalidateSkillsSnapshotForPaths,
3231startGatewayConfigReloader,
3332} from "./config-reload.js";
3433@@ -1868,43 +1867,6 @@ describe("startGatewayConfigReloader watcher error recovery", () => {
18681867});
18691868});
187018691871-describe("shouldInvalidateSkillsSnapshotForPaths", () => {
1872-it.each([
1873-"skills",
1874-"skills.allowBundled",
1875-"skills.entries",
1876-"skills.entries.himalaya",
1877-"skills.entries.himalaya.enabled",
1878-"skills.profile",
1879-])("returns true for skills path %s", (path) => {
1880-expect(shouldInvalidateSkillsSnapshotForPaths([path])).toBe(true);
1881-});
1882-1883-it.each([
1884-"tools.profile",
1885-"agents.defaults.model",
1886-"gateway.port",
1887-"skillset.allowBundled",
1888-"channels.telegram.enabled",
1889-])("returns false for unrelated path %s", (path) => {
1890-expect(shouldInvalidateSkillsSnapshotForPaths([path])).toBe(false);
1891-});
1892-1893-it("returns true when any path in the list matches", () => {
1894-expect(
1895-shouldInvalidateSkillsSnapshotForPaths([
1896-"gateway.port",
1897-"skills.allowBundled",
1898-"channels.telegram.enabled",
1899-]),
1900-).toBe(true);
1901-});
1902-1903-it("returns false for empty input", () => {
1904-expect(shouldInvalidateSkillsSnapshotForPaths([])).toBe(false);
1905-});
1906-});
1907-19081870describe("startGatewayConfigReloader skills invalidation", () => {
19091871beforeEach(() => {
19101872vi.useFakeTimers();
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。