Skip to content

Commit 9c90b07

Browse files
committed
chore(deps): update openshell to 0.0.106
Patch-Walker-Manifest: sha256:57ba26f3e73ca7264d39e625ebfe66eaf4d3c72c6b3deef725bb13657fcc1c57 Refs #6256 Refs #3136 Refs #6871 Refs #7367 Refs #7937 Refs #7957 Refs #8769 Refs #8887 Refs #8893 Signed-off-by: Prekshi Vyas <prekshiv@nvidia.com>
1 parent 53396de commit 9c90b07

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/lib/onboard/openshell-feature-gate.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ export function hasRequiredOpenshellMessagingFeatures(options: {
181181
(candidate): candidate is string => candidate !== null,
182182
);
183183

184-
const requiredMarkers = REQUIRED_OPENSHELL_MCP_FEATURES.map((marker) => Buffer.from(marker));
185184
const foundMarkers = new Set<string>();
186185
const seen = new Set<string>();
187186
for (const candidate of candidates) {
@@ -198,10 +197,8 @@ export function hasRequiredOpenshellMessagingFeatures(options: {
198197
} finally {
199198
if (fd !== null) fs.closeSync(fd);
200199
}
201-
for (let index = 0; index < requiredMarkers.length; index += 1) {
202-
if (content.includes(requiredMarkers[index])) {
203-
foundMarkers.add(REQUIRED_OPENSHELL_MCP_FEATURES[index]);
204-
}
200+
for (const marker of REQUIRED_OPENSHELL_MCP_FEATURES) {
201+
if (content.includes(Buffer.from(marker))) foundMarkers.add(marker);
205202
}
206203
if (REQUIRED_OPENSHELL_MCP_FEATURES.every((marker) => foundMarkers.has(marker))) break;
207204
}

0 commit comments

Comments
 (0)