Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: ts

Louis Beaumontfc394dd0f2ba
diff --git a/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx b/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx
index 725078dab..0ad059fcb 100644
--- a/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx
+++ b/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx
@@ -81,7 +81,7 @@ export function ChatList({
});
const userMessage = { id: nanoid(), role: "user", content: inputMessage };
- // @ts-expect-error
+ // @ts-ignore
setMessages((prevMessages) => [...prevMessages, userMessage]);
setInputMessage("");
@@ -223,16 +223,16 @@ export function ChatList({
- Always use the absolute file path to access videos
`,
},
- // @ts-expect-error
+ // @ts-ignore
...messages,
- // @ts-expect-error
+ // @ts-ignore
...(text
? [
{
role: "assistant",
content: [
{
- // @ts-expect-error
+ // @ts-ignore
toolCallId: text?.toolCalls?.[0]?.toolCallId!,
type: "tool-call",
toolName: "query_screenpipe",
@@ -256,8 +256,9 @@ export function ChatList({
]
: []),
{
- // @ts-expect-error
+ // @ts-ignore
role: "user",
+ // @ts-ignore
content:
messages.findLast((msg) => msg.role === "user")?.content ||
inputMessage,
@@ -323,10 +324,10 @@ export function ChatList({
msg.role === "user" ||
(msg.role === "assistant" && typeof msg.content === "string")
) {
- // @ts-expect-error
+ // @ts-ignore
return <ChatMessage key={index} message={msg} />;
} else if (msg.role === "tool") {
- // @ts-expect-error
+ // @ts-ignore
return <FunctionCallMessage key={index} message={msg} />;
}
return null;
diff --git a/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx b/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx
index 615d48c34..23332c17c 100644
--- a/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx
+++ b/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx
@@ -37,7 +37,9 @@ export function FunctionCallMessage({ message }: FunctionCallMessageProps) {
// Assuming message.content is the array shown in the image
// @ts-ignore
const toolCalls = message.content
+ // @ts-ignore
.filter((item) => !item.result)
+ // @ts-ignore
.map((item) => ({
type: item.type,
toolName: item.toolName,
@@ -46,7 +48,9 @@ export function FunctionCallMessage({ message }: FunctionCallMessageProps) {
// @ts-ignore
const toolResults = message.content
+ // @ts-ignore
.filter((item) => item.result)
+ // @ts-ignore
.map((item) => ({
type: item.type,
toolName: item.toolName,
diff --git a/examples/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/examples/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 18df814b6..0b553cff9 100644
--- a/examples/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/examples/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "0.1.34"
+version = "0.1.35"
description = ""
authors = ["you"]
license = ""