Fix: resolve pnpm check type regressions
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user