Skip to content

Commit e83d622

Browse files
authored
Merge branch 'mediar-ai:main' into smarttrend
2 parents 2e85931 + 5d8a56a commit e83d622

File tree

890 files changed

+158975
-235301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

890 files changed

+158975
-235301
lines changed

.cargo/config.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ rustflags = [
1616
[target.x86_64-unknown-linux-gnu]
1717
rustflags = ["-C", "link-arg=-Wl,--allow-multiple-definition"]
1818

19-
19+
[target.aarch64-apple-darwin]
20+
rustflags = "-lc++ -l framework=Accelerate"

.cursorrules

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ Rules:
1010
- NextJS: make sure to use tailwind, typescript, shadcn, lucide, magicui, and framer-motion to make UIs amazing
1111
- Make sure to escape html thing like quotes etc properly. Only when necessary
1212
- When writing react or html code make sure to use thing like ' instead of ". Only when necessary (e.g inside quote themselves)
13+
- When I ask SQLite database related stuff, keep in mind my db is in $HOME/.screenpipe/db.sqlite and mp4 files in $HOME/.screenpipe/*.mp4
14+

.devcontainer/Dockerfile

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Use the specified base image
2+
FROM mcr.microsoft.com/devcontainers/base:ubuntu-22.04
3+
4+
# Switch to the vscode user
5+
USER vscode
6+
7+
# Install Rust
8+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
9+
10+
# Update package lists and install dependencies
11+
RUN sudo apt-get update && sudo apt-get install -y \
12+
g++ \
13+
ffmpeg \
14+
tesseract-ocr \
15+
cmake \
16+
libavformat-dev \
17+
libavfilter-dev \
18+
libavdevice-dev \
19+
libssl-dev \
20+
libtesseract-dev \
21+
libxdo-dev \
22+
libsdl2-dev \
23+
libclang-dev \
24+
libxtst-dev \
25+
libx11-dev \
26+
libxext-dev \
27+
libxrandr-dev \
28+
libxinerama-dev \
29+
libxcursor-dev \
30+
libxi-dev \
31+
libgl1-mesa-dev \
32+
libasound2-dev \
33+
libpulse-dev \
34+
curl \
35+
pkg-config \
36+
libsqlite3-dev \
37+
sqlite3 \
38+
libbz2-dev \
39+
zlib1g-dev \
40+
libonig-dev \
41+
libayatana-appindicator3-dev \
42+
libsamplerate-dev \
43+
libwebrtc-audio-processing-dev \
44+
libgtk-3-dev \
45+
libwebkit2gtk-4.1-dev \
46+
librsvg2-dev \
47+
patchelf \
48+
xvfb \
49+
x11-utils \
50+
x11-xserver-utils \
51+
x11-apps \
52+
xdotool \
53+
openbox \
54+
xterm \
55+
fonts-liberation \
56+
imagemagick \
57+
fonts-dejavu \
58+
alsa-utils \
59+
pulseaudio \
60+
pulseaudio-utils \
61+
&& sudo apt-get clean \
62+
&& sudo rm -rf /var/lib/apt/lists/*
63+
64+
# Install Bun
65+
RUN curl -fsSL https://bun.sh/install | bash
66+
67+
EXPOSE 3000 3030

.devcontainer/devcontainer.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
3+
{
4+
"name": "Screenpipe",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"build": {
7+
"dockerfile": "Dockerfile"
8+
},
9+
// Features to add to the dev container. More info: https://containers.dev/features.
10+
// "features": {
11+
// "ghcr.io/devcontainers/features/desktop-lite:1": {
12+
// "password": "noPassword"
13+
// }
14+
// },
15+
16+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
17+
"forwardPorts": [3000, 3030],
18+
19+
// Use 'postCreateCommand' to run commands after the container is created.
20+
"postCreateCommand": "bash /workspaces/screenpipe/.devcontainer/scripts/postCreateCommand.sh",
21+
22+
"onCreateCommand": "sudo cp .devcontainer/scripts/welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt"
23+
24+
// Configure tool-specific properties.
25+
// "customizations": {},
26+
27+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
28+
// "remoteUser": "root"
29+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/bin/bash
2+
3+
log() {
4+
echo -e "\e[1;34m[INFO]\e[0m $1"
5+
}
6+
export XDG_SESSION_TYPE="x11"
7+
export WAYLAND_DISPLAY=""
8+
9+
# Change directory to Screenpipe folder
10+
cd /workspaces/screenpipe/
11+
12+
log "Installing dependencies"
13+
.github/scripts/install_dependencies.sh
14+
15+
log "Verifying Tesseract installation"
16+
.github/scripts/verify_tesseract.sh
17+
18+
log "Building CLI"
19+
cargo build --release
20+
21+
log "Setting up virtual display with window manager"
22+
.github/scripts/setup_display.sh
23+
24+
log "Setting up audio"
25+
.github/scripts/setup_audio.sh
26+
27+
log "Running Screenpipe"
28+
.github/scripts/run_screenpipe.sh
29+
30+
log "Testing OCR"
31+
.github/scripts/test_ocr.sh
32+
33+
log "Testing Audio Capture"
34+
.github/scripts/test_audio_capture.sh
35+
36+
log "Stopping Screenpipe"
37+
.github/scripts/stop_screenpipe.sh
38+
39+
log "Checking for crashes and expected behavior"
40+
.github/scripts/check_logs.sh
41+
42+
log "Checking final storage usage"
43+
du -ha ~/.screenpipe/data
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
# Define the alias
4+
ALIAS_CMD="alias test-linux=\"/workspaces/screenpipe/.devcontainer/scripts/linux_integration.sh\""
5+
6+
# Add alias to .bashrc if it exists
7+
grep -qxF "$ALIAS_CMD" ~/.bashrc || echo "$ALIAS_CMD" >> ~/.bashrc
8+
9+
# Add alias to .zshrc if it exists
10+
grep -qxF "$ALIAS_CMD" ~/.zshrc || echo "$ALIAS_CMD" >> ~/.zshrc
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
👋 Welcome to Screenpipe!
2+
3+
🛠️ Your environment is fully setup with all the required dependencies.
4+
5+
📝 We have set up an alias 'test-linux' for 'linux_integration.sh' in your shell configurations.
6+
7+
💻 You can run 'test-linux' in the terminal to check if the Linux build of the app is working.
8+

.gitattributes

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
# Set Rust as primary
22
*.rs linguist-detectable=true
33
*.rs linguist-language=Rust
4-
54
# Set TypeScript as secondary but still detected
65
*.ts linguist-detectable=true
76
*.ts linguist-language=TypeScript
8-
97
# Ignore build outputs and vendored code
108
dist/* linguist-vendored
119
target/* linguist-vendored
1210
node_modules/* linguist-vendored
13-
1411
# Ignore documentation
1512
*.md linguist-documentation
1613
*.txt linguist-documentation
17-
1814
# Ignore configuration files
1915
*.toml linguist-detectable=false
2016
*.json linguist-detectable=false
2117
*.yaml linguist-detectable=false
2218
*.yml linguist-detectable=false
19+
*.onnx filter=lfs diff=lfs merge=lfs -text
20+
*.wav filter=lfs diff=lfs merge=lfs -text
21+
*.gif filter=lfs diff=lfs merge=lfs -text
22+
*.mp4 filter=lfs diff=lfs merge=lfs -text
23+
*.safetensors filter=lfs diff=lfs merge=lfs -text
24+
*.zip filter=lfs diff=lfs merge=lfs -text
25+
*.tar.gz filter=lfs diff=lfs merge=lfs -text

.github/pull_request_template.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ assignees: ''
88
---
99

1010
## description
11+
1112
brief description of the changes in this pr.
1213

1314
related issue: #
@@ -20,6 +21,6 @@ add a few steps to test the pr in the most time efficient way.
2021
2.
2122
3.
2223

23-
if relevant add screenshots or screen captures to prove that this PR works to save us time.
24+
if relevant add screenshots or screen captures to prove that this PR works to save us time (check [Cap](https://cap.so)).
2425

25-
if you think it can take more than 30 mins for us to review, we will pay between $20 and $200 for someone to review it for us, just ask in the pr.
26+
if you are not the author of this PR and you see it and you think it can take more than 30 mins for maintainers to review, we will tip you between $20 and $200 for you to review and test it for us.

.github/scripts/audio_test.wav

-41.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)