refactor(maestro): lift the matcher into a shared utils module

The match-and-rank algorithm is pure and both the legacy bar and the
React port rank with it (#247).
This commit is contained in:
Miguel Palhas
2026-09-09 01:14:28 +01:00
parent 52ae636dbb
commit 7e21371e47
4 changed files with 427 additions and 2 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import { beforeAll, describe, expect, it } from "vitest";
import { OPEN_COMMAND_BAR_EVENT, renderSidebar } from "./catalog.js";
import { sessionBarCandidates } from "./commandBar.js";
import { matchAndRank } from "./matcher.js";
import { matchAndRank } from "./utils/matcher.js";
import type { CatalogListener, CatalogStore } from "./events.js";
import type { Session } from "./types.js";