minutes-mcp 0.30.10 → 0.31.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +22 -4
- package/dist-ui/index.html +23 -23
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -804,6 +804,13 @@ function withoutContextSourceAuthorization(value) {
|
|
|
804
804
|
const { source_authorization: _receipt, ...publicValue } = value;
|
|
805
805
|
return publicValue;
|
|
806
806
|
}
|
|
807
|
+
// Relevance tier from minutes-sdk's lexicalMatch, compared before score. The
|
|
808
|
+
// pinned SDK may predate the field; compareSearchMatches then ignores it, and
|
|
809
|
+
// tiers take effect when the release moves the pin.
|
|
810
|
+
function retrievalTier(match) {
|
|
811
|
+
const tier = match?.tier;
|
|
812
|
+
return typeof tier === "number" ? tier : 0;
|
|
813
|
+
}
|
|
807
814
|
async function policyVerifiedMeetingSnapshots(dir, includeRestricted) {
|
|
808
815
|
return policySnapshotOperation(dir, includeRestricted, (snapshots) => snapshots);
|
|
809
816
|
}
|
|
@@ -843,8 +850,15 @@ export async function policySearchMeetings(dir, query, limit, includeRestricted,
|
|
|
843
850
|
return [];
|
|
844
851
|
return policyMatchingSnapshotOperation(dir, includeRestricted, (meeting) => reader.lexicalMatch(meeting.frontmatter.title, meeting.body, query) !== null, (snapshots) => {
|
|
845
852
|
const results = [];
|
|
846
|
-
const ranked = snapshots.map((snapshot) =>
|
|
847
|
-
|
|
853
|
+
const ranked = snapshots.map((snapshot) => {
|
|
854
|
+
const match = reader.lexicalMatch(snapshot.meeting.frontmatter.title, snapshot.meeting.body, query);
|
|
855
|
+
return { snapshot, score: match?.score ?? 0, tier: retrievalTier(match) };
|
|
856
|
+
});
|
|
857
|
+
ranked.sort((a, b) => {
|
|
858
|
+
const left = { tier: a.tier, score: a.score, date: a.snapshot.meeting.frontmatter.date, path: a.snapshot.path };
|
|
859
|
+
const right = { tier: b.tier, score: b.score, date: b.snapshot.meeting.frontmatter.date, path: b.snapshot.path };
|
|
860
|
+
return reader.compareSearchMatches(left, right);
|
|
861
|
+
});
|
|
848
862
|
for (const { snapshot } of ranked) {
|
|
849
863
|
results.push(snapshot.meeting);
|
|
850
864
|
if (results.length >= boundedLimit)
|
|
@@ -1045,7 +1059,11 @@ export function collectPolicyToolSearchSnapshots(snapshot, includeRestricted, fi
|
|
|
1045
1059
|
meeting.retrieval = reader.lexicalMatch(meeting.frontmatter.title, meeting.body, filter.query) ?? undefined;
|
|
1046
1060
|
matches.push({ path: file.path, content: file.content, meeting });
|
|
1047
1061
|
}
|
|
1048
|
-
return matches.sort((a, b) =>
|
|
1062
|
+
return matches.sort((a, b) => {
|
|
1063
|
+
const left = { tier: retrievalTier(a.meeting.retrieval), score: a.meeting.retrieval?.score ?? 0, date: a.meeting.frontmatter.date, path: a.path };
|
|
1064
|
+
const right = { tier: retrievalTier(b.meeting.retrieval), score: b.meeting.retrieval?.score ?? 0, date: b.meeting.frontmatter.date, path: b.path };
|
|
1065
|
+
return reader.compareSearchMatches(left, right);
|
|
1066
|
+
}).slice(0, MCP_POLICY_MEETING_RESULT_MAX);
|
|
1049
1067
|
}
|
|
1050
1068
|
async function policyToolSearchMeetings(dir, includeRestricted, filter, limit = MCP_MEETING_RESULT_MAX) {
|
|
1051
1069
|
return withStableCorpusLease(dir, (snapshot) => collectPolicyToolSearchSnapshots(snapshot, includeRestricted, filter)
|
|
@@ -1597,7 +1615,7 @@ const COPILOT_SUPPORTED = hasFeature(CLI_CAPABILITIES, "copilot_realtime");
|
|
|
1597
1615
|
// `./version.ts` (see issue #183). Hosted `.mcpb` bundles will run
|
|
1598
1616
|
// against CLIs with different minor/patch numbers within the same
|
|
1599
1617
|
// major; that is explicitly supported.
|
|
1600
|
-
const MCP_SERVER_VERSION = "0.
|
|
1618
|
+
const MCP_SERVER_VERSION = "0.31.1";
|
|
1601
1619
|
export function parseKnowledgeConfig(configContent) {
|
|
1602
1620
|
const knowledgeMatch = configContent.match(/\[knowledge\][\s\S]*?(?=\n\[|$)/);
|
|
1603
1621
|
if (!knowledgeMatch) {
|