Fix: resolve pnpm check type regressions

This commit is contained in:
Vignesh Natarajan
2026-02-22 13:39:15 -08:00
parent 6970c2c2db
commit 08fb38f729
3 changed files with 7 additions and 7 deletions

View File

@@ -559,7 +559,7 @@ export function createBrowserTool(opts?: {
});
}
return {
content: [{ type: "text", text: wrappedSnapshot }],
content: [{ type: "text" as const, text: wrappedSnapshot }],
details: safeDetails,
};
}
@@ -569,7 +569,7 @@ export function createBrowserTool(opts?: {
payload: snapshot,
});
return {
content: [{ type: "text", text: wrapped.wrappedText }],
content: [{ type: "text" as const, text: wrapped.wrappedText }],
details: {
...wrapped.safeDetails,
format: "aria",
@@ -664,7 +664,7 @@ export function createBrowserTool(opts?: {
includeWarning: false,
});
return {
content: [{ type: "text", text: wrapped.wrappedText }],
content: [{ type: "text" as const, text: wrapped.wrappedText }],
details: {
...wrapped.safeDetails,
targetId: typeof result.targetId === "string" ? result.targetId : undefined,
@@ -680,7 +680,7 @@ export function createBrowserTool(opts?: {
includeWarning: false,
});
return {
content: [{ type: "text", text: wrapped.wrappedText }],
content: [{ type: "text" as const, text: wrapped.wrappedText }],
details: {
...wrapped.safeDetails,
targetId: result.targetId,
@@ -700,7 +700,7 @@ export function createBrowserTool(opts?: {
})) as Awaited<ReturnType<typeof browserPdfSave>>)
: await browserPdfSave(baseUrl, { targetId, profile });
return {
content: [{ type: "text", text: `FILE:${result.path}` }],
content: [{ type: "text" as const, text: `FILE:${result.path}` }],
details: result,
};
}

View File

@@ -392,7 +392,7 @@ export async function rejectDevicePairing(
idKey: "deviceId",
loadState: () => loadState(baseDir),
persistState: (state) => persistState(state, baseDir),
getId: (pending) => pending.deviceId,
getId: (pending: DevicePairingPendingRequest) => pending.deviceId,
});
});
}

View File

@@ -204,7 +204,7 @@ export async function rejectNodePairing(
idKey: "nodeId",
loadState: () => loadState(baseDir),
persistState: (state) => persistState(state, baseDir),
getId: (pending) => pending.nodeId,
getId: (pending: NodePairingPendingRequest) => pending.nodeId,
});
});
}