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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: video component showng error, small improvement on store
Louis Beaumonta4cf24b70a0d
diff --git a/pipes/identify-speakers/src/components/video.tsx b/pipes/identify-speakers/src/components/video.tsxindex dd2d4cfb0..03351a8cf 100644--- a/pipes/identify-speakers/src/components/video.tsx+++ b/pipes/identify-speakers/src/components/video.tsx@@ -78,7 +78,7 @@ export const VideoComponent = memo(function VideoComponent({throw new Error("unknown media validation status");}} catch (error) {- console.error("Failed to load media:", error);+ console.warn("Failed to load media:", error);setError(`Failed to load media: ${error instanceof Error ? error.message : "Unknown error"diff --git a/pipes/search/src/components/video.tsx b/pipes/search/src/components/video.tsxindex eef967cd0..e480d41c5 100644--- a/pipes/search/src/components/video.tsx+++ b/pipes/search/src/components/video.tsx@@ -82,7 +82,7 @@ export const VideoComponent = memo(function VideoComponent({throw new Error("unknown media validation status");}} catch (error) {- console.error("Failed to load media:", error);+ console.warn("Failed to load media:", error);setError(`Failed to load media: ${error instanceof Error ? error.message : "Unknown error"diff --git a/pipes/timeline/src/components/video.tsx b/pipes/timeline/src/components/video.tsxindex 6c6992ca6..cf3fc8985 100644--- a/pipes/timeline/src/components/video.tsx+++ b/pipes/timeline/src/components/video.tsx@@ -75,7 +75,7 @@ export const VideoComponent = memo(function VideoComponent({const blob = new Blob([bytes], { type: mimeType });setMediaSrc(URL.createObjectURL(blob));} catch (error) {- console.error("Failed to load media:", error);+ console.warn("Failed to load media:", error);setError(`Failed to load media: ${error instanceof Error ? error.message : "Unknown error"diff --git a/screenpipe-app-tauri/components/pipe-store.tsx b/screenpipe-app-tauri/components/pipe-store.tsxindex 0f2da0d48..b8a5e0bf4 100644--- a/screenpipe-app-tauri/components/pipe-store.tsx+++ b/screenpipe-app-tauri/components/pipe-store.tsx@@ -1262,21 +1262,34 @@ const PipeStore: React.FC = () => {{pipe.id !== "pipe-linkedin-ai-assistant" && (<>{pipes.some((p) => p.id === pipe.id) ? (- <Button- size="icon"- variant={pipe.enabled ? "default" : "outline"}- onClick={(e) => {- e.stopPropagation();- handleToggleEnabled(pipe);- }}- className={`${- pipe.enabled- ? "bg-primary hover:bg-primary/90"- : "hover:bg-muted"- }`}- >- <Power className="h-3.5 w-3.5" />- </Button>+ <>+ {pipes.find(p => p.id === pipe.id)?.config?.port && pipes.find(p => p.id === pipe.id)?.enabled ? (+ <Button+ size="icon"+ variant="outline"+ onClick={(e) => {+ e.stopPropagation();+ const installedPipe = pipes.find(p => p.id === pipe.id);+ if (installedPipe?.config?.port) {+ invoke("open_pipe_window", {+ port: installedPipe.config.port,+ title: installedPipe.id,+ }).catch(err => {+ console.error("failed to open pipe window:", err);+ toast({+ title: "error opening pipe window",+ description: "please try again or check the logs",+ variant: "destructive",+ });+ });+ }+ }}+ className="hover:bg-muted"+ >+ <Puzzle className="h-3.5 w-3.5" />+ </Button>+ ) : null}+ </>) : (<Buttonsize="icon"diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lockindex c1427d056..400a4747c 100755--- a/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -4966,7 +4966,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "0.21.8"+version = "0.21.9"dependencies = ["anyhow","axum",diff --git a/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json b/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.jsonindex 1062a6fba..105616919 100644--- a/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json+++ b/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json@@ -1 +1 @@-{"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["*"],"permissions":["core:event:allow-listen","core:event:default","core:app:allow-version","process:allow-restart","process:allow-exit","notification:default","core:resources:default","core:menu:default","core:tray:default","shell:default","store:default","shell:allow-open","fs:allow-watch","fs:allow-open","fs:default","fs:allow-read-file","fs:allow-read-dir","fs:allow-read","fs:allow-write-file","fs:read-dirs","fs:allow-copy-file","fs:allow-exists","fs:allow-read-text-file","fs:allow-create","fs:allow-mkdir","fs:allow-remove","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-unregister","global-shortcut:allow-unregister-all","global-shortcut:default","cli:default","shell:default","shell:allow-spawn","dialog:default","updater:default","os:default","os:allow-arch","os:allow-hostname","os:allow-os-type","core:path:default","process:default","core:webview:allow-internal-toggle-devtools","deep-link:default"]}}\ No newline at end of file+{"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["*"],"permissions":["core:event:allow-listen","core:event:default","core:app:allow-version","process:allow-restart","process:allow-exit","notification:default","core:resources:default","core:menu:default","core:tray:default","shell:default","store:default","shell:allow-open","fs:allow-watch","fs:allow-open","fs:default","fs:allow-read-file","fs:allow-read-dir","fs:allow-read","fs:allow-write-file","fs:read-dirs","fs:allow-copy-file","fs:allow-exists","fs:allow-read-text-file","fs:allow-create","fs:allow-mkdir","fs:allow-remove","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-unregister","global-shortcut:allow-unregister-all","global-shortcut:default",{"identifier":"fs:scope","allow":[{"path":"$XDG_DATA_HOME","requireLiteralLeadingDot":false},{"path":"$XDG_DATA_HOME/**","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/*","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/*","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/**","requireLiteralLeadingDot":false},{"path":"$APPDATA/*","requireLiteralLeadingDot":false},{"path":"$APPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPCONFIG/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$HOME/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$APP/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/data/**","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/pipes/**","requireLiteralLeadingDot":false}]},{"identifier":"shell:allow-execute","allow":[{"args":["-c",{"validator":"\\S+"}],"cmd":"sh","name":"exec-sh","sidecar":false}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","purge","-y"],"cmd":"screenpipe","name":"screenpipe","sidecar":true}]},{"identifier":"shell:allow-spawn","allow":[{"args":["setup"],"cmd":"screenpipe","name":"screenpipe","sidecar":true}]},{"identifier":"shell:allow-spawn","allow":[{"args":["migrate"],"cmd":"screenpipe","name":"screenpipe","sidecar":true}]},{"identifier":"shell:allow-spawn","allow":[{"args":["serve"],"cmd":"ollama","name":"ollama","sidecar":true}]},{"identifier":"shell:allow-spawn","allow":[{"args":["run",{"validator":"\\S*"}],"cmd":"ollama","name":"ollama-run","sidecar":true}]},"cli:default","shell:default","shell:allow-spawn","dialog:default","updater:default","os:default","os:allow-arch","os:allow-hostname","os:allow-os-type","core:path:default","process:default","core:webview:allow-internal-toggle-devtools",{"identifier":"shell:allow-execute","allow":[{"args":["pipe","list","--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-list","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","download",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-download","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","enable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-enable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","disable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-disable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","update",{"validator":"\\S+"},{"validator":"\\{.*\\}"}],"cmd":"screenpipe","name":"screenpipe-pipe-update","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","delete",{"validator":"\\S+"},"--yes"],"cmd":"screenpipe","name":"screenpipe-pipe-delete","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","info",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-info","sidecar":true}]},{"identifier":"http:default","allow":[{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"http://**/*"},{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"https://**/*"}]},"deep-link:default"]}}\ No newline at end of file