mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 12:47:39 +00:00
Fix: resolve pnpm check type regressions
This commit is contained in:
@@ -559,7 +559,7 @@ export function createBrowserTool(opts?: {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
content: [{ type: "text", text: wrappedSnapshot }],
|
content: [{ type: "text" as const, text: wrappedSnapshot }],
|
||||||
details: safeDetails,
|
details: safeDetails,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -569,7 +569,7 @@ export function createBrowserTool(opts?: {
|
|||||||
payload: snapshot,
|
payload: snapshot,
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
content: [{ type: "text", text: wrapped.wrappedText }],
|
content: [{ type: "text" as const, text: wrapped.wrappedText }],
|
||||||
details: {
|
details: {
|
||||||
...wrapped.safeDetails,
|
...wrapped.safeDetails,
|
||||||
format: "aria",
|
format: "aria",
|
||||||
@@ -664,7 +664,7 @@ export function createBrowserTool(opts?: {
|
|||||||
includeWarning: false,
|
includeWarning: false,
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
content: [{ type: "text", text: wrapped.wrappedText }],
|
content: [{ type: "text" as const, text: wrapped.wrappedText }],
|
||||||
details: {
|
details: {
|
||||||
...wrapped.safeDetails,
|
...wrapped.safeDetails,
|
||||||
targetId: typeof result.targetId === "string" ? result.targetId : undefined,
|
targetId: typeof result.targetId === "string" ? result.targetId : undefined,
|
||||||
@@ -680,7 +680,7 @@ export function createBrowserTool(opts?: {
|
|||||||
includeWarning: false,
|
includeWarning: false,
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
content: [{ type: "text", text: wrapped.wrappedText }],
|
content: [{ type: "text" as const, text: wrapped.wrappedText }],
|
||||||
details: {
|
details: {
|
||||||
...wrapped.safeDetails,
|
...wrapped.safeDetails,
|
||||||
targetId: result.targetId,
|
targetId: result.targetId,
|
||||||
@@ -700,7 +700,7 @@ export function createBrowserTool(opts?: {
|
|||||||
})) as Awaited<ReturnType<typeof browserPdfSave>>)
|
})) as Awaited<ReturnType<typeof browserPdfSave>>)
|
||||||
: await browserPdfSave(baseUrl, { targetId, profile });
|
: await browserPdfSave(baseUrl, { targetId, profile });
|
||||||
return {
|
return {
|
||||||
content: [{ type: "text", text: `FILE:${result.path}` }],
|
content: [{ type: "text" as const, text: `FILE:${result.path}` }],
|
||||||
details: result,
|
details: result,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -392,7 +392,7 @@ export async function rejectDevicePairing(
|
|||||||
idKey: "deviceId",
|
idKey: "deviceId",
|
||||||
loadState: () => loadState(baseDir),
|
loadState: () => loadState(baseDir),
|
||||||
persistState: (state) => persistState(state, 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",
|
idKey: "nodeId",
|
||||||
loadState: () => loadState(baseDir),
|
loadState: () => loadState(baseDir),
|
||||||
persistState: (state) => persistState(state, baseDir),
|
persistState: (state) => persistState(state, baseDir),
|
||||||
getId: (pending) => pending.nodeId,
|
getId: (pending: NodePairingPendingRequest) => pending.nodeId,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user